ingeniuscliq-core 0.2.61 → 0.3.1

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.js CHANGED
@@ -2131,7 +2131,7 @@ class Rv {
2131
2131
  getStyles: () => n().styles,
2132
2132
  getSettings: () => n().settings,
2133
2133
  fetchTemplate: async () => (await this.customizationService.fetchTemplate()).data.data,
2134
- fetchSettings: async () => (await this.customizationService.fetchSettings()).data.data,
2134
+ fetchSettings: async () => (await this.customizationService.fetchSettings()).data.data.configuration,
2135
2135
  setTemplate: (r) => t({ template: r }),
2136
2136
  setComponents: (r) => t({ components: r }),
2137
2137
  setStyles: (r) => t({ styles: r }),
@@ -8517,7 +8517,7 @@ function m4({
8517
8517
  });
8518
8518
  return qt(() => {
8519
8519
  const o = r == null ? void 0 : r.styles.map((a) => ({ key: a.key, component: a.selected }));
8520
- o && n.setComponents(o), r != null && r.template && n.setTemplate(r.template), r != null && r.styles && n.setStyles(r.styles.map((a) => ({ key: a.key, selected: a.selected, colorProperties: a.colorProperties }))), r != null && r.settings && n.setSettings(r.settings);
8520
+ o && n.setComponents(o), r != null && r.template && n.setTemplate(r.template), r != null && r.styles && n.setStyles(r.styles.map((a) => ({ key: a.key, selected: a.selected, colorProperties: a.colorProperties })));
8521
8521
  }, [r]), /* @__PURE__ */ f(
8522
8522
  z1,
8523
8523
  {
@@ -7,5 +7,7 @@ import { CoreDesignTemplate, CoreDesignTemplateSettings } from '../../../types/u
7
7
  export declare class CoreCustomizationBaseService extends BaseService {
8
8
  constructor();
9
9
  fetchTemplate(): Promise<import('axios').AxiosResponse<BaseApiResponse<CoreDesignTemplate>, any>>;
10
- fetchSettings(): Promise<import('axios').AxiosResponse<BaseApiResponse<CoreDesignTemplateSettings>, any>>;
10
+ fetchSettings(): Promise<import('axios').AxiosResponse<BaseApiResponse<{
11
+ configuration: CoreDesignTemplateSettings;
12
+ }>, any>>;
11
13
  }
@@ -1,7 +1,6 @@
1
1
  export interface CoreDesignTemplate {
2
2
  template: string;
3
3
  styles: CoreDesignTemplateStyles[];
4
- settings: CoreDesignTemplateSettings;
5
4
  }
6
5
  export interface CoreDesignTemplateStyles {
7
6
  key: string;
@@ -14,6 +13,16 @@ export interface CoreDesignTemplateColorProperties {
14
13
  value: string;
15
14
  }
16
15
  export interface CoreDesignTemplateSettings {
16
+ store_name: string;
17
+ store_logo: string;
18
+ store_favicon: string;
19
+ available_coins: CoreDesignTemplateCoin[];
20
+ base_coin: CoreDesignTemplateCoin;
21
+ }
22
+ export interface CoreDesignTemplateCoin {
23
+ short_name: string;
17
24
  name: string;
18
- logo: string;
25
+ symbol: string;
26
+ position: string;
27
+ exchange_rate: number;
19
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.2.61",
3
+ "version": "0.3.1",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",