@salla.sa/twilight-theme-engine 1.0.43 → 1.0.45
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/dist/{AddToCartForm-NH4IGB43.js → AddToCartForm-QBPE4QIU.js} +3 -3
- package/dist/{AddToCartForm-NH4IGB43.js.map → AddToCartForm-QBPE4QIU.js.map} +1 -1
- package/dist/{BlogAuthorPage-2Z6K4MCA.js → BlogAuthorPage-X3I7KLML.js} +6 -6
- package/dist/{BlogAuthorPage-2Z6K4MCA.js.map → BlogAuthorPage-X3I7KLML.js.map} +1 -1
- package/dist/{BlogCategoryPage-6X5EY6ZJ.js → BlogCategoryPage-F3ORUZAF.js} +6 -6
- package/dist/{BlogCategoryPage-6X5EY6ZJ.js.map → BlogCategoryPage-F3ORUZAF.js.map} +1 -1
- package/dist/{BlogPage-TWGMJRZI.js → BlogPage-G7AOQDP2.js} +5 -5
- package/dist/{BlogPage-TWGMJRZI.js.map → BlogPage-G7AOQDP2.js.map} +1 -1
- package/dist/{BlogSinglePage-SACFUYST.js → BlogSinglePage-VP4ZLQPA.js} +5 -5
- package/dist/{BlogSinglePage-SACFUYST.js.map → BlogSinglePage-VP4ZLQPA.js.map} +1 -1
- package/dist/{BlogTagPage-WHXFTE7Q.js → BlogTagPage-WCHB3VL2.js} +6 -6
- package/dist/{BlogTagPage-WHXFTE7Q.js.map → BlogTagPage-WCHB3VL2.js.map} +1 -1
- package/dist/{BrandsPage-Q5VULECJ.js → BrandsPage-MR3RNHNS.js} +5 -5
- package/dist/{BrandsPage-Q5VULECJ.js.map → BrandsPage-MR3RNHNS.js.map} +1 -1
- package/dist/{Breadcrumb-C65V73N4.js → Breadcrumb-QCWPUUEQ.js} +5 -5
- package/dist/{Breadcrumb-C65V73N4.js.map → Breadcrumb-QCWPUUEQ.js.map} +1 -1
- package/dist/{CartItem-SWCPZ35T.js → CartItem-M2FEFI23.js} +5 -5
- package/dist/{CartItem-SWCPZ35T.js.map → CartItem-M2FEFI23.js.map} +1 -1
- package/dist/{CartSummary-7DVZSOKO.js → CartSummary-RND3CQYW.js} +5 -5
- package/dist/{CartSummary-7DVZSOKO.js.map → CartSummary-RND3CQYW.js.map} +1 -1
- package/dist/{Copyright-23FDPXXV.js → Copyright-YVUGHPR6.js} +3 -3
- package/dist/{Copyright-23FDPXXV.js.map → Copyright-YVUGHPR6.js.map} +1 -1
- package/dist/{CustomerLayout-I3BVHHGA.js → CustomerLayout-B7HTCSMV.js} +5 -5
- package/dist/{CustomerLayout-I3BVHHGA.js.map → CustomerLayout-B7HTCSMV.js.map} +1 -1
- package/dist/{Footer-V37SDC6R.js → Footer-JOBYWULB.js} +5 -5
- package/dist/{Footer-V37SDC6R.js.map → Footer-JOBYWULB.js.map} +1 -1
- package/dist/{Header-76Z364PD.js → Header-TE35DMNI.js} +4 -4
- package/dist/{Header-76Z364PD.js.map → Header-TE35DMNI.js.map} +1 -1
- package/dist/{LoyaltyPage-4GSERCUY.js → LoyaltyPage-26NMNBJV.js} +5 -5
- package/dist/{LoyaltyPage-4GSERCUY.js.map → LoyaltyPage-26NMNBJV.js.map} +1 -1
- package/dist/{MainMenu-UQBRVPCS.js → MainMenu-4ZZEDUBZ.js} +3 -3
- package/dist/{MainMenu-UQBRVPCS.js.map → MainMenu-4ZZEDUBZ.js.map} +1 -1
- package/dist/{MasterLayout-CJ5P2E7F.js → MasterLayout-AELGECHE.js} +5 -5
- package/dist/{MasterLayout-CJ5P2E7F.js.map → MasterLayout-AELGECHE.js.map} +1 -1
- package/dist/{MobileMenu-UJXU5TJ7.js → MobileMenu-GFEOQWO6.js} +5 -5
- package/dist/{MobileMenu-UJXU5TJ7.js.map → MobileMenu-GFEOQWO6.js.map} +1 -1
- package/dist/{NotificationsPage-BWENG66G.js → NotificationsPage-226QGY4Q.js} +5 -5
- package/dist/{NotificationsPage-BWENG66G.js.map → NotificationsPage-226QGY4Q.js.map} +1 -1
- package/dist/{OrderSinglePage-KAZANLL7.js → OrderSinglePage-44VBTQQS.js} +5 -5
- package/dist/{OrderSinglePage-KAZANLL7.js.map → OrderSinglePage-44VBTQQS.js.map} +1 -1
- package/dist/{OrdersPage-FUUV76JR.js → OrdersPage-NUQUDEAK.js} +5 -5
- package/dist/{OrdersPage-FUUV76JR.js.map → OrdersPage-NUQUDEAK.js.map} +1 -1
- package/dist/{PageSingle-KPFJAKSV.js → PageSingle-76O4HAYZ.js} +3 -3
- package/dist/{PageSingle-KPFJAKSV.js.map → PageSingle-76O4HAYZ.js.map} +1 -1
- package/dist/{ProductDetails-B3C4BN4A.js → ProductDetails-WTXNHY2S.js} +3 -3
- package/dist/{ProductDetails-B3C4BN4A.js.map → ProductDetails-WTXNHY2S.js.map} +1 -1
- package/dist/{ProfilePage-6TFJBL47.js → ProfilePage-K7ZEU6IF.js} +5 -5
- package/dist/{ProfilePage-6TFJBL47.js.map → ProfilePage-K7ZEU6IF.js.map} +1 -1
- package/dist/{SeoCartWidget-7G7T4REB.js → SeoCartWidget-6LY5YQKA.js} +5 -5
- package/dist/{SeoCartWidget-7G7T4REB.js.map → SeoCartWidget-6LY5YQKA.js.map} +1 -1
- package/dist/{SettingsPage-IPLRL5NC.js → SettingsPage-NDZAS5PQ.js} +5 -5
- package/dist/{SettingsPage-IPLRL5NC.js.map → SettingsPage-NDZAS5PQ.js.map} +1 -1
- package/dist/{StoreClosedNotification-KNBFQMGU.js → StoreClosedNotification-CU2OVCIG.js} +6 -6
- package/dist/{StoreClosedNotification-KNBFQMGU.js.map → StoreClosedNotification-CU2OVCIG.js.map} +1 -1
- package/dist/{TestimonialsPage-5T7P4DZ7.js → TestimonialsPage-ICQGRIXS.js} +3 -3
- package/dist/{TestimonialsPage-5T7P4DZ7.js.map → TestimonialsPage-ICQGRIXS.js.map} +1 -1
- package/dist/{ThankYouPage-5HMXISUX.js → ThankYouPage-WIHRO3DC.js} +5 -5
- package/dist/{ThankYouPage-5HMXISUX.js.map → ThankYouPage-WIHRO3DC.js.map} +1 -1
- package/dist/{WalletPage-UVBA26JZ.js → WalletPage-YD4TKPGA.js} +5 -5
- package/dist/{WalletPage-UVBA26JZ.js.map → WalletPage-YD4TKPGA.js.map} +1 -1
- package/dist/{WishlistPage-Z6TZWYOH.js → WishlistPage-3UNTMS2B.js} +5 -5
- package/dist/{WishlistPage-Z6TZWYOH.js.map → WishlistPage-3UNTMS2B.js.map} +1 -1
- package/dist/{chunk-Q4OG2KBE.js → chunk-3644MRQI.js} +3 -3
- package/dist/{chunk-Q4OG2KBE.js.map → chunk-3644MRQI.js.map} +1 -1
- package/dist/{chunk-BAJOX5CP.js → chunk-AGT5BKY4.js} +4 -4
- package/dist/{chunk-BAJOX5CP.js.map → chunk-AGT5BKY4.js.map} +1 -1
- package/dist/{chunk-L5UMBNJE.js → chunk-CG3AM4DH.js} +4 -4
- package/dist/{chunk-L5UMBNJE.js.map → chunk-CG3AM4DH.js.map} +1 -1
- package/dist/{chunk-G4BW3B3H.js → chunk-G4M73JU5.js} +6 -6
- package/dist/{chunk-G4BW3B3H.js.map → chunk-G4M73JU5.js.map} +1 -1
- package/dist/{chunk-LFACK3UD.js → chunk-G6F5DCCP.js} +3 -3
- package/dist/{chunk-LFACK3UD.js.map → chunk-G6F5DCCP.js.map} +1 -1
- package/dist/chunk-I2UBYEUG.js +14 -0
- package/dist/{chunk-6F4C65K4.js.map → chunk-I2UBYEUG.js.map} +1 -1
- package/dist/{chunk-2L6EBIYS.js → chunk-J5J64BAN.js} +4 -4
- package/dist/{chunk-2L6EBIYS.js.map → chunk-J5J64BAN.js.map} +1 -1
- package/dist/{chunk-H3WBKDQJ.js → chunk-MLIJWD6B.js} +3 -3
- package/dist/{chunk-H3WBKDQJ.js.map → chunk-MLIJWD6B.js.map} +1 -1
- package/dist/{chunk-SA2ZPDWP.js → chunk-PNXUBS5X.js} +8 -8
- package/dist/{chunk-SA2ZPDWP.js.map → chunk-PNXUBS5X.js.map} +1 -1
- package/dist/{chunk-W2N4OT5K.js → chunk-QIC6DSWU.js} +3 -3
- package/dist/{chunk-W2N4OT5K.js.map → chunk-QIC6DSWU.js.map} +1 -1
- package/dist/{chunk-Y3ZCJP6L.js → chunk-UWWYR3UX.js} +5 -5
- package/dist/{chunk-Y3ZCJP6L.js.map → chunk-UWWYR3UX.js.map} +1 -1
- package/dist/components/cart/index.js +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/drawer/index.js +3 -3
- package/dist/components/home/index.js +5 -5
- package/dist/components/layout/index.js +5 -5
- package/dist/components/product/index.js +4 -4
- package/dist/components/store/index.js +5 -5
- package/dist/{document-class-ICBXNUY4.js → document-class-G34XZMVK.js} +3 -3
- package/dist/{document-class-ICBXNUY4.js.map → document-class-G34XZMVK.js.map} +1 -1
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/useGtm.js +3 -3
- package/dist/hooks/useMoney.js +3 -3
- package/dist/hooks/useStore.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{not-found-DMEPEPOF.js → not-found-6PX2EO7T.js} +5 -5
- package/dist/{not-found-DMEPEPOF.js.map → not-found-6PX2EO7T.js.map} +1 -1
- package/dist/providers/index.js +3 -3
- package/dist/routes/account/orders.js +1 -1
- package/dist/routes/account.js +6 -6
- package/dist/routes/blog.js +5 -5
- package/dist/routes/brands.js +1 -1
- package/dist/routes/cart.js +7 -7
- package/dist/routes/home.js +6 -6
- package/dist/routes/loyalty.js +1 -1
- package/dist/routes/page.js +1 -1
- package/dist/routes/product-listing.js +5 -5
- package/dist/routes/product.js +5 -5
- package/dist/routes/testimonials.js +1 -1
- package/dist/routes/thank-you.js +1 -1
- package/dist/skeleton.js +6 -6
- package/dist/tanstack.js +2 -2
- package/dist/vite/adapters/tanstack.adapter.d.ts.map +1 -1
- package/dist/vite/index.js +38 -0
- package/dist/vite/index.js.map +1 -1
- package/dist/vite/plugins/assets-base.plugin.d.ts +65 -0
- package/dist/vite/plugins/assets-base.plugin.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-6F4C65K4.js +0 -14
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Where a built theme's client files are served from.
|
|
3
|
+
*
|
|
4
|
+
* A deployed theme is a worker, and the worker carries its client bundle as its
|
|
5
|
+
* own static assets — so by default every script, stylesheet and font a page
|
|
6
|
+
* asks for is answered by the storefront's hostname
|
|
7
|
+
* (`https://<store>/assets/app-abc.js`). The platform can put those same bytes
|
|
8
|
+
* on a CDN instead, and when it does it tells the build where, through
|
|
9
|
+
* {@link ASSETS_BASE_URL_ENV}.
|
|
10
|
+
*
|
|
11
|
+
* The whole mechanism is Vite's `base`, set to an absolute URL, and that is
|
|
12
|
+
* enough on its own because every emitter of an asset URL already reads it:
|
|
13
|
+
*
|
|
14
|
+
* - Vite writes it into the client bundle — the dynamic-import preload helper
|
|
15
|
+
* and every `url(...)` in the emitted CSS;
|
|
16
|
+
* - TanStack Start builds its manifest from it, so the `<script>`, `<link>` and
|
|
17
|
+
* `modulepreload` tags in the server-rendered HTML carry it too.
|
|
18
|
+
*
|
|
19
|
+
* And it moves nothing that must stay on the storefront. Start resolves an
|
|
20
|
+
* absolute `base` to a router basepath of `/` and keeps `/_serverFn` relative to
|
|
21
|
+
* that, so routing and server functions still answer on the store's own host.
|
|
22
|
+
* (`normalizePublicBase` / `deriveRouterBasepath` in `@tanstack/start-plugin-core`.)
|
|
23
|
+
*
|
|
24
|
+
* Build only. `vite dev` serves modules from its own origin, and a dev server
|
|
25
|
+
* that tried to load them from a CDN would load nothing.
|
|
26
|
+
*/
|
|
27
|
+
import type { Plugin } from 'vite';
|
|
28
|
+
/**
|
|
29
|
+
* Set by the build service on `pnpm build`, never by a theme.
|
|
30
|
+
*
|
|
31
|
+
* An environment variable rather than a plugin option, because the value is
|
|
32
|
+
* the platform's decision about where it hosts files, not the theme's: a theme's
|
|
33
|
+
* `vite.config.ts` is partner code, and the one input the platform controls at
|
|
34
|
+
* build time is the environment the command runs in.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ASSETS_BASE_URL_ENV = "TWILIGHT_ASSETS_BASE_URL";
|
|
37
|
+
/**
|
|
38
|
+
* The value as a Vite `base`: absolute, no query or fragment, ending in `/`.
|
|
39
|
+
*
|
|
40
|
+
* `undefined` for unset or blank, which leaves `base` exactly as the theme has
|
|
41
|
+
* it. Anything else that is not a usable URL **throws** rather than being
|
|
42
|
+
* ignored. The variable is only ever set by the platform, so a malformed one is
|
|
43
|
+
* the platform's bug, and ignoring it would produce the worst version of that
|
|
44
|
+
* bug: a build that succeeds, deploys, and serves every asset from the wrong
|
|
45
|
+
* place with nothing in the log to say so.
|
|
46
|
+
*
|
|
47
|
+
* The trailing slash is added, not required. Vite joins `base` and a file name
|
|
48
|
+
* by concatenation, so `https://cdn/x` + `assets/a.js` is `https://cdn/xassets/a.js`.
|
|
49
|
+
*/
|
|
50
|
+
export declare function resolveAssetsBaseUrl(raw: string | undefined): string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Sets Vite's `base` from {@link ASSETS_BASE_URL_ENV} on a build.
|
|
53
|
+
*
|
|
54
|
+
* `enforce: 'pre'` and registered ahead of `tanstackStart`, and both halves are
|
|
55
|
+
* needed. Vite runs `config` hooks in order and merges each result before
|
|
56
|
+
* calling the next, and Start's own config hook — also `pre` — reads `base` once
|
|
57
|
+
* to build its manifest. Registered after it, Vite would emit CDN URLs into the
|
|
58
|
+
* bundle while Start wrote root-relative ones into the HTML, and a page would
|
|
59
|
+
* load its entry from one place and its chunks from another.
|
|
60
|
+
*
|
|
61
|
+
* It overrides a `base` the theme set itself, on purpose: when the platform has
|
|
62
|
+
* uploaded the files to a CDN, that is where they are.
|
|
63
|
+
*/
|
|
64
|
+
export declare function assetsBasePlugin(env?: NodeJS.ProcessEnv): Plugin;
|
|
65
|
+
//# sourceMappingURL=assets-base.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets-base.plugin.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/assets-base.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CA4BhF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAW7E"}
|
package/package.json
CHANGED
package/dist/chunk-6F4C65K4.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { lazy } from 'react';
|
|
2
|
-
|
|
3
|
-
// src/components/cart/lazy.ts
|
|
4
|
-
var LazyCartItem = lazy(() => import('./CartItem-SWCPZ35T.js').then((m) => ({ default: m.CartItem })));
|
|
5
|
-
var LazyCartSummary = lazy(
|
|
6
|
-
() => import('./CartSummary-7DVZSOKO.js').then((m) => ({ default: m.CartSummary }))
|
|
7
|
-
);
|
|
8
|
-
var LazySeoCartWidget = lazy(
|
|
9
|
-
() => import('./SeoCartWidget-7G7T4REB.js').then((m) => ({ default: m.SeoCartWidget }))
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
export { LazyCartItem, LazyCartSummary, LazySeoCartWidget };
|
|
13
|
-
//# sourceMappingURL=chunk-6F4C65K4.js.map
|
|
14
|
-
//# sourceMappingURL=chunk-6F4C65K4.js.map
|