@intlayer/core 7.0.7 → 7.0.8

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 (111) hide show
  1. package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +0 -1
  2. package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs.map +1 -1
  3. package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +0 -1
  4. package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs.map +1 -1
  5. package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +0 -1
  6. package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -1
  7. package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +0 -1
  8. package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs.map +1 -1
  9. package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs +0 -1
  10. package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs.map +1 -1
  11. package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +0 -1
  12. package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs.map +1 -1
  13. package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +0 -1
  14. package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -1
  15. package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +0 -1
  16. package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
  17. package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +0 -1
  18. package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs.map +1 -1
  19. package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +0 -1
  20. package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs.map +1 -1
  21. package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +0 -1
  22. package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs.map +1 -1
  23. package/dist/cjs/dictionaryManipulator/getNodeType.cjs +0 -1
  24. package/dist/cjs/dictionaryManipulator/getNodeType.cjs.map +1 -1
  25. package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +0 -1
  26. package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs.map +1 -1
  27. package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +0 -1
  28. package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs.map +1 -1
  29. package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +0 -1
  30. package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs.map +1 -1
  31. package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +0 -1
  32. package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs.map +1 -1
  33. package/dist/cjs/getStorageAttributes.cjs +0 -1
  34. package/dist/cjs/getStorageAttributes.cjs.map +1 -1
  35. package/dist/cjs/interpreter/getContent/deepTransform.cjs +0 -1
  36. package/dist/cjs/interpreter/getContent/deepTransform.cjs.map +1 -1
  37. package/dist/cjs/interpreter/getContent/plugins.cjs +0 -1
  38. package/dist/cjs/interpreter/getContent/plugins.cjs.map +1 -1
  39. package/dist/cjs/interpreter/getIntlayer.cjs +0 -1
  40. package/dist/cjs/interpreter/getIntlayer.cjs.map +1 -1
  41. package/dist/cjs/localization/getBrowserLocale.cjs +0 -1
  42. package/dist/cjs/localization/getBrowserLocale.cjs.map +1 -1
  43. package/dist/cjs/localization/getHTMLTextDir.cjs +0 -1
  44. package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
  45. package/dist/cjs/localization/getLocaleFromPath.cjs +0 -1
  46. package/dist/cjs/localization/getLocaleFromPath.cjs.map +1 -1
  47. package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
  48. package/dist/cjs/localization/getMultilingualUrls.cjs +0 -1
  49. package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
  50. package/dist/cjs/localization/localeMapper.cjs +0 -1
  51. package/dist/cjs/localization/localeMapper.cjs.map +1 -1
  52. package/dist/cjs/transpiler/condition/condition.cjs +0 -1
  53. package/dist/cjs/transpiler/condition/condition.cjs.map +1 -1
  54. package/dist/cjs/transpiler/enumeration/enumeration.cjs +0 -1
  55. package/dist/cjs/transpiler/enumeration/enumeration.cjs.map +1 -1
  56. package/dist/cjs/transpiler/file/file.cjs +0 -4
  57. package/dist/cjs/transpiler/file/file.cjs.map +1 -1
  58. package/dist/cjs/transpiler/file/fileBrowser.cjs +0 -2
  59. package/dist/cjs/transpiler/file/fileBrowser.cjs.map +1 -1
  60. package/dist/cjs/transpiler/gender/gender.cjs +0 -1
  61. package/dist/cjs/transpiler/gender/gender.cjs.map +1 -1
  62. package/dist/cjs/transpiler/insertion/insertion.cjs +0 -1
  63. package/dist/cjs/transpiler/insertion/insertion.cjs.map +1 -1
  64. package/dist/cjs/transpiler/markdown/markdown.cjs +0 -1
  65. package/dist/cjs/transpiler/markdown/markdown.cjs.map +1 -1
  66. package/dist/cjs/transpiler/nesting/nesting.cjs +0 -1
  67. package/dist/cjs/transpiler/nesting/nesting.cjs.map +1 -1
  68. package/dist/cjs/transpiler/translation/translation.cjs +0 -1
  69. package/dist/cjs/transpiler/translation/translation.cjs.map +1 -1
  70. package/dist/cjs/utils/intl.cjs +0 -1
  71. package/dist/cjs/utils/intl.cjs.map +1 -1
  72. package/dist/esm/localization/getLocalizedUrl.mjs.map +1 -1
  73. package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +5 -4
  74. package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -1
  75. package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +1 -0
  76. package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -1
  77. package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +5 -4
  78. package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -1
  79. package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +1 -0
  80. package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +1 -1
  81. package/dist/types/deepTransformPlugins/getMaskContent.d.ts +1 -0
  82. package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +1 -1
  83. package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +1 -0
  84. package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +1 -1
  85. package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +1 -0
  86. package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +1 -1
  87. package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +2 -2
  88. package/dist/types/index.d.ts +6 -0
  89. package/dist/types/interpreter/getCondition.d.ts +1 -0
  90. package/dist/types/interpreter/getCondition.d.ts.map +1 -1
  91. package/dist/types/interpreter/getContent/plugins.d.ts +1 -0
  92. package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
  93. package/dist/types/interpreter/getDictionary.d.ts +1 -0
  94. package/dist/types/interpreter/getDictionary.d.ts.map +1 -1
  95. package/dist/types/interpreter/getEnumeration.d.ts +1 -0
  96. package/dist/types/interpreter/getEnumeration.d.ts.map +1 -1
  97. package/dist/types/interpreter/getGender.d.ts +1 -0
  98. package/dist/types/interpreter/getGender.d.ts.map +1 -1
  99. package/dist/types/interpreter/getInsertion.d.ts +1 -0
  100. package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
  101. package/dist/types/interpreter/getIntlayer.d.ts +1 -0
  102. package/dist/types/interpreter/getIntlayer.d.ts.map +1 -1
  103. package/dist/types/interpreter/getNesting.d.ts +2 -0
  104. package/dist/types/interpreter/getNesting.d.ts.map +1 -1
  105. package/dist/types/interpreter/index.d.ts +1 -0
  106. package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
  107. package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
  108. package/dist/types/transpiler/index.d.ts +8 -0
  109. package/dist/types/transpiler/nesting/nesting.d.ts +1 -0
  110. package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -1
  111. package/package.json +18 -18
@@ -1 +1 @@
1
- {"version":3,"file":"insertion.cjs","names":["getInsertionValues","NodeType"],"sources":["../../../../src/transpiler/insertion/insertion.ts"],"sourcesContent":["import { formatNodeType, NodeType, type TypedNodeModel } from '@intlayer/types';\nimport { getInsertionValues } from './getInsertionValues';\n\nexport type InsertionContentConstructor<\n Content = unknown,\n T extends Record<string, any> = {},\n> = TypedNodeModel<NodeType.Insertion, Content, T>;\n\nexport type InsertionContent<Content = unknown> = InsertionContentConstructor<\n Content,\n {\n fields: string[];\n }\n>;\n\n/**\n * Function intended to be used to build intlayer dictionaries.\n *\n * Allow to identify insertions inside a content.\n *\n * Usage:\n *\n * ```ts\n * insertion('Hi, my name is {{name}} and I am {{age}} years old.')\n * ```\n *\n */\nconst insertion = <Content = unknown>(\n content: Content\n): InsertionContent<Content> => {\n const getInsertions = () => {\n if (typeof content === 'string') {\n return getInsertionValues(content);\n }\n\n let stringContent;\n\n if (typeof content === 'function') {\n stringContent = content();\n } else if (typeof (content as Promise<string>).then === 'function') {\n stringContent = async () =>\n getInsertionValues(await (content as Promise<string>));\n }\n\n if (typeof stringContent === 'string') {\n return getInsertionValues(stringContent);\n }\n\n try {\n return getInsertionValues(JSON.stringify(content));\n } catch (_e) {\n return [];\n }\n };\n\n return formatNodeType(NodeType.Insertion, content, {\n fields: getInsertions(),\n });\n};\n\nexport { insertion as insert };\n"],"mappings":";;;;;;;;;;;;;;;;;;AA2BA,MAAM,aACJ,YAC8B;CAC9B,MAAM,sBAAsB;AAC1B,MAAI,OAAO,YAAY,SACrB,QAAOA,mEAAmB,QAAQ;EAGpC,IAAI;AAEJ,MAAI,OAAO,YAAY,WACrB,iBAAgB,SAAS;WAChB,OAAQ,QAA4B,SAAS,WACtD,iBAAgB,YACdA,mEAAmB,MAAO,QAA4B;AAG1D,MAAI,OAAO,kBAAkB,SAC3B,QAAOA,mEAAmB,cAAc;AAG1C,MAAI;AACF,UAAOA,mEAAmB,KAAK,UAAU,QAAQ,CAAC;WAC3C,IAAI;AACX,UAAO,EAAE;;;AAIb,6CAAsBC,0BAAS,WAAW,SAAS,EACjD,QAAQ,eAAe,EACxB,CAAC"}
1
+ {"version":3,"file":"insertion.cjs","names":["getInsertionValues","NodeType"],"sources":["../../../../src/transpiler/insertion/insertion.ts"],"sourcesContent":["import { formatNodeType, NodeType, type TypedNodeModel } from '@intlayer/types';\nimport { getInsertionValues } from './getInsertionValues';\n\nexport type InsertionContentConstructor<\n Content = unknown,\n T extends Record<string, any> = {},\n> = TypedNodeModel<NodeType.Insertion, Content, T>;\n\nexport type InsertionContent<Content = unknown> = InsertionContentConstructor<\n Content,\n {\n fields: string[];\n }\n>;\n\n/**\n * Function intended to be used to build intlayer dictionaries.\n *\n * Allow to identify insertions inside a content.\n *\n * Usage:\n *\n * ```ts\n * insertion('Hi, my name is {{name}} and I am {{age}} years old.')\n * ```\n *\n */\nconst insertion = <Content = unknown>(\n content: Content\n): InsertionContent<Content> => {\n const getInsertions = () => {\n if (typeof content === 'string') {\n return getInsertionValues(content);\n }\n\n let stringContent;\n\n if (typeof content === 'function') {\n stringContent = content();\n } else if (typeof (content as Promise<string>).then === 'function') {\n stringContent = async () =>\n getInsertionValues(await (content as Promise<string>));\n }\n\n if (typeof stringContent === 'string') {\n return getInsertionValues(stringContent);\n }\n\n try {\n return getInsertionValues(JSON.stringify(content));\n } catch (_e) {\n return [];\n }\n };\n\n return formatNodeType(NodeType.Insertion, content, {\n fields: getInsertions(),\n });\n};\n\nexport { insertion as insert };\n"],"mappings":";;;;;;;;;;;;;;;;;AA2BA,MAAM,aACJ,YAC8B;CAC9B,MAAM,sBAAsB;AAC1B,MAAI,OAAO,YAAY,SACrB,QAAOA,mEAAmB,QAAQ;EAGpC,IAAI;AAEJ,MAAI,OAAO,YAAY,WACrB,iBAAgB,SAAS;WAChB,OAAQ,QAA4B,SAAS,WACtD,iBAAgB,YACdA,mEAAmB,MAAO,QAA4B;AAG1D,MAAI,OAAO,kBAAkB,SAC3B,QAAOA,mEAAmB,cAAc;AAG1C,MAAI;AACF,UAAOA,mEAAmB,KAAK,UAAU,QAAQ,CAAC;WAC3C,IAAI;AACX,UAAO,EAAE;;;AAIb,6CAAsBC,0BAAS,WAAW,SAAS,EACjD,QAAQ,eAAe,EACxB,CAAC"}
@@ -2,7 +2,6 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_interpreter_getContent_getContent = require('../../interpreter/getContent/getContent.cjs');
3
3
  const require_transpiler_markdown_getMarkdownMetadata = require('./getMarkdownMetadata.cjs');
