@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.
- package/dist/index.cjs +297 -176
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +297 -176
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +297 -176
- package/dist/index.mjs.map +4 -4
- package/dist/src/compatibility/shopify-objects/article.d.ts +1 -0
- package/dist/src/compatibility/shopify-objects/product.d.ts +2 -1
- package/dist/src/liquid/filters/index.d.ts +2 -0
- package/dist/src/liquid/filters/shopify/structured_data.d.ts +3 -0
- package/dist/src/liquid/utils.d.ts +1 -0
- package/dist/types/shopify.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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;
|
|
@@ -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>;
|
package/dist/types/shopify.d.ts
CHANGED
|
@@ -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
|
|
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;
|