vue-intlayer 9.4.1 → 9.4.3
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/README.md +1 -1
- package/dist/types/UI/ContentSelector.vue.d.ts +28 -0
- package/dist/types/client/useLocaleStorage.d.ts +4 -4
- package/dist/types/format/useCompact.d.ts +1 -1
- package/dist/types/format/useCurrency.d.ts +1 -1
- package/dist/types/format/useDate.d.ts +1 -1
- package/dist/types/format/useList.d.ts +1 -1
- package/dist/types/format/useNumber.d.ts +1 -1
- package/dist/types/format/usePercentage.d.ts +1 -1
- package/dist/types/format/useRelativeTime.d.ts +1 -1
- package/dist/types/format/useUnit.d.ts +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -330,4 +330,4 @@ Contribute on [GitHub](https://github.com/aymericzip/intlayer), [GitLab](https:/
|
|
|
330
330
|
|
|
331
331
|
If you like Intlayer, give us a ⭐ on GitHub. It helps others discover the project! [See why GitHub Stars matter](https://github.com/aymericzip/intlayer/blob/main/CONTRIBUTING.md#why-github-stars-matter-).
|
|
332
332
|
|
|
333
|
-
[](https://api.star-history.com/#aymericzip/intlayer&Date)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
onClickOutside?: () => void;
|
|
3
|
+
pressDuration?: number;
|
|
4
|
+
isSelecting?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
click: (...args: any[]) => void;
|
|
12
|
+
press: (...args: any[]) => void;
|
|
13
|
+
hover: (...args: any[]) => void;
|
|
14
|
+
unhover: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
onPress?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onHover?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onUnhover?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -2,13 +2,13 @@ import { LocalesValues } from '@intlayer/types/module_augmentation';
|
|
|
2
2
|
/**
|
|
3
3
|
* Get the locale cookie
|
|
4
4
|
*/
|
|
5
|
-
export declare const localeInStorage: import('
|
|
5
|
+
export declare const localeInStorage: import('intlayer').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('
|
|
11
|
+
export declare const localeCookie: import('intlayer').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('
|
|
26
|
+
localeStorage: import('vue').ComputedRef<import('intlayer').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
|
-
localeStorage: import('vue').ComputedRef<import('
|
|
37
|
+
localeStorage: import('vue').ComputedRef<import('intlayer').Locale>;
|
|
38
38
|
setLocaleStorage: (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('
|
|
12
|
+
locale?: import('intlayer').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('
|
|
23
|
+
locale?: import('intlayer').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('
|
|
21
|
+
locale?: import('intlayer').LocalesValues;
|
|
22
22
|
}) | import('@intlayer/core/formatters').DateTimePreset | undefined) => string>;
|
|
@@ -21,5 +21,5 @@ export declare const useList: () => import('vue').ComputedRef<(values: (string |
|
|
|
21
21
|
type?: "conjunction" | "disjunction" | "unit";
|
|
22
22
|
style?: "long" | "short" | "narrow";
|
|
23
23
|
} & {
|
|
24
|
-
locale?: import('
|
|
24
|
+
locale?: import('intlayer').LocalesValues;
|
|
25
25
|
}) | undefined) => string>;
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export declare const useNumber: () => import('vue').ComputedRef<(value: string | number, args_1?: (Intl.NumberFormatOptions & {
|
|
21
|
-
locale?: import('
|
|
21
|
+
locale?: import('intlayer').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, args_1?: (Intl.NumberFormatOptions & {
|
|
15
|
-
locale?: import('
|
|
15
|
+
locale?: import('intlayer').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('
|
|
18
|
+
locale?: import('intlayer').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('
|
|
17
|
+
locale?: import('intlayer').LocalesValues;
|
|
18
18
|
}) | undefined) => string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-intlayer",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -102,14 +102,14 @@
|
|
|
102
102
|
"typecheck": "vue-tsc --noEmit --project tsconfig.types.json"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@intlayer/api": "9.4.
|
|
106
|
-
"@intlayer/config": "9.4.
|
|
107
|
-
"@intlayer/core": "9.4.
|
|
108
|
-
"@intlayer/editor": "9.4.
|
|
109
|
-
"@intlayer/types": "9.4.
|
|
105
|
+
"@intlayer/api": "9.4.3",
|
|
106
|
+
"@intlayer/config": "9.4.3",
|
|
107
|
+
"@intlayer/core": "9.4.3",
|
|
108
|
+
"@intlayer/editor": "9.4.3",
|
|
109
|
+
"@intlayer/types": "9.4.3"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@types/node": "26.
|
|
112
|
+
"@types/node": "26.4.1",
|
|
113
113
|
"@utils/ts-config": "1.0.4",
|
|
114
114
|
"@utils/ts-config-types": "1.0.4",
|
|
115
115
|
"@utils/tsdown-config": "1.0.4",
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
"tsdown": "0.22.14",
|
|
121
121
|
"typescript": "7.0.2",
|
|
122
122
|
"vite": "8.2.2",
|
|
123
|
-
"vite-plugin-dts": "5.0
|
|
123
|
+
"vite-plugin-dts": "5.1.0",
|
|
124
124
|
"vitest": "4.1.11",
|
|
125
125
|
"vue-tsc": "3.3.9"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
|
-
"intlayer": "9.4.
|
|
128
|
+
"intlayer": "9.4.3",
|
|
129
129
|
"vue": ">=3.0.0"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
"optionalDependencies": {
|
|
137
|
-
"@intlayer/analytics": "9.4.
|
|
137
|
+
"@intlayer/analytics": "9.4.3"
|
|
138
138
|
},
|
|
139
139
|
"engines": {
|
|
140
140
|
"node": ">=14.18"
|