vue-intlayer 7.0.0-canary.3 → 7.0.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");function c(t){return s.getCurrentScope()?(s.onScopeDispose(t),!0):!1}const u=t=>{let r=0,o,e;const n=()=>{r-=1,e&&r<=0&&(e.stop(),o=void 0,e=void 0)};return((...i)=>(r+=1,e||(e=s.effectScope(!0),o=e.run(()=>t(...i))),c(n),o))};exports.createSharedComposable=u;exports.tryOnScopeDispose=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");function c(t){return s.getCurrentScope()?(s.onScopeDispose(t),!0):!1}const u=t=>{let r=0,o,e;const n=()=>{r-=1,e&&r<=0&&(e.stop(),o=void 0,e=void 0)};return(...i)=>(r+=1,e||(e=s.effectScope(!0),o=e.run(()=>t(...i))),c(n),o)};exports.createSharedComposable=u;exports.tryOnScopeDispose=c;
@@ -7,7 +7,7 @@ const a = (t) => {
7
7
  const s = () => {
8
8
  r -= 1, e && r <= 0 && (e.stop(), o = void 0, e = void 0);
9
9
  };
10
- return ((...n) => (r += 1, e || (e = p(!0), o = e.run(() => t(...n))), u(s), o));
10
+ return (...n) => (r += 1, e || (e = p(!0), o = e.run(() => t(...n))), u(s), o);
11
11
  };
12
12
  export {
13
13
  a as createSharedComposable,
@@ -2,13 +2,13 @@ import { LocalesValues } from '@intlayer/types';
2
2
  /**
3
3
  * Get the locale cookie
4
4
  */
5
- export declare const localeInStorage: import('intlayer').Locale | undefined;
5
+ export declare const localeInStorage: import('@intlayer/types').Locale | undefined;
6
6
  /**
7
7
  * @deprecated Use localeInStorage instead
8
8
  *
9
9
  * Get the locale cookie
10
10
  */
11
- export declare const localeCookie: import('intlayer').Locale | undefined;
11
+ export declare const localeCookie: import('@intlayer/types').Locale | undefined;
12
12
  /**
13
13
  * Set the locale cookie
14
14
  */
@@ -23,7 +23,7 @@ export declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: b
23
23
  * Composable that provides the locale storage and a function to set it
24
24
  */
25
25
  export declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
26
- localeStorage: import('vue').ComputedRef<import('intlayer').Locale>;
26
+ localeStorage: import('vue').ComputedRef<import('@intlayer/types').Locale>;
27
27
  setLocaleStorage: (locale: LocalesValues) => void;
28
28
  };
29
29
  /**
@@ -34,6 +34,6 @@ export declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
34
34
  * Composable that provides the locale cookie and a function to set it
35
35
  */
36
36
  export declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
37
- localeCookie: import('vue').ComputedRef<import('intlayer').Locale>;
37
+ localeCookie: import('vue').ComputedRef<import('@intlayer/types').Locale>;
38
38
  setLocaleCookie: (locale: LocalesValues) => void;
39
39
  };
@@ -9,5 +9,5 @@
9
9
  * ```
10
10
  */
11
11
  export declare const useCompact: () => import('vue').ComputedRef<(value: string | number, options?: (Intl.NumberFormatOptions & {
12
- locale?: import('intlayer').LocalesValues;
12
+ locale?: import('@intlayer/types').LocalesValues;
13
13
  }) | undefined) => string>;
@@ -20,5 +20,5 @@
20
20
  * ```
21
21
  */
22
22
  export declare const useCurrency: () => import('vue').ComputedRef<(value: string | number, options?: (Intl.NumberFormatOptions & {
23
- locale?: import('intlayer').LocalesValues;
23
+ locale?: import('@intlayer/types').LocalesValues;
24
24
  }) | undefined) => string>;
@@ -18,5 +18,5 @@
18
18
  * ```
19
19
  */
20
20
  export declare const useDate: () => import('vue').ComputedRef<(date: string | number | Date, options?: (Intl.DateTimeFormatOptions & {
21
- locale?: import('intlayer').LocalesValues;
21
+ locale?: import('@intlayer/types').LocalesValues;
22
22
  }) | undefined) => string>;
@@ -17,5 +17,5 @@
17
17
  * ```
18
18
  */
19
19
  export declare const useList: () => import('vue').ComputedRef<(values: (string | number)[], options?: (Intl.ListFormatOptions & {
20
- locale?: import('intlayer').LocalesValues;
20
+ locale?: import('@intlayer/types').LocalesValues;
21
21
  }) | undefined) => string>;