4
4
  let __intlayer_types = require("@intlayer/types");
5
- __intlayer_types = require_rolldown_runtime.__toESM(__intlayer_types);
6
5
 
7
6
  //#region src/transpiler/markdown/markdown.ts
8
7
  const awaitContent = async (content) => {
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.cjs","names":["getContent","getMarkdownMetadata","NodeType"],"sources":["../../../../src/transpiler/markdown/markdown.ts"],"sourcesContent":["import { formatNodeType, NodeType, type TypedNodeModel } from '@intlayer/types';\nimport { getContent } from '../../interpreter/getContent/getContent';\nimport { getMarkdownMetadata } from './getMarkdownMetadata';\n\nexport type MarkdownContentConstructor<\n T extends Record<string, any> = {},\n Content = unknown,\n> = TypedNodeModel<NodeType.Markdown, Content, T>;\n\nexport type MarkdownContent<_Content = unknown> = MarkdownContentConstructor<{\n metadata?: Record<string, any>;\n}>;\n\nconst awaitContent = async (content: any) => {\n if (typeof content === 'string' || typeof content === 'object') {\n return content as any;\n }\n\n if (typeof content === 'function') {\n return content();\n }\n if (typeof content.then === 'function') {\n return await content;\n }\n};\n\n/**\n * Function intended to be used to build intlayer dictionaries.\n *\n * Allow to pick a content based on a quantity.\n *\n * Usage:\n *\n * ```ts\n * markdown('## Hello world!');\n * ```\n *\n */\nconst markdown = <Content = unknown>(content: Content): MarkdownContent => {\n const metadata = async () => {\n const awaitedContent = await awaitContent(content);\n\n const flatContent = getContent(awaitedContent, {\n dictionaryKey: '',\n keyPath: [],\n });\n\n if (typeof flatContent === 'string') {\n return getMarkdownMetadata(flatContent);\n }\n };\n\n return formatNodeType(NodeType.Markdown, content as string, {\n metadata,\n });\n};\n\nexport { markdown as md };\n"],"mappings":";;;;;;;AAaA,MAAM,eAAe,OAAO,YAAiB;AAC3C,KAAI,OAAO,YAAY,YAAY,OAAO,YAAY,SACpD,QAAO;AAGT,KAAI,OAAO,YAAY,WACrB,QAAO,SAAS;AAElB,KAAI,OAAO,QAAQ,SAAS,WAC1B,QAAO,MAAM;;;;;;;;;;;;;;AAgBjB,MAAM,YAA+B,YAAsC;CACzE,MAAM,WAAW,YAAY;EAG3B,MAAM,cAAcA,qDAFG,MAAM,aAAa,QAAQ,EAEH;GAC7C,eAAe;GACf,SAAS,EAAE;GACZ,CAAC;AAEF,MAAI,OAAO,gBAAgB,SACzB,QAAOC,oEAAoB,YAAY;;AAI3C,6CAAsBC,0BAAS,UAAU,SAAmB,EAC1D,UACD,CAAC"}
1
+ {"version":3,"file":"markdown.cjs","names":["getContent","getMarkdownMetadata","NodeType"],"sources":["../../../../src/transpiler/markdown/markdown.ts"],"sourcesContent":["import { formatNodeType, NodeType, type TypedNodeModel } from '@intlayer/types';\nimport { getContent } from '../../interpreter/getContent/getContent';\nimport { getMarkdownMetadata } from './getMarkdownMetadata';\n\nexport type MarkdownContentConstructor<\n T extends Record<string, any> = {},\n Content = unknown,\n> = TypedNodeModel<NodeType.Markdown, Content, T>;\n\nexport type MarkdownContent<_Content = unknown> = MarkdownContentConstructor<{\n metadata?: Record<string, any>;\n}>;\n\nconst awaitContent = async (content: any) => {\n if (typeof content === 'string' || typeof content === 'object') {\n return content as any;\n }\n\n if (typeof content === 'function') {\n return content();\n }\n if (typeof content.then === 'function') {\n return await content;\n }\n};\n\n/**\n * Function intended to be used to build intlayer dictionaries.\n *\n * Allow to pick a content based on a quantity.\n *\n * Usage:\n *\n * ```ts\n * markdown('## Hello world!');\n * ```\n *\n */\nconst markdown = <Content = unknown>(content: Content): MarkdownContent => {\n const metadata = async () => {\n const awaitedContent = await awaitContent(content);\n\n const flatContent = getContent(awaitedContent, {\n dictionaryKey: '',\n keyPath: [],\n });\n\n if (typeof flatContent === 'string') {\n return getMarkdownMetadata(flatContent);\n }\n };\n\n return formatNodeType(NodeType.Markdown, content as string, {\n metadata,\n });\n};\n\nexport { markdown as md };\n"],"mappings":";;;;;;AAaA,MAAM,eAAe,OAAO,YAAiB;AAC3C,KAAI,OAAO,YAAY,YAAY,OAAO,YAAY,SACpD,QAAO;AAGT,KAAI,OAAO,YAAY,WACrB,QAAO,SAAS;AAElB,KAAI,OAAO,QAAQ,SAAS,WAC1B,QAAO,MAAM;;;;;;;;;;;;;;AAgBjB,MAAM,YAA+B,YAAsC;CACzE,MAAM,WAAW,YAAY;EAG3B,MAAM,cAAcA,qDAFG,MAAM,aAAa,QAAQ,EAEH;GAC7C,eAAe;GACf,SAAS,EAAE;GACZ,CAAC;AAEF,MAAI,OAAO,gBAAgB,SACzB,QAAOC,oEAAoB,YAAY;;AAI3C,6CAAsBC,0BAAS,UAAU,SAAmB,EAC1D,UACD,CAAC"}
@@ -1,6 +1,5 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  let __intlayer_types = require("@intlayer/types");
3
- __intlayer_types = require_rolldown_runtime.__toESM(__intlayer_types);
4
3
 
5
4
  //#region src/transpiler/nesting/nesting.ts
6
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"nesting.cjs","names":["NodeType"],"sources":["../../../../src/transpiler/nesting/nesting.ts"],"sourcesContent":["import type { DictionaryRegistryContent } from '@intlayer/types';\nimport {\n type DictionaryKeys,\n formatNodeType,\n NodeType,\n type TypedNodeModel,\n} from '@intlayer/types';\nimport type { DeepTransformContent } from '../../interpreter';\n\n/**\n * Recursively builds dot-notation strings for all valid paths in T.\n * Example:\n * type X = { a: { b: { c: string }}, d: number };\n * DotPath<X> = \"a\" | \"a.b\" | \"a.b.c\" | \"d\"\n */\nexport type DotPath<T> = T extends object\n ? {\n [K in keyof T & (string | number)]: T[K] extends object\n ? // Either just K, or K + '.' + deeper path\n `${K}` | `${K}.${DotPath<T[K]>}`\n : `${K}`;\n }[keyof T & (string | number)]\n : never;\n\ntype DeepReplace<T, From, To> = T extends From\n ? To\n : T extends object\n ? { [K in keyof T]: DeepReplace<T[K], From, To> }\n : T;\n\n/** Build all valid dot-notation strings for a dictionary entry. */\nexport type ValidDotPathsFor<K extends DictionaryKeys> = DotPath<\n DeepReplace<\n DeepTransformContent<DictionaryRegistryContent<K>>,\n // Replace ReactElement type with string\n {\n type: any;\n props: any;\n key: any;\n },\n string\n >\n>;\n\nexport type NestedContentState<K extends DictionaryKeys> = {\n dictionaryKey: K;\n\n /**\n * Path must match existing keys in DictionaryRegistryContent<K>.\n * Can be either:\n * - \"dot.dot.dot\" format\n */\n path?: ValidDotPathsFor<K>;\n};\n\nexport type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<\n NodeType.Nested,\n NestedContentState<K>\n>;\n\n/**\n * Function intended to be used to build intlayer dictionaries.\n *\n * Allow to extract the content of another dictionary and nest it in the current dictionary.\n *\n * Usage:\n *\n * ```ts\n * nest(\"dictionaryKey\");\n * nest(\"dictionaryKey\", \"path.to.content\");\n * ```\n *\n * The order of the keys will define the priority of the content.\n *\n */\nconst nesting = <K extends DictionaryKeys>(\n dictionaryKey: K,\n path?: ValidDotPathsFor<K>\n): NestedContent<K> =>\n formatNodeType(NodeType.Nested, {\n dictionaryKey,\n path,\n });\n\nexport { nesting as nest };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA2EA,MAAM,WACJ,eACA,8CAEeA,0BAAS,QAAQ;CAC9B;CACA;CACD,CAAC"}
1
+ {"version":3,"file":"nesting.cjs","names":["NodeType"],"sources":["../../../../src/transpiler/nesting/nesting.ts"],"sourcesContent":["import type { DictionaryRegistryContent } from '@intlayer/types';\nimport {\n type DictionaryKeys,\n formatNodeType,\n NodeType,\n type TypedNodeModel,\n} from '@intlayer/types';\nimport type { DeepTransformContent } from '../../interpreter';\n\n/**\n * Recursively builds dot-notation strings for all valid paths in T.\n * Example:\n * type X = { a: { b: { c: string }}, d: number };\n * DotPath<X> = \"a\" | \"a.b\" | \"a.b.c\" | \"d\"\n */\nexport type DotPath<T> = T extends object\n ? {\n [K in keyof T & (string | number)]: T[K] extends object\n ? // Either just K, or K + '.' + deeper path\n `${K}` | `${K}.${DotPath<T[K]>}`\n : `${K}`;\n }[keyof T & (string | number)]\n : never;\n\ntype DeepReplace<T, From, To> = T extends From\n ? To\n : T extends object\n ? { [K in keyof T]: DeepReplace<T[K], From, To> }\n : T;\n\n/** Build all valid dot-notation strings for a dictionary entry. */\nexport type ValidDotPathsFor<K extends DictionaryKeys> = DotPath<\n DeepReplace<\n DeepTransformContent<DictionaryRegistryContent<K>>,\n // Replace ReactElement type with string\n {\n type: any;\n props: any;\n key: any;\n },\n string\n >\n>;\n\nexport type NestedContentState<K extends DictionaryKeys> = {\n dictionaryKey: K;\n\n /**\n * Path must match existing keys in DictionaryRegistryContent<K>.\n * Can be either:\n * - \"dot.dot.dot\" format\n */\n path?: ValidDotPathsFor<K>;\n};\n\nexport type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<\n NodeType.Nested,\n NestedContentState<K>\n>;\n\n/**\n * Function intended to be used to build intlayer dictionaries.\n *\n * Allow to extract the content of another dictionary and nest it in the current dictionary.\n *\n * Usage:\n *\n * ```ts\n * nest(\"dictionaryKey\");\n * nest(\"dictionaryKey\", \"path.to.content\");\n * ```\n *\n * The order of the keys will define the priority of the content.\n *\n */\nconst nesting = <K extends DictionaryKeys>(\n dictionaryKey: K,\n path?: ValidDotPathsFor<K>\n): NestedContent<K> =>\n formatNodeType(NodeType.Nested, {\n dictionaryKey,\n path,\n });\n\nexport { nesting as nest };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA2EA,MAAM,WACJ,eACA,8CAEeA,0BAAS,QAAQ;CAC9B;CACA;CACD,CAAC"}
@@ -1,6 +1,5 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  let __intlayer_types = require("@intlayer/types");
3
- __intlayer_types = require_rolldown_runtime.__toESM(__intlayer_types);
4
3
 
5
4
  //#region src/transpiler/translation/translation.ts
6
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"translation.cjs","names":["NodeType"],"sources":["../../../../src/transpiler/translation/translation.ts"],"sourcesContent":["import {\n formatNodeType,\n NodeType,\n type StrictModeLocaleMap,\n type TypedNodeModel,\n} from '@intlayer/types';\n\nexport type TranslationContent<\n Content = unknown,\n RecordContent extends\n StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>,\n> = TypedNodeModel<NodeType.Translation, RecordContent>;\n\n/**\n *\n * Function intended to be used to build intlayer dictionaries.\n *\n * Get the content of a translation based on the locale.\n *\n * Usage:\n *\n * ```ts\n * translation<string>({\n * \"en\": \"Hello\",\n * \"fr\": \"Bonjour\",\n * // ... any other available locale\n * })\n * ```\n *\n * Using TypeScript:\n * - this function require each locale to be defined if defined in the project configuration.\n * - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.\n */\nconst translation = <\n Content = unknown,\n ContentRecord extends\n StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>,\n>(\n content: ContentRecord\n) =>\n formatNodeType(NodeType.Translation, content) satisfies TranslationContent<\n Content,\n ContentRecord\n >;\n\nexport { translation as t };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,MAAM,eAKJ,iDAEeA,0BAAS,aAAa,QAAQ"}
1
+ {"version":3,"file":"translation.cjs","names":["NodeType"],"sources":["../../../../src/transpiler/translation/translation.ts"],"sourcesContent":["import {\n formatNodeType,\n NodeType,\n type StrictModeLocaleMap,\n type TypedNodeModel,\n} from '@intlayer/types';\n\nexport type TranslationContent<\n Content = unknown,\n RecordContent extends\n StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>,\n> = TypedNodeModel<NodeType.Translation, RecordContent>;\n\n/**\n *\n * Function intended to be used to build intlayer dictionaries.\n *\n * Get the content of a translation based on the locale.\n *\n * Usage:\n *\n * ```ts\n * translation<string>({\n * \"en\": \"Hello\",\n * \"fr\": \"Bonjour\",\n * // ... any other available locale\n * })\n * ```\n *\n * Using TypeScript:\n * - this function require each locale to be defined if defined in the project configuration.\n * - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.\n */\nconst translation = <\n Content = unknown,\n ContentRecord extends\n StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>,\n>(\n content: ContentRecord\n) =>\n formatNodeType(NodeType.Translation, content) satisfies TranslationContent<\n Content,\n ContentRecord\n >;\n\nexport { translation as t };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiCA,MAAM,eAKJ,iDAEeA,0BAAS,aAAa,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  let __intlayer_types = require("@intlayer/types");
3
- __intlayer_types = require_rolldown_runtime.__toESM(__intlayer_types);
4
3
 
5
4
  //#region src/utils/intl.ts
6
5
  const cacheKey = (locales, options) => JSON.stringify([locales, options]);
@@ -1 +1 @@
1
- {"version":3,"file":"intl.cjs","names":["Locales","instance: InstanceType<T> | undefined"],"sources":["../../../src/utils/intl.ts"],"sourcesContent":["// Cached Intl helper – drop‑in replacement for the global `Intl` object.\n// ‑‑‑\n// • Uses a `Proxy` to lazily wrap every *constructor* hanging off `Intl` (NumberFormat, DateTimeFormat, …).\n// • Each wrapped constructor keeps an in‑memory cache keyed by `[locales, options]` so that identical requests\n// reuse the same heavy instance instead of reparsing CLDR data every time.\n// • A polyfill warning for `Intl.DisplayNames` is emitted only once and only in dev.\n// • The public API is fully type‑safe and mirrors the native `Intl` surface exactly –\n// you can treat `CachedIntl` just like the built‑in `Intl`.\n//\n// Usage examples:\n// ---------------\n// import { CachedIntl } from \"./cached-intl\";\n//\n// const nf = CachedIntl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n// console.log(nf.format(1234));\n//\n// const dn = CachedIntl.DisplayNames([\"fr\"], { type: \"language\" });\n// console.log(dn.of(\"en\")); // → \"anglais\"\n//\n// You can also spin up an isolated instance with its own caches (handy in test suites):\n// const TestIntl = createCachedIntl();\n//\n// ---------------------------------------------------------------------\n\nimport { Locales, type LocalesValues } from '@intlayer/types';\n\n// Helper type that picks just the constructor members off `typeof Intl`.\n// The \"capital‑letter\" heuristic is 100 % accurate today and keeps the\n// mapping short‑lived, so we don't have to manually list every constructor.\ntype IntlConstructors = {\n [K in keyof typeof Intl as (typeof Intl)[K] extends new (\n ...args: any\n ) => any\n ? K\n : never]: (typeof Intl)[K];\n};\n\n// Type wrapper to replace locale arguments with LocalesValues\ntype ReplaceLocaleWithLocalesValues<T> = T extends new (\n locales: any,\n options?: infer Options\n) => infer Instance\n ? new (\n locales?: LocalesValues,\n options?: Options\n ) => Instance\n : T extends new (\n locales: any\n ) => infer Instance\n ? new (\n locales?: LocalesValues\n ) => Instance\n : T;\n\n// Wrapped Intl type with LocalesValues\ntype WrappedIntl = {\n [K in keyof typeof Intl]: K extends keyof IntlConstructors\n ? ReplaceLocaleWithLocalesValues<(typeof Intl)[K]>\n : (typeof Intl)[K];\n};\n\n// Generic cache key – JSON.stringify is fine because locale strings are short\n// and option objects are small and deterministic.\nconst cacheKey = (locales: LocalesValues, options: unknown) =>\n JSON.stringify([locales, options]);\n\n// Generic wrapper for any `new Intl.*()` constructor.\n// Returns a constructable function (usable with or without `new`) that\n// pulls instances from a Map cache when possible.\nconst createCachedConstructor = <T extends new (...args: any[]) => any>(\n Ctor: T\n) => {\n const cache = new Map<string, InstanceType<T>>();\n\n function Wrapped(locales?: LocalesValues, options?: any) {\n // Special case – guard older runtimes missing DisplayNames.\n if (\n Ctor.name === 'DisplayNames' &&\n typeof (Intl as any)?.DisplayNames !== 'function'\n ) {\n if (process.env.NODE_ENV === 'development') {\n console.warn(\n [\n `// Intl.DisplayNames is not supported; falling back to raw locale (${locales}). `,\n `// Consider adding a polyfill as https://formatjs.io/docs/polyfills/intl-displaynames/`,\n ``,\n `import 'intl';`,\n `import '@formatjs/intl-getcanonicallocales/polyfill';`,\n `import '@formatjs/intl-locale/polyfill';`,\n `import '@formatjs/intl-pluralrules/polyfill';`,\n `import '@formatjs/intl-displaynames/polyfill';`,\n `import '@formatjs/intl-listformat/polyfill';`,\n `import '@formatjs/intl-numberformat/polyfill';`,\n `import '@formatjs/intl-relativetimeformat/polyfill';`,\n `import '@formatjs/intl-datetimeformat/polyfill';`,\n ``,\n `// Optionally add locale data`,\n `import '@formatjs/intl-pluralrules/locale-data/fr';`,\n `import '@formatjs/intl-numberformat/locale-data/fr';`,\n `import '@formatjs/intl-datetimeformat/locale-data/fr';`,\n ].join('\\n')\n );\n }\n return locales as any;\n }\n\n const key = cacheKey(locales ?? Locales.ENGLISH, options);\n let instance: InstanceType<T> | undefined = cache.get(key);\n\n if (!instance) {\n instance = new Ctor(locales as never, options as never);\n cache.set(key, instance as InstanceType<T>);\n }\n\n return instance as InstanceType<T>;\n }\n\n // Ensure it behaves like a constructor when used with `new`.\n (Wrapped as any).prototype = (Ctor as any).prototype;\n\n return Wrapped as unknown as ReplaceLocaleWithLocalesValues<T>;\n};\n\n// Factory that turns the global `Intl` into a cached clone.\nexport const createCachedIntl = (): WrappedIntl =>\n new Proxy(Intl as IntlConstructors, {\n get: (target, prop, receiver) => {\n const value = Reflect.get(target, prop, receiver);\n\n // Wrap *only* constructor functions (safest heuristic: they start with a capital letter).\n return typeof value === 'function' && /^[A-Z]/.test(String(prop))\n ? createCachedConstructor(value)\n : value;\n },\n }) as unknown as WrappedIntl;\n\n// Singleton – import this in application code if you just want shared caches.\nexport const CachedIntl = createCachedIntl();\n\n// new CachedIntl.DisplayNames(Locales.FRENCH, { type: 'language' });\n// new CachedIntl.DisplayNames('fr', { type: 'language' });\n// new CachedIntl.DateTimeFormat('fr', {\n// year: 'numeric',\n// month: 'long',\n// day: 'numeric',\n// });\n// new CachedIntl.NumberFormat('fr', {\n// style: 'currency',\n// currency: 'EUR',\n// });\n// new CachedIntl.Collator('fr', { sensitivity: 'base' });\n// new CachedIntl.PluralRules('fr');\n// new CachedIntl.RelativeTimeFormat('fr', { numeric: 'auto' });\n// new CachedIntl.ListFormat('fr', { type: 'conjunction' });\n\nexport { CachedIntl as Intl };\n"],"mappings":";;;;;AA+DA,MAAM,YAAY,SAAwB,YACxC,KAAK,UAAU,CAAC,SAAS,QAAQ,CAAC;AAKpC,MAAM,2BACJ,SACG;CACH,MAAM,wBAAQ,IAAI,KAA8B;CAEhD,SAAS,QAAQ,SAAyB,SAAe;AAEvD,MACE,KAAK,SAAS,kBACd,OAAQ,MAAc,iBAAiB,YACvC;AACA,OAAI,QAAQ,IAAI,aAAa,cAC3B,SAAQ,KACN;IACE,sEAAsE,QAAQ;IAC9E;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACD,CAAC,KAAK,KAAK,CACb;AAEH,UAAO;;EAGT,MAAM,MAAM,SAAS,WAAWA,yBAAQ,SAAS,QAAQ;EACzD,IAAIC,WAAwC,MAAM,IAAI,IAAI;AAE1D,MAAI,CAAC,UAAU;AACb,cAAW,IAAI,KAAK,SAAkB,QAAiB;AACvD,SAAM,IAAI,KAAK,SAA4B;;AAG7C,SAAO;;AAIT,CAAC,QAAgB,YAAa,KAAa;AAE3C,QAAO;;AAIT,MAAa,yBACX,IAAI,MAAM,MAA0B,EAClC,MAAM,QAAQ,MAAM,aAAa;CAC/B,MAAM,QAAQ,QAAQ,IAAI,QAAQ,MAAM,SAAS;AAGjD,QAAO,OAAO,UAAU,cAAc,SAAS,KAAK,OAAO,KAAK,CAAC,GAC7D,wBAAwB,MAAM,GAC9B;GAEP,CAAC;AAGJ,MAAa,aAAa,kBAAkB"}
1
+ {"version":3,"file":"intl.cjs","names":["Locales","instance: InstanceType<T> | undefined"],"sources":["../../../src/utils/intl.ts"],"sourcesContent":["// Cached Intl helper – drop‑in replacement for the global `Intl` object.\n// ‑‑‑\n// • Uses a `Proxy` to lazily wrap every *constructor* hanging off `Intl` (NumberFormat, DateTimeFormat, …).\n// • Each wrapped constructor keeps an in‑memory cache keyed by `[locales, options]` so that identical requests\n// reuse the same heavy instance instead of reparsing CLDR data every time.\n// • A polyfill warning for `Intl.DisplayNames` is emitted only once and only in dev.\n// • The public API is fully type‑safe and mirrors the native `Intl` surface exactly –\n// you can treat `CachedIntl` just like the built‑in `Intl`.\n//\n// Usage examples:\n// ---------------\n// import { CachedIntl } from \"./cached-intl\";\n//\n// const nf = CachedIntl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n// console.log(nf.format(1234));\n//\n// const dn = CachedIntl.DisplayNames([\"fr\"], { type: \"language\" });\n// console.log(dn.of(\"en\")); // → \"anglais\"\n//\n// You can also spin up an isolated instance with its own caches (handy in test suites):\n// const TestIntl = createCachedIntl();\n//\n// ---------------------------------------------------------------------\n\nimport { Locales, type LocalesValues } from '@intlayer/types';\n\n// Helper type that picks just the constructor members off `typeof Intl`.\n// The \"capital‑letter\" heuristic is 100 % accurate today and keeps the\n// mapping short‑lived, so we don't have to manually list every constructor.\ntype IntlConstructors = {\n [K in keyof typeof Intl as (typeof Intl)[K] extends new (\n ...args: any\n ) => any\n ? K\n : never]: (typeof Intl)[K];\n};\n\n// Type wrapper to replace locale arguments with LocalesValues\ntype ReplaceLocaleWithLocalesValues<T> = T extends new (\n locales: any,\n options?: infer Options\n) => infer Instance\n ? new (\n locales?: LocalesValues,\n options?: Options\n ) => Instance\n : T extends new (\n locales: any\n ) => infer Instance\n ? new (\n locales?: LocalesValues\n ) => Instance\n : T;\n\n// Wrapped Intl type with LocalesValues\ntype WrappedIntl = {\n [K in keyof typeof Intl]: K extends keyof IntlConstructors\n ? ReplaceLocaleWithLocalesValues<(typeof Intl)[K]>\n : (typeof Intl)[K];\n};\n\n// Generic cache key – JSON.stringify is fine because locale strings are short\n// and option objects are small and deterministic.\nconst cacheKey = (locales: LocalesValues, options: unknown) =>\n JSON.stringify([locales, options]);\n\n// Generic wrapper for any `new Intl.*()` constructor.\n// Returns a constructable function (usable with or without `new`) that\n// pulls instances from a Map cache when possible.\nconst createCachedConstructor = <T extends new (...args: any[]) => any>(\n Ctor: T\n) => {\n const cache = new Map<string, InstanceType<T>>();\n\n function Wrapped(locales?: LocalesValues, options?: any) {\n // Special case – guard older runtimes missing DisplayNames.\n if (\n Ctor.name === 'DisplayNames' &&\n typeof (Intl as any)?.DisplayNames !== 'function'\n ) {\n if (process.env.NODE_ENV === 'development') {\n console.warn(\n [\n `// Intl.DisplayNames is not supported; falling back to raw locale (${locales}). `,\n `// Consider adding a polyfill as https://formatjs.io/docs/polyfills/intl-displaynames/`,\n ``,\n `import 'intl';`,\n `import '@formatjs/intl-getcanonicallocales/polyfill';`,\n `import '@formatjs/intl-locale/polyfill';`,\n `import '@formatjs/intl-pluralrules/polyfill';`,\n `import '@formatjs/intl-displaynames/polyfill';`,\n `import '@formatjs/intl-listformat/polyfill';`,\n `import '@formatjs/intl-numberformat/polyfill';`,\n `import '@formatjs/intl-relativetimeformat/polyfill';`,\n `import '@formatjs/intl-datetimeformat/polyfill';`,\n ``,\n `// Optionally add locale data`,\n `import '@formatjs/intl-pluralrules/locale-data/fr';`,\n `import '@formatjs/intl-numberformat/locale-data/fr';`,\n `import '@formatjs/intl-datetimeformat/locale-data/fr';`,\n ].join('\\n')\n );\n }\n return locales as any;\n }\n\n const key = cacheKey(locales ?? Locales.ENGLISH, options);\n let instance: InstanceType<T> | undefined = cache.get(key);\n\n if (!instance) {\n instance = new Ctor(locales as never, options as never);\n cache.set(key, instance as InstanceType<T>);\n }\n\n return instance as InstanceType<T>;\n }\n\n // Ensure it behaves like a constructor when used with `new`.\n (Wrapped as any).prototype = (Ctor as any).prototype;\n\n return Wrapped as unknown as ReplaceLocaleWithLocalesValues<T>;\n};\n\n// Factory that turns the global `Intl` into a cached clone.\nexport const createCachedIntl = (): WrappedIntl =>\n new Proxy(Intl as IntlConstructors, {\n get: (target, prop, receiver) => {\n const value = Reflect.get(target, prop, receiver);\n\n // Wrap *only* constructor functions (safest heuristic: they start with a capital letter).\n return typeof value === 'function' && /^[A-Z]/.test(String(prop))\n ? createCachedConstructor(value)\n : value;\n },\n }) as unknown as WrappedIntl;\n\n// Singleton – import this in application code if you just want shared caches.\nexport const CachedIntl = createCachedIntl();\n\n// new CachedIntl.DisplayNames(Locales.FRENCH, { type: 'language' });\n// new CachedIntl.DisplayNames('fr', { type: 'language' });\n// new CachedIntl.DateTimeFormat('fr', {\n// year: 'numeric',\n// month: 'long',\n// day: 'numeric',\n// });\n// new CachedIntl.NumberFormat('fr', {\n// style: 'currency',\n// currency: 'EUR',\n// });\n// new CachedIntl.Collator('fr', { sensitivity: 'base' });\n// new CachedIntl.PluralRules('fr');\n// new CachedIntl.RelativeTimeFormat('fr', { numeric: 'auto' });\n// new CachedIntl.ListFormat('fr', { type: 'conjunction' });\n\nexport { CachedIntl as Intl };\n"],"mappings":";;;;AA+DA,MAAM,YAAY,SAAwB,YACxC,KAAK,UAAU,CAAC,SAAS,QAAQ,CAAC;AAKpC,MAAM,2BACJ,SACG;CACH,MAAM,wBAAQ,IAAI,KAA8B;CAEhD,SAAS,QAAQ,SAAyB,SAAe;AAEvD,MACE,KAAK,SAAS,kBACd,OAAQ,MAAc,iBAAiB,YACvC;AACA,OAAI,QAAQ,IAAI,aAAa,cAC3B,SAAQ,KACN;IACE,sEAAsE,QAAQ;IAC9E;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACD,CAAC,KAAK,KAAK,CACb;AAEH,UAAO;;EAGT,MAAM,MAAM,SAAS,WAAWA,yBAAQ,SAAS,QAAQ;EACzD,IAAIC,WAAwC,MAAM,IAAI,IAAI;AAE1D,MAAI,CAAC,UAAU;AACb,cAAW,IAAI,KAAK,SAAkB,QAAiB;AACvD,SAAM,IAAI,KAAK,SAA4B;;AAG7C,SAAO;;AAIT,CAAC,QAAgB,YAAa,KAAa;AAE3C,QAAO;;AAIT,MAAa,yBACX,IAAI,MAAM,MAA0B,EAClC,MAAM,QAAQ,MAAM,aAAa;CAC/B,MAAM,QAAQ,QAAQ,IAAI,QAAQ,MAAM,SAAS;AAGjD,QAAO,OAAO,UAAU,cAAc,SAAS,KAAK,OAAO,KAAK,CAAC,GAC7D,wBAAwB,MAAM,GAC9B;GAEP,CAAC;AAGJ,MAAa,aAAa,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"getLocalizedUrl.mjs","names":[],"sources":["../../../src/localization/getLocalizedUrl.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { LocalesValues } from '@intlayer/types';\n\nimport { getMultilingualUrls } from './getMultilingualUrls';\n\n/**\n * Generate URL by prefixing the given URL with the referenced locale or adding search parameters\n * based on the routing mode. Handles both absolute and relative URLs appropriately.\n *\n * This function gets the locales, default locale, and routing mode from the configuration if not provided.\n *\n * Example:\n *\n * ```ts\n * // prefix-no-default mode\n * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'prefix-no-default');\n * // Returns '/fr/about' for the French locale\n * // Returns '/about' for the English locale (default)\n *\n * // prefix-all mode\n * getLocalizedUrl('/about', 'en', ['en', 'fr'], 'en', 'prefix-all');\n * // Returns '/en/about' for the English locale\n * // Returns '/fr/about' for the French locale\n *\n * // search-params mode\n * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'search-params');\n * // Returns '/about?locale=fr' for the French locale\n *\n * // no-prefix mode\n * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'no-prefix');\n * // Returns '/about' for any locale\n * ```\n *\n * @param url - The original URL string to be processed.\n * @param currentLocale - The current locale.\n * @param locales - Optional array of supported locales. Defaults to configured locales.\n * @param defaultLocale - The default locale. Defaults to configured default locale.\n * @param mode - URL routing mode for locale handling. Defaults to configured mode.\n * @returns The localized URL for the current locale.\n */\nexport const getLocalizedUrl = (\n url: string,\n currentLocale: LocalesValues,\n locales: LocalesValues[] | undefined = configuration?.internationalization\n ?.locales,\n defaultLocale: LocalesValues | undefined = configuration?.internationalization\n ?.defaultLocale,\n mode:\n | 'prefix-no-default'\n | 'prefix-all'\n | 'no-prefix'\n | 'search-params'\n | undefined = configuration?.routing?.mode\n): string => {\n // Get all multilingual URLs\n const urlWithoutLocale = getMultilingualUrls(\n url,\n locales,\n defaultLocale,\n mode\n );\n\n return (\n urlWithoutLocale[\n currentLocale as unknown as keyof typeof urlWithoutLocale\n ] ?? url\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,mBACX,KACA,eACA,UAAuC,eAAe,sBAClD,SACJ,gBAA2C,eAAe,sBACtD,eACJ,OAKgB,eAAe,SAAS,SAC7B;AASX,QAPyB,oBACvB,KACA,SACA,eACA,KACD,CAIG,kBACG"}
1
+ {"version":3,"file":"getLocalizedUrl.mjs","names":[],"sources":["../../../src/localization/getLocalizedUrl.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { LocalesValues } from '@intlayer/types';\nimport { getMultilingualUrls } from './getMultilingualUrls';\n\n/**\n * Generate URL by prefixing the given URL with the referenced locale or adding search parameters\n * based on the routing mode. Handles both absolute and relative URLs appropriately.\n *\n * This function gets the locales, default locale, and routing mode from the configuration if not provided.\n *\n * Example:\n *\n * ```ts\n * // prefix-no-default mode\n * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'prefix-no-default');\n * // Returns '/fr/about' for the French locale\n * // Returns '/about' for the English locale (default)\n *\n * // prefix-all mode\n * getLocalizedUrl('/about', 'en', ['en', 'fr'], 'en', 'prefix-all');\n * // Returns '/en/about' for the English locale\n * // Returns '/fr/about' for the French locale\n *\n * // search-params mode\n * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'search-params');\n * // Returns '/about?locale=fr' for the French locale\n *\n * // no-prefix mode\n * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'no-prefix');\n * // Returns '/about' for any locale\n * ```\n *\n * @param url - The original URL string to be processed.\n * @param currentLocale - The current locale.\n * @param locales - Optional array of supported locales. Defaults to configured locales.\n * @param defaultLocale - The default locale. Defaults to configured default locale.\n * @param mode - URL routing mode for locale handling. Defaults to configured mode.\n * @returns The localized URL for the current locale.\n */\nexport const getLocalizedUrl = (\n url: string,\n currentLocale: LocalesValues,\n locales: LocalesValues[] | undefined = configuration?.internationalization\n ?.locales,\n defaultLocale: LocalesValues | undefined = configuration?.internationalization\n ?.defaultLocale,\n mode:\n | 'prefix-no-default'\n | 'prefix-all'\n | 'no-prefix'\n | 'search-params'\n | undefined = configuration?.routing?.mode\n): string => {\n // Get all multilingual URLs\n const urlWithoutLocale = getMultilingualUrls(\n url,\n locales,\n defaultLocale,\n mode\n );\n\n return (\n urlWithoutLocale[\n currentLocale as unknown as keyof typeof urlWithoutLocale\n ] ?? url\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,mBACX,KACA,eACA,UAAuC,eAAe,sBAClD,SACJ,gBAA2C,eAAe,sBACtD,eACJ,OAKgB,eAAe,SAAS,SAC7B;AASX,QAPyB,oBACvB,KACA,SACA,eACA,KACD,CAIG,kBACG"}
@@ -1,5 +1,6 @@
1
1
  import { NodeProps, Plugins } from "../interpreter/getContent/plugins.js";
2
- import * as _intlayer_types0 from "@intlayer/types";
2
+ import "../interpreter/index.js";
3
+ import * as _intlayer_types3 from "@intlayer/types";
3
4
  import { ContentNode, DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
4
5
 
5
6
  //#region src/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts
@@ -25,8 +26,8 @@ declare const getFilterMissingTranslationsDictionary: (dictionary: Dictionary, l
25
26
  $schema?: string;
26
27
  id?: string;
27
28
  projectIds?: string[];
28
- localId?: _intlayer_types0.LocalDictionaryId;
29
- localIds?: _intlayer_types0.LocalDictionaryId[];
29
+ localId?: _intlayer_types3.LocalDictionaryId;
30
+ localIds?: _intlayer_types3.LocalDictionaryId[];
30
31
  key: string;
31
32
  title?: string;
32
33
  description?: string;
@@ -35,7 +36,7 @@ declare const getFilterMissingTranslationsDictionary: (dictionary: Dictionary, l
35
36
  filePath?: string;
36
37
  tags?: string[];
37
38
  locale?: LocalesValues;
38
- fill?: _intlayer_types0.Fill;
39
+ fill?: _intlayer_types3.Fill;
39
40
  filled?: true;
40
41
  priority?: number;
41
42
  live?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"sourcesContent":[],"mappings":";;;;;;cAmMa,qDACI,kBACd;AAFH;AA8LA;;;;;;;;AA0BA;;;;;cA1Ba,gDACD,uBACA,gBAAgB,uBAEpB,kBACS,cACJ;cAoBA,qDACC,2BACG;;;;;YAAa,gBAAA,CAAA"}
1
+ {"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmMa,qDACI,kBACd;;AAFH;AA8LA;;;;;;;;AA0BA;;;;cA1Ba,gDACD,uBACA,gBAAgB,uBAEpB,kBACS,cACJ;cAoBA,qDACC,2BACG;;;;;YAAa,gBAAA,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { DeepTransformContent, NodeProps, Plugins } from "../interpreter/getContent/plugins.js";
2
+ import "../interpreter/index.js";
2
3
  import * as _intlayer_types6 from "@intlayer/types";
3
4
  import { ContentNode, DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
4
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"sourcesContent":[],"mappings":";;;;;;cAoCa,uCACH,0BACG,kBACV;AAHH;;;;;AAuFA;AACY,cADC,gCACD,EAAA,CAAA,UAAA,WAAA,EAAA,UACA,aADA,GACgB,eADhB,CAAA,CAAA,IAAA,EAGJ,CAHI,EAAA,MAAA,EAIF,CAJE,EAAA,SAAA,EAKC,SALD,EAAA,QAAA,CAAA,EAMC,aAND,EAAA,GAgBJ,oBAhBI,CAgBiB,CAhBjB,CAAA;AACA,cAkBC,mCAlBD,EAAA,CAAA,UAAA,EAmBE,UAnBF,EAAA,MAAA,CAAA,EAoBF,aApBE,EAAA,QAAA,CAAA,EAsBC,aAtBD,EAAA,GAAA;EAAgB,OAAA,EAAA,GAAA;EAEpB,OAAA,CAAA,EAAA,MAAA;EACE,EAAA,CAAA,EAAA,MAAA;EACG,UAAA,CAAA,EAAA,MAAA,EAAA;EACA,OAAA,CAAA,EAiBa,gBAAA,CAAA,iBAjBb;EAUgB,QAAA,CAAA,sCAAA;EAArB,GAAA,EAAA,MAAA;EAAoB,KAAA,CAAA,EAAA,MAAA;EAGf,WAAA,CAAA,EAAA,MAAA;EACC,QAAA,CAAA,EAAA,MAAA,EAAA;EACJ,OAAA,CAAA,EAAA,MAAA;EAEG,QAAA,CAAA,EAAA,MAAA;EAAa,IAAA,CAAA,EAAA,MAAA,EAAA"}
1
+ {"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"sourcesContent":[],"mappings":";;;;;;;cAoCa,uCACH,0BACG,kBACV;;AAHH;;;;;AAuFa,cAAA,gCAkBZ,EAAA,CAAA,UAjBW,WAiBX,EAAA,UAhBW,aAgBX,GAhB2B,eAgB3B,CAAA,CAAA,IAAA,EAdO,CAcP,EAAA,MAAA,EAbS,CAaT,EAAA,SAAA,EAZY,SAYZ,EAAA,QAAA,CAAA,EAXY,aAWZ,EAAA,GADO,oBACP,CAD4B,CAC5B,CAAA;AAjBW,cAmBC,mCAnBD,EAAA,CAAA,UAAA,EAoBE,UApBF,EAAA,MAAA,CAAA,EAqBF,aArBE,EAAA,QAAA,CAAA,EAuBC,aAvBD,EAAA,GAAA;EACA,OAAA,EAAA,GAAA;EAAgB,OAAA,CAAA,EAAA,MAAA;EAEpB,EAAA,CAAA,EAAA,MAAA;EACE,UAAA,CAAA,EAAA,MAAA,EAAA;EACG,OAAA,CAAA,EAkBa,gBAAA,CAAA,iBAlBb;EACA,QAAA,CAAA,sCAAA;EAUgB,GAAA,EAAA,MAAA;EAArB,KAAA,CAAA,EAAA,MAAA;EAAoB,WAAA,CAAA,EAAA,MAAA;EAGf,QAAA,CAAA,EAAA,MAAA,EAAA;EACC,OAAA,CAAA,EAAA,MAAA;EACJ,QAAA,CAAA,EAAA,MAAA;EAEG,IAAA,CAAA,EAAA,MAAA,EAAA;EAAa,MAAA,CAAA,eAAA"}
@@ -1,5 +1,6 @@
1
1
  import { NodeProps } from "../interpreter/getContent/plugins.js";
2
- import * as _intlayer_types2 from "@intlayer/types";
2
+ import "../interpreter/index.js";
3
+ import * as _intlayer_types0 from "@intlayer/types";
3
4
  import { ContentNode, Dictionary, LocalesValues } from "@intlayer/types";
4
5
 
5
6
  //#region src/deepTransformPlugins/getFilteredLocalesContent.d.ts
@@ -9,8 +10,8 @@ declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: Loc
9
10
  $schema?: string;
10
11
  id?: string;
11
12
  projectIds?: string[];
12
- localId?: _intlayer_types2.LocalDictionaryId;
13
- localIds?: _intlayer_types2.LocalDictionaryId[];
13
+ localId?: _intlayer_types0.LocalDictionaryId;
14
+ localIds?: _intlayer_types0.LocalDictionaryId[];
14
15
  key: string;
15
16
  title?: string;
16
17
  description?: string;
@@ -19,7 +20,7 @@ declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: Loc
19
20
  filePath?: string;
20
21
  tags?: string[];
21
22
  locale?: LocalesValues;
22
- fill?: _intlayer_types2.Fill;
23
+ fill?: _intlayer_types0.Fill;
23
24
  filled?: true;
24
25
  priority?: number;
25
26
  live?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"sourcesContent":[],"mappings":";;;;;cAsCa,kCACL,sBACG,gBAAgB,4BACd;cAwBA,2CACC,oBACJ,gBAAgB;;EA7Bb,OAAA,CAAA,EAAA,MAAA;EACL,EAAA,CAAA,EAAA,MAAA;EACG,UAAA,CAAA,EAAA,MAAA,EAAA;EAAgB,OAAA,CAAA,EA2BY,gBAAA,CAAA,iBA3BZ;EACd,QAAA,CAAA,sCAAA;EAAS,GAAA,EAAA,MAAA;EAwBT,KAAA,CAAA,EAAA,MAAA;EACC,WAAA,CAAA,EAAA,MAAA;EACJ,QAAA,CAAA,EAAA,MAAA,EAAA;EAAgB,OAAA,CAAA,EAAA,MAAA;EAAa,QAAA,CAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"sourcesContent":[],"mappings":";;;;;;cAsCa,kCACL,sBACG,gBAAgB,4BACd;cAwBA,2CACC,oBACJ,gBAAgB;;;EA7Bb,EAAA,CAAA,EAAA,MAAA;EACL,UAAA,CAAA,EAAA,MAAA,EAAA;EACG,OAAA,CAAA,EA2B4B,gBAAA,CAAA,iBA3B5B;EAAgB,QAAA,CAAA,sCAAA;EACd,GAAA,EAAA,MAAA;EAAS,KAAA,CAAA,EAAA,MAAA;EAwBT,WAAA,CAAA,EAAA,MAAA;EACC,QAAA,CAAA,EAAA,MAAA,EAAA;EACJ,OAAA,CAAA,EAAA,MAAA;EAAgB,QAAA,CAAA,EAAA,MAAA;EAAa,IAAA,CAAA,EAAA,MAAA,EAAA"}
@@ -1,4 +1,5 @@
1
1
  import { DeepTransformContent, NodeProps } from "../interpreter/getContent/plugins.js";
2
+ import "../interpreter/index.js";
2
3
  import { ContentNode, DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
3
4
 
4
5
  //#region src/deepTransformPlugins/getLocalizedContent.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"getLocalizedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getLocalizedContent.ts"],"sourcesContent":[],"mappings":";;;;;;;AAsBA;;;;;;AAMa,cANA,mBAMA,EAAA,CAAA,UALD,WAKC,EAAA,UAJD,aAIC,GAJe,eAIf,CAAA,CAAA,IAAA,EAFL,CAEK,EAAA,MAAA,EADH,CACG,EAAA,SAAA,EAAA,SAAA,EAAA,QAAA,CAAA,EACA,aADA,EAAA,GAWL,oBAXK,CAWgB,CAXhB,CAAA;AACA,cAaA,sBAbA,EAAA,CAAA,UAcD,UAdC,EAAA,UAeD,aAfC,CAAA,CAAA,UAAA,EAiBC,CAjBD,EAAA,MAAA,EAkBH,CAlBG,EAAA,QAAA,CAAA,EAmBA,aAnBA,EAAA,GAoBV,UApBU"}
1
+ {"version":3,"file":"getLocalizedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getLocalizedContent.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAsBA;;;;;AAKU,cALG,mBAKH,EAAA,CAAA,UAJE,WAIF,EAAA,UAHE,aAGF,GAHkB,eAGlB,CAAA,CAAA,IAAA,EADF,CACE,EAAA,MAAA,EAAA,CAAA,EAAA,SAAA,EACG,SADH,EAAA,QAAA,CAAA,EAEG,aAFH,EAAA,GAYF,oBAZE,CAYmB,CAZnB,CAAA;AACG,cAcA,sBAdA,EAAA,CAAA,UAeD,UAfC,EAAA,UAgBD,aAhBC,CAAA,CAAA,UAAA,EAkBC,CAlBD,EAAA,MAAA,EAmBH,CAnBG,EAAA,QAAA,CAAA,EAoBA,aApBA,EAAA,GAqBV,UArBU"}
@@ -1,4 +1,5 @@
1
1
  import { Plugins } from "../interpreter/getContent/plugins.js";
2
+ import "../interpreter/index.js";
2
3
  import { Dictionary } from "@intlayer/types";
3
4
 
4
5
  //#region src/deepTransformPlugins/getMaskContent.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"getMaskContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMaskContent.ts"],"sourcesContent":[],"mappings":";;;;;cAYa,iBAAiB;AAAjB,cAMA,cANiB,EAAA,CAAA,MAI7B,EAEsC,UAFtC,EAAA,GAAA,GAAA"}
1
+ {"version":3,"file":"getMaskContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMaskContent.ts"],"sourcesContent":[],"mappings":";;;;;;cAYa,iBAAiB;cAMjB,yBAA0B"}
@@ -1,4 +1,5 @@
1
1
  import { NodeProps, Plugins } from "../interpreter/getContent/plugins.js";
2
+ import "../interpreter/index.js";
2
3
  import { ContentNode, Dictionary, Locale, LocalesValues } from "@intlayer/types";
3
4
 
4
5
  //#region src/deepTransformPlugins/getMissingLocalesContent.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"getMissingLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMissingLocalesContent.ts"],"sourcesContent":[],"mappings":";;;;;AAaa,cAAA,yBA+BX,EAAA,CAAA,OAAA,EA9BS,MA8BT,EAAA,EAAA,eAAA,EAAA,CAAA,MAAA,EA7B0B,MA6B1B,EAAA,GAAA,IAAA,EAAA,GA5BC,OA4BD;;;;;AAQF;;AACQ,cADK,wBACL,EAAA,CAAA,UAD2C,WAC3C,CAAA,CAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EACG,aADH,EAAA,EAAA,SAAA,EAEK,SAFL,EAAA,GAGL,MAHK,EAAA;AACG,cAoBE,sCApBF,EAAA,CAAA,UAAA,EAqBG,UArBH,EAAA,OAAA,CAAA,EAsBA,aAtBA,EAAA,EAAA,GAsB8D,MAtB9D,EAAA"}
1
+ {"version":3,"file":"getMissingLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMissingLocalesContent.ts"],"sourcesContent":[],"mappings":";;;;;;cAaa,qCACF,oCACiB,oBACzB;AAHH;;;;;AAuCA;AAAmD,cAAtC,wBAAsC,EAAA,CAAA,UAAA,WAAA,CAAA,CAAA,IAAA,EAC3C,CAD2C,EAAA,OAAA,EAExC,aAFwC,EAAA,EAAA,SAAA,EAGtC,SAHsC,EAAA,GAIhD,MAJgD,EAAA;AAC3C,cAqBK,sCArBL,EAAA,CAAA,UAAA,EAsBM,UAtBN,EAAA,OAAA,CAAA,EAuBG,aAvBH,EAAA,EAAA,GAuBiE,MAvBjE,EAAA"}
@@ -1,4 +1,5 @@
1
1
  import { NodeProps } from "../interpreter/getContent/plugins.js";
2
+ import "../interpreter/index.js";
2
3
  import { ContentNode } from "@intlayer/types";
3
4
 
4
5
  //#region src/deepTransformPlugins/getReplacedValuesContent.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"getReplacedValuesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getReplacedValuesContent.ts"],"sourcesContent":[],"mappings":";;;;cAiEa,iCACL,0DAEK"}
1
+ {"version":3,"file":"getReplacedValuesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getReplacedValuesContent.ts"],"sourcesContent":[],"mappings":";;;;;cAiEa,iCACL,0DAEK"}
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types5 from "@intlayer/types";
1
+ import * as _intlayer_types0 from "@intlayer/types";
2
2
  import { Dictionary } from "@intlayer/types";
3
3
 
4
4
  //#region src/dictionaryManipulator/orderDictionaries.d.ts
@@ -10,7 +10,7 @@ import { Dictionary } from "@intlayer/types";
10
10
  * @param priorityStrategy - The priority strategy ('local_first' or 'distant_first')
11
11
  * @returns Ordered array of dictionaries
12
12
  */
13
- declare const orderDictionaries: (dictionaries: Dictionary[], configuration?: _intlayer_types5.IntlayerConfig) => Dictionary[];
13
+ declare const orderDictionaries: (dictionaries: Dictionary[], configuration?: _intlayer_types0.IntlayerConfig) => Dictionary[];
14
14
  //#endregion
15
15
  export { orderDictionaries };
16
16
  //# sourceMappingURL=orderDictionaries.d.ts.map
@@ -8,6 +8,7 @@ import { getMarkdownMetadata } from "./transpiler/markdown/getMarkdownMetadata.j
8
8
  import { MarkdownContent, MarkdownContentConstructor, md as markdown } from "./transpiler/markdown/markdown.js";
9
9
  import { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nest as nesting } from "./transpiler/nesting/nesting.js";
10
10
  import { TranslationContent, t as translation } from "./transpiler/translation/translation.js";
11
+ import "./transpiler/index.js";
11
12
  import { getCondition } from "./interpreter/getCondition.js";
12
13
  import { GetNestingResult, getNesting } from "./interpreter/getNesting.js";
13
14
  import { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin } from "./interpreter/getContent/plugins.js";
@@ -17,6 +18,7 @@ import { getDictionary } from "./interpreter/getDictionary.js";
17
18
  import { findMatchingCondition, getEnumeration } from "./interpreter/getEnumeration.js";
18
19
  import { getIntlayer } from "./interpreter/getIntlayer.js";
19
20
  import { getTranslation } from "./interpreter/getTranslation.js";
21
+ import "./interpreter/index.js";
20
22
  import { filterMissingTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary } from "./deepTransformPlugins/getFilterMissingTranslationsContent.js";
21
23
  import { filterTranslationsOnlyPlugin, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary } from "./deepTransformPlugins/getFilterTranslationsOnlyContent.js";
22
24
  import { getFilteredLocalesContent, getFilteredLocalesDictionary } from "./deepTransformPlugins/getFilteredLocalesContent.js";
@@ -27,6 +29,7 @@ import { getMultilingualDictionary } from "./deepTransformPlugins/getMultilingua
27
29
  import { getReplacedValuesContent } from "./deepTransformPlugins/getReplacedValuesContent.js";
28
30
  import { getSplittedContent, getSplittedDictionaryContent } from "./deepTransformPlugins/getSplittedContent.js";
29
31
  import { insertContentInDictionary } from "./deepTransformPlugins/insertContentInDictionary.js";
32
+ import "./deepTransformPlugins/index.js";
30
33
  import { editDictionaryByKeyPath } from "./dictionaryManipulator/editDictionaryByKeyPath.js";
31
34
  import { getContentNodeByKeyPath } from "./dictionaryManipulator/getContentNodeByKeyPath.js";
32
35
  import { getDefaultNode } from "./dictionaryManipulator/getDefaultNode.js";
@@ -39,6 +42,7 @@ import { orderDictionaries } from "./dictionaryManipulator/orderDictionaries.js"
39
42
  import { removeContentNodeByKeyPath } from "./dictionaryManipulator/removeContentNodeByKeyPath.js";
40
43
  import { renameContentNodeByKeyPath } from "./dictionaryManipulator/renameContentNodeByKeyPath.js";
41
44
  import { updateNodeChildren } from "./dictionaryManipulator/updateNodeChildren.js";
45
+ import "./dictionaryManipulator/index.js";
42
46
  import { compact } from "./formatters/compact.js";
43
47
  import { currency } from "./formatters/currency.js";
44
48
  import { date } from "./formatters/date.js";
@@ -47,6 +51,7 @@ import { number } from "./formatters/number.js";
47
51
  import { percentage } from "./formatters/percentage.js";
48
52
  import { relativeTime } from "./formatters/relativeTime.js";
49
53
  import { units } from "./formatters/units.js";
54
+ import "./formatters/index.js";
50
55
  import { ProcessedStorageAttributes, getStorageAttributes } from "./getStorageAttributes.js";
51
56
  import { LocaleStorage, LocaleStorageOptions, getLocaleFromStorage, setLocaleInStorage } from "./utils/localeStorage.js";
52
57
  import { getBrowserLocale, localeStorageOptions } from "./localization/getBrowserLocale.js";
@@ -60,6 +65,7 @@ import { getPathWithoutLocale } from "./localization/getPathWithoutLocale.js";
60
65
  import { localeDetector } from "./localization/localeDetector.js";
61
66
  import { localeFlatMap, localeMap, localeRecord } from "./localization/localeMapper.js";
62
67
  import { localeResolver } from "./localization/localeResolver.js";
68
+ import "./localization/index.js";
63
69
  import { checkIsURLAbsolute } from "./utils/checkIsURLAbsolute.js";
64
70
  import { CachedIntl, createCachedIntl } from "./utils/intl.js";
65
71
  import { isSameKeyPath } from "./utils/isSameKeyPath.js";
@@ -1,4 +1,5 @@
1
1
  import { ConditionContentStates } from "../transpiler/condition/condition.js";
2
+ import "../transpiler/index.js";
2
3
 
3
4
  //#region src/interpreter/getCondition.d.ts
4
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"getCondition.d.ts","names":[],"sources":["../../../src/interpreter/getCondition.ts"],"sourcesContent":[],"mappings":";;;;;;AAwBA;;;;;;;;;;;;;;;;;;;;cAAa,0CACO,uBAAuB,8BAExC"}
1
+ {"version":3,"file":"getCondition.d.ts","names":[],"sources":["../../../src/interpreter/getCondition.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAwBA;;;;;;;;;;;;;;;;;;;cAAa,0CACO,uBAAuB,8BAExC"}
@@ -1,4 +1,5 @@
1
1
  import { Gender } from "../../transpiler/gender/gender.js";
2
+ import "../../transpiler/index.js";
2
3
  import { GetNestingResult } from "../getNesting.js";
3
4
  import { DeclaredLocales, DictionaryKeys, KeyPath, Locale, LocalesValues, NodeType } from "@intlayer/types";
4
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../../../src/interpreter/getContent/plugins.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAoCA;AAcA;;;;;;;AAIc,KAlBF,OAAA,GAkBE;EACR,EAAA,EAAA,MAAA;EAAgB,SAAA,EAAA,CAAA,IAAA,EAAA,GAAA,EAAA,GAAA,OAAA;EACO,SAAA,EAAA,CAAA,IAAA,EAAA,GAAA,EAAA,KAAA,EAflB,SAekB,EAAA,WAAA,EAAA,CAAA,IAAA,EAAA,GAAA,EAAA,KAAA,EAdO,SAcP,EAAA,GAAA,GAAA,EAAA,GAAA,GAAA;CAAE;;;;AACM,KAPzB,eAOyB,CAAA,CAAA,EAAA,CAAA,EAAA,UAPO,aAOP,CAAA,GAPwB,CAOxB,SAAA;EAAI,QAAA,EAN7B,QAM6B,GAAA,MAAA;EAAjC,CALL,QAAA,CAAS,WAAA,CAKJ,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A1CtB,EA0CyB,CA1CzB,EA0C4B,CA1C5B,CAAA,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { DeepTransformContent, IInterpreterPluginState, Plugins } from "./getContent/plugins.js";
2
+ import "./getContent/index.js";
2
3
  import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
3
4
 
4
5
  //#region src/interpreter/getDictionary.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../../src/interpreter/getDictionary.ts"],"sourcesContent":[],"mappings":";;;;;;;AAqBA;;;;;;AAMY,cANC,aAMD,EAAA,CAAA,UALA,UAKA,EAAA,UAJA,aAIA,GAJgB,eAIhB,CAAA,CAAA,UAAA,EAFE,CAEF,EAAA,MAAA,CAAA,EADD,CACC,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,EAAA,GACT,oBADS,CACY,CADZ,CAAA,SAAA,CAAA,EAC0B,uBAD1B,EACmD,CADnD,CAAA"}
1
+ {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../../src/interpreter/getDictionary.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAqBA;;;;;AAKW,cALE,aAKF,EAAA,CAAA,UAJC,UAID,EAAA,UAHC,aAGD,GAHiB,eAGjB,CAAA,CAAA,UAAA,EADG,CACH,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,OAAA,CAAA,EACC,OADD,EAAA,EAAA,GAER,oBAFQ,CAEa,CAFb,CAAA,SAAA,CAAA,EAE2B,uBAF3B,EAEoD,CAFpD,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { EnterFormat, EnumerationContentState } from "../transpiler/enumeration/enumeration.js";
2
+ import "../transpiler/index.js";
2
3
 
3
4
  //#region src/interpreter/getEnumeration.d.ts
4
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"getEnumeration.d.ts","names":[],"sources":["../../../src/interpreter/getEnumeration.ts"],"sourcesContent":[],"mappings":";;;;;;AA6BA;;;;;AA4DA;;;;;;;;;;;;;;;;;;;;cA5Da,qDACS,wBAAwB,+BAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyDU,8CACS,wBAAwB,+BAE3C"}
1
+ {"version":3,"file":"getEnumeration.d.ts","names":[],"sources":["../../../src/interpreter/getEnumeration.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA6BA;;;;;AA4DA;;;;;;;;;;;;;;;;;;;cA5Da,qDACS,wBAAwB,+BAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyDU,8CACS,wBAAwB,+BAE3C"}
@@ -1,4 +1,5 @@
1
1
  import { Gender, GenderContentStates } from "../transpiler/gender/gender.js";
2
+ import "../transpiler/index.js";
2
3
 
3
4
  //#region src/interpreter/getGender.d.ts
4
5
  type GenderEntry = Gender | 'm' | 'f';
@@ -1 +1 @@
1
- {"version":3,"file":"getGender.d.ts","names":[],"sources":["../../../src/interpreter/getGender.ts"],"sourcesContent":[],"mappings":";;;KAEK,WAAA,GAAc;;AAF8C;AAgCjE;;;;;;;;;;;;;;;;;;;;cAAa,oCACI,oBAAoB,kBAC3B,gBACP"}
1
+ {"version":3,"file":"getGender.d.ts","names":[],"sources":["../../../src/interpreter/getGender.ts"],"sourcesContent":[],"mappings":";;;;KAEK,WAAA,GAAc;;;AAF8C;AAgCjE;;;;;;;;;;;;;;;;;;;cAAa,oCACI,oBAAoB,kBAC3B,gBACP"}
@@ -1,4 +1,5 @@
1
1
  import { InsertionContent } from "../transpiler/insertion/insertion.js";
2
+ import "../transpiler/index.js";
2
3
 
3
4
  //#region src/interpreter/getInsertion.d.ts
4
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"getInsertion.d.ts","names":[],"sources":["../../../src/interpreter/getInsertion.ts"],"sourcesContent":[],"mappings":";;;;;;AAeA;;;;;;;;;;;cAAa,gDAEK"}
1
+ {"version":3,"file":"getInsertion.d.ts","names":[],"sources":["../../../src/interpreter/getInsertion.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAeA;;;;;;;;;;cAAa,gDAEK"}
@@ -1,4 +1,5 @@
1
1
  import { DeepTransformContent, IInterpreterPluginState, Plugins } from "./getContent/plugins.js";
2
+ import "./getContent/index.js";
2
3
  import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types";
3
4
 
4
5
  //#region src/interpreter/getIntlayer.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../../src/interpreter/getIntlayer.ts"],"sourcesContent":[],"mappings":";;;;cAea,wBACD,0BACA,gBAAgB,sBAErB,YACI,aACC,cACT,qBACD,0BAA0B,IAC1B,yBACA"}
1
+ {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../../src/interpreter/getIntlayer.ts"],"sourcesContent":[],"mappings":";;;;;cAea,wBACD,0BACA,gBAAgB,sBAErB,YACI,aACC,cACT,qBACD,0BAA0B,IAC1B,yBACA"}
@@ -1,5 +1,7 @@
1
1
  import { ValidDotPathsFor } from "../transpiler/nesting/nesting.js";
2
+ import "../transpiler/index.js";
2
3
  import { DeepTransformContent, IInterpreterPluginState, NodeProps } from "./getContent/plugins.js";
4
+ import "./getContent/index.js";
3
5
  import { DictionaryKeys, DictionaryRegistryContent, GetSubPath } from "@intlayer/types";
4
6
 
5
7
  //#region src/interpreter/getNesting.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"getNesting.d.ts","names":[],"sources":["../../../src/interpreter/getNesting.ts"],"sourcesContent":[],"mappings":";;;;;KAaY,2BACA,mCAEN,2BACF,WAAW,qBAAqB,0BAA0B,IAAI,IAAI;;AAJtE;;;;;;;;AAII,cAWS,UAXT,EAAA,CAAA,UAWiC,cAXjC,EAAA,CAAA,CAAA,CAAA,aAAA,EAYa,CAZb,EAAA,IAAA,CAAA,EAaK,CAbL,SAae,gBAbf,CAagC,CAbhC,CAAA,GAaqC,CAbrC,GAAA,KAAA,EAAA,KAAA,CAAA,EAcM,SAdN,EAAA,GAeD,gBAfC,CAegB,CAfhB,EAemB,CAfnB,CAAA"}
1
+ {"version":3,"file":"getNesting.d.ts","names":[],"sources":["../../../src/interpreter/getNesting.ts"],"sourcesContent":[],"mappings":";;;;;;;KAaY,2BACA,mCAEN,2BACF,WAAW,qBAAqB,0BAA0B,IAAI,IAAI;;;;AAJtE;;;;;;AAIe,cAWF,UAXE,EAAA,CAAA,UAWsB,cAXtB,EAAA,CAAA,CAAA,CAAA,aAAA,EAYE,CAZF,EAAA,IAAA,CAAA,EAaN,CAbM,SAaI,gBAbJ,CAaqB,CAbrB,CAAA,GAa0B,CAb1B,GAAA,KAAA,EAAA,KAAA,CAAA,EAcL,SAdK,EAAA,GAeZ,gBAfY,CAeK,CAfL,EAeQ,CAfR,CAAA"}
@@ -3,6 +3,7 @@ import { GetNestingResult, getNesting } from "./getNesting.js";
3
3
  import { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin } from "./getContent/plugins.js";
4
4
  import { deepTransformNode } from "./getContent/deepTransform.js";
5
5
  import { getContent } from "./getContent/getContent.js";
6
+ import "./getContent/index.js";
6
7
  import { getDictionary } from "./getDictionary.js";
7
8
  import { findMatchingCondition, getEnumeration } from "./getEnumeration.js";
8
9
  import { getIntlayer } from "./getIntlayer.js";
@@ -1 +1 @@
1
- {"version":3,"file":"getLocalizedUrl.d.ts","names":[],"sources":["../../../src/localization/getLocalizedUrl.ts"],"sourcesContent":[],"mappings":";;;;;;AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,8CAEI,yBACN,6CAEM"}
1
+ {"version":3,"file":"getLocalizedUrl.d.ts","names":[],"sources":["../../../src/localization/getLocalizedUrl.ts"],"sourcesContent":[],"mappings":";;;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,8CAEI,yBACN,6CAEM"}
@@ -1 +1 @@
1
- {"version":3,"file":"enumeration.d.ts","names":[],"sources":["../../../../src/transpiler/enumeration/enumeration.ts"],"sourcesContent":[],"mappings":";;;KAEK,QAAA;KACA,QAAA;AAH2E,KAI3E,OAAA,GAAU,QAFF,GAEa,QAFb;AAAA,KAIR,KAAA,GAAQ,OAHA;AAAA,KAIR,WAAA,GAHO,IAGW,OAHR,EAAA;AAAmB,KAI7B,QAAA,GAFK,IAEU,OAFP,EAAA;AAAO,KAGf,eAAA,GAFW,KAEY,OAFL,EAAA;AAAO,KAGzB,QAAA,GAFQ,IAEO,OAFA,EAAA;AAAO,KAGtB,eAAA,GAFe,KAEQ,OAFA,EAAA;AACvB,KAGO,WAAA,GACR,KAJgB,GAKhB,WALuB,GAMvB,QANuB,GAOvB,eAPuB,GAQvB,QARuB,GASvB,eATuB;AACtB,KAUO,uBAVgB,CAAA,OAAO,CAAA,GAUY,OAVZ,CAWjC,MAXiC,CAW1B,WAX0B,EAWb,OAXa,CAAA,CAAA,GAAA;EAEvB,QAAA,CAAA,EAWC,OAXU;CACnB;AACA,KAYQ,kBAZR,CAAA,UAAA,OAAA,CAAA,GAYgD,cAZhD,CAaF,QAAA,CAAS,WAbP,EAcF,uBAdE,CAcsB,OAdtB,CAAA,CAAA;;;;;;AAMJ;;;;;;;AAMA;;;;;;AAGE;cAqBI,WAA0D,EAAA,CAAA,OAAA,CAAA,CAAA,OAAA,CAAA,EAAxB,uBAAwB,CAAA,OAAA,CAAA,EAAA,GAAQ,cAAR,CAAQ,QAAA,CAAA,WAAR,EAAQ,uBAAR,CAAQ,OAAR,CAAA,EAAA,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"enumeration.d.ts","names":[],"sources":["../../../../src/transpiler/enumeration/enumeration.ts"],"sourcesContent":[],"mappings":";;;KAEK,QAAA;KACA,QAAA;AAH2E,KAI3E,OAAA,GAAU,QAFF,GAEa,QAFb;AAAA,KAIR,KAAA,GAAQ,OAHA;AAAA,KAIR,WAAA,GAHO,IAGW,OAHR,EAAA;AAAmB,KAI7B,QAAA,GAFK,IAEU,OAFP,EAAA;AAAO,KAGf,eAAA,GAFW,KAEY,OAFL,EAAA;AAAO,KAGzB,QAAA,GAFQ,IAEO,OAFP,EAAO;AAAO,KAGtB,eAAA,GAFe,KAEQ,OAFA,EAAA;AACvB,KAGO,WAAA,GACR,KAJgB,GAKhB,WALuB,GAMvB,QANuB,GAOvB,eAPuB,GAQvB,QARuB,GASvB,eATuB;AACtB,KAUO,uBAVgB,CAAA,OAAO,CAAA,GAUY,OAVZ,CAWjC,MAXiC,CAW1B,WAX0B,EAWb,OAXa,CAAA,CAAA,GAAA;EAEvB,QAAA,CAAA,EAWC,OAXU;CACnB;AACA,KAYQ,kBAZR,CAAA,UAAA,OAAA,CAAA,GAYgD,cAZhD,CAaF,QAAA,CAAS,WAbP,EAcF,uBAdE,CAcsB,OAdtB,CAAA,CAAA;;;;;;AAMJ;;;;;;;AAMA;;;;;;AAGE;cAqBI,WAA0D,EAAA,CAAA,OAAA,CAAA,CAAA,OAAA,CAAA,EAAxB,uBAAwB,CAAA,OAAA,CAAA,EAAA,GAAQ,cAAR,CAAQ,QAAA,CAAA,WAAR,EAAQ,uBAAR,CAAQ,OAAR,CAAA,EAAA,CAAA,CAAA,CAAA"}
@@ -1,11 +1,19 @@
1
1
  import { ConditionContent, ConditionContentStates, cond as condition } from "./condition/condition.js";
2
+ import "./condition/index.js";
2
3
  import { EnterFormat, EnumerationContent, EnumerationContentState, enu as enumeration } from "./enumeration/enumeration.js";
4
+ import "./enumeration/index.js";
3
5
  import { FileContent, FileContentConstructor, file, fileContent } from "./file/file.js";
6
+ import "./file/index.js";
4
7
  import { Gender, GenderContent, GenderContentStates, gender } from "./gender/gender.js";
8
+ import "./gender/index.js";
5
9
  import { getInsertionValues } from "./insertion/getInsertionValues.js";
6
10
  import { InsertionContent, InsertionContentConstructor, insert as insertion } from "./insertion/insertion.js";
11
+ import "./insertion/index.js";
7
12
  import { getMarkdownMetadata } from "./markdown/getMarkdownMetadata.js";
8
13
  import { MarkdownContent, MarkdownContentConstructor, md as markdown } from "./markdown/markdown.js";
14
+ import "./markdown/index.js";
9
15
  import { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nest as nesting } from "./nesting/nesting.js";
16
+ import "./nesting/index.js";
10
17
  import { TranslationContent, t as translation } from "./translation/translation.js";
18
+ import "./translation/index.js";
11
19
  export { ConditionContent, ConditionContentStates, DotPath, EnterFormat, EnumerationContent, EnumerationContentState, FileContent, FileContentConstructor, Gender, GenderContent, GenderContentStates, InsertionContent, InsertionContentConstructor, MarkdownContent, MarkdownContentConstructor, NestedContent, NestedContentState, TranslationContent, ValidDotPathsFor, condition as cond, enumeration as enu, file, fileContent, gender, getInsertionValues, getMarkdownMetadata, insertion as insert, markdown as md, nesting as nest, translation as t };
@@ -1,4 +1,5 @@
1
1
  import { DeepTransformContent } from "../../interpreter/getContent/plugins.js";
2
+ import "../../interpreter/index.js";
2
3
  import { DictionaryKeys, DictionaryRegistryContent, NodeType, TypedNodeModel } from "@intlayer/types";
3
4
 
4
5
  //#region src/transpiler/nesting/nesting.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"nesting.d.ts","names":[],"sources":["../../../../src/transpiler/nesting/nesting.ts"],"sourcesContent":[],"mappings":";;;;;;AAeA;;;;;AAIa,KAJD,OAIC,CAAA,CAAA,CAAA,GAJY,CAIZ,SAAA,MAAA,GAAA,QAAS,MAFJ,CAEI,GAAA,CAAA,MAAA,GAAA,MAAA,CAAA,GAFoB,CAEpB,CAFsB,CAEtB,CAAA,SAAA,MAAA;AAAA;AAAa,GAAtB,CAAsB,EAAA,GAAA,GAAb,CAAa,IAAR,OAAQ,CAAA,CAAA,CAAE,CAAF,CAAA,CAAA,EAAA,GAAA,GACtB,CADsB,EAAA,EAAE,CAAA,MAEzB,CAFyB,GAAA,CAAA,MAAA,GAAA,MAAA,CAAA,CAAA,GAAA,KAAA;KAKhC,WALsB,CAAA,C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