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,10 +1,10 @@
|
|
|
1
|
-
import { usePercentage } from "./usePercentage.mjs";
|
|
2
|
-
import { useUnit } from "./useUnit.mjs";
|
|
3
1
|
import { useCompact } from "./useCompact.mjs";
|
|
4
|
-
import { useNumber } from "./useNumber.mjs";
|
|
5
|
-
import { useList } from "./useList.mjs";
|
|
6
2
|
import { useCurrency } from "./useCurrency.mjs";
|
|
7
3
|
import { useDate } from "./useDate.mjs";
|
|
4
|
+
import { useList } from "./useList.mjs";
|
|
5
|
+
import { useNumber } from "./useNumber.mjs";
|
|
6
|
+
import { usePercentage } from "./usePercentage.mjs";
|
|
8
7
|
import { useRelativeTime } from "./useRelativeTime.mjs";
|
|
8
|
+
import { useUnit } from "./useUnit.mjs";
|
|
9
9
|
|
|
10
10
|
export { useCompact, useCurrency, useDate, useList, useNumber, usePercentage, useRelativeTime, useUnit };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { compact } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/useCompact.ts
|
|
6
6
|
/**
|
|
7
7
|
* React client hook that provides a compact number formatter
|
|
8
8
|
* bound to the current application locale.
|
|
@@ -21,6 +21,5 @@ const useCompact = () => {
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
//#endregion
|
|
25
24
|
export { useCompact };
|
|
26
25
|
//# sourceMappingURL=useCompact.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { currency } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/useCurrency.ts
|
|
6
6
|
/**
|
|
7
7
|
* React client hook that provides a currency formatter
|
|
8
8
|
* bound to the current application locale.
|
|
@@ -32,6 +32,5 @@ const useCurrency = () => {
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
//#endregion
|
|
36
35
|
export { useCurrency };
|
|
37
36
|
//# sourceMappingURL=useCurrency.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { date } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/useDate.ts
|
|
6
6
|
/**
|
|
7
7
|
* React client hook that provides a localized date/time formatter
|
|
8
8
|
* bound to the current application locale.
|
|
@@ -37,6 +37,5 @@ const useDate = () => {
|
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
40
|
export { useDate };
|
|
42
41
|
//# sourceMappingURL=useDate.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { bindIntl } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/useIntl.ts
|
|
6
6
|
/**
|
|
7
7
|
* React client hook that provides a locale-bound `Intl` object.
|
|
8
8
|
*
|
|
@@ -36,6 +36,5 @@ const useIntl = (locale) => {
|
|
|
36
36
|
return bindIntl(locale ?? currentLocale);
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
//#endregion
|
|
40
39
|
export { useIntl };
|
|
41
40
|
//# sourceMappingURL=useIntl.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { list } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/useList.ts
|
|
6
6
|
/**
|
|
7
7
|
* React server hook that provides a list formatter
|
|
8
8
|
* bound to the current application locale.
|
|
@@ -29,6 +29,5 @@ const useList = () => {
|
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
//#endregion
|
|
33
32
|
export { useList };
|
|
34
33
|
//# sourceMappingURL=useList.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { number } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/useNumber.ts
|
|
6
6
|
/**
|
|
7
7
|
* React client hook that provides a localized number formatter.
|
|
8
8
|
*
|
|
@@ -33,6 +33,5 @@ const useNumber = () => {
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
//#endregion
|
|
37
36
|
export { useNumber };
|
|
38
37
|
//# sourceMappingURL=useNumber.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { percentage } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/usePercentage.ts
|
|
6
6
|
/**
|
|
7
7
|
* React hook to provide a percentage formatter function
|
|
8
8
|
* based on the current application locale.
|
|
@@ -29,6 +29,5 @@ const usePercentage = () => {
|
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
//#endregion
|
|
33
32
|
export { usePercentage };
|
|
34
33
|
//# sourceMappingURL=usePercentage.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { relativeTime } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/useRelativeTime.ts
|
|
6
6
|
/**
|
|
7
7
|
* Client-side React hook for accessing a localized relative time formatter.
|
|
8
8
|
*
|
|
@@ -29,6 +29,5 @@ const useRelativeTime = () => {
|
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
//#endregion
|
|
33
32
|
export { useRelativeTime };
|
|
34
33
|
//# sourceMappingURL=useRelativeTime.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "../serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "../IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "../serverContext.mjs";
|
|
3
3
|
import { units } from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/format/useUnit.ts
|
|
6
6
|
/**
|
|
7
7
|
* React hook that provides a unit formatting function
|
|
8
8
|
* based on the current locale from {@link useLocaleBase}.
|
|
@@ -28,6 +28,5 @@ const useUnit = () => {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { useUnit };
|
|
33
32
|
//# sourceMappingURL=useUnit.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useLoadDynamic } from "./useLoadDynamic.mjs";
|
|
2
|
-
import { getServerContext } from "./serverContext.mjs";
|
|
3
|
-
import { IntlayerServerContext, IntlayerServerProvider, IntlayerServerVariantContext, locale, setLocale, setVariant } from "./IntlayerServerProvider.mjs";
|
|
4
|
-
import { useIntlayer } from "./useIntlayer.mjs";
|
|
5
|
-
import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
|
|
6
|
-
import { useLocale } from "./useLocale.mjs";
|
|
7
1
|
import { useIntl } from "./format/useIntl.mjs";
|
|
2
|
+
import { IntlayerServerContext, IntlayerServerProvider, IntlayerServerVariantContext, locale, setLocale, setVariant } from "./IntlayerServerProvider.mjs";
|
|
3
|
+
import { getServerContext } from "./serverContext.mjs";
|
|
8
4
|
import { t } from "./t.mjs";
|
|
9
5
|
import { useDictionary } from "./useDictionary.mjs";
|
|
10
6
|
import { useDictionaryAsync } from "./useDictionaryAsync.mjs";
|
|
7
|
+
import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
|
|
11
8
|
import { useI18n } from "./useI18n.mjs";
|
|
9
|
+
import { useIntlayer } from "./useIntlayer.mjs";
|
|
10
|
+
import { useLoadDynamic } from "./useLoadDynamic.mjs";
|
|
11
|
+
import { useLocale } from "./useLocale.mjs";
|
|
12
12
|
|
|
13
13
|
export { IntlayerServerContext as IntlayerServer, IntlayerServerProvider, IntlayerServerVariantContext, getServerContext, locale, setLocale, setVariant, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntl, useIntlayer, useLoadDynamic, useLocale };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/server/serverContext.tsx
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new datastore for a given server context.
|
|
6
6
|
* Attempts to closely mimic the `createContext` API.
|
|
@@ -50,6 +50,5 @@ const throwInClient = () => {
|
|
|
50
50
|
if (typeof window !== "undefined") throw new Error(`createServerContext only works in Server Components`);
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
//#endregion
|
|
54
53
|
export { createServerContext, getServerContext };
|
|
55
54
|
//# sourceMappingURL=serverContext.mjs.map
|
package/dist/esm/server/t.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "./serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "./IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "./serverContext.mjs";
|
|
3
3
|
import { getTranslation } from "@intlayer/core/interpreter";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/t.ts
|
|
6
6
|
/**
|
|
7
7
|
* On the server side, hook to get the translation content based on the locale
|
|
8
8
|
*
|
|
@@ -29,6 +29,5 @@ const t = (multilangContent, locale) => {
|
|
|
29
29
|
return getTranslation(multilangContent, locale ?? currentLocale);
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
//#endregion
|
|
33
32
|
export { t };
|
|
34
33
|
//# sourceMappingURL=t.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getDictionary } from "../getDictionary.mjs";
|
|
2
|
-
import { getServerContext } from "./serverContext.mjs";
|
|
3
2
|
import { IntlayerServerContext, IntlayerServerVariantContext } from "./IntlayerServerProvider.mjs";
|
|
3
|
+
import { getServerContext } from "./serverContext.mjs";
|
|
4
4
|
import { resolveDictionaryArgument } from "@intlayer/core/dictionaryManipulator";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/server/useDictionary.ts
|
|
7
7
|
/**
|
|
8
8
|
* On the server side, Hook that transform a dictionary (or qualified
|
|
9
9
|
* dictionary group) and return the content
|
|
@@ -25,6 +25,5 @@ const useDictionary = (dictionary, localeOrSelector, fallbackLocale) => {
|
|
|
25
25
|
return getDictionary(dictionary, localeOrSelector ?? contextLocale);
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
//#endregion
|
|
29
28
|
export { useDictionary };
|
|
30
29
|
//# sourceMappingURL=useDictionary.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getServerContext } from "./serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "./IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "./serverContext.mjs";
|
|
3
3
|
import { useDictionary } from "./useDictionary.mjs";
|
|
4
4
|
import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/server/useDictionaryAsync.ts
|
|
7
7
|
/**
|
|
8
8
|
* On the server side, Hook that transform a dictionary and return the content
|
|
9
9
|
*
|
|
@@ -15,6 +15,5 @@ const useDictionaryAsync = async (dictionaryPromise, locale, fallbackLocale) =>
|
|
|
15
15
|
return useDictionary(dictionary, localeTarget);
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
//#endregion
|
|
19
18
|
export { useDictionaryAsync };
|
|
20
19
|
//# sourceMappingURL=useDictionaryAsync.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getDictionary as getDictionary$1 } from "../getDictionary.mjs";
|
|
2
|
-
import { useLoadDynamic } from "./useLoadDynamic.mjs";
|
|
3
|
-
import { getServerContext } from "./serverContext.mjs";
|
|
4
2
|
import { IntlayerServerContext, IntlayerServerVariantContext } from "./IntlayerServerProvider.mjs";
|
|
3
|
+
import { getServerContext } from "./serverContext.mjs";
|
|
4
|
+
import { useLoadDynamic } from "./useLoadDynamic.mjs";
|
|
5
5
|
import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
|
|
6
6
|
import { isQualifiedDynamicLoaderMap, parseDictionarySelector, resolveDictionaryArgument, resolveQualifiedDynamicContent } from "@intlayer/core/dictionaryManipulator";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/server/useDictionaryDynamic.ts
|
|
9
9
|
/**
|
|
10
10
|
* Server-side hook that lazily loads a dictionary and returns its content.
|
|
11
11
|
*
|
|
@@ -42,6 +42,5 @@ const useDictionaryDynamic = (dictionaryPromise, key, localeOrSelector, fallback
|
|
|
42
42
|
return getDictionary$1(dictionary, localeTarget);
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
//#endregion
|
|
46
45
|
export { useDictionaryDynamic };
|
|
47
46
|
//# sourceMappingURL=useDictionaryDynamic.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getIntlayer } from "../getIntlayer.mjs";
|
|
2
|
-
import { getServerContext } from "./serverContext.mjs";
|
|
3
2
|
import { IntlayerServerContext } from "./IntlayerServerProvider.mjs";
|
|
3
|
+
import { getServerContext } from "./serverContext.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/useI18n.ts
|
|
6
6
|
/**
|
|
7
7
|
* Hook that provides a translation function `t()` for accessing nested content by key.
|
|
8
8
|
* This hook mimics the pattern found in libraries like i18next, next-intl, and vue-i18n.
|
|
@@ -34,6 +34,5 @@ const useI18n = (namespace, locale) => {
|
|
|
34
34
|
return t;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
//#endregion
|
|
38
37
|
export { useI18n };
|
|
39
38
|
//# sourceMappingURL=useI18n.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getIntlayer } from "../getIntlayer.mjs";
|
|
2
|
-
import { getServerContext } from "./serverContext.mjs";
|
|
3
2
|
import { IntlayerServerContext, IntlayerServerVariantContext } from "./IntlayerServerProvider.mjs";
|
|
3
|
+
import { getServerContext } from "./serverContext.mjs";
|
|
4
4
|
import { resolveDictionaryArgument } from "@intlayer/core/dictionaryManipulator";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/server/useIntlayer.ts
|
|
7
7
|
/**
|
|
8
8
|
* On the server side, Hook that picking one dictionary by its key and return the content
|
|
9
9
|
*
|
|
@@ -26,6 +26,5 @@ const useIntlayer = (key, localeOrSelector, fallbackLocale) => {
|
|
|
26
26
|
return getIntlayer(key, localeOrSelector ?? contextLocale);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { useIntlayer };
|
|
31
30
|
//# sourceMappingURL=useIntlayer.mjs.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/server/useLoadDynamic.ts
|
|
4
4
|
const useLoadDynamic = (_key, promise) => {
|
|
5
5
|
/** @ts-ignore remove error Property 'cache' does not exist on type 'typeof React'. */
|
|
6
6
|
const cachedPromise = react.cache(async () => await promise)();
|
|
7
7
|
return react.use(cachedPromise);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
//#endregion
|
|
11
10
|
export { useLoadDynamic };
|
|
12
11
|
//# sourceMappingURL=useLoadDynamic.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getServerContext } from "./serverContext.mjs";
|
|
2
1
|
import { IntlayerServerContext } from "./IntlayerServerProvider.mjs";
|
|
2
|
+
import { getServerContext } from "./serverContext.mjs";
|
|
3
3
|
import { internationalization } from "@intlayer/config/built";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/server/useLocale.ts
|
|
6
6
|
const { defaultLocale, locales: availableLocales } = internationalization ?? {};
|
|
7
7
|
/**
|
|
8
8
|
* On the server side, Hook that picking one dictionary by its key and return the content
|
|
@@ -17,6 +17,5 @@ const useLocale = () => {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { useLocale };
|
|
22
21
|
//# sourceMappingURL=useLocale.mjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { NodeProps } from "@intlayer/core/interpreter";
|
|
2
2
|
import { ResolvedEditor } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { PropsWithChildren, ReactNode } from "react";
|
|
4
|
-
//#region src/IntlayerNode.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Content node returned by `useIntlayer`.
|
|
7
6
|
*
|
|
@@ -35,5 +34,5 @@ type RenderIntlayerNodeProps<T> = PropsWithChildren<{
|
|
|
35
34
|
* @returns The renderable node.
|
|
36
35
|
*/
|
|
37
36
|
export declare const renderIntlayerNode: <T>({ children, value, additionalProps }: RenderIntlayerNodeProps<T>) => IntlayerNode<T>;
|
|
38
|
-
|
|
37
|
+
export {};
|
|
39
38
|
//# sourceMappingURL=IntlayerNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerNode.d.ts","names":[],"sources":["../../src/IntlayerNode.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntlayerNode.d.ts","names":[],"sources":["../../src/IntlayerNode.tsx"],"mappings":";;;;;;;;;;;YAaY,aACV,IAAI,uBACJ,6BACE,eACF;EAAM,OAAO;IAAM,iBACnB;EAAc,OAAO;IAAM;KAGxB,wBAAwB,KAAK;EAChC,OAAO;EACP,UAAU;EACV;KAAqB;;;;;;;;;;;;;;;qBAeV,qBACX,KAAC,UAAA,OAAA,mBAKA,wBAAwB,OAAK,aAAa"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, HTMLAttributes } from "react";
|
|
2
|
-
//#region src/UI/ContentSelector.d.ts
|
|
3
2
|
type ContentSelectorProps = {
|
|
4
3
|
onPress: () => void;
|
|
5
4
|
onHover?: () => void;
|
|
@@ -9,5 +8,5 @@ type ContentSelectorProps = {
|
|
|
9
8
|
isSelecting?: boolean;
|
|
10
9
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'content'>;
|
|
11
10
|
export declare const ContentSelector: FC<ContentSelectorProps>;
|
|
12
|
-
|
|
11
|
+
export {};
|
|
13
12
|
//# sourceMappingURL=ContentSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/UI/ContentSelector.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/UI/ContentSelector.tsx"],"mappings":";KAcK;EACH;EACA;EACA;EACA;EACA;EACA;IACE,KAAK,eAAe;qBAEX,iBAAiB,GAAG"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
//#region src/analytics/AnalyticsProvider.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Runs {@link useAnalytics} and renders its children unchanged. Mounted inside
|
|
5
4
|
* {@link IntlayerProvider} alongside `EditorProvider`.
|
|
6
5
|
*/
|
|
7
6
|
export declare const AnalyticsProvider: FC<PropsWithChildren>;
|
|
8
|
-
//#endregion
|
|
9
7
|
//# sourceMappingURL=AnalyticsProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsProvider.d.ts","names":[],"sources":["../../../src/analytics/AnalyticsProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnalyticsProvider.d.ts","names":[],"sources":["../../../src/analytics/AnalyticsProvider.tsx"],"mappings":";;;;;qBAOa,mBAAmB,GAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
2
|
-
//#region src/analytics/exposureSink.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Node metadata reported for a content exposure. Kept dependency-free (types
|
|
5
4
|
* only) so the interpreter hot path in `plugins.tsx` never statically imports
|
|
@@ -27,5 +26,4 @@ export declare const setExposureSink: (next: ExposureSink | null) => void;
|
|
|
27
26
|
* @param input - The node metadata to report.
|
|
28
27
|
*/
|
|
29
28
|
export declare const reportExposure: (input: ExposureInput) => void;
|
|
30
|
-
//#endregion
|
|
31
29
|
//# sourceMappingURL=exposureSink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exposureSink.d.ts","names":[],"sources":["../../../src/analytics/exposureSink.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"exposureSink.d.ts","names":[],"sources":["../../../src/analytics/exposureSink.ts"],"mappings":";;;;;;YAOY;EACV;EACA,SAAS;EACT;EACA;;;YAIU,gBAAgB,OAAO;;;;;;;qBAUtB,kBAAe,MAAU;;;;;;;qBAUzB,iBAAc,OAAW"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/analytics/useAnalytics.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Initializes the Intlayer analytics client singleton when analytics is enabled
|
|
4
3
|
* and keeps it aware of the current locale.
|
|
@@ -10,5 +9,4 @@
|
|
|
10
9
|
* `INTLAYER_ANALYTICS_ENABLED` and dead-code-eliminated at build time.
|
|
11
10
|
*/
|
|
12
11
|
export declare const useAnalytics: () => void;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=useAnalytics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnalytics.d.ts","names":[],"sources":["../../../src/analytics/useAnalytics.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAnalytics.d.ts","names":[],"sources":["../../../src/analytics/useAnalytics.tsx"],"mappings":";;;;;;;;;;qBAkBa"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/analytics/useConversion.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Parameters describing a conversion to record.
|
|
4
3
|
*/
|
|
@@ -26,5 +25,4 @@ export type ConversionParams = {
|
|
|
26
25
|
* ```
|
|
27
26
|
*/
|
|
28
27
|
export declare const useConversion: () => (params: ConversionParams) => void;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=useConversion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConversion.d.ts","names":[],"sources":["../../../src/analytics/useConversion.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useConversion.d.ts","names":[],"sources":["../../../src/analytics/useConversion.tsx"],"mappings":";;;YAQY;;EAEV;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;;;qBAgBW,sBAAa,QACI"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/analytics/useExperiment.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The state of an A/B experiment for the current session.
|
|
4
3
|
*/
|
|
@@ -36,5 +35,4 @@ export type ExperimentState = {
|
|
|
36
35
|
* ```
|
|
37
36
|
*/
|
|
38
37
|
export declare const useExperiment: (experimentKey: string, variants: string[], weights?: number[]) => ExperimentState;
|
|
39
|
-
//#endregion
|
|
40
38
|
//# sourceMappingURL=useExperiment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExperiment.d.ts","names":[],"sources":["../../../src/analytics/useExperiment.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useExperiment.d.ts","names":[],"sources":["../../../src/analytics/useExperiment.tsx"],"mappings":";;;YAQY;;;;;;EAMV;;;;;;EAMA;;;;;;;;;;;;;;;;;;;;;qBAsBW,gBAAa,uBACH,oBACH,uBAEjB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LocalesValues, ProviderVariant } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
|
-
//#region src/client/IntlayerProvider.d.ts
|
|
4
3
|
type IntlayerValue = {
|
|
5
4
|
locale: LocalesValues;
|
|
6
5
|
setLocale: (newLocale: LocalesValues) => void;
|
|
@@ -96,5 +95,5 @@ export declare const IntlayerProviderContent: FC<IntlayerProviderProps>;
|
|
|
96
95
|
* ```
|
|
97
96
|
*/
|
|
98
97
|
export declare const IntlayerProvider: FC<IntlayerProviderProps>;
|
|
99
|
-
|
|
98
|
+
export {};
|
|
100
99
|
//# sourceMappingURL=IntlayerProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"mappings":";;KAyBK;EACH,QAAQ;EACR,YAAY,WAAW;;;;;EAKvB,UAAU;EACV;EACA;;;;;qBAMW,uCAAqB,QAAA;;;;;;qBAcrB;;;;YAKD,wBAAwB;;;;EAIlC,SAAS;;;;;;;;;;;;;;;;;;;EAmBT,UAAU;;;;EAIV,gBAAgB;;;;EAIhB,aAAa,QAAQ;;;;EAIrB;;;;EAIA;;;;;;;;;;qBAWW,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;qBA0G5B,kBAAkB,GAAG"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/client/format/useCompact.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React client hook that provides a compact number formatter
|
|
4
3
|
* bound to the current application locale.
|
|
@@ -12,5 +11,4 @@
|
|
|
12
11
|
export declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
13
12
|
locale?: import("@intlayer/types").LocalesValues;
|
|
14
13
|
}) => string;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=useCompact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"mappings":";;;;;;;;;;qBAgBa,mBAAU,wBAAA,UAAA,KAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/client/format/useCurrency.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React client hook that provides a currency formatter
|
|
4
3
|
* bound to the current application locale.
|
|
@@ -26,5 +25,4 @@
|
|
|
26
25
|
export declare const useCurrency: () => (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
27
26
|
locale?: import("@intlayer/types").LocalesValues;
|
|
28
27
|
}) => string;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=useCurrency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/client/format/useCurrency.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/client/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;qBA8Ba,oBAAW,wBAAA,UAAA,KAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { date } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/client/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/client/format/useDate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/client/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgCa,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/client/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/client/format/useIntl.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../../src/client/format/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmCa,UAAO,SAAa,kBAAa"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/client/format/useList.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React client hook that provides a list formatter
|
|
4
3
|
* bound to the current application locale.
|
|
@@ -23,5 +22,4 @@
|
|
|
23
22
|
export declare const useList: () => (values: (string | number)[], options?: import("@intlayer/core/formatters").ListFormatOptions & {
|
|
24
23
|
locale?: import("@intlayer/types").LocalesValues;
|
|
25
24
|
}) => string;
|
|
26
|
-
//#endregion
|
|
27
25
|
//# sourceMappingURL=useList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/client/format/useList.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/client/format/useList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBA2Ba,gBAAO,6BAAA,8CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/client/format/useNumber.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React client hook that provides a localized number formatter.
|
|
4
3
|
*
|
|
@@ -24,5 +23,4 @@
|
|
|
24
23
|
export declare const useNumber: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
25
24
|
locale?: import("@intlayer/types").LocalesValues;
|
|
26
25
|
}) => string;
|
|
27
|
-
//#endregion
|
|
28
26
|
//# sourceMappingURL=useNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/client/format/useNumber.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/client/format/useNumber.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qBA4Ba,kBAAS,wBAAA,SAAA,KAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/client/format/usePercentage.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React hook to provide a percentage formatter function
|
|
4
3
|
* based on the current application locale.
|
|
@@ -20,5 +19,4 @@
|
|
|
20
19
|
export declare const usePercentage: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
21
20
|
locale?: import("@intlayer/types").LocalesValues;
|
|
22
21
|
}) => string;
|
|
23
|
-
//#endregion
|
|
24
22
|
//# sourceMappingURL=usePercentage.d.ts.map
|