@@ -18,5 +18,5 @@
18
18
  * ```
19
19
  */
20
20
  export declare const useNumber: () => import('vue').ComputedRef<(value: string | number, options?: (Intl.NumberFormatOptions & {
21
- locale?: import('intlayer').LocalesValues;
21
+ locale?: import('@intlayer/types').LocalesValues;
22
22
  }) | undefined) => string>;
@@ -12,5 +12,5 @@
12
12
  * ```
13
13
  */
14
14
  export declare const usePercentage: () => import('vue').ComputedRef<(value: string | number, options?: (Intl.NumberFormatOptions & {
15
- locale?: import('intlayer').LocalesValues;
15
+ locale?: import('@intlayer/types').LocalesValues;
16
16
  }) | undefined) => string>;
@@ -15,6 +15,6 @@
15
15
  * ```
16
16
  */
17
17
  export declare const useRelativeTime: () => import('vue').ComputedRef<(from: string | number | Date, to?: string | number | Date | undefined, options?: (Intl.RelativeTimeFormatOptions & {
18
- locale?: import('intlayer').LocalesValues;
18
+ locale?: import('@intlayer/types').LocalesValues;
19
19
  unit?: Intl.RelativeTimeFormatUnit;
20
20
  }) | undefined) => string>;
@@ -14,5 +14,5 @@
14
14
  * ```
15
15
  */
16
16
  export declare const useUnit: () => import('vue').ComputedRef<(value: string | number, options?: (Intl.NumberFormatOptions & {
17
- locale?: import('intlayer').LocalesValues;
17
+ locale?: import('@intlayer/types').LocalesValues;
18
18
  }) | undefined) => string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intlayer",
3
- "version": "7.0.0-canary.3",
3
+ "version": "7.0.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -83,21 +83,21 @@
83
83
  "typecheck": "vue-tsc --noEmit --project tsconfig.types.json"
84
84
  },
85
85
  "dependencies": {
86
- "@intlayer/api": "7.0.0-canary.3",
87
- "@intlayer/config": "7.0.0-canary.3",
88
- "@intlayer/core": "7.0.0-canary.3",
89
- "@intlayer/dictionaries-entry": "7.0.0-canary.3",
90
- "@intlayer/editor": "7.0.0-canary.3",
91
- "@intlayer/types": "7.0.0-canary.3",
86
+ "@intlayer/api": "7.0.0",
87
+ "@intlayer/config": "7.0.0",
88
+ "@intlayer/core": "7.0.0",
89
+ "@intlayer/dictionaries-entry": "7.0.0",
90
+ "@intlayer/editor": "7.0.0",
91
+ "@intlayer/types": "7.0.0",
92
92
  "js-cookie": "3.0.5",
93
93
  "uuid": "13.0.0"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@types/js-cookie": "3.0.6",
97
97
  "@types/node": "24.9.1",
98
- "@utils/ts-config": "7.0.0-canary.3",
99
- "@utils/ts-config-types": "7.0.0-canary.3",
100
- "@utils/tsdown-config": "7.0.0-canary.3",
98
+ "@utils/ts-config": "7.0.0",
99
+ "@utils/ts-config-types": "7.0.0",
100
+ "@utils/tsdown-config": "7.0.0",
101
101
  "@vitejs/plugin-vue": "6.0.1",
102
102
  "ajv": "^8.17.1",
103
103
  "fast-glob": "3.3.3",
@@ -110,13 +110,13 @@
110
110
  "vue-tsc": "3.1.1"
111
111
  },
112
112
  "peerDependencies": {
113
- "@intlayer/api": "7.0.0-canary.3",
114
- "@intlayer/config": "7.0.0-canary.3",
115
- "@intlayer/core": "7.0.0-canary.3",
116
- "@intlayer/dictionaries-entry": "7.0.0-canary.3",
117
- "@intlayer/editor": "7.0.0-canary.3",
118
- "@intlayer/types": "7.0.0-canary.3",
119
- "intlayer": "7.0.0-canary.3",
113
+ "@intlayer/api": "7.0.0",
114
+ "@intlayer/config": "7.0.0",
115
+ "@intlayer/core": "7.0.0",
116
+ "@intlayer/dictionaries-entry": "7.0.0",
117
+ "@intlayer/editor": "7.0.0",
118
+ "@intlayer/types": "7.0.0",
119
+ "intlayer": "7.0.0",
120
120
  "vue": ">=3.0.0"
121
121
  },
122
122
  "peerDependenciesMeta": {