next-intlayer 9.4.2 → 9.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/cjs/index.cjs.map +1 -1
  2. package/dist/cjs/server/prepareSwcOptimization.cjs +1 -1
  3. package/dist/cjs/server/withIntlayer.cjs +1 -1
  4. package/dist/esm/index.mjs.map +1 -1
  5. package/dist/esm/server/prepareSwcOptimization.mjs +1 -1
  6. package/dist/esm/server/withIntlayer.mjs +1 -1
  7. package/dist/types/@intlayer/babel/dist/types/babel-plugin-intlayer-field-rename.d.ts +2 -3
  8. package/dist/types/@intlayer/babel/dist/types/babel-plugin-intlayer-field-rename.d.ts.map +1 -1
  9. package/dist/types/client/IntlayerClientProvider.d.ts +3 -4
  10. package/dist/types/client/IntlayerClientProvider.d.ts.map +1 -1
  11. package/dist/types/client/useLocale.d.ts +3 -4
  12. package/dist/types/client/useLocale.d.ts.map +1 -1
  13. package/dist/types/client/useLocalePageRouter.d.ts +1 -2
  14. package/dist/types/client/useLocalePageRouter.d.ts.map +1 -1
  15. package/dist/types/client/usePathname.d.ts +1 -2
  16. package/dist/types/client/usePathname.d.ts.map +1 -1
  17. package/dist/types/generateStaticParams.d.ts +1 -2
  18. package/dist/types/generateStaticParams.d.ts.map +1 -1
  19. package/dist/types/index.d.ts +10 -18
  20. package/dist/types/index.d.ts.map +1 -1
  21. package/dist/types/proxy/intlayerProxy.d.ts +1 -2
  22. package/dist/types/proxy/intlayerProxy.d.ts.map +1 -1
  23. package/dist/types/proxy/localeDetector.d.ts +1 -2
  24. package/dist/types/proxy/localeDetector.d.ts.map +1 -1
  25. package/dist/types/proxy/middleware.d.ts +2 -3
  26. package/dist/types/proxy/middleware.d.ts.map +1 -1
  27. package/dist/types/proxy/multipleProxies.d.ts +1 -2
  28. package/dist/types/proxy/multipleProxies.d.ts.map +1 -1
  29. package/dist/types/server/IntlayerProvider.d.ts +2 -3
  30. package/dist/types/server/IntlayerProvider.d.ts.map +1 -1
  31. package/dist/types/server/IntlayerServerProvider.d.ts +2 -3
  32. package/dist/types/server/IntlayerServerProvider.d.ts.map +1 -1
  33. package/dist/types/server/ambientLocale.d.ts +3 -4
  34. package/dist/types/server/ambientLocale.d.ts.map +1 -1
  35. package/dist/types/server/format/useCompact.d.ts +1 -2
  36. package/dist/types/server/format/useCompact.d.ts.map +1 -1
  37. package/dist/types/server/format/useCurrency.d.ts +1 -2
  38. package/dist/types/server/format/useCurrency.d.ts.map +1 -1
  39. package/dist/types/server/format/useDate.d.ts +1 -2
  40. package/dist/types/server/format/useDate.d.ts.map +1 -1
  41. package/dist/types/server/format/useList.d.ts +1 -2
  42. package/dist/types/server/format/useList.d.ts.map +1 -1
  43. package/dist/types/server/format/useNumber.d.ts +1 -2
  44. package/dist/types/server/format/useNumber.d.ts.map +1 -1
  45. package/dist/types/server/format/usePercentage.d.ts +1 -2
  46. package/dist/types/server/format/usePercentage.d.ts.map +1 -1
  47. package/dist/types/server/format/useRelativeTime.d.ts +1 -2
  48. package/dist/types/server/format/useRelativeTime.d.ts.map +1 -1
  49. package/dist/types/server/format/useUnit.d.ts +1 -2
  50. package/dist/types/server/format/useUnit.d.ts.map +1 -1
  51. package/dist/types/server/getLocale.d.ts +1 -2
  52. package/dist/types/server/getLocale.d.ts.map +1 -1
  53. package/dist/types/server/prepareSwcOptimization.d.ts +5 -6
  54. package/dist/types/server/prepareSwcOptimization.d.ts.map +1 -1
  55. package/dist/types/server/suspendingReader.d.ts +1 -2
  56. package/dist/types/server/suspendingReader.d.ts.map +1 -1
  57. package/dist/types/server/swcPluginCompatibility.d.ts +2 -3
  58. package/dist/types/server/swcPluginCompatibility.d.ts.map +1 -1
  59. package/dist/types/server/t.d.ts +1 -2
  60. package/dist/types/server/t.d.ts.map +1 -1
  61. package/dist/types/server/useDictionary.d.ts +1 -2
  62. package/dist/types/server/useDictionary.d.ts.map +1 -1
  63. package/dist/types/server/useDictionaryAsync.d.ts +1 -2
  64. package/dist/types/server/useDictionaryAsync.d.ts.map +1 -1
  65. package/dist/types/server/useDictionaryDynamic.d.ts +1 -2
  66. package/dist/types/server/useDictionaryDynamic.d.ts.map +1 -1
  67. package/dist/types/server/useI18n.d.ts +1 -2
  68. package/dist/types/server/useI18n.d.ts.map +1 -1
  69. package/dist/types/server/useIntl.d.ts +1 -2
  70. package/dist/types/server/useIntl.d.ts.map +1 -1
  71. package/dist/types/server/useIntlayer.d.ts +1 -2
  72. package/dist/types/server/useIntlayer.d.ts.map +1 -1
  73. package/dist/types/server/useLocale.d.ts +2 -3
  74. package/dist/types/server/useLocale.d.ts.map +1 -1
  75. package/dist/types/server/withIntlayer.d.ts +3 -3
  76. package/dist/types/server/withIntlayer.d.ts.map +1 -1
  77. package/dist/types/types/NextPage.d.ts +8 -9
  78. package/dist/types/types/NextPage.d.ts.map +1 -1
  79. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["_MarkdownProvider","_useMarkdownContext","_renderMarkdown","_useMarkdownRenderer","_MarkdownRenderer"],"sources":["../../src/index.ts"],"sourcesContent":["export {\n type ConversionParams,\n type ExperimentState,\n getDictionary,\n getIntlayer,\n IntlayerClientContext,\n type IntlayerNode,\n IntlayerProvider,\n type IntlayerProviderProps,\n localeCookie,\n localeInStorage,\n setLocaleCookie,\n setLocaleInStorage,\n t,\n useConversion,\n useDictionary,\n useDictionaryAsync,\n useDictionaryDynamic,\n useExperiment,\n useI18n,\n useIntl,\n useIntlayer,\n useLoadDynamic,\n useLocaleCookie,\n useLocaleStorage,\n} from 'react-intlayer';\nexport * from './client/index';\nexport { generateStaticParams } from './generateStaticParams';\nexport type {\n LocalParams,\n LocalPromiseParams,\n Next14LayoutIntlayer,\n Next14PageIntlayer,\n Next15LayoutIntlayer,\n Next15PageIntlayer,\n NextLayoutIntlayer,\n NextPageIntlayer,\n} from './types/index';\n\nimport type {\n MarkdownProviderOptions as _MarkdownProviderOptions,\n MarkdownRendererProps as _MarkdownRendererProps,\n RenderMarkdownProps as _RenderMarkdownProps,\n} from './markdown';\nimport {\n MarkdownProvider as _MarkdownProvider,\n MarkdownRenderer as _MarkdownRenderer,\n renderMarkdown as _renderMarkdown,\n useMarkdownContext as _useMarkdownContext,\n useMarkdownRenderer as _useMarkdownRenderer,\n} from './markdown';\n\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const MarkdownProvider = _MarkdownProvider;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const useMarkdownContext = _useMarkdownContext;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type MarkdownProviderOptions = _MarkdownProviderOptions;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const renderMarkdown = _renderMarkdown;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const useMarkdownRenderer = _useMarkdownRenderer;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const MarkdownRenderer = _MarkdownRenderer;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type RenderMarkdownProps = _RenderMarkdownProps;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type MarkdownRendererProps = _MarkdownRendererProps;\n"],"mappings":";;;;;;;;;;;;;AAuDA,MAAa,2DAAmBA;;;;AAIhC,MAAa,6DAAqBC;;;;AAQlC,MAAa,yDAAiBC;;;;AAI9B,MAAa,8DAAsBC;;;;AAInC,MAAa,2DAAmBC"}
