preact-intlayer 6.1.6 → 7.0.0-canary.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 (297) hide show
  1. package/dist/cjs/IntlayerNode.cjs +15 -45
  2. package/dist/cjs/IntlayerNode.cjs.map +1 -1
  3. package/dist/cjs/UI/ContentSelector.cjs +98 -130
  4. package/dist/cjs/UI/ContentSelector.cjs.map +1 -1
  5. package/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
  6. package/dist/cjs/client/IntlayerProvider.cjs +67 -95
  7. package/dist/cjs/client/IntlayerProvider.cjs.map +1 -1
  8. package/dist/cjs/client/format/index.cjs +17 -50
  9. package/dist/cjs/client/format/useCompact.cjs +29 -39
  10. package/dist/cjs/client/format/useCompact.cjs.map +1 -1
  11. package/dist/cjs/client/format/useCurrency.cjs +43 -39
  12. package/dist/cjs/client/format/useCurrency.cjs.map +1 -1
  13. package/dist/cjs/client/format/useDate.cjs +45 -36
  14. package/dist/cjs/client/format/useDate.cjs.map +1 -1
  15. package/dist/cjs/client/format/useList.cjs +40 -39
  16. package/dist/cjs/client/format/useList.cjs.map +1 -1
  17. package/dist/cjs/client/format/useNumber.cjs +41 -39
  18. package/dist/cjs/client/format/useNumber.cjs.map +1 -1
  19. package/dist/cjs/client/format/usePercentage.cjs +37 -39
  20. package/dist/cjs/client/format/usePercentage.cjs.map +1 -1
  21. package/dist/cjs/client/format/useRelativeTime.cjs +37 -39
  22. package/dist/cjs/client/format/useRelativeTime.cjs.map +1 -1
  23. package/dist/cjs/client/format/useUnit.cjs +36 -39
  24. package/dist/cjs/client/format/useUnit.cjs.map +1 -1
  25. package/dist/cjs/client/index.cjs +29 -69
  26. package/dist/cjs/client/t.cjs +21 -34
  27. package/dist/cjs/client/t.cjs.map +1 -1
  28. package/dist/cjs/client/useContent.cjs +16 -36
  29. package/dist/cjs/client/useContent.cjs.map +1 -1
  30. package/dist/cjs/client/useDictionary.cjs +26 -36
  31. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  32. package/dist/cjs/client/useDictionaryAsync.cjs +23 -52
  33. package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
  34. package/dist/cjs/client/useDictionaryDynamic.cjs +22 -42
  35. package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
  36. package/dist/cjs/client/useIntlayer.cjs +26 -36
  37. package/dist/cjs/client/useIntlayer.cjs.map +1 -1
  38. package/dist/cjs/client/useLoadDynamic.cjs +21 -50
  39. package/dist/cjs/client/useLoadDynamic.cjs.map +1 -1
  40. package/dist/cjs/client/useLocale.cjs +36 -67
  41. package/dist/cjs/client/useLocale.cjs.map +1 -1
  42. package/dist/cjs/client/useLocaleBase.cjs +25 -53
  43. package/dist/cjs/client/useLocaleBase.cjs.map +1 -1
  44. package/dist/cjs/client/useLocaleStorage.cjs +60 -0
  45. package/dist/cjs/client/useLocaleStorage.cjs.map +1 -0
  46. package/dist/cjs/client/useTraduction.cjs +34 -35
  47. package/dist/cjs/client/useTraduction.cjs.map +1 -1
  48. package/dist/cjs/editor/CommunicatorContext.cjs +40 -62
  49. package/dist/cjs/editor/CommunicatorContext.cjs.map +1 -1
  50. package/dist/cjs/editor/ConfigurationContext.cjs +26 -47
  51. package/dist/cjs/editor/ConfigurationContext.cjs.map +1 -1
  52. package/dist/cjs/editor/ContentSelectorWrapper.cjs +58 -94
  53. package/dist/cjs/editor/ContentSelectorWrapper.cjs.map +1 -1
  54. package/dist/cjs/editor/DictionariesRecordContext.cjs +47 -73
  55. package/dist/cjs/editor/DictionariesRecordContext.cjs.map +1 -1
  56. package/dist/cjs/editor/EditedContentContext.cjs +160 -211
  57. package/dist/cjs/editor/EditedContentContext.cjs.map +1 -1
  58. package/dist/cjs/editor/EditorEnabledContext.cjs +34 -59
  59. package/dist/cjs/editor/EditorEnabledContext.cjs.map +1 -1
  60. package/dist/cjs/editor/EditorProvider.cjs +62 -66
  61. package/dist/cjs/editor/EditorProvider.cjs.map +1 -1
  62. package/dist/cjs/editor/FocusDictionaryContext.cjs +51 -75
  63. package/dist/cjs/editor/FocusDictionaryContext.cjs.map +1 -1
  64. package/dist/cjs/editor/IntlayerEditorProvider.cjs +45 -94
  65. package/dist/cjs/editor/IntlayerEditorProvider.cjs.map +1 -1
  66. package/dist/cjs/editor/index.cjs +3 -23
  67. package/dist/cjs/editor/useCrossFrameMessageListener.cjs +73 -50
  68. package/dist/cjs/editor/useCrossFrameMessageListener.cjs.map +1 -1
  69. package/dist/cjs/editor/useCrossFrameState.cjs +106 -73
  70. package/dist/cjs/editor/useCrossFrameState.cjs.map +1 -1
  71. package/dist/cjs/editor/useCrossURLPathState.cjs +67 -66
  72. package/dist/cjs/editor/useCrossURLPathState.cjs.map +1 -1
  73. package/dist/cjs/editor/useEditedContentRenderer.cjs +27 -59
  74. package/dist/cjs/editor/useEditedContentRenderer.cjs.map +1 -1
  75. package/dist/cjs/editor/useIframeClickInterceptor.cjs +24 -47
  76. package/dist/cjs/editor/useIframeClickInterceptor.cjs.map +1 -1
  77. package/dist/cjs/getDictionary.cjs +15 -40
  78. package/dist/cjs/getDictionary.cjs.map +1 -1
  79. package/dist/cjs/getIntlayer.cjs +15 -36
  80. package/dist/cjs/getIntlayer.cjs.map +1 -1
  81. package/dist/cjs/index.cjs +30 -62
  82. package/dist/cjs/markdown/MarkdownProvider.cjs +19 -39
  83. package/dist/cjs/markdown/MarkdownProvider.cjs.map +1 -1
  84. package/dist/cjs/markdown/MarkdownRenderer.cjs +39 -80
  85. package/dist/cjs/markdown/MarkdownRenderer.cjs.map +1 -1
  86. package/dist/cjs/markdown/index.cjs +7 -25
  87. package/dist/cjs/plugins.cjs +97 -119
  88. package/dist/cjs/plugins.cjs.map +1 -1
  89. package/dist/cjs/preactElement/renderPreactElement.cjs +34 -59
  90. package/dist/cjs/preactElement/renderPreactElement.cjs.map +1 -1
  91. package/dist/esm/IntlayerNode.mjs +13 -25
  92. package/dist/esm/IntlayerNode.mjs.map +1 -1
  93. package/dist/esm/UI/ContentSelector.mjs +94 -105
  94. package/dist/esm/UI/ContentSelector.mjs.map +1 -1
  95. package/dist/esm/client/IntlayerProvider.mjs +51 -54
  96. package/dist/esm/client/IntlayerProvider.mjs.map +1 -1
  97. package/dist/esm/client/format/index.mjs +2 -11
  98. package/dist/esm/client/format/useCompact.mjs +24 -13
  99. package/dist/esm/client/format/useCompact.mjs.map +1 -1
  100. package/dist/esm/client/format/useCurrency.mjs +38 -13
  101. package/dist/esm/client/format/useCurrency.mjs.map +1 -1
  102. package/dist/esm/client/format/useDate.mjs +40 -10
  103. package/dist/esm/client/format/useDate.mjs.map +1 -1
  104. package/dist/esm/client/format/useList.mjs +35 -13
  105. package/dist/esm/client/format/useList.mjs.map +1 -1
  106. package/dist/esm/client/format/useNumber.mjs +36 -13
  107. package/dist/esm/client/format/useNumber.mjs.map +1 -1
  108. package/dist/esm/client/format/usePercentage.mjs +32 -13
  109. package/dist/esm/client/format/usePercentage.mjs.map +1 -1
  110. package/dist/esm/client/format/useRelativeTime.mjs +32 -13
  111. package/dist/esm/client/format/useRelativeTime.mjs.map +1 -1
  112. package/dist/esm/client/format/useUnit.mjs +31 -13
  113. package/dist/esm/client/format/useUnit.mjs.map +1 -1
  114. package/dist/esm/client/index.mjs +5 -32
  115. package/dist/esm/client/t.mjs +16 -8
  116. package/dist/esm/client/t.mjs.map +1 -1
  117. package/dist/esm/client/useContent.mjs +14 -10
  118. package/dist/esm/client/useContent.mjs.map +1 -1
  119. package/dist/esm/client/useDictionary.mjs +23 -11
  120. package/dist/esm/client/useDictionary.mjs.map +1 -1
  121. package/dist/esm/client/useDictionaryAsync.mjs +18 -16
  122. package/dist/esm/client/useDictionaryAsync.mjs.map +1 -1
  123. package/dist/esm/client/useDictionaryDynamic.mjs +17 -15
  124. package/dist/esm/client/useDictionaryDynamic.mjs.map +1 -1
  125. package/dist/esm/client/useIntlayer.mjs +23 -11
  126. package/dist/esm/client/useIntlayer.mjs.map +1 -1
  127. package/dist/esm/client/useLoadDynamic.mjs +20 -26
  128. package/dist/esm/client/useLoadDynamic.mjs.map +1 -1
  129. package/dist/esm/client/useLocale.mjs +31 -31
  130. package/dist/esm/client/useLocale.mjs.map +1 -1
  131. package/dist/esm/client/useLocaleBase.mjs +19 -16
  132. package/dist/esm/client/useLocaleBase.mjs.map +1 -1
  133. package/dist/esm/client/useLocaleStorage.mjs +52 -0
  134. package/dist/esm/client/useLocaleStorage.mjs.map +1 -0
  135. package/dist/esm/client/useTraduction.mjs +29 -9
  136. package/dist/esm/client/useTraduction.mjs.map +1 -1
  137. package/dist/esm/editor/CommunicatorContext.mjs +28 -24
  138. package/dist/esm/editor/CommunicatorContext.mjs.map +1 -1
  139. package/dist/esm/editor/ConfigurationContext.mjs +20 -24
  140. package/dist/esm/editor/ConfigurationContext.mjs.map +1 -1
  141. package/dist/esm/editor/ContentSelectorWrapper.mjs +50 -70
  142. package/dist/esm/editor/ContentSelectorWrapper.mjs.map +1 -1
  143. package/dist/esm/editor/DictionariesRecordContext.mjs +37 -47
  144. package/dist/esm/editor/DictionariesRecordContext.mjs.map +1 -1
  145. package/dist/esm/editor/EditedContentContext.mjs +146 -187
  146. package/dist/esm/editor/EditedContentContext.mjs.map +1 -1
  147. package/dist/esm/editor/EditorEnabledContext.mjs +23 -33
  148. package/dist/esm/editor/EditorEnabledContext.mjs.map +1 -1
  149. package/dist/esm/editor/EditorProvider.mjs +57 -54
  150. package/dist/esm/editor/EditorProvider.mjs.map +1 -1
  151. package/dist/esm/editor/FocusDictionaryContext.mjs +42 -49
  152. package/dist/esm/editor/FocusDictionaryContext.mjs.map +1 -1
  153. package/dist/esm/editor/IntlayerEditorProvider.mjs +37 -55
  154. package/dist/esm/editor/IntlayerEditorProvider.mjs.map +1 -1
  155. package/dist/esm/editor/index.mjs +3 -2
  156. package/dist/esm/editor/useCrossFrameMessageListener.mjs +68 -24
  157. package/dist/esm/editor/useCrossFrameMessageListener.mjs.map +1 -1
  158. package/dist/esm/editor/useCrossFrameState.mjs +102 -47
  159. package/dist/esm/editor/useCrossFrameState.mjs.map +1 -1
  160. package/dist/esm/editor/useCrossURLPathState.mjs +60 -40
  161. package/dist/esm/editor/useCrossURLPathState.mjs.map +1 -1
  162. package/dist/esm/editor/useEditedContentRenderer.mjs +23 -33
  163. package/dist/esm/editor/useEditedContentRenderer.mjs.map +1 -1
  164. package/dist/esm/editor/useIframeClickInterceptor.mjs +18 -20
  165. package/dist/esm/editor/useIframeClickInterceptor.mjs.map +1 -1
  166. package/dist/esm/getDictionary.mjs +13 -22
  167. package/dist/esm/getDictionary.mjs.map +1 -1
  168. package/dist/esm/getIntlayer.mjs +13 -18
  169. package/dist/esm/getIntlayer.mjs.map +1 -1
  170. package/dist/esm/index.mjs +13 -39
  171. package/dist/esm/markdown/MarkdownProvider.mjs +14 -16
  172. package/dist/esm/markdown/MarkdownProvider.mjs.map +1 -1
  173. package/dist/esm/markdown/MarkdownRenderer.mjs +34 -57
  174. package/dist/esm/markdown/MarkdownRenderer.mjs.map +1 -1
  175. package/dist/esm/markdown/index.mjs +4 -3
  176. package/dist/esm/plugins.mjs +86 -92
  177. package/dist/esm/plugins.mjs.map +1 -1
  178. package/dist/esm/preactElement/renderPreactElement.mjs +31 -34
  179. package/dist/esm/preactElement/renderPreactElement.mjs.map +1 -1
  180. package/dist/types/IntlayerNode.d.ts +19 -12
  181. package/dist/types/IntlayerNode.d.ts.map +1 -1
  182. package/dist/types/UI/ContentSelector.d.ts +12 -9
  183. package/dist/types/UI/ContentSelector.d.ts.map +1 -1
  184. package/dist/types/client/IntlayerProvider.d.ts +22 -16
  185. package/dist/types/client/IntlayerProvider.d.ts.map +1 -1
  186. package/dist/types/client/format/index.d.ts +9 -9
  187. package/dist/types/client/format/useCompact.d.ts +8 -2
  188. package/dist/types/client/format/useCompact.d.ts.map +1 -1
  189. package/dist/types/client/format/useCurrency.d.ts +8 -2
  190. package/dist/types/client/format/useCurrency.d.ts.map +1 -1
  191. package/dist/types/client/format/useDate.d.ts +7 -2
  192. package/dist/types/client/format/useDate.d.ts.map +1 -1
  193. package/dist/types/client/format/useList.d.ts +8 -2
  194. package/dist/types/client/format/useList.d.ts.map +1 -1
  195. package/dist/types/client/format/useNumber.d.ts +8 -2
  196. package/dist/types/client/format/useNumber.d.ts.map +1 -1
  197. package/dist/types/client/format/usePercentage.d.ts +8 -2
  198. package/dist/types/client/format/usePercentage.d.ts.map +1 -1
  199. package/dist/types/client/format/useRelativeTime.d.ts +9 -3
  200. package/dist/types/client/format/useRelativeTime.d.ts.map +1 -1
  201. package/dist/types/client/format/useUnit.d.ts +8 -2
  202. package/dist/types/client/format/useUnit.d.ts.map +1 -1
  203. package/dist/types/client/index.d.ts +11 -12
  204. package/dist/types/client/t.d.ts +7 -3
  205. package/dist/types/client/t.d.ts.map +1 -1
  206. package/dist/types/client/useContent.d.ts +10 -5
  207. package/dist/types/client/useContent.d.ts.map +1 -1
  208. package/dist/types/client/useDictionary.d.ts +9 -3
  209. package/dist/types/client/useDictionary.d.ts.map +1 -1
  210. package/dist/types/client/useDictionaryAsync.d.ts +7 -3
  211. package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
  212. package/dist/types/client/useDictionaryDynamic.d.ts +9 -3
  213. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  214. package/dist/types/client/useIntlayer.d.ts +8 -5
  215. package/dist/types/client/useIntlayer.d.ts.map +1 -1
  216. package/dist/types/client/useLoadDynamic.d.ts +4 -1
  217. package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
  218. package/dist/types/client/useLocale.d.ts +16 -8
  219. package/dist/types/client/useLocale.d.ts.map +1 -1
  220. package/dist/types/client/useLocaleBase.d.ts +10 -5
  221. package/dist/types/client/useLocaleBase.d.ts.map +1 -1
  222. package/dist/types/client/useLocaleStorage.d.ts +45 -0
  223. package/dist/types/client/useLocaleStorage.d.ts.map +1 -0
  224. package/dist/types/client/useTraduction.d.ts +7 -2
  225. package/dist/types/client/useTraduction.d.ts.map +1 -1
  226. package/dist/types/editor/CommunicatorContext.d.ts +15 -11
  227. package/dist/types/editor/CommunicatorContext.d.ts.map +1 -1
  228. package/dist/types/editor/ConfigurationContext.d.ts +12 -7
  229. package/dist/types/editor/ConfigurationContext.d.ts.map +1 -1
  230. package/dist/types/editor/ContentSelectorWrapper.d.ts +8 -4
  231. package/dist/types/editor/ContentSelectorWrapper.d.ts.map +1 -1
  232. package/dist/types/editor/DictionariesRecordContext.d.ts +15 -12
  233. package/dist/types/editor/DictionariesRecordContext.d.ts.map +1 -1
  234. package/dist/types/editor/EditedContentContext.d.ts +32 -29
  235. package/dist/types/editor/EditedContentContext.d.ts.map +1 -1
  236. package/dist/types/editor/EditorEnabledContext.d.ts +14 -9
  237. package/dist/types/editor/EditorEnabledContext.d.ts.map +1 -1
  238. package/dist/types/editor/EditorProvider.d.ts +9 -5
  239. package/dist/types/editor/EditorProvider.d.ts.map +1 -1
  240. package/dist/types/editor/FocusDictionaryContext.d.ts +18 -15
  241. package/dist/types/editor/FocusDictionaryContext.d.ts.map +1 -1
  242. package/dist/types/editor/IntlayerEditorProvider.d.ts +7 -3
  243. package/dist/types/editor/IntlayerEditorProvider.d.ts.map +1 -1
  244. package/dist/types/editor/index.d.ts +2 -2
  245. package/dist/types/editor/useCrossFrameMessageListener.d.ts +7 -2
  246. package/dist/types/editor/useCrossFrameMessageListener.d.ts.map +1 -1
  247. package/dist/types/editor/useCrossFrameState.d.ts +11 -7
  248. package/dist/types/editor/useCrossFrameState.d.ts.map +1 -1
  249. package/dist/types/editor/useCrossURLPathState.d.ts +8 -3
  250. package/dist/types/editor/useCrossURLPathState.d.ts.map +1 -1
  251. package/dist/types/editor/useEditedContentRenderer.d.ts +16 -10
  252. package/dist/types/editor/useEditedContentRenderer.d.ts.map +1 -1
  253. package/dist/types/editor/useIframeClickInterceptor.d.ts +5 -2
  254. package/dist/types/editor/useIframeClickInterceptor.d.ts.map +1 -1
  255. package/dist/types/getDictionary.d.ts +8 -4
  256. package/dist/types/getDictionary.d.ts.map +1 -1
  257. package/dist/types/getIntlayer.d.ts +8 -4
  258. package/dist/types/getIntlayer.d.ts.map +1 -1
  259. package/dist/types/index.d.ts +18 -6
  260. package/dist/types/index.d.ts.map +1 -1
  261. package/dist/types/markdown/MarkdownProvider.d.ts +8 -5
  262. package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -1
  263. package/dist/types/markdown/MarkdownRenderer.d.ts +13 -11
  264. package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -1
  265. package/dist/types/markdown/index.d.ts +3 -3
  266. package/dist/types/plugins.d.ts +33 -27
  267. package/dist/types/plugins.d.ts.map +1 -1
  268. package/dist/types/preactElement/renderPreactElement.d.ts +7 -3
  269. package/dist/types/preactElement/renderPreactElement.d.ts.map +1 -1
  270. package/package.json +40 -46
  271. package/LICENSE +0 -202
  272. package/dist/cjs/client/format/index.cjs.map +0 -1
  273. package/dist/cjs/client/getBrowserLocale.cjs +0 -173
  274. package/dist/cjs/client/getBrowserLocale.cjs.map +0 -1
  275. package/dist/cjs/client/index.cjs.map +0 -1
  276. package/dist/cjs/client/useLocaleCookie.cjs +0 -60
  277. package/dist/cjs/client/useLocaleCookie.cjs.map +0 -1
  278. package/dist/cjs/editor/index.cjs.map +0 -1
  279. package/dist/cjs/index.cjs.map +0 -1
  280. package/dist/cjs/markdown/index.cjs.map +0 -1
  281. package/dist/esm/client/format/index.mjs.map +0 -1
  282. package/dist/esm/client/getBrowserLocale.mjs +0 -138
  283. package/dist/esm/client/getBrowserLocale.mjs.map +0 -1
  284. package/dist/esm/client/index.mjs.map +0 -1
  285. package/dist/esm/client/useLocaleCookie.mjs +0 -24
  286. package/dist/esm/client/useLocaleCookie.mjs.map +0 -1
  287. package/dist/esm/editor/index.mjs.map +0 -1
  288. package/dist/esm/index.mjs.map +0 -1
  289. package/dist/esm/markdown/index.mjs.map +0 -1
  290. package/dist/types/client/format/index.d.ts.map +0 -1
  291. package/dist/types/client/getBrowserLocale.d.ts +0 -25
  292. package/dist/types/client/getBrowserLocale.d.ts.map +0 -1
  293. package/dist/types/client/index.d.ts.map +0 -1
  294. package/dist/types/client/useLocaleCookie.d.ts +0 -17
  295. package/dist/types/client/useLocaleCookie.d.ts.map +0 -1
  296. package/dist/types/editor/index.d.ts.map +0 -1
  297. package/dist/types/markdown/index.d.ts.map +0 -1
