@swell/apps-sdk 1.0.134 → 1.0.135

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.
@@ -1,33 +1,5 @@
1
- declare const svgs: {
2
- image: string;
3
- 'product-1': string;
4
- 'product-2': string;
5
- 'product-3': string;
6
- 'product-4': string;
7
- 'product-5': string;
8
- 'product-6': string;
9
- 'collection-1': string;
10
- 'collection-2': string;
11
- 'collection-3': string;
12
- 'collection-4': string;
13
- 'collection-5': string;
14
- 'collection-6': string;
15
- 'lifestyle-1': string;
16
- 'lifestyle-2': string;
17
- 'product-apparel-1': string;
18
- 'product-apparel-2': string;
19
- 'product-apparel-3': string;
20
- 'product-apparel-4': string;
21
- 'collection-apparel-1': string;
22
- 'collection-apparel-2': string;
23
- 'collection-apparel-3': string;
24
- 'collection-apparel-4': string;
25
- 'hero-apparel-1': string;
26
- 'hero-apparel-2': string;
27
- 'hero-apparel-3': string;
28
- 'blog-apparel-1': string;
29
- 'blog-apparel-2': string;
30
- 'blog-apparel-3': string;
31
- 'detailed-apparel-1': string;
32
- };
1
+ interface SvgImage {
2
+ src: string;
3
+ }
4
+ declare const svgs: Record<string, SvgImage | string | undefined>;
33
5
  export default svgs;
@@ -1,2 +1,3 @@
1
- import { LiquidSwell } from "../..";
2
- export default function bind(_liquidSwell: LiquidSwell): (name: string) => string;
1
+ import type { LiquidSwell } from '../..';
2
+ import type { FilterHandler } from 'liquidjs/dist/template';
3
+ export default function bind(_liquidSwell: LiquidSwell): FilterHandler;
@@ -29,9 +29,8 @@ export declare class SwellTheme {
29
29
  shopifyCompatibilityClass?: typeof ShopifyCompatibility;
30
30
  });
31
31
  getSwellAppThemeProps(swellConfig?: SwellAppConfig): SwellAppStorefrontThemeProps;
32
- initGlobals(): Promise<void>;
32
+ initGlobals(pageId: string, altTemplate?: string): Promise<void>;
33
33
  setGlobals(globals: Partial<ThemeGlobals>): void;
34
- initPageGlobals(pageId: string, altTemplate?: string): Promise<void>;
35
34
  getSettingsAndConfigs(): Promise<{
36
35
  store: SwellData;
37
36
  session: SwellData;
@@ -39,9 +38,10 @@ export declare class SwellTheme {
39
38
  geo: SwellSettingsGeo;
40
39
  configs: ThemeConfigs;
41
40
  }>;
42
- resolvePageData(store: SwellData, configs: ThemeConfigs): Promise<{
41
+ resolvePageData(store: SwellData, configs: ThemeConfigs, pageId?: string, altTemplate?: string): Promise<{
43
42
  settings: ThemeSettings;
44
43
  request: SwellPageRequest;
44
+ page: ThemePage;
45
45
  cart: SwellStorefrontSingleton | {};
46
46
  account: SwellStorefrontSingleton | null;
47
47
  customer?: SwellStorefrontSingleton | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swell/apps-sdk",
3
3
  "type": "module",
4
- "version": "1.0.134",
4
+ "version": "1.0.135",
5
5
  "description": "Swell SDK for building isomorphic apps.",
6
6
  "author": "Swell",
7
7
  "license": "MIT",