@weaverse/hydrogen 3.1.14 → 3.1.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Weaverse
3
+ Copyright (c) 2024 Weaverse
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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 = HydrogenThemeEnv> = {
74
+ type ComponentLoaderArgs<T = any, E = any> = {
75
75
  data: T;
76
76
  weaverse: Omit<WeaverseClient, 'env'> & {
77
77
  env: E;
@@ -172,7 +172,7 @@ interface HydrogenElement {
172
172
  Component: ForwardRefExoticComponent<HydrogenComponentProps>;
173
173
  type: string;
174
174
  schema?: HydrogenComponentSchema;
175
- loader?: HydrogenComponentLoaderFunction;
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?: HydrogenComponentLoaderFunction;
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
- banner: string;
345
- backgroundImage: string;
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
- gs_logo_white: string;
357
- gs_logo_black: string;
358
- gs_image: string;
359
- gs_banner_1: string;
360
- gs_banner_2: string;
361
- gs_collection_1: string;
362
- gs_collection_2: string;
363
- gs_collection_3: string;
364
- gs_collection_4: string;
365
- gs_collection_5: string;
366
- gs_collection_6: string;
367
- gs_product_1: string;
368
- gs_product_2: string;
369
- gs_product_3: string;
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 HydrogenComponentLoaderFunction, 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 };
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 = HydrogenThemeEnv> = {
74
+ type ComponentLoaderArgs<T = any, E = any> = {
75
75
  data: T;
76
76
  weaverse: Omit<WeaverseClient, 'env'> & {
77
77
  env: E;
@@ -172,7 +172,7 @@ interface HydrogenElement {
172
172
  Component: ForwardRefExoticComponent<HydrogenComponentProps>;
173
173
  type: string;
174
174
  schema?: HydrogenComponentSchema;
175
- loader?: HydrogenComponentLoaderFunction;
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?: HydrogenComponentLoaderFunction;
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
- banner: string;
345
- backgroundImage: string;
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
- gs_logo_white: string;
357
- gs_logo_black: string;
358
- gs_image: string;
359
- gs_banner_1: string;
360
- gs_banner_2: string;
361
- gs_collection_1: string;
362
- gs_collection_2: string;
363
- gs_collection_3: string;
364
- gs_collection_4: string;
365
- gs_collection_5: string;
366
- gs_collection_6: string;
367
- gs_product_1: string;
368
- gs_product_2: string;
369
- gs_product_3: string;
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 HydrogenComponentLoaderFunction, 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 };
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
- // Colored placeholders
578
- image: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-image.svg",
579
- banner: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-banner.svg",
580
- backgroundImage: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-bg.svg",
581
- blog_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-blog-1.svg",
582
- blog_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-blog-2.svg",
583
- blog_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-blog-3.svg",
584
- collection_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-collection-1.svg",
585
- collection_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-collection-2.svg",
586
- collection_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-collection-3.svg",
587
- product_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-1.svg",
588
- product_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-2.svg",
589
- product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-3.svg",
590
- product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-4.svg",
591
- // Greyscale placeholders
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"
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
- // Colored placeholders
548
- image: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-image.svg",
549
- banner: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-banner.svg",
550
- backgroundImage: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-bg.svg",
551
- blog_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-blog-1.svg",
552
- blog_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-blog-2.svg",
553
- blog_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-blog-3.svg",
554
- collection_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-collection-1.svg",
555
- collection_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-collection-2.svg",
556
- collection_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-collection-3.svg",
557
- product_1: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-1.svg",
558
- product_2: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-2.svg",
559
- product_3: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-3.svg",
560
- product_4: "https://cdn.shopify.com/s/files/1/0838/0052/3057/files/h2-placeholder-tshirt-4.svg",
561
- // Greyscale placeholders
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"
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.14",
5
+ "version": "3.1.15",
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.14",
36
+ "@weaverse/react": "3.1.15",
37
37
  "react-error-boundary": "^4.0.13"
38
38
  },
39
39
  "devDependencies": {