@weaverse/hydrogen 3.1.11 → 3.1.12
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +29 -29
- package/dist/index.mjs +29 -29
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -180,7 +180,7 @@ interface WeaverseHydrogenParams extends Omit<WeaverseCoreParams, 'ItemConstruct
|
|
|
180
180
|
internal: Partial<WeaverseInternal>;
|
|
181
181
|
requestInfo: WeaverseLoaderRequestInfo;
|
|
182
182
|
}
|
|
183
|
-
type HydrogenComponentLoaderFunction = (args: ComponentLoaderArgs) => Promise<unknown>;
|
|
183
|
+
type HydrogenComponentLoaderFunction<T = any, E = HydrogenThemeEnv> = (args: ComponentLoaderArgs<T, E>) => Promise<unknown>;
|
|
184
184
|
interface HydrogenComponent<T extends HydrogenComponentProps = any> {
|
|
185
185
|
default: ForwardRefExoticComponent<T>;
|
|
186
186
|
schema: HydrogenComponentSchema;
|
package/dist/index.d.ts
CHANGED
|
@@ -180,7 +180,7 @@ interface WeaverseHydrogenParams extends Omit<WeaverseCoreParams, 'ItemConstruct
|
|
|
180
180
|
internal: Partial<WeaverseInternal>;
|
|
181
181
|
requestInfo: WeaverseLoaderRequestInfo;
|
|
182
182
|
}
|
|
183
|
-
type HydrogenComponentLoaderFunction = (args: ComponentLoaderArgs) => Promise<unknown>;
|
|
183
|
+
type HydrogenComponentLoaderFunction<T = any, E = HydrogenThemeEnv> = (args: ComponentLoaderArgs<T, E>) => Promise<unknown>;
|
|
184
184
|
interface HydrogenComponent<T extends HydrogenComponentProps = any> {
|
|
185
185
|
default: ForwardRefExoticComponent<T>;
|
|
186
186
|
schema: HydrogenComponentSchema;
|
package/dist/index.js
CHANGED
|
@@ -589,35 +589,35 @@ var IMAGES_PLACEHOLDERS = {
|
|
|
589
589
|
product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-3.svg",
|
|
590
590
|
product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-4.svg",
|
|
591
591
|
// Greyscale placeholders
|
|
592
|
-
gs_logo_white: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-w-
|
|
593
|
-
gs_logo_black: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-k-
|
|
594
|
-
gs_image: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-image-
|
|
595
|
-
gs_banner_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-1-
|
|
596
|
-
gs_banner_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-2-
|
|
597
|
-
gs_collection_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-hats-
|
|
598
|
-
gs_collection_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-shoes-
|
|
599
|
-
gs_collection_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-glasses-
|
|
600
|
-
gs_collection_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-lamps-
|
|
601
|
-
gs_collection_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-bags-
|
|
602
|
-
gs_collection_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-watches-
|
|
603
|
-
gs_product_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-3-
|
|
604
|
-
gs_product_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-2-
|
|
605
|
-
gs_product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-1-
|
|
606
|
-
gs_product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-2-
|
|
607
|
-
gs_product_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-1-
|
|
608
|
-
gs_product_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-1-
|
|
609
|
-
gs_product_7: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-2-
|
|
610
|
-
gs_product_8: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-3-
|
|
611
|
-
gs_product_9: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-1-
|
|
612
|
-
gs_product_10: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-2-
|
|
613
|
-
gs_product_11: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-2-
|
|
614
|
-
gs_product_12: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-3-
|
|
615
|
-
gs_product_13: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-3-
|
|
616
|
-
gs_product_14: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-3-
|
|
617
|
-
gs_product_15: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-1-
|
|
618
|
-
gs_product_16: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-3-
|
|
619
|
-
gs_product_17: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-1-
|
|
620
|
-
gs_product_18: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-2-
|
|
592
|
+
gs_logo_white: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-w-600x200.svg",
|
|
593
|
+
gs_logo_black: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-k-600x200.svg",
|
|
594
|
+
gs_image: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-image-1024x1024.svg",
|
|
595
|
+
gs_banner_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-1-1800x900.svg",
|
|
596
|
+
gs_banner_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-2-1800x900.svg",
|
|
597
|
+
gs_collection_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-hats-1024x1024.svg",
|
|
598
|
+
gs_collection_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-shoes-1024x1024.svg",
|
|
599
|
+
gs_collection_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-glasses-1024x1024.svg",
|
|
600
|
+
gs_collection_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-lamps-1024x1024.svg",
|
|
601
|
+
gs_collection_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-bags-1024x1024.svg",
|
|
602
|
+
gs_collection_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-watches-1024x1024.svg",
|
|
603
|
+
gs_product_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-3-1024x1024.svg",
|
|
604
|
+
gs_product_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-2-1024x1024.svg",
|
|
605
|
+
gs_product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-1-1024x1024.svg",
|
|
606
|
+
gs_product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-2-1024x1024.svg",
|
|
607
|
+
gs_product_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-1-1024x1024.svg",
|
|
608
|
+
gs_product_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-1-1024x1024.svg",
|
|
609
|
+
gs_product_7: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-2-1024x1024.svg",
|
|
610
|
+
gs_product_8: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-3-1024x1024.svg",
|
|
611
|
+
gs_product_9: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-1-1024x1024.svg",
|
|
612
|
+
gs_product_10: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-2-1024x1024.svg",
|
|
613
|
+
gs_product_11: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-2-1024x1024.svg",
|
|
614
|
+
gs_product_12: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-3-1024x1024.svg",
|
|
615
|
+
gs_product_13: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-3-1024x1024.svg",
|
|
616
|
+
gs_product_14: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-3-1024x1024.svg",
|
|
617
|
+
gs_product_15: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-1-1024x1024.svg",
|
|
618
|
+
gs_product_16: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-3-1024x1024.svg",
|
|
619
|
+
gs_product_17: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-1-1024x1024.svg",
|
|
620
|
+
gs_product_18: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-2-1024x1024.svg"
|
|
621
621
|
};
|
|
622
622
|
|
|
623
623
|
// src/index.ts
|
package/dist/index.mjs
CHANGED
|
@@ -559,35 +559,35 @@ var IMAGES_PLACEHOLDERS = {
|
|
|
559
559
|
product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-3.svg",
|
|
560
560
|
product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-4.svg",
|
|
561
561
|
// Greyscale placeholders
|
|
562
|
-
gs_logo_white: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-w-
|
|
563
|
-
gs_logo_black: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-k-
|
|
564
|
-
gs_image: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-image-
|
|
565
|
-
gs_banner_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-1-
|
|
566
|
-
gs_banner_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-2-
|
|
567
|
-
gs_collection_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-hats-
|
|
568
|
-
gs_collection_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-shoes-
|
|
569
|
-
gs_collection_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-glasses-
|
|
570
|
-
gs_collection_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-lamps-
|
|
571
|
-
gs_collection_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-bags-
|
|
572
|
-
gs_collection_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-watches-
|
|
573
|
-
gs_product_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-3-
|
|
574
|
-
gs_product_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-2-
|
|
575
|
-
gs_product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-1-
|
|
576
|
-
gs_product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-2-
|
|
577
|
-
gs_product_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-1-
|
|
578
|
-
gs_product_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-1-
|
|
579
|
-
gs_product_7: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-2-
|
|
580
|
-
gs_product_8: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-3-
|
|
581
|
-
gs_product_9: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-1-
|
|
582
|
-
gs_product_10: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-2-
|
|
583
|
-
gs_product_11: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-2-
|
|
584
|
-
gs_product_12: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-3-
|
|
585
|
-
gs_product_13: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-3-
|
|
586
|
-
gs_product_14: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-3-
|
|
587
|
-
gs_product_15: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-1-
|
|
588
|
-
gs_product_16: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-3-
|
|
589
|
-
gs_product_17: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-1-
|
|
590
|
-
gs_product_18: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-2-
|
|
562
|
+
gs_logo_white: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-w-600x200.svg",
|
|
563
|
+
gs_logo_black: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-k-600x200.svg",
|
|
564
|
+
gs_image: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-image-1024x1024.svg",
|
|
565
|
+
gs_banner_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-1-1800x900.svg",
|
|
566
|
+
gs_banner_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-2-1800x900.svg",
|
|
567
|
+
gs_collection_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-hats-1024x1024.svg",
|
|
568
|
+
gs_collection_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-shoes-1024x1024.svg",
|
|
569
|
+
gs_collection_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-glasses-1024x1024.svg",
|
|
570
|
+
gs_collection_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-lamps-1024x1024.svg",
|
|
571
|
+
gs_collection_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-bags-1024x1024.svg",
|
|
572
|
+
gs_collection_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-watches-1024x1024.svg",
|
|
573
|
+
gs_product_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-3-1024x1024.svg",
|
|
574
|
+
gs_product_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-2-1024x1024.svg",
|
|
575
|
+
gs_product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-1-1024x1024.svg",
|
|
576
|
+
gs_product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-2-1024x1024.svg",
|
|
577
|
+
gs_product_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-1-1024x1024.svg",
|
|
578
|
+
gs_product_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-1-1024x1024.svg",
|
|
579
|
+
gs_product_7: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-2-1024x1024.svg",
|
|
580
|
+
gs_product_8: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-3-1024x1024.svg",
|
|
581
|
+
gs_product_9: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-1-1024x1024.svg",
|
|
582
|
+
gs_product_10: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-2-1024x1024.svg",
|
|
583
|
+
gs_product_11: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-2-1024x1024.svg",
|
|
584
|
+
gs_product_12: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-3-1024x1024.svg",
|
|
585
|
+
gs_product_13: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-3-1024x1024.svg",
|
|
586
|
+
gs_product_14: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-3-1024x1024.svg",
|
|
587
|
+
gs_product_15: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-1-1024x1024.svg",
|
|
588
|
+
gs_product_16: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-3-1024x1024.svg",
|
|
589
|
+
gs_product_17: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-1-1024x1024.svg",
|
|
590
|
+
gs_product_18: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-2-1024x1024.svg"
|
|
591
591
|
};
|
|
592
592
|
|
|
593
593
|
// src/index.ts
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@weaverse/hydrogen",
|
|
3
3
|
"author": "Weaverse Team",
|
|
4
4
|
"description": "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.1.12",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"typings": "dist/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"singleQuote": true
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@weaverse/react": "3.1.
|
|
36
|
+
"@weaverse/react": "3.1.12",
|
|
37
37
|
"react-error-boundary": "^4.0.13"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|