@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.
@@ -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, 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
  import { LiquidSwell } from '../..';
2
- export default function bind(_liquidSwell: LiquidSwell): (form: any) => null;
2
+ export default function bind(_liquidSwell: LiquidSwell): (form: any) => string;
@@ -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](): ArrayIterator<T> | Promise<ArrayIterator<T>>;
68
- iterator(): ArrayIterator<T> | Promise<ArrayIterator<T>>;
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>;
@@ -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.180",
4
+ "version": "1.0.182",
5
5
  "description": "Swell SDK for building isomorphic apps.",
6
6
  "author": "Swell",
7
7
  "license": "MIT",