preact-intlayer 8.4.0 → 8.4.2

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 (217) hide show
  1. package/dist/cjs/IntlayerNode.cjs +1 -1
  2. package/dist/cjs/IntlayerNode.cjs.map +1 -1
  3. package/dist/cjs/IntlayerProvider-sM1gzsx7.cjs +2 -0
  4. package/dist/cjs/IntlayerProvider-sM1gzsx7.cjs.map +1 -0
  5. package/dist/cjs/UI/ContentSelector.cjs +1 -1
  6. package/dist/cjs/UI/ContentSelector.cjs.map +1 -1
  7. package/dist/cjs/client/IntlayerProvider.cjs +1 -2
  8. package/dist/cjs/client/format/useCompact.cjs +1 -1
  9. package/dist/cjs/client/format/useCompact.cjs.map +1 -1
  10. package/dist/cjs/client/format/useCurrency.cjs +1 -1
  11. package/dist/cjs/client/format/useCurrency.cjs.map +1 -1
  12. package/dist/cjs/client/format/useDate.cjs +1 -1
  13. package/dist/cjs/client/format/useDate.cjs.map +1 -1
  14. package/dist/cjs/client/format/useIntl.cjs +1 -1
  15. package/dist/cjs/client/format/useIntl.cjs.map +1 -1
  16. package/dist/cjs/client/format/useList.cjs +1 -1
  17. package/dist/cjs/client/format/useList.cjs.map +1 -1
  18. package/dist/cjs/client/format/useNumber.cjs +1 -1
  19. package/dist/cjs/client/format/useNumber.cjs.map +1 -1
  20. package/dist/cjs/client/format/usePercentage.cjs +1 -1
  21. package/dist/cjs/client/format/usePercentage.cjs.map +1 -1
  22. package/dist/cjs/client/format/useRelativeTime.cjs +1 -1
  23. package/dist/cjs/client/format/useRelativeTime.cjs.map +1 -1
  24. package/dist/cjs/client/format/useUnit.cjs +1 -1
  25. package/dist/cjs/client/format/useUnit.cjs.map +1 -1
  26. package/dist/cjs/client/index.cjs +1 -1
  27. package/dist/cjs/client/t.cjs +1 -1
  28. package/dist/cjs/client/t.cjs.map +1 -1
  29. package/dist/cjs/client/useDictionary.cjs +1 -1
  30. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  31. package/dist/cjs/client/useDictionaryAsync.cjs +1 -1
  32. package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
  33. package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
  34. package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
  35. package/dist/cjs/client/useIntlayer.cjs +1 -1
  36. package/dist/cjs/client/useIntlayer.cjs.map +1 -1
  37. package/dist/cjs/client/useLocale.cjs +1 -1
  38. package/dist/cjs/client/useLocale.cjs.map +1 -1
  39. package/dist/cjs/client/useLocaleBase.cjs +1 -1
  40. package/dist/cjs/client/useLocaleBase.cjs.map +1 -1
  41. package/dist/cjs/client/useLocaleStorage.cjs +1 -1
  42. package/dist/cjs/client/useLocaleStorage.cjs.map +1 -1
  43. package/dist/cjs/client/useTraduction.cjs +1 -1
  44. package/dist/cjs/client/useTraduction.cjs.map +1 -1
  45. package/dist/cjs/editor/ContentSelector.cjs +1 -1
  46. package/dist/cjs/editor/ContentSelector.cjs.map +1 -1
  47. package/dist/cjs/editor/EditorProvider.cjs +1 -2
  48. package/dist/cjs/editor/useEditor.cjs +1 -2
  49. package/dist/cjs/getDictionary.cjs +1 -1
  50. package/dist/cjs/getDictionary.cjs.map +1 -1
  51. package/dist/cjs/getIntlayer.cjs +1 -1
  52. package/dist/cjs/getIntlayer.cjs.map +1 -1
  53. package/dist/cjs/html/HTMLProvider.cjs +1 -1
  54. package/dist/cjs/html/HTMLProvider.cjs.map +1 -1
  55. package/dist/cjs/html/HTMLRenderer.cjs +1 -1
  56. package/dist/cjs/html/HTMLRenderer.cjs.map +1 -1
  57. package/dist/cjs/index.cjs +1 -1
  58. package/dist/cjs/markdown/MarkdownProvider.cjs +1 -1
  59. package/dist/cjs/markdown/MarkdownProvider.cjs.map +1 -1
  60. package/dist/cjs/markdown/MarkdownRenderer.cjs +1 -1
  61. package/dist/cjs/markdown/MarkdownRenderer.cjs.map +1 -1
  62. package/dist/cjs/markdown/MarkdownRendererPlugin.cjs +1 -1
  63. package/dist/cjs/markdown/MarkdownRendererPlugin.cjs.map +1 -1
  64. package/dist/cjs/markdown/compiler.cjs +1 -1
  65. package/dist/cjs/markdown/compiler.cjs.map +1 -1
  66. package/dist/cjs/markdown/index.cjs +1 -1
  67. package/dist/cjs/markdown/runtime.cjs +1 -1
  68. package/dist/cjs/markdown/runtime.cjs.map +1 -1
  69. package/dist/cjs/plugins.cjs +1 -1
  70. package/dist/cjs/plugins.cjs.map +1 -1
  71. package/dist/cjs/preactElement/renderPreactElement.cjs +1 -1
  72. package/dist/cjs/preactElement/renderPreactElement.cjs.map +1 -1
  73. package/dist/esm/IntlayerProvider-ClOcEK3A.mjs +2 -0
  74. package/dist/esm/IntlayerProvider-ClOcEK3A.mjs.map +1 -0
  75. package/dist/esm/client/IntlayerProvider.mjs +1 -2
  76. package/dist/esm/client/format/useCompact.mjs +1 -1
  77. package/dist/esm/client/format/useCompact.mjs.map +1 -1
  78. package/dist/esm/client/format/useCurrency.mjs +1 -1
  79. package/dist/esm/client/format/useCurrency.mjs.map +1 -1
  80. package/dist/esm/client/format/useDate.mjs +1 -1
  81. package/dist/esm/client/format/useDate.mjs.map +1 -1
  82. package/dist/esm/client/format/useIntl.mjs +1 -1
  83. package/dist/esm/client/format/useIntl.mjs.map +1 -1
  84. package/dist/esm/client/format/useList.mjs +1 -1
  85. package/dist/esm/client/format/useList.mjs.map +1 -1
  86. package/dist/esm/client/format/useNumber.mjs +1 -1
  87. package/dist/esm/client/format/useNumber.mjs.map +1 -1
  88. package/dist/esm/client/format/usePercentage.mjs +1 -1
  89. package/dist/esm/client/format/usePercentage.mjs.map +1 -1
  90. package/dist/esm/client/format/useRelativeTime.mjs +1 -1
  91. package/dist/esm/client/format/useRelativeTime.mjs.map +1 -1
  92. package/dist/esm/client/format/useUnit.mjs +1 -1
  93. package/dist/esm/client/format/useUnit.mjs.map +1 -1
  94. package/dist/esm/client/index.mjs +1 -1
  95. package/dist/esm/client/t.mjs +1 -1
  96. package/dist/esm/client/t.mjs.map +1 -1
  97. package/dist/esm/client/useDictionary.mjs +1 -1
  98. package/dist/esm/client/useDictionary.mjs.map +1 -1
  99. package/dist/esm/client/useDictionaryAsync.mjs +1 -1
  100. package/dist/esm/client/useDictionaryAsync.mjs.map +1 -1
  101. package/dist/esm/client/useDictionaryDynamic.mjs +1 -1
  102. package/dist/esm/client/useDictionaryDynamic.mjs.map +1 -1
  103. package/dist/esm/client/useIntlayer.mjs +1 -1
  104. package/dist/esm/client/useIntlayer.mjs.map +1 -1
  105. package/dist/esm/client/useLocale.mjs +1 -1
  106. package/dist/esm/client/useLocale.mjs.map +1 -1
  107. package/dist/esm/client/useLocaleBase.mjs +1 -1
  108. package/dist/esm/client/useLocaleBase.mjs.map +1 -1
  109. package/dist/esm/client/useTraduction.mjs +1 -1
  110. package/dist/esm/client/useTraduction.mjs.map +1 -1
  111. package/dist/esm/editor/ContentSelector.mjs +1 -1
  112. package/dist/esm/editor/ContentSelector.mjs.map +1 -1
  113. package/dist/esm/editor/EditorProvider.mjs +1 -2
  114. package/dist/esm/editor/useEditor.mjs +1 -2
  115. package/dist/esm/index.mjs +1 -1
  116. package/dist/esm/plugins.mjs +1 -1
  117. package/dist/esm/plugins.mjs.map +1 -1
  118. package/dist/types/HTMLProvider-8sO8DU8H.d.ts +18 -0
  119. package/dist/types/HTMLProvider-8sO8DU8H.d.ts.map +1 -0
  120. package/dist/types/HTMLRenderer-NNa_9oMD.d.ts +61 -0
  121. package/dist/types/HTMLRenderer-NNa_9oMD.d.ts.map +1 -0
  122. package/dist/types/IntlayerNode-CIzFHYnC.d.ts +23 -0
  123. package/dist/types/IntlayerNode-CIzFHYnC.d.ts.map +1 -0
  124. package/dist/types/IntlayerNode.d.ts +2 -23
  125. package/dist/types/IntlayerProvider-aV596OL4.d.ts +53 -0
  126. package/dist/types/IntlayerProvider-aV596OL4.d.ts.map +1 -0
  127. package/dist/types/MarkdownProvider-chUIO05u.d.ts +52 -0
  128. package/dist/types/MarkdownProvider-chUIO05u.d.ts.map +1 -0
  129. package/dist/types/MarkdownRenderer-BMhuurZW.d.ts +61 -0
  130. package/dist/types/MarkdownRenderer-BMhuurZW.d.ts.map +1 -0
  131. package/dist/types/MarkdownRendererPlugin-DFRVdHCA.d.ts +23 -0
  132. package/dist/types/MarkdownRendererPlugin-DFRVdHCA.d.ts.map +1 -0
  133. package/dist/types/client/IntlayerProvider.d.ts +2 -53
  134. package/dist/types/client/format/useIntl.d.ts +2 -82
  135. package/dist/types/client/format/useList.d.ts +5 -1
  136. package/dist/types/client/format/useList.d.ts.map +1 -1
  137. package/dist/types/client/index.d.ts +11 -11
  138. package/dist/types/client/t.d.ts +2 -13
  139. package/dist/types/client/useDictionary.d.ts +2 -16
  140. package/dist/types/client/useDictionaryAsync.d.ts +2 -13
  141. package/dist/types/client/useDictionaryDynamic.d.ts +2 -16
  142. package/dist/types/client/useIntlayer.d.ts +2 -28
  143. package/dist/types/client/useLoadDynamic.d.ts +2 -5
  144. package/dist/types/client/useLocale.d.ts +2 -43
  145. package/dist/types/client/useLocaleBase.d.ts +2 -16
  146. package/dist/types/client/useLocaleStorage.d.ts +2 -45
  147. package/dist/types/compiler-BB0gAVbe.d.ts +14 -0
  148. package/dist/types/compiler-BB0gAVbe.d.ts.map +1 -0
  149. package/dist/types/getDictionary.d.ts +1 -1
  150. package/dist/types/getIntlayer.d.ts +1 -1
  151. package/dist/types/html/HTMLProvider.d.ts +2 -18
  152. package/dist/types/html/HTMLRenderer.d.ts +2 -61
  153. package/dist/types/html/index.d.ts +2 -2
  154. package/dist/types/html/types.d.ts +2 -38
  155. package/dist/types/index.d.ts +19 -19
  156. package/dist/types/markdown/MarkdownProvider.d.ts +2 -52
  157. package/dist/types/markdown/MarkdownRenderer.d.ts +2 -61
  158. package/dist/types/markdown/MarkdownRendererPlugin.d.ts +2 -23
  159. package/dist/types/markdown/compiler.d.ts +2 -14
  160. package/dist/types/markdown/index.d.ts +5 -5
  161. package/dist/types/markdown/runtime.d.ts +2 -10
  162. package/dist/types/plugins-D6OB94dO.d.ts +95 -0
  163. package/dist/types/plugins-D6OB94dO.d.ts.map +1 -0
  164. package/dist/types/plugins.d.ts +2 -95
  165. package/dist/types/runtime-BMHAtT-R.d.ts +10 -0
  166. package/dist/types/runtime-BMHAtT-R.d.ts.map +1 -0
  167. package/dist/types/t-CalXqnSB.d.ts +13 -0
  168. package/dist/types/t-CalXqnSB.d.ts.map +1 -0
  169. package/dist/types/types-B3Kzdco6.d.ts +38 -0
  170. package/dist/types/types-B3Kzdco6.d.ts.map +1 -0
  171. package/dist/types/useDictionary-cjQAc1l1.d.ts +16 -0
  172. package/dist/types/useDictionary-cjQAc1l1.d.ts.map +1 -0
  173. package/dist/types/useDictionaryAsync-CDCcBnXn.d.ts +13 -0
  174. package/dist/types/useDictionaryAsync-CDCcBnXn.d.ts.map +1 -0
  175. package/dist/types/useDictionaryDynamic-BQgaM0vp.d.ts +16 -0
  176. package/dist/types/useDictionaryDynamic-BQgaM0vp.d.ts.map +1 -0
  177. package/dist/types/useIntl-DfzrSGu4.d.ts +26 -0
  178. package/dist/types/useIntl-DfzrSGu4.d.ts.map +1 -0
  179. package/dist/types/useIntlayer-BINmW9T1.d.ts +28 -0
  180. package/dist/types/useIntlayer-BINmW9T1.d.ts.map +1 -0
  181. package/dist/types/useLoadDynamic-DFXHehpF.d.ts +5 -0
  182. package/dist/types/useLoadDynamic-DFXHehpF.d.ts.map +1 -0
  183. package/dist/types/useLocale-BDQ4yLc5.d.ts +43 -0
  184. package/dist/types/useLocale-BDQ4yLc5.d.ts.map +1 -0
  185. package/dist/types/useLocaleBase-1L1RLyXD.d.ts +16 -0
  186. package/dist/types/useLocaleBase-1L1RLyXD.d.ts.map +1 -0
  187. package/dist/types/useLocaleStorage-BwH9gqN5.d.ts +45 -0
  188. package/dist/types/useLocaleStorage-BwH9gqN5.d.ts.map +1 -0
  189. package/package.json +7 -7
  190. package/dist/cjs/_virtual/_rolldown/runtime.cjs +0 -1
  191. package/dist/cjs/client/IntlayerProvider.cjs.map +0 -1
  192. package/dist/cjs/editor/EditorProvider.cjs.map +0 -1
  193. package/dist/cjs/editor/useEditor.cjs.map +0 -1
  194. package/dist/esm/client/IntlayerProvider.mjs.map +0 -1
  195. package/dist/esm/editor/EditorProvider.mjs.map +0 -1
  196. package/dist/esm/editor/useEditor.mjs.map +0 -1
  197. package/dist/types/IntlayerNode.d.ts.map +0 -1
  198. package/dist/types/client/IntlayerProvider.d.ts.map +0 -1
  199. package/dist/types/client/format/useIntl.d.ts.map +0 -1
  200. package/dist/types/client/t.d.ts.map +0 -1
  201. package/dist/types/client/useDictionary.d.ts.map +0 -1
  202. package/dist/types/client/useDictionaryAsync.d.ts.map +0 -1
  203. package/dist/types/client/useDictionaryDynamic.d.ts.map +0 -1
  204. package/dist/types/client/useIntlayer.d.ts.map +0 -1
  205. package/dist/types/client/useLoadDynamic.d.ts.map +0 -1
  206. package/dist/types/client/useLocale.d.ts.map +0 -1
  207. package/dist/types/client/useLocaleBase.d.ts.map +0 -1
  208. package/dist/types/client/useLocaleStorage.d.ts.map +0 -1
  209. package/dist/types/html/HTMLProvider.d.ts.map +0 -1
  210. package/dist/types/html/HTMLRenderer.d.ts.map +0 -1
  211. package/dist/types/html/types.d.ts.map +0 -1
  212. package/dist/types/markdown/MarkdownProvider.d.ts.map +0 -1
  213. package/dist/types/markdown/MarkdownRenderer.d.ts.map +0 -1
  214. package/dist/types/markdown/MarkdownRendererPlugin.d.ts.map +0 -1
  215. package/dist/types/markdown/compiler.d.ts.map +0 -1
  216. package/dist/types/markdown/runtime.d.ts.map +0 -1
  217. package/dist/types/plugins.d.ts.map +0 -1
