angular-intlayer 9.4.2 → 9.4.4

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 (85) hide show
  1. package/dist/cjs/UI/IntlayerNode.component.cjs +2 -2
  2. package/dist/cjs/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/decorate.cjs +1 -1
  3. package/dist/cjs/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/decorateMetadata.cjs +1 -1
  4. package/dist/cjs/editor/ContentSelector.component.cjs +2 -2
  5. package/dist/cjs/editor/EditorProvider.component.cjs +2 -2
  6. package/dist/cjs/html/installIntlayerHTML.cjs +1 -1
  7. package/dist/cjs/markdown/installIntlayerMarkdown.cjs +1 -1
  8. package/dist/esm/UI/IntlayerNode.component.mjs +2 -2
  9. package/dist/esm/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/decorate.mjs +1 -1
  10. package/dist/esm/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/decorateMetadata.mjs +1 -1
  11. package/dist/esm/editor/ContentSelector.component.mjs +2 -2
  12. package/dist/esm/editor/EditorProvider.component.mjs +2 -2
  13. package/dist/esm/html/installIntlayerHTML.mjs +1 -1
  14. package/dist/esm/markdown/installIntlayerMarkdown.mjs +1 -1
  15. package/dist/types/UI/IntlayerNode.component.d.ts +1 -2
  16. package/dist/types/UI/IntlayerNode.component.d.ts.map +1 -1
  17. package/dist/types/analytics/exposureSink.d.ts +4 -5
  18. package/dist/types/analytics/exposureSink.d.ts.map +1 -1
  19. package/dist/types/analytics/useAnalytics.d.ts +2 -3
  20. package/dist/types/analytics/useAnalytics.d.ts.map +1 -1
  21. package/dist/types/analytics/useConversion.d.ts +2 -3
  22. package/dist/types/analytics/useConversion.d.ts.map +1 -1
  23. package/dist/types/analytics/useExperiment.d.ts +2 -3
  24. package/dist/types/analytics/useExperiment.d.ts.map +1 -1
  25. package/dist/types/client/installIntlayer.d.ts +3 -3
  26. package/dist/types/client/installIntlayer.d.ts.map +1 -1
  27. package/dist/types/client/intlayerToken.d.ts +3 -4
  28. package/dist/types/client/intlayerToken.d.ts.map +1 -1
  29. package/dist/types/client/useDictionary.d.ts +1 -2
  30. package/dist/types/client/useDictionary.d.ts.map +1 -1
  31. package/dist/types/client/useDictionaryAsync.d.ts +1 -2
  32. package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
  33. package/dist/types/client/useDictionaryDynamic.d.ts +1 -2
  34. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  35. package/dist/types/client/useIntlayer.d.ts +2 -3
  36. package/dist/types/client/useIntlayer.d.ts.map +1 -1
  37. package/dist/types/client/useLoadDynamic.d.ts +1 -2
  38. package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
  39. package/dist/types/client/useLocale.d.ts +3 -4
  40. package/dist/types/client/useLocale.d.ts.map +1 -1
  41. package/dist/types/client/useLocaleStorage.d.ts +6 -7
  42. package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
  43. package/dist/types/client/usePathname.d.ts +1 -2
  44. package/dist/types/client/usePathname.d.ts.map +1 -1
  45. package/dist/types/editor/ContentSelector.component.d.ts +1 -2
  46. package/dist/types/editor/ContentSelector.component.d.ts.map +1 -1
  47. package/dist/types/editor/EditorProvider.component.d.ts +1 -2
  48. package/dist/types/editor/EditorProvider.component.d.ts.map +1 -1
  49. package/dist/types/editor/useEditor.d.ts +2 -3
  50. package/dist/types/editor/useEditor.d.ts.map +1 -1
  51. package/dist/types/esbuild/plugin.d.ts +4 -5
  52. package/dist/types/esbuild/plugin.d.ts.map +1 -1
  53. package/dist/types/format/useCompact.d.ts +1 -2
  54. package/dist/types/format/useCompact.d.ts.map +1 -1
  55. package/dist/types/format/useCurrency.d.ts +1 -2
  56. package/dist/types/format/useCurrency.d.ts.map +1 -1
  57. package/dist/types/format/useDate.d.ts +1 -2
  58. package/dist/types/format/useDate.d.ts.map +1 -1
  59. package/dist/types/format/useIntl.d.ts +1 -2
  60. package/dist/types/format/useIntl.d.ts.map +1 -1
  61. package/dist/types/format/useList.d.ts +1 -6
  62. package/dist/types/format/useList.d.ts.map +1 -1
  63. package/dist/types/format/useNumber.d.ts +1 -2
  64. package/dist/types/format/useNumber.d.ts.map +1 -1
  65. package/dist/types/format/usePercentage.d.ts +1 -2
  66. package/dist/types/format/usePercentage.d.ts.map +1 -1
  67. package/dist/types/format/useRelativeTime.d.ts +1 -2
  68. package/dist/types/format/useRelativeTime.d.ts.map +1 -1
  69. package/dist/types/format/useUnit.d.ts +1 -2
  70. package/dist/types/format/useUnit.d.ts.map +1 -1
  71. package/dist/types/getDictionary.d.ts +1 -2
  72. package/dist/types/getDictionary.d.ts.map +1 -1
  73. package/dist/types/getIntlayer.d.ts +1 -2
  74. package/dist/types/getIntlayer.d.ts.map +1 -1
  75. package/dist/types/html/installIntlayerHTML.d.ts +5 -6
  76. package/dist/types/html/installIntlayerHTML.d.ts.map +1 -1
  77. package/dist/types/markdown/installIntlayerMarkdown.d.ts +10 -10
  78. package/dist/types/markdown/installIntlayerMarkdown.d.ts.map +1 -1
  79. package/dist/types/plugins.d.ts +15 -16
  80. package/dist/types/plugins.d.ts.map +1 -1
  81. package/dist/types/renderIntlayerNode.d.ts +2 -3
  82. package/dist/types/renderIntlayerNode.d.ts.map +1 -1
  83. package/dist/types/webpack/mergeConfig.d.ts +1 -2
  84. package/dist/types/webpack/mergeConfig.d.ts.map +1 -1
  85. package/package.json +16 -16
