@swell/apps-sdk 1.0.180 → 1.0.182
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 +113 -104
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +113 -104
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +115 -106
- package/dist/index.mjs.map +3 -3
- package/dist/src/compatibility/shopify-fonts.d.ts +1 -1
- package/dist/src/compatibility/shopify.d.ts +1 -1
- package/dist/src/liquid/filters/shopify/payment_button.d.ts +1 -1
- package/dist/src/resources.d.ts +2 -2
- package/dist/types/swell.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function shopifyFontToThemeFront(shopifyFontSetting: string): string | null;
|
|
1
|
+
export declare function shopifyFontToThemeFront(shopifyFontSetting: string | null): string | null;
|
|
@@ -93,7 +93,7 @@ export declare class ShopifyCompatibility {
|
|
|
93
93
|
getSectionGroup(sectionGroup: ShopifySectionGroup): ThemeSectionGroup;
|
|
94
94
|
getEditorLocaleConfig(theme: SwellTheme, localeCode: string): Promise<ThemeLocaleConfig>;
|
|
95
95
|
renderSchemaTranslations<T>(theme: SwellTheme, schema: T, localeCode?: string): Promise<T>;
|
|
96
|
-
renderSchemaTranslationValue<T>(theme: SwellTheme, schemaValue: T,
|
|
96
|
+
renderSchemaTranslationValue<T>(theme: SwellTheme, schemaValue: T, localeCode: string, localeConfigs: Record<string, ThemeLocaleConfig>): T;
|
|
97
97
|
getPageType(pageId: string): string;
|
|
98
98
|
getPageRouteUrl(pageId: string): string;
|
|
99
99
|
getPageRoutes(): {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LiquidSwell } from '../..';
|
|
2
|
-
export default function bind(_liquidSwell: LiquidSwell): (form: any) =>
|
|
2
|
+
export default function bind(_liquidSwell: LiquidSwell): (form: any) => string;
|
package/dist/src/resources.d.ts
CHANGED
|
@@ -64,8 +64,8 @@ export declare class SwellStorefrontCollection<T extends SwellData = SwellData>
|
|
|
64
64
|
_defaultGetter(): StorefrontResourceGetter<SwellCollection<T>>;
|
|
65
65
|
_get(query?: SwellData): Promise<SwellCollection<T> | null | undefined>;
|
|
66
66
|
get size(): Promise<number> | number;
|
|
67
|
-
[Symbol.iterator]():
|
|
68
|
-
iterator():
|
|
67
|
+
[Symbol.iterator](): Promise<ArrayIterator<T>>;
|
|
68
|
+
iterator(): Promise<ArrayIterator<T>>;
|
|
69
69
|
private makeIterator;
|
|
70
70
|
_clone(newProps?: SwellData): SwellStorefrontCollection<T>;
|
|
71
71
|
_cloneWithCompatibilityResult<R extends SwellData = SwellData>(compatibilityGetter: (result: SwellCollection<T>) => SwellCollection<R>): SwellStorefrontCollection<R>;
|
package/dist/types/swell.d.ts
CHANGED
|
@@ -470,6 +470,9 @@ export interface ThemeSettingFieldSchema {
|
|
|
470
470
|
limit?: number;
|
|
471
471
|
role?: ShopifySettingRoleSchema;
|
|
472
472
|
conditions?: Record<string, any>;
|
|
473
|
+
$locale?: Record<string, {
|
|
474
|
+
default?: string;
|
|
475
|
+
}>;
|
|
473
476
|
}
|
|
474
477
|
export interface ThemeSettingSectionSchema {
|
|
475
478
|
id?: string;
|