@swell/apps-sdk 1.0.175 → 1.0.177
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 +176 -124
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +175 -123
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +176 -124
- package/dist/index.mjs.map +4 -4
- package/dist/src/compatibility/shopify-objects/predictive_search.d.ts +1 -1
- package/dist/src/compatibility/shopify-objects/search.d.ts +1 -1
- package/dist/src/liquid/filters/index.d.ts +2 -0
- package/dist/src/liquid/filters/minus.d.ts +2 -0
- package/dist/src/liquid/operators.d.ts +7 -1
- package/dist/src/theme.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ShopifyResource } from './resource';
|
|
2
|
-
import
|
|
2
|
+
import { StorefrontResource } from '@/resources';
|
|
3
3
|
import type { ShopifyCompatibility } from '../shopify';
|
|
4
4
|
import type { ShopifyPredictiveSearch } from 'types/shopify';
|
|
5
5
|
export default function ShopifyPredictiveSearch(instance: ShopifyCompatibility, search: StorefrontResource): ShopifyResource<ShopifyPredictiveSearch>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ShopifyResource } from './resource';
|
|
2
|
-
import
|
|
2
|
+
import { StorefrontResource } from '@/resources';
|
|
3
3
|
import type { ShopifyCompatibility } from '../shopify';
|
|
4
4
|
import type { ShopifySearch } from 'types/shopify';
|
|
5
5
|
export default function ShopifySearch(instance: ShopifyCompatibility, search: StorefrontResource): ShopifyResource<ShopifySearch>;
|
|
@@ -27,6 +27,7 @@ import inline_asset_content from './inline_asset_content';
|
|
|
27
27
|
import json from './json';
|
|
28
28
|
import json_pretty from './json_pretty';
|
|
29
29
|
import locale_flag from './locale_flag';
|
|
30
|
+
import minus from './minus';
|
|
30
31
|
import money from './money';
|
|
31
32
|
import money_with_currency from './money_with_currency';
|
|
32
33
|
import money_without_currency from './money_without_currency';
|
|
@@ -86,6 +87,7 @@ export declare const filters: {
|
|
|
86
87
|
json: typeof json;
|
|
87
88
|
json_pretty: typeof json_pretty;
|
|
88
89
|
locale_flag: typeof locale_flag;
|
|
90
|
+
minus: typeof minus;
|
|
89
91
|
money: typeof money;
|
|
90
92
|
money_with_currency: typeof money_with_currency;
|
|
91
93
|
money_without_currency: typeof money_without_currency;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Context } from 'liquidjs';
|
|
2
|
+
type UnaryOperatorHandler = (operand: any, ctx: Context) => boolean;
|
|
3
|
+
type BinaryOperatorHandler = (lhs: any, rhs: any, ctx: Context) => boolean;
|
|
4
|
+
type CustomOperatorHandler = (lhs: any, rhs: any, ctx: Context) => any;
|
|
5
|
+
type OperatorHandler = UnaryOperatorHandler | BinaryOperatorHandler | CustomOperatorHandler;
|
|
6
|
+
type Operators = Record<string, OperatorHandler>;
|
|
2
7
|
export declare const swellOperators: Operators;
|
|
3
8
|
export declare function equal(lhs: unknown, rhs: unknown): boolean;
|
|
4
9
|
export declare function arrayEqual(lhs: unknown[], rhs: unknown[]): boolean;
|
|
10
|
+
export {};
|
package/dist/src/theme.d.ts
CHANGED
|
@@ -155,6 +155,8 @@ export declare class SwellTheme {
|
|
|
155
155
|
getShopify1HomePageSections(resolveSettings?: boolean): Promise<ThemeSectionConfig[]>;
|
|
156
156
|
renderShopify1HomePage(pageContent: string): Promise<string>;
|
|
157
157
|
isShopify1HomePage(pageId: string, pageContent: unknown): pageContent is string;
|
|
158
|
+
getSectionClassName(): string;
|
|
159
|
+
getSectionIdPrefix(): string;
|
|
158
160
|
renderAllSections(sectionsIds: string | Array<string>, pageData?: SwellData): Promise<Record<string, string | undefined>>;
|
|
159
161
|
renderSection(sectionId: string, pageData?: SwellData): Promise<string | ThemePageTemplateConfig>;
|
|
160
162
|
renderLayout(layoutName?: string, data?: SwellData, contentForLayout?: string, contentForHeader?: string): Promise<string>;
|