@gomusdev/web-components 1.39.4 → 1.40.0

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,6 +1,5 @@
1
1
  import { FieldInit } from '../components/forms/lib/Field.svelte.ts';
2
2
  import { ShopUrls } from '../lib/helpers/urls.ts';
3
- export declare const defaultConfig: Required<ConfigOptions>;
4
3
  export type FormConfig = {
5
4
  fields?: {
6
5
  key: string;
@@ -15,3 +14,15 @@ export type ConfigOptions = {
15
14
  forms?: Record<string, FormConfig>;
16
15
  fields?: Record<string, FieldInit>;
17
16
  };
17
+ declare class ConfigStoreSvelte {
18
+ private defaultConfig;
19
+ private override;
20
+ private options;
21
+ constructor();
22
+ private update;
23
+ get config(): {};
24
+ define(options: ConfigOptions): this;
25
+ default(options: ConfigOptions): this;
26
+ }
27
+ export declare const configStore: ConfigStoreSvelte;
28
+ export {};
File without changes
@@ -0,0 +1,16 @@
1
+ export type Command = {
2
+ method: 'load' | 'config' | 'init';
3
+ options: Record<string, unknown>;
4
+ };
5
+ export declare function initGo(window: {
6
+ go?: any;
7
+ }): Promise<void>;
8
+ export declare const go: {
9
+ loaded: boolean;
10
+ config: (options: Record<string, unknown>) => void;
11
+ init: (options: {
12
+ shop: string;
13
+ api: string;
14
+ locale: string;
15
+ }) => Promise<void>;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};