@tokenoftrust/storefront-runner 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/storefront/.astro/content.d.ts +159 -0
- package/apps/storefront/.astro/integrations/_astrojs_cloudflare/cloudflare.d.ts +1 -0
- package/apps/storefront/.astro/types.d.ts +3 -0
- package/apps/storefront/migrations-apps/0011_dt_tracking_tenant_databases.sql +23 -0
- package/apps/storefront/node_modules/.bin/acorn +43 -0
- package/apps/storefront/node_modules/.bin/astro +43 -0
- package/apps/storefront/node_modules/.bin/astro-check +43 -0
- package/apps/storefront/node_modules/.bin/browserslist +43 -0
- package/apps/storefront/node_modules/.bin/cf-wrangler +43 -0
- package/apps/storefront/node_modules/.bin/depcruise +43 -0
- package/apps/storefront/node_modules/.bin/depcruise-baseline +43 -0
- package/apps/storefront/node_modules/.bin/depcruise-fmt +43 -0
- package/apps/storefront/node_modules/.bin/depcruise-wrap-stream-in-html +43 -0
- package/apps/storefront/node_modules/.bin/dependency-cruise +43 -0
- package/apps/storefront/node_modules/.bin/dependency-cruiser +43 -0
- package/apps/storefront/node_modules/.bin/drizzle-kit +43 -0
- package/apps/storefront/node_modules/.bin/esbuild +43 -0
- package/apps/storefront/node_modules/.bin/jiti +43 -0
- package/apps/storefront/node_modules/.bin/playwright +43 -0
- package/apps/storefront/node_modules/.bin/playwright-core +43 -0
- package/apps/storefront/node_modules/.bin/prettier +43 -0
- package/apps/storefront/node_modules/.bin/rollup +43 -0
- package/apps/storefront/node_modules/.bin/tsc +43 -0
- package/apps/storefront/node_modules/.bin/tsserver +43 -0
- package/apps/storefront/node_modules/.bin/tsx +43 -0
- package/apps/storefront/node_modules/.bin/vite +43 -0
- package/apps/storefront/node_modules/.bin/vitest +43 -0
- package/apps/storefront/node_modules/.bin/workerd +43 -0
- package/apps/storefront/node_modules/.bin/wrangler +43 -0
- package/apps/storefront/node_modules/.bin/wrangler2 +43 -0
- package/apps/storefront/node_modules/.bin/yaml +43 -0
- package/apps/storefront/node_modules/.vite/deps/@astrojs_preact_client__js.js +58 -0
- package/apps/storefront/node_modules/.vite/deps/@astrojs_preact_client__js.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/@astrojs_preact_n_@preact_signals.js +741 -0
- package/apps/storefront/node_modules/.vite/deps/@astrojs_preact_n_@preact_signals.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/@astrojs_preact_server__js.js +2549 -0
- package/apps/storefront/node_modules/.vite/deps/@astrojs_preact_server__js.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/_metadata.json +150 -0
- package/apps/storefront/node_modules/.vite/deps/astro-BIHuWFxm.js +434 -0
- package/apps/storefront/node_modules/.vite/deps/astro-BIHuWFxm.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/astro_n_aria-query.js +6390 -0
- package/apps/storefront/node_modules/.vite/deps/astro_n_aria-query.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/astro_n_axobject-query.js +2705 -0
- package/apps/storefront/node_modules/.vite/deps/astro_n_axobject-query.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/astro_n_html-escaper.js +65 -0
- package/apps/storefront/node_modules/.vite/deps/astro_n_html-escaper.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/astro_runtime_client_dev-toolbar_entrypoint__js.js +455 -0
- package/apps/storefront/node_modules/.vite/deps/astro_runtime_client_dev-toolbar_entrypoint__js.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/audit-DKDpcdEI.js +1535 -0
- package/apps/storefront/node_modules/.vite/deps/audit-DKDpcdEI.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/highlight-B9UoX1wa.js +48 -0
- package/apps/storefront/node_modules/.vite/deps/highlight-B9UoX1wa.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/icons-BWi2wI9n.js +42 -0
- package/apps/storefront/node_modules/.vite/deps/icons-BWi2wI9n.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/package.json +3 -0
- package/apps/storefront/node_modules/.vite/deps/preact.js +310 -0
- package/apps/storefront/node_modules/.vite/deps/preact.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/preact_compat.js +420 -0
- package/apps/storefront/node_modules/.vite/deps/preact_compat.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/preact_compat_jsx-runtime.js +4 -0
- package/apps/storefront/node_modules/.vite/deps/preact_debug.js +236 -0
- package/apps/storefront/node_modules/.vite/deps/preact_debug.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/preact_devtools.js +12 -0
- package/apps/storefront/node_modules/.vite/deps/preact_devtools.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/preact_hooks.js +192 -0
- package/apps/storefront/node_modules/.vite/deps/preact_hooks.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/preact_jsx-dev-runtime.js +3 -0
- package/apps/storefront/node_modules/.vite/deps/preact_jsx-runtime.js +92 -0
- package/apps/storefront/node_modules/.vite/deps/preact_jsx-runtime.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/preact_test-utils.js +59 -0
- package/apps/storefront/node_modules/.vite/deps/preact_test-utils.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/rolldown-runtime-BPOCksWG.js +24 -0
- package/apps/storefront/node_modules/.vite/deps/settings-BVDV0Roj.js +189 -0
- package/apps/storefront/node_modules/.vite/deps/settings-BVDV0Roj.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/static-html-DveYqwMo.js +13 -0
- package/apps/storefront/node_modules/.vite/deps/static-html-DveYqwMo.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/toolbar-B3VIHCXg.js +458 -0
- package/apps/storefront/node_modules/.vite/deps/toolbar-B3VIHCXg.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/ui-library-BK6ricUd.js +1016 -0
- package/apps/storefront/node_modules/.vite/deps/ui-library-BK6ricUd.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/window-BvxDenKN.js +32 -0
- package/apps/storefront/node_modules/.vite/deps/window-BvxDenKN.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps/xray-YFiRUU0Z.js +113 -0
- package/apps/storefront/node_modules/.vite/deps/xray-YFiRUU0Z.js.map +1 -0
- package/apps/storefront/node_modules/.vite/deps_ssr/_metadata.json +8 -0
- package/apps/storefront/node_modules/.vite/deps_ssr/package.json +3 -0
- package/apps/storefront/src/components/chrome/MegaMenu.astro +11 -1
- package/apps/storefront/src/components/chrome/NavDropdown.astro +49 -7
- package/apps/storefront/src/components/chrome/SiteFooter.astro +29 -4
- package/apps/storefront/src/components/chrome/SiteHeader.astro +39 -6
- package/apps/storefront/src/components/chrome/UtilityNav.astro +13 -1
- package/apps/storefront/src/components/islands/MobileNav.tsx +42 -2
- package/apps/storefront/src/layouts/Layout.astro +65 -7
- package/apps/storefront/src/lib/apps/registryAccess.ts +45 -0
- package/apps/storefront/src/lib/auth/adminEntry.ts +4 -4
- package/apps/storefront/src/lib/chrome/ctaIdentity.ts +21 -0
- package/apps/storefront/src/lib/chrome/examples/tokenoftrust.chrome.example.json +22 -22
- package/apps/storefront/src/lib/chrome/trackingPlacements.ts +36 -0
- package/apps/storefront/src/lib/d1/schema-apps.ts +57 -0
- package/apps/storefront/src/lib/rawChrome.ts +73 -14
- package/apps/storefront/src/lib/rawMarketingHtml.ts +30 -0
- package/apps/storefront/src/lib/shared/capability.ts +68 -0
- package/apps/storefront/src/lib/shared/developerInvites.ts +1250 -0
- package/apps/storefront/src/lib/shared/invitePreflight.ts +123 -0
- package/apps/storefront/src/lib/storyblok/provider.ts +21 -5
- package/apps/storefront/src/lib/tracking/collectorAllowlist.ts +40 -0
- package/apps/storefront/src/lib/tracking/collectorIngest.ts +188 -0
- package/apps/storefront/src/lib/tracking/d1Control.ts +180 -0
- package/apps/storefront/src/lib/tracking/interactionCollector.ts +202 -0
- package/apps/storefront/src/lib/tracking/interactionHealth.ts +252 -0
- package/apps/storefront/src/lib/tracking/interactionSchema.ts +107 -0
- package/apps/storefront/src/lib/tracking/interactionStore.ts +0 -0
- package/apps/storefront/src/lib/tracking/pruneRollup.ts +260 -0
- package/apps/storefront/src/lib/tracking/publishSafetyNet.ts +162 -0
- package/apps/storefront/src/lib/tracking/tenantD1Registry.ts +214 -0
- package/apps/storefront/src/lib/tracking/tenantReadAccess.ts +138 -0
- package/apps/storefront/src/lib/tracking-writeback/rewriteTrackingIds.ts +175 -0
- package/apps/storefront/src/lib/tracking-writeback/writebackCandidate.ts +110 -0
- package/apps/storefront/src/lib/webhooks/deliveryEngine.ts +38 -4
- package/apps/storefront/src/lib/webhooks/emit.ts +1 -1
- package/apps/storefront/src/lib/webhooks/getDispatcher.ts +1 -1
- package/apps/storefront/src/pages/api/admin/interaction-insights.ts +101 -0
- package/apps/storefront/src/pages/api/auth/magic-exchange.ts +1 -1
- package/apps/storefront/src/pages/api/tracking/interaction.ts +123 -0
- package/apps/storefront/src/pages/index.astro +1 -1
- package/apps/storefront/src/pages/products/[handle].astro +1 -1
- package/apps/storefront/src/pages/style-guide/[tenant]/[theme].astro +33 -14
- package/apps/storefront/src/workers/pruneRollupWorker.ts +120 -0
- package/package.json +1 -1
- package/packages/public-runtime/node_modules/.bin/tsc +43 -0
- package/packages/public-runtime/node_modules/.bin/tsserver +43 -0
- package/packages/public-runtime/node_modules/.bin/vitest +43 -0
- package/packages/public-runtime/src/chrome.ts +18 -7
- package/packages/public-runtime/src/index.ts +10 -0
- package/packages/public-runtime/src/integration/index.ts +1 -0
- package/packages/public-runtime/src/integration/interaction-tracking-gate.ts +142 -0
- package/packages/public-runtime/src/interaction-tracking.ts +364 -0
- package/packages/public-runtime/src/tracking-id-derivation.ts +1008 -0
- package/pnpm-workspace.yaml +3 -0
- package/scripts/tenant/validate.mjs +306 -1
- package/scripts/tot-dev.mjs +59 -3
- package/tenants/home/public/js/storefront.js +6 -87
- package/apps/storefront/src/lib/apps/adminService.ts +0 -116
- package/apps/storefront/src/lib/apps/adminSession.ts +0 -214
- package/apps/storefront/src/lib/apps/apiAuth.ts +0 -91
- package/apps/storefront/src/lib/apps/apiRoute.ts +0 -35
- package/apps/storefront/src/lib/apps/catalogMapper.ts +0 -39
- package/apps/storefront/src/lib/apps/consentConfigStore.ts +0 -228
- package/apps/storefront/src/lib/apps/gtmMigrationInstall.ts +0 -447
- package/apps/storefront/src/lib/apps/gtmMigrationReport.ts +0 -367
- package/apps/storefront/src/lib/apps/gtmMigrationTab.ts +0 -315
- package/apps/storefront/src/lib/apps/healthAggregate.ts +0 -66
- package/apps/storefront/src/lib/apps/integrationLifecycle.ts +0 -614
- package/apps/storefront/src/lib/apps/integrationLifecycleController.ts +0 -125
- package/apps/storefront/src/lib/apps/integrationReadModel.ts +0 -563
- package/apps/storefront/src/lib/apps/integrationsTab.ts +0 -547
- package/apps/storefront/src/lib/apps/integrationsView.ts +0 -106
- package/apps/storefront/src/lib/apps/managedAnalyticsService.ts +0 -599
- package/apps/storefront/src/lib/apps/tenantIntegrationMaterialization.ts +0 -170
- package/apps/storefront/src/lib/apps/tokenIssuer.ts +0 -121
- package/apps/storefront/src/lib/apps/tokenVerifier.ts +0 -148
- package/apps/storefront/src/lib/apps/v84CleanCloneReplayContext.ts +0 -16
- package/apps/storefront/src/lib/apps/v84CloneLifecycleCacheEvidence.ts +0 -105
- package/apps/storefront/src/lib/apps/v84CloneLifecycleEvidence.ts +0 -177
- package/apps/storefront/src/lib/apps/v84CloneLifecycleMaterialization.ts +0 -251
- package/apps/storefront/src/lib/apps/v84CloneLifecycleSemantics.ts +0 -241
- package/apps/storefront/src/lib/apps/v84CloneMigrationEvidence.ts +0 -211
- package/apps/storefront/src/lib/apps/v84CloneNativeInstallEvidence.ts +0 -409
- package/apps/storefront/src/lib/apps/v84NonportableCodeCoaching.ts +0 -368
- package/apps/storefront/src/lib/apps/v84NonportableRouteContract.ts +0 -188
- package/apps/storefront/src/lib/apps/v84NonportableRouteDogfood.ts +0 -291
- package/apps/storefront/src/lib/apps/ws1ManagedAnalyticsClient.ts +0 -95
- package/apps/storefront/src/lib/content-edit/applyDiff.ts +0 -91
- package/apps/storefront/src/lib/content-edit/client.ts +0 -286
- package/apps/storefront/src/lib/content-edit/index.ts +0 -14
- package/apps/storefront/src/lib/content-edit/route.ts +0 -25
- package/apps/storefront/src/lib/content-edit/types.ts +0 -19
- package/apps/storefront/src/pages/api/content-edit/ai-edit.ts +0 -164
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/wrangler@4.128.0/node_modules/wrangler/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/wrangler@4.128.0/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/wrangler@4.128.0/node_modules/wrangler/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/wrangler@4.128.0/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../wrangler/bin/wrangler.js" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../wrangler/bin/wrangler.js" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../wrangler/bin/wrangler.js" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../wrangler/bin/wrangler.js" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../wrangler/bin/wrangler.js" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/home/runner/work/storefront/storefront/storefront-runner-dist/apps/storefront/node_modules/wrangler/bin/wrangler.js
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/wrangler@4.128.0/node_modules/wrangler/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/wrangler@4.128.0/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/wrangler@4.128.0/node_modules/wrangler/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/wrangler@4.128.0/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../wrangler/bin/wrangler.js" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../wrangler/bin/wrangler.js" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../wrangler/bin/wrangler.js" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../wrangler/bin/wrangler.js" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../wrangler/bin/wrangler.js" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/home/runner/work/storefront/storefront/storefront-runner-dist/apps/storefront/node_modules/wrangler/bin/wrangler.js
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/yaml@2.9.0/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/yaml@2.9.0/node_modules:/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../../../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/bin.mjs" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/bin.mjs" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../../../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/bin.mjs" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../../../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/bin.mjs" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../../../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/bin.mjs" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/home/runner/work/storefront/storefront/storefront-runner-dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/bin.mjs
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createElement as k, hydrate as U, render as R } from "./preact.js";
|
|
2
|
+
import { t as static_html_default } from "./static-html-DveYqwMo.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@astrojs+preact@6.0.5_@babel+core@7.29.7_@types+node@26.4.1_esbuild@0.28.2_jiti@2.7.0_p_9974d7dcb4fcbb2fdffe5819f7140fba/node_modules/@astrojs/preact/dist/client.js
|
|
4
|
+
var sharedSignalMap = /* @__PURE__ */ new Map();
|
|
5
|
+
function getIslandMaskId(element) {
|
|
6
|
+
const islandId = element.getAttribute("data-preact-island-id");
|
|
7
|
+
if (islandId !== null) {
|
|
8
|
+
const parsed = Number.parseInt(islandId, 10);
|
|
9
|
+
if (!Number.isNaN(parsed)) return parsed;
|
|
10
|
+
}
|
|
11
|
+
return element.getAttribute("uid");
|
|
12
|
+
}
|
|
13
|
+
function setVNodeMask(child, maskId) {
|
|
14
|
+
const mask = [maskId, 0];
|
|
15
|
+
child._mask = mask;
|
|
16
|
+
child.__m = mask;
|
|
17
|
+
}
|
|
18
|
+
var client_default = (element) => async (Component, props, { default: children, ...slotted }, { client }) => {
|
|
19
|
+
if (!element.hasAttribute("ssr")) return;
|
|
20
|
+
for (const [key, value] of Object.entries(slotted)) props[key] = k(static_html_default, {
|
|
21
|
+
value,
|
|
22
|
+
name: key
|
|
23
|
+
});
|
|
24
|
+
if (element.dataset.preactSignals) {
|
|
25
|
+
const { signal } = await import("./@astrojs_preact_n_@preact_signals.js");
|
|
26
|
+
let signals = JSON.parse(element.dataset.preactSignals);
|
|
27
|
+
for (const [propName, signalId] of Object.entries(signals)) if (Array.isArray(signalId)) signalId.forEach(([id, indexOrKeyInProps]) => {
|
|
28
|
+
const mapValue = props[propName][indexOrKeyInProps];
|
|
29
|
+
let valueOfSignal = mapValue;
|
|
30
|
+
if (typeof indexOrKeyInProps !== "string") {
|
|
31
|
+
valueOfSignal = mapValue[0];
|
|
32
|
+
indexOrKeyInProps = mapValue[1];
|
|
33
|
+
}
|
|
34
|
+
if (!sharedSignalMap.has(id)) {
|
|
35
|
+
const signalValue = signal(valueOfSignal);
|
|
36
|
+
sharedSignalMap.set(id, signalValue);
|
|
37
|
+
}
|
|
38
|
+
props[propName][indexOrKeyInProps] = sharedSignalMap.get(id);
|
|
39
|
+
});
|
|
40
|
+
else {
|
|
41
|
+
if (!sharedSignalMap.has(signalId)) {
|
|
42
|
+
const signalValue = signal(props[propName]);
|
|
43
|
+
sharedSignalMap.set(signalId, signalValue);
|
|
44
|
+
}
|
|
45
|
+
props[propName] = sharedSignalMap.get(signalId);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const child = k(Component, props, children != null ? k(static_html_default, { value: children }) : children);
|
|
49
|
+
const islandMaskId = getIslandMaskId(element);
|
|
50
|
+
if (islandMaskId !== null) setVNodeMask(child, islandMaskId);
|
|
51
|
+
if (client === "only") {
|
|
52
|
+
element.innerHTML = "";
|
|
53
|
+
R(child, element);
|
|
54
|
+
} else U(child, element);
|
|
55
|
+
element.addEventListener("astro:unmount", () => R(null, element), { once: true });
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { client_default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"@astrojs_preact_client__js.js","names":["h","StaticHtml","render"],"sources":["../../../../../node_modules/.pnpm/@astrojs+preact@6.0.5_@babel+core@7.29.7_@types+node@26.4.1_esbuild@0.28.2_jiti@2.7.0_p_9974d7dcb4fcbb2fdffe5819f7140fba/node_modules/@astrojs/preact/dist/client.js"],"sourcesContent":["import { h, hydrate, render } from \"preact\";\nimport StaticHtml from \"./static-html.js\";\nconst sharedSignalMap = /* @__PURE__ */ new Map();\nfunction getIslandMaskId(element) {\n const islandId = element.getAttribute(\"data-preact-island-id\");\n if (islandId !== null) {\n const parsed = Number.parseInt(islandId, 10);\n if (!Number.isNaN(parsed)) {\n return parsed;\n }\n }\n return element.getAttribute(\"uid\");\n}\nfunction setVNodeMask(child, maskId) {\n const mask = [maskId, 0];\n child._mask = mask;\n child.__m = mask;\n}\nvar client_default = (element) => async (Component, props, { default: children, ...slotted }, { client }) => {\n if (!element.hasAttribute(\"ssr\")) return;\n for (const [key, value] of Object.entries(slotted)) {\n props[key] = h(StaticHtml, { value, name: key });\n }\n let signalsRaw = element.dataset.preactSignals;\n if (signalsRaw) {\n const { signal } = await import(\"@preact/signals\");\n let signals = JSON.parse(\n element.dataset.preactSignals\n );\n for (const [propName, signalId] of Object.entries(signals)) {\n if (Array.isArray(signalId)) {\n signalId.forEach(([id, indexOrKeyInProps]) => {\n const mapValue = props[propName][indexOrKeyInProps];\n let valueOfSignal = mapValue;\n if (typeof indexOrKeyInProps !== \"string\") {\n valueOfSignal = mapValue[0];\n indexOrKeyInProps = mapValue[1];\n }\n if (!sharedSignalMap.has(id)) {\n const signalValue = signal(valueOfSignal);\n sharedSignalMap.set(id, signalValue);\n }\n props[propName][indexOrKeyInProps] = sharedSignalMap.get(id);\n });\n } else {\n if (!sharedSignalMap.has(signalId)) {\n const signalValue = signal(props[propName]);\n sharedSignalMap.set(signalId, signalValue);\n }\n props[propName] = sharedSignalMap.get(signalId);\n }\n }\n }\n const child = h(\n Component,\n props,\n children != null ? h(StaticHtml, { value: children }) : children\n );\n const islandMaskId = getIslandMaskId(element);\n if (islandMaskId !== null) {\n setVNodeMask(child, islandMaskId);\n }\n if (client === \"only\") {\n element.innerHTML = \"\";\n render(child, element);\n } else {\n hydrate(child, element);\n }\n element.addEventListener(\"astro:unmount\", () => render(null, element), { once: true });\n};\nexport {\n client_default as default\n};\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAM,kCAAkC,IAAI,IAAI;AAChD,SAAS,gBAAgB,SAAS;CAChC,MAAM,WAAW,QAAQ,aAAa,uBAAuB;CAC7D,IAAI,aAAa,MAAM;EACrB,MAAM,SAAS,OAAO,SAAS,UAAU,EAAE;EAC3C,IAAI,CAAC,OAAO,MAAM,MAAM,GACtB,OAAO;CAEX;CACA,OAAO,QAAQ,aAAa,KAAK;AACnC;AACA,SAAS,aAAa,OAAO,QAAQ;CACnC,MAAM,OAAO,CAAC,QAAQ,CAAC;CACvB,MAAM,QAAQ;CACd,MAAM,MAAM;AACd;AACA,IAAI,kBAAkB,YAAY,OAAO,WAAW,OAAO,EAAE,SAAS,UAAU,GAAG,WAAW,EAAE,aAAa;CAC3G,IAAI,CAAC,QAAQ,aAAa,KAAK,GAAG;CAClC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,OAAO,GAC/C,MAAM,OAAOA,EAAEC,qBAAY;EAAE;EAAO,MAAM;CAAI,CAAC;CAGjD,IADiB,QAAQ,QAAQ,eACjB;EACd,MAAM,EAAE,WAAW,MAAM,OAAO;EAChC,IAAI,UAAU,KAAK,MACjB,QAAQ,QAAQ,aAClB;EACA,KAAK,MAAM,CAAC,UAAU,aAAa,OAAO,QAAQ,OAAO,GACvD,IAAI,MAAM,QAAQ,QAAQ,GACxB,SAAS,SAAS,CAAC,IAAI,uBAAuB;GAC5C,MAAM,WAAW,MAAM,SAAS,CAAC;GACjC,IAAI,gBAAgB;GACpB,IAAI,OAAO,sBAAsB,UAAU;IACzC,gBAAgB,SAAS;IACzB,oBAAoB,SAAS;GAC/B;GACA,IAAI,CAAC,gBAAgB,IAAI,EAAE,GAAG;IAC5B,MAAM,cAAc,OAAO,aAAa;IACxC,gBAAgB,IAAI,IAAI,WAAW;GACrC;GACA,MAAM,SAAS,CAAC,qBAAqB,gBAAgB,IAAI,EAAE;EAC7D,CAAC;OACI;GACL,IAAI,CAAC,gBAAgB,IAAI,QAAQ,GAAG;IAClC,MAAM,cAAc,OAAO,MAAM,SAAS;IAC1C,gBAAgB,IAAI,UAAU,WAAW;GAC3C;GACA,MAAM,YAAY,gBAAgB,IAAI,QAAQ;EAChD;CAEJ;CACA,MAAM,QAAQD,EACZ,WACA,OACA,YAAY,OAAOA,EAAEC,qBAAY,EAAE,OAAO,SAAS,CAAC,IAAI,QAC1D;CACA,MAAM,eAAe,gBAAgB,OAAO;CAC5C,IAAI,iBAAiB,MACnB,aAAa,OAAO,YAAY;CAElC,IAAI,WAAW,QAAQ;EACrB,QAAQ,YAAY;EACpB,EAAO,OAAO,OAAO;CACvB,OACE,EAAQ,OAAO,OAAO;CAExB,QAAQ,iBAAiB,uBAAuBC,EAAO,MAAM,OAAO,GAAG,EAAE,MAAM,KAAK,CAAC;AACvF"}
|