@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.
@@ -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, localCode: string, editorLocaleConfig: ThemeLocaleConfig): Promise<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[][];
@@ -1,3 +1,3 @@
1
1
  import type { FilterHandler } from 'liquidjs/dist/template';
2
2
  import type { LiquidSwell } from '../..';
3
- export default function bind(_liquidSwell: LiquidSwell): FilterHandler;
3
+ export default function bind(liquidSwell: LiquidSwell): FilterHandler;
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swell/apps-sdk",
3
3
  "type": "module",
4
- "version": "1.0.179",
4
+ "version": "1.0.181",
5
5
  "description": "Swell SDK for building isomorphic apps.",
6
6
  "author": "Swell",
7
7
  "license": "MIT",