@weaverse/hydrogen 3.1.14 → 3.1.16
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/LICENSE +1 -1
- package/dist/index.d.mts +26 -40
- package/dist/index.d.ts +26 -40
- package/dist/index.js +29 -44
- package/dist/index.mjs +29 -44
- package/package.json +2 -2
package/LICENSE
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -71,7 +71,7 @@ interface AllCacheOptions {
|
|
|
71
71
|
sMaxAge?: number;
|
|
72
72
|
staleIfError?: number;
|
|
73
73
|
}
|
|
74
|
-
type ComponentLoaderArgs<T = any, E =
|
|
74
|
+
type ComponentLoaderArgs<T = any, E = any> = {
|
|
75
75
|
data: T;
|
|
76
76
|
weaverse: Omit<WeaverseClient, 'env'> & {
|
|
77
77
|
env: E;
|
|
@@ -93,7 +93,7 @@ interface HydrogenComponentData extends ElementData {
|
|
|
93
93
|
updatedAt?: string;
|
|
94
94
|
deletedAt?: string;
|
|
95
95
|
}
|
|
96
|
-
type HydrogenToolbarAction = 'general-settings' | '
|
|
96
|
+
type HydrogenToolbarAction = 'general-settings' | 'global-section' | 'move-up' | 'move-down' | 'toggle-visibility' | 'duplicate' | 'delete';
|
|
97
97
|
interface HydrogenComponentSchema extends ElementSchema {
|
|
98
98
|
childTypes?: string[];
|
|
99
99
|
inspector: InspectorGroup[];
|
|
@@ -172,7 +172,7 @@ interface HydrogenElement {
|
|
|
172
172
|
Component: ForwardRefExoticComponent<HydrogenComponentProps>;
|
|
173
173
|
type: string;
|
|
174
174
|
schema?: HydrogenComponentSchema;
|
|
175
|
-
loader?:
|
|
175
|
+
loader?: (args: ComponentLoaderArgs) => Promise<unknown>;
|
|
176
176
|
}
|
|
177
177
|
interface WeaverseHydrogenParams extends Omit<WeaverseCoreParams, 'ItemConstructor'> {
|
|
178
178
|
data: HydrogenPageData;
|
|
@@ -180,11 +180,10 @@ interface WeaverseHydrogenParams extends Omit<WeaverseCoreParams, 'ItemConstruct
|
|
|
180
180
|
internal: Partial<WeaverseInternal>;
|
|
181
181
|
requestInfo: WeaverseLoaderRequestInfo;
|
|
182
182
|
}
|
|
183
|
-
type HydrogenComponentLoaderFunction<T = any, E = HydrogenThemeEnv> = (args: ComponentLoaderArgs<T, E>) => Promise<unknown>;
|
|
184
183
|
interface HydrogenComponent<T extends HydrogenComponentProps = any> {
|
|
185
184
|
default: ForwardRefExoticComponent<T>;
|
|
186
185
|
schema: HydrogenComponentSchema;
|
|
187
|
-
loader?:
|
|
186
|
+
loader?: (args: ComponentLoaderArgs) => Promise<unknown>;
|
|
188
187
|
}
|
|
189
188
|
type WeaverseStudioQueries = {
|
|
190
189
|
weaverseProjectId: string;
|
|
@@ -340,48 +339,35 @@ declare function resizeShopifyImage(imageURL: string, size: string): string;
|
|
|
340
339
|
declare function getSelectedProductOptions(request: Request): SelectedOptionInput[];
|
|
341
340
|
|
|
342
341
|
declare let IMAGES_PLACEHOLDERS: {
|
|
342
|
+
logo_white: string;
|
|
343
|
+
logo_black: string;
|
|
343
344
|
image: string;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
blog_1: string;
|
|
347
|
-
blog_2: string;
|
|
348
|
-
blog_3: string;
|
|
345
|
+
banner_1: string;
|
|
346
|
+
banner_2: string;
|
|
349
347
|
collection_1: string;
|
|
350
348
|
collection_2: string;
|
|
351
349
|
collection_3: string;
|
|
350
|
+
collection_4: string;
|
|
351
|
+
collection_5: string;
|
|
352
|
+
collection_6: string;
|
|
352
353
|
product_1: string;
|
|
353
354
|
product_2: string;
|
|
354
355
|
product_3: string;
|
|
355
356
|
product_4: string;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
gs_product_4: string;
|
|
371
|
-
gs_product_5: string;
|
|
372
|
-
gs_product_6: string;
|
|
373
|
-
gs_product_7: string;
|
|
374
|
-
gs_product_8: string;
|
|
375
|
-
gs_product_9: string;
|
|
376
|
-
gs_product_10: string;
|
|
377
|
-
gs_product_11: string;
|
|
378
|
-
gs_product_12: string;
|
|
379
|
-
gs_product_13: string;
|
|
380
|
-
gs_product_14: string;
|
|
381
|
-
gs_product_15: string;
|
|
382
|
-
gs_product_16: string;
|
|
383
|
-
gs_product_17: string;
|
|
384
|
-
gs_product_18: string;
|
|
357
|
+
product_5: string;
|
|
358
|
+
product_6: string;
|
|
359
|
+
product_7: string;
|
|
360
|
+
product_8: string;
|
|
361
|
+
product_9: string;
|
|
362
|
+
product_10: string;
|
|
363
|
+
product_11: string;
|
|
364
|
+
product_12: string;
|
|
365
|
+
product_13: string;
|
|
366
|
+
product_14: string;
|
|
367
|
+
product_15: string;
|
|
368
|
+
product_16: string;
|
|
369
|
+
product_17: string;
|
|
370
|
+
product_18: string;
|
|
385
371
|
};
|
|
386
372
|
|
|
387
373
|
declare class WeaverseHydrogen extends Weaverse {
|
|
@@ -402,4 +388,4 @@ declare class WeaverseHydrogenItem extends WeaverseItemStore {
|
|
|
402
388
|
get _schemaData(): Record<string, any>;
|
|
403
389
|
}
|
|
404
390
|
|
|
405
|
-
export { type AllCacheOptions, type BasicInput, type ComponentLoaderArgs, type CreateWeaverseClientArgs, type FetchProjectPayload, type FetchProjectRequestBody, type FetchWithCacheOptions, type HeadingInput, type HeadingInputType, type HydrogenComponent, type HydrogenComponentData, type
|
|
391
|
+
export { type AllCacheOptions, type BasicInput, type ComponentLoaderArgs, type CreateWeaverseClientArgs, type FetchProjectPayload, type FetchProjectRequestBody, type FetchWithCacheOptions, type HeadingInput, type HeadingInputType, type HydrogenComponent, type HydrogenComponentData, type HydrogenComponentPresets, type HydrogenComponentProps, type HydrogenComponentSchema, type HydrogenElement, type HydrogenPageAssignment, type HydrogenPageConfigs, type HydrogenPageData, type HydrogenProjectConfig, type HydrogenProjectType, type HydrogenThemeEnv, type HydrogenThemeInfo, type HydrogenThemeSchema, type HydrogenThemeSettings, type HydrogenToolbarAction, type I18nLocale, IMAGES_PLACEHOLDERS, type InspectorGroup, type LoadPageParams, type Locale, type Localizations, type PageAssignmentParams, type PageType, type PublicEnv, type RootRouteData, type RouteLoaderArgs, type WeaverseArticle, type WeaverseBlog, WeaverseClient, type WeaverseClientArgs, type WeaverseCollection, WeaverseHydrogen, WeaverseHydrogenItem, type WeaverseHydrogenParams, WeaverseHydrogenRoot, type WeaverseHydrogenRootProps, type WeaverseInternal, type WeaverseLoaderData, type WeaverseLoaderRequestInfo, type WeaverseProduct, type WeaverseProjectConfigs, type WeaverseStorefrontData, type WeaverseStudioQueries, type WeaverseThemeConfigs, generateDataFromSchema, getRequestQueries, getSelectedProductOptions, getWeaverseConfigs, resizeShopifyImage, useThemeSettings, withWeaverse };
|
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ interface AllCacheOptions {
|
|
|
71
71
|
sMaxAge?: number;
|
|
72
72
|
staleIfError?: number;
|
|
73
73
|
}
|
|
74
|
-
type ComponentLoaderArgs<T = any, E =
|
|
74
|
+
type ComponentLoaderArgs<T = any, E = any> = {
|
|
75
75
|
data: T;
|
|
76
76
|
weaverse: Omit<WeaverseClient, 'env'> & {
|
|
77
77
|
env: E;
|
|
@@ -93,7 +93,7 @@ interface HydrogenComponentData extends ElementData {
|
|
|
93
93
|
updatedAt?: string;
|
|
94
94
|
deletedAt?: string;
|
|
95
95
|
}
|
|
96
|
-
type HydrogenToolbarAction = 'general-settings' | '
|
|
96
|
+
type HydrogenToolbarAction = 'general-settings' | 'global-section' | 'move-up' | 'move-down' | 'toggle-visibility' | 'duplicate' | 'delete';
|
|
97
97
|
interface HydrogenComponentSchema extends ElementSchema {
|
|
98
98
|
childTypes?: string[];
|
|
99
99
|
inspector: InspectorGroup[];
|
|
@@ -172,7 +172,7 @@ interface HydrogenElement {
|
|
|
172
172
|
Component: ForwardRefExoticComponent<HydrogenComponentProps>;
|
|
173
173
|
type: string;
|
|
174
174
|
schema?: HydrogenComponentSchema;
|
|
175
|
-
loader?:
|
|
175
|
+
loader?: (args: ComponentLoaderArgs) => Promise<unknown>;
|
|
176
176
|
}
|
|
177
177
|
interface WeaverseHydrogenParams extends Omit<WeaverseCoreParams, 'ItemConstructor'> {
|
|
178
178
|
data: HydrogenPageData;
|
|
@@ -180,11 +180,10 @@ interface WeaverseHydrogenParams extends Omit<WeaverseCoreParams, 'ItemConstruct
|
|
|
180
180
|
internal: Partial<WeaverseInternal>;
|
|
181
181
|
requestInfo: WeaverseLoaderRequestInfo;
|
|
182
182
|
}
|
|
183
|
-
type HydrogenComponentLoaderFunction<T = any, E = HydrogenThemeEnv> = (args: ComponentLoaderArgs<T, E>) => Promise<unknown>;
|
|
184
183
|
interface HydrogenComponent<T extends HydrogenComponentProps = any> {
|
|
185
184
|
default: ForwardRefExoticComponent<T>;
|
|
186
185
|
schema: HydrogenComponentSchema;
|
|
187
|
-
loader?:
|
|
186
|
+
loader?: (args: ComponentLoaderArgs) => Promise<unknown>;
|
|
188
187
|
}
|
|
189
188
|
type WeaverseStudioQueries = {
|
|
190
189
|
weaverseProjectId: string;
|
|
@@ -340,48 +339,35 @@ declare function resizeShopifyImage(imageURL: string, size: string): string;
|
|
|
340
339
|
declare function getSelectedProductOptions(request: Request): SelectedOptionInput[];
|
|
341
340
|
|
|
342
341
|
declare let IMAGES_PLACEHOLDERS: {
|
|
342
|
+
logo_white: string;
|
|
343
|
+
logo_black: string;
|
|
343
344
|
image: string;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
blog_1: string;
|
|
347
|
-
blog_2: string;
|
|
348
|
-
blog_3: string;
|
|
345
|
+
banner_1: string;
|
|
346
|
+
banner_2: string;
|
|
349
347
|
collection_1: string;
|
|
350
348
|
collection_2: string;
|
|
351
349
|
collection_3: string;
|
|
350
|
+
collection_4: string;
|
|
351
|
+
collection_5: string;
|
|
352
|
+
collection_6: string;
|
|
352
353
|
product_1: string;
|
|
353
354
|
product_2: string;
|
|
354
355
|
product_3: string;
|
|
355
356
|
product_4: string;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
gs_product_4: string;
|
|
371
|
-
gs_product_5: string;
|
|
372
|
-
gs_product_6: string;
|
|
373
|
-
gs_product_7: string;
|
|
374
|
-
gs_product_8: string;
|
|
375
|
-
gs_product_9: string;
|
|
376
|
-
gs_product_10: string;
|
|
377
|
-
gs_product_11: string;
|
|
378
|
-
gs_product_12: string;
|
|
379
|
-
gs_product_13: string;
|
|
380
|
-
gs_product_14: string;
|
|
381
|
-
gs_product_15: string;
|
|
382
|
-
gs_product_16: string;
|
|
383
|
-
gs_product_17: string;
|
|
384
|
-
gs_product_18: string;
|
|
357
|
+
product_5: string;
|
|
358
|
+
product_6: string;
|
|
359
|
+
product_7: string;
|
|
360
|
+
product_8: string;
|
|
361
|
+
product_9: string;
|
|
362
|
+
product_10: string;
|
|
363
|
+
product_11: string;
|
|
364
|
+
product_12: string;
|
|
365
|
+
product_13: string;
|
|
366
|
+
product_14: string;
|
|
367
|
+
product_15: string;
|
|
368
|
+
product_16: string;
|
|
369
|
+
product_17: string;
|
|
370
|
+
product_18: string;
|
|
385
371
|
};
|
|
386
372
|
|
|
387
373
|
declare class WeaverseHydrogen extends Weaverse {
|
|
@@ -402,4 +388,4 @@ declare class WeaverseHydrogenItem extends WeaverseItemStore {
|
|
|
402
388
|
get _schemaData(): Record<string, any>;
|
|
403
389
|
}
|
|
404
390
|
|
|
405
|
-
export { type AllCacheOptions, type BasicInput, type ComponentLoaderArgs, type CreateWeaverseClientArgs, type FetchProjectPayload, type FetchProjectRequestBody, type FetchWithCacheOptions, type HeadingInput, type HeadingInputType, type HydrogenComponent, type HydrogenComponentData, type
|
|
391
|
+
export { type AllCacheOptions, type BasicInput, type ComponentLoaderArgs, type CreateWeaverseClientArgs, type FetchProjectPayload, type FetchProjectRequestBody, type FetchWithCacheOptions, type HeadingInput, type HeadingInputType, type HydrogenComponent, type HydrogenComponentData, type HydrogenComponentPresets, type HydrogenComponentProps, type HydrogenComponentSchema, type HydrogenElement, type HydrogenPageAssignment, type HydrogenPageConfigs, type HydrogenPageData, type HydrogenProjectConfig, type HydrogenProjectType, type HydrogenThemeEnv, type HydrogenThemeInfo, type HydrogenThemeSchema, type HydrogenThemeSettings, type HydrogenToolbarAction, type I18nLocale, IMAGES_PLACEHOLDERS, type InspectorGroup, type LoadPageParams, type Locale, type Localizations, type PageAssignmentParams, type PageType, type PublicEnv, type RootRouteData, type RouteLoaderArgs, type WeaverseArticle, type WeaverseBlog, WeaverseClient, type WeaverseClientArgs, type WeaverseCollection, WeaverseHydrogen, WeaverseHydrogenItem, type WeaverseHydrogenParams, WeaverseHydrogenRoot, type WeaverseHydrogenRootProps, type WeaverseInternal, type WeaverseLoaderData, type WeaverseLoaderRequestInfo, type WeaverseProduct, type WeaverseProjectConfigs, type WeaverseStorefrontData, type WeaverseStudioQueries, type WeaverseThemeConfigs, generateDataFromSchema, getRequestQueries, getSelectedProductOptions, getWeaverseConfigs, resizeShopifyImage, useThemeSettings, withWeaverse };
|
package/dist/index.js
CHANGED
|
@@ -574,50 +574,35 @@ function getSelectedProductOptions(request) {
|
|
|
574
574
|
|
|
575
575
|
// src/placeholders.ts
|
|
576
576
|
var IMAGES_PLACEHOLDERS = {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
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"
|
|
577
|
+
logo_white: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-w-600x200.svg",
|
|
578
|
+
logo_black: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-k-600x200.svg",
|
|
579
|
+
image: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-image-1024x1024.svg",
|
|
580
|
+
banner_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-1-1800x900.svg",
|
|
581
|
+
banner_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-2-1800x900.svg",
|
|
582
|
+
collection_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-hats-1024x1024.svg",
|
|
583
|
+
collection_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-shoes-1024x1024.svg",
|
|
584
|
+
collection_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-glasses-1024x1024.svg",
|
|
585
|
+
collection_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-lamps-1024x1024.svg",
|
|
586
|
+
collection_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-bags-1024x1024.svg",
|
|
587
|
+
collection_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-watches-1024x1024.svg",
|
|
588
|
+
product_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-3-1024x1024.svg",
|
|
589
|
+
product_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-2-1024x1024.svg",
|
|
590
|
+
product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-1-1024x1024.svg",
|
|
591
|
+
product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-2-1024x1024.svg",
|
|
592
|
+
product_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-1-1024x1024.svg",
|
|
593
|
+
product_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-1-1024x1024.svg",
|
|
594
|
+
product_7: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-2-1024x1024.svg",
|
|
595
|
+
product_8: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-3-1024x1024.svg",
|
|
596
|
+
product_9: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-1-1024x1024.svg",
|
|
597
|
+
product_10: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-2-1024x1024.svg",
|
|
598
|
+
product_11: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-2-1024x1024.svg",
|
|
599
|
+
product_12: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-3-1024x1024.svg",
|
|
600
|
+
product_13: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-3-1024x1024.svg",
|
|
601
|
+
product_14: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-3-1024x1024.svg",
|
|
602
|
+
product_15: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-1-1024x1024.svg",
|
|
603
|
+
product_16: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-3-1024x1024.svg",
|
|
604
|
+
product_17: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-1-1024x1024.svg",
|
|
605
|
+
product_18: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-2-1024x1024.svg"
|
|
621
606
|
};
|
|
622
607
|
|
|
623
608
|
// src/index.ts
|
package/dist/index.mjs
CHANGED
|
@@ -544,50 +544,35 @@ function getSelectedProductOptions(request) {
|
|
|
544
544
|
|
|
545
545
|
// src/placeholders.ts
|
|
546
546
|
var IMAGES_PLACEHOLDERS = {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
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"
|
|
547
|
+
logo_white: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-w-600x200.svg",
|
|
548
|
+
logo_black: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-logo-k-600x200.svg",
|
|
549
|
+
image: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-image-1024x1024.svg",
|
|
550
|
+
banner_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-1-1800x900.svg",
|
|
551
|
+
banner_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-lifestyle-2-1800x900.svg",
|
|
552
|
+
collection_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-hats-1024x1024.svg",
|
|
553
|
+
collection_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-shoes-1024x1024.svg",
|
|
554
|
+
collection_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-glasses-1024x1024.svg",
|
|
555
|
+
collection_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-lamps-1024x1024.svg",
|
|
556
|
+
collection_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-bags-1024x1024.svg",
|
|
557
|
+
collection_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-collection-watches-1024x1024.svg",
|
|
558
|
+
product_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-3-1024x1024.svg",
|
|
559
|
+
product_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-2-1024x1024.svg",
|
|
560
|
+
product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-1-1024x1024.svg",
|
|
561
|
+
product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-2-1024x1024.svg",
|
|
562
|
+
product_5: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-1-1024x1024.svg",
|
|
563
|
+
product_6: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-1-1024x1024.svg",
|
|
564
|
+
product_7: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-2-1024x1024.svg",
|
|
565
|
+
product_8: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-3-1024x1024.svg",
|
|
566
|
+
product_9: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-1-1024x1024.svg",
|
|
567
|
+
product_10: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-2-1024x1024.svg",
|
|
568
|
+
product_11: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-2-1024x1024.svg",
|
|
569
|
+
product_12: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-glasses-3-1024x1024.svg",
|
|
570
|
+
product_13: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-shoe-3-1024x1024.svg",
|
|
571
|
+
product_14: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-bag-3-1024x1024.svg",
|
|
572
|
+
product_15: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-hat-1-1024x1024.svg",
|
|
573
|
+
product_16: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-lamp-3-1024x1024.svg",
|
|
574
|
+
product_17: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-1-1024x1024.svg",
|
|
575
|
+
product_18: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/fpo-product-watch-2-1024x1024.svg"
|
|
591
576
|
};
|
|
592
577
|
|
|
593
578
|
// 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.16",
|
|
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.16",
|
|
37
37
|
"react-error-boundary": "^4.0.13"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|