@swell/apps-sdk 1.0.29 → 1.0.30
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 +11 -11
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +11 -11
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +3 -3
- package/dist/src/compatibility/shopify-objects/address.d.ts +1 -1
- package/dist/src/easyblocks/config.d.ts +6 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/types/shopify.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2,5 +2,5 @@ import { StorefrontResource } from '../../resources';
|
|
|
2
2
|
import { ShopifyCompatibility } from '../shopify';
|
|
3
3
|
import { ShopifyResource } from './resource';
|
|
4
4
|
import type { SwellRecord } from 'types/swell';
|
|
5
|
-
export default function ShopifyAddress(instance: ShopifyCompatibility, address: StorefrontResource | SwellRecord): ShopifyResource;
|
|
5
|
+
export default function ShopifyAddress(instance: ShopifyCompatibility, address: StorefrontResource | SwellRecord, account?: StorefrontResource): ShopifyResource;
|
|
6
6
|
export declare function ShopifyCountry(_instance: ShopifyCompatibility, countryCode: string): ShopifyResource;
|
|
@@ -17,3 +17,4 @@ export declare function removeCircularReferences(value: any): any;
|
|
|
17
17
|
export declare function dehydrateSwellRefsInStorefrontResources(obj: any): any;
|
|
18
18
|
export declare function resolveAsyncResources(response: any, resolveStorefrontResources?: boolean, resolveWithResourceMetadata?: boolean): Promise<any>;
|
|
19
19
|
export declare function stringifyQueryParams(queryParams: SwellData): string;
|
|
20
|
+
export declare function scopeCustomCSS(custom_css: string, sectionID: string): string;
|
package/dist/types/shopify.d.ts
CHANGED
|
@@ -112,8 +112,8 @@ export type ShopifyObjectResourceMap = Array<ShopifyObject>;
|
|
|
112
112
|
export interface ShopifyForm {
|
|
113
113
|
type: string;
|
|
114
114
|
shopifyType?: string;
|
|
115
|
-
clientParams?(scope: SwellData, arg?: unknown): SwellData;
|
|
116
|
-
clientHtml?(scope: SwellData, arg?: unknown): string;
|
|
115
|
+
clientParams?(scope: SwellData, arg?: unknown): SwellData | undefined;
|
|
116
|
+
clientHtml?(scope: SwellData, arg?: unknown): string | undefined;
|
|
117
117
|
serverParams?(context: SwellData): SwellData;
|
|
118
118
|
serverResponse?(context: SwellData): SwellData;
|
|
119
119
|
}
|