react-intlayer 9.4.2 → 9.4.4
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/cjs/markdown/MarkdownProvider.cjs.map +1 -1
- package/dist/esm/markdown/MarkdownProvider.mjs.map +1 -1
- package/dist/types/IntlayerNode.d.ts +2 -3
- package/dist/types/IntlayerNode.d.ts.map +1 -1
- package/dist/types/UI/ContentSelector.d.ts +1 -2
- package/dist/types/UI/ContentSelector.d.ts.map +1 -1
- package/dist/types/analytics/AnalyticsProvider.d.ts +1 -2
- package/dist/types/analytics/AnalyticsProvider.d.ts.map +1 -1
- package/dist/types/analytics/exposureSink.d.ts +4 -5
- package/dist/types/analytics/exposureSink.d.ts.map +1 -1
- package/dist/types/analytics/useAnalytics.d.ts +1 -2
- package/dist/types/analytics/useAnalytics.d.ts.map +1 -1
- package/dist/types/analytics/useConversion.d.ts +2 -3
- package/dist/types/analytics/useConversion.d.ts.map +1 -1
- package/dist/types/analytics/useExperiment.d.ts +2 -3
- package/dist/types/analytics/useExperiment.d.ts.map +1 -1
- package/dist/types/client/IntlayerProvider.d.ts +5 -6
- package/dist/types/client/IntlayerProvider.d.ts.map +1 -1
- package/dist/types/client/format/useCompact.d.ts +1 -2
- package/dist/types/client/format/useCompact.d.ts.map +1 -1
- package/dist/types/client/format/useCurrency.d.ts +1 -2
- package/dist/types/client/format/useCurrency.d.ts.map +1 -1
- package/dist/types/client/format/useDate.d.ts +1 -2
- package/dist/types/client/format/useDate.d.ts.map +1 -1
- package/dist/types/client/format/useIntl.d.ts +1 -2
- package/dist/types/client/format/useIntl.d.ts.map +1 -1
- package/dist/types/client/format/useList.d.ts +1 -6
- package/dist/types/client/format/useList.d.ts.map +1 -1
- package/dist/types/client/format/useNumber.d.ts +1 -2
- package/dist/types/client/format/useNumber.d.ts.map +1 -1
- package/dist/types/client/format/usePercentage.d.ts +1 -2
- package/dist/types/client/format/usePercentage.d.ts.map +1 -1
- package/dist/types/client/format/useRelativeTime.d.ts +1 -2
- package/dist/types/client/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/client/format/useUnit.d.ts +1 -2
- package/dist/types/client/format/useUnit.d.ts.map +1 -1
- package/dist/types/client/t.d.ts +1 -2
- package/dist/types/client/t.d.ts.map +1 -1
- package/dist/types/client/useDictionary.d.ts +1 -2
- package/dist/types/client/useDictionary.d.ts.map +1 -1
- package/dist/types/client/useDictionaryAsync.d.ts +1 -2
- package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
- package/dist/types/client/useDictionaryDynamic.d.ts +1 -2
- package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
- package/dist/types/client/useI18n.d.ts +1 -2
- package/dist/types/client/useI18n.d.ts.map +1 -1
- package/dist/types/client/useIntlayer.d.ts +1 -2
- package/dist/types/client/useIntlayer.d.ts.map +1 -1
- package/dist/types/client/useLoadDynamic.d.ts +2 -3
- package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
- package/dist/types/client/useLocale.d.ts +3 -4
- package/dist/types/client/useLocale.d.ts.map +1 -1
- package/dist/types/client/useLocaleBase.d.ts +1 -2
- package/dist/types/client/useLocaleBase.d.ts.map +1 -1
- package/dist/types/client/useLocaleStorage.d.ts +6 -7
- package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
- package/dist/types/client/usePathname.d.ts +1 -2
- package/dist/types/client/usePathname.d.ts.map +1 -1
- package/dist/types/client/useRewriteURL.d.ts +1 -2
- package/dist/types/client/useRewriteURL.d.ts.map +1 -1
- package/dist/types/client/useTraduction.d.ts +1 -2
- package/dist/types/client/useTraduction.d.ts.map +1 -1
- package/dist/types/editor/ContentSelector.d.ts +2 -3
- package/dist/types/editor/ContentSelector.d.ts.map +1 -1
- package/dist/types/editor/EditorProvider.d.ts +1 -2
- package/dist/types/editor/EditorProvider.d.ts.map +1 -1
- package/dist/types/editor/useEditor.d.ts +1 -2
- package/dist/types/editor/useEditor.d.ts.map +1 -1
- package/dist/types/getDictionary.d.ts +1 -2
- package/dist/types/getDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayer.d.ts +1 -2
- package/dist/types/getIntlayer.d.ts.map +1 -1
- package/dist/types/html/HTMLComponentTypes.d.ts +2 -3
- package/dist/types/html/HTMLComponentTypes.d.ts.map +1 -1
- package/dist/types/html/HTMLProvider.d.ts +2 -3
- package/dist/types/html/HTMLProvider.d.ts.map +1 -1
- package/dist/types/html/HTMLRenderer.d.ts +5 -6
- package/dist/types/html/HTMLRenderer.d.ts.map +1 -1
- package/dist/types/html/HTMLRendererPlugin.d.ts +1 -2
- package/dist/types/html/HTMLRendererPlugin.d.ts.map +1 -1
- package/dist/types/html/types.d.ts +1 -2
- package/dist/types/html/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +10 -18
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownProvider.d.ts +5 -6
- package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownRenderer.d.ts +5 -6
- package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownRendererPlugin.d.ts +1 -2
- package/dist/types/markdown/MarkdownRendererPlugin.d.ts.map +1 -1
- package/dist/types/markdown/processor.d.ts +4 -4
- package/dist/types/markdown/processor.d.ts.map +1 -1
- package/dist/types/markdown/runtime.d.ts +2 -3
- package/dist/types/markdown/runtime.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +16 -17
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/reactElement/renderReactElement.d.ts +1 -2
- package/dist/types/reactElement/renderReactElement.d.ts.map +1 -1
- package/dist/types/server/IntlayerServerProvider.d.ts +8 -9
- package/dist/types/server/IntlayerServerProvider.d.ts.map +1 -1
- package/dist/types/server/format/useCompact.d.ts +1 -2
- package/dist/types/server/format/useCompact.d.ts.map +1 -1
- package/dist/types/server/format/useCurrency.d.ts +1 -2
- package/dist/types/server/format/useCurrency.d.ts.map +1 -1
- package/dist/types/server/format/useDate.d.ts +1 -2
- package/dist/types/server/format/useDate.d.ts.map +1 -1
- package/dist/types/server/format/useIntl.d.ts +1 -2
- package/dist/types/server/format/useIntl.d.ts.map +1 -1
- package/dist/types/server/format/useList.d.ts +1 -2
- package/dist/types/server/format/useList.d.ts.map +1 -1
- package/dist/types/server/format/useNumber.d.ts +1 -2
- package/dist/types/server/format/useNumber.d.ts.map +1 -1
- package/dist/types/server/format/usePercentage.d.ts +1 -2
- package/dist/types/server/format/usePercentage.d.ts.map +1 -1
- package/dist/types/server/format/useRelativeTime.d.ts +1 -2
- package/dist/types/server/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/server/format/useUnit.d.ts +1 -2
- package/dist/types/server/format/useUnit.d.ts.map +1 -1
- package/dist/types/server/serverContext.d.ts +3 -4
- package/dist/types/server/serverContext.d.ts.map +1 -1
- package/dist/types/server/t.d.ts +1 -2
- package/dist/types/server/t.d.ts.map +1 -1
- package/dist/types/server/useDictionary.d.ts +1 -2
- package/dist/types/server/useDictionary.d.ts.map +1 -1
- package/dist/types/server/useDictionaryAsync.d.ts +1 -2
- package/dist/types/server/useDictionaryAsync.d.ts.map +1 -1
- package/dist/types/server/useDictionaryDynamic.d.ts +1 -2
- package/dist/types/server/useDictionaryDynamic.d.ts.map +1 -1
- package/dist/types/server/useI18n.d.ts +1 -2
- package/dist/types/server/useI18n.d.ts.map +1 -1
- package/dist/types/server/useIntlayer.d.ts +1 -2
- package/dist/types/server/useIntlayer.d.ts.map +1 -1
- package/dist/types/server/useLoadDynamic.d.ts +1 -2
- package/dist/types/server/useLoadDynamic.d.ts.map +1 -1
- package/dist/types/server/useLocale.d.ts +2 -3
- package/dist/types/server/useLocale.d.ts.map +1 -1
- package/package.json +10 -10
package/dist/types/plugins.d.ts
CHANGED
|
@@ -9,38 +9,38 @@ import { NodeType } from "@intlayer/types/nodeType";
|
|
|
9
9
|
/** ---------------------------------------------
|
|
10
10
|
* INTLAYER NODE PLUGIN
|
|
11
11
|
* --------------------------------------------- */
|
|
12
|
-
type IntlayerNodeCond<T> = T extends number | string ? IntlayerNode<T> : never;
|
|
12
|
+
export type IntlayerNodeCond<T> = T extends number | string ? IntlayerNode<T> : never;
|
|
13
13
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
14
|
-
declare const intlayerNodePlugins: Plugins;
|
|
14
|
+
export declare const intlayerNodePlugins: Plugins;
|
|
15
15
|
/** ---------------------------------------------
|
|
16
16
|
* REACT NODE PLUGIN
|
|
17
17
|
* --------------------------------------------- */
|
|
18
|
-
type ReactNodeCond<T> = T extends {
|
|
18
|
+
export type ReactNodeCond<T> = T extends {
|
|
19
19
|
props: any;
|
|
20
20
|
key: any;
|
|
21
21
|
} ? ReactNode : never;
|
|
22
22
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
23
|
-
declare const reactNodePlugins: Plugins;
|
|
23
|
+
export declare const reactNodePlugins: Plugins;
|
|
24
24
|
/** ---------------------------------------------
|
|
25
25
|
* INSERTION PLUGIN
|
|
26
26
|
* --------------------------------------------- */
|
|
27
|
-
type InsertionCond<T> = T extends {
|
|
27
|
+
export type InsertionCond<T> = T extends {
|
|
28
28
|
nodeType: NodeType | string;
|
|
29
29
|
[NodeTypes.INSERTION]: infer I;
|
|
30
30
|
fields: readonly string[];
|
|
31
31
|
} ? <V extends { [K in T['fields'][number]]: ReactNode; }>(values: V) => I extends string ? V[keyof V] extends string | number ? IntlayerNode<string> : IntlayerNode<ReactNode> : DeepTransformContent<I> : never;
|
|
32
32
|
/** Insertion plugin for React. Handles component/node insertion. */
|
|
33
|
-
declare const insertionPlugin: Plugins;
|
|
33
|
+
export declare const insertionPlugin: Plugins;
|
|
34
34
|
/**
|
|
35
35
|
* MARKDOWN PLUGIN
|
|
36
36
|
*/
|
|
37
|
-
type MarkdownStringCond<T> = T extends string ? IntlayerNode<string, {
|
|
37
|
+
export type MarkdownStringCond<T> = T extends string ? IntlayerNode<string, {
|
|
38
38
|
metadata: DeepTransformContent<string>;
|
|
39
39
|
use: (components: HTMLComponents<'permissive', {}>) => ReactNode;
|
|
40
40
|
}> : never;
|
|
41
41
|
/** Markdown string plugin. Replaces string node with a component that render the markdown. */
|
|
42
|
-
declare const markdownStringPlugin: Plugins;
|
|
43
|
-
type MarkdownCond<T> = T extends {
|
|
42
|
+
export declare const markdownStringPlugin: Plugins;
|
|
43
|
+
export type MarkdownCond<T> = T extends {
|
|
44
44
|
nodeType: NodeType | string;
|
|
45
45
|
[NodeTypes.MARKDOWN]: infer M;
|
|
46
46
|
tags?: infer U;
|
|
@@ -49,7 +49,7 @@ type MarkdownCond<T> = T extends {
|
|
|
49
49
|
use: (components?: HTMLComponents<'permissive', U>) => ReactNode;
|
|
50
50
|
metadata: DeepTransformContent<V>;
|
|
51
51
|
}> : never;
|
|
52
|
-
declare const markdownPlugin: Plugins;
|
|
52
|
+
export declare const markdownPlugin: Plugins;
|
|
53
53
|
/** ---------------------------------------------
|
|
54
54
|
* HTML PLUGIN
|
|
55
55
|
* --------------------------------------------- */
|
|
@@ -61,7 +61,7 @@ declare const markdownPlugin: Plugins;
|
|
|
61
61
|
* This ensures type safety:
|
|
62
62
|
* - `html('<div>Hello <CustomComponent /></div>').use({ CustomComponent: ... })` - optional but typed
|
|
63
63
|
*/
|
|
64
|
-
type HTMLPluginCond<T> = T extends {
|
|
64
|
+
export type HTMLPluginCond<T> = T extends {
|
|
65
65
|
nodeType: NodeType | string;
|
|
66
66
|
[NodeTypes.HTML]: infer I;
|
|
67
67
|
tags?: infer U;
|
|
@@ -69,11 +69,11 @@ type HTMLPluginCond<T> = T extends {
|
|
|
69
69
|
use: (components?: HTMLComponents<'permissive', U>) => ReactNode;
|
|
70
70
|
}> : never;
|
|
71
71
|
/** HTML plugin. Replaces node with a function that takes components => ReactNode. */
|
|
72
|
-
declare const htmlPlugin: Plugins;
|
|
72
|
+
export declare const htmlPlugin: Plugins;
|
|
73
73
|
/** ---------------------------------------------
|
|
74
74
|
* PLUGINS RESULT
|
|
75
75
|
* --------------------------------------------- */
|
|
76
|
-
type IInterpreterPluginReact<T, _S, _L extends LocalesValues> = {
|
|
76
|
+
export type IInterpreterPluginReact<T, _S, _L extends LocalesValues> = {
|
|
77
77
|
reactNode: ReactNodeCond<T>;
|
|
78
78
|
reactIntlayerNode: IntlayerNodeCond<T>;
|
|
79
79
|
reactInsertion: InsertionCond<T>;
|
|
@@ -85,19 +85,18 @@ type IInterpreterPluginReact<T, _S, _L extends LocalesValues> = {
|
|
|
85
85
|
*
|
|
86
86
|
* Otherwise the the `react-intlayer` plugins will override the types of `intlayer` functions.
|
|
87
87
|
*/
|
|
88
|
-
type IInterpreterPluginState = Omit<IInterpreterPluginState$1, 'insertion'> & {
|
|
88
|
+
export type IInterpreterPluginState = Omit<IInterpreterPluginState$1, 'insertion'> & {
|
|
89
89
|
reactNode: true;
|
|
90
90
|
reactIntlayerNode: true;
|
|
91
91
|
reactMarkdown: true;
|
|
92
92
|
reactHtml: true;
|
|
93
93
|
reactInsertion: true;
|
|
94
94
|
};
|
|
95
|
-
type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> = DeepTransformContent$1<T, IInterpreterPluginState, L>;
|
|
95
|
+
export type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> = DeepTransformContent$1<T, IInterpreterPluginState, L>;
|
|
96
96
|
/**
|
|
97
97
|
* Get the plugins array for React content transformation.
|
|
98
98
|
* This function is used by both getIntlayer and getDictionary to ensure consistent plugin configuration.
|
|
99
99
|
*/
|
|
100
|
-
declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
|
|
100
|
+
export declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
|
|
101
101
|
//#endregion
|
|
102
|
-
export { DeepTransformContent, HTMLPluginCond, IInterpreterPluginReact, IInterpreterPluginState, InsertionCond, IntlayerNodeCond, MarkdownCond, MarkdownStringCond, ReactNodeCond, getPlugins, htmlPlugin, insertionPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin, reactNodePlugins };
|
|
103
102
|
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.tsx"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.tsx"],"mappings":";;;;;;;;;;;YAoEY,iBAAiB,KAAK,4BAC9B,aAAa;;qBAIJ,qBAAqB;;;;YAyCtB,cAAc,KAAK;EAC7B;EACA;IAEE;;qBAIS,kBAAkB;;;;YA8CnB,cAAc,KAAK;EAC7B,UAAU;GACT,UAAU,kBAAkB;EAC7B;KAEG,aAAa,KAAK,sBAAsB,cACvC,QAAQ,MACL,mBACD,QAAQ,6BACN,uBACA,aAAa,aACf,qBAAqB;;qBA4BhB,iBAAiB;;;;YA4GlB,mBAAmB,KAAK,mBAChC;EAGI,UAAU;EACV,MAAM,YAAY,qCAAqC;;;qBAiBlD,sBAAsB;YAqFvB,aAAa,KAAK;EAC5B,UAAU;GACT,UAAU,iBAAiB;EAC5B,aAAa;EACb,iBAAiB;IAEf,aACE;EAEE,MAAM,aAAa,6BAA6B,OAAO;EACvD,UAAU,qBAAqB;;qBAK1B,gBAAgB;;;;;;;;;;;;YAsCjB,eAAe,KAAK;EAC9B,UAAU;GACT,UAAU,aAAa;EACxB,aAAa;IAEX,aACE;EAEE,MAAM,aAAa,6BAA6B,OAAO;;;qBAclD,YAAY;;;;YA6Db,wBAAwB,GAAG,IAAI,WAAW;EACpD,WAAW,cAAc;EACzB,mBAAmB,iBAAiB;EACpC,gBAAgB,cAAc;EAC9B,eAAe,aAAa;EAC5B,WAAW,eAAe;;;;;;;YAQhB,0BAA0B,KACpC;EAGA;EACA;EACA;EACA;EACA;;YAGU,qBACV,GACA,UAAU,gBAAgB,mBACxB,uBAAyB,GAAG,yBAAyB;;;;;qBAQ5C,aAAU,SACZ,eAAa,uBAErB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
//#region src/reactElement/renderReactElement.d.ts
|
|
3
|
-
declare const renderReactElement: (element: ReactElement<any>) => any;
|
|
3
|
+
export declare const renderReactElement: (element: ReactElement<any>) => any;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { renderReactElement };
|
|
6
5
|
//# sourceMappingURL=renderReactElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderReactElement.d.ts","names":[],"sources":["../../../src/reactElement/renderReactElement.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"renderReactElement.d.ts","names":[],"sources":["../../../src/reactElement/renderReactElement.ts"],"mappings":";;qBAGa,qBAAkB,SAAa"}
|
|
@@ -5,22 +5,22 @@ import { FC, PropsWithChildren } from "react";
|
|
|
5
5
|
/**
|
|
6
6
|
* Context that store the current locale on the server side
|
|
7
7
|
*/
|
|
8
|
-
declare const IntlayerServerContext: ServerContext<LocalesValues>;
|
|
8
|
+
export declare const IntlayerServerContext: ServerContext<LocalesValues>;
|
|
9
9
|
/**
|
|
10
10
|
* Context that stores the ambient variant on the server side.
|
|
11
11
|
*
|
|
12
12
|
* Kept separate from {@link IntlayerServerContext} so the locale context keeps
|
|
13
13
|
* its plain `LocalesValues` shape for the packages already reading it.
|
|
14
14
|
*/
|
|
15
|
-
declare const IntlayerServerVariantContext: ServerContext<ProviderVariant>;
|
|
15
|
+
export declare const IntlayerServerVariantContext: ServerContext<ProviderVariant>;
|
|
16
16
|
/**
|
|
17
17
|
* Hook that provides the current locale
|
|
18
18
|
*/
|
|
19
|
-
declare const useIntlayer: () => LocalesValues;
|
|
19
|
+
export declare const useIntlayer: () => LocalesValues;
|
|
20
20
|
/**
|
|
21
21
|
* Get the current locale
|
|
22
22
|
*/
|
|
23
|
-
declare const locale: LocalesValues;
|
|
23
|
+
export declare const locale: LocalesValues;
|
|
24
24
|
/**
|
|
25
25
|
* Seeds the request-scoped server context locale imperatively — the equivalent
|
|
26
26
|
* of mounting {@link IntlayerServerProvider} without wrapping the tree.
|
|
@@ -36,14 +36,14 @@ declare const locale: LocalesValues;
|
|
|
36
36
|
* };
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
declare const setLocale: (locale: LocalesValues) => void;
|
|
39
|
+
export declare const setLocale: (locale: LocalesValues) => void;
|
|
40
40
|
/**
|
|
41
41
|
* Seeds the request-scoped ambient variant imperatively — the equivalent of
|
|
42
42
|
* the `variant` prop of {@link IntlayerServerProvider} without wrapping the
|
|
43
43
|
* tree. See that prop for the accepted shapes.
|
|
44
44
|
*/
|
|
45
|
-
declare const setVariant: (variant: ProviderVariant) => void;
|
|
46
|
-
type IntlayerServerProviderProps = PropsWithChildren & {
|
|
45
|
+
export declare const setVariant: (variant: ProviderVariant) => void;
|
|
46
|
+
export type IntlayerServerProviderProps = PropsWithChildren & {
|
|
47
47
|
locale?: LocalesValues;
|
|
48
48
|
/**
|
|
49
49
|
* Ambient variant applied to every dictionary read below this provider — for
|
|
@@ -58,7 +58,6 @@ type IntlayerServerProviderProps = PropsWithChildren & {
|
|
|
58
58
|
/**
|
|
59
59
|
* Provider that store the current locale on the server side
|
|
60
60
|
*/
|
|
61
|
-
declare const IntlayerServerProvider: FC<IntlayerServerProviderProps>;
|
|
61
|
+
export declare const IntlayerServerProvider: FC<IntlayerServerProviderProps>;
|
|
62
62
|
//#endregion
|
|
63
|
-
export { IntlayerServerContext, IntlayerServerProvider, IntlayerServerProviderProps, IntlayerServerVariantContext, locale, setLocale, setVariant, useIntlayer };
|
|
64
63
|
//# sourceMappingURL=IntlayerServerProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerServerProvider.d.ts","names":[],"sources":["../../../src/server/IntlayerServerProvider.tsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"IntlayerServerProvider.d.ts","names":[],"sources":["../../../src/server/IntlayerServerProvider.tsx"],"mappings":";;;;;;;qBAca,uBAAqB,cAAA;;;;;;;qBASrB,8BAA4B,cAAA;;;;qBAM5B,mBAAW;;;;qBAKX,QAAM;;;;;;;;;;;;;;;;qBAiBN,YAAS,QAAY;;;;;;qBASrB,aAAU,SAAa;YAIxB,8BAA8B;EACxC,SAAS;;;;;;;;;EAST,UAAU;;;;;qBAMC,wBAAwB,GAAG"}
|
|
@@ -10,7 +10,6 @@ import { compact } from "@intlayer/core/formatters";
|
|
|
10
10
|
* formatCompact(1500); // "1.5K"
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
declare const useCompact: () => (...args: Parameters<typeof compact>) => string;
|
|
13
|
+
export declare const useCompact: () => (...args: Parameters<typeof compact>) => string;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { useCompact };
|
|
16
15
|
//# sourceMappingURL=useCompact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/server/format/useCompact.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/server/format/useCompact.ts"],"mappings":";;;;;;;;;;;;qBAea,sBAAU,MAGJ,kBAAkB"}
|
|
@@ -21,7 +21,6 @@ import { currency } from "@intlayer/core/formatters";
|
|
|
21
21
|
* // "¥9,876,543"
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
declare const useCurrency: () => (...args: Parameters<typeof currency>) => string;
|
|
24
|
+
export declare const useCurrency: () => (...args: Parameters<typeof currency>) => string;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { useCurrency };
|
|
27
26
|
//# sourceMappingURL=useCurrency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/server/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/server/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBA0Ba,uBAAW,MAGL,kBAAkB"}
|
|
@@ -26,7 +26,6 @@ import { date } from "@intlayer/core/formatters";
|
|
|
26
26
|
*
|
|
27
27
|
* @see createDate
|
|
28
28
|
*/
|
|
29
|
-
declare const useDate: () => (...args: Parameters<typeof date>) => string;
|
|
29
|
+
export declare const useDate: () => (...args: Parameters<typeof date>) => string;
|
|
30
30
|
//#endregion
|
|
31
|
-
export { useDate };
|
|
32
31
|
//# sourceMappingURL=useDate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/server/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/server/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+Ba,mBAAO,MAGD,kBAAkB"}
|
|
@@ -29,7 +29,6 @@ import { WrappedIntl } from "@intlayer/core/formatters";
|
|
|
29
29
|
* const date2 = new intl.DateTimeFormat('fr-FR').format(new Date());
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare const useIntl: (locale?: LocalesValues) => WrappedIntl;
|
|
32
|
+
export declare const useIntl: (locale?: LocalesValues) => WrappedIntl;
|
|
33
33
|
//#endregion
|
|
34
|
-
export { useIntl };
|
|
35
34
|
//# sourceMappingURL=useIntl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../../src/server/format/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../../src/server/format/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkCa,UAAO,SAAa,kBAAgB"}
|
|
@@ -18,7 +18,6 @@ import { list } from "@intlayer/core/formatters";
|
|
|
18
18
|
* // "1, 2 und 3"
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
declare const useList: () => (...args: Parameters<typeof list>) => string;
|
|
21
|
+
export declare const useList: () => (...args: Parameters<typeof list>) => string;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { useList };
|
|
24
23
|
//# sourceMappingURL=useList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/server/format/useList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/server/format/useList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAuBa,mBAAO,MAGD,kBAAkB"}
|
|
@@ -22,7 +22,6 @@ import { number } from "@intlayer/core/formatters";
|
|
|
22
22
|
* @returns {(value: string | number, options?: import("../createNumber").NumberProps) => string}
|
|
23
23
|
* A number formatting function bound to the active locale.
|
|
24
24
|
*/
|
|
25
|
-
declare const useNumber: () => (...args: Parameters<typeof number>) => string;
|
|
25
|
+
export declare const useNumber: () => (...args: Parameters<typeof number>) => string;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { useNumber };
|
|
28
27
|
//# sourceMappingURL=useNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/server/format/useNumber.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/server/format/useNumber.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;qBA2Ba,qBAAS,MAGH,kBAAkB"}
|
|
@@ -18,7 +18,6 @@ import { percentage } from "@intlayer/core/formatters";
|
|
|
18
18
|
* @returns {(value: string | number, options?: Omit<PercentageOptions, "value">) => string}
|
|
19
19
|
* A function that formats numbers or numeric strings into localized percentages.
|
|
20
20
|
*/
|
|
21
|
-
declare const usePercentage: () => (...args: Parameters<typeof percentage>) => string;
|
|
21
|
+
export declare const usePercentage: () => (...args: Parameters<typeof percentage>) => string;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { usePercentage };
|
|
24
23
|
//# sourceMappingURL=usePercentage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../../src/server/format/usePercentage.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../../src/server/format/usePercentage.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAuBa,yBAAa,MAGP,kBAAkB"}
|
|
@@ -18,7 +18,6 @@ import { relativeTime } from "@intlayer/core/formatters";
|
|
|
18
18
|
* @returns {ReturnType<typeof createRelativeTime>} A relative time formatting function
|
|
19
19
|
* bound to the current client locale.
|
|
20
20
|
*/
|
|
21
|
-
declare const useRelativeTime: () => (...args: Parameters<typeof relativeTime>) => string;
|
|
21
|
+
export declare const useRelativeTime: () => (...args: Parameters<typeof relativeTime>) => string;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { useRelativeTime };
|
|
24
23
|
//# sourceMappingURL=useRelativeTime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/server/format/useRelativeTime.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/server/format/useRelativeTime.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAuBa,2BAAe,MAGT,kBAAkB"}
|
|
@@ -17,7 +17,6 @@ import { units } from "@intlayer/core/formatters";
|
|
|
17
17
|
*
|
|
18
18
|
* @returns {Function} A unit formatting function that accepts a value and optional formatting options.
|
|
19
19
|
*/
|
|
20
|
-
declare const useUnit: () => (...args: Parameters<typeof units>) => string;
|
|
20
|
+
export declare const useUnit: () => (...args: Parameters<typeof units>) => string;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { useUnit };
|
|
23
22
|
//# sourceMappingURL=useUnit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../../src/server/format/useUnit.ts"],"mappings":";;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../../src/server/format/useUnit.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAsBa,mBAAO,MAGD,kBAAkB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
2
2
|
//#region src/server/serverContext.d.ts
|
|
3
|
-
declare const createServerContext: <T>(defaultValue?: T) => ServerContext<T>;
|
|
3
|
+
export declare const createServerContext: <T>(defaultValue?: T) => ServerContext<T>;
|
|
4
4
|
/**
|
|
5
5
|
* Fetches a value present in a given server context.
|
|
6
6
|
* Attempts to closely mimic the `useContext` API.
|
|
@@ -8,8 +8,8 @@ declare const createServerContext: <T>(defaultValue?: T) => ServerContext<T>;
|
|
|
8
8
|
* @example
|
|
9
9
|
* getServerContext(IntlayerServer);
|
|
10
10
|
*/
|
|
11
|
-
declare const getServerContext: <T>({ _storage, _defaultValue }: ServerContext<T>) => T;
|
|
12
|
-
type ServerContext<T> = FC<PropsWithChildren<{
|
|
11
|
+
export declare const getServerContext: <T>({ _storage, _defaultValue }: ServerContext<T>) => T;
|
|
12
|
+
export type ServerContext<T> = FC<PropsWithChildren<{
|
|
13
13
|
value?: T;
|
|
14
14
|
}>> & {
|
|
15
15
|
Provider: FC<PropsWithChildren<{
|
|
@@ -24,5 +24,4 @@ type ServerContext<T> = FC<PropsWithChildren<{
|
|
|
24
24
|
_defaultValue: T | undefined;
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
|
-
export { ServerContext, createServerContext, getServerContext };
|
|
28
27
|
//# sourceMappingURL=serverContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverContext.d.ts","names":[],"sources":["../../../src/server/serverContext.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"serverContext.d.ts","names":[],"sources":["../../../src/server/serverContext.tsx"],"mappings":";;qBAiBa,sBAAuB,GAAC,eAAkB,MAAI,cAAc;;;;;;;;qBAqC5D,mBAAoB,KAAC,UAAA,iBAG/B,cAAc,OAAE;YAOP,cAAc,KAAK,GAAG;EAAoB,QAAQ;;EAC5D,UAAU,GAAG;IAAoB,QAAQ;;EACzC,UAAU,GACR;IAAoB,WAAW,SAAS,kBAAkB;;EAE5D;IAAkB,OAAO;;EACzB,eAAe"}
|
package/dist/types/server/t.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/t
|
|
|
21
21
|
* - this function will require each locale to be defined if defined in the project configuration.
|
|
22
22
|
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
23
23
|
*/
|
|
24
|
-
declare const t: <Content = string, L extends LocalesValues = DeclaredLocales>(multilangContent: StrictModeLocaleMap<Content>, locale?: L) => Content;
|
|
24
|
+
export declare const t: <Content = string, L extends LocalesValues = DeclaredLocales>(multilangContent: StrictModeLocaleMap<Content>, locale?: L) => Content;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { t };
|
|
27
26
|
//# sourceMappingURL=t.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/server/t.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/server/t.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBA8Ba,IAAK,kBAAkB,UAAU,gBAAgB,iBAAe,kBACzD,oBAAoB,UAAQ,SACrC,MAAC"}
|
|
@@ -9,7 +9,6 @@ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup } from
|
|
|
9
9
|
* If the locale is not provided (directly or through the selector), it will
|
|
10
10
|
* use the locale from the server context
|
|
11
11
|
*/
|
|
12
|
-
declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A, fallbackLocale?: DeclaredLocales) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").ResolveQualifiedDictionaryContent<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
|
|
12
|
+
export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A, fallbackLocale?: DeclaredLocales) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").ResolveQualifiedDictionaryContent<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { useDictionary };
|
|
15
14
|
//# sourceMappingURL=useDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/server/useDictionary.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/server/useDictionary.ts"],"mappings":";;;;;;;;;;;qBAyBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,GAAC,iBACH,yDAAe,+CAAA,kCAAA,GAAA,IAAA,mDAAA,sBAAA"}
|
|
@@ -7,7 +7,6 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
7
7
|
*
|
|
8
8
|
* If the locale is not provided, it will use the locale from the server context
|
|
9
9
|
*/
|
|
10
|
-
declare const useDictionaryAsync: <const T extends Dictionary, const L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: L, fallbackLocale?: DeclaredLocales) => Promise<import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").ResolveQualifiedDictionaryContent<T, L>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<L>>>;
|
|
10
|
+
export declare const useDictionaryAsync: <const T extends Dictionary, const L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: L, fallbackLocale?: DeclaredLocales) => Promise<import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").ResolveQualifiedDictionaryContent<T, L>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<L>>>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { useDictionaryAsync };
|
|
13
12
|
//# sourceMappingURL=useDictionaryAsync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/server/useDictionaryAsync.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/server/useDictionaryAsync.ts"],"mappings":";;;;;;;;;qBAgBa,2BACL,UAAU,kBACV,UAAU,gBAAgB,iBAAe,mBAE5B,0BAA0B,QAAQ,KAAG,SAC/C,GAAC,iBACO,oBAAe,6CAAA,+CAAA,kCAAA,GAAA,IAAA,mDAAA,sBAAA"}
|
|
@@ -13,7 +13,6 @@ import { QualifiedDynamicLoaderMap } from "@intlayer/core/dictionaryManipulator"
|
|
|
13
13
|
* If the locale is not provided (directly or through the selector), the server
|
|
14
14
|
* context locale is used.
|
|
15
15
|
*/
|
|
16
|
-
declare const useDictionaryDynamic: <const T extends Dictionary, const A extends LocalesValues | DictionarySelector = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: string, localeOrSelector?: A, fallbackLocale?: DeclaredLocales) => any;
|
|
16
|
+
export declare const useDictionaryDynamic: <const T extends Dictionary, const A extends LocalesValues | DictionarySelector = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: string, localeOrSelector?: A, fallbackLocale?: DeclaredLocales) => any;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { useDictionaryDynamic };
|
|
19
18
|
//# sourceMappingURL=useDictionaryDynamic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/server/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/server/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;;;;qBAwCa,6BACL,UAAU,kBACV,UAAU,gBAAgB,qBAAqB,iBAAe,mBAGhE,0BAA0B,QAAQ,MAClC,2BAAyB,aAClB,mBACQ,GAAC,iBACH"}
|
|
@@ -18,7 +18,6 @@ import { GetSubPath } from "@intlayer/types/dictionary";
|
|
|
18
18
|
* const nestedContent = t('section.subtitle'); // Returns 'IndexPage.section.subtitle'
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
declare const useI18n: <T extends DictionaryKeys>(namespace: T, locale?: LocalesValues) => <P extends ValidDotPathsFor<T>>(path: P) => GetSubPath<DeepTransformContent<DictionaryRegistryContent<T>>, P>;
|
|
21
|
+
export declare const useI18n: <T extends DictionaryKeys>(namespace: T, locale?: LocalesValues) => <P extends ValidDotPathsFor<T>>(path: P) => GetSubPath<DeepTransformContent<DictionaryRegistryContent<T>>, P>;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { useI18n };
|
|
24
23
|
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","names":[],"sources":["../../../src/server/useI18n.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","names":[],"sources":["../../../src/server/useI18n.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBA2Ba,UAAW,UAAU,gBAAc,WACnC,GAAC,SACH,mBAUE,UAAU,iBAAiB,IAAE,MAChC,MACL,WAAW,qBAAqB,0BAA0B,KAAK"}
|
|
@@ -9,7 +9,6 @@ import { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValue
|
|
|
9
9
|
*
|
|
10
10
|
* If the locale is not provided, it will use the locale from the server context
|
|
11
11
|
*/
|
|
12
|
-
declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A, fallbackLocale?: DeclaredLocales) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").DictionaryRegistryResult<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
|
|
12
|
+
export declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A, fallbackLocale?: DeclaredLocales) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").DictionaryRegistryResult<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { useIntlayer };
|
|
15
14
|
//# sourceMappingURL=useIntlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/server/useIntlayer.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/server/useIntlayer.ts"],"mappings":";;;;;;;;;;;qBAuBa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,GAAC,iBACH,yDAAe,+CAAA,yBAAA,GAAA,IAAA,mDAAA,sBAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/server/useLoadDynamic.d.ts
|
|
2
|
-
declare const useLoadDynamic: <T>(_key: string, promise: Promise<T>) => T;
|
|
2
|
+
export declare const useLoadDynamic: <T>(_key: string, promise: Promise<T>) => T;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { useLoadDynamic };
|
|
5
4
|
//# sourceMappingURL=useLoadDynamic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/server/useLoadDynamic.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/server/useLoadDynamic.ts"],"mappings":";qBAEa,iBAAkB,GAAC,cAAc,SAAW,QAAQ,OAAK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeclaredLocales } from "@intlayer/types/module_augmentation";
|
|
2
2
|
//#region src/server/useLocale.d.ts
|
|
3
|
-
type UseLocaleResult = {
|
|
3
|
+
export type UseLocaleResult = {
|
|
4
4
|
locale: DeclaredLocales;
|
|
5
5
|
defaultLocale: DeclaredLocales;
|
|
6
6
|
availableLocales: DeclaredLocales[];
|
|
@@ -10,7 +10,6 @@ type UseLocaleResult = {
|
|
|
10
10
|
*
|
|
11
11
|
* If the locale is not provided, it will use the locale from the server context
|
|
12
12
|
*/
|
|
13
|
-
declare const useLocale: () => UseLocaleResult;
|
|
13
|
+
export declare const useLocale: () => UseLocaleResult;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { UseLocaleResult, useLocale };
|
|
16
15
|
//# sourceMappingURL=useLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/server/useLocale.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/server/useLocale.ts"],"mappings":";;YAKY;EACV,QAAQ;EACR,eAAe;EACf,kBAAkB;;;;;;;qBAQP,iBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intlayer",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your React applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -132,12 +132,12 @@
|
|
|
132
132
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
133
133
|
},
|
|
134
134
|
"dependencies": {
|
|
135
|
-
"@intlayer/api": "9.4.
|
|
136
|
-
"@intlayer/config": "9.4.
|
|
137
|
-
"@intlayer/core": "9.4.
|
|
138
|
-
"@intlayer/dictionaries-entry": "9.4.
|
|
139
|
-
"@intlayer/editor": "9.4.
|
|
140
|
-
"@intlayer/types": "9.4.
|
|
135
|
+
"@intlayer/api": "9.4.4",
|
|
136
|
+
"@intlayer/config": "9.4.4",
|
|
137
|
+
"@intlayer/core": "9.4.4",
|
|
138
|
+
"@intlayer/dictionaries-entry": "9.4.4",
|
|
139
|
+
"@intlayer/editor": "9.4.4",
|
|
140
|
+
"@intlayer/types": "9.4.4"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
143
|
"@craco/types": "7.1.0",
|
|
@@ -149,16 +149,16 @@
|
|
|
149
149
|
"@utils/ts-config-types": "1.0.4",
|
|
150
150
|
"@utils/tsdown-config": "1.0.4",
|
|
151
151
|
"rimraf": "6.1.3",
|
|
152
|
-
"tsdown": "0.
|
|
152
|
+
"tsdown": "0.23.0",
|
|
153
153
|
"typescript": "7.0.2",
|
|
154
|
-
"vitest": "
|
|
154
|
+
"vitest": "5.0.0"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
157
|
"react": ">=16.0.0",
|
|
158
158
|
"react-dom": ">=16.0.0"
|
|
159
159
|
},
|
|
160
160
|
"optionalDependencies": {
|
|
161
|
-
"@intlayer/analytics": "9.4.
|
|
161
|
+
"@intlayer/analytics": "9.4.4"
|
|
162
162
|
},
|
|
163
163
|
"engines": {
|
|
164
164
|
"node": ">=14.18"
|