@@ -1,7 +1,6 @@
1
1
  //#region src/format/useCurrency.d.ts
2
- declare const useCurrency: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
2
+ export declare const useCurrency: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
3
3
  locale?: import("@intlayer/types").LocalesValues;
4
4
  }) => string>;
5
5
  //#endregion
6
- export { useCurrency };
7
6
  //# sourceMappingURL=useCurrency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";cAIa,2CAAW,QAAA,wBAAA,UAAA,KAAA"}
1
+ {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";qBAIa,2CAAW,QAAA,wBAAA,UAAA,KAAA"}
@@ -2,9 +2,8 @@
2
2
  /**
3
3
  * Angular client hook that provides a localized date/time formatter.
4
4
  */
5
- declare const useDate: () => import("@angular/core").Signal<(date: string | number | Date, options?: import("@intlayer/core/formatters").DateTimePreset | (Intl.DateTimeFormatOptions & {
5
+ export declare const useDate: () => import("@angular/core").Signal<(date: string | number | Date, options?: import("@intlayer/core/formatters").DateTimePreset | (Intl.DateTimeFormatOptions & {
6
6
  locale?: import("@intlayer/types").LocalesValues;
7
7
  })) => string>;
8
8
  //#endregion
9
- export { useDate };
10
9
  //# sourceMappingURL=useDate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;cAOa,uCAAO,QAAA,wBAAA,MAAA,8CAAA,kBAAA,KAAA"}
1
+ {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;qBAOa,uCAAO,QAAA,wBAAA,MAAA,8CAAA,kBAAA,KAAA"}
@@ -4,7 +4,6 @@ import { WrappedIntl } from "@intlayer/core/formatters";
4
4
  /**
5
5
  * Angular composable that provides a locale-bound `Intl` object as a Signal.
6
6
  */
7
- declare const useIntl: (locale?: LocalesValues) => import("@angular/core").Signal<WrappedIntl>;
7
+ export declare const useIntl: (locale?: LocalesValues) => import("@angular/core").Signal<WrappedIntl>;
8
8
  //#endregion
9
- export { useIntl };
10
9
  //# sourceMappingURL=useIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/format/useIntl.ts"],"mappings":";;;;;;cAQa,UAAO,SAAa,0CAAa,OAAA"}
1
+ {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/format/useIntl.ts"],"mappings":";;;;;;qBAQa,UAAO,SAAa,0CAAa,OAAA"}
@@ -1,11 +1,6 @@
1
1
  //#region src/format/useList.d.ts
2
- declare const useList: () => import("@angular/core").Signal<(values: (string | number)[], options?: {
3
- localeMatcher?: 'lookup' | 'best fit';
4
- type?: 'conjunction' | 'disjunction' | 'unit';
5
- style?: 'long' | 'short' | 'narrow';
6
- } & {
2
+ export declare const useList: () => import("@angular/core").Signal<(values: (string | number)[], options?: import("@intlayer/core/formatters").ListFormatOptions & {
7
3
  locale?: import("@intlayer/types").LocalesValues;
8
4
  }) => string>;
9
5
  //#endregion
10
- export { useList };
11
6
  //# sourceMappingURL=useList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";cAIa,uCAAO,QAAA,6BAAA"}
1
+ {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";qBAIa,uCAAO,QAAA,6BAAA,8CAAA"}
@@ -2,9 +2,8 @@
2
2
  /**
3
3
  * Angular client hook that provides a localized number formatter.
4
4
  */
5
- declare const useNumber: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
5
+ export declare const useNumber: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
6
6
  locale?: import("@intlayer/types").LocalesValues;
7
7
  }) => string>;
8
8
  //#endregion
9
- export { useNumber };
10
9
  //# sourceMappingURL=useNumber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;cAOa,yCAAS,QAAA,wBAAA,SAAA,KAAA"}
1
+ {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;qBAOa,yCAAS,QAAA,wBAAA,SAAA,KAAA"}
@@ -1,7 +1,6 @@
1
1
  //#region src/format/usePercentage.d.ts
2
- declare const usePercentage: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
2
+ export declare const usePercentage: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
3
3
  locale?: import("@intlayer/types").LocalesValues;
4
4
  }) => string>;
5
5
  //#endregion
6
- export { usePercentage };
7
6
  //# sourceMappingURL=usePercentage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";cAIa,6CAAa,QAAA,wBAAA,SAAA,KAAA"}
1
+ {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";qBAIa,6CAAa,QAAA,wBAAA,SAAA,KAAA"}
@@ -1,8 +1,7 @@
1
1
  //#region src/format/useRelativeTime.d.ts
2
- declare const useRelativeTime: () => import("@angular/core").Signal<(from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
2
+ export declare const useRelativeTime: () => import("@angular/core").Signal<(from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
3
3
  locale?: import("@intlayer/types").LocalesValues;
4
4
  unit?: Intl.RelativeTimeFormatUnit;
5
5
  }) => string>;
6
6
  //#endregion
7
- export { useRelativeTime };
8
7
  //# sourceMappingURL=useRelativeTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";cAIa,+CAAe,QAAA,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";qBAIa,+CAAe,QAAA,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA"}
@@ -1,7 +1,6 @@
1
1
  //#region src/format/useUnit.d.ts
2
- declare const useUnit: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
2
+ export declare const useUnit: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
3
3
  locale?: import("@intlayer/types").LocalesValues;
4
4
  }) => string>;
5
5
  //#endregion
6
- export { useUnit };
7
6
  //# sourceMappingURL=useUnit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";cAIa,uCAAO,QAAA,wBAAA,UAAA,KAAA"}
1
+ {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";qBAIa,uCAAO,QAAA,wBAAA,UAAA,KAAA"}
@@ -7,7 +7,6 @@ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, Resol
7
7
  * content for the given locale or selector (`{ item }`, `{ variant }`,
8
8
  * optionally combined with `locale`).
9
9
  */
10
- declare const getDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>;
10
+ export declare const getDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>;
11
11
  //#endregion
12
- export { getDictionary };
13
12
  //# sourceMappingURL=getDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;;;cAmBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,MAClB,qBACD,kCAAkC,GAAG,IACrC,sBAAsB"}
1
+ {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;;;qBAmBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,MAClB,qBACD,kCAAkC,GAAG,IACrC,sBAAsB"}
@@ -6,7 +6,6 @@ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySe
6
6
  * locale or selector (`{ item }`, `{ variant }`,
7
7
  * optionally combined with `locale`).
8
8
  */
9
- declare const getIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>;
9
+ export declare const getIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>;
10
10
  //#endregion
11
- export { getIntlayer };
12
11
  //# sourceMappingURL=getIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"mappings":";;;;;;;;cAgBa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,MAClB,qBACD,yBAAyB,GAAG,IAC5B,sBAAsB"}
1
+ {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"mappings":";;;;;;;;qBAgBa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,MAClB,qBACD,yBAAyB,GAAG,IAC5B,sBAAsB"}
@@ -1,33 +1,32 @@
1
1
  import { InjectionToken, TemplateRef } from "@angular/core";
2
2
  //#region src/html/installIntlayerHTML.d.ts
3
- declare const INTLAYER_HTML_TOKEN: InjectionToken<IntlayerHTMLProvider>;
3
+ export declare const INTLAYER_HTML_TOKEN: InjectionToken<IntlayerHTMLProvider>;
4
4
  type RenderHTMLOptions = {
5
5
  components?: any;
6
6
  wrapper?: string;
7
7
  options?: any;
8
8
  };
9
9
  type RenderHTMLFunction = (html: string, overrides?: any | RenderHTMLOptions) => string | TemplateRef<any> | Promise<string | TemplateRef<any>>;
10
- type IntlayerHTMLProvider = {
10
+ export type IntlayerHTMLProvider = {
11
11
  renderHTML: RenderHTMLFunction;
12
12
  };
13
13
  /**
14
14
  * Create IntlayerHTML provider configuration
15
15
  */
16
- declare const createIntlayerHTMLProvider: (renderHTML?: RenderHTMLFunction) => {
16
+ export declare const createIntlayerHTMLProvider: (renderHTML?: RenderHTMLFunction) => {
17
17
  provide: InjectionToken<IntlayerHTMLProvider>;
18
18
  useValue: IntlayerHTMLProvider;
19
19
  };
20
20
  /**
21
21
  * Injectable service for HTML rendering
22
22
  */
23
- declare class IntlayerHTMLService {
23
+ export declare class IntlayerHTMLService {
24
24
  private htmlProvider;
25
25
  renderHTML(html: string, overrides?: any): string | TemplateRef<any> | Promise<string | TemplateRef<any>>;
26
26
  }
27
27
  /**
28
28
  * Function to inject HTML provider
29
29
  */
30
- declare const useHTML: () => IntlayerHTMLProvider;
30
+ export declare const useHTML: () => IntlayerHTMLProvider;
31
31
  //#endregion
32
- export { INTLAYER_HTML_TOKEN, IntlayerHTMLProvider, IntlayerHTMLService, createIntlayerHTMLProvider, useHTML };
33
32
  //# sourceMappingURL=installIntlayerHTML.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installIntlayerHTML.d.ts","names":[],"sources":["../../../src/html/installIntlayerHTML.ts"],"mappings":";;cAOa,qBAAmB,eAAA;KAI3B;EACH;EACA;EACA;;KAGG,sBACH,cACA,kBAAkB,+BACN,mBAAmB,iBAAiB;KAEtC;EACV,YAAY;;;;;cAYD,6BAA0B,aACzB;EAEZ,SAAO,eAAA;EACP,UAEK;;;;;cASM;UACH;EAIR,WACE,cACA,2BACU,mBAAmB,iBAAiB;;;;;cAWrC,eAAc"}
1
+ {"version":3,"file":"installIntlayerHTML.d.ts","names":[],"sources":["../../../src/html/installIntlayerHTML.ts"],"mappings":";;qBAOa,qBAAmB,eAAA;KAI3B;EACH;EACA;EACA;;KAGG,sBACH,cACA,kBAAkB,+BACN,mBAAmB,iBAAiB;YAEtC;EACV,YAAY;;;;;qBAYD,6BAA0B,aACzB;EAEZ,SAAO,eAAA;EACP,UAEK;;;;;qBASM;UACH;EAIR,WACE,cACA,2BACU,mBAAmB,iBAAiB;;;;;qBAWrC,eAAc"}
@@ -5,23 +5,23 @@ import { CompileOptions, MarkdownRuntime, ParsedMarkdown } from "@intlayer/core/
5
5
  * Options accepted by `compileMarkdown` and `parseMarkdown` to customise
6
6
  * rendering behaviour (custom components, sanitizer, slugify, rule hooks, …).
7
7
  */
8
- type MarkdownRendererOptions = CompileOptions;
8
+ export type MarkdownRendererOptions = CompileOptions;
9
9
  /**
10
10
  * Angular `InjectionToken` used to provide a custom markdown renderer via the
11
11
  * DI system. Use `createIntlayerMarkdownProvider` to create the provider value
12
12
  * and register it in a module or component's `providers` array.
13
13
  */
14
- declare const INTLAYER_MARKDOWN_TOKEN: InjectionToken<IntlayerMarkdownProvider>;
14
+ export declare const INTLAYER_MARKDOWN_TOKEN: InjectionToken<IntlayerMarkdownProvider>;
15
15
  type RenderMarkdownOptions = {
16
16
  components?: any;
17
17
  wrapper?: string;
18
18
  options?: any;
19
19
  };
20
20
  type RenderMarkdownFunction = (markdown: string | ParsedMarkdown, overrides?: any | RenderMarkdownOptions) => string | TemplateRef<any> | Promise<string | TemplateRef<any>>;
21
- type IntlayerMarkdownProvider = {
21
+ export type IntlayerMarkdownProvider = {
22
22
  renderMarkdown: RenderMarkdownFunction;
23
23
  };
24
- declare const htmlRuntime: MarkdownRuntime;
24
+ export declare const htmlRuntime: MarkdownRuntime;
25
25
  /**
26
26
  * **Step 1 of 2 — parse only.**
27
27
  * Converts a raw markdown string into a `ParsedMarkdown` AST without rendering
@@ -40,7 +40,7 @@ declare const htmlRuntime: MarkdownRuntime;
40
40
  * const html = compileMarkdown(ast);
41
41
  * ```
42
42
  */
43
- declare const parseMarkdown: (markdown?: string, options?: any) => ParsedMarkdown;
43
+ export declare const parseMarkdown: (markdown?: string, options?: any) => ParsedMarkdown;
44
44
  /**
45
45
  * **Steps 1 + 2 — parse and render in one shot.**
46
46
  * Accepts a raw markdown string or a pre-parsed `ParsedMarkdown` AST and
@@ -56,7 +56,7 @@ declare const parseMarkdown: (markdown?: string, options?: any) => ParsedMarkdow
56
56
  * const html = compileMarkdown('# Hello **world**');
57
57
  * ```
58
58
  */
59
- declare const compileMarkdown: (input?: string | ParsedMarkdown, options?: any) => string;
59
+ export declare const compileMarkdown: (input?: string | ParsedMarkdown, options?: any) => string;
60
60
  /**
61
61
  * Returns an Angular `Provider` object that registers a custom markdown render
62
62
  * function under `INTLAYER_MARKDOWN_TOKEN`. Pass the returned provider to a
@@ -74,7 +74,7 @@ declare const compileMarkdown: (input?: string | ParsedMarkdown, options?: any)
74
74
  * export class AppModule {}
75
75
  * ```
76
76
  */
77
- declare const createIntlayerMarkdownProvider: (renderMarkdown?: RenderMarkdownFunction) => {
77
+ export declare const createIntlayerMarkdownProvider: (renderMarkdown?: RenderMarkdownFunction) => {
78
78
  provide: InjectionToken<IntlayerMarkdownProvider>;
79
79
  useValue: IntlayerMarkdownProvider;
80
80
  };
@@ -96,7 +96,7 @@ declare const createIntlayerMarkdownProvider: (renderMarkdown?: RenderMarkdownFu
96
96
  * }
97
97
  * ```
98
98
  */
99
- declare class IntlayerMarkdownService {
99
+ export declare class IntlayerMarkdownService {
100
100
  private markdownProvider;
101
101
  renderMarkdown(markdown: string | ParsedMarkdown, overrides?: any): string | TemplateRef<any> | Promise<string | TemplateRef<any>>;
102
102
  }
@@ -119,7 +119,7 @@ declare class IntlayerMarkdownService {
119
119
  * }
120
120
  * ```
121
121
  */
122
- declare const useMarkdown: () => IntlayerMarkdownProvider;
122
+ export declare const useMarkdown: () => IntlayerMarkdownProvider;
123
123
  //#endregion
124
- export { INTLAYER_MARKDOWN_TOKEN, IntlayerMarkdownProvider, IntlayerMarkdownService, MarkdownRendererOptions, type ParsedMarkdown, compileMarkdown, createIntlayerMarkdownProvider, htmlRuntime, parseMarkdown, useMarkdown };
124
+ export type { ParsedMarkdown };
125
125
  //# sourceMappingURL=installIntlayerMarkdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installIntlayerMarkdown.d.ts","names":[],"sources":["../../../src/markdown/installIntlayerMarkdown.ts"],"mappings":";;;;;;;KAsBY,0BAA0B;;;;;;cAOzB,yBAAuB,eAAA;KAG/B;EACH;EACA;EACA;;KAGG,0BACH,mBAAmB,gBACnB,kBAAkB,mCACN,mBAAmB,iBAAiB;KAEtC;EACV,gBAAgB;;cAIL,aAAa;;;;;;;;;;;;;;;;;;;cA0Eb,gBAAa,mBACR,kBAEf;;;;;;;;;;;;;;;;cAmCU,kBAAe,iBACV,gBAAc;;;;;;;;;;;;;;;;;;cAkDnB,iCAA8B,iBACzB;EAEhB,SAAO,eAAA;EACP,UAEK;;;;;;;;;;;;;;;;;;;;cAwBM;UACH;EAIR,eACE,mBAAmB,gBACnB,2BACU,mBAAmB,iBAAiB;;;;;;;;;;;;;;;;;;;;;cA2BrC,mBAAkB"}
1
+ {"version":3,"file":"installIntlayerMarkdown.d.ts","names":[],"sources":["../../../src/markdown/installIntlayerMarkdown.ts"],"mappings":";;;;;;;YAsBY,0BAA0B;;;;;;qBAOzB,yBAAuB,eAAA;KAG/B;EACH;EACA;EACA;;KAGG,0BACH,mBAAmB,gBACnB,kBAAkB,mCACN,mBAAmB,iBAAiB;YAEtC;EACV,gBAAgB;;qBAIL,aAAa;;;;;;;;;;;;;;;;;;;qBA0Eb,gBAAa,mBACR,kBAEf;;;;;;;;;;;;;;;;qBAmCU,kBAAe,iBACV,gBAAc;;;;;;;;;;;;;;;;;;qBAkDnB,iCAA8B,iBACzB;EAEhB,SAAO,eAAA;EACP,UAEK;;;;;;;;;;;;;;;;;;;;qBAwBM;UACH;EAIR,eACE,mBAAmB,gBACnB,2BACU,mBAAmB,iBAAiB;;;;;;;;;;;;;;;;;;;;;qBA2BrC,mBAAkB"}
@@ -6,23 +6,23 @@ import { NodeType } from "@intlayer/types/nodeType";
6
6
  /** ---------------------------------------------
7
7
  * INTLAYER NODE PLUGIN
8
8
  * --------------------------------------------- */
9
- type IntlayerNodeCond<T> = T extends number | string ? IntlayerNode<T> : never;
10
- interface IntlayerNode<T, P = {}> {
9
+ export type IntlayerNodeCond<T> = T extends number | string ? IntlayerNode<T> : never;
10
+ export interface IntlayerNode<T, P = {}> {
11
11
  value: T;
12
12
  children?: any;
13
13
  additionalProps?: P;
14
14
  }
15
15
  /** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
16
- declare const intlayerNodePlugins: Plugins;
16
+ export declare const intlayerNodePlugins: Plugins;
17
17
  /**
18
18
  * MARKDOWN PLUGIN
19
19
  */
20
- type MarkdownStringCond<T> = T extends string ? IntlayerNode<string, {
20
+ export type MarkdownStringCond<T> = T extends string ? IntlayerNode<string, {
21
21
  metadata: DeepTransformContent<string>;
22
22
  }> : never;
23
23
  /** Markdown string plugin. Replaces string node with a component that render the markdown. */
24
- declare const markdownStringPlugin: Plugins;
25
- type MarkdownCond<T, _S, _L extends LocalesValues> = T extends {
24
+ export declare const markdownStringPlugin: Plugins;
25
+ export type MarkdownCond<T, _S, _L extends LocalesValues> = T extends {
26
26
  nodeType: NodeType | string;
27
27
  [NodeTypes.MARKDOWN]: infer M;
28
28
  tags?: infer U;
@@ -31,7 +31,7 @@ type MarkdownCond<T, _S, _L extends LocalesValues> = T extends {
31
31
  use: (components?: Record<keyof U, any>) => any;
32
32
  metadata: DeepTransformContent<V>;
33
33
  }> : never;
34
- declare const markdownPlugin: Plugins;
34
+ export declare const markdownPlugin: Plugins;
35
35
  /** ---------------------------------------------
36
36
  * HTML PLUGIN
37
37
  * --------------------------------------------- */
@@ -41,7 +41,7 @@ declare const markdownPlugin: Plugins;
41
41
  * This ensures type safety:
42
42
  * - `html('<div>Hello <CustomComponent /></div>').use({ CustomComponent: ... })` - optional but typed
43
43
  */
44
- type HTMLPluginCond<T, _S, _L> = T extends {
44
+ export type HTMLPluginCond<T, _S, _L> = T extends {
45
45
  nodeType: NodeType | string;
46
46
  [NodeTypes.HTML]: infer I;
47
47
  tags?: infer U;
@@ -49,19 +49,19 @@ type HTMLPluginCond<T, _S, _L> = T extends {
49
49
  use: (components?: Record<keyof U, any>) => any;
50
50
  }> : never;
51
51
  /** HTML plugin. Replaces node with a function that takes components => IntlayerNode. */
52
- declare const htmlPlugin: Plugins;
52
+ export declare const htmlPlugin: Plugins;
53
53
  /** ---------------------------------------------
54
54
  * INSERTION PLUGIN
55
55
  * --------------------------------------------- */
56
56
  /**
57
57
  * Insertion conditional type.
58
58
  */
59
- type InsertionPluginCond<T> = T extends {
59
+ export type InsertionPluginCond<T> = T extends {
60
60
  nodeType: NodeType | string;
61
61
  [NodeTypes.INSERTION]: infer _I;
62
62
  } ? (args: Record<string, string | number>) => string : never;
63
- declare const insertionPlugin: Plugins;
64
- interface IInterpreterPluginAngular<T, S, L extends LocalesValues> {
63
+ export declare const insertionPlugin: Plugins;
64
+ export interface IInterpreterPluginAngular<T, S, L extends LocalesValues> {
65
65
  angularIntlayerNode: IntlayerNodeCond<T>;
66
66
  angularMarkdown: MarkdownCond<T, S, L>;
67
67
  angularHtml: HTMLPluginCond<T, S, L>;
@@ -72,18 +72,17 @@ interface IInterpreterPluginAngular<T, S, L extends LocalesValues> {
72
72
  *
73
73
  * Otherwise the the `angular-intlayer` plugins will override the types of `intlayer` functions.
74
74
  */
75
- type IInterpreterPluginState = Omit<IInterpreterPluginState$1, 'insertion'> & {
75
+ export type IInterpreterPluginState = Omit<IInterpreterPluginState$1, 'insertion'> & {
76
76
  angularIntlayerNode: true;
77
77
  angularMarkdown: true;
78
78
  angularHtml: true;
79
79
  angularInsertion: true;
80
80
  };
81
- type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> = DeepTransformContent$1<T, IInterpreterPluginState, L>;
81
+ export type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> = DeepTransformContent$1<T, IInterpreterPluginState, L>;
82
82
  /**
83
83
  * Get the plugins array for Angular content transformation.
84
84
  * This function is used by both getIntlayer and getDictionary to ensure consistent plugin configuration.
85
85
  */
86
- declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
86
+ export declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
87
87
  //#endregion
88
- export { DeepTransformContent, HTMLPluginCond, IInterpreterPluginAngular, IInterpreterPluginState, InsertionPluginCond, IntlayerNode, IntlayerNodeCond, MarkdownCond, MarkdownStringCond, getPlugins, htmlPlugin, insertionPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin };
89
88
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"mappings":";;;;;;;;KA8EY,iBAAiB,KAAK,4BAC9B,aAAa;UAGA,aAAa,GAAG;EAC/B,OAAO;EACP;EACA,kBAAkB;;;cAIP,qBAAqB;;;;KAwCtB,mBAAmB,KAAK,mBAChC;EAAuB,UAAU;;;cAIxB,sBAAsB;KA2HvB,aAAa,GAAG,IAAI,WAAW,iBAAiB;EAC1D,UAAU;GACT,UAAU,iBAAiB;EAC5B,aAAa;EACb,iBAAiB;IAEf,aACE;EAEE,MAAM,aAAa,aAAa;EAChC,UAAU,qBAAqB;;cAK1B,gBAAgB;;;;;;;;;;KAoCjB,eAAe,GAAG,IAAI,MAAM;EACtC,UAAU;GACT,UAAU,aAAa;EACxB,aAAa;IAEX,aACE;EAEE,MAAM,aAAa,aAAa;;;cAM3B,YAAY;;;;;;;KA0Gb,oBAAoB,KAAK;EACnC,UAAU;GACT,UAAU,kBAAkB;KAE1B,MAAM;cAGE,iBAAiB;UA+Cb,0BAA0B,GAAG,GAAG,UAAU;EACzD,qBAAqB,iBAAiB;EACtC,iBAAiB,aAAa,GAAG,GAAG;EACpC,aAAa,eAAe,GAAG,GAAG;EAClC,kBAAkB,oBAAoB;;;;;;;KAQ5B,0BAA0B,KACpC;EAGA;EACA;EACA;EACA;;KAGU,qBACV,GACA,UAAU,gBAAgB,mBACxB,uBAAyB,GAAG,yBAAyB;;;;;cAQ5C,aAAU,SACZ,eAAa,uBAErB"}
1
+ {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"mappings":";;;;;;;;YA8EY,iBAAiB,KAAK,4BAC9B,aAAa;iBAGA,aAAa,GAAG;EAC/B,OAAO;EACP;EACA,kBAAkB;;;qBAIP,qBAAqB;;;;YAwCtB,mBAAmB,KAAK,mBAChC;EAAuB,UAAU;;;qBAIxB,sBAAsB;YA2HvB,aAAa,GAAG,IAAI,WAAW,iBAAiB;EAC1D,UAAU;GACT,UAAU,iBAAiB;EAC5B,aAAa;EACb,iBAAiB;IAEf,aACE;EAEE,MAAM,aAAa,aAAa;EAChC,UAAU,qBAAqB;;qBAK1B,gBAAgB;;;;;;;;;;YAoCjB,eAAe,GAAG,IAAI,MAAM;EACtC,UAAU;GACT,UAAU,aAAa;EACxB,aAAa;IAEX,aACE;EAEE,MAAM,aAAa,aAAa;;;qBAM3B,YAAY;;;;;;;YA0Gb,oBAAoB,KAAK;EACnC,UAAU;GACT,UAAU,kBAAkB;KAE1B,MAAM;qBAGE,iBAAiB;iBA+Cb,0BAA0B,GAAG,GAAG,UAAU;EACzD,qBAAqB,iBAAiB;EACtC,iBAAiB,aAAa,GAAG,GAAG;EACpC,aAAa,eAAe,GAAG,GAAG;EAClC,kBAAkB,oBAAoB;;;;;;;YAQ5B,0BAA0B,KACpC;EAGA;EACA;EACA;EACA;;YAGU,qBACV,GACA,UAAU,gBAAgB,mBACxB,uBAAyB,GAAG,yBAAyB;;;;;qBAQ5C,aAAU,SACZ,eAAa,uBAErB"}
@@ -1,6 +1,6 @@
1
1
  import { ResolvedEditor } from "@intlayer/types/module_augmentation";
2
2
  //#region src/renderIntlayerNode.d.ts
3
- type IntlayerNode<T = string, AdditionalProps = {}> = ResolvedEditor<T, any> & {
3
+ export type IntlayerNode<T = string, AdditionalProps = {}> = ResolvedEditor<T, any> & {
4
4
  value: T;
5
5
  } & AdditionalProps & T;
6
6
  type RenderIntlayerNodeProps<T> = {
@@ -10,7 +10,6 @@ type RenderIntlayerNodeProps<T> = {
10
10
  [key: string]: any;
11
11
  };
12
12
  };
13
- declare const renderIntlayerNode: <T>({ children, value, additionalProps }: RenderIntlayerNodeProps<T>) => IntlayerNode<T>;
13
+ export declare const renderIntlayerNode: <T>({ children, value, additionalProps }: RenderIntlayerNodeProps<T>) => IntlayerNode<T>;
14
14
  //#endregion
15
- export { IntlayerNode, renderIntlayerNode };
16
15
  //# sourceMappingURL=renderIntlayerNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderIntlayerNode.d.ts","names":[],"sources":["../../src/renderIntlayerNode.ts"],"mappings":";;KAEY,aAAa,YAAY,wBAAwB,eAC3D;EAGA,OAAO;IACL,kBACF;KAEG,wBAAwB;EAC3B,OAAO;EACP;EACA;KAAqB;;;cAGV,qBACX,KAAC,UAAA,OAAA,mBAKA,wBAAwB,OAAK,aAAa"}
1
+ {"version":3,"file":"renderIntlayerNode.d.ts","names":[],"sources":["../../src/renderIntlayerNode.ts"],"mappings":";;YAEY,aAAa,YAAY,wBAAwB,eAC3D;EAGA,OAAO;IACL,kBACF;KAEG,wBAAwB;EAC3B,OAAO;EACP;EACA;KAAqB;;;qBAGV,qBACX,KAAC,UAAA,OAAA,mBAKA,wBAAwB,OAAK,aAAa"}
@@ -1,5 +1,4 @@
1
1
  //#region src/webpack/mergeConfig.d.ts
2
- declare const mergeConfig: (baseConfig: import('webpack').Configuration) => import('webpack').Configuration;
2
+ export declare const mergeConfig: (baseConfig: import('webpack').Configuration) => import('webpack').Configuration;
3
3
  //#endregion
4
- export { mergeConfig };
5
4
  //# sourceMappingURL=mergeConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mergeConfig.d.ts","names":[],"sources":["../../../src/webpack/mergeConfig.ts"],"mappings":";cASa,cAAW,8BACQ,oCACX"}
1
+ {"version":3,"file":"mergeConfig.d.ts","names":[],"sources":["../../../src/webpack/mergeConfig.ts"],"mappings":";qBASa,cAAW,8BACQ,oCACX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-intlayer",
3
- "version": "9.4.2",
3
+ "version": "9.4.4",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -116,22 +116,22 @@
116
116
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
117
117
  },
118
118
  "dependencies": {
119
- "@babel/core": "^7.26.9",
120
- "@babel/plugin-syntax-import-attributes": "7.28.6",
121
- "@babel/preset-env": "7.29.2",
122
- "@intlayer/config": "9.4.2",
123
- "@intlayer/core": "9.4.2",
124
- "@intlayer/dictionaries-entry": "9.4.2",
125
- "@intlayer/editor": "9.4.2",
126
- "@intlayer/engine": "9.4.2",
127
- "@intlayer/types": "9.4.2",
128
- "@intlayer/webpack": "9.4.2",
119
+ "@babel/core": "^8.0.1",
120
+ "@babel/plugin-syntax-import-attributes": "7.29.7",
121
+ "@babel/preset-env": "8.0.2",
122
+ "@intlayer/config": "9.4.4",
123
+ "@intlayer/core": "9.4.4",
124
+ "@intlayer/dictionaries-entry": "9.4.4",
125
+ "@intlayer/editor": "9.4.4",
126
+ "@intlayer/engine": "9.4.4",
127
+ "@intlayer/types": "9.4.4",
128
+ "@intlayer/webpack": "9.4.4",
129
129
  "babel-loader": "10.1.1",
130
130
  "defu": "6.1.7"
131
131
  },
132
132
  "devDependencies": {
133
- "@angular/common": "19.2.25",
134
- "@angular/core": "19.2.25",
133
+ "@angular/common": "22.1.5",
134
+ "@angular/core": "22.1.5",
135
135
  "@types/node": "26.4.1",
136
136
  "@types/webpack": "5.28.5",
137
137
  "@utils/ts-config": "1.0.4",
@@ -139,9 +139,9 @@
139
139
  "@utils/tsdown-config": "1.0.4",
140
140
  "esbuild": "0.28.2",
141
141
  "rimraf": "6.1.3",
142
- "tsdown": "0.22.14",
142
+ "tsdown": "0.23.0",
143
143
  "typescript": "7.0.2",
144
- "vitest": "4.1.11"
144
+ "vitest": "5.0.0"
145
145
  },
146
146
  "peerDependencies": {
147
147
  "@angular/common": ">=15",
@@ -155,7 +155,7 @@
155
155
  }
156
156
  },
157
157
  "optionalDependencies": {
158
- "@intlayer/analytics": "9.4.2"
158
+ "@intlayer/analytics": "9.4.4"
159
159
  },
160
160
  "engines": {
161
161
  "node": ">=14.18"