@intlayer/use-intl 9.6.0 → 9.7.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/esm/client/IntlProvider.mjs +1 -2
- package/dist/esm/client/helpers.mjs +1 -2
- package/dist/esm/client/index.mjs +2 -3
- package/dist/esm/client/useLocale.mjs +1 -2
- package/dist/esm/client/useTranslations.mjs +1 -2
- package/dist/esm/core/createFormatter.mjs +1 -2
- package/dist/esm/core/createTranslator.mjs +1 -2
- package/dist/esm/core/errors.mjs +1 -2
- package/dist/esm/core/hasLocale.mjs +1 -2
- package/dist/esm/core/initializeConfig.mjs +1 -2
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/plugin/index.mjs +1 -2
- package/dist/esm/shared/intlFormatter.mjs +1 -2
- package/dist/esm/shared/namespaceTranslator.mjs +1 -2
- package/dist/esm/useDictionary.mjs +1 -2
- package/dist/esm/useDictionaryDynamic.mjs +1 -2
- package/dist/types/client/IntlProvider.d.ts +0 -2
- package/dist/types/client/IntlProvider.d.ts.map +1 -1
- package/dist/types/client/helpers.d.ts +0 -2
- package/dist/types/client/helpers.d.ts.map +1 -1
- package/dist/types/client/index.d.ts +2 -4
- package/dist/types/client/index.d.ts.map +1 -1
- package/dist/types/client/useLocale.d.ts +0 -2
- package/dist/types/client/useLocale.d.ts.map +1 -1
- package/dist/types/client/useTranslations.d.ts +1 -2
- package/dist/types/client/useTranslations.d.ts.map +1 -1
- package/dist/types/core/createFormatter.d.ts +0 -2
- package/dist/types/core/createFormatter.d.ts.map +1 -1
- package/dist/types/core/createTranslator.d.ts +1 -2
- package/dist/types/core/createTranslator.d.ts.map +1 -1
- package/dist/types/core/errors.d.ts +0 -2
- package/dist/types/core/errors.d.ts.map +1 -1
- package/dist/types/core/hasLocale.d.ts +0 -2
- package/dist/types/core/hasLocale.d.ts.map +1 -1
- package/dist/types/core/initializeConfig.d.ts +0 -2
- package/dist/types/core/initializeConfig.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/plugin/index.d.ts +0 -2
- package/dist/types/plugin/index.d.ts.map +1 -1
- package/dist/types/shared/intlFormatter.d.ts +0 -2
- package/dist/types/shared/intlFormatter.d.ts.map +1 -1
- package/dist/types/shared/namespaceTranslator.d.ts +0 -2
- package/dist/types/shared/namespaceTranslator.d.ts.map +1 -1
- package/dist/types/shared/translateFunctionTypes.d.ts +0 -2
- package/dist/types/shared/translateFunctionTypes.d.ts.map +1 -1
- package/dist/types/useDictionary.d.ts +1 -2
- package/dist/types/useDictionary.d.ts.map +1 -1
- package/dist/types/useDictionaryDynamic.d.ts +1 -2
- package/dist/types/useDictionaryDynamic.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -6,7 +6,7 @@ import { log } from "@intlayer/config/built";
|
|
|
6
6
|
import { CYAN } from "@intlayer/config/colors";
|
|
7
7
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/client/IntlProvider.tsx
|
|
10
10
|
/**
|
|
11
11
|
* Drop-in for use-intl's `IntlProvider`.
|
|
12
12
|
*
|
|
@@ -23,6 +23,5 @@ const IntlProvider = ({ locale, children, messages: _messages, formats: _formats
|
|
|
23
23
|
}, String(locale));
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
export { IntlProvider };
|
|
28
27
|
//# sourceMappingURL=IntlProvider.mjs.map
|
|
@@ -6,7 +6,7 @@ import { log } from "@intlayer/config/built";
|
|
|
6
6
|
import { CYAN } from "@intlayer/config/colors";
|
|
7
7
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/client/helpers.ts
|
|
10
10
|
/**
|
|
11
11
|
* Drop-in for use-intl's `useNow`.
|
|
12
12
|
* Returns the current `Date`. The `updateInterval` option is ignored.
|
|
@@ -39,6 +39,5 @@ const useFormatter = () => {
|
|
|
39
39
|
return buildIntlFormatter(locale ?? "en");
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
//#endregion
|
|
43
42
|
export { useFormatter, useMessages, useNow, useTimeZone };
|
|
44
43
|
//# sourceMappingURL=helpers.mjs.map
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { useDictionaryDynamic } from "../useDictionaryDynamic.mjs";
|
|
2
1
|
import { useDictionary } from "../useDictionary.mjs";
|
|
2
|
+
import { useDictionaryDynamic } from "../useDictionaryDynamic.mjs";
|
|
3
3
|
import { useFormatter, useMessages, useNow, useTimeZone } from "./helpers.mjs";
|
|
4
4
|
import { IntlProvider } from "./IntlProvider.mjs";
|
|
5
5
|
import { useLocale } from "./useLocale.mjs";
|
|
6
6
|
import { useTranslations } from "./useTranslations.mjs";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/client/index.ts
|
|
9
9
|
/**
|
|
10
10
|
* @internal Private use-intl export, kept so aliased `_useExtracted` imports
|
|
11
11
|
* resolve. Not part of the supported public surface.
|
|
12
12
|
*/
|
|
13
13
|
const _useExtracted = () => ({});
|
|
14
14
|
|
|
15
|
-
//#endregion
|
|
16
15
|
export { IntlProvider, _useExtracted, useDictionary, useDictionaryDynamic, useFormatter, useLocale, useMessages, useNow, useTimeZone, useTranslations };
|
|
17
16
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useLocale as useLocale$1 } from "react-intlayer";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/client/useLocale.ts
|
|
6
6
|
/**
|
|
7
7
|
* Drop-in for use-intl's `useLocale`.
|
|
8
8
|
*
|
|
@@ -13,6 +13,5 @@ const useLocale = () => {
|
|
|
13
13
|
return locale;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { useLocale };
|
|
18
17
|
//# sourceMappingURL=useLocale.mjs.map
|
|
@@ -4,7 +4,7 @@ import { createNamespaceTranslator } from "../shared/namespaceTranslator.mjs";
|
|
|
4
4
|
import { useContext, useMemo } from "react";
|
|
5
5
|
import { IntlayerClientContext } from "react-intlayer";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/client/useTranslations.ts
|
|
8
8
|
/**
|
|
9
9
|
* Drop-in for use-intl's `useTranslations`.
|
|
10
10
|
*
|
|
@@ -32,6 +32,5 @@ const useTranslations = ((namespace) => {
|
|
|
32
32
|
return useMemo(() => createNamespaceTranslator(currentLocale, namespace), [currentLocale, namespace]);
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
//#endregion
|
|
36
35
|
export { useTranslations };
|
|
37
36
|
//# sourceMappingURL=useTranslations.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { buildIntlFormatter } from "../shared/intlFormatter.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/core/createFormatter.ts
|
|
4
4
|
/**
|
|
5
5
|
* Drop-in for use-intl's `createFormatter`.
|
|
6
6
|
*
|
|
@@ -17,6 +17,5 @@ import { buildIntlFormatter } from "../shared/intlFormatter.mjs";
|
|
|
17
17
|
*/
|
|
18
18
|
const createFormatter = ({ locale }) => buildIntlFormatter(locale);
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { createFormatter };
|
|
22
21
|
//# sourceMappingURL=createFormatter.mjs.map
|
|
@@ -3,7 +3,7 @@ import { log } from "@intlayer/config/built";
|
|
|
3
3
|
import { CYAN } from "@intlayer/config/colors";
|
|
4
4
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/core/createTranslator.ts
|
|
7
7
|
/**
|
|
8
8
|
* Drop-in for use-intl's `createTranslator`.
|
|
9
9
|
*
|
|
@@ -23,6 +23,5 @@ const createTranslator = (({ locale, namespace, messages: _messages }) => {
|
|
|
23
23
|
return createNamespaceTranslator(locale, namespace);
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
export { createTranslator };
|
|
28
27
|
//# sourceMappingURL=createTranslator.mjs.map
|
package/dist/esm/core/errors.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/core/errors.ts
|
|
2
2
|
/**
|
|
3
3
|
* Drop-in for use-intl's `IntlErrorCode` enum.
|
|
4
4
|
*
|
|
@@ -34,6 +34,5 @@ var IntlError = class extends Error {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
//#endregion
|
|
38
37
|
export { IntlError, IntlErrorCode };
|
|
39
38
|
//# sourceMappingURL=errors.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { internationalization } from "@intlayer/config/built";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/core/hasLocale.ts
|
|
4
4
|
/**
|
|
5
5
|
* Drop-in for use-intl's `hasLocale`.
|
|
6
6
|
*
|
|
@@ -16,6 +16,5 @@ const hasLocale = ((locales, candidate) => {
|
|
|
16
16
|
return (locales ?? internationalization?.locales?.map(String) ?? []).includes(candidate);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
//#endregion
|
|
20
19
|
export { hasLocale };
|
|
21
20
|
//# sourceMappingURL=hasLocale.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/core/initializeConfig.ts
|
|
2
2
|
/**
|
|
3
3
|
* Drop-in for use-intl's `initializeConfig`.
|
|
4
4
|
*
|
|
@@ -18,6 +18,5 @@ const initializeConfig = ({ formats, getMessageFallback, messages, onError, ...r
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { initializeConfig };
|
|
23
22
|
//# sourceMappingURL=initializeConfig.mjs.map
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
|
|
1
|
+
import { _useExtracted } from "./client/index.mjs";
|
|
3
2
|
import { useDictionary } from "./useDictionary.mjs";
|
|
3
|
+
import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
|
|
4
4
|
import { useFormatter, useMessages, useNow, useTimeZone } from "./client/helpers.mjs";
|
|
5
5
|
import { IntlProvider } from "./client/IntlProvider.mjs";
|
|
6
6
|
import { useLocale } from "./client/useLocale.mjs";
|
|
7
7
|
import { useTranslations } from "./client/useTranslations.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { createDictionaryTranslator } from "./shared/namespaceTranslator.mjs";
|
|
9
9
|
import { createFormatter } from "./core/createFormatter.mjs";
|
|
10
10
|
import { createTranslator } from "./core/createTranslator.mjs";
|
|
11
11
|
import { IntlError, IntlErrorCode } from "./core/errors.mjs";
|
|
@@ -6,7 +6,7 @@ import { getConfiguration } from "@intlayer/config/node";
|
|
|
6
6
|
import { runOnce } from "@intlayer/engine/utils";
|
|
7
7
|
import { intlayer } from "vite-intlayer";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/plugin/index.ts
|
|
10
10
|
/**
|
|
11
11
|
* A Vite plugin for use-intl compat that wraps vite-intlayer and configures
|
|
12
12
|
* resolve aliases so `use-intl` imports are served by `@intlayer/use-intl`.
|
|
@@ -38,6 +38,5 @@ const useIntlVitePlugin = (options) => {
|
|
|
38
38
|
return [...Array.isArray(basePlugins) ? basePlugins : [basePlugins], compatPlugin];
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { useIntlVitePlugin as default, useIntlVitePlugin };
|
|
43
42
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/shared/intlFormatter.ts
|
|
2
2
|
/** Time units orderable by their duration in seconds. */
|
|
3
3
|
const RELATIVE_TIME_UNITS = [
|
|
4
4
|
["year", 31536e3],
|
|
@@ -56,6 +56,5 @@ const buildIntlFormatter = (locale) => ({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
//#endregion
|
|
60
59
|
export { buildIntlFormatter };
|
|
61
60
|
//# sourceMappingURL=intlFormatter.mjs.map
|
|
@@ -4,7 +4,7 @@ import { navigatePath, navigatePath as navigatePath$1, parseTaggedMessage, resol
|
|
|
4
4
|
import { getDictionaries } from "@intlayer/dictionaries-entry";
|
|
5
5
|
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/shared/namespaceTranslator.tsx
|
|
8
8
|
/** Splits rich values into scalar interpolation values and tag renderers. */
|
|
9
9
|
const splitRichValues = (values = {}) => {
|
|
10
10
|
const scalarValues = {};
|
|
@@ -137,6 +137,5 @@ const createLookupTranslator = (locale, lookup, missingKeyFallback) => {
|
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
//#endregion
|
|
141
140
|
export { createDictionaryTranslator, createNamespaceTranslator, navigatePath };
|
|
142
141
|
//# sourceMappingURL=namespaceTranslator.mjs.map
|
|
@@ -4,7 +4,7 @@ import { createDictionaryTranslator } from "./shared/namespaceTranslator.mjs";
|
|
|
4
4
|
import { useContext } from "react";
|
|
5
5
|
import { IntlayerClientContext, useDictionary as useDictionary$1 } from "react-intlayer";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/useDictionary.ts
|
|
8
8
|
/**
|
|
9
9
|
* Dictionary-accepting variant of `useTranslations`.
|
|
10
10
|
*
|
|
@@ -26,6 +26,5 @@ const useDictionary = ((dictionary, namespacePrefix) => {
|
|
|
26
26
|
return createDictionaryTranslator(locale, content, namespacePrefix);
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { useDictionary };
|
|
31
30
|
//# sourceMappingURL=useDictionary.mjs.map
|
|
@@ -4,7 +4,7 @@ import { createDictionaryTranslator } from "./shared/namespaceTranslator.mjs";
|
|
|
4
4
|
import { useContext } from "react";
|
|
5
5
|
import { IntlayerClientContext, useDictionaryDynamic as useDictionaryDynamic$1 } from "react-intlayer";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/useDictionaryDynamic.ts
|
|
8
8
|
/**
|
|
9
9
|
* Dynamic dictionary-accepting variant of `useTranslations`.
|
|
10
10
|
*
|
|
@@ -17,6 +17,5 @@ const useDictionaryDynamic = ((dictionaryPromise, key, namespacePrefix) => {
|
|
|
17
17
|
return createDictionaryTranslator(locale, content, namespacePrefix);
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { useDictionaryDynamic };
|
|
22
21
|
//# sourceMappingURL=useDictionaryDynamic.mjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { IntlProvider as IntlProvider$1 } from "use-intl";
|
|
4
|
-
//#region src/client/IntlProvider.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Drop-in for use-intl's `IntlProvider`.
|
|
7
6
|
*
|
|
@@ -24,5 +23,4 @@ export type IntlProviderProps = Omit<ComponentProps<typeof IntlProvider$1>, 'mes
|
|
|
24
23
|
/** The active locale. */
|
|
25
24
|
locale: LocalesValues;
|
|
26
25
|
};
|
|
27
|
-
//#endregion
|
|
28
26
|
//# sourceMappingURL=IntlProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlProvider.d.ts","names":[],"sources":["../../../src/client/IntlProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntlProvider.d.ts","names":["_IntlProvider"],"sources":["../../../src/client/IntlProvider.tsx"],"mappings":";;;;;;;;;;;qBAkBa,qBAAqBA;;;;;YAiCtB,oBAAoB,KAC9B,sBAAsBA;;;;;EAOtB;;EAEA,QAAQ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useFormatter as useFormatter$1, useMessages as useMessages$1, useNow as useNow$1, useTimeZone as useTimeZone$1 } from "use-intl";
|
|
2
|
-
//#region src/client/helpers.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Drop-in for use-intl's `useNow`.
|
|
5
4
|
* Returns the current `Date`. The `updateInterval` option is ignored.
|
|
@@ -25,5 +24,4 @@ export declare const useMessages: typeof useMessages$1;
|
|
|
25
24
|
* `displayName`.
|
|
26
25
|
*/
|
|
27
26
|
export declare const useFormatter: typeof useFormatter$1;
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","names":[],"sources":["../../../src/client/helpers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","names":["_useNow","_useTimeZone","_useMessages","_useFormatter"],"sources":["../../../src/client/helpers.ts"],"mappings":";;;;;qBAkBa,eAAeA;;;;;qBAMf,oBAAoBC;;;;;;;;qBAUpB,oBAAoBC;;;;;;;qBAiBpB,qBAAqBC"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { IntlProvider, IntlProviderProps } from "./IntlProvider.js";
|
|
2
|
-
import { useFormatter, useMessages, useNow, useTimeZone } from "./helpers.js";
|
|
3
1
|
import { useDictionary } from "../useDictionary.js";
|
|
4
2
|
import { useDictionaryDynamic } from "../useDictionaryDynamic.js";
|
|
3
|
+
import { useFormatter, useMessages, useNow, useTimeZone } from "./helpers.js";
|
|
4
|
+
import { IntlProvider, IntlProviderProps } from "./IntlProvider.js";
|
|
5
5
|
import { useLocale } from "./useLocale.js";
|
|
6
6
|
import { useTranslations } from "./useTranslations.js";
|
|
7
|
-
//#region src/client/index.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* @internal Private use-intl export, kept so aliased `_useExtracted` imports
|
|
10
9
|
* resolve. Not part of the supported public surface.
|
|
11
10
|
*/
|
|
12
11
|
export declare const _useExtracted: () => Record<string, never>;
|
|
13
|
-
//#endregion
|
|
14
12
|
export { IntlProvider, type IntlProviderProps, useDictionary, useDictionaryDynamic, useFormatter, useLocale, useMessages, useNow, useTimeZone, useTranslations };
|
|
15
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/client/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/client/index.ts"],"mappings":";;;;;;;;;;qBAWa,qBAAoB"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { useLocale as useLocale$1 } from "use-intl";
|
|
2
|
-
//#region src/client/useLocale.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Drop-in for use-intl's `useLocale`.
|
|
5
4
|
*
|
|
6
5
|
* Returns the active locale string from Intlayer's client context.
|
|
7
6
|
*/
|
|
8
7
|
export declare const useLocale: typeof useLocale$1;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=useLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocale.d.ts","names":["_useLocale"],"sources":["../../../src/client/useLocale.ts"],"mappings":";;;;;;qBAUa,kBAAkBA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LooseTranslateFunction, TranslateFunction, TranslateFunctionForNamespace } from "../shared/translateFunctionTypes.js";
|
|
2
2
|
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
3
|
-
//#region src/client/useTranslations.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Overload set for {@link useTranslations}:
|
|
6
5
|
*
|
|
@@ -39,5 +38,5 @@ type UseTranslations = {
|
|
|
39
38
|
* ```
|
|
40
39
|
*/
|
|
41
40
|
export declare const useTranslations: UseTranslations;
|
|
42
|
-
|
|
41
|
+
export {};
|
|
43
42
|
//# sourceMappingURL=useTranslations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslations.d.ts","names":[],"sources":["../../../src/client/useTranslations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTranslations.d.ts","names":[],"sources":["../../../src/client/useTranslations.ts"],"mappings":";;;;;;;;;;;;KAyBK;GACF,UAAU,gBAAgB,WAAW,IAAI,kBAAkB;GAC3D,iCACC,WAAW,IACV,8BAA8B;MAC7B;;;;;;;;;;;;;;;;;;;;;;;;qBAyBO,iBAOP"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createFormatter as createFormatter$1 } from "use-intl";
|
|
2
|
-
//#region src/core/createFormatter.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Drop-in for use-intl's `createFormatter`.
|
|
5
4
|
*
|
|
@@ -15,5 +14,4 @@ import { createFormatter as createFormatter$1 } from "use-intl";
|
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
17
16
|
export declare const createFormatter: typeof createFormatter$1;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=createFormatter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFormatter.d.ts","names":[],"sources":["../../../src/core/createFormatter.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createFormatter.d.ts","names":["_createFormatter"],"sources":["../../../src/core/createFormatter.ts"],"mappings":";;;;;;;;;;;;;;;qBAiBa,wBAAwBA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LooseTranslateFunction, TranslateFunction, TranslateFunctionForNamespace } from "../shared/translateFunctionTypes.js";
|
|
2
2
|
import { DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
|
-
//#region src/core/createTranslator.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Configuration accepted by {@link createTranslator}.
|
|
6
5
|
*
|
|
@@ -53,5 +52,5 @@ type CreateTranslator = {
|
|
|
53
52
|
* ```
|
|
54
53
|
*/
|
|
55
54
|
export declare const createTranslator: CreateTranslator;
|
|
56
|
-
|
|
55
|
+
export {};
|
|
57
56
|
//# sourceMappingURL=createTranslator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTranslator.d.ts","names":[],"sources":["../../../src/core/createTranslator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createTranslator.d.ts","names":[],"sources":["../../../src/core/createTranslator.ts"],"mappings":";;;;;;;;;YAqBY,uBAAuB,UAAU;;EAE3C,QAAQ;;EAER,YAAY;;;;;EAKZ;IACE;;;;;;;;;;;KAYC;GACF,UAAU,gBACT,QAAQ,uBAAuB;IAAO,WAAW;MAChD,kBAAkB;GACpB,iCACC,QAAQ,uBAAuB;IAAoB,WAAW;MAC7D,8BAA8B;GAChC,QAAQ,uBAAuB,kBAAkB;;;;;;;;;;;;;;;;qBAiBvC,kBAaP"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/core/errors.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Drop-in for use-intl's `IntlErrorCode` enum.
|
|
4
3
|
*
|
|
@@ -26,5 +25,4 @@ export declare class IntlError extends Error {
|
|
|
26
25
|
readonly originalMessage: string | undefined;
|
|
27
26
|
constructor(code: IntlErrorCode, originalMessage?: string);
|
|
28
27
|
}
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","names":[],"sources":["../../../src/core/errors.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.d.ts","names":[],"sources":["../../../src/core/errors.ts"],"mappings":";;;;;;;oBAOY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;qBASW,kBAAkB;WACb,MAAM;WACN;EAEhB,YAAY,MAAM,eAAe"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { hasLocale as hasLocale$1 } from "use-intl";
|
|
2
|
-
//#region src/core/hasLocale.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Drop-in for use-intl's `hasLocale`.
|
|
5
4
|
*
|
|
@@ -12,5 +11,4 @@ import { hasLocale as hasLocale$1 } from "use-intl";
|
|
|
12
11
|
* ```
|
|
13
12
|
*/
|
|
14
13
|
export declare const hasLocale: typeof hasLocale$1;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=hasLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasLocale.d.ts","names":[],"sources":["../../../src/core/hasLocale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"hasLocale.d.ts","names":["_hasLocale"],"sources":["../../../src/core/hasLocale.ts"],"mappings":";;;;;;;;;;;;qBAca,kBAAkBA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { initializeConfig as initializeConfig$1 } from "use-intl";
|
|
2
|
-
//#region src/core/initializeConfig.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Drop-in for use-intl's `initializeConfig`.
|
|
5
4
|
*
|
|
@@ -8,5 +7,4 @@ import { initializeConfig as initializeConfig$1 } from "use-intl";
|
|
|
8
7
|
* dictionaries) but the shape is preserved so callers keep type-checking.
|
|
9
8
|
*/
|
|
10
9
|
export declare const initializeConfig: typeof initializeConfig$1;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=initializeConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeConfig.d.ts","names":[],"sources":["../../../src/core/initializeConfig.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"initializeConfig.d.ts","names":["_initializeConfig"],"sources":["../../../src/core/initializeConfig.ts"],"mappings":";;;;;;;;qBASa,yBAAyBA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { IntlProvider, IntlProviderProps } from "./client/IntlProvider.js";
|
|
2
2
|
import { useFormatter, useMessages, useNow, useTimeZone } from "./client/helpers.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { _useExtracted } from "./client/index.js";
|
|
4
|
+
import "./core/index.js";
|
|
5
5
|
import { useDictionary } from "./useDictionary.js";
|
|
6
6
|
import { useDictionaryDynamic } from "./useDictionaryDynamic.js";
|
|
7
7
|
import { useLocale } from "./client/useLocale.js";
|
|
8
8
|
import { useTranslations } from "./client/useTranslations.js";
|
|
9
|
-
import {
|
|
9
|
+
import { MarkupChunkRenderer, RichChunkRenderer, createDictionaryTranslator } from "./shared/namespaceTranslator.js";
|
|
10
10
|
import { createFormatter } from "./core/createFormatter.js";
|
|
11
11
|
import { CreateTranslatorConfig, createTranslator } from "./core/createTranslator.js";
|
|
12
12
|
import { IntlError, IntlErrorCode } from "./core/errors.js";
|
|
13
13
|
import { hasLocale } from "./core/hasLocale.js";
|
|
14
14
|
import { initializeConfig } from "./core/initializeConfig.js";
|
|
15
15
|
import { AbstractIntlMessages, AppConfig, DateTimeFormatOptions, Formats, ICUArgs, ICUTags, IntlConfig, Locale, MarkupTagsFunction, MarkupTranslationValues, MessageKeys, Messages, NamespaceKeys, NestedKeyOf, NestedValueOf, NumberFormatOptions, RelativeTimeFormatOptions, RichTagsFunction, RichTranslationValues, Timezone, TranslationValues } from "./core/types.js";
|
|
16
|
-
import "./
|
|
16
|
+
import { ContentAtPath, LooseTranslateFunction, ScopedDotPaths, ScopedTranslateFunction, TranslateFunction, TranslateFunctionForNamespace, TranslatedValue } from "./shared/translateFunctionTypes.js";
|
|
17
17
|
export { type AbstractIntlMessages, type AppConfig, type ContentAtPath, type CreateTranslatorConfig, type DateTimeFormatOptions, type Formats, type ICUArgs, type ICUTags, type IntlConfig, IntlError, IntlErrorCode, IntlProvider, type IntlProviderProps, type Locale, type LooseTranslateFunction, type MarkupChunkRenderer, type MarkupTagsFunction, type MarkupTranslationValues, type MessageKeys, type Messages, type NamespaceKeys, type NestedKeyOf, type NestedValueOf, type NumberFormatOptions, type RelativeTimeFormatOptions, type RichChunkRenderer, type RichTagsFunction, type RichTranslationValues, type ScopedDotPaths, type ScopedTranslateFunction, type Timezone, type TranslateFunction, type TranslateFunctionForNamespace, type TranslatedValue, type TranslationValues, _useExtracted, createDictionaryTranslator, createFormatter, createTranslator, hasLocale, initializeConfig, useDictionary, useDictionaryDynamic, useFormatter, useLocale, useMessages, useNow, useTimeZone, useTranslations };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PluginOption } from "vite";
|
|
2
2
|
import { intlayer } from "vite-intlayer";
|
|
3
|
-
//#region src/plugin/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* A Vite plugin for use-intl compat that wraps vite-intlayer and configures
|
|
6
5
|
* resolve aliases so `use-intl` imports are served by `@intlayer/use-intl`.
|
|
@@ -16,6 +15,5 @@ import { intlayer } from "vite-intlayer";
|
|
|
16
15
|
* ```
|
|
17
16
|
*/
|
|
18
17
|
export declare const useIntlVitePlugin: (options?: Parameters<typeof intlayer>[0]) => PluginOption[];
|
|
19
|
-
//#endregion
|
|
20
18
|
export { useIntlVitePlugin as default };
|
|
21
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;;;;;;;;;;;qBAuBa,oBAAiB,UAClB,kBAAkB,iBAC3B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createFormatter } from "use-intl";
|
|
2
|
-
//#region src/shared/intlFormatter.d.ts
|
|
3
2
|
/** The formatter object shape exposed by use-intl. */
|
|
4
3
|
export type Formatter = ReturnType<typeof createFormatter>;
|
|
5
4
|
/**
|
|
@@ -13,5 +12,4 @@ export type Formatter = ReturnType<typeof createFormatter>;
|
|
|
13
12
|
* `relativeTime`, `list`, and `displayName`.
|
|
14
13
|
*/
|
|
15
14
|
export declare const buildIntlFormatter: (locale: string) => Formatter;
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=intlFormatter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intlFormatter.d.ts","names":[],"sources":["../../../src/shared/intlFormatter.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"intlFormatter.d.ts","names":["_createFormatter"],"sources":["../../../src/shared/intlFormatter.ts"],"mappings":";;YAGY,YAAY,kBAAkBA;;;;;;;;;;;qBA0B7B,qBAAkB,mBAAqB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { MessageValues, navigatePath } from "@intlayer/core/messageFormat";
|
|
4
|
-
//#region src/shared/namespaceTranslator.d.ts
|
|
5
4
|
/** Chunk renderer used by `t.rich()` — maps tag children to a React node. */
|
|
6
5
|
export type RichChunkRenderer = (chunks: ReactNode) => ReactNode;
|
|
7
6
|
/** Chunk renderer used by `t.markup()` — maps tag children to a string. */
|
|
@@ -67,6 +66,5 @@ export declare const createDictionaryTranslator: (locale: LocalesValues, content
|
|
|
67
66
|
markup: (key: string, values?: Record<string, unknown>) => string;
|
|
68
67
|
};
|
|
69
68
|
export type CompatTranslator = ReturnType<typeof createNamespaceTranslator>;
|
|
70
|
-
//#endregion
|
|
71
69
|
export { navigatePath };
|
|
72
70
|
//# sourceMappingURL=namespaceTranslator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaceTranslator.d.ts","names":[],"sources":["../../../src/shared/namespaceTranslator.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"namespaceTranslator.d.ts","names":[],"sources":["../../../src/shared/namespaceTranslator.tsx"],"mappings":";;;;YAkBY,qBAAqB,QAAQ,cAAc;;YAG3C,uBAAuB;;;;;;;;;;;;;;;;;qBA0EtB,4BAAyB,QAC5B,eAAa,yBACH,aAkHY,SAAW;;EAK5B,MAAA;;EAGA,MAAA;;;;;EAMC,OAAA,aAAM,SAAW,4BAA0B;;;;;EAWzC,SAAA,aAAM,SAAW;;;;;;;;;;;;;;qBAjEtB,6BAA0B,QAC7B,eAAa,kBACL,+BACQ,aAqCM,SAAW;;EAK5B,MAAA;;EAGA,MAAA;;;;;EAMC,OAAA,aAAM,SAAW,4BAA0B;;;;;EAWzC,SAAA,aAAM,SAAW;;YASvB,mBAAmB,kBAAkB"}
|
|
@@ -3,7 +3,6 @@ import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { GetNestingResult } from "@intlayer/core/interpreter";
|
|
5
5
|
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
6
|
-
//#region src/shared/translateFunctionTypes.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* The interpreter-resolved content type at dot-path `P` of dictionary `N` —
|
|
9
8
|
* the same type strength as the base `useIntlayer` hook.
|
|
@@ -74,5 +73,4 @@ export type LooseTranslateFunction = {
|
|
|
74
73
|
rich(key: string, values?: Record<string, RichChunkRenderer | ReactNode>): ReactNode;
|
|
75
74
|
markup(key: string, values?: Record<string, MarkupChunkRenderer | string | number>): string;
|
|
76
75
|
};
|
|
77
|
-
//#endregion
|
|
78
76
|
//# sourceMappingURL=translateFunctionTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translateFunctionTypes.d.ts","names":[],"sources":["../../../src/shared/translateFunctionTypes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"translateFunctionTypes.d.ts","names":[],"sources":["../../../src/shared/translateFunctionTypes.ts"],"mappings":";;;;;;;;;YAaY,cAAc,UAAU,gBAAgB,KAAK,iBAAiB,GAAG;;;;;;YAOjE,gBAAgB,UAAU,gBAAgB,KACpD,cAAc,GAAG,oBAAoB,cAAc,GAAG;;;;;YAM5C,eAAe,UAAU,gBAAgB,yBACnD,iBAAiB,kBAAiB,YAC9B,oBAAoB,gBAAgB,iBAClC;;;;;;;;;;;YAcI,kBAAkB,UAAU;;GAErC,UAAU,iBAAiB,IAC1B,KAAK,GACL,SAAS,0BACR,gBAAgB,GAAG;;EAEtB,IAAI,UAAU,iBAAiB,IAAI,KAAK;;EAExC,IAAI,UAAU,iBAAiB,IAAI,KAAK,IAAI,cAAc,GAAG;;EAE7D,KAAK,UAAU,iBAAiB,IAC9B,KAAK,GACL,SAAS,eAAe,oBAAoB,aAC3C;;EAEH,OAAO,UAAU,iBAAiB,IAChC,KAAK,GACL,SAAS,eAAe;;;;;;;YAShB,wBACV,UAAU,gBACV;;GAGC,UAAU,eAAe,GAAG,SAC3B,KAAK,GACL,SAAS,0BACR,gBAAgB,MAAM,UAAU;;EAEnC,IAAI,UAAU,eAAe,GAAG,SAAS,KAAK;;EAE9C,IAAI,UAAU,eAAe,GAAG,SAC9B,KAAK,IACJ,cAAc,MAAM,UAAU;;EAEjC,KAAK,UAAU,eAAe,GAAG,SAC/B,KAAK,GACL,SAAS,eAAe,oBAAoB,aAC3C;;EAEH,OAAO,UAAU,eAAe,GAAG,SACjC,KAAK,GACL,SAAS,eAAe;;;;;;;;YAUhB,8BAA8B,oBACxC,UAAU,iBACN,kBAAkB,KAClB,mBAAmB,UAAU,iCAAiC,WAC5D,wBAAwB,GAAG,UAC3B;;YAGI;GACT,aAAa,SAAS;EACvB,IAAI;EACJ,IAAI;EACJ,KACE,aACA,SAAS,eAAe,oBAAoB,aAC3C;EACH,OACE,aACA,SAAS,eAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ScopedTranslateFunction, TranslateFunction } from "./shared/translateFunctionTypes.js";
|
|
2
2
|
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/useDictionary.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Overload set for {@link useDictionary}: without a prefix the translator is
|
|
7
6
|
* typed against the dictionary's dot-paths; with a prefix the keys are
|
|
@@ -27,5 +26,5 @@ type UseDictionary = {
|
|
|
27
26
|
* const t = useDictionary(_abc);
|
|
28
27
|
*/
|
|
29
28
|
export declare const useDictionary: UseDictionary;
|
|
30
|
-
|
|
29
|
+
export {};
|
|
31
30
|
//# sourceMappingURL=useDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":";;;;;;;;KAuBK;GACF,UAAU,YACT,YAAY,IACX,kBAAkB,WAAW;GAC/B,UAAU,YAAY,uBACrB,YAAY,GACZ,iBAAiB,SAChB,wBAAwB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;qBAkB3C,eAYP"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ScopedTranslateFunction, TranslateFunction } from "./shared/translateFunctionTypes.js";
|
|
2
2
|
import { DictionaryKeys, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/useDictionaryDynamic.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Overload set for {@link useDictionaryDynamic}: without a prefix the
|
|
7
6
|
* translator is typed against the dictionary's dot-paths; with a prefix the
|
|
@@ -18,5 +17,5 @@ type UseDictionaryDynamic = {
|
|
|
18
17
|
* locale. Used internally by the build-time optimization.
|
|
19
18
|
*/
|
|
20
19
|
export declare const useDictionaryDynamic: UseDictionaryDynamic;
|
|
21
|
-
|
|
20
|
+
export {};
|
|
22
21
|
//# sourceMappingURL=useDictionaryDynamic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../src/useDictionaryDynamic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../src/useDictionaryDynamic.ts"],"mappings":";;;;;;;;KAwBK;GACF,UAAU,YAAY,UAAU,gBAC/B,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,IACJ,kBAAkB;GACpB,UAAU,YAAY,UAAU,gBAAgB,uBAC/C,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,iBAAiB,SAChB,wBAAwB,GAAG;;;;;;;;qBASnB,sBAgBP"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/use-intl",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "use-intl API adapter for intlayer — useTranslations, useLocale, useFormatter, IntlProvider, createTranslator backed by react-intlayer",
|
|
6
6
|
"keywords": [
|
|
@@ -90,26 +90,26 @@
|
|
|
90
90
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@intlayer/config": "9.
|
|
94
|
-
"@intlayer/core": "9.
|
|
95
|
-
"@intlayer/dictionaries-entry": "9.
|
|
96
|
-
"@intlayer/engine": "9.
|
|
97
|
-
"@intlayer/types": "9.
|
|
98
|
-
"react-intlayer": "9.
|
|
99
|
-
"vite-intlayer": "9.
|
|
93
|
+
"@intlayer/config": "9.7.1",
|
|
94
|
+
"@intlayer/core": "9.7.1",
|
|
95
|
+
"@intlayer/dictionaries-entry": "9.7.1",
|
|
96
|
+
"@intlayer/engine": "9.7.1",
|
|
97
|
+
"@intlayer/types": "9.7.1",
|
|
98
|
+
"react-intlayer": "9.7.1",
|
|
99
|
+
"vite-intlayer": "9.7.1"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@types/node": "^
|
|
102
|
+
"@types/node": "^26",
|
|
103
103
|
"@types/react": "19.3.0",
|
|
104
104
|
"@utils/ts-config": "1.0.4",
|
|
105
105
|
"@utils/ts-config-types": "1.0.4",
|
|
106
106
|
"@utils/tsdown-config": "1.0.4",
|
|
107
107
|
"rimraf": "6.1.3",
|
|
108
|
-
"tsdown": "0.23.
|
|
108
|
+
"tsdown": "0.23.4",
|
|
109
109
|
"typescript": "7.0.2",
|
|
110
|
-
"use-intl": "4.14.
|
|
111
|
-
"vite": "8.3.
|
|
112
|
-
"vitest": "5.0
|
|
110
|
+
"use-intl": "4.14.9",
|
|
111
|
+
"vite": "8.3.5",
|
|
112
|
+
"vitest": "5.1.0"
|
|
113
113
|
},
|
|
114
114
|
"peerDependencies": {
|
|
115
115
|
"react": ">=16.0.0",
|