@swell/apps-sdk 1.0.179 → 1.0.181
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 +114 -103
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +110 -101
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +114 -104
- package/dist/index.mjs.map +3 -3
- package/dist/src/compatibility/shopify.d.ts +1 -1
- package/dist/src/easyblocks/index.d.ts +1 -1
- package/dist/src/easyblocks/utils.d.ts +1 -0
- package/dist/src/liquid/filters/image_url.d.ts +1 -0
- package/dist/src/liquid/filters/shopify/img_url.d.ts +1 -1
- package/dist/types/swell.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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
|
export * from './config';
|
|
2
|
-
export { getThemeSettingsFromProps, getSectionSettingsFromProps, } from './utils';
|
|
2
|
+
export { getThemeSettingsFromProps, getSectionSettingsFromProps, toBlockId, } from './utils';
|
|
@@ -19,4 +19,5 @@ interface PageSectionComponentProps {
|
|
|
19
19
|
export declare function getSectionSettingsFromProps(props: PageSectionComponentProps, sectionSchema?: ThemeSectionSchema): ThemeSectionBase | undefined;
|
|
20
20
|
export declare function toEasyblocksFieldId(fieldId?: string): string;
|
|
21
21
|
export declare function toSchemaFieldId(fieldId?: string): string;
|
|
22
|
+
export declare function toBlockId(id: string): string;
|
|
22
23
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LiquidSwell } from '..';
|
|
2
2
|
import type { FilterHandler } from 'liquidjs/dist/template';
|
|
3
|
+
export declare function getImageUrlFromInput(input: unknown, liquidSwell: LiquidSwell): Promise<unknown>;
|
|
3
4
|
declare const filterDefinition: {
|
|
4
5
|
bind(liquidSwell: LiquidSwell): FilterHandler;
|
|
5
6
|
resolve: string[][];
|
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;
|