@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.
@@ -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;
@@ -21,6 +21,12 @@ export declare function getEasyblocksPagePropsWithConfigs(themeGlobals: ThemeGlo
21
21
  isDefault: boolean;
22
22
  }[];
23
23
  types: {
24
+ swell_css: {
25
+ type: string;
26
+ widget: {
27
+ id: string;
28
+ };
29
+ };
24
30
  swell_boolean: {
25
31
  type: string;
26
32
  widget: {
@@ -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;
@@ -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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swell/apps-sdk",
3
3
  "type": "module",
4
- "version": "1.0.29",
4
+ "version": "1.0.30",
5
5
  "description": "Swell SDK for building isomorphic apps.",
6
6
  "author": "Swell",
7
7
  "license": "MIT",