react-intlayer 9.7.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/cjs/IntlayerNode.cjs +1 -2
- package/dist/cjs/UI/ContentSelector.cjs +1 -2
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/cjs/analytics/AnalyticsProvider.cjs +2 -3
- package/dist/cjs/analytics/exposureSink.cjs +1 -2
- package/dist/cjs/analytics/index.cjs +4 -4
- package/dist/cjs/analytics/useAnalytics.cjs +4 -5
- package/dist/cjs/analytics/useConversion.cjs +2 -3
- package/dist/cjs/analytics/useExperiment.cjs +2 -3
- package/dist/cjs/client/IntlayerProvider.cjs +6 -7
- package/dist/cjs/client/format/index.cjs +9 -9
- package/dist/cjs/client/format/useCompact.cjs +2 -3
- package/dist/cjs/client/format/useCurrency.cjs +2 -3
- package/dist/cjs/client/format/useDate.cjs +2 -3
- package/dist/cjs/client/format/useIntl.cjs +2 -3
- package/dist/cjs/client/format/useList.cjs +2 -3
- package/dist/cjs/client/format/useNumber.cjs +2 -3
- package/dist/cjs/client/format/usePercentage.cjs +2 -3
- package/dist/cjs/client/format/useRelativeTime.cjs +2 -3
- package/dist/cjs/client/format/useUnit.cjs +2 -3
- package/dist/cjs/client/index.cjs +13 -13
- package/dist/cjs/client/t.cjs +3 -4
- package/dist/cjs/client/useDictionary.cjs +3 -4
- package/dist/cjs/client/useDictionaryAsync.cjs +4 -5
- package/dist/cjs/client/useDictionaryDynamic.cjs +5 -6
- package/dist/cjs/client/useI18n.cjs +3 -4
- package/dist/cjs/client/useIntlayer.cjs +3 -4
- package/dist/cjs/client/useLoadDynamic.cjs +1 -2
- package/dist/cjs/client/useLocale.cjs +4 -5
- package/dist/cjs/client/useLocaleBase.cjs +3 -4
- package/dist/cjs/client/useLocaleStorage.cjs +1 -2
- package/dist/cjs/client/usePathname.cjs +1 -2
- package/dist/cjs/client/useRewriteURL.cjs +3 -4
- package/dist/cjs/client/useTraduction.cjs +3 -4
- package/dist/cjs/editor/ContentSelector.cjs +1 -2
- package/dist/cjs/editor/EditorProvider.cjs +2 -3
- package/dist/cjs/editor/useEditor.cjs +2 -3
- package/dist/cjs/getDictionary.cjs +2 -3
- package/dist/cjs/getIntlayer.cjs +2 -3
- package/dist/cjs/html/HTMLProvider.cjs +1 -2
- package/dist/cjs/html/HTMLRenderer.cjs +3 -4
- package/dist/cjs/html/HTMLRendererPlugin.cjs +3 -4
- package/dist/cjs/html/index.cjs +2 -2
- package/dist/cjs/index.cjs +23 -24
- package/dist/cjs/markdown/MarkdownProvider.cjs +2 -3
- package/dist/cjs/markdown/MarkdownRenderer.cjs +3 -4
- package/dist/cjs/markdown/MarkdownRendererPlugin.cjs +3 -4
- package/dist/cjs/markdown/index.cjs +3 -3
- package/dist/cjs/markdown/processor.cjs +2 -3
- package/dist/cjs/markdown/runtime.cjs +1 -2
- package/dist/cjs/plugins.cjs +10 -11
- package/dist/cjs/reactElement/renderReactElement.cjs +1 -2
- package/dist/cjs/server/IntlayerServerProvider.cjs +3 -4
- package/dist/cjs/server/format/index.cjs +8 -8
- package/dist/cjs/server/format/useCompact.cjs +3 -4
- package/dist/cjs/server/format/useCurrency.cjs +3 -4
- package/dist/cjs/server/format/useDate.cjs +3 -4
- package/dist/cjs/server/format/useIntl.cjs +3 -4
- package/dist/cjs/server/format/useList.cjs +3 -4
- package/dist/cjs/server/format/useNumber.cjs +3 -4
- package/dist/cjs/server/format/usePercentage.cjs +3 -4
- package/dist/cjs/server/format/useRelativeTime.cjs +3 -4
- package/dist/cjs/server/format/useUnit.cjs +3 -4
- package/dist/cjs/server/index.cjs +11 -11
- package/dist/cjs/server/serverContext.cjs +2 -3
- package/dist/cjs/server/t.cjs +3 -4
- package/dist/cjs/server/useDictionary.cjs +4 -5
- package/dist/cjs/server/useDictionaryAsync.cjs +4 -5
- package/dist/cjs/server/useDictionaryDynamic.cjs +5 -6
- package/dist/cjs/server/useI18n.cjs +4 -5
- package/dist/cjs/server/useIntlayer.cjs +4 -5
- package/dist/cjs/server/useLoadDynamic.cjs +2 -3
- package/dist/cjs/server/useLocale.cjs +3 -4
- package/dist/esm/IntlayerNode.mjs +1 -2
- package/dist/esm/UI/ContentSelector.mjs +1 -2
- package/dist/esm/analytics/AnalyticsProvider.mjs +1 -2
- package/dist/esm/analytics/exposureSink.mjs +1 -2
- package/dist/esm/analytics/index.mjs +1 -1
- package/dist/esm/analytics/useAnalytics.mjs +3 -4
- package/dist/esm/analytics/useConversion.mjs +2 -3
- package/dist/esm/analytics/useExperiment.mjs +2 -3
- package/dist/esm/client/IntlayerProvider.mjs +4 -5
- package/dist/esm/client/format/index.mjs +5 -5
- package/dist/esm/client/format/useCompact.mjs +1 -2
- package/dist/esm/client/format/useCurrency.mjs +1 -2
- package/dist/esm/client/format/useDate.mjs +1 -2
- package/dist/esm/client/format/useIntl.mjs +1 -2
- package/dist/esm/client/format/useList.mjs +1 -2
- package/dist/esm/client/format/useNumber.mjs +1 -2
- package/dist/esm/client/format/usePercentage.mjs +1 -2
- package/dist/esm/client/format/useRelativeTime.mjs +1 -2
- package/dist/esm/client/format/useUnit.mjs +1 -2
- package/dist/esm/client/index.mjs +2 -2
- package/dist/esm/client/t.mjs +2 -3
- package/dist/esm/client/useDictionary.mjs +1 -2
- package/dist/esm/client/useDictionaryAsync.mjs +2 -3
- package/dist/esm/client/useDictionaryDynamic.mjs +3 -4
- package/dist/esm/client/useI18n.mjs +2 -3
- package/dist/esm/client/useIntlayer.mjs +1 -2
- package/dist/esm/client/useLoadDynamic.mjs +1 -2
- package/dist/esm/client/useLocale.mjs +3 -4
- package/dist/esm/client/useLocaleBase.mjs +2 -3
- package/dist/esm/client/useLocaleStorage.mjs +1 -2
- package/dist/esm/client/usePathname.mjs +1 -2
- package/dist/esm/client/useRewriteURL.mjs +2 -3
- package/dist/esm/client/useTraduction.mjs +2 -3
- package/dist/esm/editor/ContentSelector.mjs +1 -2
- package/dist/esm/editor/EditorProvider.mjs +1 -2
- package/dist/esm/editor/useEditor.mjs +1 -2
- package/dist/esm/getDictionary.mjs +1 -2
- package/dist/esm/getIntlayer.mjs +1 -2
- package/dist/esm/html/HTMLProvider.mjs +1 -2
- package/dist/esm/html/HTMLRenderer.mjs +2 -3
- package/dist/esm/html/HTMLRendererPlugin.mjs +1 -2
- package/dist/esm/index.mjs +7 -8
- package/dist/esm/markdown/MarkdownProvider.mjs +1 -2
- package/dist/esm/markdown/MarkdownRenderer.mjs +2 -3
- package/dist/esm/markdown/MarkdownRendererPlugin.mjs +2 -3
- package/dist/esm/markdown/index.mjs +1 -1
- package/dist/esm/markdown/processor.mjs +1 -2
- package/dist/esm/markdown/runtime.mjs +1 -2
- package/dist/esm/plugins.mjs +4 -5
- package/dist/esm/reactElement/renderReactElement.mjs +1 -2
- package/dist/esm/server/IntlayerServerProvider.mjs +2 -3
- package/dist/esm/server/format/index.mjs +4 -4
- package/dist/esm/server/format/useCompact.mjs +2 -3
- package/dist/esm/server/format/useCurrency.mjs +2 -3
- package/dist/esm/server/format/useDate.mjs +2 -3
- package/dist/esm/server/format/useIntl.mjs +2 -3
- package/dist/esm/server/format/useList.mjs +2 -3
- package/dist/esm/server/format/useNumber.mjs +2 -3
- package/dist/esm/server/format/usePercentage.mjs +2 -3
- package/dist/esm/server/format/useRelativeTime.mjs +2 -3
- package/dist/esm/server/format/useUnit.mjs +2 -3
- package/dist/esm/server/index.mjs +6 -6
- package/dist/esm/server/serverContext.mjs +1 -2
- package/dist/esm/server/t.mjs +2 -3
- package/dist/esm/server/useDictionary.mjs +2 -3
- package/dist/esm/server/useDictionaryAsync.mjs +2 -3
- package/dist/esm/server/useDictionaryDynamic.mjs +3 -4
- package/dist/esm/server/useI18n.mjs +2 -3
- package/dist/esm/server/useIntlayer.mjs +2 -3
- package/dist/esm/server/useLoadDynamic.mjs +1 -2
- package/dist/esm/server/useLocale.mjs +2 -3
- package/dist/types/IntlayerNode.d.ts +1 -2
- 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 +0 -2
- package/dist/types/analytics/AnalyticsProvider.d.ts.map +1 -1
- package/dist/types/analytics/exposureSink.d.ts +0 -2
- package/dist/types/analytics/exposureSink.d.ts.map +1 -1
- package/dist/types/analytics/useAnalytics.d.ts +0 -2
- package/dist/types/analytics/useAnalytics.d.ts.map +1 -1
- package/dist/types/analytics/useConversion.d.ts +0 -2
- package/dist/types/analytics/useConversion.d.ts.map +1 -1
- package/dist/types/analytics/useExperiment.d.ts +0 -2
- package/dist/types/analytics/useExperiment.d.ts.map +1 -1
- package/dist/types/client/IntlayerProvider.d.ts +1 -2
- package/dist/types/client/IntlayerProvider.d.ts.map +1 -1
- package/dist/types/client/format/useCompact.d.ts +0 -2
- package/dist/types/client/format/useCompact.d.ts.map +1 -1
- package/dist/types/client/format/useCurrency.d.ts +0 -2
- package/dist/types/client/format/useCurrency.d.ts.map +1 -1
- package/dist/types/client/format/useDate.d.ts +0 -2
- package/dist/types/client/format/useDate.d.ts.map +1 -1
- package/dist/types/client/format/useIntl.d.ts +0 -2
- package/dist/types/client/format/useIntl.d.ts.map +1 -1
- package/dist/types/client/format/useList.d.ts +0 -2
- package/dist/types/client/format/useList.d.ts.map +1 -1
- package/dist/types/client/format/useNumber.d.ts +0 -2
- package/dist/types/client/format/useNumber.d.ts.map +1 -1
- package/dist/types/client/format/usePercentage.d.ts +0 -2
- package/dist/types/client/format/usePercentage.d.ts.map +1 -1
- package/dist/types/client/format/useRelativeTime.d.ts +0 -2
- package/dist/types/client/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/client/format/useUnit.d.ts +0 -2
- package/dist/types/client/format/useUnit.d.ts.map +1 -1
- package/dist/types/client/t.d.ts +0 -2
- package/dist/types/client/t.d.ts.map +1 -1
- package/dist/types/client/useDictionary.d.ts +0 -2
- package/dist/types/client/useDictionary.d.ts.map +1 -1
- package/dist/types/client/useDictionaryAsync.d.ts +0 -2
- package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
- package/dist/types/client/useDictionaryDynamic.d.ts +0 -2
- package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
- package/dist/types/client/useI18n.d.ts +0 -2
- package/dist/types/client/useI18n.d.ts.map +1 -1
- package/dist/types/client/useIntlayer.d.ts +0 -2
- package/dist/types/client/useIntlayer.d.ts.map +1 -1
- package/dist/types/client/useLoadDynamic.d.ts +0 -2
- package/dist/types/client/useLoadDynamic.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/useLocaleBase.d.ts +0 -2
- package/dist/types/client/useLocaleBase.d.ts.map +1 -1
- package/dist/types/client/useLocaleStorage.d.ts +0 -2
- package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
- package/dist/types/client/usePathname.d.ts +0 -2
- package/dist/types/client/usePathname.d.ts.map +1 -1
- package/dist/types/client/useRewriteURL.d.ts +0 -2
- package/dist/types/client/useRewriteURL.d.ts.map +1 -1
- package/dist/types/client/useTraduction.d.ts +0 -2
- package/dist/types/client/useTraduction.d.ts.map +1 -1
- package/dist/types/editor/ContentSelector.d.ts +0 -2
- package/dist/types/editor/ContentSelector.d.ts.map +1 -1
- package/dist/types/editor/EditorProvider.d.ts +0 -2
- package/dist/types/editor/EditorProvider.d.ts.map +1 -1
- package/dist/types/editor/useEditor.d.ts +0 -2
- package/dist/types/editor/useEditor.d.ts.map +1 -1
- package/dist/types/getDictionary.d.ts +0 -2
- package/dist/types/getDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayer.d.ts +0 -2
- package/dist/types/getIntlayer.d.ts.map +1 -1
- package/dist/types/html/HTMLComponentTypes.d.ts +1 -2
- package/dist/types/html/HTMLComponentTypes.d.ts.map +1 -1
- package/dist/types/html/HTMLProvider.d.ts +1 -2
- package/dist/types/html/HTMLProvider.d.ts.map +1 -1
- package/dist/types/html/HTMLRenderer.d.ts +0 -2
- 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 +0 -2
- package/dist/types/html/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownProvider.d.ts +0 -2
- package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownRenderer.d.ts +1 -3
- 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/index.d.ts +1 -1
- package/dist/types/markdown/processor.d.ts +0 -2
- package/dist/types/markdown/processor.d.ts.map +1 -1
- package/dist/types/markdown/runtime.d.ts +0 -2
- package/dist/types/markdown/runtime.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +1 -3
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/reactElement/renderReactElement.d.ts +0 -2
- package/dist/types/reactElement/renderReactElement.d.ts.map +1 -1
- package/dist/types/server/IntlayerServerProvider.d.ts +0 -2
- package/dist/types/server/IntlayerServerProvider.d.ts.map +1 -1
- package/dist/types/server/format/useCompact.d.ts +0 -2
- package/dist/types/server/format/useCompact.d.ts.map +1 -1
- package/dist/types/server/format/useCurrency.d.ts +0 -2
- package/dist/types/server/format/useCurrency.d.ts.map +1 -1
- package/dist/types/server/format/useDate.d.ts +0 -2
- package/dist/types/server/format/useDate.d.ts.map +1 -1
- package/dist/types/server/format/useIntl.d.ts +0 -2
- package/dist/types/server/format/useIntl.d.ts.map +1 -1
- package/dist/types/server/format/useList.d.ts +0 -2
- package/dist/types/server/format/useList.d.ts.map +1 -1
- package/dist/types/server/format/useNumber.d.ts +0 -2
- package/dist/types/server/format/useNumber.d.ts.map +1 -1
- package/dist/types/server/format/usePercentage.d.ts +0 -2
- package/dist/types/server/format/usePercentage.d.ts.map +1 -1
- package/dist/types/server/format/useRelativeTime.d.ts +0 -2
- package/dist/types/server/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/server/format/useUnit.d.ts +0 -2
- package/dist/types/server/format/useUnit.d.ts.map +1 -1
- package/dist/types/server/index.d.ts +2 -2
- package/dist/types/server/serverContext.d.ts +0 -2
- package/dist/types/server/serverContext.d.ts.map +1 -1
- package/dist/types/server/t.d.ts +0 -2
- package/dist/types/server/t.d.ts.map +1 -1
- package/dist/types/server/useDictionary.d.ts +0 -2
- package/dist/types/server/useDictionary.d.ts.map +1 -1
- package/dist/types/server/useDictionaryAsync.d.ts +0 -2
- package/dist/types/server/useDictionaryAsync.d.ts.map +1 -1
- package/dist/types/server/useDictionaryDynamic.d.ts +0 -2
- package/dist/types/server/useDictionaryDynamic.d.ts.map +1 -1
- package/dist/types/server/useI18n.d.ts +0 -2
- package/dist/types/server/useI18n.d.ts.map +1 -1
- package/dist/types/server/useIntlayer.d.ts +0 -2
- package/dist/types/server/useIntlayer.d.ts.map +1 -1
- package/dist/types/server/useLoadDynamic.d.ts +0 -2
- package/dist/types/server/useLoadDynamic.d.ts.map +1 -1
- package/dist/types/server/useLocale.d.ts +0 -2
- package/dist/types/server/useLocale.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../../../src/markdown/runtime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../../../src/markdown/runtime.ts"],"mappings":";;;;;;qBA+Ba,cAAc;;;;;qBA2Ed,qBAAkB;EAE3B,mBACE,oBACA,OAAO,4BACP,oBACG;MAEN"}
|
package/dist/types/plugins.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { IntlayerNode } from "./IntlayerNode.js";
|
|
2
1
|
import { HTMLComponents } from "./html/HTMLComponentTypes.js";
|
|
2
|
+
import { IntlayerNode } from "./IntlayerNode.js";
|
|
3
3
|
import { DeepTransformContent as DeepTransformContent$1, IInterpreterPluginState as IInterpreterPluginState$1, Plugins } from "@intlayer/core/interpreter";
|
|
4
4
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
7
7
|
import { NodeType } from "@intlayer/types/nodeType";
|
|
8
|
-
//#region src/plugins.d.ts
|
|
9
8
|
/** ---------------------------------------------
|
|
10
9
|
* INTLAYER NODE PLUGIN
|
|
11
10
|
* --------------------------------------------- */
|
|
@@ -98,5 +97,4 @@ export type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> =
|
|
|
98
97
|
* This function is used by both getIntlayer and getDictionary to ensure consistent plugin configuration.
|
|
99
98
|
*/
|
|
100
99
|
export declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
|
|
101
|
-
//#endregion
|
|
102
100
|
//# 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":["IInterpreterPluginStateCore","DeepTransformContentCore"],"sources":["../../src/plugins.tsx"],"mappings":";;;;;;;;;;YAgEY,iBAAiB,KAAK,4BAC9B,aAAa;;qBAIJ,qBAAqB;;;;YA2CtB,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;;;;YAuFlB,mBAAmB,KAAK,mBAChC;EAGI,UAAU;EACV,MAAM,YAAY,qCAAqC;;;qBAiBlD,sBAAsB;YAqEvB,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;;;;YA6Cb,wBAAwB,GAAG,IAAI,WAAW;EACpD,WAAW,cAAc;EACzB,mBAAmB,iBAAiB;EACpC,gBAAgB,cAAc;EAC9B,eAAe,aAAa;EAC5B,WAAW,eAAe;;;;;;;YAQhB,0BAA0B,KACpCA;EAGA;EACA;EACA;EACA;EACA;;YAGU,qBACV,GACA,UAAU,gBAAgB,mBACxBC,uBAAyB,GAAG,yBAAyB;;;;;qBAQ5C,aAAU,SACZ,eAAa,uBAErB"}
|
|
@@ -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"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ServerContext } from "./serverContext.js";
|
|
2
2
|
import { LocalesValues, ProviderVariant } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { FC, PropsWithChildren } from "react";
|
|
4
|
-
//#region src/server/IntlayerServerProvider.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Context that store the current locale on the server side
|
|
7
6
|
*/
|
|
@@ -59,5 +58,4 @@ export type IntlayerServerProviderProps = PropsWithChildren & {
|
|
|
59
58
|
* Provider that store the current locale on the server side
|
|
60
59
|
*/
|
|
61
60
|
export declare const IntlayerServerProvider: FC<IntlayerServerProviderProps>;
|
|
62
|
-
//#endregion
|
|
63
61
|
//# 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":["_$__serverContext0.ServerContext"],"sources":["../../../src/server/IntlayerServerProvider.tsx"],"mappings":";;;;;;qBAea,uBAAqBA,cAAA;;;;;;;qBAerB,8BAA4BA,cAAA;;;;qBAM5B,mBAAW;;;;qBAKX,QAAM;;;;;;;;;;;;;;;;qBAiBN,YAAS,QAAY;;;;;;qBASrB,aAAU,SAAa;YAIxB,8BAA8B;EACxC,SAAS;;;;;;;;;EAST,UAAU;;;;;qBAMC,wBAAwB,GAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { compact } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/server/format/useCompact.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* React client hook that provides a compact number formatter
|
|
5
4
|
* bound to the current application locale.
|
|
@@ -11,5 +10,4 @@ import { compact } from "@intlayer/core/formatters";
|
|
|
11
10
|
* ```
|
|
12
11
|
*/
|
|
13
12
|
export declare const useCompact: () => (...args: Parameters<typeof compact>) => string;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# 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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { currency } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/server/format/useCurrency.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* React client hook that provides a currency formatter
|
|
5
4
|
* bound to the current application locale.
|
|
@@ -22,5 +21,4 @@ import { currency } from "@intlayer/core/formatters";
|
|
|
22
21
|
* ```
|
|
23
22
|
*/
|
|
24
23
|
export declare const useCurrency: () => (...args: Parameters<typeof currency>) => string;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# 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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { date } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/server/format/useDate.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* React client hook that provides a localized date/time formatter
|
|
5
4
|
* bound to the current application locale.
|
|
@@ -27,5 +26,4 @@ import { date } from "@intlayer/core/formatters";
|
|
|
27
26
|
* @see createDate
|
|
28
27
|
*/
|
|
29
28
|
export declare const useDate: () => (...args: Parameters<typeof date>) => string;
|
|
30
|
-
//#endregion
|
|
31
29
|
//# 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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { WrappedIntl } from "@intlayer/core/formatters";
|
|
3
|
-
//#region src/server/format/useIntl.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* React client hook that provides a locale-bound `Intl` object.
|
|
6
5
|
*
|
|
@@ -30,5 +29,4 @@ import { WrappedIntl } from "@intlayer/core/formatters";
|
|
|
30
29
|
* ```
|
|
31
30
|
*/
|
|
32
31
|
export declare const useIntl: (locale?: LocalesValues) => WrappedIntl;
|
|
33
|
-
//#endregion
|
|
34
32
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiCa,UAAO,SAAa,kBAAgB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { list } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/server/format/useList.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* React server hook that provides a list formatter
|
|
5
4
|
* bound to the current application locale.
|
|
@@ -19,5 +18,4 @@ import { list } from "@intlayer/core/formatters";
|
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
21
20
|
export declare const useList: () => (...args: Parameters<typeof list>) => string;
|
|
22
|
-
//#endregion
|
|
23
21
|
//# 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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { number } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/server/format/useNumber.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* React client hook that provides a localized number formatter.
|
|
5
4
|
*
|
|
@@ -23,5 +22,4 @@ import { number } from "@intlayer/core/formatters";
|
|
|
23
22
|
* A number formatting function bound to the active locale.
|
|
24
23
|
*/
|
|
25
24
|
export declare const useNumber: () => (...args: Parameters<typeof number>) => string;
|
|
26
|
-
//#endregion
|
|
27
25
|
//# 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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { percentage } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/server/format/usePercentage.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* React hook to provide a percentage formatter function
|
|
5
4
|
* based on the current application locale.
|
|
@@ -19,5 +18,4 @@ import { percentage } from "@intlayer/core/formatters";
|
|
|
19
18
|
* A function that formats numbers or numeric strings into localized percentages.
|
|
20
19
|
*/
|
|
21
20
|
export declare const usePercentage: () => (...args: Parameters<typeof percentage>) => string;
|
|
22
|
-
//#endregion
|
|
23
21
|
//# 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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { relativeTime } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/server/format/useRelativeTime.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Client-side React hook for accessing a localized relative time formatter.
|
|
5
4
|
*
|
|
@@ -19,5 +18,4 @@ import { relativeTime } from "@intlayer/core/formatters";
|
|
|
19
18
|
* bound to the current client locale.
|
|
20
19
|
*/
|
|
21
20
|
export declare const useRelativeTime: () => (...args: Parameters<typeof relativeTime>) => string;
|
|
22
|
-
//#endregion
|
|
23
21
|
//# 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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { units } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/server/format/useUnit.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* React hook that provides a unit formatting function
|
|
5
4
|
* based on the current locale from {@link useLocaleBase}.
|
|
@@ -18,5 +17,4 @@ import { units } from "@intlayer/core/formatters";
|
|
|
18
17
|
* @returns {Function} A unit formatting function that accepts a value and optional formatting options.
|
|
19
18
|
*/
|
|
20
19
|
export declare const useUnit: () => (...args: Parameters<typeof units>) => string;
|
|
21
|
-
//#endregion
|
|
22
20
|
//# 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
|
-
import { ServerContext, getServerContext } from "./serverContext.js";
|
|
2
|
-
import { IntlayerServerContext, IntlayerServerProvider, IntlayerServerProviderProps, IntlayerServerVariantContext, locale, setLocale, setVariant } from "./IntlayerServerProvider.js";
|
|
3
1
|
import { useIntl } from "./format/useIntl.js";
|
|
2
|
+
import { IntlayerServerContext, IntlayerServerProvider, IntlayerServerProviderProps, IntlayerServerVariantContext, locale, setLocale, setVariant } from "./IntlayerServerProvider.js";
|
|
3
|
+
import { ServerContext, getServerContext } from "./serverContext.js";
|
|
4
4
|
import { t } from "./t.js";
|
|
5
5
|
import { useDictionary } from "./useDictionary.js";
|
|
6
6
|
import { useDictionaryAsync } from "./useDictionaryAsync.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
2
|
-
//#region src/server/serverContext.d.ts
|
|
3
2
|
export declare const createServerContext: <T>(defaultValue?: T) => ServerContext<T>;
|
|
4
3
|
/**
|
|
5
4
|
* Fetches a value present in a given server context.
|
|
@@ -23,5 +22,4 @@ export type ServerContext<T> = FC<PropsWithChildren<{
|
|
|
23
22
|
};
|
|
24
23
|
_defaultValue: T | undefined;
|
|
25
24
|
};
|
|
26
|
-
//#endregion
|
|
27
25
|
//# 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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
|
-
//#region src/server/t.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* On the server side, hook to get the translation content based on the locale
|
|
5
4
|
*
|
|
@@ -22,5 +21,4 @@ import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/t
|
|
|
22
21
|
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
23
22
|
*/
|
|
24
23
|
export declare const t: <Content = string, L extends LocalesValues = DeclaredLocales>(multilangContent: StrictModeLocaleMap<Content>, locale?: L) => Content;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# 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"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IInterpreterPluginState } from "../plugins.js";
|
|
2
2
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/server/useDictionary.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* On the server side, Hook that transform a dictionary (or qualified
|
|
7
6
|
* dictionary group) and return the content
|
|
@@ -10,5 +9,4 @@ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup } from
|
|
|
10
9
|
* use the locale from the server context
|
|
11
10
|
*/
|
|
12
11
|
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
|
-
//#endregion
|
|
14
12
|
//# 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":["_$___plugins0.IInterpreterPluginState"],"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,IAAAA,mDAAA,sBAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { IInterpreterPluginState } from "../plugins.js";
|
|
2
2
|
import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/server/useDictionaryAsync.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* On the server side, Hook that transform a dictionary and return the content
|
|
7
6
|
*
|
|
8
7
|
* If the locale is not provided, it will use the locale from the server context
|
|
9
8
|
*/
|
|
10
9
|
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
|
-
//#endregion
|
|
12
10
|
//# 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":["_$___plugins0.IInterpreterPluginState"],"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,IAAAA,mDAAA,sBAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { Dictionary, DictionarySelector } from "@intlayer/types/dictionary";
|
|
3
3
|
import { QualifiedDynamicLoaderMap } from "@intlayer/core/dictionaryManipulator";
|
|
4
|
-
//#region src/server/useDictionaryDynamic.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Server-side hook that lazily loads a dictionary and returns its content.
|
|
7
6
|
*
|
|
@@ -14,5 +13,4 @@ import { QualifiedDynamicLoaderMap } from "@intlayer/core/dictionaryManipulator"
|
|
|
14
13
|
* context locale is used.
|
|
15
14
|
*/
|
|
16
15
|
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
|
-
//#endregion
|
|
18
16
|
//# 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"}
|
|
@@ -2,7 +2,6 @@ import { DeepTransformContent } from "../plugins.js";
|
|
|
2
2
|
import { DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
4
4
|
import { GetSubPath } from "@intlayer/types/dictionary";
|
|
5
|
-
//#region src/server/useI18n.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Hook that provides a translation function `t()` for accessing nested content by key.
|
|
8
7
|
* This hook mimics the pattern found in libraries like i18next, next-intl, and vue-i18n.
|
|
@@ -19,5 +18,4 @@ import { GetSubPath } from "@intlayer/types/dictionary";
|
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
21
20
|
export declare const useI18n: <T extends DictionaryKeys>(namespace: T, locale?: LocalesValues) => <P extends ValidDotPathsFor<T>>(path: P) => GetSubPath<DeepTransformContent<DictionaryRegistryContent<T>>, P>;
|
|
22
|
-
//#endregion
|
|
23
21
|
//# 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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IInterpreterPluginState } from "../plugins.js";
|
|
2
2
|
import { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
|
-
//#region src/server/useIntlayer.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* On the server side, Hook that picking one dictionary by its key and return the content
|
|
6
5
|
*
|
|
@@ -10,5 +9,4 @@ import { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValue
|
|
|
10
9
|
* If the locale is not provided, it will use the locale from the server context
|
|
11
10
|
*/
|
|
12
11
|
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
|
-
//#endregion
|
|
14
12
|
//# 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":["_$___plugins0.IInterpreterPluginState"],"sources":["../../../src/server/useIntlayer.ts"],"mappings":";;;;;;;;;;qBAuBa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,GAAC,iBACH,yDAAe,+CAAA,yBAAA,GAAA,IAAAA,mDAAA,sBAAA"}
|
|
@@ -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":"A,qBAEa,iBAAkB,GAAC,cAAc,SAAW,QAAQ,OAAK"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DeclaredLocales } from "@intlayer/types/module_augmentation";
|
|
2
|
-
//#region src/server/useLocale.d.ts
|
|
3
2
|
export type UseLocaleResult = {
|
|
4
3
|
locale: DeclaredLocales;
|
|
5
4
|
defaultLocale: DeclaredLocales;
|
|
@@ -11,5 +10,4 @@ export type UseLocaleResult = {
|
|
|
11
10
|
* If the locale is not provided, it will use the locale from the server context
|
|
12
11
|
*/
|
|
13
12
|
export declare const useLocale: () => UseLocaleResult;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# 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;;;;;;;qBAUP,iBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intlayer",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your React applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -133,12 +133,12 @@
|
|
|
133
133
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
134
134
|
},
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@intlayer/api": "9.7.
|
|
137
|
-
"@intlayer/config": "9.
|
|
138
|
-
"@intlayer/core": "9.7.
|
|
139
|
-
"@intlayer/dictionaries-entry": "9.
|
|
140
|
-
"@intlayer/editor": "9.7.
|
|
141
|
-
"@intlayer/types": "9.7.
|
|
136
|
+
"@intlayer/api": "9.7.1",
|
|
137
|
+
"@intlayer/config": "9.7.1",
|
|
138
|
+
"@intlayer/core": "9.7.1",
|
|
139
|
+
"@intlayer/dictionaries-entry": "9.7.1",
|
|
140
|
+
"@intlayer/editor": "9.7.1",
|
|
141
|
+
"@intlayer/types": "9.7.1"
|
|
142
142
|
},
|
|
143
143
|
"devDependencies": {
|
|
144
144
|
"@craco/types": "7.1.0",
|
|
@@ -150,16 +150,16 @@
|
|
|
150
150
|
"@utils/ts-config-types": "1.0.4",
|
|
151
151
|
"@utils/tsdown-config": "1.0.4",
|
|
152
152
|
"rimraf": "6.1.3",
|
|
153
|
-
"tsdown": "0.23.
|
|
153
|
+
"tsdown": "0.23.4",
|
|
154
154
|
"typescript": "7.0.2",
|
|
155
|
-
"vitest": "5.0
|
|
155
|
+
"vitest": "5.1.0"
|
|
156
156
|
},
|
|
157
157
|
"peerDependencies": {
|
|
158
158
|
"react": ">=16.0.0",
|
|
159
159
|
"react-dom": ">=16.0.0"
|
|
160
160
|
},
|
|
161
161
|
"optionalDependencies": {
|
|
162
|
-
"@intlayer/analytics": "9.7.
|
|
162
|
+
"@intlayer/analytics": "9.7.1"
|
|
163
163
|
},
|
|
164
164
|
"engines": {
|
|
165
165
|
"node": ">=14.18"
|