@creopse/vue 0.0.45 → 0.0.47

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@creopse/vue",
3
3
  "description": "Creopse Vue Toolkit",
4
- "version": "0.0.45",
4
+ "version": "0.0.47",
5
5
  "private": false,
6
6
  "author": "Noé Gnanih <noegnanih@gmail.com>",
7
7
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  "vue": "^3.5.17"
38
38
  },
39
39
  "dependencies": {
40
- "@creopse/utils": "^0.0.11",
40
+ "@creopse/utils": "^0.0.12",
41
41
  "@vueuse/core": "^14.1.0",
42
42
  "axios": "^1.13.2",
43
43
  "lodash.clonedeep": "^4.5.0",
@@ -16,6 +16,8 @@ export declare const useConfig: () => {
16
16
  debug: boolean;
17
17
  appUrl: string;
18
18
  xApiKey: string;
19
+ locale: string;
20
+ fallbackLocale: string;
19
21
  encryptionKey: string;
20
22
  langKey: string;
21
23
  };
@@ -2,7 +2,7 @@ import type { Props } from '@/types/plugin';
2
2
  declare class PropsManager<T extends Props = Props> {
3
3
  private state;
4
4
  constructor(initialProps: T);
5
- update(payload: T): void;
5
+ update(payload: T, strategy?: 'merge' | 'override'): void;
6
6
  getState(): {
7
7
  readonly props: {
8
8
  readonly [x: string]: any;
@@ -4657,6 +4657,7 @@ declare class PropsManager<T extends Props = Props> {
4657
4657
  };
4658
4658
  sync(newProps: T): void;
4659
4659
  private deepMerge;
4660
+ private deepOverride;
4660
4661
  private isObject;
4661
4662
  }
4662
4663
  export default PropsManager;
@@ -8,6 +8,8 @@ export interface PluginConfig {
8
8
  debug: boolean;
9
9
  appUrl: string;
10
10
  xApiKey: string;
11
+ locale: string;
12
+ fallbackLocale: string;
11
13
  encryptionKey: string;
12
14
  langKey: string;
13
15
  }