preact-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 (89) hide show
  1. package/dist/types/IntlayerNode.d.ts +2 -3
  2. package/dist/types/IntlayerNode.d.ts.map +1 -1
  3. package/dist/types/UI/ContentSelector.d.ts +1 -2
  4. package/dist/types/UI/ContentSelector.d.ts.map +1 -1
  5. package/dist/types/analytics/AnalyticsProvider.d.ts +1 -2
  6. package/dist/types/analytics/AnalyticsProvider.d.ts.map +1 -1
  7. package/dist/types/analytics/exposureSink.d.ts +4 -5
  8. package/dist/types/analytics/exposureSink.d.ts.map +1 -1
  9. package/dist/types/analytics/useAnalytics.d.ts +1 -2
  10. package/dist/types/analytics/useAnalytics.d.ts.map +1 -1
  11. package/dist/types/analytics/useConversion.d.ts +2 -3
  12. package/dist/types/analytics/useConversion.d.ts.map +1 -1
  13. package/dist/types/analytics/useExperiment.d.ts +2 -3
  14. package/dist/types/analytics/useExperiment.d.ts.map +1 -1
  15. package/dist/types/client/IntlayerProvider.d.ts +5 -6
  16. package/dist/types/client/IntlayerProvider.d.ts.map +1 -1
  17. package/dist/types/client/t.d.ts +1 -2
  18. package/dist/types/client/t.d.ts.map +1 -1
  19. package/dist/types/client/useContent.d.ts +1 -2
  20. package/dist/types/client/useContent.d.ts.map +1 -1
  21. package/dist/types/client/useDictionary.d.ts +1 -2
  22. package/dist/types/client/useDictionary.d.ts.map +1 -1
  23. package/dist/types/client/useDictionaryAsync.d.ts +1 -2
  24. package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
  25. package/dist/types/client/useDictionaryDynamic.d.ts +1 -2
  26. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  27. package/dist/types/client/useIntlayer.d.ts +1 -2
  28. package/dist/types/client/useIntlayer.d.ts.map +1 -1
  29. package/dist/types/client/useLoadDynamic.d.ts +1 -2
  30. package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
  31. package/dist/types/client/useLocale.d.ts +1 -2
  32. package/dist/types/client/useLocale.d.ts.map +1 -1
  33. package/dist/types/client/useLocaleBase.d.ts +1 -2
  34. package/dist/types/client/useLocaleBase.d.ts.map +1 -1
  35. package/dist/types/client/useLocaleStorage.d.ts +6 -7
  36. package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
  37. package/dist/types/client/usePathname.d.ts +1 -2
  38. package/dist/types/client/usePathname.d.ts.map +1 -1
  39. package/dist/types/client/useTraduction.d.ts +1 -2
  40. package/dist/types/client/useTraduction.d.ts.map +1 -1
  41. package/dist/types/editor/ContentSelector.d.ts +2 -3
  42. package/dist/types/editor/ContentSelector.d.ts.map +1 -1
  43. package/dist/types/editor/EditorProvider.d.ts +1 -2
  44. package/dist/types/editor/EditorProvider.d.ts.map +1 -1
  45. package/dist/types/editor/useEditor.d.ts +1 -2
  46. package/dist/types/editor/useEditor.d.ts.map +1 -1
  47. package/dist/types/format/useCompact.d.ts +1 -2
  48. package/dist/types/format/useCompact.d.ts.map +1 -1
  49. package/dist/types/format/useCurrency.d.ts +1 -2
  50. package/dist/types/format/useCurrency.d.ts.map +1 -1
  51. package/dist/types/format/useDate.d.ts +1 -2
  52. package/dist/types/format/useDate.d.ts.map +1 -1
  53. package/dist/types/format/useIntl.d.ts +1 -2
  54. package/dist/types/format/useIntl.d.ts.map +1 -1
  55. package/dist/types/format/useList.d.ts +1 -6
  56. package/dist/types/format/useList.d.ts.map +1 -1
  57. package/dist/types/format/useNumber.d.ts +1 -2
  58. package/dist/types/format/useNumber.d.ts.map +1 -1
  59. package/dist/types/format/usePercentage.d.ts +1 -2
  60. package/dist/types/format/usePercentage.d.ts.map +1 -1
  61. package/dist/types/format/useRelativeTime.d.ts +1 -2
  62. package/dist/types/format/useRelativeTime.d.ts.map +1 -1
  63. package/dist/types/format/useUnit.d.ts +1 -2
  64. package/dist/types/format/useUnit.d.ts.map +1 -1
  65. package/dist/types/getDictionary.d.ts +1 -2
  66. package/dist/types/getDictionary.d.ts.map +1 -1
  67. package/dist/types/getIntlayer.d.ts +1 -2
  68. package/dist/types/getIntlayer.d.ts.map +1 -1
  69. package/dist/types/html/HTMLProvider.d.ts +2 -3
  70. package/dist/types/html/HTMLProvider.d.ts.map +1 -1
  71. package/dist/types/html/HTMLRenderer.d.ts +5 -6
  72. package/dist/types/html/HTMLRenderer.d.ts.map +1 -1
  73. package/dist/types/html/types.d.ts +2 -3
  74. package/dist/types/html/types.d.ts.map +1 -1
  75. package/dist/types/markdown/MarkdownProvider.d.ts +3 -4
  76. package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -1
  77. package/dist/types/markdown/MarkdownRenderer.d.ts +5 -6
  78. package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -1
  79. package/dist/types/markdown/MarkdownRendererPlugin.d.ts +2 -3
  80. package/dist/types/markdown/MarkdownRendererPlugin.d.ts.map +1 -1
  81. package/dist/types/markdown/compiler.d.ts +4 -4
  82. package/dist/types/markdown/compiler.d.ts.map +1 -1
  83. package/dist/types/markdown/runtime.d.ts +2 -2
  84. package/dist/types/markdown/runtime.d.ts.map +1 -1
  85. package/dist/types/plugins.d.ts +16 -17
  86. package/dist/types/plugins.d.ts.map +1 -1
  87. package/dist/types/preactElement/renderPreactElement.d.ts +1 -2
  88. package/dist/types/preactElement/renderPreactElement.d.ts.map +1 -1
  89. package/package.json +10 -10
@@ -2,7 +2,7 @@ import { NodeProps } from "@intlayer/core/interpreter";
2
2
  import { ResolvedEditor } from "@intlayer/types/module_augmentation";
3
3
  import { ComponentChildren, VNode } from "preact";
4
4
  //#region src/IntlayerNode.d.ts
5
- type IntlayerNode<T = NodeProps['children'], AdditionalProps = {}> = ResolvedEditor<T, VNode> & {
5
+ export type IntlayerNode<T = NodeProps['children'], AdditionalProps = {}> = ResolvedEditor<T, VNode> & {
6
6
  value: T;
7
7
  } & AdditionalProps & T;
8
8
  type RenderIntlayerNodeProps<T> = {
@@ -12,7 +12,6 @@ type RenderIntlayerNodeProps<T> = {
12
12
  [key: string]: any;
13
13
  };
14
14
  };
15
- declare const renderIntlayerNode: <T>({ children, value, additionalProps }: RenderIntlayerNodeProps<T>) => IntlayerNode<T>;
15
+ export declare const renderIntlayerNode: <T>({ children, value, additionalProps }: RenderIntlayerNodeProps<T>) => IntlayerNode<T>;
16
16
  //#endregion
17
- export { IntlayerNode, renderIntlayerNode };
18
17
  //# sourceMappingURL=IntlayerNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerNode.d.ts","names":[],"sources":["../../src/IntlayerNode.tsx"],"mappings":";;;;KAUY,aACV,IAAI,uBACJ,wBACE,eAAe,GAAG;EACpB,OAAO;IACL,kBACF;KAEG,wBAAwB;EAC3B,OAAO;EACP,UAAU;EACV;KAAqB;;;cAGV,qBACX,KAAC,UAAA,OAAA,mBAKA,wBAAwB,OAAK,aAAa"}
1
+ {"version":3,"file":"IntlayerNode.d.ts","names":[],"sources":["../../src/IntlayerNode.tsx"],"mappings":";;;;YAUY,aACV,IAAI,uBACJ,wBACE,eAAe,GAAG;EACpB,OAAO;IACL,kBACF;KAEG,wBAAwB;EAC3B,OAAO;EACP,UAAU;EACV;KAAqB;;;qBAGV,qBACX,KAAC,UAAA,OAAA,mBAKA,wBAAwB,OAAK,aAAa"}
@@ -8,7 +8,6 @@ type ContentSelectorProps = {
8
8
  pressDuration?: number;
9
9
  isSelecting?: boolean;
10
10
  } & Omit<JSX.HTMLAttributes<HTMLDivElement>, 'content'>;
11
- declare const ContentSelector: FunctionalComponent<ContentSelectorProps>;
11
+ export declare const ContentSelector: FunctionalComponent<ContentSelectorProps>;
12
12
  //#endregion
13
- export { ContentSelector };
14
13
  //# sourceMappingURL=ContentSelector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/UI/ContentSelector.tsx"],"mappings":";;KAKK;EACH;EACA;EACA;EACA;EACA;EACA;IACE,KAAK,IAAI,eAAe;cAEf,iBAAiB,oBAAoB"}
1
+ {"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/UI/ContentSelector.tsx"],"mappings":";;KAKK;EACH;EACA;EACA;EACA;EACA;EACA;IACE,KAAK,IAAI,eAAe;qBAEf,iBAAiB,oBAAoB"}
@@ -4,9 +4,8 @@ import { ComponentChildren, FunctionComponent } from "preact";
4
4
  * Runs {@link useAnalytics} and renders its children unchanged. Mounted inside
