@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.
@@ -1,5 +1,5 @@
1
1
  import { ShopifyResource } from './resource';
2
- import type { StorefrontResource } from '@/resources';
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 type { StorefrontResource } from '@/resources';
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;
@@ -0,0 +1,2 @@
1
+ import { LiquidSwell } from '..';
2
+ export default function bind(_liquidSwell: LiquidSwell): (first: number, second: number) => number;
@@ -1,4 +1,10 @@
1
- import type { Operators } from 'liquidjs';
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 {};
@@ -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>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swell/apps-sdk",
3
3
  "type": "module",
4
- "version": "1.0.175",
4
+ "version": "1.0.177",
5
5
  "description": "Swell SDK for building isomorphic apps.",
6
6
  "author": "Swell",
7
7
  "license": "MIT",