1
+ {"version":3,"file":"index.cjs","names":["_MarkdownProvider","_useMarkdownContext","_renderMarkdown","_useMarkdownRenderer","_MarkdownRenderer"],"sources":["../../src/index.ts"],"sourcesContent":["export {\n type ConversionParams,\n type ExperimentState,\n getDictionary,\n getIntlayer,\n IntlayerClientContext,\n type IntlayerNode,\n IntlayerProvider,\n type IntlayerProviderProps,\n localeCookie,\n localeInStorage,\n setLocaleCookie,\n setLocaleInStorage,\n t,\n useConversion,\n useDictionary,\n useDictionaryAsync,\n useDictionaryDynamic,\n useExperiment,\n useI18n,\n useIntl,\n useIntlayer,\n useLoadDynamic,\n useLocaleCookie,\n useLocaleStorage,\n} from 'react-intlayer';\nexport * from './client/index';\nexport { generateStaticParams } from './generateStaticParams';\nexport type {\n LocalParams,\n LocalPromiseParams,\n Next14LayoutIntlayer,\n Next14PageIntlayer,\n Next15LayoutIntlayer,\n Next15PageIntlayer,\n NextLayoutIntlayer,\n NextPageIntlayer,\n} from './types/index';\n\nimport type { FC } from 'react';\nimport type {\n MarkdownContextValue as _MarkdownContextValue,\n MarkdownProviderOptions as _MarkdownProviderOptions,\n MarkdownProviderProps as _MarkdownProviderProps,\n MarkdownRendererProps as _MarkdownRendererProps,\n RenderMarkdownProps as _RenderMarkdownProps,\n} from './markdown';\nimport {\n MarkdownProvider as _MarkdownProvider,\n MarkdownRenderer as _MarkdownRenderer,\n renderMarkdown as _renderMarkdown,\n useMarkdownContext as _useMarkdownContext,\n useMarkdownRenderer as _useMarkdownRenderer,\n} from './markdown';\n\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const MarkdownProvider: FC<_MarkdownProviderProps> = _MarkdownProvider;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const useMarkdownContext: () => _MarkdownContextValue =\n _useMarkdownContext;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type MarkdownProviderOptions = _MarkdownProviderOptions;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const renderMarkdown = _renderMarkdown;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const useMarkdownRenderer = _useMarkdownRenderer;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const MarkdownRenderer = _MarkdownRenderer;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type RenderMarkdownProps = _RenderMarkdownProps;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type MarkdownRendererProps = _MarkdownRendererProps;\n"],"mappings":";;;;;;;;;;;;;AA0DA,MAAa,2DAA+CA;;;;AAI5D,MAAa,6DACXC;;;;AAQF,MAAa,yDAAiBC;;;;AAI9B,MAAa,8DAAsBC;;;;AAInC,MAAa,2DAAmBC"}
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
+ let _intlayer_config_logger = require("@intlayer/config/logger");
3
4
  let node_path = require("node:path");
4
5
  let _intlayer_config_colors = require("@intlayer/config/colors");
5
6
  _intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
6
- let _intlayer_config_logger = require("@intlayer/config/logger");
7
7
  let _intlayer_config_utils = require("@intlayer/config/utils");
8
8
  let _intlayer_engine_utils = require("@intlayer/engine/utils");
9
9
  let node_fs = require("node:fs");
@@ -3,11 +3,11 @@ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
3
  const require_server_prepareSwcOptimization = require('./prepareSwcOptimization.cjs');
4
4
  const require_server_swcPluginCompatibility = require('./swcPluginCompatibility.cjs');
5
5
  let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
6
+ let _intlayer_config_logger = require("@intlayer/config/logger");
6
7
  let node_path = require("node:path");
7
8
  let _intlayer_config_colors = require("@intlayer/config/colors");
8
9
  _intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
9
10
  let _intlayer_config_envVars = require("@intlayer/config/envVars");
10
- let _intlayer_config_logger = require("@intlayer/config/logger");
11
11
  let _intlayer_config_node = require("@intlayer/config/node");
12
12
  let _intlayer_config_utils = require("@intlayer/config/utils");
13
13
  let _intlayer_core_dictionaryManipulator = require("@intlayer/core/dictionaryManipulator");
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["_MarkdownProvider","_useMarkdownContext","_renderMarkdown","_useMarkdownRenderer","_MarkdownRenderer"],"sources":["../../src/index.ts"],"sourcesContent":["export {\n type ConversionParams,\n type ExperimentState,\n getDictionary,\n getIntlayer,\n IntlayerClientContext,\n type IntlayerNode,\n IntlayerProvider,\n type IntlayerProviderProps,\n localeCookie,\n localeInStorage,\n setLocaleCookie,\n setLocaleInStorage,\n t,\n useConversion,\n useDictionary,\n useDictionaryAsync,\n useDictionaryDynamic,\n useExperiment,\n useI18n,\n useIntl,\n useIntlayer,\n useLoadDynamic,\n useLocaleCookie,\n useLocaleStorage,\n} from 'react-intlayer';\nexport * from './client/index';\nexport { generateStaticParams } from './generateStaticParams';\nexport type {\n LocalParams,\n LocalPromiseParams,\n Next14LayoutIntlayer,\n Next14PageIntlayer,\n Next15LayoutIntlayer,\n Next15PageIntlayer,\n NextLayoutIntlayer,\n NextPageIntlayer,\n} from './types/index';\n\nimport type {\n MarkdownProviderOptions as _MarkdownProviderOptions,\n MarkdownRendererProps as _MarkdownRendererProps,\n RenderMarkdownProps as _RenderMarkdownProps,\n} from './markdown';\nimport {\n MarkdownProvider as _MarkdownProvider,\n MarkdownRenderer as _MarkdownRenderer,\n renderMarkdown as _renderMarkdown,\n useMarkdownContext as _useMarkdownContext,\n useMarkdownRenderer as _useMarkdownRenderer,\n} from './markdown';\n\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const MarkdownProvider = _MarkdownProvider;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const useMarkdownContext = _useMarkdownContext;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type MarkdownProviderOptions = _MarkdownProviderOptions;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const renderMarkdown = _renderMarkdown;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const useMarkdownRenderer = _useMarkdownRenderer;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const MarkdownRenderer = _MarkdownRenderer;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type RenderMarkdownProps = _RenderMarkdownProps;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type MarkdownRendererProps = _MarkdownRendererProps;\n"],"mappings":";;;;;;;;;;;;;AAuDA,MAAa,mBAAmBA;;;;AAIhC,MAAa,qBAAqBC;;;;AAQlC,MAAa,iBAAiBC;;;;AAI9B,MAAa,sBAAsBC;;;;AAInC,MAAa,mBAAmBC"}
1
+ {"version":3,"file":"index.mjs","names":["_MarkdownProvider","_useMarkdownContext","_renderMarkdown","_useMarkdownRenderer","_MarkdownRenderer"],"sources":["../../src/index.ts"],"sourcesContent":["export {\n type ConversionParams,\n type ExperimentState,\n getDictionary,\n getIntlayer,\n IntlayerClientContext,\n type IntlayerNode,\n IntlayerProvider,\n type IntlayerProviderProps,\n localeCookie,\n localeInStorage,\n setLocaleCookie,\n setLocaleInStorage,\n t,\n useConversion,\n useDictionary,\n useDictionaryAsync,\n useDictionaryDynamic,\n useExperiment,\n useI18n,\n useIntl,\n useIntlayer,\n useLoadDynamic,\n useLocaleCookie,\n useLocaleStorage,\n} from 'react-intlayer';\nexport * from './client/index';\nexport { generateStaticParams } from './generateStaticParams';\nexport type {\n LocalParams,\n LocalPromiseParams,\n Next14LayoutIntlayer,\n Next14PageIntlayer,\n Next15LayoutIntlayer,\n Next15PageIntlayer,\n NextLayoutIntlayer,\n NextPageIntlayer,\n} from './types/index';\n\nimport type { FC } from 'react';\nimport type {\n MarkdownContextValue as _MarkdownContextValue,\n MarkdownProviderOptions as _MarkdownProviderOptions,\n MarkdownProviderProps as _MarkdownProviderProps,\n MarkdownRendererProps as _MarkdownRendererProps,\n RenderMarkdownProps as _RenderMarkdownProps,\n} from './markdown';\nimport {\n MarkdownProvider as _MarkdownProvider,\n MarkdownRenderer as _MarkdownRenderer,\n renderMarkdown as _renderMarkdown,\n useMarkdownContext as _useMarkdownContext,\n useMarkdownRenderer as _useMarkdownRenderer,\n} from './markdown';\n\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const MarkdownProvider: FC<_MarkdownProviderProps> = _MarkdownProvider;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const useMarkdownContext: () => _MarkdownContextValue =\n _useMarkdownContext;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type MarkdownProviderOptions = _MarkdownProviderOptions;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const renderMarkdown = _renderMarkdown;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const useMarkdownRenderer = _useMarkdownRenderer;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport const MarkdownRenderer = _MarkdownRenderer;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type RenderMarkdownProps = _RenderMarkdownProps;\n/**\n * @deprecated import from next-intlayer/markdown instead\n */\nexport type MarkdownRendererProps = _MarkdownRendererProps;\n"],"mappings":";;;;;;;;;;;;;AA0DA,MAAa,mBAA+CA;;;;AAI5D,MAAa,qBACXC;;;;AAQF,MAAa,iBAAiBC;;;;AAI9B,MAAa,sBAAsBC;;;;AAInC,MAAa,mBAAmBC"}
@@ -1,6 +1,6 @@
1
+ import { colorize, getAppLogger } from "@intlayer/config/logger";
1
2
  import { dirname, join } from "node:path";
2
3
  import * as ANSIColors from "@intlayer/config/colors";
3
- import { colorize, getAppLogger } from "@intlayer/config/logger";
4
4
  import { getProjectRequire } from "@intlayer/config/utils";
5
5
  import { runOnce } from "@intlayer/engine/utils";
6
6
  import { readFileSync, rmSync } from "node:fs";
@@ -1,10 +1,10 @@
1
1
  import { getIsPurgePipelineAvailable, prepareSwcOptimization, resolveSwcLogLevel } from "./prepareSwcOptimization.mjs";
2
2
  import { MINIMUM_SWC_PLUGIN_NEXT_VERSION, getIsSwcPluginSupported } from "./swcPluginCompatibility.mjs";
3
3
  import { IMPORT_MODE } from "@intlayer/config/defaultValues";
4
+ import { colorize, getAppLogger } from "@intlayer/config/logger";
4
5
  import { join, relative, resolve } from "node:path";
5
6
  import * as ANSIColors from "@intlayer/config/colors";
6
7
  import { formatDictionarySelectorEnvVar, formatNodeTypeToEnvVar, formatOptimizedNestingEnvVar, getConfigEnvVars } from "@intlayer/config/envVars";