@@ -1,53 +1,2 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
2
- import * as preact from "preact";
3
- import { ComponentChild, FunctionComponent } from "preact";
4
-
5
- //#region src/client/IntlayerProvider.d.ts
6
- type IntlayerValue = {
7
- locale: LocalesValues;
8
- setLocale: (newLocale: LocalesValues) => void;
9
- isCookieEnabled?: boolean;
10
- };
11
- /**
12
- * Context that store the current locale on the client side
13
- */
14
- declare const IntlayerClientContext: preact.Context<IntlayerValue>;
15
- /**
16
- * Hook that provides the current locale
17
- */
18
- declare const useIntlayerContext: () => IntlayerValue;
19
- type IntlayerProviderProps = {
20
- children?: ComponentChild;
21
- locale?: LocalesValues;
22
- defaultLocale?: LocalesValues;
23
- setLocale?: (locale: LocalesValues) => void;
24
- isCookieEnabled?: boolean;
25
- };
26
- /**
27
- * Provider that store the current locale on the client side
28
- */
29
- declare const IntlayerProviderContent: FunctionComponent<IntlayerProviderProps>;
30
- /**
31
- * Main provider for Intlayer in Preact applications.
32
- *
33
- * It provides the Intlayer context to your application, allowing the use
34
- * of hooks like `useIntlayer` and `useLocale`.
35
- *
36
- * @param props - The provider props.
37
- * @returns The provider component.
38
- *
39
- * @example
40
- * ```tsx
41
- * import { IntlayerProvider } from 'preact-intlayer';
42
- *
43
- * const App = () => (
44
- * <IntlayerProvider>
45
- * <MyComponent />
46
- * </IntlayerProvider>
47
- * );
48
- * ```
49
- */
50
- declare const IntlayerProvider: FunctionComponent<IntlayerProviderProps>;
51
- //#endregion
52
- export { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, IntlayerProviderProps, useIntlayerContext };
53
- //# sourceMappingURL=IntlayerProvider.d.ts.map
1
+ import { a as useIntlayerContext, i as IntlayerProviderProps, n as IntlayerProvider, r as IntlayerProviderContent, t as IntlayerClientContext } from "../IntlayerProvider-aV596OL4.js";
2
+ export { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, IntlayerProviderProps, useIntlayerContext };
@@ -1,82 +1,2 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
2
-
3
- //#region src/client/format/useIntl.d.ts
4
- /**
5
- * Preact client hook that provides a locale-bound `Intl` object.
6
- *
7
- * It acts exactly like the native `Intl` object, but acts as a proxy to:
8
- * 1. Inject the current locale automatically if none is provided.
9
- * 2. Use the performance-optimized `CachedIntl` under the hood.
10
- *
11
- * @example
12
- * ```tsx
13
- * const intl = useIntl(); // uses context locale
14
- *
15
- * // Standard API, but no need to pass locale as the first argument
16
- * const formatted = new intl.NumberFormat({
17
- * style: 'currency',
18
- * currency: 'USD'
19
- * }).format(123.45);
20
- * ```
21
- */
22
- declare const useIntl: (locale?: LocalesValues) => {
23
- Collator: {
24
- new (locales?: LocalesValues, options?: Intl.CollatorOptions): Intl.Collator;
25
- new (options?: Intl.CollatorOptions & {
26
- locale?: LocalesValues;
27
- }): Intl.Collator;
28
- };
29
- NumberFormat: {
30
- new (locales?: LocalesValues, options?: Intl.NumberFormatOptions): Intl.NumberFormat;
31
- new (options?: Intl.NumberFormatOptions & {
32
- locale?: LocalesValues;
33
- }): Intl.NumberFormat;
34
- };
35
- DateTimeFormat: {
36
- new (locales?: LocalesValues, options?: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
37
- new (options?: Intl.DateTimeFormatOptions & {
38
- locale?: LocalesValues;
39
- }): Intl.DateTimeFormat;
40
- };
41
- getCanonicalLocales: typeof Intl.getCanonicalLocales;
42
- readonly PluralRules: {
43
- new (locales?: LocalesValues, options?: Intl.PluralRulesOptions): Intl.PluralRules;
44
- new (options?: Intl.PluralRulesOptions & {
45
- locale?: LocalesValues;
46
- }): Intl.PluralRules;
47
- };
48
- readonly RelativeTimeFormat: {
49
- new (locales?: LocalesValues, options?: Intl.RelativeTimeFormatOptions): Intl.RelativeTimeFormat;
50
- new (options?: Intl.RelativeTimeFormatOptions & {
51
- locale?: LocalesValues;
52
- }): Intl.RelativeTimeFormat;
53
- };
54
- readonly Locale: {
55
- new (locales?: LocalesValues, options?: Intl.LocaleOptions): Intl.Locale;
56
- new (options?: Intl.LocaleOptions & {
57
- locale?: LocalesValues;
58
- }): Intl.Locale;
59
- };
60
- readonly DisplayNames: {
61
- new (locales?: LocalesValues, options?: Intl.DisplayNamesOptions): Intl.DisplayNames;
62
- new (options?: Intl.DisplayNamesOptions & {
63
- locale?: LocalesValues;
64
- }): Intl.DisplayNames;
65
- };
66
- readonly ListFormat: {
67
- new (locales?: LocalesValues, options?: Intl.ListFormatOptions): Intl.ListFormat;
68
- new (options?: Intl.ListFormatOptions & {
69
- locale?: LocalesValues;
70
- }): Intl.ListFormat;
71
- };
72
- supportedValuesOf: typeof Intl.supportedValuesOf;
73
- readonly Segmenter: {
74
- new (locales?: LocalesValues, options?: Intl.SegmenterOptions): Intl.Segmenter;
75
- new (options?: Intl.SegmenterOptions & {
76
- locale?: LocalesValues;
77
- }): Intl.Segmenter;
78
- };
79
- };
80
- //#endregion
81
- export { useIntl };
82
- //# sourceMappingURL=useIntl.d.ts.map
1
+ import { t as useIntl } from "../../useIntl-DfzrSGu4.js";
2
+ export { useIntl };
@@ -22,7 +22,11 @@ import * as _intlayer_types_module_augmentation0 from "@intlayer/types/module_au
22
22
  * // "1, 2 und 3"
23
23
  * ```
24
24
  */
25
- declare const useList: () => (values: (string | number)[], options?: Intl.ListFormatOptions & {
25
+ declare const useList: () => (values: (string | number)[], options?: {
26
+ localeMatcher?: "lookup" | "best fit";
27
+ type?: "conjunction" | "disjunction" | "unit";
28
+ style?: "long" | "short" | "narrow";
29
+ } & {
26
30
  locale?: _intlayer_types_module_augmentation0.LocalesValues;
27
31
  }) => string;
28
32
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/client/format/useList.ts"],"mappings":";;;;;;AAyBA;;;;;;;;;;;;;;;;;;cAAa,OAAA,SAAO,MAAA,uBAAA,OAAA,GAAA,IAAA,CAAA,iBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/client/format/useList.ts"],"mappings":";;;;;;AAyBA;;;;;;;;;;;;;;;;;;cAAa,OAAA,SAAO,MAAA,uBAAA,OAAA;;;;;WAWnB,oCAAA,CAAA,aAAA;AAAA"}
@@ -1,12 +1,12 @@
1
- import { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, IntlayerProviderProps, useIntlayerContext } from "./IntlayerProvider.js";
2
- import { useIntl } from "./format/useIntl.js";
3
- import { t } from "./t.js";
4
- import { useDictionary } from "./useDictionary.js";
5
- import { useDictionaryAsync } from "./useDictionaryAsync.js";
6
- import { useDictionaryDynamic } from "./useDictionaryDynamic.js";
7
- import { useIntlayer } from "./useIntlayer.js";
8
- import { useLoadDynamic } from "./useLoadDynamic.js";
9
- import { useLocale } from "./useLocale.js";
10
- import { useLocaleBase } from "./useLocaleBase.js";
11
- import { localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage } from "./useLocaleStorage.js";
1
+ import { a as useIntlayerContext, i as IntlayerProviderProps, n as IntlayerProvider, r as IntlayerProviderContent, t as IntlayerClientContext } from "../IntlayerProvider-aV596OL4.js";
2
+ import { t as useIntl } from "../useIntl-DfzrSGu4.js";
3
+ import { t } from "../t-CalXqnSB.js";
4
+ import { t as useDictionary } from "../useDictionary-cjQAc1l1.js";
5
+ import { t as useDictionaryAsync } from "../useDictionaryAsync-CDCcBnXn.js";
6
+ import { t as useDictionaryDynamic } from "../useDictionaryDynamic-BQgaM0vp.js";
7
+ import { t as useIntlayer } from "../useIntlayer-BINmW9T1.js";
8
+ import { t as useLoadDynamic } from "../useLoadDynamic-DFXHehpF.js";
9
+ import { t as useLocale } from "../useLocale-BDQ4yLc5.js";
10
+ import { t as useLocaleBase } from "../useLocaleBase-1L1RLyXD.js";
11
+ import { a as useLocaleCookie, i as setLocaleInStorage, n as localeInStorage, o as useLocaleStorage, r as setLocaleCookie, t as localeCookie } from "../useLocaleStorage-BwH9gqN5.js";
12
12
  export { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, type IntlayerProviderProps, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntl, useIntlayer, useIntlayerContext, useLoadDynamic, useLocale, useLocaleBase, useLocaleCookie, useLocaleStorage };
@@ -1,13 +1,2 @@
1
- import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
2
- import { Locale } from "@intlayer/types/allLocales";
3
-
4
- //#region src/client/t.d.ts
5
- /**
6
- * On the client side, this function returns the translation of the provided multilang content.
7
- *
8
- * If the locale is not provided, it will use the locale from the client context
9
- */
10
- declare const t: <Content = string>(multilangContent: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
11
- //#endregion
12
- export { t };
13
- //# sourceMappingURL=t.d.ts.map
1
+ import { t } from "../t-CalXqnSB.js";
2
+ export { t };
@@ -1,16 +1,2 @@
1
- import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core_interpreter0 from "@intlayer/core/interpreter";
3
- import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
4
- import * as _intlayer_types_allLocales0 from "@intlayer/types/allLocales";
5
- import { Dictionary } from "@intlayer/types/dictionary";
6
-
7
- //#region src/client/useDictionary.d.ts
8
- /**
9
- * On the server side, Hook that transform a dictionary and return the content
10
- *
11
- * If the locale is not provided, it will use the locale from the client context
12
- */
13
- declare const useDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => _intlayer_core_interpreter0.DeepTransformContent<T["content"], IInterpreterPluginState$1, _intlayer_types_allLocales0.Locale>;
14
- //#endregion
15
- export { useDictionary };
16
- //# sourceMappingURL=useDictionary.d.ts.map
1
+ import { t as useDictionary } from "../useDictionary-cjQAc1l1.js";
2
+ export { useDictionary };
@@ -1,13 +1,2 @@
1
- import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
2
- import { Dictionary } from "@intlayer/types/dictionary";
3
-
4
- //#region src/client/useDictionaryAsync.d.ts
5
- /**
6
- * On the server side, Hook that transform a dictionary and return the content
7
- *
8
- * If the locale is not provided, it will use the locale from the client context
9
- */
10
- declare const useDictionaryAsync: <T extends Dictionary>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: LocalesValues) => Promise<T>;
11
- //#endregion
12
- export { useDictionaryAsync };
13
- //# sourceMappingURL=useDictionaryAsync.d.ts.map
1
+ import { t as useDictionaryAsync } from "../useDictionaryAsync-CDCcBnXn.js";
2
+ export { useDictionaryAsync };
@@ -1,16 +1,2 @@
1
- import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core_interpreter0 from "@intlayer/core/interpreter";
3
- import { DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
4
- import * as _intlayer_types_allLocales0 from "@intlayer/types/allLocales";
5
- import { Dictionary } from "@intlayer/types/dictionary";
6
-
7
- //#region src/client/useDictionaryDynamic.d.ts
8
- /**
9
- * On the server side, Hook that transform a dictionary and return the content
10
- *
11
- * If the locale is not provided, it will use the locale from the client context
12
- */
13
- declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => _intlayer_core_interpreter0.DeepTransformContent<T["content"], IInterpreterPluginState$1, _intlayer_types_allLocales0.Locale>;
14
- //#endregion
15
- export { useDictionaryDynamic };
16
- //# sourceMappingURL=useDictionaryDynamic.d.ts.map
1
+ import { t as useDictionaryDynamic } from "../useDictionaryDynamic-BQgaM0vp.js";
2
+ export { useDictionaryDynamic };
@@ -1,28 +1,2 @@
1
- import { DeepTransformContent } from "../plugins.js";
2
- import { DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types/module_augmentation";
3
-
4
- //#region src/client/useIntlayer.d.ts
5
- /**
6
- * Preact hook that picks one dictionary by its key and returns its content.
7
- *
8
- * If the locale is not provided, it will use the locale from the client context.
9
- *
10
- * @param key - The unique key of the dictionary to retrieve.
11
- * @param locale - Optional locale to override the current context locale.
12
- * @returns The transformed dictionary content.
13
- *
14
- * @example
15
- * ```tsx
16
- * import { useIntlayer } from 'preact-intlayer';
17
- *
18
- * const MyComponent = () => {
19
- * const content = useIntlayer('my-dictionary-key');
20
- *
21
- * return <div>{content.myField.value}</div>;
22
- * };
23
- * ```
24
- */
25
- declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L) => DeepTransformContent<DictionaryRegistryContent<T>>;
26
- //#endregion
27
- export { useIntlayer };
28
- //# sourceMappingURL=useIntlayer.d.ts.map
1
+ import { t as useIntlayer } from "../useIntlayer-BINmW9T1.js";
2
+ export { useIntlayer };
@@ -1,5 +1,2 @@
1
- //#region src/client/useLoadDynamic.d.ts
2
- declare const useLoadDynamic: <T>(key: string, promise: Promise<T>) => T;
3
- //#endregion
4
- export { useLoadDynamic };
5
- //# sourceMappingURL=useLoadDynamic.d.ts.map
1
+ import { t as useLoadDynamic } from "../useLoadDynamic-DFXHehpF.js";
2
+ export { useLoadDynamic };
@@ -1,43 +1,2 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
2
- import * as _intlayer_types_allLocales0 from "@intlayer/types/allLocales";
3
-
4
- //#region src/client/useLocale.d.ts
5
- type useLocaleProps = {
6
- isCookieEnabled?: boolean;
7
- onLocaleChange?: (locale: LocalesValues) => void;
8
- };
9
- /**
10
- * Preact hook to get the current locale and related locale management functions.
11
- *
12
- * @param props - Optional properties for the hook.
13
- * @returns An object containing the current locale, default locale, available locales, and a function to update the locale.
14
- *
15
- * @example
16
- * ```tsx
17
- * import { useLocale } from 'preact-intlayer';
18
- *
19
- * const LocaleSwitcher = () => {
20
- * const { locale, setLocale, availableLocales } = useLocale();
21
- *
22
- * return (
23
- * <select value={locale} onChange={(e) => setLocale(e.target.value)}>
24
- * {availableLocales.map((loc) => (
25
- * <option key={loc} value={loc}>{loc}</option>
26
- * ))}
27
- * </select>
28
- * );
29
- * };
30
- * ```
31
- */
32
- declare const useLocale: ({
33
- isCookieEnabled,
34
- onLocaleChange
35
- }?: useLocaleProps) => {
36
- locale: LocalesValues;
37
- defaultLocale: _intlayer_types_allLocales0.Locale;
38
- availableLocales: _intlayer_types_allLocales0.Locale[];
39
- setLocale: (locale: LocalesValues) => void;
40
- };
41
- //#endregion
42
- export { useLocale };
43
- //# sourceMappingURL=useLocale.d.ts.map
1
+ import { t as useLocale } from "../useLocale-BDQ4yLc5.js";
2
+ export { useLocale };
@@ -1,16 +1,2 @@
1
- import * as _intlayer_types_module_augmentation0 from "@intlayer/types/module_augmentation";
2
- import * as _intlayer_types_allLocales0 from "@intlayer/types/allLocales";
3
-
4
- //#region src/client/useLocaleBase.d.ts
5
- /**
6
- * On the client side, hook to get the current locale and all related fields
7
- */
8
- declare const useLocaleBase: () => {
9
- locale: _intlayer_types_module_augmentation0.LocalesValues;
10
- defaultLocale: _intlayer_types_allLocales0.Locale;
11
- availableLocales: _intlayer_types_allLocales0.Locale[];
12
- setLocale: (newLocale: _intlayer_types_module_augmentation0.LocalesValues) => void;
13
- };
14
- //#endregion
15
- export { useLocaleBase };
16
- //# sourceMappingURL=useLocaleBase.d.ts.map
1
+ import { t as useLocaleBase } from "../useLocaleBase-1L1RLyXD.js";
2
+ export { useLocaleBase };
@@ -1,45 +1,2 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
2
- import * as _intlayer_types_allLocales0 from "@intlayer/types/allLocales";
3
-
4
- //#region src/client/useLocaleStorage.d.ts
5
- /**
6
- * Get the locale cookie
7
- */
8
- declare const localeInStorage: _intlayer_types_allLocales0.Locale;
9
- /**
10
- * @deprecated Use localeInStorage instead
11
- *
12
- * Get the locale cookie
13
- */
14
- declare const localeCookie: _intlayer_types_allLocales0.Locale;
15
- /**
16
- * Set the locale cookie
17
- */
18
- declare const setLocaleInStorage: (locale: LocalesValues, isCookieEnabled: boolean) => void;
19
- /**
20
- * @deprecated Use setLocaleInStorage instead
21
- *
22
- * Set the locale cookie
23
- */
24
- declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: boolean) => void;
25
- /**
26
- * Hook that provides the locale storage and a function to set it
27
- */
28
- declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
29
- getLocale: () => _intlayer_types_allLocales0.Locale;
30
- setLocale: (locale: LocalesValues) => void;
31
- };
32
- /**
33
- * @deprecated Use useLocaleStorage instead
34
- *
35
- * For GDPR compliance, use useLocaleStorage instead
36
- *
37
- * Hook that provides the locale cookie and a function to set it
38
- */
39
- declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
40
- localeCookie: _intlayer_types_allLocales0.Locale;
41
- setLocaleCookie: (locale: LocalesValues) => void;
42
- };
43
- //#endregion
44
- export { localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage };
45
- //# sourceMappingURL=useLocaleStorage.d.ts.map
1
+ import { a as useLocaleCookie, i as setLocaleInStorage, n as localeInStorage, o as useLocaleStorage, r as setLocaleCookie, t as localeCookie } from "../useLocaleStorage-BwH9gqN5.js";
2
+ export { localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage };
@@ -0,0 +1,14 @@
1
+ import { CompileOptions, RuleType, sanitizer as defaultSanitizer, slugify as defaultSlugify } from "@intlayer/core/markdown";
2
+
3
+ //#region src/markdown/compiler.d.ts
4
+ type MarkdownCompilerOptions = CompileOptions;
5
+ /**
6
+ * Compile markdown to Preact VNodes.
7
+ * This is the primary export - use this for new code.
8
+ */
9
+ declare const compileMarkdown: (markdown?: string, options?: MarkdownCompilerOptions) => unknown;
10
+ declare const compiler: (markdown?: string, options?: MarkdownCompilerOptions) => unknown;
11
+ declare const compile: (markdown?: string, options?: MarkdownCompilerOptions) => unknown;
12
+ //#endregion
13
+ export { compiler as a, compileMarkdown as i, RuleType as n, defaultSanitizer as o, compile as r, defaultSlugify as s, MarkdownCompilerOptions as t };
14
+ //# sourceMappingURL=compiler-BB0gAVbe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler-BB0gAVbe.d.ts","names":[],"sources":["../../src/markdown/compiler.ts"],"mappings":";;;KAiBY,uBAAA,GAA0B,cAAA;;AAMtC;;;cAAa,eAAA,GACX,QAAA,WACA,OAAA,GAAS,uBAAA;AAAA,cAIE,QAAA,GAAQ,QAAA,WALH,OAAA,GACP,uBAAA;AAAA,cAKE,OAAA,GAAO,QAAA,WANF,OAAA,GACP,uBAAA"}
@@ -1,4 +1,4 @@
1
- import { DeepTransformContent } from "./plugins.js";
1
+ import { t as DeepTransformContent } from "./plugins-D6OB94dO.js";
2
2
  import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
3
3
  import { Dictionary } from "@intlayer/types/dictionary";
4
4
 
@@ -1,4 +1,4 @@
1
- import { DeepTransformContent } from "./plugins.js";
1
+ import { t as DeepTransformContent } from "./plugins-D6OB94dO.js";
2
2
  import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types/module_augmentation";
3
3
 
4
4
  //#region src/getIntlayer.d.ts
@@ -1,18 +1,2 @@
1
- import { HTMLComponents } from "./types.js";
2
- import { FunctionalComponent, RenderableProps } from "preact";
3
-
4
- //#region src/html/HTMLProvider.d.ts
5
- type HTMLContextValue = {
6
- components?: HTMLComponents<'permissive', {}>;
7
- };
8
- type HTMLProviderProps = RenderableProps<{
9
- /**
10
- * Component overrides for HTML tags.
11
- */
12
- components?: HTMLComponents<'permissive', {}>;
13
- }>;
14
- declare const useHTMLContext: () => HTMLContextValue;
15
- declare const HTMLProvider: FunctionalComponent<HTMLProviderProps>;
16
- //#endregion
17
- export { HTMLProvider, useHTMLContext };
18
- //# sourceMappingURL=HTMLProvider.d.ts.map
1
+ import { n as useHTMLContext, t as HTMLProvider } from "../HTMLProvider-8sO8DU8H.js";
2
+ export { HTMLProvider, useHTMLContext };
@@ -1,61 +1,2 @@
1
- import { HTMLComponents } from "./types.js";
2
- import { FunctionComponent, JSX, h } from "preact";
3
- import { KeyPath } from "@intlayer/types/keyPath";
4
-
5
- //#region src/html/HTMLRenderer.d.ts
6
- /**
7
- * Type for Preact HTML tag components.
8
- */
9
- type HTMLTagComponent = (props: {
10
- children?: any;
11
- [key: string]: any;
12
- }) => JSX.Element;
13
- declare const defaultHTMLComponents: Record<string, HTMLTagComponent>;
14
- type RenderHTMLProps = {
15
- /**
16
- * Component overrides for HTML tags.
17
- * Allows you to customize how specific HTML elements are rendered.
18
- */
19
- components?: HTMLComponents<'permissive', {}>;
20
- };
21
- /**
22
- * Renders HTML-like content to JSX with the provided components.
23
- *
24
- * This function does not use context from HTMLProvider. Use `useHTMLRenderer`
25
- * hook if you want to leverage provider context.
26
- */
27
- declare const renderHTML: (content: string, {
28
- components
29
- }?: RenderHTMLProps) => JSX.Element;
30
- /**
31
- * Hook that returns a function to render HTML content.
32
- *
33
- * This hook considers the configuration from the `HTMLProvider` context if available,
34
- * falling back to the provided components.
35
- */
36
- declare const useHTMLRenderer: ({
37
- components
38
- }?: RenderHTMLProps) => (content: string) => h.JSX.Element;
39
- type HTMLRendererProps = RenderHTMLProps & {
40
- /**
41
- * The HTML content to render as a string.
42
- */
43
- children?: string;
44
- /**
45
- * Alias for children, used by the plugin.
46
- */
47
- html?: string;
48
- /**
49
- * Alias for components, used by the plugin.
50
- */
51
- components?: HTMLComponents<'permissive', {}>;
52
- dictionaryKey?: string;
53
- keyPath?: KeyPath[];
54
- };
55
- /**
56
- * Preact component that renders HTML-like content to JSX.
57
- */
58
- declare const HTMLRenderer: FunctionComponent<HTMLRendererProps>;
59
- //#endregion
60
- export { HTMLRenderer, HTMLRendererProps, RenderHTMLProps, defaultHTMLComponents, renderHTML, useHTMLRenderer };
61
- //# sourceMappingURL=HTMLRenderer.d.ts.map
1
+ import { a as renderHTML, i as defaultHTMLComponents, n as HTMLRendererProps, o as useHTMLRenderer, r as RenderHTMLProps, t as HTMLRenderer } from "../HTMLRenderer-NNa_9oMD.js";
2
+ export { HTMLRenderer, HTMLRendererProps, RenderHTMLProps, defaultHTMLComponents, renderHTML, useHTMLRenderer };
@@ -1,3 +1,3 @@
1
- import { HTMLProvider, useHTMLContext } from "./HTMLProvider.js";
2
- import { HTMLRenderer, HTMLRendererProps, RenderHTMLProps, defaultHTMLComponents, renderHTML, useHTMLRenderer } from "./HTMLRenderer.js";
1
+ import { n as useHTMLContext, t as HTMLProvider } from "../HTMLProvider-8sO8DU8H.js";
2
+ import { a as renderHTML, i as defaultHTMLComponents, n as HTMLRendererProps, o as useHTMLRenderer, r as RenderHTMLProps, t as HTMLRenderer } from "../HTMLRenderer-NNa_9oMD.js";
3
3
  export { HTMLProvider, HTMLRenderer, HTMLRendererProps, RenderHTMLProps, defaultHTMLComponents, renderHTML, useHTMLContext, useHTMLRenderer };
@@ -1,38 +1,2 @@
1
- import { FunctionalComponent, JSX } from "preact";
2
- import { HTMLTagsType } from "@intlayer/core/transpiler";
3
-
4
- //#region src/html/types.d.ts
5
- /**
6
- * Helper to extract specific props from the configuration value.
7
- */
8
- type PropsFromConfig<Value> = Value extends true ? {} : Value extends object ? Value : {};
9
- /**
10
- * Smart Type to resolve props based on the key K.
11
- */
12
- type ElementProps<K> = K extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[K] : JSX.HTMLAttributes<HTMLElement>;
13
- /**
14
- * Helper: Defines the mapping for the explicitly listed keys in T.
15
- * Handles whether they are Required or Optional.
16
- */
17
- type DefinedComponents<T, IsRequired extends boolean> = IsRequired extends true ? { [K in keyof T]: FunctionalComponent<ElementProps<K> & PropsFromConfig<T[K]>> } : { [K in keyof T]?: FunctionalComponent<ElementProps<K> & PropsFromConfig<T[K]>> };
18
- /**
19
- * Helper: Defines the standard HTML tags NOT listed in T.
20
- * These are always optional when included.
21
- */
22
- type RestHTMLComponents<T> = { [K in Exclude<keyof HTMLTagsType, keyof T>]?: FunctionalComponent<K extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[K] : JSX.HTMLAttributes<HTMLElement>> };
23
- /**
24
- * The supported modes for the HTMLComponents type.
25
- */
26
- type HTMLComponentMode = 'permissive' | 'optional' | 'inclusive' | 'strict';
27
- /**
28
- * The main component definition with Mode support.
29
- */
30
- 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.
31
- DefinedComponents<T, true> & RestHTMLComponents<T> : Mode extends 'permissive' ? // Permissive: Keys in T optional. Rest of HTML optional. Any other string allowed.
32
- DefinedComponents<T, false> & RestHTMLComponents<T> & {
33
- [key: string]: FunctionalComponent<JSX.HTMLAttributes<HTMLElement>>;
34
- } : // Optional (Default): Keys in T optional. Rest of HTML optional.
35
- DefinedComponents<T, false> & RestHTMLComponents<T>;
36
- //#endregion
37
- export { HTMLComponentMode, HTMLComponents };
38
- //# sourceMappingURL=types.d.ts.map
1
+ import { n as HTMLComponents, t as HTMLComponentMode } from "../types-B3Kzdco6.js";
2
+ export { HTMLComponentMode, HTMLComponents };
@@ -1,24 +1,24 @@
1
- import { IntlayerNode } from "./IntlayerNode.js";
2
- import { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, IntlayerProviderProps, useIntlayerContext } from "./client/IntlayerProvider.js";
3
- import { useIntl } from "./client/format/useIntl.js";
4
- import { t } from "./client/t.js";
5
- import { IInterpreterPluginPreact, htmlPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin, preactNodePlugins } from "./plugins.js";
6
- import { useDictionary } from "./client/useDictionary.js";
7
- import { useDictionaryAsync } from "./client/useDictionaryAsync.js";
8
- import { useDictionaryDynamic } from "./client/useDictionaryDynamic.js";
9
- import { useIntlayer } from "./client/useIntlayer.js";
10
- import { useLoadDynamic } from "./client/useLoadDynamic.js";
11
- import { useLocale } from "./client/useLocale.js";
12
- import { useLocaleBase } from "./client/useLocaleBase.js";
13
- import { localeCookie, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage } from "./client/useLocaleStorage.js";
1
+ import { t as IntlayerNode } from "./IntlayerNode-CIzFHYnC.js";
2
+ import { a as useIntlayerContext, i as IntlayerProviderProps, n as IntlayerProvider, r as IntlayerProviderContent, t as IntlayerClientContext } from "./IntlayerProvider-aV596OL4.js";
3
+ import { t as useIntl } from "./useIntl-DfzrSGu4.js";
4
+ import { t } from "./t-CalXqnSB.js";
5
+ import { d as htmlPlugin, g as preactNodePlugins, h as markdownStringPlugin, m as markdownPlugin, p as intlayerNodePlugins, r as IInterpreterPluginPreact } from "./plugins-D6OB94dO.js";
6
+ import { t as useDictionary } from "./useDictionary-cjQAc1l1.js";
7
+ import { t as useDictionaryAsync } from "./useDictionaryAsync-CDCcBnXn.js";
8
+ import { t as useDictionaryDynamic } from "./useDictionaryDynamic-BQgaM0vp.js";
9
+ import { t as useIntlayer } from "./useIntlayer-BINmW9T1.js";
10
+ import { t as useLoadDynamic } from "./useLoadDynamic-DFXHehpF.js";
11
+ import { t as useLocale } from "./useLocale-BDQ4yLc5.js";
12
+ import { t as useLocaleBase } from "./useLocaleBase-1L1RLyXD.js";
13
+ import { a as useLocaleCookie, i as setLocaleInStorage, o as useLocaleStorage, r as setLocaleCookie, t as localeCookie } from "./useLocaleStorage-BwH9gqN5.js";
14
14
  import { getDictionary } from "./getDictionary.js";
15
15
  import { getIntlayer } from "./getIntlayer.js";
16
- import { HTMLProvider } from "./html/HTMLProvider.js";
17
- import { HTMLRenderer, HTMLRendererProps, RenderHTMLProps, renderHTML, useHTMLRenderer } from "./html/HTMLRenderer.js";
18
- import { compileMarkdown } from "./markdown/compiler.js";
19
- import { MarkdownProvider } from "./markdown/MarkdownProvider.js";
20
- import { MarkdownRenderer, renderMarkdown, useMarkdownRenderer } from "./markdown/MarkdownRenderer.js";
21
- import preactRuntime from "./markdown/runtime.js";
16
+ import { t as HTMLProvider } from "./HTMLProvider-8sO8DU8H.js";
17
+ import { a as renderHTML, n as HTMLRendererProps, o as useHTMLRenderer, r as RenderHTMLProps, t as HTMLRenderer } from "./HTMLRenderer-NNa_9oMD.js";
18
+ import { i as compileMarkdown } from "./compiler-BB0gAVbe.js";
19
+ import { t as MarkdownProvider } from "./MarkdownProvider-chUIO05u.js";
20
+ import { i as useMarkdownRenderer, r as renderMarkdown, t as MarkdownRenderer } from "./MarkdownRenderer-BMhuurZW.js";
21
+ import { t as preactRuntime } from "./runtime-BMHAtT-R.js";
22
22
  import { LocalesValues } from "@intlayer/types/module_augmentation";
23
23
 
24
24
  //#region src/index.d.ts