@swell/apps-sdk 1.0.126 → 1.0.128

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.
@@ -4,3 +4,4 @@ import type { ShopifyCompatibility } from '../shopify';
4
4
  import type { SwellRecord } from 'types/swell';
5
5
  import type { ShopifyArticle } from 'types/shopify';
6
6
  export default function ShopifyArticle(instance: ShopifyCompatibility, blog: StorefrontResource | SwellRecord, blogCategory?: StorefrontResource | SwellRecord): ShopifyResource<ShopifyArticle>;
7
+ export declare function isLikeShopifyArticle(value: unknown): value is ShopifyArticle;
@@ -6,4 +6,5 @@ import type { ShopifyProduct, ShopifyProductOptionValue } from 'types/shopify';
6
6
  export default function ShopifyProduct(instance: ShopifyCompatibility, product: StorefrontResource | SwellRecord): ShopifyResource<ShopifyProduct>;
7
7
  export default function ShopifyProduct(instance: ShopifyCompatibility, product: StorefrontResource | SwellRecord, depth: number): ShopifyResource<ShopifyProduct> | null;
8
8
  export declare function ShopifyProductOptionValue(values: ShopifyProductOptionValue): ShopifyResource<ShopifyProductOptionValue>;
9
- export declare function getSelectedVariantOptionValues(product: any, variant: any, queryParams: SwellData): string[];
9
+ export declare function getSelectedVariantOptionValues(product: SwellRecord, variant: SwellRecord | undefined, queryParams: SwellData): string[];
10
+ export declare function isLikeShopifyProduct(value: unknown): value is ShopifyProduct;
@@ -40,6 +40,7 @@ import payment_button from './shopify/payment_button';
40
40
  import payment_terms from './shopify/payment_terms';
41
41
  import placeholder_svg_tag from './shopify/placeholder_svg_tag';
42
42
  import shopify_asset_url from './shopify/shopify_asset_url';
43
+ import structured_data from './shopify/structured_data';
43
44
  import inline_editable from './inline_editable';
44
45
  import type { LiquidSwell } from '..';
45
46
  import type { FilterHandler } from 'liquidjs/dist/template';
@@ -99,6 +100,7 @@ export declare const filters: {
99
100
  payment_terms: typeof payment_terms;
100
101
  placeholder_svg_tag: typeof placeholder_svg_tag;
101
102
  shopify_asset_url: typeof shopify_asset_url;
103
+ structured_data: typeof structured_data;
102
104
  inline_editable: typeof inline_editable;
103
105
  };
104
106
  export declare function bindFilters(liquidSwell: LiquidSwell): void;
@@ -0,0 +1,3 @@
1
+ import type { FilterHandler } from 'liquidjs/dist/template';
2
+ import type { LiquidSwell } from '../..';
3
+ export default function bind(_liquidSwell: LiquidSwell): FilterHandler;
@@ -41,3 +41,4 @@ export declare function resolveEnumerable<T>(val: unknown): Promise<T[]>;
41
41
  export declare function stringify(value: unknown): string;
42
42
  export declare function paramsToProps(params: (string | [string, unknown])[] | Record<string, string>): Record<string, unknown>;
43
43
  export declare function jsonStringifyAsync(input: unknown, space?: number): Promise<string>;
44
+ export declare function resolveAllKeys(value: unknown, references?: WeakSet<object>): Promise<void>;
@@ -415,7 +415,7 @@ export interface ShopifyProduct {
415
415
  'quantity_price_breaks_configured?': boolean;
416
416
  requires_selling_plan: boolean;
417
417
  selected_or_first_available_selling_plan_allocation?: ShopifySellingPlanAllocation;
418
- selected_or_first_available_variant: ShopifyVariant;
418
+ selected_or_first_available_variant?: ShopifyVariant;
419
419
  selected_selling_plan?: ShopifySellingPlan;
420
420
  selected_selling_plan_allocation?: ShopifySellingPlanAllocation;
421
421
  selected_variant?: ShopifyVariant;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swell/apps-sdk",
3
3
  "type": "module",
4
- "version": "1.0.126",
4
+ "version": "1.0.128",
5
5
  "description": "Swell SDK for building isomorphic apps.",
6
6
  "author": "Swell",
7
7
  "license": "MIT",