@@ -1,14 +1,18 @@
1
- import { type ComponentChildren, type FunctionComponent } from 'preact';
2
- export type UseCrossPlatformStateProps = {
3
- postMessage: typeof window.postMessage;
4
- allowedOrigins?: string[];
5
- senderId: string;
1
+ import { ComponentChildren, FunctionComponent } from "preact";
2
+
3
+ //#region src/editor/CommunicatorContext.d.ts
4
+ type UseCrossPlatformStateProps = {
5
+ postMessage: typeof window.postMessage;
6
+ allowedOrigins?: string[];
7
+ senderId: string;
6
8
  };
7
- export type CommunicatorProviderProps = {
8
- children?: ComponentChildren;
9
- postMessage: typeof window.postMessage;
10
- allowedOrigins?: string[];
9
+ type CommunicatorProviderProps = {
10
+ children?: ComponentChildren;
11
+ postMessage: typeof window.postMessage;
12
+ allowedOrigins?: string[];
11
13
  };
12
- export declare const CommunicatorProvider: FunctionComponent<CommunicatorProviderProps>;
13
- export declare const useCommunicator: () => UseCrossPlatformStateProps;
14
+ declare const CommunicatorProvider: FunctionComponent<CommunicatorProviderProps>;
15
+ declare const useCommunicator: () => UseCrossPlatformStateProps;
16
+ //#endregion
17
+ export { CommunicatorProvider, CommunicatorProviderProps, UseCrossPlatformStateProps, useCommunicator };
14
18
  //# sourceMappingURL=CommunicatorContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommunicatorContext.d.ts","sourceRoot":"","sources":["../../../src/editor/CommunicatorContext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,QAAQ,CAAC;AAIhB,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,EAAE,OAAO,MAAM,CAAC,WAAW,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAcF,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,WAAW,EAAE,OAAO,MAAM,CAAC,WAAW,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAClD,yBAAyB,CAe1B,CAAC;AAEF,eAAO,MAAM,eAAe,kCAAwC,CAAC"}
1
+ {"version":3,"file":"CommunicatorContext.d.ts","names":[],"sources":["../../../src/editor/CommunicatorContext.tsx"],"sourcesContent":[],"mappings":";;;KAYY,0BAAA;sBACU,MAAA,CAAO;EADjB,cAAA,CAAA,EAAA,MAAA,EAAA;EAkBA,QAAA,EAAA,MAAA;AAMZ,CAAA;AAkBa,KAxBD,yBAAA,GAwBgB;aAvBf;sBACS,MAAA,CAAO;;;cAIhB,sBAAsB,kBACjC;cAiBW,uBAAe"}
@@ -1,9 +1,14 @@
1
- import { type IntlayerConfig } from '@intlayer/config/client';
2
- import { type FC, type PropsWithChildren } from 'preact/compat';
3
- export declare const useConfigurationState: () => [IntlayerConfig, import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<IntlayerConfig>>, () => void];
4
- export type ConfigurationProviderProps = {
5
- configuration?: IntlayerConfig;
1
+ import { FC, PropsWithChildren } from "preact/compat";
2
+ import { IntlayerConfig } from "@intlayer/types";
3
+ import * as preact_hooks0 from "preact/hooks";
4
+
5
+ //#region src/editor/ConfigurationContext.d.ts
6
+ declare const useConfigurationState: () => [IntlayerConfig, preact_hooks0.Dispatch<preact_hooks0.StateUpdater<IntlayerConfig>>, () => void];
7
+ type ConfigurationProviderProps = {
8
+ configuration?: IntlayerConfig;
6
9
  };
7
- export declare const ConfigurationProvider: FC<PropsWithChildren<ConfigurationProviderProps>>;
8
- export declare const useConfiguration: () => IntlayerConfig;
10
+ declare const ConfigurationProvider: FC<PropsWithChildren<ConfigurationProviderProps>>;
11
+ declare const useConfiguration: () => IntlayerConfig;
12
+ //#endregion
13
+ export { ConfigurationProvider, ConfigurationProviderProps, useConfiguration, useConfigurationState };
9
14
  //# sourceMappingURL=ConfigurationContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurationContext.d.ts","sourceRoot":"","sources":["../../../src/editor/ConfigurationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EACL,KAAK,EAAE,EACP,KAAK,iBAAiB,EAGvB,MAAM,eAAe,CAAC;AAOvB,eAAO,MAAM,qBAAqB,0HAQ/B,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GAAG;IACvC,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CACpC,iBAAiB,CAAC,0BAA0B,CAAC,CAK9C,CAAC;AAEF,eAAO,MAAM,gBAAgB,sBAA+C,CAAC"}
1
+ {"version":3,"file":"ConfigurationContext.d.ts","names":[],"sources":["../../../src/editor/ConfigurationContext.tsx"],"sourcesContent":[],"mappings":";;;;;cAgBa,8BAAqB,gBAAA,aAAA,CAAA,SAAA,aAAA,CAAA,aAAA;KAUtB,0BAAA;kBACM;AAXlB,CAAA;AAAkC,cAcrB,qBAdqB,EAcE,EAdF,CAehC,iBAfgC,CAed,0BAfc,CAAA,CAAA;AAAA,cAsBrB,gBAtBqB,EAAA,GAAA,GAsBL,cAtBK"}
@@ -1,5 +1,9 @@
1
- import { type NodeProps } from '@intlayer/core';
2
- import { type FC, type HTMLAttributes } from 'preact/compat';
3
- export type ContentSelectorWrapperProps = NodeProps & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
4
- export declare const ContentSelectorRenderer: FC<ContentSelectorWrapperProps>;
1
+ import { NodeProps } from "@intlayer/core";
2
+ import { FC, HTMLAttributes } from "preact/compat";
3
+
4
+ //#region src/editor/ContentSelectorWrapper.d.ts
5
+ type ContentSelectorWrapperProps = NodeProps & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
6
+ declare const ContentSelectorRenderer: FC<ContentSelectorWrapperProps>;
7
+ //#endregion
8
+ export { ContentSelectorRenderer, ContentSelectorWrapperProps };
5
9
  //# sourceMappingURL=ContentSelectorWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSelectorWrapper.d.ts","sourceRoot":"","sources":["../../../src/editor/ContentSelectorWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EACL,KAAK,EAAE,EACP,KAAK,cAAc,EAGpB,MAAM,eAAe,CAAC;AAOvB,MAAM,MAAM,2BAA2B,GAAG,SAAS,GACjD,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AA+DnD,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,2BAA2B,CAgBnE,CAAC"}
1
+ {"version":3,"file":"ContentSelectorWrapper.d.ts","names":[],"sources":["../../../src/editor/ContentSelectorWrapper.tsx"],"sourcesContent":[],"mappings":";;;;KAgBY,2BAAA,GAA8B,YACxC,KAAK,eAAe;cA+DT,yBAAyB,GAAG"}
@@ -1,16 +1,19 @@
1
- import type { Dictionary } from '@intlayer/core';
2
- import { type Dispatch, type FC, type PropsWithChildren, type SetStateAction } from 'preact/compat';
3
- export type DictionaryContent = Record<Dictionary['key'], Dictionary>;
1
+ import { Dispatch, FC, PropsWithChildren, SetStateAction } from "preact/compat";
2
+ import { Dictionary } from "@intlayer/types";
3
+
4
+ //#region src/editor/DictionariesRecordContext.d.ts
5
+ type DictionaryContent = Record<Dictionary['key'], Dictionary>;
4
6
  type DictionariesRecordActionsContextType = {
5
- setLocaleDictionaries: Dispatch<SetStateAction<DictionaryContent>>;
6
- setLocaleDictionary: (dictionary: Dictionary) => void;
7
+ setLocaleDictionaries: Dispatch<SetStateAction<DictionaryContent>>;
8
+ setLocaleDictionary: (dictionary: Dictionary) => void;
7
9
  };
8
- export declare const DictionariesRecordProvider: FC<PropsWithChildren>;
9
- export declare const useDictionariesRecordActions: () => DictionariesRecordActionsContextType;
10
- export declare const useDictionariesRecord: () => {
11
- setLocaleDictionaries: Dispatch<SetStateAction<DictionaryContent>>;
12
- setLocaleDictionary: (dictionary: Dictionary) => void;
13
- localeDictionaries: DictionaryContent;
10
+ declare const DictionariesRecordProvider: FC<PropsWithChildren>;
11
+ declare const useDictionariesRecordActions: () => DictionariesRecordActionsContextType;
12
+ declare const useDictionariesRecord: () => {
13
+ setLocaleDictionaries: Dispatch<SetStateAction<DictionaryContent>>;
14
+ setLocaleDictionary: (dictionary: Dictionary) => void;
15
+ localeDictionaries: DictionaryContent;
14
16
  };
15
- export {};
17
+ //#endregion
18
+ export { DictionariesRecordProvider, DictionaryContent, useDictionariesRecord, useDictionariesRecordActions };
16
19
  //# sourceMappingURL=DictionariesRecordContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DictionariesRecordContext.d.ts","sourceRoot":"","sources":["../../../src/editor/DictionariesRecordContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,EAAE,EACP,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAKtE,KAAK,oCAAoC,GAAG;IAC1C,qBAAqB,EAAE,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACnE,mBAAmB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CACvD,CAAC;AASF,eAAO,MAAM,0BAA0B,EAAE,EAAE,CAAC,iBAAiB,CAoC5D,CAAC;AAEF,eAAO,MAAM,4BAA4B,4CACK,CAAC;AAE/C,eAAO,MAAM,qBAAqB;2BApDT,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;yBAC7C,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI;wBAJjC,iBAAiB;CAkEtC,CAAC"}
1
+ {"version":3,"file":"DictionariesRecordContext.d.ts","names":[],"sources":["../../../src/editor/DictionariesRecordContext.tsx"],"sourcesContent":[],"mappings":";;;;KAeY,iBAAA,GAAoB,OAAO,mBAAmB;KAKrD,oCAAA;EALO,qBAAiB,EAMJ,QANI,CAMK,cANL,CAMoB,iBANpB,CAAA,CAAA;EAAU,mBAAA,EAAA,CAAA,UAAA,EAOH,UAPG,EAAA,GAAA,IAAA;CAAmB;AAA1B,cAiBnB,0BAjBmB,EAiBS,EAjBT,CAiBY,iBAjBZ,CAAA;AAAM,cAuDzB,4BAvDyB,EAAA,GAAA,GAuDG,oCAvDH;AAKjC,cAqDQ,qBArDR,EAAoC,GAAA,GAAA;EACQ,qBAAA,EAAxB,QAAwB,CAAf,cAAe,CAAA,iBAAA,CAAA,CAAA;EAAf,mBAAA,EAAA,CAAA,UAAA,EACE,UADF,EAAA,GAAA,IAAA;EAAT,kBAAA,EAHH,iBAGG;CACW"}
@@ -1,33 +1,36 @@
1
- import { type ContentNode, type Dictionary, type KeyPath } from '@intlayer/core';
2
- import { type Dispatch, type FC, type PropsWithChildren, type SetStateAction } from 'preact/compat';
3
- export declare const usePostEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
4
- export declare const useGetEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
1
+ import { Dispatch, FC, PropsWithChildren, SetStateAction } from "preact/compat";
2
+ import { ContentNode, Dictionary, KeyPath, LocalDictionaryId } from "@intlayer/types";
3
+
4
+ //#region src/editor/EditedContentContext.d.ts
5
+ declare const usePostEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
6
+ declare const useGetEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
5
7
  type EditedContentActionsContextType = {
6
- setEditedContentState: (editedContent: Record<Dictionary['key'], Dictionary>) => void;
7
- setEditedDictionary: Dispatch<SetStateAction<Dictionary>>;
8
- setEditedContent: (dictionaryKey: Dictionary['key'], newValue: Dictionary['content']) => void;
9
- addEditedContent: (dictionaryKey: Dictionary['key'], newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void;
10
- renameEditedContent: (dictionaryKey: Dictionary['key'], newKey: KeyPath['key'], keyPath?: KeyPath[]) => void;
11
- removeEditedContent: (dictionaryKey: Dictionary['key'], keyPath: KeyPath[]) => void;
12
- restoreEditedContent: (dictionaryKey: Dictionary['key']) => void;
13
- clearEditedDictionaryContent: (dictionaryKey: Dictionary['key']) => void;
14
- clearEditedContent: () => void;
15
- getEditedContentValue: (dictionaryKey: Dictionary['key'], keyPath: KeyPath[]) => ContentNode | undefined;
8
+ setEditedContentState: (editedContent: Record<LocalDictionaryId, Dictionary>) => void;
9
+ setEditedDictionary: Dispatch<SetStateAction<Dictionary>>;
10
+ setEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: Dictionary['content']) => void;
11
+ addEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void;
12
+ renameEditedContent: (dictionaryLocalId: LocalDictionaryId, newKey: KeyPath['key'], keyPath?: KeyPath[]) => void;
13
+ removeEditedContent: (dictionaryLocalId: LocalDictionaryId, keyPath: KeyPath[]) => void;
14
+ restoreEditedContent: (dictionaryLocalId: LocalDictionaryId) => void;
15
+ clearEditedDictionaryContent: (dictionaryLocalId: LocalDictionaryId) => void;
16
+ clearEditedContent: () => void;
17
+ getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary['key'] | string, keyPath: KeyPath[]) => ContentNode | undefined;
16
18
  };
17
- export declare const EditedContentProvider: FC<PropsWithChildren>;
18
- export declare const useEditedContentActions: () => EditedContentActionsContextType;
19
- export declare const useEditedContent: () => {
20
- setEditedContentState: (editedContent: Record<Dictionary["key"], Dictionary>) => void;
21
- setEditedDictionary: Dispatch<SetStateAction<Dictionary>>;
22
- setEditedContent: (dictionaryKey: Dictionary["key"], newValue: Dictionary["content"]) => void;
23
- addEditedContent: (dictionaryKey: Dictionary["key"], newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void;
24
- renameEditedContent: (dictionaryKey: Dictionary["key"], newKey: KeyPath["key"], keyPath?: KeyPath[]) => void;
25
- removeEditedContent: (dictionaryKey: Dictionary["key"], keyPath: KeyPath[]) => void;
26
- restoreEditedContent: (dictionaryKey: Dictionary["key"]) => void;
27
- clearEditedDictionaryContent: (dictionaryKey: Dictionary["key"]) => void;
28
- clearEditedContent: () => void;
29
- getEditedContentValue: (dictionaryKey: Dictionary["key"], keyPath: KeyPath[]) => ContentNode | undefined;
30
- editedContent: Record<Dictionary["key"], Dictionary> | undefined;
19
+ declare const EditedContentProvider: FC<PropsWithChildren>;
20
+ declare const useEditedContentActions: () => EditedContentActionsContextType;
21
+ declare const useEditedContent: () => {
22
+ setEditedContentState: (editedContent: Record<LocalDictionaryId, Dictionary>) => void;
23
+ setEditedDictionary: Dispatch<SetStateAction<Dictionary>>;
24
+ setEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: Dictionary["content"]) => void;
25
+ addEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void;
26
+ renameEditedContent: (dictionaryLocalId: LocalDictionaryId, newKey: KeyPath["key"], keyPath?: KeyPath[]) => void;
27
+ removeEditedContent: (dictionaryLocalId: LocalDictionaryId, keyPath: KeyPath[]) => void;
28
+ restoreEditedContent: (dictionaryLocalId: LocalDictionaryId) => void;
29
+ clearEditedDictionaryContent: (dictionaryLocalId: LocalDictionaryId) => void;
30
+ clearEditedContent: () => void;
31
+ getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary["key"] | string, keyPath: KeyPath[]) => ContentNode | undefined;
32
+ editedContent: Record<LocalDictionaryId, Dictionary> | undefined;
31
33
  };
32
- export {};
34
+ //#endregion
35
+ export { EditedContentProvider, useEditedContent, useEditedContentActions, useGetEditedContentState, usePostEditedContentState };
33
36
  //# sourceMappingURL=EditedContentContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditedContentContext.d.ts","sourceRoot":"","sources":["../../../src/editor/EditedContentContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,EAAE,EACP,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAgBvB,eAAO,MAAM,yBAAyB,GAAI,CAAC,EACzC,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,uBAKnC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,GAAI,CAAC,EACxC,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,uBAKnC,CAAC;AAEJ,KAAK,+BAA+B,GAAG;IACrC,qBAAqB,EAAE,CACrB,aAAa,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,KACjD,IAAI,CAAC;IACV,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1D,gBAAgB,EAAE,CAChB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC,KAC5B,IAAI,CAAC;IACV,gBAAgB,EAAE,CAChB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EAAE,EACnB,SAAS,CAAC,EAAE,OAAO,KAChB,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,EACtB,OAAO,CAAC,EAAE,OAAO,EAAE,KAChB,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,OAAO,EAAE,OAAO,EAAE,KACf,IAAI,CAAC;IACV,oBAAoB,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACjE,4BAA4B,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACzE,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,qBAAqB,EAAE,CACrB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,OAAO,EAAE,OAAO,EAAE,KACf,WAAW,GAAG,SAAS,CAAC;CAC9B,CAAC;AAWF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,iBAAiB,CAgNvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,uCACK,CAAC;AAE1C,eAAO,MAAM,gBAAgB;2BA9PJ,CACrB,aAAa,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,KACjD,IAAI;yBACY,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;sBACvC,CAChB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC,KAC5B,IAAI;sBACS,CAChB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EAAE,EACnB,SAAS,CAAC,EAAE,OAAO,KAChB,IAAI;yBACY,CACnB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,EACtB,OAAO,CAAC,EAAE,OAAO,EAAE,KAChB,IAAI;yBACY,CACnB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,OAAO,EAAE,OAAO,EAAE,KACf,IAAI;0BACa,CAAC,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI;kCAClC,CAAC,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI;wBACpD,MAAM,IAAI;2BACP,CACrB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,OAAO,EAAE,OAAO,EAAE,KACf,WAAW,GAAG,SAAS;mBArDb,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,SAAS;CA2RjE,CAAC"}
1
+ {"version":3,"file":"EditedContentContext.d.ts","names":[],"sources":["../../../src/editor/EditedContentContext.tsx"],"sourcesContent":[],"mappings":";;;;cAqCa,yDACe,uBAAU;cAOzB,wDACe,uBAAU;AATtC,KAgBK,+BAAA,GAVF;EAEU,qBAAA,EAAA,CAAA,aAMV,EAIgB,MATmB,CASZ,iBATY,EASO,UATP,CAAA,EAAA,GAAA,IAAA;EAOjC,mBAAA,EAIkB,QAJlB,CAI2B,cAJI,CAIW,UAJX,CAAA,CAAA;EAEV,gBAAA,EAAA,CAAA,iBAAA,EAIH,iBAJG,EAAA,QAAA,EAKZ,UALY,CAAA,SAAA,CAAA,EAAA,GAAA,IAAA;EAAmB,gBAAA,EAAA,CAAA,iBAAA,EAQtB,iBARsB,EAAA,QAAA,EAS/B,WAT+B,CAAA,GAAA,CAAA,EAAA,OAAA,CAAA,EAU/B,OAV+B,EAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAA1B,mBAAA,EAAA,CAAA,iBAAA,EAcI,iBAdJ,EAAA,MAAA,EAeP,OAfO,CAAA,KAAA,CAAA,EAAA,OAAA,CAAA,EAgBL,OAhBK,EAAA,EAAA,GAAA,IAAA;EAE4B,mBAAA,EAAA,CAAA,iBAAA,EAiBxB,iBAjBwB,EAAA,OAAA,EAkBlC,OAlBkC,EAAA,EAAA,GAAA,IAAA;EAAf,oBAAA,EAAA,CAAA,iBAAA,EAoBY,iBApBZ,EAAA,GAAA,IAAA;EAAT,4BAAA,EAAA,CAAA,iBAAA,EAqB6B,iBArB7B,EAAA,GAAA,IAAA;EAEA,kBAAA,EAAA,GAAA,GAAA,IAAA;EACT,qBAAA,EAAA,CAAA,sBAAA,EAqBc,iBArBd,GAqBkC,UArBlC,CAAA,KAAA,CAAA,GAAA,MAAA,EAAA,OAAA,EAsBD,OAtBC,EAAA,EAAA,GAuBP,WAvBO,GAAA,SAAA;CAGS;AACT,cA+BD,qBA/BC,EA+BsB,EA/BtB,CA+ByB,iBA/BzB,CAAA;AACA,cA6QD,uBA7QC,EAAA,GAAA,GA6QsB,+BA7QtB;AAIS,cA4QV,gBA5QU,EAAA,GAAA,GAAA;EACX,qBAAA,EAAA,CAAA,aAAA,EAfO,MAeP,CAfc,iBAed,EAfiC,UAejC,CAAA,EAAA,GAAA,IAAA;EACE,mBAAA,EAdS,QAcT,CAdkB,cAclB,CAdiC,UAcjC,CAAA,CAAA;EAGS,gBAAA,EAAA,CAAA,iBAAA,EAfA,iBAeA,EAAA,QAAA,EAdT,UAcS,CAAA,SAAA,CAAA,EAAA,GAAA,IAAA;EACV,gBAAA,EAAA,CAAA,iBAAA,EAZU,iBAYV,EAAA,QAAA,EAXC,WAWD,CAAA,GAAA,CAAA,EAAA,OAAA,CAAA,EAVC,OAUD,EAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAE+B,mBAAA,EAAA,CAAA,iBAAA,EARrB,iBAQqB,EAAA,MAAA,EAPhC,OAOgC,CAAA,KAAA,CAAA,EAAA,OAAA,CAAA,EAN9B,OAM8B,EAAA,EAAA,GAAA,IAAA;EACQ,mBAAA,EAAA,CAAA,iBAAA,EAJ7B,iBAI6B,EAAA,OAAA,EAHvC,OAGuC,EAAA,EAAA,GAAA,IAAA;EAGxB,oBAAA,EAAA,CAAA,iBAAA,EAJgB,iBAIhB,EAAA,GAAA,IAAA;EAAoB,4BAAA,EAAA,CAAA,iBAAA,EAHI,iBAGJ,EAAA,GAAA,IAAA;EACnC,kBAAA,EAAA,GAAA,GAAA,IAAA;EACN,qBAAA,EAAA,CAAA,sBAAA,EAFqB,iBAErB,GAFyC,UAEzC,CAAA,KAAA,CAAA,GAAA,MAAA,EAAA,OAAA,EADM,OACN,EAAA,EAAA,GAAA,WAAA,GAAA,SAAA;EAAW,aAAA,EArDD,MAqDC,CArDM,iBAqDN,EArDyB,UAqDzB,CAAA,GAAA,SAAA;AAYlB,CAAA"}
@@ -1,11 +1,16 @@
1
- import { type FC, type PropsWithChildren } from 'preact/compat';
2
- import { type CrossFrameStateOptions } from './useCrossFrameState';
3
- export type EditorEnabledStateProps = {
4
- enabled: boolean;
1
+ import { CrossFrameStateOptions } from "./useCrossFrameState.js";
2
+ import { FC, PropsWithChildren } from "preact/compat";
3
+ import * as preact_hooks1 from "preact/hooks";
4
+
5
+ //#region src/editor/EditorEnabledContext.d.ts
6
+ type EditorEnabledStateProps = {
7
+ enabled: boolean;
5
8
  };
6
- export declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean, import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<boolean>>, () => void];
7
- export declare const usePostEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
8
- export declare const useGetEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
9
- export declare const EditorEnabledProvider: FC<PropsWithChildren>;
10
- export declare const useEditorEnabled: () => EditorEnabledStateProps;
9
+ declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean, preact_hooks1.Dispatch<preact_hooks1.StateUpdater<boolean>>, () => void];
10
+ declare const usePostEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
11
+ declare const useGetEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
12
+ declare const EditorEnabledProvider: FC<PropsWithChildren>;
13
+ declare const useEditorEnabled: () => EditorEnabledStateProps;
14
+ //#endregion
15
+ export { EditorEnabledProvider, EditorEnabledStateProps, useEditorEnabled, useEditorEnabledState, useGetEditorEnabledState, usePostEditorEnabledState };
11
16
  //# sourceMappingURL=EditorEnabledContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorEnabledContext.d.ts","sourceRoot":"","sources":["../../../src/editor/EditorEnabledContext.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,EAAE,EACP,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAMF,eAAO,MAAM,qBAAqB,GAAI,UAAU,sBAAsB,yGACE,CAAC;AAEzE,eAAO,MAAM,yBAAyB,GAAI,CAAC,EACzC,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,uBAKnC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,GAAI,CAAC,EACxC,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,uBAKnC,CAAC;AAEJ,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,iBAAiB,CAWvD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAAyC,CAAC"}
1
+ {"version":3,"file":"EditorEnabledContext.d.ts","names":[],"sources":["../../../src/editor/EditorEnabledContext.tsx"],"sourcesContent":[],"mappings":";;;;;KAeY,uBAAA;;;AAAA,cAQC,qBARsB,EAAA,CAAA,OAAA,CAAA,EAQa,sBARb,EAAA,GAAA,CAAA,OAAA,EAQmC,aAAA,CAAA,QARnC,CAQmC,aAAA,CAAA,YARnC,CAAA,OAAA,CAAA,CAAA,EAAA,GAAA,GAAA,IAAA,CAAA;AAQtB,cAGA,yBAF2D,EAAA,CAAA,CAAA,CAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,IAAA,EAG5C,CAH4C,EAAA,GAAA,IAAA,EAAA,GAAA,CAAA,IAAA,CAAA,EAGlC,CAHkC,EAAA,GAAA,IAAA;AADxB,cAWnC,wBAXmC,EAAA,CAAA,CAAA,CAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,IAAA,EAYpB,CAZoB,EAAA,GAAA,IAAA,EAAA,GAAA,CAAA,IAAA,CAAA,EAYV,CAZU,EAAA,GAAA,IAAA;AAAsB,cAmBzD,qBAnByD,EAmBlC,EAnBkC,CAmB/B,iBAnB+B,CAAA;AAAA,cAgCzD,gBAhCyD,EAAA,GAAA,GAgCzC,uBAhCyC"}
@@ -1,6 +1,10 @@
1
- import { type FC, type PropsWithChildren } from 'preact/compat';
2
- import { type CommunicatorProviderProps } from './CommunicatorContext';
3
- import { type ConfigurationProviderProps } from './ConfigurationContext';
4
- export type EditorProviderProps = CommunicatorProviderProps & ConfigurationProviderProps;
5
- export declare const EditorProvider: FC<PropsWithChildren<EditorProviderProps>>;
1
+ import { CommunicatorProviderProps } from "./CommunicatorContext.js";
2
+ import { ConfigurationProviderProps } from "./ConfigurationContext.js";
3
+ import { FC, PropsWithChildren } from "preact/compat";
4
+
5
+ //#region src/editor/EditorProvider.d.ts
6
+ type EditorProviderProps = CommunicatorProviderProps & ConfigurationProviderProps;
7
+ declare const EditorProvider: FC<PropsWithChildren<EditorProviderProps>>;
8
+ //#endregion
9
+ export { EditorProvider, EditorProviderProps };
6
10
  //# sourceMappingURL=EditorProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorProvider.d.ts","sourceRoot":"","sources":["../../../src/editor/EditorProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,iBAAiB,EAIvB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AA2EhC,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GACzD,0BAA0B,CAAC;AAE7B,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAgBrE,CAAC"}
1
+ {"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"sourcesContent":[],"mappings":";;;;;KA2FY,mBAAA,GAAsB,4BAChC;cAEW,gBAAgB,GAAG,kBAAkB"}
@@ -1,21 +1,24 @@
1
- import type { KeyPath } from '@intlayer/core';
2
- import { type Dispatch, type FC, type PropsWithChildren, type SetStateAction } from 'preact/compat';
1
+ import { Dispatch, FC, PropsWithChildren, SetStateAction } from "preact/compat";
2
+ import { KeyPath } from "@intlayer/types";
3
+
4
+ //#region src/editor/FocusDictionaryContext.d.ts
3
5
  type DictionaryPath = string;
4
- export type FileContent = {
5
- dictionaryKey: string;
6
- keyPath?: KeyPath[];
7
- dictionaryPath?: DictionaryPath;
6
+ type FileContent = {
7
+ dictionaryKey: string;
8
+ keyPath?: KeyPath[];
9
+ dictionaryPath?: DictionaryPath;
8
10
  };
9
11
  type FocusDictionaryActions = {
10
- setFocusedContent: Dispatch<SetStateAction<FileContent | null>>;
11
- setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
12
+ setFocusedContent: Dispatch<SetStateAction<FileContent | null>>;
13
+ setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
12
14
  };
13
- export declare const FocusDictionaryProvider: FC<PropsWithChildren>;
14
- export declare const useFocusDictionaryActions: () => FocusDictionaryActions;
15
- export declare const useFocusDictionary: () => {
16
- setFocusedContent: Dispatch<SetStateAction<FileContent | null>>;
17
- setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
18
- focusedContent: FileContent | null;
15
+ declare const FocusDictionaryProvider: FC<PropsWithChildren>;
16
+ declare const useFocusDictionaryActions: () => FocusDictionaryActions;
17
+ declare const useFocusDictionary: () => {
18
+ setFocusedContent: Dispatch<SetStateAction<FileContent | null>>;
19
+ setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
20
+ focusedContent: FileContent | null;
19
21
  };
20
- export {};
22
+ //#endregion
23
+ export { FileContent, FocusDictionaryProvider, useFocusDictionary, useFocusDictionaryActions };
21
24
  //# sourceMappingURL=FocusDictionaryContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusDictionaryContext.d.ts","sourceRoot":"","sources":["../../../src/editor/FocusDictionaryContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,EAAE,EACP,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAGvB,KAAK,cAAc,GAAG,MAAM,CAAC;AAE7B,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAMF,KAAK,sBAAsB,GAAG;IAC5B,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC;IAChE,wBAAwB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACxD,CAAC;AASF,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,iBAAiB,CA2BzD,CAAC;AAEF,eAAO,MAAM,yBAAyB,8BAQrC,CAAC;AAEF,eAAO,MAAM,kBAAkB;uBAlDV,QAAQ,CAAC,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;8BACrC,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI;oBALtC,WAAW,GAAG,IAAI;CAiEnC,CAAC"}
1
+ {"version":3,"file":"FocusDictionaryContext.d.ts","names":[],"sources":["../../../src/editor/FocusDictionaryContext.tsx"],"sourcesContent":[],"mappings":";;;;KAcK,cAAA;KAEO,WAAA;EAFP,aAAA,EAAA,MAAc;EAEP,OAAA,CAAA,EAEA,OAFW,EAAA;EAUlB,cAAA,CAAA,EAPc,cAOQ;CACkB;KADxC,sBAAA,GACyB;EAAT,iBAAA,EAAA,QAAA,CAAS,cAAT,CAAwB,WAAxB,GAAA,IAAA,CAAA,CAAA;EACiB,wBAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,EAAA,GAAA,IAAA;CAAO;AAUhC,cAAA,uBAA4B,EAAH,EAAG,CAAA,iBAAD,CAAA;AA6B3B,cAAA,yBAAyB,EAAA,GAAA,GAAA,sBAQrC;AAEY,cAAA,kBAWZ,EAAA,GAAA,GAAA;EA7D4C,iBAAA,EAAxB,QAAwB,CAAf,cAAe,CAAA,WAAA,GAAA,IAAA,CAAA,CAAA;EAAf,wBAAA,EAAA,CAAA,OAAA,EACQ,OADR,EAAA,EAAA,GAAA,IAAA;EAAT,cAAA,EAJH,WAIG,GAAA,IAAA;CACiB"}
@@ -1,5 +1,9 @@
1
- import { type ComponentChildren, type FunctionComponent } from 'preact';
2
- export declare const IntlayerEditorProvider: FunctionComponent<{
3
- children?: ComponentChildren;
1
+ import { ComponentChildren, FunctionComponent } from "preact";
2
+
3
+ //#region src/editor/IntlayerEditorProvider.d.ts
4
+ declare const IntlayerEditorProvider: FunctionComponent<{
5
+ children?: ComponentChildren;
4
6
  }>;
7
+ //#endregion
8
+ export { IntlayerEditorProvider };
5
9
  //# sourceMappingURL=IntlayerEditorProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerEditorProvider.d.ts","sourceRoot":"","sources":["../../../src/editor/IntlayerEditorProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AA4BxE,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC;IACrD,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CA+CA,CAAC"}
1
+ {"version":3,"file":"IntlayerEditorProvider.d.ts","names":[],"sources":["../../../src/editor/IntlayerEditorProvider.tsx"],"sourcesContent":[],"mappings":";;;cA+Ba,wBAAwB;aACxB;AADb,CAAA,CAAA"}
@@ -1,2 +1,2 @@
1
- export * from './ContentSelectorWrapper';
2
- //# sourceMappingURL=index.d.ts.map
1
+ import { ContentSelectorRenderer, ContentSelectorWrapperProps } from "./ContentSelectorWrapper.js";
2
+ export { ContentSelectorRenderer, ContentSelectorWrapperProps };
@@ -1,4 +1,7 @@
1
- import { type MessageKey } from '@intlayer/editor';
1
+ import { MessageKey } from "@intlayer/editor";
2
+
3
+ //#region src/editor/useCrossFrameMessageListener.d.ts
4
+
2
5
  /**
3
6
  * useCrossFrameMessageListener
4
7
  *
@@ -15,5 +18,7 @@ import { type MessageKey } from '@intlayer/editor';
15
18
  * @returns {{ postMessage: (data: S) => void }} An object containing a `postMessage` function
16
19
  * that allows broadcasting messages with the specified key and data.
17
20
  */
18
- export declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void, revalidator?: any) => (data?: S) => void;
21
+ declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void, revalidator?: any) => (data?: S) => void;
22
+ //#endregion
23
+ export { useCrossFrameMessageListener };
19
24
  //# sourceMappingURL=useCrossFrameMessageListener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossFrameMessageListener.d.ts","sourceRoot":"","sources":["../../../src/editor/useCrossFrameMessageListener.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,kBAAkB,CAAC;AAIhE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,EAC5C,KAAK,GAAG,UAAU,EAAE,GAAG,GAAG,UAAU,OAAO,GAAG,GAAG,UAAU,MAAM,EACjE,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,EACpC,cAAc,GAAG,aAoDiB,CAAC,KAAK,IAKzC,CAAC"}
1
+ {"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameMessageListener.tsx"],"sourcesContent":[],"mappings":";;;;;;AAsBA;;;;;;;;;;;;;;cAAa,0CACH,kBAAkB,uBAAuB,4CACvB,0CAqDQ"}
@@ -1,9 +1,11 @@
1
- import { type MessageKey } from '@intlayer/editor';
2
- import { SetStateAction } from 'preact/compat';
3
- import { Dispatch } from 'preact/hooks';
4
- export type CrossFrameStateOptions = {
5
- emit?: boolean;
6
- receive?: boolean;
1
+ import { SetStateAction } from "preact/compat";
2
+ import { Dispatch as Dispatch$1 } from "preact/hooks";
3
+ import { MessageKey } from "@intlayer/editor";
4
+
5
+ //#region src/editor/useCrossFrameState.d.ts
6
+ type CrossFrameStateOptions = {
7
+ emit?: boolean;
8
+ receive?: boolean;
7
9
  };
8
10
  /**
9
11
  * Configuration options for `useCrossFrameState`.
@@ -26,5 +28,7 @@ export type CrossFrameStateOptions = {
26
28
  *
27
29
  * @returns {[S, StateUpdater<S>, typeof postState]} An array containing the current state and a setter function, and a function to manually post the state.
28
30
  */
29
- export declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [S, Dispatch<SetStateAction<S>>, () => void];
31
+ declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [S, Dispatch$1<SetStateAction<S>>, () => void];
32
+ //#endregion
33
+ export { CrossFrameStateOptions, useCrossFrameState };
30
34
  //# sourceMappingURL=useCrossFrameState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossFrameState.d.ts","sourceRoot":"","sources":["../../../src/editor/useCrossFrameState.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAA0C,MAAM,cAAc,CAAC;AAIhF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAUF;;;;;GAKG;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAClC,KAAK,GAAG,UAAU,EAAE,EACpB,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAC5B,UAAU,sBAAsB,KAC/B,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,aAiGjC,CAAC"}
1
+ {"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameState.tsx"],"sourcesContent":[],"mappings":";;;;;KAaY,sBAAA;;EAAA,OAAA,CAAA,EAAA,OAAA;AAmCZ,CAAA;;;;;;;;;;;;;;;;;;;;;;cAAa,gCACH,6BACO,WAAW,cAChB,4BACR,GAAG,WAAS,eAAe"}
@@ -1,4 +1,9 @@
1
- import { type CrossFrameStateOptions } from './useCrossFrameState';
2
- export declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [string, import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<string>>, () => void];
3
- export declare const useCrossURLPathSetter: (initialState?: string) => [string, import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<string>>, () => void];
1
+ import { CrossFrameStateOptions } from "./useCrossFrameState.js";
2
+ import * as preact_hooks3 from "preact/hooks";
3
+
4
+ //#region src/editor/useCrossURLPathState.d.ts
5
+ declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [string, preact_hooks3.Dispatch<preact_hooks3.StateUpdater<string>>, () => void];
6
+ declare const useCrossURLPathSetter: (initialState?: string) => [string, preact_hooks3.Dispatch<preact_hooks3.StateUpdater<string>>, () => void];
7
+ //#endregion
8
+ export { useCrossURLPathSetter, useCrossURLPathState };
4
9
  //# sourceMappingURL=useCrossURLPathState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossURLPathState.d.ts","sourceRoot":"","sources":["../../../src/editor/useCrossURLPathState.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,oBAAoB,GAC/B,eAAe,MAAM,EACrB,UAAU,sBAAsB,uGAC4C,CAAC;AAE/E,eAAO,MAAM,qBAAqB,GAAI,eAAe,MAAM,uGA8D1D,CAAC"}
1
+ {"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../../src/editor/useCrossURLPathState.tsx"],"sourcesContent":[],"mappings":";;;;cASa,wDAED,oCAAsB,aAAA,CAAA,SAAA,aAAA,CAAA;cAGrB,2DAA8C,aAAA,CAAA,SA8D1D,aAAA,CA9D0D"}
@@ -1,13 +1,19 @@
1
- import { Locales } from '@intlayer/config/client';
2
- import { type KeyPath } from '@intlayer/core';
3
- import { FC } from 'preact/compat';
1
+ import { FC } from "preact/compat";
2
+ import { Dictionary, KeyPath, Locale } from "@intlayer/types";
3
+
4
+ //#region src/editor/useEditedContentRenderer.d.ts
4
5
  type EditedContentRendererProps = {
5
- dictionaryKey: string;
6
- keyPath: KeyPath[];
7
- children: string;
8
- locale?: Locales;
6
+ dictionaryKey: Dictionary['key'];
7
+ keyPath: KeyPath[];
8
+ children: string;
9
+ locale?: Locale;
9
10
  };
10
- export declare const useEditedContentRenderer: ({ dictionaryKey, keyPath, children, }: EditedContentRendererProps) => string;
11
- export declare const EditedContentRenderer: FC<EditedContentRendererProps>;
12
- export {};
11
+ declare const useEditedContentRenderer: ({
12
+ dictionaryKey,
13
+ keyPath,
14
+ children
15
+ }: EditedContentRendererProps) => string;
16
+ declare const EditedContentRenderer: FC<EditedContentRendererProps>;
17
+ //#endregion
18
+ export { EditedContentRenderer, useEditedContentRenderer };
13
19
  //# sourceMappingURL=useEditedContentRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEditedContentRenderer.d.ts","sourceRoot":"","sources":["../../../src/editor/useEditedContentRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAGnC,KAAK,0BAA0B,GAAG;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,uCAItC,0BAA0B,WAe5B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAoBhE,CAAC"}
1
+ {"version":3,"file":"useEditedContentRenderer.d.ts","names":[],"sources":["../../../src/editor/useEditedContentRenderer.tsx"],"sourcesContent":[],"mappings":";;;;KAOK,0BAAA;iBACY;EADZ,OAAA,EAEM,OAFN,EAAA;EACY,QAAA,EAAA,MAAA;EACN,MAAA,CAAA,EAEA,MAFA;CAEA;AAAM,cAGJ,wBAHI,EAAA,CAAA;EAAA,aAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAOd,0BAPc,EAAA,GAAA,MAAA;AAGJ,cAqBA,qBAFZ,EAEmC,EAFnC,CAEsC,0BAFtC,CAAA"}
@@ -1,3 +1,6 @@
1
- export declare const useIframeClickInterceptor: () => void;
2
- export declare const useIframeClickMerger: () => (data?: MessageEvent<any>) => void;
1
+ //#region src/editor/useIframeClickInterceptor.d.ts
2
+ declare const useIframeClickInterceptor: () => void;
3
+ declare const useIframeClickMerger: () => (data?: MessageEvent<any>) => void;
4
+ //#endregion
5
+ export { useIframeClickInterceptor, useIframeClickMerger };
3
6
  //# sourceMappingURL=useIframeClickInterceptor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIframeClickInterceptor.d.ts","sourceRoot":"","sources":["../../../src/editor/useIframeClickInterceptor.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,yBAAyB,YAcrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,0CAI9B,CAAC"}
1
+ {"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.tsx"],"sourcesContent":[],"mappings":";cAMa;AAAA,cAgBA,oBAFZ,EAAA,GAAA,GAAA,CAAA,IAAA,CAAA,EAEgC,YAFhC,CAAA,GAAA,CAAA,EAAA,GAAA,IAAA"}
@@ -1,5 +1,9 @@
1
- import type { Locales, LocalesValues } from '@intlayer/config/client';
2
- import { type Dictionary, type Plugins } from '@intlayer/core';
3
- import { type DeepTransformContent } from './plugins';
4
- export declare const getDictionary: <T extends Dictionary, L extends LocalesValues = Locales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<T["content"]>;
1
+ import { DeepTransformContent as DeepTransformContent$1 } from "./plugins.js";
2
+ import { Plugins } from "@intlayer/core";
3
+ import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
4
+
5
+ //#region src/getDictionary.d.ts
6
+ declare const getDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent$1<T["content"]>;
7
+ //#endregion
8
+ export { getDictionary };
5
9
  //# sourceMappingURL=getDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.d.ts","sourceRoot":"","sources":["../../src/getDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EAEb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,oBAAoB,EAI1B,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,aAAa,GACxB,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,aAAa,GAAG,OAAO,EAEjC,YAAY,CAAC,EACb,SAAS,CAAC,EACV,oBAAoB,OAAO,EAAE,KAajB,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,CAAC"}
1
+ {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"sourcesContent":[],"mappings":";;;;;cAgBa,0BACD,sBACA,gBAAgB,6BAEd,YACH,uBACW,cACnB,uBAAqB"}
@@ -1,5 +1,9 @@
1
- import { type DictionaryKeys, type Plugins } from '@intlayer/core';
2
- import type { IntlayerDictionaryTypesConnector, LocalesValues } from 'intlayer';
3
- import { type DeepTransformContent } from './plugins';
4
- export declare const getIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<IntlayerDictionaryTypesConnector[T]["content"]>;
1
+ import { DeepTransformContent as DeepTransformContent$1 } from "./plugins.js";
2
+ import { Plugins } from "@intlayer/core";
3
+ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types";
4
+
5
+ //#region src/getIntlayer.d.ts
6
+ declare const getIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent$1<DictionaryRegistryContent<T>>;
7
+ //#endregion
8
+ export { getIntlayer };
5
9
  //# sourceMappingURL=getIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../src/getIntlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,OAAO,EAEb,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,gCAAgC,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EACL,KAAK,oBAAoB,EAI1B,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,aAAa,EAC3E,KAAK,CAAC,EACN,SAAS,CAAC,EACV,oBAAoB,OAAO,EAAE,KAS0B,oBAAoB,CACzE,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAEjD,CAAC"}
1
+ {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"sourcesContent":[],"mappings":";;;;;cAca,wBACD,0BACA,gBAAgB,sBAErB,YACI,uBACW,cAUkC,uBACpD,0BAA0B"}
@@ -1,9 +1,21 @@
1
- import type { IInterpreterPluginPreact } from './plugins';
1
+ import { IntlayerNode } from "./IntlayerNode.js";
2
+ import { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, IntlayerProviderProps, useIntlayerContext } from "./client/IntlayerProvider.js";
3
+ import { t } from "./client/t.js";
4
+ import { IInterpreterPluginPreact } from "./plugins.js";
5
+ import { useDictionary } from "./client/useDictionary.js";
6
+ import { useDictionaryAsync } from "./client/useDictionaryAsync.js";
7
+ import { useDictionaryDynamic } from "./client/useDictionaryDynamic.js";
8
+ import { useIntlayer } from "./client/useIntlayer.js";
9
+ import { useLoadDynamic } from "./client/useLoadDynamic.js";
10
+ import { useLocale } from "./client/useLocale.js";
11
+ import { useLocaleBase } from "./client/useLocaleBase.js";
12
+ import { localeCookie, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage } from "./client/useLocaleStorage.js";
13
+ import { MarkdownProvider } from "./markdown/MarkdownProvider.js";
14
+
15
+ //#region src/index.d.ts
2
16
  declare module '@intlayer/core' {
3
- interface IInterpreterPlugin<T, S> extends IInterpreterPluginPreact<T> {
4
- }
17
+ interface IInterpreterPlugin<T, S, L> extends IInterpreterPluginPreact<T> {}
5
18
  }
6
- export { getBrowserLocale, IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, localeCookie, setLocaleCookie, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntlayer, useIntlayerContext, useLoadDynamic, useLocale, useLocaleBase, useLocaleCookie, type IntlayerProviderProps, } from './client/index';
7
- export { type IntlayerNode } from './IntlayerNode';
8
- export { MarkdownProvider } from './markdown/index';
19
+ //#endregion
20
+ export { IntlayerClientContext, type IntlayerNode, IntlayerProvider, IntlayerProviderContent, type IntlayerProviderProps, MarkdownProvider, localeCookie, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntlayer, useIntlayerContext, useLoadDynamic, useLocale, useLocaleBase, useLocaleCookie, useLocaleStorage };
9
21
  //# sourceMappingURL=index.d.ts.map