@swell/apps-sdk 1.0.184 → 1.0.186
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 +117 -92
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +117 -92
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +52 -27
- package/dist/index.mjs.map +4 -4
- package/dist/src/compatibility/shopify-objects/content.d.ts +12 -0
- package/dist/types/shopify.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Drop } from 'liquidjs';
|
|
2
|
+
import type { SwellRecord } from 'types/swell';
|
|
3
|
+
import { StorefrontResource } from '@/resources';
|
|
4
|
+
export declare class ShopifySwellContent extends Drop {
|
|
5
|
+
content: Record<string, string>;
|
|
6
|
+
description: string;
|
|
7
|
+
constructor(product?: StorefrontResource | SwellRecord);
|
|
8
|
+
toString(): string;
|
|
9
|
+
toObject(): Record<string, string>;
|
|
10
|
+
toJSON(): Record<string, string>;
|
|
11
|
+
toLiquid(): Record<string, string>;
|
|
12
|
+
}
|
package/dist/types/shopify.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SHOPIFY_TO_SWELL_SORTING } from '@/compatibility/shopify-configs';
|
|
2
|
+
import type { ShopifySwellContent } from '@/compatibility/shopify-objects/content';
|
|
2
3
|
import type { SwellData, ThemeSectionEnabledDisabled } from './swell';
|
|
3
4
|
import type { ShopifyResource } from '../src/compatibility/shopify-objects/resource';
|
|
4
5
|
import type { ShopifyCompatibility } from '../src/compatibility/shopify';
|
|
@@ -393,7 +394,7 @@ export interface ShopifyProduct {
|
|
|
393
394
|
compare_at_price_max: number;
|
|
394
395
|
compare_at_price_min: number;
|
|
395
396
|
compare_at_price_varies: boolean;
|
|
396
|
-
content:
|
|
397
|
+
content: ShopifySwellContent;
|
|
397
398
|
created_at: string;
|
|
398
399
|
description: string;
|
|
399
400
|
featured_image?: ShopifyImage;
|