@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.
- package/dist/index.cjs +177 -196
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +176 -195
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +177 -196
- package/dist/index.mjs.map +4 -4
- package/dist/src/liquid/filters/shopify/placeholder-svgs/index.d.ts +4 -32
- package/dist/src/liquid/filters/shopify/placeholder_svg_tag.d.ts +3 -2
- package/dist/src/theme.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
1
|
+
import type { LiquidSwell } from '../..';
|
|
2
|
+
import type { FilterHandler } from 'liquidjs/dist/template';
|
|
3
|
+
export default function bind(_liquidSwell: LiquidSwell): FilterHandler;
|
package/dist/src/theme.d.ts
CHANGED
|
@@ -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;
|