angular-intlayer 7.5.0-canary.1 → 7.5.0

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 (67) hide show
  1. package/dist/cjs/UI/ContentSelector.component.cjs +15 -15
  2. package/dist/cjs/UI/ContentSelector.component.cjs.map +1 -1
  3. package/dist/cjs/client/installIntlayer.cjs +7 -7
  4. package/dist/cjs/client/installIntlayer.cjs.map +1 -1
  5. package/dist/cjs/client/useDictionary.cjs +4 -4
  6. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  7. package/dist/cjs/client/useDictionaryAsync.cjs +5 -5
  8. package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
  9. package/dist/cjs/client/useDictionaryDynamic.cjs +5 -5
  10. package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
  11. package/dist/cjs/client/useIntlayer.cjs +4 -4
  12. package/dist/cjs/client/useIntlayer.cjs.map +1 -1
  13. package/dist/cjs/client/useLoadDynamic.cjs +2 -2
  14. package/dist/cjs/client/useLoadDynamic.cjs.map +1 -1
  15. package/dist/cjs/client/useLocale.cjs +7 -7
  16. package/dist/cjs/client/useLocale.cjs.map +1 -1
  17. package/dist/cjs/client/useLocaleStorage.cjs +6 -6
  18. package/dist/cjs/client/useLocaleStorage.cjs.map +1 -1
  19. package/dist/cjs/editor/ContentSelectorWrapper.component.cjs +12 -12
  20. package/dist/cjs/editor/ContentSelectorWrapper.component.cjs.map +1 -1
  21. package/dist/cjs/editor/EditedContentRenderer.component.cjs +12 -12
  22. package/dist/cjs/editor/EditedContentRenderer.component.cjs.map +1 -1
  23. package/dist/cjs/editor/EditorSelectorRenderer.component.cjs +6 -6
  24. package/dist/cjs/editor/EditorSelectorRenderer.component.cjs.map +1 -1
  25. package/dist/cjs/editor/communicator.cjs +3 -3
  26. package/dist/cjs/editor/configuration.cjs +7 -7
  27. package/dist/cjs/editor/configuration.cjs.map +1 -1
  28. package/dist/cjs/editor/createSharedComposable.cjs +2 -2
  29. package/dist/cjs/editor/createSharedComposable.cjs.map +1 -1
  30. package/dist/cjs/editor/dictionariesRecord.cjs +5 -5
  31. package/dist/cjs/editor/dictionariesRecord.cjs.map +1 -1
  32. package/dist/cjs/editor/editedContent.cjs +9 -9
  33. package/dist/cjs/editor/editedContent.cjs.map +1 -1
  34. package/dist/cjs/editor/editorEnabled.cjs +7 -7
  35. package/dist/cjs/editor/editorEnabled.cjs.map +1 -1
  36. package/dist/cjs/editor/editorLocale.cjs +5 -5
  37. package/dist/cjs/editor/editorLocale.cjs.map +1 -1
  38. package/dist/cjs/editor/focusDictionary.cjs +6 -6
  39. package/dist/cjs/editor/focusDictionary.cjs.map +1 -1
  40. package/dist/cjs/editor/installIntlayerEditor.cjs +3 -3
  41. package/dist/cjs/editor/useCrossFrameMessageListener.cjs +4 -4
  42. package/dist/cjs/editor/useCrossFrameMessageListener.cjs.map +1 -1
  43. package/dist/cjs/editor/useCrossFrameState.cjs +2 -2
  44. package/dist/cjs/editor/useCrossFrameState.cjs.map +1 -1
  45. package/dist/cjs/editor/useCrossURLPathState.cjs +4 -4
  46. package/dist/cjs/editor/useCrossURLPathState.cjs.map +1 -1
  47. package/dist/cjs/editor/useEditedContentRenderer.cjs +6 -6
  48. package/dist/cjs/editor/useEditedContentRenderer.cjs.map +1 -1
  49. package/dist/cjs/editor/useIframeClickInterceptor.cjs +5 -5
  50. package/dist/cjs/editor/useIframeClickInterceptor.cjs.map +1 -1
  51. package/dist/cjs/getDictionary.cjs +2 -2
  52. package/dist/cjs/getDictionary.cjs.map +1 -1
  53. package/dist/cjs/getIntlayer.cjs +2 -2
  54. package/dist/cjs/getIntlayer.cjs.map +1 -1
  55. package/dist/cjs/markdown/installIntlayerMarkdown.cjs +5 -5
  56. package/dist/cjs/markdown/installIntlayerMarkdown.cjs.map +1 -1
  57. package/dist/cjs/plugins.cjs +6 -6
  58. package/dist/cjs/plugins.cjs.map +1 -1
  59. package/dist/cjs/webpack/mergeConfig.cjs +5 -5
  60. package/dist/cjs/webpack/mergeConfig.cjs.map +1 -1
  61. package/dist/types/client/installIntlayer.d.ts +2 -2
  62. package/dist/types/client/useLocale.d.ts +2 -2
  63. package/dist/types/editor/ContentSelectorWrapper.component.d.ts +3 -3
  64. package/dist/types/editor/EditedContentRenderer.component.d.ts +2 -2
  65. package/dist/types/editor/useCrossURLPathState.d.ts +3 -3
  66. package/dist/types/plugins.d.ts.map +1 -1
  67. package/package.json +10 -10
@@ -1,10 +1,10 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  const require_plugins = require('./plugins.cjs');
3
- let __intlayer_core = require("@intlayer/core");
3
+ let _intlayer_core = require("@intlayer/core");
4
4
 
5
5
  //#region src/getDictionary.ts
