diff --git a/discovery.config.js b/discovery.config.js index 348d2d32..68f892b3 100644 --- a/discovery.config.js +++ b/discovery.config.js @@ -70,6 +70,7 @@ module.exports = { experimental: { nodeVersion: 18, cypressVersion: 12, + preact: true, }, account: "storeframework", vtexHeadlessCms: { diff --git a/package.json b/package.json index d07d5365..4db2e2bf 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,10 @@ "test": "faststore test" }, "dependencies": { - "@faststore/cli": "^3.0.149", + "@faststore/cli": "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/cli", "next": "^13.5.6", + "preact": "10.23.1", + "preact-render-to-string": "6.5.8", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/vtex.env b/vtex.env index 113e8053..cad5c1fb 100644 --- a/vtex.env +++ b/vtex.env @@ -22,7 +22,3 @@ USE_STALE_CACHE=true - - - - diff --git a/yarn.lock b/yarn.lock index 689ed1f5..a88b9a16 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1156,10 +1156,9 @@ dependencies: fast-deep-equal "^3.1.3" -"@faststore/api@^3.0.149": - version "3.0.149" - resolved "https://registry.yarnpkg.com/@faststore/api/-/api-3.0.149.tgz#e345053f9cbb8c0aae23442f2a23853dd80a716e" - integrity sha512-ob63+FQaAfj7W+4uriO3M1bSZJPCSu1HqOIVCEwDvbPMCV538VdnAbyNrMCI1jwJNdO5xnuuSTqqNesCZROnsA== +"@faststore/api@https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/api": + version "3.0.140" + resolved "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/api#fa683640be7e096d680a1925d366fb7380b5ae7b" dependencies: "@envelop/on-resolve" "^4.1.1" "@graphql-tools/load-files" "^7.0.0" @@ -1176,13 +1175,12 @@ p-limit "^3.1.0" sanitize-html "^2.11.0" -"@faststore/cli@^3.0.149": - version "3.0.149" - resolved "https://registry.yarnpkg.com/@faststore/cli/-/cli-3.0.149.tgz#d4e8a290b1fb111e48e32bcc69e6c0fe72d754e2" - integrity sha512-D/MoTsLYcPMic/ZOclagqicGWKbk+VoHbDMl37xJBMcIQbDxJVhLlmapBZGZZ0bZ4yKQ/PosKgHJT6huAKQ+cg== +"@faststore/cli@https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/cli": + version "3.0.148" + resolved "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/cli#db73b46f5b8f171751fbbc370337a4bd736a370e" dependencies: "@antfu/ni" "^0.21.12" - "@faststore/core" "^3.0.149" + "@faststore/core" "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/core" "@inquirer/prompts" "^5.1.2" "@oclif/core" "^1.16.4" "@oclif/plugin-help" "^5" @@ -1195,15 +1193,14 @@ ora "5.4.1" path "^0.12.7" -"@faststore/components@^3.0.144": +"@faststore/components@https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/components": version "3.0.144" - resolved "https://registry.yarnpkg.com/@faststore/components/-/components-3.0.144.tgz#8d34d1f9a864044db7d6f204f836ea054988965c" - integrity sha512-AaAo+Wqf8lwmuG3VW6CHWUBQD+BAq8XFobkiyuKDh4eOmQiJQW5qcBr4gwcfO+fZ+QkZCl/AkvRh9VAoG8nQfA== + uid "33fbe94f165b78123c8a5deb75ba6bf41bfd43e1" + resolved "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/components#33fbe94f165b78123c8a5deb75ba6bf41bfd43e1" -"@faststore/core@^3.0.149": - version "3.0.149" - resolved "https://registry.yarnpkg.com/@faststore/core/-/core-3.0.149.tgz#931f114cadf67255e0c46d042d363dea0e1f0ebb" - integrity sha512-TPlLwr3njZxe8nYjCBUDkiPuDMVbe6OKXtgmls3715OxGTmIMt/8MSjl/uWvyTSlz8ekkm8xMwjtzMOMlCd0IQ== +"@faststore/core@https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/core": + version "3.0.148" + resolved "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/core#daa11db020e37de8c06502b2a918ad0523da3916" dependencies: "@antfu/ni" "^0.21.12" "@builder.io/partytown" "^0.6.1" @@ -1211,12 +1208,12 @@ "@envelop/graphql-jit" "^8.0.3" "@envelop/parser-cache" "^6.0.2" "@envelop/validation-cache" "^6.0.2" - "@faststore/api" "^3.0.149" - "@faststore/components" "^3.0.144" - "@faststore/graphql-utils" "^3.0.135" - "@faststore/lighthouse" "^3.0.135" - "@faststore/sdk" "^3.0.135" - "@faststore/ui" "^3.0.144" + "@faststore/api" "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/api" + "@faststore/components" "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/components" + "@faststore/graphql-utils" "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/graphql-utils" + "@faststore/lighthouse" "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/lighthouse" + "@faststore/sdk" "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/sdk" + "@faststore/ui" "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/ui" "@graphql-codegen/cli" "5.0.2" "@graphql-codegen/client-preset" "4.2.6" "@graphql-codegen/typescript" "4.0.7" @@ -1252,29 +1249,25 @@ tsx "^4.6.2" typescript "4.7.3" -"@faststore/graphql-utils@^3.0.135": +"@faststore/graphql-utils@https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/graphql-utils": version "3.0.135" - resolved "https://registry.yarnpkg.com/@faststore/graphql-utils/-/graphql-utils-3.0.135.tgz#970dd7ae22efa9110ae991c3c32cb30ab51d4a73" - integrity sha512-T8/gJLyDLncvXudFqca+uSRLzxdk+rYpn3Q/CefgarU8W/pbOQhpt7WALT1q2I1ediEjfxh2BnqMQNKwcZA6ZQ== + resolved "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/graphql-utils#8d5913aa689ad25d69a4b4622f0a876ed8849c09" -"@faststore/lighthouse@^3.0.135": +"@faststore/lighthouse@https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/lighthouse": version "3.0.135" - resolved "https://registry.yarnpkg.com/@faststore/lighthouse/-/lighthouse-3.0.135.tgz#f5dae8f90f54e26cdc0cc586db5d70e7eb17ec8f" - integrity sha512-6bAsZoi4v1MaFPCP+5/u1wyEfuriT+KVhxwGBNAYDduVc/2w7QHMuLjF6JSnyZDFPgA7nAICV4HXlcHL4xx58g== + resolved "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/lighthouse#7175c2d1f5ac4caaade82e0de6c7bddda0f4afb3" -"@faststore/sdk@^3.0.135": +"@faststore/sdk@https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/sdk": version "3.0.135" - resolved "https://registry.yarnpkg.com/@faststore/sdk/-/sdk-3.0.135.tgz#1755df9f347f0254723d73ec77c0fe5837004b44" - integrity sha512-Eq8EVitloNYMab40gPBEoI10E2jL4KH/J78MO0eq0TokZsNK80x1ShgeBilDa1wUtV4rKvj7p6mmAbNrGMgyAw== + resolved "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/sdk#3687a764c30f0b8186b9e5858bd8a1acbe25c67c" dependencies: idb-keyval "^5.1.3" -"@faststore/ui@^3.0.144": +"@faststore/ui@https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/ui": version "3.0.144" - resolved "https://registry.yarnpkg.com/@faststore/ui/-/ui-3.0.144.tgz#9b764910fadb6997274115448a506e58ceac45d8" - integrity sha512-fwRaLby84AiSPC4axQ+4qyhHqrsZwB4aQV7FnM738CETYMQJKIezYQ2uqGC85ETY09/zIGUOhMia7ibQFs3ORQ== + resolved "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/ui#1782a39beca2863e4a96562b0127cdd11235e553" dependencies: - "@faststore/components" "^3.0.144" + "@faststore/components" "https://pkg.csb.dev/vtex/faststore/commit/4957387c/@faststore/components" include-media "^1.4.10" modern-normalize "^1.1.0" react-swipeable "^7.0.0" @@ -6846,6 +6839,16 @@ postcss@8.4.31, postcss@^8.3.11, postcss@^8.4.19, postcss@^8.4.4: picocolors "^1.0.0" source-map-js "^1.0.2" +preact-render-to-string@6.5.8: + version "6.5.8" + resolved "https://registry.yarnpkg.com/preact-render-to-string/-/preact-render-to-string-6.5.8.tgz#0a78e6be0f274ad68e7bc1bec24150758d0dfd2e" + integrity sha512-VwldmyF+5G6eqTH26uyXY2+a9fh7ry8roYnIEwarB6OnT1bVN7lnlFvh0ldeKJ7/JtvMoWO5jz9tyykRlAIDyA== + +preact@10.23.1: + version "10.23.1" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.23.1.tgz#d400107289bc979881c5212cb5f5cd22cd1dc38c" + integrity sha512-O5UdRsNh4vdZaTieWe3XOgSpdMAmkIYBCT3VhQDlKrzyCm8lUYsk0fmVEvoQQifoOjFRTaHZO69ylrzTW2BH+A== + prebuild-install@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.1.1.tgz#de97d5b34a70a0c81334fd24641f2a1702352e45"