7
- import { colorize, getAppLogger } from "@intlayer/config/logger";
8
8
  import { getConfiguration } from "@intlayer/config/node";
9
9
  import { compareVersions, getAlias, getHasDictionarySelector, getProjectRequire, getUnusedNodeTypes, normalizePath } from "@intlayer/config/utils";
10
10
  import { getNestedDictionaryGraph } from "@intlayer/core/dictionaryManipulator";
@@ -8,14 +8,13 @@ import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@babel+types@
8
8
  * Mirrors `FieldRenameNode` in the `@intlayer/swc` crate — both sides must stay
9
9
  * in sync.
10
10
  */
11
- type SerializedFieldRenameEntry = {
11
+ export type SerializedFieldRenameEntry = {
12
12
  /** Short alphabetic alias the field is renamed to (`'a'`, `'b'`, …). */
13
13
  shortName: string;
14
14
  /** Rename table of the fields nested inside this one. */
15
15
  children: SerializedFieldRenameMap;
16
16
  };
17
17
  /** JSON-serialisable form of a {@link NestedRenameMap}. */
18
- type SerializedFieldRenameMap = Record<string, SerializedFieldRenameEntry>;
18
+ export type SerializedFieldRenameMap = Record<string, SerializedFieldRenameEntry>;
19
19
  //#endregion
20
- export { SerializedFieldRenameEntry, SerializedFieldRenameMap };
21
20
  //# sourceMappingURL=babel-plugin-intlayer-field-rename.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-intlayer-field-rename.d.ts","names":[],"sources":["../../../../../../../@intlayer/babel/dist/types/babel-plugin-intlayer-field-rename.d.ts"],"mappings":";;;;;;;;;;KAuDK;;EAEH;;EAEA,UAAU;;;KAGP,2BAA2B,eAAe"}
1
+ {"version":3,"file":"babel-plugin-intlayer-field-rename.d.ts","names":[],"sources":["../../../../../../../@intlayer/babel/dist/types/babel-plugin-intlayer-field-rename.d.ts"],"mappings":";;;;;;;;;;YAuDY;;EAEV;;EAEA,UAAU;;;YAGA,2BAA2B,eAAe"}
@@ -4,7 +4,7 @@ import { IntlayerProviderProps } from "react-intlayer";
4
4
  /**
5
5
  * @deprecated Use `IntlayerProviderProps` from `next-intlayer/server` instead.
6
6
  */
7
- type IntlayerClientProviderProps = IntlayerProviderProps;
7
+ export type IntlayerClientProviderProps = IntlayerProviderProps;
8
8
  /**
9
9
  * Client boundary mounted by the unified `IntlayerProvider`.
10
10
  *
@@ -15,7 +15,7 @@ type IntlayerClientProviderProps = IntlayerProviderProps;
15
15
  * @param props - The provider props.
16
16
  * @returns The provider component.
17
17
  */
18
- declare const IntlayerClientProviderBase: FC<IntlayerProviderProps>;
18
+ export declare const IntlayerClientProviderBase: FC<IntlayerProviderProps>;
19
19
  /**
20
20
  * @deprecated Use `IntlayerProvider` from `next-intlayer/server` instead
21
21
  *
@@ -31,7 +31,6 @@ declare const IntlayerClientProviderBase: FC<IntlayerProviderProps>;
31
31
  * };
32
32
  * ```
33
33
  */
34
- declare const IntlayerClientProvider: FC<IntlayerProviderProps>;
34
+ export declare const IntlayerClientProvider: FC<IntlayerProviderProps>;
35
35
  //#endregion
36
- export { IntlayerClientProvider, IntlayerClientProviderBase, IntlayerClientProviderProps };
37
36
  //# sourceMappingURL=IntlayerClientProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerClientProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerClientProvider.tsx"],"mappings":";;;;;;KASY,8BAA8B;;;;;;;;;;;cAY7B,4BAA4B,GAAG;;;;;;;;;;;;;;;;cAmB/B,wBAAsB,GAAA"}
1
+ {"version":3,"file":"IntlayerClientProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerClientProvider.tsx"],"mappings":";;;;;;YASY,8BAA8B;;;;;;;;;;;qBAY7B,4BAA4B,GAAG;;;;;;;;;;;;;;;;qBAmB/B,wBAAsB,GAAA"}
@@ -1,7 +1,7 @@
1
1
  import { UseLocaleResult as UseLocaleResult$1 } from "react-intlayer";
2
2
  import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
3
3
  //#region src/client/useLocale.d.ts