6
6
  const getDictionary = (dictionary, locale, additionalPlugins) => {
7
- return (0, __intlayer_core.getDictionary)(dictionary, locale, [
7
+ return (0, _intlayer_core.getDictionary)(dictionary, locale, [
8
8
  require_plugins.intlayerNodePlugins,
9
9
  require_plugins.markdownPlugin,
10
10
  ...additionalPlugins ?? []
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.cjs","names":["intlayerNodePlugins","markdownPlugin"],"sources":["../../src/getDictionary.ts"],"sourcesContent":["import {\n getDictionary as getDictionaryCore,\n type Plugins,\n} from '@intlayer/core';\nimport type {\n DeclaredLocales,\n Dictionary,\n LocalesValues,\n} from '@intlayer/types';\nimport { intlayerNodePlugins, markdownPlugin } from './plugins';\n\nexport const getDictionary = <\n T extends Dictionary,\n L extends LocalesValues = DeclaredLocales,\n>(\n dictionary: T,\n locale?: L,\n additionalPlugins?: Plugins[]\n) => {\n const plugins: Plugins[] = [\n intlayerNodePlugins,\n markdownPlugin,\n ...(additionalPlugins ?? []),\n ];\n\n return getDictionaryCore<T, L>(dictionary, locale, plugins);\n};\n"],"mappings":";;;;;AAWA,MAAa,iBAIX,YACA,QACA,sBACG;AAOH,2CAA+B,YAAY,QANhB;EACzBA;EACAC;EACA,GAAI,qBAAqB,EAAE;EAC5B,CAE0D"}
1
+ {"version":3,"file":"getDictionary.cjs","names":["intlayerNodePlugins","markdownPlugin"],"sources":["../../src/getDictionary.ts"],"sourcesContent":["import {\n getDictionary as getDictionaryCore,\n type Plugins,\n} from '@intlayer/core';\nimport type {\n DeclaredLocales,\n Dictionary,\n LocalesValues,\n} from '@intlayer/types';\nimport { intlayerNodePlugins, markdownPlugin } from './plugins';\n\nexport const getDictionary = <\n T extends Dictionary,\n L extends LocalesValues = DeclaredLocales,\n>(\n dictionary: T,\n locale?: L,\n additionalPlugins?: Plugins[]\n) => {\n const plugins: Plugins[] = [\n intlayerNodePlugins,\n markdownPlugin,\n ...(additionalPlugins ?? []),\n ];\n\n return getDictionaryCore<T, L>(dictionary, locale, plugins);\n};\n"],"mappings":";;;;;AAWA,MAAa,iBAIX,YACA,QACA,sBACG;AAOH,0CAA+B,YAAY,QANhB;EACzBA;EACAC;EACA,GAAI,qBAAqB,EAAE;EAC5B,CAE0D"}
@@ -1,10 +1,10 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  const require_plugins = require('./plugins.cjs');
3
- let __intlayer_core = require("@intlayer/core");
3
+ let _intlayer_core = require("@intlayer/core");
4
4
 
5
5
  //#region src/getIntlayer.ts
6
6
  const getIntlayer = (key, locale, additionalPlugins) => {
7
- return (0, __intlayer_core.getIntlayer)(key, locale, [
7
+ return (0, _intlayer_core.getIntlayer)(key, locale, [
8
8
  require_plugins.intlayerNodePlugins,
9
9
  require_plugins.markdownPlugin,
10
10
  ...additionalPlugins ?? []
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.cjs","names":["intlayerNodePlugins","markdownPlugin"],"sources":["../../src/getIntlayer.ts"],"sourcesContent":["import { getIntlayer as getIntlayerCore, type Plugins } from '@intlayer/core';\nimport type {\n DeclaredLocales,\n DictionaryKeys,\n DictionaryRegistryContent,\n LocalesValues,\n} from '@intlayer/types';\nimport {\n type DeepTransformContent,\n intlayerNodePlugins,\n markdownPlugin,\n} from './plugins';\n\nexport const getIntlayer = <\n T extends DictionaryKeys,\n L extends LocalesValues = DeclaredLocales,\n>(\n key: T,\n locale?: L,\n additionalPlugins?: Plugins[]\n) => {\n const plugins: Plugins[] = [\n intlayerNodePlugins,\n markdownPlugin,\n ...(additionalPlugins ?? []),\n ];\n\n // @ts-ignore Type instantiation is excessively deep and possibly infinite\n return getIntlayerCore<T, L>(key, locale, plugins) as DeepTransformContent<\n DictionaryRegistryContent<T>\n >;\n};\n"],"mappings":";;;;;AAaA,MAAa,eAIX,KACA,QACA,sBACG;AAQH,yCAA6B,KAAK,QAPP;EACzBA;EACAC;EACA,GAAI,qBAAqB,EAAE;EAC5B,CAGiD"}
1
+ {"version":3,"file":"getIntlayer.cjs","names":["intlayerNodePlugins","markdownPlugin"],"sources":["../../src/getIntlayer.ts"],"sourcesContent":["import { getIntlayer as getIntlayerCore, type Plugins } from '@intlayer/core';\nimport type {\n DeclaredLocales,\n DictionaryKeys,\n DictionaryRegistryContent,\n LocalesValues,\n} from '@intlayer/types';\nimport {\n type DeepTransformContent,\n intlayerNodePlugins,\n markdownPlugin,\n} from './plugins';\n\nexport const getIntlayer = <\n T extends DictionaryKeys,\n L extends LocalesValues = DeclaredLocales,\n>(\n key: T,\n locale?: L,\n additionalPlugins?: Plugins[]\n) => {\n const plugins: Plugins[] = [\n intlayerNodePlugins,\n markdownPlugin,\n ...(additionalPlugins ?? []),\n ];\n\n // @ts-ignore Type instantiation is excessively deep and possibly infinite\n return getIntlayerCore<T, L>(key, locale, plugins) as DeepTransformContent<\n DictionaryRegistryContent<T>\n >;\n};\n"],"mappings":";;;;;AAaA,MAAa,eAIX,KACA,QACA,sBACG;AAQH,wCAA6B,KAAK,QAPP;EACzBA;EACAC;EACA,GAAI,qBAAqB,EAAE;EAC5B,CAGiD"}
@@ -1,8 +1,8 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- let __angular_core = require("@angular/core");
2
+ let _angular_core = require("@angular/core");
3
3
 
4
4
  //#region src/markdown/installIntlayerMarkdown.ts
5
- const INTLAYER_MARKDOWN_TOKEN = new __angular_core.InjectionToken("intlayerMarkdown");
5
+ const INTLAYER_MARKDOWN_TOKEN = new _angular_core.InjectionToken("intlayerMarkdown");
6
6
  /**
7
7
  * Default markdown renderer that returns the markdown as is
8
8
  */
@@ -14,8 +14,8 @@ const createIntlayerMarkdownProvider = (renderMarkdown = defaultMarkdownRenderer
14
14
  provide: INTLAYER_MARKDOWN_TOKEN,
15
15
  useValue: { renderMarkdown }
16
16
  });
17
- var IntlayerMarkdownService = @((0, __angular_core.Injectable)({ providedIn: "root" })) class {
18
- markdownProvider = (0, __angular_core.inject)(INTLAYER_MARKDOWN_TOKEN, { optional: true });
17
+ var IntlayerMarkdownService = @((0, _angular_core.Injectable)({ providedIn: "root" })) class {
18
+ markdownProvider = (0, _angular_core.inject)(INTLAYER_MARKDOWN_TOKEN, { optional: true });
19
19
  renderMarkdown(markdown) {
20
20
  if (!this.markdownProvider) return markdown;
21
21
  return this.markdownProvider.renderMarkdown(markdown);
@@ -25,7 +25,7 @@ var IntlayerMarkdownService = @((0, __angular_core.Injectable)({ providedIn: "ro
25
25
  * Function to inject markdown provider
26
26
  */
27
27
  const useMarkdown = () => {
28
- const markdownProvider = (0, __angular_core.inject)(INTLAYER_MARKDOWN_TOKEN, { optional: true });
28
+ const markdownProvider = (0, _angular_core.inject)(INTLAYER_MARKDOWN_TOKEN, { optional: true });
29
29
  if (!markdownProvider) return { renderMarkdown: defaultMarkdownRenderer };
30
30
  return markdownProvider;
31
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"installIntlayerMarkdown.cjs","names":["InjectionToken","defaultMarkdownRenderer: RenderMarkdownFunction"],"sources":["../../../src/markdown/installIntlayerMarkdown.ts"],"sourcesContent":["import {\n Injectable,\n InjectionToken,\n inject,\n type TemplateRef,\n} from '@angular/core';\n\nexport const INTLAYER_MARKDOWN_TOKEN =\n new InjectionToken<IntlayerMarkdownProvider>('intlayerMarkdown');\n\ntype RenderMarkdownFunction = (markdown: string) => string | TemplateRef<any>;\n\nexport type IntlayerMarkdownProvider = {\n renderMarkdown: RenderMarkdownFunction;\n};\n\n/**\n * Default markdown renderer that returns the markdown as is\n */\nconst defaultMarkdownRenderer: RenderMarkdownFunction = (markdown: string) =>\n markdown;\n\n/**\n * Create IntlayerMarkdown provider configuration\n */\nexport const createIntlayerMarkdownProvider = (\n renderMarkdown: RenderMarkdownFunction = defaultMarkdownRenderer\n) => ({\n provide: INTLAYER_MARKDOWN_TOKEN,\n useValue: {\n renderMarkdown,\n } as IntlayerMarkdownProvider,\n});\n\n/**\n * Injectable service for markdown rendering\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class IntlayerMarkdownService {\n private markdownProvider = inject(INTLAYER_MARKDOWN_TOKEN, {\n optional: true,\n });\n\n renderMarkdown(markdown: string): string | TemplateRef<any> {\n if (!this.markdownProvider) {\n return markdown; // Fallback to returning markdown as is\n }\n return this.markdownProvider.renderMarkdown(markdown);\n }\n}\n\n/**\n * Function to inject markdown provider\n */\nexport const useMarkdown = (): IntlayerMarkdownProvider => {\n const markdownProvider = inject(INTLAYER_MARKDOWN_TOKEN, { optional: true });\n\n if (!markdownProvider) {\n return {\n renderMarkdown: defaultMarkdownRenderer,\n };\n }\n\n return markdownProvider;\n};\n"],"mappings":";;;;AAOA,MAAa,0BACX,IAAIA,8BAAyC,mBAAmB;;;;AAWlE,MAAMC,2BAAmD,aACvD;;;;AAKF,MAAa,kCACX,iBAAyC,6BACrC;CACJ,SAAS;CACT,UAAU,EACR,gBACD;CACF;AAQD,IAAa,0BAHb,iCAAY,EACV,YAAY,QACb,CAAC,EACF,MAAqC;CACnC,AAAQ,8CAA0B,yBAAyB,EACzD,UAAU,MACX,CAAC;CAEF,eAAe,UAA6C;AAC1D,MAAI,CAAC,KAAK,iBACR,QAAO;AAET,SAAO,KAAK,iBAAiB,eAAe,SAAS;;;;;;AAOzD,MAAa,oBAA8C;CACzD,MAAM,8CAA0B,yBAAyB,EAAE,UAAU,MAAM,CAAC;AAE5E,KAAI,CAAC,iBACH,QAAO,EACL,gBAAgB,yBACjB;AAGH,QAAO"}
1
+ {"version":3,"file":"installIntlayerMarkdown.cjs","names":["InjectionToken","defaultMarkdownRenderer: RenderMarkdownFunction"],"sources":["../../../src/markdown/installIntlayerMarkdown.ts"],"sourcesContent":["import {\n Injectable,\n InjectionToken,\n inject,\n type TemplateRef,\n} from '@angular/core';\n\nexport const INTLAYER_MARKDOWN_TOKEN =\n new InjectionToken<IntlayerMarkdownProvider>('intlayerMarkdown');\n\ntype RenderMarkdownFunction = (markdown: string) => string | TemplateRef<any>;\n\nexport type IntlayerMarkdownProvider = {\n renderMarkdown: RenderMarkdownFunction;\n};\n\n/**\n * Default markdown renderer that returns the markdown as is\n */\nconst defaultMarkdownRenderer: RenderMarkdownFunction = (markdown: string) =>\n markdown;\n\n/**\n * Create IntlayerMarkdown provider configuration\n */\nexport const createIntlayerMarkdownProvider = (\n renderMarkdown: RenderMarkdownFunction = defaultMarkdownRenderer\n) => ({\n provide: INTLAYER_MARKDOWN_TOKEN,\n useValue: {\n renderMarkdown,\n } as IntlayerMarkdownProvider,\n});\n\n/**\n * Injectable service for markdown rendering\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class IntlayerMarkdownService {\n private markdownProvider = inject(INTLAYER_MARKDOWN_TOKEN, {\n optional: true,\n });\n\n renderMarkdown(markdown: string): string | TemplateRef<any> {\n if (!this.markdownProvider) {\n return markdown; // Fallback to returning markdown as is\n }\n return this.markdownProvider.renderMarkdown(markdown);\n }\n}\n\n/**\n * Function to inject markdown provider\n */\nexport const useMarkdown = (): IntlayerMarkdownProvider => {\n const markdownProvider = inject(INTLAYER_MARKDOWN_TOKEN, { optional: true });\n\n if (!markdownProvider) {\n return {\n renderMarkdown: defaultMarkdownRenderer,\n };\n }\n\n return markdownProvider;\n};\n"],"mappings":";;;;AAOA,MAAa,0BACX,IAAIA,6BAAyC,mBAAmB;;;;AAWlE,MAAMC,2BAAmD,aACvD;;;;AAKF,MAAa,kCACX,iBAAyC,6BACrC;CACJ,SAAS;CACT,UAAU,EACR,gBACD;CACF;AAQD,IAAa,0BAHb,gCAAY,EACV,YAAY,QACb,CAAC,EACF,MAAqC;CACnC,AAAQ,6CAA0B,yBAAyB,EACzD,UAAU,MACX,CAAC;CAEF,eAAe,UAA6C;AAC1D,MAAI,CAAC,KAAK,iBACR,QAAO;AAET,SAAO,KAAK,iBAAiB,eAAe,SAAS;;;;;;AAOzD,MAAa,oBAA8C;CACzD,MAAM,6CAA0B,yBAAyB,EAAE,UAAU,MAAM,CAAC;AAE5E,KAAI,CAAC,iBACH,QAAO,EACL,gBAAgB,yBACjB;AAGH,QAAO"}
@@ -2,8 +2,8 @@ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  const require_editor_ContentSelectorWrapper_component = require('./editor/ContentSelectorWrapper.component.cjs');
3
3
  const require_markdown_installIntlayerMarkdown = require('./markdown/installIntlayerMarkdown.cjs');
4
4
  const require_renderIntlayerNode = require('./renderIntlayerNode.cjs');
5
- let __intlayer_core = require("@intlayer/core");
6
- let __intlayer_types = require("@intlayer/types");
5
+ let _intlayer_core = require("@intlayer/core");
6
+ let _intlayer_types = require("@intlayer/types");
7
7
 
8
8
  //#region src/plugins.ts
9
9
  /** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
@@ -29,7 +29,7 @@ const markdownStringPlugin = {
29
29
  canHandle: (node) => typeof node === "string",
30
30
  transform: (node, props, deepTransformNode) => {
31
31
  const { plugins, ...rest } = props;
32
- const metadataNodes = deepTransformNode((0, __intlayer_core.getMarkdownMetadata)(node), {
32
+ const metadataNodes = deepTransformNode((0, _intlayer_core.getMarkdownMetadata)(node), {
33
33
  plugins: [{
34
34
  id: "markdown-metadata-plugin",
35
35
  canHandle: (metadataNode) => typeof metadataNode === "string" || typeof metadataNode === "number" || typeof metadataNode === "boolean" || !metadataNode,
@@ -62,10 +62,10 @@ const markdownStringPlugin = {
62
62
  };
63
63
  const markdownPlugin = {
64
64
  id: "markdown-plugin",
65
- canHandle: (node) => typeof node === "object" && node?.nodeType === __intlayer_types.NodeType.Markdown,
65
+ canHandle: (node) => typeof node === "object" && node?.nodeType === _intlayer_types.NodeType.Markdown,
66
66
  transform: (node, props, deepTransformNode) => {
67
- const newKeyPath = [...props.keyPath, { type: __intlayer_types.NodeType.Markdown }];
68
- const children = node[__intlayer_types.NodeType.Markdown];
67
+ const newKeyPath = [...props.keyPath, { type: _intlayer_types.NodeType.Markdown }];
68
+ const children = node[_intlayer_types.NodeType.Markdown];
69
69
  return deepTransformNode(children, {
70
70
  ...props,
71
71
  children,
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.cjs","names":["intlayerNodePlugins: Plugins","renderIntlayerNode","ContentSelectorWrapperComponent","markdownStringPlugin: Plugins","props","useMarkdown","markdownPlugin: Plugins","NodeType","newKeyPath: KeyPath[]"],"sources":["../../src/plugins.ts"],"sourcesContent":["import {\n type DeepTransformContent as DeepTransformContentCore,\n getMarkdownMetadata,\n type IInterpreterPluginState as IInterpreterPluginStateCore,\n type MarkdownContent,\n type Plugins,\n} from '@intlayer/core';\nimport { type KeyPath, NodeType } from '@intlayer/types';\nimport { ContentSelectorWrapperComponent } from './editor';\nimport { useMarkdown } from './markdown/installIntlayerMarkdown';\nimport { renderIntlayerNode } from './renderIntlayerNode';\n\n/** ---------------------------------------------\n * INTLAYER NODE PLUGIN\n * --------------------------------------------- */\n\nexport type IntlayerNodeCond<T> = T extends number | string\n ? IntlayerNode<T>\n : never;\n\nexport interface IntlayerNode<T, P = {}> {\n value: T;\n children?: any;\n additionalProps?: P;\n}\n\n/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */\nexport const intlayerNodePlugins: Plugins = {\n id: 'intlayer-node-plugin',\n canHandle: (node) =>\n typeof node === 'bigint' ||\n typeof node === 'string' ||\n typeof node === 'number',\n transform: (_node, { children, ...rest }) =>\n renderIntlayerNode({\n ...rest,\n value: children,\n children: () => ({\n component: ContentSelectorWrapperComponent,\n props: {\n dictionaryKey: rest.dictionaryKey,\n keyPath: rest.keyPath,\n },\n children: children,\n }),\n }),\n};\n\n/**\n * MARKDOWN PLUGIN\n */\n\nexport type MarkdownStringCond<T> = T extends string\n ? IntlayerNode<string, { metadata: DeepTransformContent<string> }>\n : never;\n\n/** Markdown string plugin. Replaces string node with a component that render the markdown. */\nexport const markdownStringPlugin: Plugins = {\n id: 'markdown-string-plugin',\n canHandle: (node) => typeof node === 'string',\n transform: (node: string, props, deepTransformNode) => {\n const {\n plugins, // Removed to avoid next error - Functions cannot be passed directly to Client Components\n ...rest\n } = props;\n\n const metadata = getMarkdownMetadata(node);\n\n const metadataPlugins: Plugins = {\n id: 'markdown-metadata-plugin',\n canHandle: (metadataNode) =>\n typeof metadataNode === 'string' ||\n typeof metadataNode === 'number' ||\n typeof metadataNode === 'boolean' ||\n !metadataNode,\n transform: (metadataNode, props) =>\n renderIntlayerNode({\n ...props,\n value: metadataNode,\n children: node,\n }),\n };\n\n // Transform metadata while keeping the same structure\n const metadataNodes = deepTransformNode(metadata, {\n plugins: [metadataPlugins],\n dictionaryKey: rest.dictionaryKey,\n keyPath: [],\n });\n\n return renderIntlayerNode({\n ...props,\n value: node,\n children: () => ({\n component: ContentSelectorWrapperComponent,\n props: {\n dictionaryKey: rest.dictionaryKey,\n keyPath: rest.keyPath,\n },\n children: () => {\n const { renderMarkdown } = useMarkdown();\n return renderMarkdown(node);\n },\n }),\n additionalProps: {\n metadata: metadataNodes,\n },\n });\n },\n};\n\nexport type MarkdownCond<T> = T extends {\n nodeType: NodeType | string;\n [NodeType.Markdown]: infer M;\n metadata?: infer U;\n}\n ? IntlayerNode<DeepTransformContent<M>, { metadata: DeepTransformContent<U> }>\n : never;\n\nexport const markdownPlugin: Plugins = {\n id: 'markdown-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Markdown,\n transform: (node: MarkdownContent, props, deepTransformNode) => {\n const newKeyPath: KeyPath[] = [\n ...props.keyPath,\n {\n type: NodeType.Markdown,\n },\n ];\n\n const children = node[NodeType.Markdown];\n\n return deepTransformNode(children, {\n ...props,\n children,\n keyPath: newKeyPath,\n plugins: [markdownStringPlugin, ...(props.plugins ?? [])],\n });\n },\n};\n\n/** ---------------------------------------------\n * PLUGINS RESULT\n * --------------------------------------------- */\n\nexport interface IInterpreterPluginAngular<T> {\n intlayerNode: IntlayerNodeCond<T>;\n markdown: MarkdownCond<T>;\n}\n\n/**\n * Insert this type as param of `DeepTransformContent` to avoid `intlayer` package pollution.\n *\n * Otherwise the the `angular-intlayer` plugins will override the types of `intlayer` functions.\n */\nexport type IInterpreterPluginState = IInterpreterPluginStateCore & {\n intlayerNode: true;\n markdown: true;\n};\n\nexport type DeepTransformContent<T> = DeepTransformContentCore<\n T,\n IInterpreterPluginState\n>;\n"],"mappings":";;;;;;;;;AA2BA,MAAaA,sBAA+B;CAC1C,IAAI;CACJ,YAAY,SACV,OAAO,SAAS,YAChB,OAAO,SAAS,YAChB,OAAO,SAAS;CAClB,YAAY,OAAO,EAAE,UAAU,GAAG,WAChCC,8CAAmB;EACjB,GAAG;EACH,OAAO;EACP,iBAAiB;GACf,WAAWC;GACX,OAAO;IACL,eAAe,KAAK;IACpB,SAAS,KAAK;IACf;GACS;GACX;EACF,CAAC;CACL;;AAWD,MAAaC,uBAAgC;CAC3C,IAAI;CACJ,YAAY,SAAS,OAAO,SAAS;CACrC,YAAY,MAAc,OAAO,sBAAsB;EACrD,MAAM,EACJ,SACA,GAAG,SACD;EAoBJ,MAAM,gBAAgB,2DAlBe,KAAK,EAkBQ;GAChD,SAAS,CAjBsB;IAC/B,IAAI;IACJ,YAAY,iBACV,OAAO,iBAAiB,YACxB,OAAO,iBAAiB,YACxB,OAAO,iBAAiB,aACxB,CAAC;IACH,YAAY,cAAc,YACxBF,8CAAmB;KACjB,GAAGG;KACH,OAAO;KACP,UAAU;KACX,CAAC;IACL,CAI2B;GAC1B,eAAe,KAAK;GACpB,SAAS,EAAE;GACZ,CAAC;AAEF,SAAOH,8CAAmB;GACxB,GAAG;GACH,OAAO;GACP,iBAAiB;IACf,WAAWC;IACX,OAAO;KACL,eAAe,KAAK;KACpB,SAAS,KAAK;KACf;IACD,gBAAgB;KACd,MAAM,EAAE,mBAAmBG,sDAAa;AACxC,YAAO,eAAe,KAAK;;IAE9B;GACD,iBAAiB,EACf,UAAU,eACX;GACF,CAAC;;CAEL;AAUD,MAAaC,iBAA0B;CACrC,IAAI;CACJ,YAAY,SACV,OAAO,SAAS,YAAY,MAAM,aAAaC,0BAAS;CAC1D,YAAY,MAAuB,OAAO,sBAAsB;EAC9D,MAAMC,aAAwB,CAC5B,GAAG,MAAM,SACT,EACE,MAAMD,0BAAS,UAChB,CACF;EAED,MAAM,WAAW,KAAKA,0BAAS;AAE/B,SAAO,kBAAkB,UAAU;GACjC,GAAG;GACH;GACA,SAAS;GACT,SAAS,CAAC,sBAAsB,GAAI,MAAM,WAAW,EAAE,CAAE;GAC1D,CAAC;;CAEL"}
1
+ {"version":3,"file":"plugins.cjs","names":["intlayerNodePlugins: Plugins","renderIntlayerNode","ContentSelectorWrapperComponent","markdownStringPlugin: Plugins","props","useMarkdown","markdownPlugin: Plugins","NodeType","newKeyPath: KeyPath[]"],"sources":["../../src/plugins.ts"],"sourcesContent":["import {\n type DeepTransformContent as DeepTransformContentCore,\n getMarkdownMetadata,\n type IInterpreterPluginState as IInterpreterPluginStateCore,\n type MarkdownContent,\n type Plugins,\n} from '@intlayer/core';\nimport { type KeyPath, NodeType } from '@intlayer/types';\nimport { ContentSelectorWrapperComponent } from './editor';\nimport { useMarkdown } from './markdown/installIntlayerMarkdown';\nimport { renderIntlayerNode } from './renderIntlayerNode';\n\n/** ---------------------------------------------\n * INTLAYER NODE PLUGIN\n * --------------------------------------------- */\n\nexport type IntlayerNodeCond<T> = T extends number | string\n ? IntlayerNode<T>\n : never;\n\nexport interface IntlayerNode<T, P = {}> {\n value: T;\n children?: any;\n additionalProps?: P;\n}\n\n/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */\nexport const intlayerNodePlugins: Plugins = {\n id: 'intlayer-node-plugin',\n canHandle: (node) =>\n typeof node === 'bigint' ||\n typeof node === 'string' ||\n typeof node === 'number',\n transform: (_node, { children, ...rest }) =>\n renderIntlayerNode({\n ...rest,\n value: children,\n children: () => ({\n component: ContentSelectorWrapperComponent,\n props: {\n dictionaryKey: rest.dictionaryKey,\n keyPath: rest.keyPath,\n },\n children: children,\n }),\n }),\n};\n\n/**\n * MARKDOWN PLUGIN\n */\n\nexport type MarkdownStringCond<T> = T extends string\n ? IntlayerNode<string, { metadata: DeepTransformContent<string> }>\n : never;\n\n/** Markdown string plugin. Replaces string node with a component that render the markdown. */\nexport const markdownStringPlugin: Plugins = {\n id: 'markdown-string-plugin',\n canHandle: (node) => typeof node === 'string',\n transform: (node: string, props, deepTransformNode) => {\n const {\n plugins, // Removed to avoid next error - Functions cannot be passed directly to Client Components\n ...rest\n } = props;\n\n const metadata = getMarkdownMetadata(node);\n\n const metadataPlugins: Plugins = {\n id: 'markdown-metadata-plugin',\n canHandle: (metadataNode) =>\n typeof metadataNode === 'string' ||\n typeof metadataNode === 'number' ||\n typeof metadataNode === 'boolean' ||\n !metadataNode,\n transform: (metadataNode, props) =>\n renderIntlayerNode({\n ...props,\n value: metadataNode,\n children: node,\n }),\n };\n\n // Transform metadata while keeping the same structure\n const metadataNodes = deepTransformNode(metadata, {\n plugins: [metadataPlugins],\n dictionaryKey: rest.dictionaryKey,\n keyPath: [],\n });\n\n return renderIntlayerNode({\n ...props,\n value: node,\n children: () => ({\n component: ContentSelectorWrapperComponent,\n props: {\n dictionaryKey: rest.dictionaryKey,\n keyPath: rest.keyPath,\n },\n children: () => {\n const { renderMarkdown } = useMarkdown();\n return renderMarkdown(node);\n },\n }),\n additionalProps: {\n metadata: metadataNodes,\n },\n });\n },\n};\n\nexport type MarkdownCond<T> = T extends {\n nodeType: NodeType | string;\n [NodeType.Markdown]: infer M;\n metadata?: infer U;\n}\n ? IntlayerNode<DeepTransformContent<M>, { metadata: DeepTransformContent<U> }>\n : never;\n\nexport const markdownPlugin: Plugins = {\n id: 'markdown-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Markdown,\n transform: (node: MarkdownContent, props, deepTransformNode) => {\n const newKeyPath: KeyPath[] = [\n ...props.keyPath,\n {\n type: NodeType.Markdown,\n },\n ];\n\n const children = node[NodeType.Markdown];\n\n return deepTransformNode(children, {\n ...props,\n children,\n keyPath: newKeyPath,\n plugins: [markdownStringPlugin, ...(props.plugins ?? [])],\n });\n },\n};\n\n/** ---------------------------------------------\n * PLUGINS RESULT\n * --------------------------------------------- */\n\nexport interface IInterpreterPluginAngular<T> {\n intlayerNode: IntlayerNodeCond<T>;\n markdown: MarkdownCond<T>;\n}\n\n/**\n * Insert this type as param of `DeepTransformContent` to avoid `intlayer` package pollution.\n *\n * Otherwise the the `angular-intlayer` plugins will override the types of `intlayer` functions.\n */\nexport type IInterpreterPluginState = IInterpreterPluginStateCore & {\n intlayerNode: true;\n markdown: true;\n};\n\nexport type DeepTransformContent<T> = DeepTransformContentCore<\n T,\n IInterpreterPluginState\n>;\n"],"mappings":";;;;;;;;;AA2BA,MAAaA,sBAA+B;CAC1C,IAAI;CACJ,YAAY,SACV,OAAO,SAAS,YAChB,OAAO,SAAS,YAChB,OAAO,SAAS;CAClB,YAAY,OAAO,EAAE,UAAU,GAAG,WAChCC,8CAAmB;EACjB,GAAG;EACH,OAAO;EACP,iBAAiB;GACf,WAAWC;GACX,OAAO;IACL,eAAe,KAAK;IACpB,SAAS,KAAK;IACf;GACS;GACX;EACF,CAAC;CACL;;AAWD,MAAaC,uBAAgC;CAC3C,IAAI;CACJ,YAAY,SAAS,OAAO,SAAS;CACrC,YAAY,MAAc,OAAO,sBAAsB;EACrD,MAAM,EACJ,SACA,GAAG,SACD;EAoBJ,MAAM,gBAAgB,0DAlBe,KAAK,EAkBQ;GAChD,SAAS,CAjBsB;IAC/B,IAAI;IACJ,YAAY,iBACV,OAAO,iBAAiB,YACxB,OAAO,iBAAiB,YACxB,OAAO,iBAAiB,aACxB,CAAC;IACH,YAAY,cAAc,YACxBF,8CAAmB;KACjB,GAAGG;KACH,OAAO;KACP,UAAU;KACX,CAAC;IACL,CAI2B;GAC1B,eAAe,KAAK;GACpB,SAAS,EAAE;GACZ,CAAC;AAEF,SAAOH,8CAAmB;GACxB,GAAG;GACH,OAAO;GACP,iBAAiB;IACf,WAAWC;IACX,OAAO;KACL,eAAe,KAAK;KACpB,SAAS,KAAK;KACf;IACD,gBAAgB;KACd,MAAM,EAAE,mBAAmBG,sDAAa;AACxC,YAAO,eAAe,KAAK;;IAE9B;GACD,iBAAiB,EACf,UAAU,eACX;GACF,CAAC;;CAEL;AAUD,MAAaC,iBAA0B;CACrC,IAAI;CACJ,YAAY,SACV,OAAO,SAAS,YAAY,MAAM,aAAaC,yBAAS;CAC1D,YAAY,MAAuB,OAAO,sBAAsB;EAC9D,MAAMC,aAAwB,CAC5B,GAAG,MAAM,SACT,EACE,MAAMD,yBAAS,UAChB,CACF;EAED,MAAM,WAAW,KAAKA,yBAAS;AAE/B,SAAO,kBAAkB,UAAU;GACjC,GAAG;GACH;GACA,SAAS;GACT,SAAS,CAAC,sBAAsB,GAAI,MAAM,WAAW,EAAE,CAAE;GAC1D,CAAC;;CAEL"}
@@ -1,14 +1,14 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  let node_path = require("node:path");
3
- let __intlayer_config = require("@intlayer/config");
4
- let __intlayer_webpack = require("@intlayer/webpack");
3
+ let _intlayer_config = require("@intlayer/config");
4
+ let _intlayer_webpack = require("@intlayer/webpack");
5
5
  let defu = require("defu");
6
6
 
7
7
  //#region src/webpack/mergeConfig.ts
8
8
  const mergeConfig = (baseConfig) => {
9
- const intlayerConfig = (0, __intlayer_config.getConfiguration)();
9
+ const intlayerConfig = (0, _intlayer_config.getConfiguration)();
10
10
  return (0, defu.defu)({
11
- resolve: { alias: (0, __intlayer_config.getAlias)({
11
+ resolve: { alias: (0, _intlayer_config.getAlias)({
12
12
  configuration: intlayerConfig,
13
13
  formatter: (value) => (0, node_path.resolve)(value)
14
14
  }) },
@@ -23,7 +23,7 @@ const mergeConfig = (baseConfig) => {
23
23
  test: /\.node$/,
24
24
  loader: "node-loader"
25
25
  }] },
26
- plugins: [new __intlayer_webpack.IntlayerPlugin(intlayerConfig)]
26
+ plugins: [new _intlayer_webpack.IntlayerPlugin(intlayerConfig)]
27
27
  }, baseConfig);
28
28
  };
29
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"mergeConfig.cjs","names":["IntlayerPlugin"],"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport { defu } from 'defu';\n/** @ts-ignore Configuration type exist but raise error */\nimport type { Configuration as WebpackConfig } from 'webpack';\n\nexport const mergeConfig = (baseConfig: WebpackConfig): WebpackConfig => {\n const intlayerConfig = getConfiguration();\n\n const config = {\n resolve: {\n alias: getAlias({\n configuration: intlayerConfig,\n formatter: (value: string) => resolve(value), // get absolute path\n }),\n },\n externals: {\n esbuild: 'esbuild',\n module: 'module',\n fs: 'fs',\n chokidar: 'chokidar',\n fsevents: 'fsevents',\n },\n module: {\n rules: [\n {\n test: /\\.node$/,\n loader: 'node-loader',\n },\n ],\n },\n plugins: [new IntlayerPlugin(intlayerConfig)],\n };\n\n return defu(config, baseConfig) as WebpackConfig;\n};\n"],"mappings":";;;;;;;AAOA,MAAa,eAAe,eAA6C;CACvE,MAAM,0DAAmC;AA2BzC,uBAzBe;EACb,SAAS,EACP,uCAAgB;GACd,eAAe;GACf,YAAY,iCAA0B,MAAM;GAC7C,CAAC,EACH;EACD,WAAW;GACT,SAAS;GACT,QAAQ;GACR,IAAI;GACJ,UAAU;GACV,UAAU;GACX;EACD,QAAQ,EACN,OAAO,CACL;GACE,MAAM;GACN,QAAQ;GACT,CACF,EACF;EACD,SAAS,CAAC,IAAIA,kCAAe,eAAe,CAAC;EAC9C,EAEmB,WAAW"}
1
+ {"version":3,"file":"mergeConfig.cjs","names":["IntlayerPlugin"],"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport { defu } from 'defu';\n/** @ts-ignore Configuration type exist but raise error */\nimport type { Configuration as WebpackConfig } from 'webpack';\n\nexport const mergeConfig = (baseConfig: WebpackConfig): WebpackConfig => {\n const intlayerConfig = getConfiguration();\n\n const config = {\n resolve: {\n alias: getAlias({\n configuration: intlayerConfig,\n formatter: (value: string) => resolve(value), // get absolute path\n }),\n },\n externals: {\n esbuild: 'esbuild',\n module: 'module',\n fs: 'fs',\n chokidar: 'chokidar',\n fsevents: 'fsevents',\n },\n module: {\n rules: [\n {\n test: /\\.node$/,\n loader: 'node-loader',\n },\n ],\n },\n plugins: [new IntlayerPlugin(intlayerConfig)],\n };\n\n return defu(config, baseConfig) as WebpackConfig;\n};\n"],"mappings":";;;;;;;AAOA,MAAa,eAAe,eAA6C;CACvE,MAAM,yDAAmC;AA2BzC,uBAzBe;EACb,SAAS,EACP,sCAAgB;GACd,eAAe;GACf,YAAY,iCAA0B,MAAM;GAC7C,CAAC,EACH;EACD,WAAW;GACT,SAAS;GACT,QAAQ;GACR,IAAI;GACJ,UAAU;GACV,UAAU;GACX;EACD,QAAQ,EACN,OAAO,CACL;GACE,MAAM;GACN,QAAQ;GACT,CACF,EACF;EACD,SAAS,CAAC,IAAIA,iCAAe,eAAe,CAAC;EAC9C,EAEmB,WAAW"}
@@ -1,11 +1,11 @@
1
- import * as _angular_core4 from "@angular/core";
1
+ import * as _angular_core0 from "@angular/core";
2
2
  import { InjectionToken, Signal } from "@angular/core";
3
3
  import { LocalesValues } from "@intlayer/types";
4
4
 
5
5
  //#region src/client/installIntlayer.d.ts
6
6
  declare const INTLAYER_TOKEN: InjectionToken<IntlayerProvider>;
7
7
  declare class IntlayerProvider {
8
- isCookieEnabled: _angular_core4.WritableSignal<boolean>;
8
+ isCookieEnabled: _angular_core0.WritableSignal<boolean>;
9
9
  private _locale;
10
10
  readonly locale: Signal<LocalesValues>;
11
11
  setLocale: (locale: LocalesValues) => void;
@@ -1,4 +1,4 @@
1
- import * as _angular_core5 from "@angular/core";
1
+ import * as _angular_core0 from "@angular/core";
2
2
  import * as _intlayer_types0 from "@intlayer/types";
3
3
  import { LocalesValues } from "@intlayer/types";
4
4
 
@@ -14,7 +14,7 @@ declare const useLocale: ({
14
14
  isCookieEnabled,
15
15
  onLocaleChange
16
16
  }?: useLocaleProps) => {
17
- locale: _angular_core5.Signal<"af" | "af-ZA" | "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-YE" | "az" | "az-AZ" | "be" | "be-BY" | "bg" | "bg-BG" | "bs" | "bs-BA" | "ca" | "ca-ES" | "cs" | "cs-CZ" | "cy" | "cy-GB" | "da" | "da-DK" | "de" | "de-AT" | "de-CH" | "de-DE" | "de-LI" | "de-LU" | "dv" | "dv-MV" | "el" | "el-GR" | "en" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-GB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-TT" | "en-US" | "en-ZA" | "en-ZW" | "eo" | "es" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-ES" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PR" | "es-PY" | "es-SV" | "es-UY" | "es-VE" | "et" | "et-EE" | "eu" | "eu-ES" | "fa" | "fa-IR" | "fi" | "fi-FI" | "fo" | "fo-FO" | "fr" | "fr-BE" | "fr-CA" | "fr-CH" | "fr-FR" | "fr-LU" | "fr-MC" | "ga" | "ga-IE" | "gd" | "gd-GB" | "gl" | "gl-ES" | "gu" | "gu-IN" | "he" | "he-IL" | "hi" | "hi-IN" | "hr" | "hr-BA" | "hr-HR" | "hu" | "hu-HU" | "hy" | "hy-AM" | "id" | "id-ID" | "is" | "is-IS" | "it" | "it-CH" | "it-IT" | "ja" | "ja-JP" | "ka" | "ka-GE" | "kk" | "kk-KZ" | "kn" | "kn-IN" | "ko" | "ko-KR" | "kok" | "kok-IN" | "ku" | "ku-TR" | "ky" | "ky-KG" | "lt" | "lt-LT" | "lv" | "lv-LV" | "mi" | "mi-NZ" | "mk" | "mk-MK" | "mn" | "mn-MN" | "mr" | "mr-IN" | "ms" | "ms-BN" | "ms-MY" | "mt" | "mt-MT" | "ml" | "ml-IN" | "no" | "nb" | "nb-NO" | "nl" | "nl-BE" | "nl-NL" | "nn" | "nn-NO" | "ns" | "ns-ZA" | "pa" | "pa-IN" | "pl" | "pl-PL" | "ps" | "ps-AR" | "pt" | "pt-BR" | "pt-PT" | "qu" | "qu-BO" | "qu-EC" | "qu-PE" | "ro" | "ro-RO" | "ro-MD" | "rm" | "rm-CH" | "ru" | "ru-RU" | "ru-MD" | "sa" | "sa-IN" | "se" | "se-FI" | "se-NO" | "se-SE" | "hsb" | "hsb-DE" | "dsb" | "dsb-DE" | "sk" | "sk-SK" | "sl" | "sl-SI" | "sq" | "sq-AL" | "sr" | "sr-BA" | "sr-SP" | "sv" | "sv-FI" | "sv-SE" | "sw" | "sw-KE" | "syr" | "syr-SY" | "ta" | "ta-IN" | "te" | "te-IN" | "th" | "th-TH" | "tl" | "tl-PH" | "tn" | "tn-ZA" | "tr" | "tr-TR" | "tt" | "tt-RU" | "ts" | "uk" | "uk-UA" | "ur" | "ur-PK" | "uz" | "uz-UZ" | "vi" | "vi-VN" | "ve" | "ve-ZA" | "xh" | "xh-ZA" | "zh" | "zh-Hans" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-Hant" | "zu" | "zu-ZA" | "bn" | "bn-BD" | "bn-IN" | "bn-MM" | "my" | "my-MM" | "km" | "km-KH" | "lo" | "lo-LA" | "yo" | "yo-NG" | "yi" | "yi-001" | "am" | "am-ET" | "ne" | "ne-NP" | "si" | "si-LK" | "sr-Cyrl" | "sr-RS" | "en-IN" | "en-SG" | "en-HK" | "en-NG" | "en-PK" | "en-MY" | "en-BW" | "en-KE" | "en-TZ" | "en-GH" | "en-UG" | "es-CU" | "es-US" | "pt-GW" | "pt-MZ" | "pt-ST" | "pt-CV" | "pt-TL" | "pt-MO" | "zh-TW" | "ar-MR" | "ar-PS" | "ar-SD" | "ar-DJ" | "ar-SO" | "ar-TD" | "ar-KM" | (string & {})>;
17
+ locale: _angular_core0.Signal<"af" | "af-ZA" | "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-YE" | "az" | "az-AZ" | "be" | "be-BY" | "bg" | "bg-BG" | "bs" | "bs-BA" | "ca" | "ca-ES" | "cs" | "cs-CZ" | "cy" | "cy-GB" | "da" | "da-DK" | "de" | "de-AT" | "de-CH" | "de-DE" | "de-LI" | "de-LU" | "dv" | "dv-MV" | "el" | "el-GR" | "en" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-GB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-TT" | "en-US" | "en-ZA" | "en-ZW" | "eo" | "es" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-ES" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PR" | "es-PY" | "es-SV" | "es-UY" | "es-VE" | "et" | "et-EE" | "eu" | "eu-ES" | "fa" | "fa-IR" | "fi" | "fi-FI" | "fo" | "fo-FO" | "fr" | "fr-BE" | "fr-CA" | "fr-CH" | "fr-FR" | "fr-LU" | "fr-MC" | "ga" | "ga-IE" | "gd" | "gd-GB" | "gl" | "gl-ES" | "gu" | "gu-IN" | "he" | "he-IL" | "hi" | "hi-IN" | "hr" | "hr-BA" | "hr-HR" | "hu" | "hu-HU" | "hy" | "hy-AM" | "id" | "id-ID" | "is" | "is-IS" | "it" | "it-CH" | "it-IT" | "ja" | "ja-JP" | "ka" | "ka-GE" | "kk" | "kk-KZ" | "kn" | "kn-IN" | "ko" | "ko-KR" | "kok" | "kok-IN" | "ku" | "ku-TR" | "ky" | "ky-KG" | "lt" | "lt-LT" | "lv" | "lv-LV" | "mi" | "mi-NZ" | "mk" | "mk-MK" | "mn" | "mn-MN" | "mr" | "mr-IN" | "ms" | "ms-BN" | "ms-MY" | "mt" | "mt-MT" | "ml" | "ml-IN" | "no" | "nb" | "nb-NO" | "nl" | "nl-BE" | "nl-NL" | "nn" | "nn-NO" | "ns" | "ns-ZA" | "pa" | "pa-IN" | "pl" | "pl-PL" | "ps" | "ps-AR" | "pt" | "pt-BR" | "pt-PT" | "qu" | "qu-BO" | "qu-EC" | "qu-PE" | "ro" | "ro-RO" | "ro-MD" | "rm" | "rm-CH" | "ru" | "ru-RU" | "ru-MD" | "sa" | "sa-IN" | "se" | "se-FI" | "se-NO" | "se-SE" | "hsb" | "hsb-DE" | "dsb" | "dsb-DE" | "sk" | "sk-SK" | "sl" | "sl-SI" | "sq" | "sq-AL" | "sr" | "sr-BA" | "sr-SP" | "sv" | "sv-FI" | "sv-SE" | "sw" | "sw-KE" | "syr" | "syr-SY" | "ta" | "ta-IN" | "te" | "te-IN" | "th" | "th-TH" | "tl" | "tl-PH" | "tn" | "tn-ZA" | "tr" | "tr-TR" | "tt" | "tt-RU" | "ts" | "uk" | "uk-UA" | "ur" | "ur-PK" | "uz" | "uz-UZ" | "vi" | "vi-VN" | "ve" | "ve-ZA" | "xh" | "xh-ZA" | "zh" | "zh-Hans" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-Hant" | "zu" | "zu-ZA" | "bn" | "bn-BD" | "bn-IN" | "bn-MM" | "my" | "my-MM" | "km" | "km-KH" | "lo" | "lo-LA" | "yo" | "yo-NG" | "yi" | "yi-001" | "am" | "am-ET" | "ne" | "ne-NP" | "si" | "si-LK" | "sr-Cyrl" | "sr-RS" | "en-IN" | "en-SG" | "en-HK" | "en-NG" | "en-PK" | "en-MY" | "en-BW" | "en-KE" | "en-TZ" | "en-GH" | "en-UG" | "es-CU" | "es-US" | "pt-GW" | "pt-MZ" | "pt-ST" | "pt-CV" | "pt-TL" | "pt-MO" | "zh-TW" | "ar-MR" | "ar-PS" | "ar-SD" | "ar-DJ" | "ar-SO" | "ar-TD" | "ar-KM" | (string & {})>;
18
18
  defaultLocale: _intlayer_types0.Locale;
19
19
  availableLocales: _intlayer_types0.Locale[];
20
20
  setLocale: (newLocale: LocalesValues) => void;
@@ -1,4 +1,4 @@
1
- import * as _angular_core0 from "@angular/core";
1
+ import * as _angular_core1 from "@angular/core";
2
2
  import { NodeProps } from "@intlayer/core";
3
3
 
4
4
  //#region src/editor/ContentSelectorWrapper.component.d.ts
@@ -16,8 +16,8 @@ declare class ContentSelectorWrapperComponent {
16
16
  private focusDictionary;
17
17
  private editorEnabled;
18
18
  constructor();
19
- isSelected: _angular_core0.Signal<boolean>;
20
- enabled: _angular_core0.Signal<boolean>;
19
+ isSelected: _angular_core1.Signal<boolean>;
20
+ enabled: _angular_core1.Signal<boolean>;
21
21
  handleSelect(): void;
22
22
  }
23
23
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as _angular_core1 from "@angular/core";
1
+ import * as _angular_core3 from "@angular/core";
2
2
  import { KeyPath, Locale } from "@intlayer/types";
3
3
 
4
4
  //#region src/editor/EditedContentRenderer.component.d.ts
@@ -16,7 +16,7 @@ declare class EditedContentRendererComponent {
16
16
  /**
17
17
  * Object → getContent → string, same as the React version.
18
18
  */
19
- renderedContent: _angular_core1.Signal<string>;
19
+ renderedContent: _angular_core3.Signal<string>;
20
20
  }
21
21
  //#endregion
22
22
  export { EditedContentRendererComponent, EditedContentRendererProps };
@@ -1,5 +1,5 @@
1
1
  import { useCrossFrameState } from "./useCrossFrameState.js";
2
- import * as _angular_core2 from "@angular/core";
2
+ import * as _angular_core4 from "@angular/core";
3
3
 
4
4
  //#region src/editor/useCrossURLPathState.d.ts
5
5
 
@@ -9,14 +9,14 @@ import * as _angular_core2 from "@angular/core";
9
9
  * @param opts - Options for controlling emit and receive behavior
10
10
  * @returns A tuple containing [state signal, setState function, forceSync function]
11
11
  */
12
- declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [_angular_core2.Signal<string>, (v: string | ((prev: string) => string)) => void, () => void];
12
+ declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [_angular_core4.Signal<string>, (v: string | ((prev: string) => string)) => void, () => void];
13
13
  /**
14
14
  * Hook for host applications to push URL path changes into the shared state
15
15
  * This also monkey patches history methods to capture navigation events
16
16
  * @param initial - The initial URL path
17
17
  * @returns A tuple containing [state signal, setState function]
18
18
  */
19
- declare const useCrossURLPathSetter: (initial?: string) => readonly [_angular_core2.Signal<string>, (v: string | ((prev: string) => string)) => void];
19
+ declare const useCrossURLPathSetter: (initial?: string) => readonly [_angular_core4.Signal<string>, (v: string | ((prev: string) => string)) => void];
20
20
  //#endregion
21
21
  export { useCrossURLPathSetter, useCrossURLPathState };
22
22
  //# sourceMappingURL=useCrossURLPathState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"sourcesContent":[],"mappings":";;;;;;;AAgBA;AAAkC,KAAtB,gBAAsB,CAAA,CAAA,CAAA,GAAA,CAAA,SAAA,MAAA,GAAA,MAAA,GAC9B,YAD8B,CACjB,CADiB,CAAA,GAAA,KAAA;AACjB,UAGA,YAHA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,CAAA,CAAA;EAAb,KAAA,EAIK,CAJL;EAAY,QAAA,CAAA,EAAA,GAAA;EAGC,eAAY,CAAA,EAGT,CAHS;AAO7B;AAyBA;AAAoC,cAzBvB,mBAyBuB,EAzBF,OAyBE;;;;AAKvB,KALD,kBAyDX,CAAA,CAAA,CAAA,GAzDmC,CAyDnC,SAAA,MAAA,GAxDG,YAwDH,CAAA,MAAA,EAAA;EAEW,QAAA,EA1DyB,oBA0Db,CAAA,MAAA,CAAA;CAAM,CAAA,GAAA,KAAA;;AAE3B,cAxDU,oBAwDD,EAxDuB,OAwDvB;AAG0B,KAL1B,YAK0B,CAAA,CAAA,CAAA,GALR,CAKQ,SAAA;EAArB,QAAA,EAJL,QAIK,GAAA,MAAA;EAA0D,CAHxE,QAAA,CAAS,QAAA,CAG+D,EAAA,KAAA,EAAA;EAArB,QAAA,CAAA,EAAA,KAAA,EAAA;CAAlD,GAAA,YAAA,CAAa,oBAAb,CAAkC,CAAlC,CAAA,EAAA;EAAY,QAAA,EAAsC,oBAAtC,CAA2D,CAA3D,CAAA;AAGhB,CAAA,CAAA,GAAa,KAAA;AA2BI,cA3BJ,cA2B6B,EA3Bb,OA2Ba;;;;AAE9B,UAFK,yBAEL,CAAA,CAAA,CAAA,CAAA;EAAY,YAAA,EADR,gBACQ,CADS,CACT,CAAA;EAQZ,QAAA,EARA,YAQA,CARa,CAQb,CAAA;AAKZ;;;;;;KALY,uBAAA,GAA0B;;;;KAK1B,0BAA0B,uBACpC,GACA"}
1
+ {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"sourcesContent":[],"mappings":";;;;;;;AAgBA;AAAkC,KAAtB,gBAAsB,CAAA,CAAA,CAAA,GAAA,CAAA,SAAA,MAAA,GAAA,MAAA,GAC9B,YAD8B,CACjB,CADiB,CAAA,GAAA,KAAA;AACjB,UAGA,YAHA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,CAAA,CAAA;EAAb,KAAA,EAIK,CAJL;EAAY,QAAA,CAAA,EAAA,GAAA;EAGC,eAAY,CAAA,EAGT,CAHS;AAO7B;AAyBA;AAAoC,cAzBvB,mBAyBuB,EAzBF,OAyBE;;;;AAKvB,KALD,kBAyDX,CAAA,CAAA,CAAA,GAzDmC,CAyDnC,SApDkC,MAoDlC,GAxDG,YAwDH,CAAA,MAAA,EAAA;EAEW,QAAA,EA1DyB,oBA0Db,CAAA,MAAA,CAAA;CAAM,CAAA,GAAA,KAAA;;AAE3B,cAxDU,oBAwDD,EAxDuB,OAwDvB;AAG0B,KAL1B,YAK0B,CAAA,CAAA,CAAA,GALR,CAKQ,SAAA;EAArB,QAAA,EAJL,QAIK,GAAA,MAAA;EAA0D,CAHxE,QAAA,CAAS,QAAA,CAG+D,EAAA,KAAA,EAAA;EAArB,QAAA,CAAA,EAAA,KAAA,EAAA;CAAlD,GAAA,YAAA,CAAa,oBAAb,CAAkC,CAAlC,CAAA,EAAA;EAAY,QAAA,EAAsC,oBAAtC,CAA2D,CAA3D,CAAA;AAGhB,CAAA,CAAA,GAAa,KAAA;AA2BI,cA3BJ,cA2B6B,EA3Bb,OA2Ba;;;;AAE9B,UAFK,yBAEL,CAAA,CAAA,CAAA,CAAA;EAAY,YAAA,EADR,gBACQ,CADS,CACT,CAAA;EAQZ,QAAA,EARA,YAQA,CARa,CAQb,CAAA;AAKZ;;;;;;KALY,uBAAA,GAA0B;;;;KAK1B,0BAA0B,uBACpC,GACA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-intlayer",
3
- "version": "7.5.0-canary.1",
3
+ "version": "7.5.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -85,23 +85,23 @@
85
85
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
86
86
  },
87
87
  "dependencies": {
88
- "@intlayer/chokidar": "7.5.0-canary.1",
89
- "@intlayer/config": "7.5.0-canary.1",
90
- "@intlayer/core": "7.5.0-canary.1",
91
- "@intlayer/dictionaries-entry": "7.5.0-canary.1",
92
- "@intlayer/editor": "7.5.0-canary.1",
93
- "@intlayer/types": "7.5.0-canary.1",
94
- "@intlayer/webpack": "7.5.0-canary.1",
88
+ "@intlayer/chokidar": "7.5.0",
89
+ "@intlayer/config": "7.5.0",
90
+ "@intlayer/core": "7.5.0",
91
+ "@intlayer/dictionaries-entry": "7.5.0",
92
+ "@intlayer/editor": "7.5.0",
93
+ "@intlayer/types": "7.5.0",
94
+ "@intlayer/webpack": "7.5.0",
95
95
  "defu": "6.1.4"
96
96
  },
97
97
  "devDependencies": {
98
- "@types/node": "25.0.2",
98
+ "@types/node": "25.0.3",
99
99
  "@types/webpack": "5.28.5",
100
100
  "@utils/ts-config": "1.0.4",
101
101
  "@utils/ts-config-types": "1.0.4",
102
102
  "@utils/tsdown-config": "1.0.4",
103
103
  "rimraf": "6.1.2",
104
- "tsdown": "0.18.0",
104
+ "tsdown": "0.18.1",
105
105
  "typescript": "5.9.3",
106
106
  "vitest": "4.0.16"
107
107
  },