5
5
  * {@link IntlayerProvider} alongside `EditorProvider`.
6
6
  */
7
- declare const AnalyticsProvider: FunctionComponent<{
7
+ export declare const AnalyticsProvider: FunctionComponent<{
8
8
  children?: ComponentChildren;
9
9
  }>;
10
10
  //#endregion
11
- export { AnalyticsProvider };
12
11
  //# sourceMappingURL=AnalyticsProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsProvider.d.ts","names":[],"sources":["../../../src/analytics/AnalyticsProvider.tsx"],"mappings":";;;;;;cAOa,mBAAmB;EAC9B,WAAW"}
1
+ {"version":3,"file":"AnalyticsProvider.d.ts","names":[],"sources":["../../../src/analytics/AnalyticsProvider.tsx"],"mappings":";;;;;;qBAOa,mBAAmB;EAC9B,WAAW"}
@@ -5,28 +5,27 @@ import { KeyPath } from "@intlayer/types/keyPath";
5
5
  * only) so the interpreter hot path in `plugins.tsx` never statically imports
6
6
  * `@intlayer/analytics` — the package stays optional and tree-shakeable.
7
7
  */
8
- type ExposureInput = {
8
+ export type ExposureInput = {
9
9
  dictionaryKey: string;
10
10
  keyPath: KeyPath[];
11
11
  locale?: string;
12
12
  nodeType?: string;
13
13
  };
14
14
  /** Consumer of exposure reports, installed by `useAnalytics` after init. */
15
- type ExposureSink = (input: ExposureInput) => void;
15
+ export type ExposureSink = (input: ExposureInput) => void;
16
16
  /**
17
17
  * Installs (or clears) the exposure sink. `useAnalytics` sets this once the
18
18
  * analytics client has loaded, and clears it on unmount.
19
19
  *
20
20
  * @param next - The sink to install, or `null` to clear.
21
21
  */
22
- declare const setExposureSink: (next: ExposureSink | null) => void;
22
+ export declare const setExposureSink: (next: ExposureSink | null) => void;
23
23
  /**
24
24
  * Forwards a content exposure to the installed sink. A cheap null-check when
25
25
  * analytics is not running, so it is safe to call from every node resolution.
26
26
  *
27
27
  * @param input - The node metadata to report.
28
28
  */
29
- declare const reportExposure: (input: ExposureInput) => void;
29
+ export declare const reportExposure: (input: ExposureInput) => void;
30
30
  //#endregion
31
- export { ExposureInput, ExposureSink, reportExposure, setExposureSink };
32
31
  //# sourceMappingURL=exposureSink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exposureSink.d.ts","names":[],"sources":["../../../src/analytics/exposureSink.ts"],"mappings":";;;;;;;KAOY;EACV;EACA,SAAS;EACT;EACA;;;KAIU,gBAAgB,OAAO;;;;;;;cAUtB,kBAAe,MAAU;;;;;;;cAUzB,iBAAc,OAAW"}
1
+ {"version":3,"file":"exposureSink.d.ts","names":[],"sources":["../../../src/analytics/exposureSink.ts"],"mappings":";;;;;;;YAOY;EACV;EACA,SAAS;EACT;EACA;;;YAIU,gBAAgB,OAAO;;;;;;;qBAUtB,kBAAe,MAAU;;;;;;;qBAUzB,iBAAc,OAAW"}
@@ -9,7 +9,6 @@
9
9
  * guarded by `INTLAYER_ANALYTICS_ENABLED` and dead-code-eliminated at build
10
10
  * time.
11
11
  */
12
- declare const useAnalytics: () => void;
12
+ export declare const useAnalytics: () => void;
13
13
  //#endregion
14
- export { useAnalytics };
15
14
  //# sourceMappingURL=useAnalytics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAnalytics.d.ts","names":[],"sources":["../../../src/analytics/useAnalytics.tsx"],"mappings":";;;;;;;;;;;cAgBa"}
1
+ {"version":3,"file":"useAnalytics.d.ts","names":[],"sources":["../../../src/analytics/useAnalytics.tsx"],"mappings":";;;;;;;;;;;qBAgBa"}
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Parameters describing a conversion to record.
4
4
  */
5
- type ConversionParams = {
5
+ export type ConversionParams = {
6
6
  /** The experiment this conversion is attributed to. */
7
7
  experimentKey: string;
8
8
  /** The variant the session was assigned. */
@@ -25,7 +25,6 @@ type ConversionParams = {
25
25
  * })}>Get started</button>
26
26
  * ```
27
27
  */
28
- declare const useConversion: () => (params: ConversionParams) => void;
28
+ export declare const useConversion: () => (params: ConversionParams) => void;
29
29
  //#endregion
30
- export { ConversionParams, useConversion };
31
30
  //# sourceMappingURL=useConversion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useConversion.d.ts","names":[],"sources":["../../../src/analytics/useConversion.ts"],"mappings":";;;;KAMY;;EAEV;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;;;cAgBW,sBAAa,QACI"}
1
+ {"version":3,"file":"useConversion.d.ts","names":[],"sources":["../../../src/analytics/useConversion.ts"],"mappings":";;;;YAMY;;EAEV;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;;;qBAgBW,sBAAa,QACI"}
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * The state of an A/B experiment for the current session.
4
4
  */
5
- type ExperimentState = {
5
+ export type ExperimentState = {
6
6
  /**
7
7
  * The variant assigned to this session. Until assignment resolves (and on
8
8
  * the server, or when analytics is disabled), this is the first variant —
@@ -35,7 +35,6 @@ type ExperimentState = {
35
35
  * const content = useIntlayer(variant === 'b' ? 'hero-b' : 'hero');
36
36
  * ```
37
37
  */
38
- declare const useExperiment: (experimentKey: string, variants: string[], weights?: number[]) => ExperimentState;
38
+ export declare const useExperiment: (experimentKey: string, variants: string[], weights?: number[]) => ExperimentState;
39
39
  //#endregion
40
- export { ExperimentState, useExperiment };
41
40
  //# sourceMappingURL=useExperiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useExperiment.d.ts","names":[],"sources":["../../../src/analytics/useExperiment.ts"],"mappings":";;;;KAMY;;;;;;EAMV;;;;;;EAMA;;;;;;;;;;;;;;;;;;;;;cAsBW,gBAAa,uBACH,oBACH,uBAEjB"}
1
+ {"version":3,"file":"useExperiment.d.ts","names":[],"sources":["../../../src/analytics/useExperiment.ts"],"mappings":";;;;YAMY;;;;;;EAMV;;;;;;EAMA;;;;;;;;;;;;;;;;;;;;;qBAsBW,gBAAa,uBACH,oBACH,uBAEjB"}
@@ -14,12 +14,12 @@ type IntlayerValue = {
14
14
  /**
15
15
  * Context that store the current locale on the client side
16
16
  */
17
- declare const IntlayerClientContext: import("preact").Context<IntlayerValue>;
17
+ export declare const IntlayerClientContext: import("preact").Context<IntlayerValue>;
18
18
  /**
19
19
  * Hook that provides the current locale
20
20
  */
21
- declare const useIntlayerContext: () => {};
22
- type IntlayerProviderProps = {
21
+ export declare const useIntlayerContext: () => {};
22
+ export type IntlayerProviderProps = {
23
23
  children?: ComponentChild;
24
24
  locale?: LocalesValues;
25
25
  defaultLocale?: LocalesValues;
@@ -47,7 +47,7 @@ type IntlayerProviderProps = {
47
47
  /**
48
48
  * Provider that store the current locale on the client side
49
49
  */
50
- declare const IntlayerProviderContent: FunctionComponent<IntlayerProviderProps>;
50
+ export declare const IntlayerProviderContent: FunctionComponent<IntlayerProviderProps>;
51
51
  /**
52
52
  * Main provider for Intlayer in Preact applications.
53
53
  *
@@ -68,7 +68,6 @@ declare const IntlayerProviderContent: FunctionComponent<IntlayerProviderProps>;
68
68
  * );
69
69
  * ```
70
70
  */
71
- declare const IntlayerProvider: FunctionComponent<IntlayerProviderProps>;
71
+ export declare const IntlayerProvider: FunctionComponent<IntlayerProviderProps>;
72
72
  //#endregion
73
- export { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, IntlayerProviderProps, useIntlayerContext };
74
73
  //# sourceMappingURL=IntlayerProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"mappings":";;;KAiBK;EACH,QAAQ;EACR,YAAY,WAAW;;;;;EAKvB,UAAU;EACV;;;;;cAMW,wCAAqB,QAAA;;;;cAQrB;KAED;EACV,WAAW;EACX,SAAS;EACT,gBAAgB;;;;;;;;;;;;;;;;;;EAkBhB,UAAU;EACV,aAAa,QAAQ;EACrB;;;;;cAMW,yBAAyB,kBACpC;;;;;;;;;;;;;;;;;;;;;cA+EW,kBAAkB,kBAAkB"}
1
+ {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"mappings":";;;KAiBK;EACH,QAAQ;EACR,YAAY,WAAW;;;;;EAKvB,UAAU;EACV;;;;;qBAMW,wCAAqB,QAAA;;;;qBAQrB;YAED;EACV,WAAW;EACX,SAAS;EACT,gBAAgB;;;;;;;;;;;;;;;;;;EAkBhB,UAAU;EACV,aAAa,QAAQ;EACrB;;;;;qBAMW,yBAAyB,kBACpC;;;;;;;;;;;;;;;;;;;;;qBA+EW,kBAAkB,kBAAkB"}
@@ -6,7 +6,6 @@ import { Locale } from "@intlayer/types/allLocales";
6
6
  *
7
7
  * If the locale is not provided, it will use the locale from the client context
8
8
  */
9
- declare const t: <Content = string>(multilangContent: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
9
+ export declare const t: <Content = string>(multilangContent: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
10
10
  //#endregion
11
- export { t };
12
11
  //# sourceMappingURL=t.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/client/t.ts"],"mappings":";;;;;;;;cAWa,IAAK,kBAAgB,kBACd,oBAAoB,UAAQ,SACrC,WAAM"}
1
+ {"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/client/t.ts"],"mappings":";;;;;;;;qBAWa,IAAK,kBAAgB,kBACd,oBAAoB,UAAQ,SACrC,WAAM"}
@@ -4,11 +4,10 @@ import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
4
4
  /**
5
5
  * On the client side, hook to get the translation content based on the locale
6
6
  */
7
- declare const useContent: <Content>(languageContent: StrictModeLocaleMap<Content>) => {
7
+ export declare const useContent: <Content>(languageContent: StrictModeLocaleMap<Content>) => {
8
8
  locale: import("@intlayer/types").LocalesValues;
9
9
  content: Content;
10
10
  t: typeof useTranslation;
11
11
  };
12
12
  //#endregion
13
- export { useContent };
14
13
  //# sourceMappingURL=useContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useContent.d.ts","names":[],"sources":["../../../src/client/useContent.ts"],"mappings":";;;;;;cAOa,aAAc,SAAO,iBACf,oBAAoB"}
1
+ {"version":3,"file":"useContent.d.ts","names":[],"sources":["../../../src/client/useContent.ts"],"mappings":";;;;;;qBAOa,aAAc,SAAO,iBACf,oBAAoB"}
@@ -9,7 +9,6 @@ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup } from
9
9
  * If the locale is not provided (directly or through the selector), it will use
10
10
  * the locale from the client context.
11
11
  */
12
- declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").ResolveQualifiedDictionaryContent<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
12
+ export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").ResolveQualifiedDictionaryContent<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
13
13
  //#endregion
14
- export { useDictionary };
15
14
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/client/useDictionary.ts"],"mappings":";;;;;;;;;;;cAwBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,2CAAC,+CAAA,kCAAA,GAAA,IAAA,mDAAA,sBAAA"}
1
+ {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/client/useDictionary.ts"],"mappings":";;;;;;;;;;;qBAwBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,2CAAC,+CAAA,kCAAA,GAAA,IAAA,mDAAA,sBAAA"}
@@ -6,7 +6,6 @@ import { Dictionary } from "@intlayer/types/dictionary";
6
6
  *
7
7
  * If the locale is not provided, it will use the locale from the client context
8
8
  */
9
- declare const useDictionaryAsync: <const T extends Dictionary>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: LocalesValues) => Promise<T>;
9
+ export declare const useDictionaryAsync: <const T extends Dictionary>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: LocalesValues) => Promise<T>;
10
10
  //#endregion
11
- export { useDictionaryAsync };
12
11
  //# sourceMappingURL=useDictionaryAsync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/client/useDictionaryAsync.ts"],"mappings":";;;;;;;;cAea,2BAAkC,UAAU,YAAU,mBAC9C,0BAA0B,QAAQ,KAAG,SAC/C,kBACR,QAAQ"}
1
+ {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/client/useDictionaryAsync.ts"],"mappings":";;;;;;;;qBAea,2BAAkC,UAAU,YAAU,mBAC9C,0BAA0B,QAAQ,KAAG,SAC/C,kBACR,QAAQ"}
@@ -13,7 +13,6 @@ import { QualifiedDynamicLoaderMap } from "@intlayer/core/dictionaryManipulator"
13
13
  * If the locale is not provided (directly or through the selector), the client
14
14
  * context locale is used.
15
15
  */
16
- declare const useDictionaryDynamic: <const T extends Dictionary, const K extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<K> = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: K, localeOrSelector?: A) => any;
16
+ export declare const useDictionaryDynamic: <const T extends Dictionary, const K extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<K> = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: K, localeOrSelector?: A) => any;
17
17
  //#endregion
18
- export { useDictionaryDynamic };
19
18
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;;;;cAmCa,6BACL,UAAU,kBACV,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,mBAGzE,0BAA0B,QAAQ,MAClC,2BAAyB,KACxB,GAAC,mBACa"}
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;;;;qBAmCa,6BACL,UAAU,kBACV,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,mBAGzE,0BAA0B,QAAQ,MAClC,2BAAyB,KACxB,GAAC,mBACa"}
@@ -25,7 +25,6 @@ import { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValue
25
25
  * };
26
26
  * ```
27
27
  */
28
- declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").DictionaryRegistryResult<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
28
+ export declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").DictionaryRegistryResult<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
29
29
  //#endregion
30
- export { useIntlayer };
31
30
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/client/useIntlayer.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,2CAAC,+CAAA,yBAAA,GAAA,IAAA,mDAAA,sBAAA"}
1
+ {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/client/useIntlayer.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;qBAsCa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,2CAAC,+CAAA,yBAAA,GAAA,IAAA,mDAAA,sBAAA"}
@@ -1,5 +1,4 @@
1
1
  //#region src/client/useLoadDynamic.d.ts
2
- declare const useLoadDynamic: <T>(key: string, promise: Promise<T>) => T;
2
+ export declare const useLoadDynamic: <T>(key: string, promise: Promise<T>) => T;
3
3
  //#endregion
4
- export { useLoadDynamic };
5
4
  //# sourceMappingURL=useLoadDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/client/useLoadDynamic.ts"],"mappings":";cA2Ba,iBAAkB,GAAC,aAAa,SAAW,QAAQ,OAAK"}
1
+ {"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/client/useLoadDynamic.ts"],"mappings":";qBA2Ba,iBAAkB,GAAC,aAAa,SAAW,QAAQ,OAAK"}
@@ -33,7 +33,6 @@ type UseLocaleResult = {
33
33
  * };
34
34
  * ```
35
35
  */
36
- declare const useLocale: ({ isCookieEnabled, onLocaleChange }?: UseLocaleProps) => UseLocaleResult;
36
+ export declare const useLocale: ({ isCookieEnabled, onLocaleChange }?: UseLocaleProps) => UseLocaleResult;
37
37
  //#endregion
38
- export { useLocale };
39
38
  //# sourceMappingURL=useLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;KASK;EACH;EACA,kBAAkB,QAAQ;;KAGvB;EACH,QAAQ;EACR,eAAe;EACf,kBAAkB;EAClB,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;cA0BT,cAAS,iBAAA,mBAGnB,mBAAsB"}
1
+ {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;KASK;EACH;EACA,kBAAkB,QAAQ;;KAGvB;EACH,QAAQ;EACR,eAAe;EACf,kBAAkB;EAClB,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;qBA0BT,cAAS,iBAAA,mBAGnB,mBAAsB"}
@@ -2,12 +2,11 @@
2
2
  /**
3
3
  * On the client side, hook to get the current locale and all related fields
4
4
  */
5
- declare const useLocaleBase: () => {
5
+ export declare const useLocaleBase: () => {
6
6
  locale: import("@intlayer/types").LocalesValues;
7
7
  defaultLocale: any;
8
8
  availableLocales: any;
9
9
  setLocale: (newLocale: import("@intlayer/types").LocalesValues) => void;
10
10
  };
11
11
  //#endregion
12
- export { useLocaleBase };
13
12
  //# sourceMappingURL=useLocaleBase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocaleBase.d.ts","names":[],"sources":["../../../src/client/useLocaleBase.ts"],"mappings":";;;;cASa"}
1
+ {"version":3,"file":"useLocaleBase.d.ts","names":[],"sources":["../../../src/client/useLocaleBase.ts"],"mappings":";;;;qBASa"}
@@ -3,27 +3,27 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
3
3
  /**
4
4
  * Get the locale cookie
5
5
  */
6
- declare const localeInStorage: import("@intlayer/types").Locale;
6
+ export declare const localeInStorage: import("@intlayer/types").Locale;
7
7
  /**
8
8
  * @deprecated Use localeInStorage instead
9
9
  *
10
10
  * Get the locale cookie
11
11
  */
12
- declare const localeCookie: import("@intlayer/types").Locale;
12
+ export declare const localeCookie: import("@intlayer/types").Locale;
13
13
  /**
14
14
  * Set the locale cookie
15
15
  */
16
- declare const setLocaleInStorage: (locale: LocalesValues, isCookieEnabled: boolean) => void;
16
+ export declare const setLocaleInStorage: (locale: LocalesValues, isCookieEnabled: boolean) => void;
17
17
  /**
18
18
  * @deprecated Use setLocaleInStorage instead
19
19
  *
20
20
  * Set the locale cookie
21
21
  */
22
- declare const setLocaleCookie: typeof setLocaleInStorage;
22
+ export declare const setLocaleCookie: typeof setLocaleInStorage;
23
23
  /**
24
24
  * Hook that provides the locale storage and a function to set it
25
25
  */
26
- declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
26
+ export declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
27
27
  getLocale: () => import("@intlayer/types").Locale;
28
28
  setLocale: (locale: LocalesValues) => void;
29
29
  };
@@ -34,7 +34,6 @@ declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
34
34
  *
35
35
  * Hook that provides the locale cookie and a function to set it
36
36
  */
37
- declare const useLocaleCookie: typeof useLocaleStorage;
37
+ export declare const useLocaleCookie: typeof useLocaleStorage;
38
38
  //#endregion
39
- export { localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage };
40
39
  //# sourceMappingURL=useLocaleStorage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;cAYa,2CAAe;;;;;;cAMf,wCAAY;;;;cAKZ,qBAAkB,QACrB,eAAa;;;;;;cAaV,wBAAe;;;;cAKf,mBAAgB;;sBAAhB;;;;;;;;;cAiBA,wBAAe"}
1
+ {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;qBAYa,2CAAe;;;;;;qBAMf,wCAAY;;;;qBAKZ,qBAAkB,QACrB,eAAa;;;;;;qBAaV,wBAAe;;;;qBAKf,mBAAgB;;sBAAhB;;;;;;;;;qBAiBA,wBAAe"}
@@ -17,7 +17,6 @@
17
17
  * };
18
18
  * ```
19
19
  */
20
- declare const usePathname: () => string;
20
+ export declare const usePathname: () => string;
21
21
  //#endregion
22
- export { usePathname };
23
22
  //# sourceMappingURL=usePathname.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePathname.d.ts","names":[],"sources":["../../../src/client/usePathname.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAqBa"}
1
+ {"version":3,"file":"usePathname.d.ts","names":[],"sources":["../../../src/client/usePathname.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAqBa"}
@@ -21,7 +21,6 @@ import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
21
21
  * - this function will require each locale to be defined if defined in the project configuration.
22
22
  * - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
23
23
  */
24
- declare const useTranslation: <Content = string>(languageContent: StrictModeLocaleMap<Content>) => Content;
24
+ export declare const useTranslation: <Content = string>(languageContent: StrictModeLocaleMap<Content>) => Content;
25
25
  //#endregion
26
- export { useTranslation };
27
26
  //# sourceMappingURL=useTraduction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTraduction.d.ts","names":[],"sources":["../../../src/client/useTraduction.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cA0Ba,iBAAkB,kBAAgB,iBAC5B,oBAAoB,aACpC"}
1
+ {"version":3,"file":"useTraduction.d.ts","names":[],"sources":["../../../src/client/useTraduction.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBA0Ba,iBAAkB,kBAAgB,iBAC5B,oBAAoB,aACpC"}
@@ -11,8 +11,7 @@ declare module 'preact' {
11
11
  }
12
12
  }
13
13
  }
14
- type ContentSelectorWrapperProps = NodeProps & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
15
- declare const ContentSelector: FunctionalComponent<ContentSelectorWrapperProps>;
14
+ export type ContentSelectorWrapperProps = NodeProps & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
15
+ export declare const ContentSelector: FunctionalComponent<ContentSelectorWrapperProps>;
16
16
  //#endregion
17
- export { ContentSelector, ContentSelectorWrapperProps };
18
17
  //# sourceMappingURL=ContentSelector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/editor/ContentSelector.tsx"],"mappings":";;;;YAOY;cACE;MACR,qCAAqC,eAAe;QAClD;QACA;;;;;KAMI,8BAA8B,YACxC,KAAK,eAAe;cAET,iBAAiB,oBAC5B"}
1
+ {"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/editor/ContentSelector.tsx"],"mappings":";;;;YAOY;cACE;MACR,qCAAqC,eAAe;QAClD;QACA;;;;;YAMI,8BAA8B,YACxC,KAAK,eAAe;qBAET,iBAAiB,oBAC5B"}
@@ -1,8 +1,7 @@
1
1
  import { ComponentChild, FunctionComponent } from "preact";
2
2
  //#region src/editor/EditorProvider.d.ts
3
- declare const EditorProvider: FunctionComponent<{
3
+ export declare const EditorProvider: FunctionComponent<{
4
4
  children?: ComponentChild;
5
5
  }>;
6
6
  //#endregion
7
- export { EditorProvider };
8
7
  //# sourceMappingURL=EditorProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"mappings":";;cAGa,gBAAgB;EAC3B,WAAW"}
1
+ {"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"mappings":";;qBAGa,gBAAgB;EAC3B,WAAW"}
@@ -4,7 +4,6 @@
4
4
  * Syncs the current locale from the Intlayer context into the editor manager so
5
5
  * the editor always knows which locale the app is displaying.
6
6
  */
7
- declare const useEditor: () => void;
7
+ export declare const useEditor: () => void;
8
8
  //#endregion
9
- export { useEditor };
10
9
  //# sourceMappingURL=useEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.tsx"],"mappings":";;;;;;cAWa"}
1
+ {"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.tsx"],"mappings":";;;;;;qBAWa"}
@@ -9,9 +9,8 @@
9
9
  * formatCompact(1500); // "1.5K"
10
10
  * ```
11
11
  */
12
- declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & {
12
+ export declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & {
13
13
  locale?: import("@intlayer/types").LocalesValues;
14
14
  }) => string;
15
15
  //#endregion
16
- export { useCompact };
17
16
  //# sourceMappingURL=useCompact.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";;;;;;;;;;;cAca,mBAAU,wBAAA,UAAA,KAAA"}
1
+ {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";;;;;;;;;;;qBAca,mBAAU,wBAAA,UAAA,KAAA"}
@@ -23,9 +23,8 @@
23
23
  * // "¥9,876,543"
24
24
  * ```
25
25
  */
26
- declare const useCurrency: () => (value: string | number, options?: Intl.NumberFormatOptions & {
26
+ export declare const useCurrency: () => (value: string | number, options?: Intl.NumberFormatOptions & {
27
27
  locale?: import("@intlayer/types").LocalesValues;
28
28
  }) => string;
29
29
  //#endregion
30
- export { useCurrency };
31
30
  //# sourceMappingURL=useCurrency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;cA4Ba,oBAAW,wBAAA,UAAA,KAAA"}
1
+ {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;qBA4Ba,oBAAW,wBAAA,UAAA,KAAA"}
@@ -26,7 +26,6 @@ import { date } from "@intlayer/core/formatters";
26
26
  *
27
27
  * @see createDate
28
28
  */
29
- declare const useDate: () => (...args: Parameters<typeof date>) => string;
29
+ export declare const useDate: () => (...args: Parameters<typeof date>) => string;
30
30
  //#endregion
31
- export { useDate };
32
31
  //# sourceMappingURL=useDate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8Ba,mBAAO,MAGD,kBAAkB"}
1
+ {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8Ba,mBAAO,MAGD,kBAAkB"}
@@ -19,7 +19,6 @@ import { WrappedIntl } from "@intlayer/core/formatters";
19
19
  * }).format(123.45);
20
20
  * ```
21
21
  */
22
- declare const useIntl: (locale?: LocalesValues) => WrappedIntl;
22
+ export declare const useIntl: (locale?: LocalesValues) => WrappedIntl;
23
23
  //#endregion
24
- export { useIntl };
25
24
  //# sourceMappingURL=useIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/format/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;cAuBa,UAAO,SAAa,kBAAa"}
1
+ {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/format/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBAuBa,UAAO,SAAa,kBAAa"}
@@ -20,13 +20,8 @@
20
20
  * // "1, 2 und 3"
21
21
  * ```
22
22
  */
23
- declare const useList: () => (values: (string | number)[], options?: {
24
- localeMatcher?: 'lookup' | 'best fit';
25
- type?: 'conjunction' | 'disjunction' | 'unit';
26
- style?: 'long' | 'short' | 'narrow';
27
- } & {
23
+ export declare const useList: () => (values: (string | number)[], options?: import("@intlayer/core/formatters").ListFormatOptions & {
28
24
  locale?: import("@intlayer/types").LocalesValues;
29
25
  }) => string;
30
26
  //#endregion
31
- export { useList };
32
27
  //# sourceMappingURL=useList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;cAyBa,gBAAO,6BAAA"}
1
+ {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qBAyBa,gBAAO,6BAAA,8CAAA"}
@@ -21,9 +21,8 @@
21
21
  * @returns {(value: string | number, options?: import("../createNumber").NumberProps) => string}
22
22
  * A number formatting function bound to the active locale.
23
23
  */
24
- declare const useNumber: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
24
+ export declare const useNumber: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
25
25
  locale?: import("@intlayer/types").LocalesValues;
26
26
  }) => string;
27
27
  //#endregion
28
- export { useNumber };
29
28
  //# sourceMappingURL=useNumber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cA0Ba,kBAAS,wBAAA,SAAA,KAAA"}
1
+ {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBA0Ba,kBAAS,wBAAA,SAAA,KAAA"}
@@ -17,9 +17,8 @@
17
17
  * @returns {(value: string | number, options?: Omit<PercentageOptions, "value">) => string}
18
18
  * A function that formats numbers or numeric strings into localized percentages.
19
19
  */
20
- declare const usePercentage: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
20
+ export declare const usePercentage: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
21
21
  locale?: import("@intlayer/types").LocalesValues;
22
22
  }) => string;
23
23
  //#endregion
24
- export { usePercentage };
25
24
  //# sourceMappingURL=usePercentage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAsBa,sBAAa,wBAAA,SAAA,KAAA"}
1
+ {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAsBa,sBAAa,wBAAA,SAAA,KAAA"}
@@ -17,10 +17,9 @@
17
17
  * @returns {ReturnType<typeof createRelativeTime>} A relative time formatting function
18
18
  * bound to the current client locale.
19
19
  */
20
- declare const useRelativeTime: () => (from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
20
+ export declare const useRelativeTime: () => (from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
21
21
  locale?: import("@intlayer/types").LocalesValues;
22
22
  unit?: Intl.RelativeTimeFormatUnit;
23
23
  }) => string;
24
24
  //#endregion
25
- export { useRelativeTime };
26
25
  //# sourceMappingURL=useRelativeTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAsBa,wBAAe,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAsBa,wBAAe,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA"}
@@ -16,9 +16,8 @@
16
16
  *
17
17
  * @returns {Function} A unit formatting function that accepts a value and optional formatting options.
18
18
  */
19
- declare const useUnit: () => (value: string | number, options?: Intl.NumberFormatOptions & {
19
+ export declare const useUnit: () => (value: string | number, options?: Intl.NumberFormatOptions & {
20
20
  locale?: import("@intlayer/types").LocalesValues;
21
21
  }) => string;
22
22
  //#endregion
23
- export { useUnit };
24
23
  //# sourceMappingURL=useUnit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;;;;;;;;;;;;;;;;;cAqBa,gBAAO,wBAAA,UAAA,KAAA"}
1
+ {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAqBa,gBAAO,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"}
@@ -10,8 +10,7 @@ type HTMLProviderProps = RenderableProps<{
10
10
  */
11
11
  components?: HTMLComponents<'permissive', {}>;
12
12
  }>;
13
- declare const useHTMLContext: () => HTMLContextValue;
14
- declare const HTMLProvider: FunctionalComponent<HTMLProviderProps>;
13
+ export declare const useHTMLContext: () => HTMLContextValue;
14
+ export declare const HTMLProvider: FunctionalComponent<HTMLProviderProps>;
15
15
  //#endregion
16
- export { HTMLProvider, useHTMLContext };
17
16
  //# sourceMappingURL=HTMLProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HTMLProvider.d.ts","names":[],"sources":["../../../src/html/HTMLProvider.tsx"],"mappings":";;;KAQK;EACH,aAAa;;KAGV,oBAAoB;;;;EAIvB,aAAa;;cAKF,sBAAc;cAEd,cAAc,oBAAoB"}
1
+ {"version":3,"file":"HTMLProvider.d.ts","names":[],"sources":["../../../src/html/HTMLProvider.tsx"],"mappings":";;;KAQK;EACH,aAAa;;KAGV,oBAAoB;;;;EAIvB,aAAa;;qBAKF,sBAAc;qBAEd,cAAc,oBAAoB"}
@@ -2,7 +2,7 @@ import { HTMLComponents } from "./types.js";
2
2
  import { FunctionComponent, JSX } from "preact";
3
3
  import { KeyPath } from "@intlayer/types/keyPath";
4
4
  //#region src/html/HTMLRenderer.d.ts
5
- type RenderHTMLProps = {
5
+ export type RenderHTMLProps = {
6
6
  /**
7
7
  * Component overrides for HTML tags.
8
8
  * Allows you to customize how specific HTML elements are rendered.
@@ -15,15 +15,15 @@ type RenderHTMLProps = {
15
15
  * This function does not use context from HTMLProvider. Use `useHTMLRenderer`
16
16
  * hook if you want to leverage provider context.
17
17
  */
18
- declare const renderHTML: (content: string, { components }?: RenderHTMLProps) => JSX.Element;
18
+ export declare const renderHTML: (content: string, { components }?: RenderHTMLProps) => JSX.Element;
19
19
  /**
20
20
  * Hook that returns a function to render HTML content.
21
21
  *
22
22
  * This hook considers the configuration from the `HTMLProvider` context if available,
23
23
  * falling back to the provided components.
24
24
  */
25
- declare const useHTMLRenderer: ({ components }?: RenderHTMLProps) => (content: string) => JSX.Element;
26
- type HTMLRendererProps = RenderHTMLProps & {
25
+ export declare const useHTMLRenderer: ({ components }?: RenderHTMLProps) => (content: string) => JSX.Element;
26
+ export type HTMLRendererProps = RenderHTMLProps & {
27
27
  /**
28
28
  * The HTML content to render as a string.
29
29
  */
@@ -42,7 +42,6 @@ type HTMLRendererProps = RenderHTMLProps & {
42
42
  /**
43
43
  * Preact component that renders HTML-like content to JSX.
44
44
  */
45
- declare const HTMLRenderer: FunctionComponent<HTMLRendererProps>;
45
+ export declare const HTMLRenderer: FunctionComponent<HTMLRendererProps>;
46
46
  //#endregion
47
- export { HTMLRenderer, HTMLRendererProps, RenderHTMLProps, renderHTML, useHTMLRenderer };
48
47
  //# sourceMappingURL=HTMLRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HTMLRenderer.d.ts","names":[],"sources":["../../../src/html/HTMLRenderer.tsx"],"mappings":";;;;KAOY;;;;;EAKV,aAAa;;;;;;;;cASF,aAAU,mBACN,eACM,oBACpB,IAAI;;;;;;;cAuCM,oBAAe,eAAoB,qBAAe,oBAGtC,IAAA;KAUb,oBAAoB;;;;EAI9B;;;;EAIA;;;;EAIA,aAAa;EACb;EACA,UAAU;;;;;cAMC,cAAc,kBAAkB"}
1
+ {"version":3,"file":"HTMLRenderer.d.ts","names":[],"sources":["../../../src/html/HTMLRenderer.tsx"],"mappings":";;;;YAOY;;;;;EAKV,aAAa;;;;;;;;qBASF,aAAU,mBACN,eACM,oBACpB,IAAI;;;;;;;qBAuCM,oBAAe,eAAoB,qBAAe,oBAGtC,IAAA;YAUb,oBAAoB;;;;EAI9B;;;;EAIA;;;;EAIA,aAAa;EACb;EACA,UAAU;;;;;qBAMC,cAAc,kBAAkB"}
@@ -22,16 +22,15 @@ type RestHTMLComponents<T> = { [K in Exclude<keyof HTMLTagsType, keyof T>]?: Fun
22
22
  /**
23
23
  * The supported modes for the HTMLComponents type.
24
24
  */
25
- type HTMLComponentMode = 'permissive' | 'optional' | 'inclusive' | 'strict';
25
+ export type HTMLComponentMode = 'permissive' | 'optional' | 'inclusive' | 'strict';
26
26
  /**
27
27
  * The main component definition with Mode support.
28
28
  */
29
- type HTMLComponents<Mode extends HTMLComponentMode = 'optional', T = {}> = Mode extends 'strict' ? DefinedComponents<T, true> : Mode extends 'inclusive' // Inclusive: Keys in T are required. Rest of HTML is optional.
29
+ export type HTMLComponents<Mode extends HTMLComponentMode = 'optional', T = {}> = Mode extends 'strict' ? DefinedComponents<T, true> : Mode extends 'inclusive' // Inclusive: Keys in T are required. Rest of HTML is optional.
30
30
  ? DefinedComponents<T, true> & RestHTMLComponents<T> : Mode extends 'permissive' // Permissive: Keys in T optional. Rest of HTML optional. Any other string allowed.
31
31
  ? DefinedComponents<T, false> & RestHTMLComponents<T> & {
32
32
  [key: string]: FunctionalComponent<JSX.HTMLAttributes<HTMLElement>>;
33
33
  } // Optional (Default): Keys in T optional. Rest of HTML optional.
34
34
  : DefinedComponents<T, false> & RestHTMLComponents<T>;
35
35
  //#endregion
36
- export { HTMLComponentMode, HTMLComponents };
37
36
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/html/types.ts"],"mappings":";;;;;;KAMK,gBAAgB,SAAS,0BAE1B,uBACE;;;;KAMD,aAAa,KAAK,gBAAgB,IAAI,oBACvC,IAAI,kBAAkB,KACtB,IAAI,eAAe;;;;;KAMlB,kBAAkB,GAAG,8BAA8B,6BAGjD,WAAW,IAAI,oBACd,aAAa,KAAK,gBAAgB,EAAE,aAKrC,WAAW,KAAK,oBACf,aAAa,KAAK,gBAAgB,EAAE;;;;;KAQvC,mBAAmB,QACrB,KAAK,cAAc,oBAAoB,MAAM,oBAC5C,gBAAgB,IAAI,oBAChB,IAAI,kBAAkB,KACtB,IAAI,eAAe;;;;KAOf;;;;KASA,eACV,aAAa,gCACb,UACE,wBAEA,kBAAkB,WAClB;GAEE,kBAAkB,WAAW,mBAAmB,KAChD;GAEE,kBAAkB,YAChB,mBAAmB;GAChB,cAAc,oBAAoB,IAAI,eAAe;;GAG1D,kBAAkB,YAAY,mBAAmB"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/html/types.ts"],"mappings":";;;;;;KAMK,gBAAgB,SAAS,0BAE1B,uBACE;;;;KAMD,aAAa,KAAK,gBAAgB,IAAI,oBACvC,IAAI,kBAAkB,KACtB,IAAI,eAAe;;;;;KAMlB,kBAAkB,GAAG,8BAA8B,6BAGjD,WAAW,IAAI,oBACd,aAAa,KAAK,gBAAgB,EAAE,aAKrC,WAAW,KAAK,oBACf,aAAa,KAAK,gBAAgB,EAAE;;;;;KAQvC,mBAAmB,QACrB,KAAK,cAAc,oBAAoB,MAAM,oBAC5C,gBAAgB,IAAI,oBAChB,IAAI,kBAAkB,KACtB,IAAI,eAAe;;;;YAOf;;;;YASA,eACV,aAAa,gCACb,UACE,wBAEA,kBAAkB,WAClB;GAEE,kBAAkB,WAAW,mBAAmB,KAChD;GAEE,kBAAkB,YAChB,mBAAmB;GAChB,cAAc,oBAAoB,IAAI,eAAe;;GAG1D,kBAAkB,YAAY,mBAAmB"}
@@ -8,7 +8,7 @@ type PropsWithChildren<P = {}> = P & {
8
8
  /**
9
9
  * Refined options for the MarkdownProvider.
10
10
  */
11
- type MarkdownProviderOptions = {
11
+ export type MarkdownProviderOptions = {
12
12
  /**
13
13
  * Forces the compiler to always output content with a block-level wrapper.
14
14
  */
@@ -45,8 +45,7 @@ type MarkdownProviderProps = PropsWithChildren<MarkdownProviderOptions & {
45
45
  */
46
46
  renderMarkdown?: (markdown: string | ParsedMarkdown, options?: MarkdownProviderOptions, components?: HTMLComponents<'permissive', {}>, wrapper?: ComponentType<any> | keyof JSX.IntrinsicElements) => ComponentChildren | Promise<ComponentChildren>;
47
47
  }>;
48
- declare const useMarkdownContext: () => MarkdownContextValue;
49
- declare const MarkdownProvider: FunctionComponent<MarkdownProviderProps>;
48
+ export declare const useMarkdownContext: () => MarkdownContextValue;
49
+ export declare const MarkdownProvider: FunctionComponent<MarkdownProviderProps>;
50
50
  //#endregion
51
- export { MarkdownProvider, MarkdownProviderOptions, useMarkdownContext };
52
51
  //# sourceMappingURL=MarkdownProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownProvider.d.ts","names":[],"sources":["../../../src/markdown/MarkdownProvider.tsx"],"mappings":";;;;KAWK,kBAAkB,UAAU;EAAM,WAAW;;;;;KAKtC;;;;EAIV;;;;EAIA;;;;EAIA;;;;EAIA;;KASG;EACH,aAAa;EACb,iBACE,mBAAmB,gBACnB,UAAU,yBACV,aAAa,kCACb,UAAU,2BAA2B,IAAI,sBACtC,oBAAoB,QAAQ;;KAG9B,wBAAwB,kBAC3B;;;;EAIE,aAAa;;;;EAIb,UAAU,2BAA2B,IAAI;;;;;EAKzC,kBACE,mBAAmB,gBACnB,UAAU,yBACV,aAAa,kCACb,UAAU,2BAA2B,IAAI,sBACtC,oBAAoB,QAAQ;;cAQxB,0BAAkB;cAuBlB,kBAAkB,kBAAkB"}
1
+ {"version":3,"file":"MarkdownProvider.d.ts","names":[],"sources":["../../../src/markdown/MarkdownProvider.tsx"],"mappings":";;;;KAWK,kBAAkB,UAAU;EAAM,WAAW;;;;;YAKtC;;;;EAIV;;;;EAIA;;;;EAIA;;;;EAIA;;KASG;EACH,aAAa;EACb,iBACE,mBAAmB,gBACnB,UAAU,yBACV,aAAa,kCACb,UAAU,2BAA2B,IAAI,sBACtC,oBAAoB,QAAQ;;KAG9B,wBAAwB,kBAC3B;;;;EAIE,aAAa;;;;EAIb,UAAU,2BAA2B,IAAI;;;;;EAKzC,kBACE,mBAAmB,gBACnB,UAAU,yBACV,aAAa,kCACb,UAAU,2BAA2B,IAAI,sBACtC,oBAAoB,QAAQ;;qBAQxB,0BAAkB;qBAuBlB,kBAAkB,kBAAkB"}
@@ -3,7 +3,7 @@ import { ParsedMarkdown } from "./compiler.js";
3
3
  import { MarkdownProviderOptions } from "./MarkdownProvider.js";
4
4
  import { ComponentChildren, ComponentType, FunctionComponent, JSX } from "preact";
5
5
  //#region src/markdown/MarkdownRenderer.d.ts
6
- type RenderMarkdownProps = MarkdownProviderOptions & {
6
+ export type RenderMarkdownProps = MarkdownProviderOptions & {
7
7
  /**
8
8
  * Component overrides for HTML tags.
9
9
  * Only used if not wrapped in a MarkdownProvider.
@@ -15,9 +15,9 @@ type RenderMarkdownProps = MarkdownProviderOptions & {
15
15
  */
16
16
  wrapper?: ComponentType<any> | keyof JSX.IntrinsicElements;
17
17
  };
18
- declare const renderMarkdown: (content: string | ParsedMarkdown, { components, wrapper, forceBlock, forceInline, preserveFrontmatter, tagfilter }?: RenderMarkdownProps) => JSX.Element;
19
- declare const useMarkdownRenderer: ({ components, wrapper, forceBlock, forceInline, preserveFrontmatter, tagfilter }?: RenderMarkdownProps) => (content: string | ParsedMarkdown) => ComponentChildren;
20
- type MarkdownRendererProps = RenderMarkdownProps & {
18
+ export declare const renderMarkdown: (content: string | ParsedMarkdown, { components, wrapper, forceBlock, forceInline, preserveFrontmatter, tagfilter }?: RenderMarkdownProps) => JSX.Element;
19
+ export declare const useMarkdownRenderer: ({ components, wrapper, forceBlock, forceInline, preserveFrontmatter, tagfilter }?: RenderMarkdownProps) => (content: string | ParsedMarkdown) => ComponentChildren;
20
+ export type MarkdownRendererProps = RenderMarkdownProps & {
21
21
  /**
22
22
  * The markdown content to render.
23
23
  */
@@ -41,7 +41,6 @@ type MarkdownRendererProps = RenderMarkdownProps & {
41
41
  * It uses the renderMarkdown function from the MarkdownProvider context if available.
42
42
  * Otherwise, it falls back to the default compiler with provided components and options.
43
43
  */
44
- declare const MarkdownRenderer: FunctionComponent<MarkdownRendererProps>;
44
+ export declare const MarkdownRenderer: FunctionComponent<MarkdownRendererProps>;
45
45
  //#endregion
46
- export { MarkdownRenderer, MarkdownRendererProps, RenderMarkdownProps, renderMarkdown, useMarkdownRenderer };
47
46
  //# sourceMappingURL=MarkdownRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRenderer.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRenderer.tsx"],"mappings":";;;;;KAiBY,sBAAsB;;;;;EAKhC,aAAa;;;;;EAKb,UAAU,2BAA2B,IAAI;;cAG9B,iBAAc,kBACP,kBAAc,YAAA,SAAA,YAAA,aAAA,qBAAA,cAQ7B,wBACF,IAAI;cAeM,wBAAmB,YAAA,SAAA,YAAA,aAAA,qBAAA,cAO7B,yBAAmB,kBAGM,mBAAc;KA0B9B,wBAAwB;;;;EAIlC,mBAAmB;;;;;EAKnB,kBACE,mBAAmB,gBACnB;IACE,aAAa;IACb,UAAU,2BAA2B,IAAI;IACzC;IACA;IACA;IACA;QAEC,oBAAoB,QAAQ;;;;;;;;cAStB,kBAAkB,kBAAkB"}
1
+ {"version":3,"file":"MarkdownRenderer.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRenderer.tsx"],"mappings":";;;;;YAiBY,sBAAsB;;;;;EAKhC,aAAa;;;;;EAKb,UAAU,2BAA2B,IAAI;;qBAG9B,iBAAc,kBACP,kBAAc,YAAA,SAAA,YAAA,aAAA,qBAAA,cAQ7B,wBACF,IAAI;qBAeM,wBAAmB,YAAA,SAAA,YAAA,aAAA,qBAAA,cAO7B,yBAAmB,kBAGM,mBAAc;YA0B9B,wBAAwB;;;;EAIlC,mBAAmB;;;;;EAKnB,kBACE,mBAAmB,gBACnB;IACE,aAAa;IACb,UAAU,2BAA2B,IAAI;IACzC;IACA;IACA;IACA;QAEC,oBAAoB,QAAQ;;;;;;;;qBAStB,kBAAkB,kBAAkB"}
@@ -12,11 +12,10 @@ type MarkdownRendererPluginProps = {
12
12
  options?: MarkdownProviderOptions;
13
13
  components?: HTMLComponents<'permissive', {}>;
14
14
  };
15
- declare const MarkdownRendererPlugin: FunctionComponent<MarkdownRendererPluginProps>;
15
+ export declare const MarkdownRendererPlugin: FunctionComponent<MarkdownRendererPluginProps>;
16
16
  type MarkdownMetadataRendererProps = MarkdownRendererPluginProps & {
17
17
  metadataKeyPath: KeyPath[];
18
18
  };
19
- declare const MarkdownMetadataRenderer: FunctionComponent<MarkdownMetadataRendererProps>;
19
+ export declare const MarkdownMetadataRenderer: FunctionComponent<MarkdownMetadataRendererProps>;
20
20
  //#endregion
21
- export { MarkdownMetadataRenderer, MarkdownRendererPlugin };
22
21
  //# sourceMappingURL=MarkdownRendererPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRendererPlugin.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"mappings":";;;;;;KAeK;EACH;EACA,SAAS;EACT,SAAS;EACT;EACA,UAAU;EACV,aAAa;;cAGF,wBAAwB,kBACnC;KAYG,gCAAgC;EACnC,iBAAiB;;cAGN,0BAA0B,kBACrC"}
1
+ {"version":3,"file":"MarkdownRendererPlugin.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"mappings":";;;;;;KAeK;EACH;EACA,SAAS;EACT,SAAS;EACT;EACA,UAAU;EACV,aAAa;;qBAGF,wBAAwB,kBACnC;KAYG,gCAAgC;EACnC,iBAAiB;;qBAGN,0BAA0B,kBACrC"}
@@ -4,7 +4,7 @@ import { CompileOptions, ParsedMarkdown } from "@intlayer/core/markdown";
4
4
  * Options accepted by `compileMarkdown` and `parseMarkdown` to customise
5
5
  * rendering behaviour (custom components, sanitizer, slugify, rule hooks, …).
6
6
  */
7
- type MarkdownCompilerOptions = CompileOptions;
7
+ export type MarkdownCompilerOptions = CompileOptions;
8
8
  /**
9
9
  * **Step 1 of 2 — parse only.**
10
10
  * Converts a raw markdown string into a `ParsedMarkdown` AST without rendering
@@ -23,7 +23,7 @@ type MarkdownCompilerOptions = CompileOptions;
23
23
  * const element = compileMarkdown(ast, { forceBlock: true });
24
24
  * ```
25
25
  */
26
- declare const parseMarkdown: (markdown?: string, options?: MarkdownCompilerOptions) => ParsedMarkdown;
26
+ export declare const parseMarkdown: (markdown?: string, options?: MarkdownCompilerOptions) => ParsedMarkdown;
27
27
  /**
28
28
  * **Steps 1 + 2 — parse and render in one shot.**
29
29
  * Accepts a raw markdown string or a pre-parsed `ParsedMarkdown` AST and
@@ -39,7 +39,7 @@ declare const parseMarkdown: (markdown?: string, options?: MarkdownCompilerOptio
39
39
  * const element = compileMarkdown('# Hello **world**', { forceBlock: true });
40
40
  * ```
41
41
  */
42
- declare const compileMarkdown: (input?: string | ParsedMarkdown, options?: MarkdownCompilerOptions) => unknown;
42
+ export declare const compileMarkdown: (input?: string | ParsedMarkdown, options?: MarkdownCompilerOptions) => unknown;
43
43
  //#endregion
44
- export { MarkdownCompilerOptions, type ParsedMarkdown, compileMarkdown, parseMarkdown };
44
+ export type { ParsedMarkdown };
45
45
  //# sourceMappingURL=compiler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compiler.d.ts","names":[],"sources":["../../../src/markdown/compiler.ts"],"mappings":";;;;;;KAkBY,0BAA0B;;;;;;;;;;;;;;;;;;;cA2BzB,gBAAa,mBACR,UACP,4BACR;;;;;;;;;;;;;;;;cAmCU,kBAAe,iBACV,gBAAc,UACrB"}
1
+ {"version":3,"file":"compiler.d.ts","names":[],"sources":["../../../src/markdown/compiler.ts"],"mappings":";;;;;;YAkBY,0BAA0B;;;;;;;;;;;;;;;;;;;qBA2BzB,gBAAa,mBACR,UACP,4BACR;;;;;;;;;;;;;;;;qBAmCU,kBAAe,iBACV,gBAAc,UACrB"}
@@ -3,7 +3,7 @@ import { MarkdownRuntime } from "@intlayer/core/markdown";
3
3
  /**
4
4
  * Preact-specific runtime for the markdown processor.
5
5
  */
6
- declare const preactRuntime: MarkdownRuntime;
6
+ export declare const preactRuntime: MarkdownRuntime;
7
7
  //#endregion
8
- export { preactRuntime as default, preactRuntime };
8
+ export { preactRuntime as default };
9
9
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","names":[],"sources":["../../../src/markdown/runtime.ts"],"mappings":";;;;;cAgBa,eAAe"}
1
+ {"version":3,"file":"runtime.d.ts","names":[],"sources":["../../../src/markdown/runtime.ts"],"mappings":";;;;;qBAgBa,eAAe"}
@@ -9,38 +9,38 @@ import { NodeType } from "@intlayer/types/nodeType";
9
9
  /** ---------------------------------------------
10
10
  * INTLAYER NODE PLUGIN
11
11
  * --------------------------------------------- */
12
- type IntlayerNodeCond<T> = T extends number | string ? IntlayerNode<T> : never;
12
+ export type IntlayerNodeCond<T> = T extends number | string ? IntlayerNode<T> : never;
13
13
  /** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
14
- declare const intlayerNodePlugins: Plugins;
14
+ export declare const intlayerNodePlugins: Plugins;
15
15
  /** ---------------------------------------------
16
16
  * PREACT NODE PLUGIN
17
17
  * --------------------------------------------- */
18
- type PreactNodeCond<T> = T extends {
18
+ export type PreactNodeCond<T> = T extends {
19
19
  props: any;
20
20
  key: any;
21
21
  } ? VNode : never;
22
22
  /** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
23
- declare const preactNodePlugins: Plugins;
23
+ export declare const preactNodePlugins: Plugins;
24
24
  /** ---------------------------------------------
25
25
  * INSERTION PLUGIN
26
26
  * --------------------------------------------- */
27
- type InsertionCond<T, _S, L extends LocalesValues> = T extends {
27
+ export type InsertionCond<T, _S, L extends LocalesValues> = T extends {
28
28
  nodeType: NodeType | string;
29
29
  [NodeTypes.INSERTION]: infer I;
30
30
  fields: readonly (infer F)[];
31
31
  } ? <V extends { [K in Extract<F, string>]: string | number | VNode; }>(values: V) => I extends string ? V[keyof V] extends string | number ? IntlayerNode<string> : IntlayerNode<VNode> : DeepTransformContent<I, L> : never;
32
32
  /** Insertion plugin for Preact. Handles component/node insertion. */
33
- declare const insertionPlugin: Plugins;
33
+ export declare const insertionPlugin: Plugins;
34
34
  /**
35
35
  * MARKDOWN PLUGIN
36
36
  */
37
- type MarkdownStringCond<T> = T extends string ? IntlayerNode<string, {
37
+ export type MarkdownStringCond<T> = T extends string ? IntlayerNode<string, {
38
38
  metadata: DeepTransformContent<string>;
39
39
  use: (components?: HTMLComponents<'permissive', {}>) => VNode;
40
40
  }> : never;
41
41
  /** Markdown string plugin. Replaces string node with a component that render the markdown. */
42
- declare const markdownStringPlugin: Plugins;
43
- type MarkdownCond<T> = T extends {
42
+ export declare const markdownStringPlugin: Plugins;
43
+ export type MarkdownCond<T> = T extends {
44
44
  nodeType: NodeType | string;
45
45
  [NodeTypes.MARKDOWN]: infer _M;
46
46
  metadata?: infer U;
@@ -49,11 +49,11 @@ type MarkdownCond<T> = T extends {
49
49
  use: (components?: HTMLComponents<'permissive', U>) => VNode;
50
50
  metadata: DeepTransformContent<U>;
51
51
  } : never;
52
- declare const markdownPlugin: Plugins;
52
+ export declare const markdownPlugin: Plugins;
53
53
  /** ---------------------------------------------
54
54
  * HTML PLUGIN
55
55
  * --------------------------------------------- */
56
- type HTMLPluginCond<T> = T extends {
56
+ export type HTMLPluginCond<T> = T extends {
57
57
  nodeType: NodeType | string;
58
58
  [NodeTypes.HTML]: infer I;
59
59
  tags?: infer U;
@@ -61,11 +61,11 @@ type HTMLPluginCond<T> = T extends {
61
61
  use: (components?: HTMLComponents<'permissive', U>) => IntlayerNode<I>;
62
62
  } : never;
63
63
  /** HTML plugin. Replaces node with a function that takes components => VNode. */
64
- declare const htmlPlugin: Plugins;
64
+ export declare const htmlPlugin: Plugins;
65
65
  /** ---------------------------------------------
66
66
  * PLUGINS RESULT
67
67
  * --------------------------------------------- */
68
- interface IInterpreterPluginPreact<T, S, L extends LocalesValues> {
68
+ export interface IInterpreterPluginPreact<T, S, L extends LocalesValues> {
69
69
  preactNode: PreactNodeCond<T>;
70
70
  preactIntlayerNode: IntlayerNodeCond<T>;
71
71
  preactInsertion: InsertionCond<T, S, L>;
@@ -77,19 +77,18 @@ interface IInterpreterPluginPreact<T, S, L extends LocalesValues> {
77
77
  *
78
78
  * Otherwise the the `preact-intlayer` plugins will override the types of `intlayer` functions.
79
79
  */
80
- type IInterpreterPluginState = Omit<IInterpreterPluginState$1, 'insertion'> & {
80
+ export type IInterpreterPluginState = Omit<IInterpreterPluginState$1, 'insertion'> & {
81
81
  preactNode: true;
82
82
  preactIntlayerNode: true;
83
83
  preactInsertion: true;
84
84
  preactMarkdown: true;
85
85
  preactHtml: true;
86
86
  };
87
- type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> = DeepTransformContent$1<T, IInterpreterPluginState, L>;
87
+ export type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> = DeepTransformContent$1<T, IInterpreterPluginState, L>;
88
88
  /**
89
89
  * Get the plugins array for Preact content transformation.
90
90
  * This function is used by both getIntlayer and getDictionary to ensure consistent plugin configuration.
91
91
  */
92
- declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
92
+ export declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
93
93
  //#endregion
94
- export { DeepTransformContent, HTMLPluginCond, IInterpreterPluginPreact, IInterpreterPluginState, InsertionCond, IntlayerNodeCond, MarkdownCond, MarkdownStringCond, PreactNodeCond, getPlugins, htmlPlugin, insertionPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin, preactNodePlugins };
95
94
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.tsx"],"mappings":";;;;;;;;;;;KA8DY,iBAAiB,KAAK,4BAC9B,aAAa;;cAIJ,qBAAqB;;;;KA2CtB,eAAe,KAAK;EAC9B;EACA;IAEE;;cAIS,mBAAmB;;;;KA8CpB,cAAc,GAAG,IAAI,UAAU,iBAAiB;EAC1D,UAAU;GACT,UAAU,kBAAkB;EAC7B,wBAAwB;KAErB,aAAa,KAAK,QAAQ,+BAA+B,UACxD,QAAQ,MACL,mBACD,QAAQ,6BACN,uBACA,aAAa,SACf,qBAAqB,GAAG;;cAuEnB,iBAAiB;;;;KA4GlB,mBAAmB,KAAK,mBAChC;EAGI,UAAU;EACV,MAAM,aAAa,qCAAqC;;;cA4BnD,sBAAsB;KAiGvB,aAAa,KAAK;EAC5B,UAAU;GACT,UAAU,iBAAiB;EAC5B,iBAAiB;EACjB,aAAa;;EAGT,MAAM,aAAa,6BAA6B,OAAO;EACvD,UAAU,qBAAqB;;cAIxB,gBAAgB;;;;KA8BjB,eAAe,KAAK;EAC9B,UAAU;GACT,UAAU,aAAa;EACxB,aAAa;;EAGT,MAAM,aAAa,6BAA6B,OAAO,aAAa;;;cAW7D,YAAY;;;;UAkER,yBAAyB,GAAG,GAAG,UAAU;EACxD,YAAY,eAAe;EAC3B,oBAAoB,iBAAiB;EACrC,iBAAiB,cAAc,GAAG,GAAG;EACrC,gBAAgB,aAAa;EAC7B,YAAY,eAAe;;;;;;;KAQjB,0BAA0B,KACpC;EAGA;EACA;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.tsx"],"mappings":";;;;;;;;;;;YA8DY,iBAAiB,KAAK,4BAC9B,aAAa;;qBAIJ,qBAAqB;;;;YA2CtB,eAAe,KAAK;EAC9B;EACA;IAEE;;qBAIS,mBAAmB;;;;YA8CpB,cAAc,GAAG,IAAI,UAAU,iBAAiB;EAC1D,UAAU;GACT,UAAU,kBAAkB;EAC7B,wBAAwB;KAErB,aAAa,KAAK,QAAQ,+BAA+B,UACxD,QAAQ,MACL,mBACD,QAAQ,6BACN,uBACA,aAAa,SACf,qBAAqB,GAAG;;qBAuEnB,iBAAiB;;;;YA4GlB,mBAAmB,KAAK,mBAChC;EAGI,UAAU;EACV,MAAM,aAAa,qCAAqC;;;qBA4BnD,sBAAsB;YAiGvB,aAAa,KAAK;EAC5B,UAAU;GACT,UAAU,iBAAiB;EAC5B,iBAAiB;EACjB,aAAa;;EAGT,MAAM,aAAa,6BAA6B,OAAO;EACvD,UAAU,qBAAqB;;qBAIxB,gBAAgB;;;;YA8BjB,eAAe,KAAK;EAC9B,UAAU;GACT,UAAU,aAAa;EACxB,aAAa;;EAGT,MAAM,aAAa,6BAA6B,OAAO,aAAa;;;qBAW7D,YAAY;;;;iBAkER,yBAAyB,GAAG,GAAG,UAAU;EACxD,YAAY,eAAe;EAC3B,oBAAoB,iBAAiB;EACrC,iBAAiB,cAAc,GAAG,GAAG;EACrC,gBAAgB,aAAa;EAC7B,YAAY,eAAe;;;;;;;YAQjB,0BAA0B,KACpC;EAGA;EACA;EACA;EACA;EACA;;YAGU,qBACV,GACA,UAAU,gBAAgB,mBACxB,uBAAyB,GAAG,yBAAyB;;;;;qBAQ5C,aAAU,SACZ,eAAa,uBAErB"}
@@ -1,6 +1,5 @@
1
1
  import { VNode } from "preact";
2
2
  //#region src/preactElement/renderPreactElement.d.ts
3
- declare const renderPreactElement: (element: VNode<any>) => any;
3
+ export declare const renderPreactElement: (element: VNode<any>) => any;
4
4
  //#endregion
5
- export { renderPreactElement };
6
5
  //# sourceMappingURL=renderPreactElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderPreactElement.d.ts","names":[],"sources":["../../../src/preactElement/renderPreactElement.ts"],"mappings":";;cAGa,sBAAmB,SAAa"}
1
+ {"version":3,"file":"renderPreactElement.d.ts","names":[],"sources":["../../../src/preactElement/renderPreactElement.ts"],"mappings":";;qBAGa,sBAAmB,SAAa"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "preact-intlayer",
3
- "version": "9.4.2",
3
+ "version": "9.4.4",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Preact applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -100,12 +100,12 @@
100
100
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
101
101
  },
102
102
  "dependencies": {
103
- "@intlayer/api": "9.4.2",
104
- "@intlayer/config": "9.4.2",
105
- "@intlayer/core": "9.4.2",
106
- "@intlayer/editor": "9.4.2",
107
- "@intlayer/engine": "9.4.2",
108
- "@intlayer/types": "9.4.2"
103
+ "@intlayer/api": "9.4.4",
104
+ "@intlayer/config": "9.4.4",
105
+ "@intlayer/core": "9.4.4",
106
+ "@intlayer/editor": "9.4.4",
107
+ "@intlayer/engine": "9.4.4",
108
+ "@intlayer/types": "9.4.4"
109
109
  },
110
110
  "devDependencies": {
111
111
  "@types/node": "26.4.1",
@@ -114,15 +114,15 @@
114
114
  "@utils/tsdown-config": "1.0.4",
115
115
  "preact": "10.29.8",
116
116
  "rimraf": "6.1.3",
117
- "tsdown": "0.22.14",
117
+ "tsdown": "0.23.0",
118
118
  "typescript": "7.0.2",
119
- "vitest": "4.1.11"
119
+ "vitest": "5.0.0"
120
120
  },
121
121
  "peerDependencies": {
122
122
  "preact": ">=8.0.0"
123
123
  },
124
124
  "optionalDependencies": {
125
- "@intlayer/analytics": "9.4.2"
125
+ "@intlayer/analytics": "9.4.4"
126
126
  },
127
127
  "engines": {
128
128
  "node": ">=14.18"