4
- type UseLocaleProps = {
4
+ export type UseLocaleProps = {
5
5
  isCookieEnabled?: boolean;
6
6
  onLocaleChange?: (locale: DeclaredLocales) => void;
7
7
  onChange?: 'replace' | 'push' | 'none' | ((params: {
@@ -9,7 +9,7 @@ type UseLocaleProps = {
9
9
  path: string;
10
10
  }) => void);
11
11
  };
12
- type UseLocaleResult = UseLocaleResult$1 & {
12
+ export type UseLocaleResult = UseLocaleResult$1 & {
13
13
  pathWithoutLocale: string;
14
14
  };
15
15
  /**
@@ -36,7 +36,6 @@ type UseLocaleResult = UseLocaleResult$1 & {
36
36
  * };
37
37
  * ```
38
38
  */
39
- declare const useLocale: ({ onChange, onLocaleChange, isCookieEnabled }?: UseLocaleProps) => UseLocaleResult;
39
+ export declare const useLocale: ({ onChange, onLocaleChange, isCookieEnabled }?: UseLocaleProps) => UseLocaleResult;
40
40
  //#endregion
41
- export { UseLocaleProps, UseLocaleResult, useLocale };
42
41
  //# sourceMappingURL=useLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;;KAgBY;EACV;EACA,kBAAkB,QAAQ;EAC1B,2CAIM;IAAU,QAAQ;IAAe;;;KAG7B,kBAAkB;EAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BW,cAAS,UAAA,gBAAA,oBAInB,mBAAsB"}
1
+ {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;;YAgBY;EACV;EACA,kBAAkB,QAAQ;EAC1B,2CAIM;IAAU,QAAQ;IAAe;;;YAG7B,kBAAkB;EAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2BW,cAAS,UAAA,gBAAA,oBAInB,mBAAsB"}
@@ -21,7 +21,6 @@ import { UseLocaleProps, UseLocaleResult } from "./useLocale.js";
21
21
  * };
22
22
  * ```
23
23
  */
24
- declare const useLocalePageRouter: ({ onLocaleChange, isCookieEnabled }?: UseLocaleProps) => UseLocaleResult;
24
+ export declare const useLocalePageRouter: ({ onLocaleChange, isCookieEnabled }?: UseLocaleProps) => UseLocaleResult;
25
25
  //#endregion
26
- export { useLocalePageRouter };
27
26
  //# sourceMappingURL=useLocalePageRouter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocalePageRouter.d.ts","names":[],"sources":["../../../src/client/useLocalePageRouter.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cAqCa,wBAAmB,gBAAA,oBAG7B,mBAAsB"}
1
+ {"version":3,"file":"useLocalePageRouter.d.ts","names":[],"sources":["../../../src/client/useLocalePageRouter.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBAqCa,wBAAmB,gBAAA,oBAG7B,mBAAsB"}
@@ -19,7 +19,6 @@
19
19
  * };
20
20
  * ```
21
21
  */
22
- declare const usePathname: () => string;
22
+ export declare const usePathname: () => string;
23
23
  //#endregion
24
- export { usePathname };
25
24
  //# sourceMappingURL=usePathname.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePathname.d.ts","names":[],"sources":["../../../src/client/usePathname.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;cA0Ba"}
1
+ {"version":3,"file":"usePathname.d.ts","names":[],"sources":["../../../src/client/usePathname.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBA0Ba"}
@@ -17,7 +17,6 @@
17
17
  * }
18
18
  * ```
19
19
  */
20
- declare const generateStaticParams: () => any;
20
+ export declare const generateStaticParams: () => any;
21
21
  //#endregion
22
- export { generateStaticParams };
23
22
  //# sourceMappingURL=generateStaticParams.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generateStaticParams.d.ts","names":[],"sources":["../../src/generateStaticParams.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAsBa"}
1
+ {"version":3,"file":"generateStaticParams.d.ts","names":[],"sources":["../../src/generateStaticParams.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAsBa"}
@@ -8,49 +8,41 @@ import { generateStaticParams } from "./generateStaticParams.js";
8
8
  import { LocalParams, LocalPromiseParams, Next14LayoutIntlayer, Next14PageIntlayer, Next15LayoutIntlayer, Next15PageIntlayer, NextLayoutIntlayer, NextPageIntlayer } from "./types/NextPage.js";
9
9
  import "./types/index.js";
10
10
  import { index_d_exports } from "./markdown/index.js";
11
+ import { FC } from "react";
11
12
  import { ConversionParams, ExperimentState, IntlayerClientContext, IntlayerNode, IntlayerProvider, IntlayerProviderProps, getDictionary, getIntlayer, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useConversion, useDictionary, useDictionaryAsync, useDictionaryDynamic, useExperiment, useI18n, useIntl, useIntlayer, useLoadDynamic, useLocaleCookie, useLocaleStorage } from "react-intlayer";
12
13
  //#region src/index.d.ts
13
14
  /**
14
15
  * @deprecated import from next-intlayer/markdown instead
15
16
  */
16
- declare const MarkdownProvider: import("react").FC<index_d_exports.MarkdownProviderOptions & {
17
- components?: import("react-intlayer/html").HTMLComponents<'permissive', {}>;
18
- wrapper?: import("react").FC<import("react").HTMLAttributes<HTMLElement>>;
19
- renderMarkdown?: (markdown: string | import("react-intlayer/markdown").ParsedMarkdown, options?: index_d_exports.MarkdownProviderOptions, components?: import("react-intlayer/html").HTMLComponents<'permissive', {}>, wrapper?: import("react").FC<import("react").HTMLAttributes<HTMLElement>>) => import("react").ReactNode | Promise<import("react").ReactNode>;
20
- } & {
21
- children?: import("react").ReactNode | undefined;
22
- }>;
17
+ export declare const MarkdownProvider: FC<index_d_exports.MarkdownProviderProps>;
23
18
  /**
24
19
  * @deprecated import from next-intlayer/markdown instead
25
20
  */
26
- declare const useMarkdownContext: () => {
27
- components?: import("react-intlayer/html").HTMLComponents<'permissive', {}>;
28
- renderMarkdown: (markdown: string | import("react-intlayer/markdown").ParsedMarkdown, options?: index_d_exports.MarkdownProviderOptions, components?: import("react-intlayer/html").HTMLComponents<'permissive', {}>, wrapper?: import("react").FC<import("react").HTMLAttributes<HTMLElement>>) => import("react").ReactNode | Promise<import("react").ReactNode>;
29
- };
21
+ export declare const useMarkdownContext: () => index_d_exports.MarkdownContextValue;
30
22
  /**
31
23
  * @deprecated import from next-intlayer/markdown instead
32
24
  */
33
- type MarkdownProviderOptions = index_d_exports.MarkdownProviderOptions;
25
+ export type MarkdownProviderOptions = index_d_exports.MarkdownProviderOptions;
34
26
  /**
35
27
  * @deprecated import from next-intlayer/markdown instead
36
28
  */
37
- declare const renderMarkdown: (content: string | import("react-intlayer/markdown").ParsedMarkdown, { components, wrapper, forceBlock, forceInline, preserveFrontmatter, tagfilter }?: index_d_exports.RenderMarkdownProps) => import("react").JSX.Element;
29
+ export declare const renderMarkdown: (content: string | import("react-intlayer/markdown").ParsedMarkdown, { components, wrapper, forceBlock, forceInline, preserveFrontmatter, tagfilter }?: index_d_exports.RenderMarkdownProps) => import("react").JSX.Element;
38
30
  /**
39
31
  * @deprecated import from next-intlayer/markdown instead
40
32
  */
41
- declare const useMarkdownRenderer: ({ components, wrapper, forceBlock, forceInline, preserveFrontmatter, tagfilter }?: index_d_exports.RenderMarkdownProps) => (content: string | import("react-intlayer/markdown").ParsedMarkdown) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<import("react").ReactNode>;
33
+ export declare const useMarkdownRenderer: ({ components, wrapper, forceBlock, forceInline, preserveFrontmatter, tagfilter }?: index_d_exports.RenderMarkdownProps) => (content: string | import("react-intlayer/markdown").ParsedMarkdown) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<import("react").ReactNode>;
42
34
  /**
43
35
  * @deprecated import from next-intlayer/markdown instead
44
36
  */
45
- declare const MarkdownRenderer: import("react").FC<index_d_exports.MarkdownRendererProps>;
37
+ export declare const MarkdownRenderer: FC<index_d_exports.MarkdownRendererProps>;
46
38
  /**
47
39
  * @deprecated import from next-intlayer/markdown instead
48
40
  */
49
- type RenderMarkdownProps = index_d_exports.RenderMarkdownProps;
41
+ export type RenderMarkdownProps = index_d_exports.RenderMarkdownProps;
50
42
  /**
51
43
  * @deprecated import from next-intlayer/markdown instead
52
44
  */
53
- type MarkdownRendererProps = index_d_exports.MarkdownRendererProps;
45
+ export type MarkdownRendererProps = index_d_exports.MarkdownRendererProps;
54
46
  //#endregion
55
- export { type ConversionParams, type ExperimentState, IntlayerClientContext, IntlayerClientProvider, type IntlayerClientProviderProps, type IntlayerNode, IntlayerProvider, type IntlayerProviderProps, type LocalParams, type LocalPromiseParams, MarkdownProvider, MarkdownProviderOptions, MarkdownRenderer, MarkdownRendererProps, type Next14LayoutIntlayer, type Next14PageIntlayer, type Next15LayoutIntlayer, type Next15PageIntlayer, type NextLayoutIntlayer, type NextPageIntlayer, RenderMarkdownProps, generateStaticParams, getDictionary, getIntlayer, localeCookie, localeInStorage, renderMarkdown, setLocaleCookie, setLocaleInStorage, t, useConversion, useDictionary, useDictionaryAsync, useDictionaryDynamic, useExperiment, useI18n, useIntl, useIntlayer, useLoadDynamic, useLocale, useLocaleCookie, useLocalePageRouter, useLocaleStorage, useMarkdownContext, useMarkdownRenderer, usePathname, useRewriteURL };
47
+ export { type ConversionParams, type ExperimentState, IntlayerClientContext, IntlayerClientProvider, type IntlayerClientProviderProps, type IntlayerNode, IntlayerProvider, type IntlayerProviderProps, type LocalParams, type LocalPromiseParams, type Next14LayoutIntlayer, type Next14PageIntlayer, type Next15LayoutIntlayer, type Next15PageIntlayer, type NextLayoutIntlayer, type NextPageIntlayer, generateStaticParams, getDictionary, getIntlayer, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useConversion, useDictionary, useDictionaryAsync, useDictionaryDynamic, useExperiment, useI18n, useIntl, useIntlayer, useLoadDynamic, useLocale, useLocaleCookie, useLocalePageRouter, useLocaleStorage, usePathname, useRewriteURL };
56
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;cAuDa,kCAAgB,GAAA,gBAAA;;;;;;;;;;cAIhB;;;;;;;KAID,0BAA0B,gBAAA;;;;cAIzB,iBAAc,oDAAA,kBAAA,YAAA,SAAA,YAAA,aAAA,qBAAA,cAAA,gBAAA,wCAAA,IAAA;;;;cAId,wBAAmB,YAAA,SAAA,YAAA,aAAA,qBAAA,cAAA,gBAAA,yBAAA,oDAAA,wEAAA,IAAA,UAAA,yBAAA,aAAA,wBAAA;;;;cAInB,kCAAgB,GAAA,gBAAA;;;;KAIjB,sBAAsB,gBAAA;;;;KAItB,wBAAwB,gBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;qBA0Da,kBAAkB,GAAG,gBAAA;;;;qBAIrB,0BAA0B,gBAAA;;;;YAK3B,0BAA0B,gBAAA;;;;qBAIzB,iBAAc,oDAAA,kBAAA,YAAA,SAAA,YAAA,aAAA,qBAAA,cAAA,gBAAA,wCAAA,IAAA;;;;qBAId,wBAAmB,YAAA,SAAA,YAAA,aAAA,qBAAA,cAAA,gBAAA,yBAAA,oDAAA,wEAAA,IAAA,UAAA,yBAAA,aAAA,wBAAA;;;;qBAInB,kBAAgB,GAAA,gBAAA;;;;YAIjB,sBAAsB,gBAAA;;;;YAItB,wBAAwB,gBAAA"}
@@ -24,7 +24,6 @@ import { NextFetchEvent, NextRequest, NextResponse } from "next/server";
24
24
  * @returns - The response to be returned to the client.
25
25
  *
26
26
  */
27
- declare const intlayerProxy: (request: NextRequest, _event?: NextFetchEvent, _response?: NextResponse) => NextResponse;
27
+ export declare const intlayerProxy: (request: NextRequest, _event?: NextFetchEvent, _response?: NextResponse) => NextResponse;
28
28
  //#endregion
29
- export { intlayerProxy };
30
29
  //# sourceMappingURL=intlayerProxy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intlayerProxy.d.ts","names":[],"sources":["../../../src/proxy/intlayerProxy.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;cAuNa,gBAAa,SACf,aAAW,SACX,gBAAc,YACX,iBACX"}
1
+ {"version":3,"file":"intlayerProxy.d.ts","names":[],"sources":["../../../src/proxy/intlayerProxy.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;qBAuNa,gBAAa,SACf,aAAW,SACX,gBAAc,YACX,iBACX"}
@@ -6,7 +6,6 @@ import { NextRequest } from "next/server.js";
6
6
  *
7
7
  * Headers are provided by the browser and can be used to determine the user's preferred language
8
8
  */
9
- declare const localeDetector: (request: NextRequest) => LocalesValues;
9
+ export declare const localeDetector: (request: NextRequest) => LocalesValues;
10
10
  //#endregion
11
- export { localeDetector };
12
11
  //# sourceMappingURL=localeDetector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"localeDetector.d.ts","names":[],"sources":["../../../src/proxy/localeDetector.ts"],"mappings":";;;;;;;;cASa,iBAAc,SAAa,gBAAc"}
1
+ {"version":3,"file":"localeDetector.d.ts","names":[],"sources":["../../../src/proxy/localeDetector.ts"],"mappings":";;;;;;;;qBASa,iBAAc,SAAa,gBAAc"}
@@ -27,8 +27,7 @@ import { multipleProxies } from "./multipleProxies.js";
27
27
  * @param response - The Next.js response object (optional).
28
28
  * @returns - The response to be returned to the client.
29
29
  */
30
- declare const intlayerMiddleware: typeof intlayerProxy;
31
- declare const multipleMiddlewares: typeof multipleProxies;
30
+ export declare const intlayerMiddleware: typeof intlayerProxy;
31
+ export declare const multipleMiddlewares: typeof multipleProxies;
32
32
  //#endregion
33
- export { intlayerMiddleware, multipleMiddlewares };
34
33
  //# sourceMappingURL=middleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","names":[],"sources":["../../../src/proxy/middleware.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8Ba,2BAAkB;cAElB,4BAAmB"}
1
+ {"version":3,"file":"middleware.d.ts","names":[],"sources":["../../../src/proxy/middleware.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8Ba,2BAAkB;qBAElB,4BAAmB"}
@@ -28,7 +28,6 @@ import { NextFetchEvent, NextRequest, NextResponse } from "next/server";
28
28
  * @param proxies - An array of proxy functions to execute in order.
29
29
  * @returns A single proxy function that runs all provided proxies.
30
30
  */
31
- declare const multipleProxies: (proxies: ((req: NextRequest, event?: NextFetchEvent, response?: NextResponse) => NextResponse | Promise<NextResponse>)[]) => (req: NextRequest, event?: NextFetchEvent, response?: NextResponse) => Promise<NextResponse<unknown>>;
31
+ export declare const multipleProxies: (proxies: ((req: NextRequest, event?: NextFetchEvent, response?: NextResponse) => NextResponse | Promise<NextResponse>)[]) => (req: NextRequest, event?: NextFetchEvent, response?: NextResponse) => Promise<NextResponse<unknown>>;
32
32
  //#endregion
33
- export { multipleProxies };
34
33
  //# sourceMappingURL=multipleProxies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"multipleProxies.d.ts","names":[],"sources":["../../../src/proxy/multipleProxies.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCa,kBAAe,WAGtB,KAAK,aACL,QAAQ,gBACR,WAAW,iBACR,eAAe,QAAQ,sBAAgB,KAElC,aAAW,QAAU,gBAAc,WAAa,iBAAY,QAAA"}
1
+ {"version":3,"file":"multipleProxies.d.ts","names":[],"sources":["../../../src/proxy/multipleProxies.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkCa,kBAAe,WAGtB,KAAK,aACL,QAAQ,gBACR,WAAW,iBACR,eAAe,QAAQ,sBAAgB,KAElC,aAAW,QAAU,gBAAc,WAAa,iBAAY,QAAA"}
@@ -2,7 +2,7 @@ import { FC } from "react";
2
2
  import { IntlayerProviderProps as IntlayerProviderProps$1 } from "react-intlayer";
3
3
  import { IntlayerServerProviderProps } from "react-intlayer/server";
4
4
  //#region src/server/IntlayerProvider.d.ts
5
- type IntlayerProviderProps = IntlayerProviderProps$1 & IntlayerServerProviderProps;
5
+ export type IntlayerProviderProps = IntlayerProviderProps$1 & IntlayerServerProviderProps;
6
6
  /**
7
7
  * Unified Intlayer provider for the Next.js App Router.
8
8
  *
@@ -37,7 +37,6 @@ type IntlayerProviderProps = IntlayerProviderProps$1 & IntlayerServerProviderPro
37
37
  * seed it per request with `setVariant` when server components read it outside
38
38
  * a full render of this provider.
39
39
  */
40
- declare const IntlayerProvider: FC<IntlayerProviderProps>;
40
+ export declare const IntlayerProvider: FC<IntlayerProviderProps>;
41
41
  //#endregion
42
- export { IntlayerProvider, IntlayerProviderProps };
43
42
  //# sourceMappingURL=IntlayerProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/server/IntlayerProvider.tsx"],"mappings":";;;;KAQY,wBAAwB,0BAClC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoCW,kBAAkB,GAAG"}
1
+ {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/server/IntlayerProvider.tsx"],"mappings":";;;;YAQY,wBAAwB,0BAClC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoCW,kBAAkB,GAAG"}
@@ -3,7 +3,7 @@ import { IntlayerServerProviderProps as IntlayerServerProviderProps$1 } from "re
3
3
  /**
4
4
  * @deprecated Use `IntlayerProviderProps` from `next-intlayer/server` instead.
5
5
  */
6
- type IntlayerServerProviderProps = IntlayerServerProviderProps$1;
6
+ export type IntlayerServerProviderProps = IntlayerServerProviderProps$1;
7
7
  /**
8
8
  * @deprecated Use `IntlayerProvider` from `next-intlayer/server` instead
9
9
  *
@@ -19,7 +19,6 @@ type IntlayerServerProviderProps = IntlayerServerProviderProps$1;
19
19
  * };
20
20
  * ```
21
21
  */
22
- declare const IntlayerServerProvider: import("react").FC<IntlayerServerProviderProps$1>;
22
+ export declare const IntlayerServerProvider: import("react").FC<IntlayerServerProviderProps$1>;
23
23
  //#endregion
24
- export { IntlayerServerProvider, IntlayerServerProviderProps };
25
24
  //# sourceMappingURL=IntlayerServerProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerServerProvider.d.ts","names":[],"sources":["../../../src/server/IntlayerServerProvider.ts"],"mappings":";;;;;KAQY,8BAA8B;;;;;;;;;;;;;;;;cAiB7B,wCAAsB,GAAA"}
1
+ {"version":3,"file":"IntlayerServerProvider.d.ts","names":[],"sources":["../../../src/server/IntlayerServerProvider.ts"],"mappings":";;;;;YAQY,8BAA8B;;;;;;;;;;;;;;;;qBAiB7B,wCAAsB,GAAA"}
@@ -12,12 +12,12 @@ import { Locale } from "@intlayer/types/allLocales";
12
12
  * Suspends until the request storage resolves. Returns `undefined` when the
13
13
  * call site or the server context already carries the locale.
14
14
  */
15
- declare const resolveFallbackLocale: (localeOrSelector?: unknown) => Locale | undefined;
15
+ export declare const resolveFallbackLocale: (localeOrSelector?: unknown) => Locale | undefined;
16
16
  /**
17
17
  * Asynchronous twin of {@link resolveFallbackLocale}, for the hooks that are
18
18
  * already async and can await the request storage instead of suspending on it.
19
19
  */
20
- declare const getFallbackLocale: (localeOrSelector?: unknown) => Promise<Locale | undefined>;
20
+ export declare const getFallbackLocale: (localeOrSelector?: unknown) => Promise<Locale | undefined>;
21
21
  /**
22
22
  * Full ambient locale for the server APIs that take a plain locale argument
23
23
  * (or none at all): call site → server context → locale carried by the
@@ -28,7 +28,6 @@ declare const getFallbackLocale: (localeOrSelector?: unknown) => Promise<Locale
28
28
  * reimplemented here have no such fallback slot, so they need the resolved
29
29
  * value.
30
30
  */
31
- declare const resolveAmbientLocale: (locale?: LocalesValues) => LocalesValues | undefined;
31
+ export declare const resolveAmbientLocale: (locale?: LocalesValues) => LocalesValues | undefined;
32
32
  //#endregion
33
- export { getFallbackLocale, resolveAmbientLocale, resolveFallbackLocale };
34
33
  //# sourceMappingURL=ambientLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ambientLocale.d.ts","names":[],"sources":["../../../src/server/ambientLocale.ts"],"mappings":";;;;;;;;;;;;;;cAiDa,wBAAqB,+BAE/B;;;;;cAOU,oBAAiB,+BAE3B,QAAQ;;;;;;;;;;;cAaE,uBAAoB,SACtB,kBACR"}
1
+ {"version":3,"file":"ambientLocale.d.ts","names":[],"sources":["../../../src/server/ambientLocale.ts"],"mappings":";;;;;;;;;;;;;;qBAiDa,wBAAqB,+BAE/B;;;;;qBAOU,oBAAiB,+BAE3B,QAAQ;;;;;;;;;;;qBAaE,uBAAoB,SACtB,kBACR"}
@@ -10,7 +10,6 @@ import { compact } from "@intlayer/core/formatters";
10
10
  * locale — it would read the server context alone and format with the default
11
11
  * locale on any render the provider did not reach.
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":";;;;;;;;;;;;cAaa,sBAAU,MAGJ,kBAAkB"}
1
+ {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/server/format/useCompact.ts"],"mappings":";;;;;;;;;;;;qBAaa,sBAAU,MAGJ,kBAAkB"}
@@ -10,7 +10,6 @@ import { currency } from "@intlayer/core/formatters";
10
10
  * locale — it would read the server context alone and format with the default
11
11
  * locale on any render the provider did not reach.
12
12
  */
13
- declare const useCurrency: () => (...args: Parameters<typeof currency>) => string;
13
+ export declare const useCurrency: () => (...args: Parameters<typeof currency>) => string;
14
14
  //#endregion
15
- export { useCurrency };
16
15
  //# sourceMappingURL=useCurrency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/server/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;cAaa,uBAAW,MAGL,kBAAkB"}
1
+ {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/server/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;qBAaa,uBAAW,MAGL,kBAAkB"}
@@ -14,7 +14,6 @@ import { date } from "@intlayer/core/formatters";
14
14
  * preset is resolved before the locale is merged in — spreading the string
15
15
  * itself would scatter its characters and drop the preset.
16
16
  */
17
- declare const useDate: () => (...args: Parameters<typeof date>) => string;
17
+ export declare const useDate: () => (...args: Parameters<typeof date>) => string;
18
18
  //#endregion
19
- export { useDate };
20
19
  //# sourceMappingURL=useDate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/server/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;cAiBa,mBAAO,MAGD,kBAAkB"}
1
+ {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/server/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;qBAiBa,mBAAO,MAGD,kBAAkB"}
@@ -10,7 +10,6 @@ import { list } from "@intlayer/core/formatters";
10
10
  * locale — it would read the server context alone and format with the default
11
11
  * locale on any render the provider did not reach.
12
12
  */
13
- declare const useList: () => (...args: Parameters<typeof list>) => string;
13
+ export declare const useList: () => (...args: Parameters<typeof list>) => string;
14
14
  //#endregion
15
- export { useList };
16
15
  //# sourceMappingURL=useList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/server/format/useList.ts"],"mappings":";;;;;;;;;;;;cAaa,mBAAO,MAGD,kBAAkB"}
1
+ {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/server/format/useList.ts"],"mappings":";;;;;;;;;;;;qBAaa,mBAAO,MAGD,kBAAkB"}
@@ -10,7 +10,6 @@ import { number } from "@intlayer/core/formatters";
10
10
  * locale — it would read the server context alone and format with the default
11
11
  * locale on any render the provider did not reach.
12
12
  */
13
- declare const useNumber: () => (...args: Parameters<typeof number>) => string;
13
+ export declare const useNumber: () => (...args: Parameters<typeof number>) => string;
14
14
  //#endregion
15
- export { useNumber };
16
15
  //# sourceMappingURL=useNumber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/server/format/useNumber.ts"],"mappings":";;;;;;;;;;;;cAaa,qBAAS,MAGH,kBAAkB"}
1
+ {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/server/format/useNumber.ts"],"mappings":";;;;;;;;;;;;qBAaa,qBAAS,MAGH,kBAAkB"}
@@ -10,7 +10,6 @@ import { percentage } from "@intlayer/core/formatters";
10
10
  * locale — it would read the server context alone and format with the default
11
11
  * locale on any render the provider did not reach.
12
12
  */
13
- declare const usePercentage: () => (...args: Parameters<typeof percentage>) => string;
13
+ export declare const usePercentage: () => (...args: Parameters<typeof percentage>) => string;
14
14
  //#endregion
15
- export { usePercentage };
16
15
  //# sourceMappingURL=usePercentage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../../src/server/format/usePercentage.ts"],"mappings":";;;;;;;;;;;;cAaa,yBAAa,MAGP,kBAAkB"}
1
+ {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../../src/server/format/usePercentage.ts"],"mappings":";;;;;;;;;;;;qBAaa,yBAAa,MAGP,kBAAkB"}
@@ -10,7 +10,6 @@ import { relativeTime } from "@intlayer/core/formatters";
10
10
  * locale — it would read the server context alone and format with the default
11
11
  * locale on any render the provider did not reach.
12
12
  */
13
- declare const useRelativeTime: () => (...args: Parameters<typeof relativeTime>) => string;
13
+ export declare const useRelativeTime: () => (...args: Parameters<typeof relativeTime>) => string;
14
14
  //#endregion
15
- export { useRelativeTime };
16
15
  //# sourceMappingURL=useRelativeTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/server/format/useRelativeTime.ts"],"mappings":";;;;;;;;;;;;cAaa,2BAAe,MAGT,kBAAkB"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/server/format/useRelativeTime.ts"],"mappings":";;;;;;;;;;;;qBAaa,2BAAe,MAGT,kBAAkB"}
@@ -10,7 +10,6 @@ import { units } from "@intlayer/core/formatters";
10
10
  * locale — it would read the server context alone and format with the default
11
11
  * locale on any render the provider did not reach.
12
12
  */
13
- declare const useUnit: () => (...args: Parameters<typeof units>) => string;
13
+ export declare const useUnit: () => (...args: Parameters<typeof units>) => string;
14
14
  //#endregion
15
- export { useUnit };
16
15
  //# sourceMappingURL=useUnit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../../src/server/format/useUnit.ts"],"mappings":";;;;;;;;;;;;cAaa,mBAAO,MAGD,kBAAkB"}
1
+ {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../../src/server/format/useUnit.ts"],"mappings":";;;;;;;;;;;;qBAaa,mBAAO,MAGD,kBAAkB"}
@@ -18,7 +18,6 @@ import { Locale } from "@intlayer/types/allLocales";
18
18
  * }
19
19
  * ```
20
20
  */
21
- declare const getLocale: () => Promise<Locale>;
21
+ export declare const getLocale: () => Promise<Locale>;
22
22
  //#endregion
23
- export { getLocale };
24
23
  //# sourceMappingURL=getLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLocale.d.ts","names":[],"sources":["../../../src/server/getLocale.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;cA0Ba,iBAAsB,QAAQ"}
1
+ {"version":3,"file":"getLocale.d.ts","names":[],"sources":["../../../src/server/getLocale.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBA0Ba,iBAAsB,QAAQ"}
@@ -9,9 +9,9 @@ import { IntlayerConfig } from "@intlayer/types/config";
9
9
  * Field-rename tables keyed by dictionary key, forwarded to the
10
10
  * `@intlayer/swc` plugin's `fieldRenameMap` option.
11
11
  */
12
- type FieldRenameMapByDictionaryKey = Record<string, SerializedFieldRenameMap>;
12
+ export type FieldRenameMapByDictionaryKey = Record<string, SerializedFieldRenameMap>;
13
13
  /** Verbosity forwarded to the `@intlayer/swc` plugin's `logLevel` option. */
14
- type SwcLogLevel = 'off' | 'info' | 'debug';
14
+ export type SwcLogLevel = 'off' | 'info' | 'debug';
15
15
  /**
16
16
  * Resolves the verbosity the `@intlayer/swc` plugin should report at.
17
17
  *
@@ -19,7 +19,7 @@ type SwcLogLevel = 'off' | 'info' | 'debug';
19
19
  * the purge and minify reporting, which the pipeline emits in Node so the
20
20
  * Next.js build reads the same as the Vite one.
21
21
  */
22
- declare const resolveSwcLogLevel: (intlayerConfig: IntlayerConfig) => SwcLogLevel;
22
+ export declare const resolveSwcLogLevel: (intlayerConfig: IntlayerConfig) => SwcLogLevel;
23
23
  /**
24
24
  * Whether the purge / minify pipeline can run at all, i.e. whether a usable
25
25
  * `@intlayer/babel` is resolvable from the project.
@@ -28,7 +28,7 @@ declare const resolveSwcLogLevel: (intlayerConfig: IntlayerConfig) => SwcLogLeve
28
28
  * `Dictionary minification enabled` while the pipeline cannot load would describe a
29
29
  * pass that never happens.
30
30
  */
31
- declare const getIsPurgePipelineAvailable: (intlayerConfig: IntlayerConfig) => boolean;
31
+ export declare const getIsPurgePipelineAvailable: (intlayerConfig: IntlayerConfig) => boolean;
32
32
  type PrepareSwcOptimizationParams = {
33
33
  /** Options forwarded to the intlayer configuration loader. */
34
34
  configOptions?: GetConfigurationOptions;
@@ -62,7 +62,6 @@ type PrepareSwcOptimizationParams = {
62
62
  * @returns The field-rename tables, keyed by dictionary key. Empty when the
63
63
  * pipeline is disabled, unavailable, or renamed nothing.
64
64
  */
65
- declare const prepareSwcOptimization: (intlayerConfig: IntlayerConfig, params: PrepareSwcOptimizationParams) => Promise<FieldRenameMapByDictionaryKey>;
65
+ export declare const prepareSwcOptimization: (intlayerConfig: IntlayerConfig, params: PrepareSwcOptimizationParams) => Promise<FieldRenameMapByDictionaryKey>;
66
66
  //#endregion
67
- export { FieldRenameMapByDictionaryKey, SwcLogLevel, getIsPurgePipelineAvailable, prepareSwcOptimization, resolveSwcLogLevel };
68
67
  //# sourceMappingURL=prepareSwcOptimization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareSwcOptimization.d.ts","names":[],"sources":["../../../src/server/prepareSwcOptimization.ts"],"mappings":";;;;;;;;;;;KAsBY,gCAAgC,eAE1C;;KAIU;;;;;;;;cAoDC,qBAAkB,gBACb,mBACf;;;;;;;;;cAqGU,8BAA2B,gBACtB;KAkGb;;EAEH,gBAAgB;;EAEhB,eAAe;;EAEf,kBAAkB;;;;;EAKlB;;;;;;;;;;;;;;;;;;;;;;cAuBW,yBAAsB,gBACjB,gBAAc,QACtB,iCACP,QAAQ"}
1
+ {"version":3,"file":"prepareSwcOptimization.d.ts","names":[],"sources":["../../../src/server/prepareSwcOptimization.ts"],"mappings":";;;;;;;;;;;YAsBY,gCAAgC,eAE1C;;YAIU;;;;;;;;qBAoDC,qBAAkB,gBACb,mBACf;;;;;;;;;qBAqGU,8BAA2B,gBACtB;KAkGb;;EAEH,gBAAgB;;EAEhB,eAAe;;EAEf,kBAAkB;;;;;EAKlB;;;;;;;;;;;;;;;;;;;;;;qBAuBW,yBAAsB,gBACjB,gBAAc,QACtB,iCACP,QAAQ"}
@@ -16,7 +16,6 @@
16
16
  * the reader reports `undefined` so callers fall back to the default locale,
17
17
  * matching the previous behavior.
18
18
  */
19
- declare const createSuspendingReader: <T>(load: () => Promise<T | undefined>) => (() => T | undefined);
19
+ export declare const createSuspendingReader: <T>(load: () => Promise<T | undefined>) => (() => T | undefined);
20
20
  //#endregion
21
- export { createSuspendingReader };
22
21
  //# sourceMappingURL=suspendingReader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"suspendingReader.d.ts","names":[],"sources":["../../../src/server/suspendingReader.ts"],"mappings":";;;;;;;;;;;;;;;;;;cA0Ba,yBAA0B,GAAC,YAC1B,QAAQ,0BACZ"}
1
+ {"version":3,"file":"suspendingReader.d.ts","names":[],"sources":["../../../src/server/suspendingReader.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBA0Ba,yBAA0B,GAAC,YAC1B,QAAQ,0BACZ"}
@@ -28,7 +28,7 @@
28
28
  * `swc_ecma_ast` version this Next.js release ships, never a newer one, or the
29
29
  * floor moves up with it.
30
30
  */
31
- declare const MINIMUM_SWC_PLUGIN_NEXT_VERSION = "16.1.0";
31
+ export declare const MINIMUM_SWC_PLUGIN_NEXT_VERSION = "16.1.0";
32
32
  /**
33
33
  * Whether `nextVersion` bundles an SWC able to load the `@intlayer/swc` Wasm
34
34
  * plugin.
@@ -46,7 +46,6 @@ declare const MINIMUM_SWC_PLUGIN_NEXT_VERSION = "16.1.0";
46
46
  * getIsSwcPluginSupported('15.5.18'); // false
47
47
  * ```
48
48
  */
49
- declare const getIsSwcPluginSupported: (nextVersion: string) => boolean;
49
+ export declare const getIsSwcPluginSupported: (nextVersion: string) => boolean;
50
50
  //#endregion
51
- export { MINIMUM_SWC_PLUGIN_NEXT_VERSION, getIsSwcPluginSupported };
52
51
  //# sourceMappingURL=swcPluginCompatibility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swcPluginCompatibility.d.ts","names":[],"sources":["../../../src/server/swcPluginCompatibility.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+Ba;;;;;;;;;;;;;;;;;;cAmBA,0BAAuB"}
1
+ {"version":3,"file":"swcPluginCompatibility.d.ts","names":[],"sources":["../../../src/server/swcPluginCompatibility.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+Ba;;;;;;;;;;;;;;;;;;qBAmBA,0BAAuB"}
@@ -7,7 +7,6 @@ import { t as t$1 } from "react-intlayer/server";
7
7
  * If the locale is not provided, it will use the locale from the server
8
8
  * context, falling back to the locale carried by the request.
9
9
  */
10
- declare const t: <Content = string, L extends LocalesValues = DeclaredLocales>(multilangContent: StrictModeLocaleMap<Content>, locale?: L) => ReturnType<typeof t$1<Content, L>>;
10
+ export declare const t: <Content = string, L extends LocalesValues = DeclaredLocales>(multilangContent: StrictModeLocaleMap<Content>, locale?: L) => ReturnType<typeof t$1<Content, L>>;
11
11
  //#endregion
12
- export { t };
13
12
  //# sourceMappingURL=t.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/server/t.ts"],"mappings":";;;;;;;;;cAca,IAAK,kBAAkB,UAAU,gBAAgB,iBAAe,kBACzD,oBAAoB,UAAQ,SACrC,MACR,kBAAkB,IAAM,SAAS"}
1
+ {"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/server/t.ts"],"mappings":";;;;;;;;;qBAca,IAAK,kBAAkB,UAAU,gBAAgB,iBAAe,kBACzD,oBAAoB,UAAQ,SACrC,MACR,kBAAkB,IAAM,SAAS"}
@@ -9,7 +9,6 @@ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup } from
9
9
  * If the locale is not provided, it will use the locale from the server
10
10
  * context, falling back to the locale carried by the request.
11
11
  */
12
- declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => ReturnType<typeof useDictionary$1<T, A>>;
12
+ export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => ReturnType<typeof useDictionary$1<T, 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":";;;;;;;;;;;cAmBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,MAClB,kBAAkB,gBAAkB,GAAG"}
1
+ {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/server/useDictionary.ts"],"mappings":";;;;;;;;;;;qBAmBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,MAClB,kBAAkB,gBAAkB,GAAG"}
@@ -8,7 +8,6 @@ import { Dictionary } from "@intlayer/types/dictionary";
8
8
  * If the locale is not provided, it will use the locale from the server
9
9
  * context, falling back to the locale carried by the request.
10
10
  */
11
- declare const useDictionaryAsync: <const T extends Dictionary, const L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: L) => ReturnType<typeof useDictionaryAsync$1<T, L>>;
11
+ export declare const useDictionaryAsync: <const T extends Dictionary, const L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: L) => ReturnType<typeof useDictionaryAsync$1<T, L>>;
12
12
  //#endregion
13
- export { useDictionaryAsync };
14
13
  //# sourceMappingURL=useDictionaryAsync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/server/useDictionaryAsync.ts"],"mappings":";;;;;;;;;;cAea,2BACL,UAAU,kBACV,UAAU,gBAAgB,iBAAe,mBAE5B,0BAA0B,QAAQ,KAAG,SAC/C,MACR,kBAAkB,qBAAuB,GAAG"}
1
+ {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/server/useDictionaryAsync.ts"],"mappings":";;;;;;;;;;qBAea,2BACL,UAAU,kBACV,UAAU,gBAAgB,iBAAe,mBAE5B,0BAA0B,QAAQ,KAAG,SAC/C,MACR,kBAAkB,qBAAuB,GAAG"}
@@ -10,7 +10,6 @@ import { QualifiedDynamicLoaderMap } from "@intlayer/core/dictionaryManipulator"
10
10
  * If the locale is not provided, it will use the locale from the server
11
11
  * context, falling back to the locale carried by the request.
12
12
  */
13
- declare const useDictionaryDynamic: <const T extends Dictionary, const A extends LocalesValues | DictionarySelector = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: string, localeOrSelector?: A) => ReturnType<typeof useDictionaryDynamic$1<T, A>>;
13
+ export declare const useDictionaryDynamic: <const T extends Dictionary, const A extends LocalesValues | DictionarySelector = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: string, localeOrSelector?: A) => ReturnType<typeof useDictionaryDynamic$1<T, A>>;
14
14
  //#endregion
15
- export { useDictionaryDynamic };
16
15
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/server/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;cAoBa,6BACL,UAAU,kBACV,UAAU,gBAAgB,qBAAqB,iBAAe,mBAGhE,0BAA0B,QAAQ,MAClC,2BAAyB,aAClB,mBACQ,MAClB,kBAAkB,uBAAyB,GAAG"}
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/server/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;qBAoBa,6BACL,UAAU,kBACV,UAAU,gBAAgB,qBAAqB,iBAAe,mBAGhE,0BAA0B,QAAQ,MAClC,2BAAyB,aAClB,mBACQ,MAClB,kBAAkB,uBAAyB,GAAG"}
@@ -8,7 +8,6 @@ import { useI18n as useI18n$1 } from "react-intlayer/server";
8
8
  * If the locale is not provided, it will use the locale from the server
9
9
  * context, falling back to the locale carried by the request.
10
10
  */
11
- declare const useI18n: <T extends DictionaryKeys>(namespace: T, locale?: LocalesValues) => ReturnType<typeof useI18n$1<T>>;
11
+ export declare const useI18n: <T extends DictionaryKeys>(namespace: T, locale?: LocalesValues) => ReturnType<typeof useI18n$1<T>>;
12
12
  //#endregion
13
- export { useI18n };
14
13
  //# sourceMappingURL=useI18n.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useI18n.d.ts","names":[],"sources":["../../../src/server/useI18n.ts"],"mappings":";;;;;;;;;;cAca,UAAW,UAAU,gBAAc,WACnC,GAAC,SACH,kBACR,kBAAkB,UAAY"}
1
+ {"version":3,"file":"useI18n.d.ts","names":[],"sources":["../../../src/server/useI18n.ts"],"mappings":";;;;;;;;;;qBAca,UAAW,UAAU,gBAAc,WACnC,GAAC,SACH,kBACR,kBAAkB,UAAY"}
@@ -7,7 +7,6 @@ import { WrappedIntl } from "@intlayer/core/formatters";
7
7
  * If the locale is not provided, it will use the locale from the server
8
8
  * context, falling back to the locale carried by the request.
9
9
  */
10
- declare const useIntl: (locale?: LocalesValues) => WrappedIntl;
10
+ export declare const useIntl: (locale?: LocalesValues) => WrappedIntl;
11
11
  //#endregion
12
- export { useIntl };
13
12
  //# sourceMappingURL=useIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/server/useIntl.ts"],"mappings":";;;;;;;;;cAWa,UAAO,SAAa,kBAAgB"}
1
+ {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/server/useIntl.ts"],"mappings":";;;;;;;;;qBAWa,UAAO,SAAa,kBAAgB"}
@@ -9,7 +9,6 @@ import { useIntlayer as useIntlayer$1 } from "react-intlayer/server";
9
9
  * If the locale is not provided, it will use the locale from the server
10
10
  * context, falling back to the locale carried by the request.
11
11
  */
12
- declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => ReturnType<typeof useIntlayer$1<T, A>>;
12
+ export declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => ReturnType<typeof useIntlayer$1<T, 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":";;;;;;;;;;;cAiBa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,MAClB,kBAAkB,cAAgB,GAAG"}
1
+ {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/server/useIntlayer.ts"],"mappings":";;;;;;;;;;;qBAiBa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,MAClB,kBAAkB,cAAgB,GAAG"}
@@ -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[];
@@ -14,7 +14,6 @@ type UseLocaleResult = {
14
14
  * it would read the server context alone and report the default locale on any
15
15
  * render the provider did not reach.
16
16
  */
17
- declare const useLocale: () => UseLocaleResult;
17
+ export declare const useLocale: () => UseLocaleResult;
18
18
  //#endregion
19
- export { UseLocaleResult, useLocale };
20
19
  //# sourceMappingURL=useLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/server/useLocale.ts"],"mappings":";;KAIY;EACV,QAAQ;EACR,eAAe;EACf,kBAAkB;;;;;;;;;;;cAYP,iBAAgB"}
1
+ {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/server/useLocale.ts"],"mappings":";;YAIY;EACV,QAAQ;EACR,eAAe;EACf,kBAAkB;;;;;;;;;;;qBAYP,iBAAgB"}
@@ -28,7 +28,7 @@ type WithIntlayerOptions = GetConfigurationOptions & {
28
28
  * export default withIntlayerSync(nextConfig)
29
29
  * ```
30
30
  */
31
- declare const withIntlayerSync: <T extends Partial<NextConfig>>(nextConfig?: T, configOptions?: WithIntlayerOptions) => NextConfig & T;
31
+ export declare const withIntlayerSync: <T extends Partial<NextConfig>>(nextConfig?: T, configOptions?: WithIntlayerOptions) => NextConfig & T;
32
32
  /**
33
33
  * A Next.js plugin that adds the intlayer configuration to the webpack configuration
34
34
  * and sets the environment variables
@@ -44,7 +44,7 @@ declare const withIntlayerSync: <T extends Partial<NextConfig>>(nextConfig?: T,
44
44
  * > Using the promise allows to prepare the intlayer dictionaries before the build starts.
45
45
  *
46
46
  */
47
- declare const withIntlayer: <T extends NextConfig | Partial<NextConfig>>(nextConfig?: T | Promise<T>, configOptions?: WithIntlayerOptions) => Promise<NextConfig & T>;
47
+ export declare const withIntlayer: <T extends NextConfig | Partial<NextConfig>>(nextConfig?: T | Promise<T>, configOptions?: WithIntlayerOptions) => Promise<NextConfig & T>;
48
48
  //#endregion
49
- export { MINIMUM_SWC_PLUGIN_NEXT_VERSION, getIsSwcPluginSupported, withIntlayer, withIntlayerSync };
49
+ export { MINIMUM_SWC_PLUGIN_NEXT_VERSION, getIsSwcPluginSupported };
50
50
  //# sourceMappingURL=withIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withIntlayer.d.ts","names":[],"sources":["../../../src/server/withIntlayer.ts"],"mappings":";;;;;;KA4XK,sBAAsB;EACzB;EACA,kBAAkB;;;;;;;;;EAUlB,iBAAiB;;;;;;;;;;;;;cAuDN,mBAAoB,UAAU,QAAQ,aAAW,aAChD,GAAC,gBACG,wBACf,aAAa;;;;;;;;;;;;;;;;cA4QH,eAAsB,UAAU,aAAa,QAAQ,aAAW,aAC/D,IAAI,QAAQ,IAAE,gBACV,wBACf,QAAQ,aAAa"}
1
+ {"version":3,"file":"withIntlayer.d.ts","names":[],"sources":["../../../src/server/withIntlayer.ts"],"mappings":";;;;;;KA4XK,sBAAsB;EACzB;EACA,kBAAkB;;;;;;;;;EAUlB,iBAAiB;;;;;;;;;;;;;qBAuDN,mBAAoB,UAAU,QAAQ,aAAW,aAChD,GAAC,gBACG,wBACf,aAAa;;;;;;;;;;;;;;;;qBA4QH,eAAsB,UAAU,aAAa,QAAQ,aAAW,aAC/D,IAAI,QAAQ,IAAE,gBACV,wBACf,QAAQ,aAAa"}
@@ -2,22 +2,21 @@ import { PropsWithChildren, ReactNode } from "react";
2
2
  import { LocalesValues } from "@intlayer/types/module_augmentation";
3
3
  import { NextPage } from "next";
4
4
  //#region src/types/NextPage.d.ts
5
- type LocalParams<T = {}> = {
5
+ export type LocalParams<T = {}> = {
6
6
  params: {
7
7
  locale?: LocalesValues;
8
8
  } & T;
9
9
  };
10
- type LocalPromiseParams<T = {}> = {
10
+ export type LocalPromiseParams<T = {}> = {
11
11
  params: Promise<{
12
12
  locale?: LocalesValues;
13
13
  } & T>;
14
14
  };
15
- type Next14PageIntlayer<T = {}> = NextPage<LocalParams<T>>;
16
- type Next15PageIntlayer<T = {}> = (props: LocalPromiseParams<T>) => ReactNode | Promise<ReactNode>;
17
- type NextPageIntlayer<T = {}> = Next15PageIntlayer<T>;
18
- type Next14LayoutIntlayer<T = {}> = NextPage<PropsWithChildren<LocalParams<T>>>;
19
- type Next15LayoutIntlayer<T = {}> = (props: PropsWithChildren<LocalPromiseParams<T>>) => ReactNode | Promise<ReactNode>;
20
- type NextLayoutIntlayer<T = {}> = (props: PropsWithChildren<LocalPromiseParams<T>>) => ReactNode | Promise<ReactNode>;
15
+ export type Next14PageIntlayer<T = {}> = NextPage<LocalParams<T>>;
16
+ export type Next15PageIntlayer<T = {}> = (props: LocalPromiseParams<T>) => ReactNode | Promise<ReactNode>;
17
+ export type NextPageIntlayer<T = {}> = Next15PageIntlayer<T>;
18
+ export type Next14LayoutIntlayer<T = {}> = NextPage<PropsWithChildren<LocalParams<T>>>;
19
+ export type Next15LayoutIntlayer<T = {}> = (props: PropsWithChildren<LocalPromiseParams<T>>) => ReactNode | Promise<ReactNode>;
20
+ export type NextLayoutIntlayer<T = {}> = (props: PropsWithChildren<LocalPromiseParams<T>>) => ReactNode | Promise<ReactNode>;
21
21
  //#endregion
22
- export { LocalParams, LocalPromiseParams, Next14LayoutIntlayer, Next14PageIntlayer, Next15LayoutIntlayer, Next15PageIntlayer, NextLayoutIntlayer, NextPageIntlayer };
23
22
  //# sourceMappingURL=NextPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NextPage.d.ts","names":[],"sources":["../../../src/types/NextPage.ts"],"mappings":";;;;KAIY,YAAY;EACtB;IAAU,SAAS;MAAkB;;KAG3B,mBAAmB;EAC7B,QAAQ;IAEJ,SAAS;MACP;;KAII,mBAAmB,UAAU,SAAS,YAAY;KAClD,mBAAmB,WAC7B,OAAO,mBAAmB,OACvB,YAAY,QAAQ;KACb,iBAAiB,UAAU,mBAAmB;KAE9C,qBAAqB,UAAU,SACzC,kBAAkB,YAAY;KAEpB,qBAAqB,WAC/B,OAAO,kBAAkB,mBAAmB,QACzC,YAAY,QAAQ;KAEb,mBAAmB,WAC7B,OAAO,kBAAkB,mBAAmB,QACzC,YAAY,QAAQ"}
1
+ {"version":3,"file":"NextPage.d.ts","names":[],"sources":["../../../src/types/NextPage.ts"],"mappings":";;;;YAIY,YAAY;EACtB;IAAU,SAAS;MAAkB;;YAG3B,mBAAmB;EAC7B,QAAQ;IAEJ,SAAS;MACP;;YAII,mBAAmB,UAAU,SAAS,YAAY;YAClD,mBAAmB,WAC7B,OAAO,mBAAmB,OACvB,YAAY,QAAQ;YACb,iBAAiB,UAAU,mBAAmB;YAE9C,qBAAqB,UAAU,SACzC,kBAAkB,YAAY;YAEpB,qBAAqB,WAC/B,OAAO,kBAAkB,mBAAmB,QACzC,YAAY,QAAQ;YAEb,mBAAmB,WAC7B,OAAO,kBAAkB,mBAAmB,QACzC,YAAY,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intlayer",
3
- "version": "9.4.2",
3
+ "version": "9.4.3",
4
4
  "private": false,
5
5
  "description": "Simplify internationalization i18n in Next.js with context providers, hooks, locale detection, and multilingual content integration.",
6
6
  "keywords": [
@@ -138,15 +138,15 @@
138
138
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
139
139
  },
140
140
  "dependencies": {
141
- "@intlayer/config": "9.4.2",
142
- "@intlayer/core": "9.4.2",
143
- "@intlayer/dictionaries-entry": "9.4.2",
144
- "@intlayer/engine": "9.4.2",
145
- "@intlayer/types": "9.4.2",
146
- "@intlayer/webpack": "9.4.2",
141
+ "@intlayer/config": "9.4.3",
142
+ "@intlayer/core": "9.4.3",
143
+ "@intlayer/dictionaries-entry": "9.4.3",
144
+ "@intlayer/engine": "9.4.3",
145
+ "@intlayer/types": "9.4.3",
146
+ "@intlayer/webpack": "9.4.3",
147
147
  "defu": "6.1.7",
148
148
  "node-loader": "2.1.0",
149
- "react-intlayer": "9.4.2"
149
+ "react-intlayer": "9.4.3"
150
150
  },
151
151
  "devDependencies": {
152
152
  "@types/node": "26.4.1",
@@ -156,9 +156,9 @@
156
156
  "@utils/ts-config-types": "1.0.4",
157
157
  "@utils/tsdown-config": "1.0.4",
158
158
  "rimraf": "6.1.3",
159
- "tsdown": "0.22.14",
159
+ "tsdown": "0.23.0",
160
160
  "typescript": "7.0.2",
161
- "vitest": "4.1.11"
161
+ "vitest": "5.0.0"
162
162
  },
163
163
  "peerDependencies": {
164
164
  "next": ">=14.0.0",