@weaverse/hydrogen 5.21.0 → 5.21.1

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.
@@ -22,67 +22,6 @@ import { isBrowser, isIframe, useChildInstances, useItemInstance, useParentInsta
22
22
  * ```
23
23
  */
24
24
  export declare function getSelectedProductOptions(request: Request): SelectedOptionInput[];
25
- /** Placeholder asset URLs for component schema defaults and theme previews. */
26
- export declare const IMAGES_PLACEHOLDERS: {
27
- /** White Weaverse logo placeholder. */
28
- logo_white: string;
29
- /** Black Weaverse logo placeholder. */
30
- logo_black: string;
31
- /** Generic square image placeholder. */
32
- image: string;
33
- /** First landscape banner placeholder. */
34
- banner_1: string;
35
- /** Second landscape banner placeholder. */
36
- banner_2: string;
37
- /** Hats collection placeholder. */
38
- collection_1: string;
39
- /** Shoes collection placeholder. */
40
- collection_2: string;
41
- /** Glasses collection placeholder. */
42
- collection_3: string;
43
- /** Lamps collection placeholder. */
44
- collection_4: string;
45
- /** Bags collection placeholder. */
46
- collection_5: string;
47
- /** Watches collection placeholder. */
48
- collection_6: string;
49
- /** Third watch product placeholder. */
50
- product_1: string;
51
- /** Second bag product placeholder. */
52
- product_2: string;
53
- /** First shoe product placeholder. */
54
- product_3: string;
55
- /** Second lamp product placeholder. */
56
- product_4: string;
57
- /** First glasses product placeholder. */
58
- product_5: string;
59
- /** First lamp product placeholder. */
60
- product_6: string;
61
- /** Second glasses product placeholder. */
62
- product_7: string;
63
- /** Third hat product placeholder. */
64
- product_8: string;
65
- /** First bag product placeholder. */
66
- product_9: string;
67
- /** Second shoe product placeholder. */
68
- product_10: string;
69
- /** Second hat product placeholder. */
70
- product_11: string;
71
- /** Third glasses product placeholder. */
72
- product_12: string;
73
- /** Third shoe product placeholder. */
74
- product_13: string;
75
- /** Third bag product placeholder. */
76
- product_14: string;
77
- /** First hat product placeholder. */
78
- product_15: string;
79
- /** Third lamp product placeholder. */
80
- product_16: string;
81
- /** First watch product placeholder. */
82
- product_17: string;
83
- /** Second watch product placeholder. */
84
- product_18: string;
85
- };
86
25
  export * from '@weaverse/schema';
87
26
  export * from './components';
88
27
  export { getNestedKey, interpolate, ThemeTextProvider, type ThemeTextProviderProps, type ThemeTextValue, type TranslateFunction, TranslationProvider, type TranslationProviderProps, type TranslationValue, useThemeText, useTranslation, } from './hooks/translation-context';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AACjF,OAAO,EACL,SAAS,EACT,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACZ,MAAM,iBAAiB,CAAA;AAExB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,GACf,mBAAmB,EAAE,CAKvB;AAED,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB;IAC9B,uCAAuC;;IAGvC,uCAAuC;;IAGvC,wCAAwC;;IAGxC,0CAA0C;;IAG1C,2CAA2C;;IAG3C,mCAAmC;;IAGnC,oCAAoC;;IAGpC,sCAAsC;;IAGtC,oCAAoC;;IAGpC,mCAAmC;;IAGnC,sCAAsC;;IAGtC,uCAAuC;;IAGvC,sCAAsC;;IAGtC,sCAAsC;;IAGtC,uCAAuC;;IAGvC,yCAAyC;;IAGzC,sCAAsC;;IAGtC,0CAA0C;;IAG1C,qCAAqC;;IAGrC,qCAAqC;;IAGrC,uCAAuC;;IAGvC,sCAAsC;;IAGtC,yCAAyC;;IAGzC,sCAAsC;;IAGtC,qCAAqC;;IAGrC,qCAAqC;;IAGrC,sCAAsC;;IAGtC,uCAAuC;;IAGvC,wCAAwC;;CAGzC,CAAA;AAGD,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,OAAO,EACL,YAAY,EACZ,WAAW,EAEX,iBAAi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K,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,YAAY,EACZ,cAAc,GACf,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EACL,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,sBAAsB,EACtB,KAAK,mBAAmB,GACzB,MAAM,mCAAmC,CAAA;AAE1C,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5E,YAAY,EACV,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,kCAAkC,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AAEjC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,WAAW,GACZ,CAAA"}
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": "5.21.0",
5
+ "version": "5.21.1",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "typings": "dist/types/index.d.ts",
@@ -46,8 +46,8 @@
46
46
  "dependencies": {
47
47
  "@shopify/hydrogen": ">=2025.5",
48
48
  "@shopify/remix-oxygen": "3",
49
- "@weaverse/react": "5.21.0",
50
- "@weaverse/schema": "0.14.0",
49
+ "@weaverse/react": "5.21.1",
50
+ "@weaverse/schema": "0.16.0",
51
51
  "react": ">=19",
52
52
  "react-dom": ">=19",
53
53
  "react-error-boundary": "^6",
package/src/index.ts CHANGED
@@ -40,97 +40,6 @@ export function getSelectedProductOptions(
40
40
  )
41
41
  }
42
42
 
43
- /** Placeholder asset URLs for component schema defaults and theme previews. */
44
- export const IMAGES_PLACEHOLDERS = {
45
- /** White Weaverse logo placeholder. */
46
- logo_white:
47
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-w-600x200.svg',
48
- /** Black Weaverse logo placeholder. */
49
- logo_black:
50
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-k-600x200.svg',
51
- /** Generic square image placeholder. */
52
- image:
53
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-image-1024x1024.svg',
54
- /** First landscape banner placeholder. */
55
- banner_1:
56
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-1-1800x900.svg',
57
- /** Second landscape banner placeholder. */
58
- banner_2:
59
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-2-1800x900.svg',
60
- /** Hats collection placeholder. */
61
- collection_1:
62
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-hats-1024x1024.svg',
63
- /** Shoes collection placeholder. */
64
- collection_2:
65
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-shoes-1024x1024.svg',
66
- /** Glasses collection placeholder. */
67
- collection_3:
68
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-glasses-1024x1024.svg',
69
- /** Lamps collection placeholder. */
70
- collection_4:
71
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-lamps-1024x1024.svg',
72
- /** Bags collection placeholder. */
73
- collection_5:
74
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-bags-1024x1024.svg',
75
- /** Watches collection placeholder. */
76
- collection_6:
77
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-watches-1024x1024.svg',
78
- /** Third watch product placeholder. */
79
- product_1:
80
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-3-1024x1024.svg',
81
- /** Second bag product placeholder. */
82
- product_2:
83
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-2-1024x1024.svg',
84
- /** First shoe product placeholder. */
85
- product_3:
86
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-1-1024x1024.svg',
87
- /** Second lamp product placeholder. */
88
- product_4:
89
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-2-1024x1024.svg',
90
- /** First glasses product placeholder. */
91
- product_5:
92
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-1-1024x1024.svg',
93
- /** First lamp product placeholder. */
94
- product_6:
95
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-1-1024x1024.svg',
96
- /** Second glasses product placeholder. */
97
- product_7:
98
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-2-1024x1024.svg',
99
- /** Third hat product placeholder. */
100
- product_8:
101
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-3-1024x1024.svg',
102
- /** First bag product placeholder. */
103
- product_9:
104
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-1-1024x1024.svg',
105
- /** Second shoe product placeholder. */
106
- product_10:
107
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-2-1024x1024.svg',
108
- /** Second hat product placeholder. */
109
- product_11:
110
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-2-1024x1024.svg',
111
- /** Third glasses product placeholder. */
112
- product_12:
113
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-3-1024x1024.svg',
114
- /** Third shoe product placeholder. */
115
- product_13:
116
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-3-1024x1024.svg',
117
- /** Third bag product placeholder. */
118
- product_14:
119
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-3-1024x1024.svg',
120
- /** First hat product placeholder. */
121
- product_15:
122
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-1-1024x1024.svg',
123
- /** Third lamp product placeholder. */
124
- product_16:
125
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-3-1024x1024.svg',
126
- /** First watch product placeholder. */
127
- product_17:
128
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-1-1024x1024.svg',
129
- /** Second watch product placeholder. */
130
- product_18:
131
- 'https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-2-1024x1024.svg',
132
- }
133
-
134
43
  // Re-export all types and utilities from schema package
135
44
  export * from '@weaverse/schema'
136
45
  export * from './components'