preact-intlayer 8.3.2 → 8.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/cjs/UI/ContentSelector.cjs +1 -1
  2. package/dist/cjs/UI/ContentSelector.cjs.map +1 -1
  3. package/dist/cjs/client/IntlayerProvider.cjs +1 -1
  4. package/dist/cjs/client/IntlayerProvider.cjs.map +1 -1
  5. package/dist/cjs/client/format/useCompact.cjs +1 -1
  6. package/dist/cjs/client/format/useCompact.cjs.map +1 -1
  7. package/dist/cjs/client/format/useCurrency.cjs +1 -1
  8. package/dist/cjs/client/format/useCurrency.cjs.map +1 -1
  9. package/dist/cjs/client/format/useDate.cjs +1 -1
  10. package/dist/cjs/client/format/useDate.cjs.map +1 -1
  11. package/dist/cjs/client/format/useList.cjs +1 -1
  12. package/dist/cjs/client/format/useList.cjs.map +1 -1
  13. package/dist/cjs/client/format/useNumber.cjs +1 -1
  14. package/dist/cjs/client/format/useNumber.cjs.map +1 -1
  15. package/dist/cjs/client/format/usePercentage.cjs +1 -1
  16. package/dist/cjs/client/format/usePercentage.cjs.map +1 -1
  17. package/dist/cjs/client/format/useRelativeTime.cjs +1 -1
  18. package/dist/cjs/client/format/useRelativeTime.cjs.map +1 -1
  19. package/dist/cjs/client/format/useUnit.cjs +1 -1
  20. package/dist/cjs/client/format/useUnit.cjs.map +1 -1
  21. package/dist/cjs/client/t.cjs +1 -1
  22. package/dist/cjs/client/t.cjs.map +1 -1
  23. package/dist/cjs/client/useDictionary.cjs +1 -1
  24. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  25. package/dist/cjs/client/useDictionaryAsync.cjs +1 -1
  26. package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
  27. package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
  28. package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
  29. package/dist/cjs/client/useIntlayer.cjs +1 -1
  30. package/dist/cjs/client/useIntlayer.cjs.map +1 -1
  31. package/dist/cjs/client/useLocale.cjs +1 -1
  32. package/dist/cjs/client/useLocale.cjs.map +1 -1
  33. package/dist/cjs/client/useLocaleBase.cjs +1 -1
  34. package/dist/cjs/client/useLocaleBase.cjs.map +1 -1
  35. package/dist/cjs/editor/CommunicatorContext.cjs +1 -1
  36. package/dist/cjs/editor/CommunicatorContext.cjs.map +1 -1
  37. package/dist/cjs/editor/ConfigurationContext.cjs +1 -1
  38. package/dist/cjs/editor/ConfigurationContext.cjs.map +1 -1
  39. package/dist/cjs/editor/ContentSelectorWrapper.cjs +1 -1
  40. package/dist/cjs/editor/ContentSelectorWrapper.cjs.map +1 -1
  41. package/dist/cjs/editor/DictionariesRecordContext.cjs +1 -1
  42. package/dist/cjs/editor/DictionariesRecordContext.cjs.map +1 -1
  43. package/dist/cjs/editor/EditedContentContext.cjs +1 -1
  44. package/dist/cjs/editor/EditedContentContext.cjs.map +1 -1
  45. package/dist/cjs/editor/EditorEnabledContext.cjs +1 -1
  46. package/dist/cjs/editor/EditorEnabledContext.cjs.map +1 -1
  47. package/dist/cjs/editor/EditorProvider.cjs +1 -1
  48. package/dist/cjs/editor/EditorProvider.cjs.map +1 -1
  49. package/dist/cjs/editor/EditorStateContext.cjs +2 -0
  50. package/dist/cjs/editor/EditorStateContext.cjs.map +1 -0
  51. package/dist/cjs/editor/FocusDictionaryContext.cjs +1 -1
  52. package/dist/cjs/editor/FocusDictionaryContext.cjs.map +1 -1
  53. package/dist/cjs/editor/IntlayerEditorProvider.cjs +1 -1
  54. package/dist/cjs/editor/IntlayerEditorProvider.cjs.map +1 -1
  55. package/dist/cjs/editor/index.cjs +1 -1
  56. package/dist/cjs/editor/useCrossFrameMessageListener.cjs +1 -1
  57. package/dist/cjs/editor/useCrossFrameMessageListener.cjs.map +1 -1
  58. package/dist/cjs/editor/useCrossFrameState.cjs +1 -1
  59. package/dist/cjs/editor/useCrossFrameState.cjs.map +1 -1
  60. package/dist/cjs/editor/useCrossURLPathState.cjs +1 -1
  61. package/dist/cjs/editor/useCrossURLPathState.cjs.map +1 -1
  62. package/dist/cjs/editor/useEditedContentRenderer.cjs +1 -1
  63. package/dist/cjs/editor/useEditedContentRenderer.cjs.map +1 -1
  64. package/dist/cjs/editor/useIframeClickInterceptor.cjs +1 -1
  65. package/dist/cjs/editor/useIframeClickInterceptor.cjs.map +1 -1
  66. package/dist/cjs/html/HTMLProvider.cjs +1 -1
  67. package/dist/cjs/html/HTMLProvider.cjs.map +1 -1
  68. package/dist/esm/UI/ContentSelector.mjs +1 -1
  69. package/dist/esm/UI/ContentSelector.mjs.map +1 -1
  70. package/dist/esm/client/IntlayerProvider.mjs +1 -1
  71. package/dist/esm/client/IntlayerProvider.mjs.map +1 -1
  72. package/dist/esm/client/format/useCompact.mjs +1 -1
  73. package/dist/esm/client/format/useCompact.mjs.map +1 -1
  74. package/dist/esm/client/format/useCurrency.mjs +1 -1
  75. package/dist/esm/client/format/useCurrency.mjs.map +1 -1
  76. package/dist/esm/client/format/useDate.mjs +1 -1
  77. package/dist/esm/client/format/useDate.mjs.map +1 -1
  78. package/dist/esm/client/format/useList.mjs +1 -1
  79. package/dist/esm/client/format/useList.mjs.map +1 -1
  80. package/dist/esm/client/format/useNumber.mjs +1 -1
  81. package/dist/esm/client/format/useNumber.mjs.map +1 -1
  82. package/dist/esm/client/format/usePercentage.mjs +1 -1
  83. package/dist/esm/client/format/usePercentage.mjs.map +1 -1
  84. package/dist/esm/client/format/useRelativeTime.mjs +1 -1
  85. package/dist/esm/client/format/useRelativeTime.mjs.map +1 -1
  86. package/dist/esm/client/format/useUnit.mjs +1 -1
  87. package/dist/esm/client/format/useUnit.mjs.map +1 -1
  88. package/dist/esm/client/t.mjs +1 -1
  89. package/dist/esm/client/t.mjs.map +1 -1
  90. package/dist/esm/client/useDictionary.mjs +1 -1
  91. package/dist/esm/client/useDictionary.mjs.map +1 -1
  92. package/dist/esm/client/useDictionaryAsync.mjs +1 -1
  93. package/dist/esm/client/useDictionaryAsync.mjs.map +1 -1
  94. package/dist/esm/client/useDictionaryDynamic.mjs +1 -1
  95. package/dist/esm/client/useDictionaryDynamic.mjs.map +1 -1
  96. package/dist/esm/client/useIntlayer.mjs +1 -1
  97. package/dist/esm/client/useIntlayer.mjs.map +1 -1
  98. package/dist/esm/client/useLocale.mjs +1 -1
  99. package/dist/esm/client/useLocale.mjs.map +1 -1
  100. package/dist/esm/client/useLocaleBase.mjs +1 -1
  101. package/dist/esm/client/useLocaleBase.mjs.map +1 -1
  102. package/dist/esm/editor/CommunicatorContext.mjs +1 -1
  103. package/dist/esm/editor/CommunicatorContext.mjs.map +1 -1
  104. package/dist/esm/editor/ConfigurationContext.mjs +1 -1
  105. package/dist/esm/editor/ConfigurationContext.mjs.map +1 -1
  106. package/dist/esm/editor/ContentSelectorWrapper.mjs +1 -1
  107. package/dist/esm/editor/ContentSelectorWrapper.mjs.map +1 -1
  108. package/dist/esm/editor/DictionariesRecordContext.mjs +1 -1
  109. package/dist/esm/editor/DictionariesRecordContext.mjs.map +1 -1
  110. package/dist/esm/editor/EditedContentContext.mjs +1 -1
  111. package/dist/esm/editor/EditedContentContext.mjs.map +1 -1
  112. package/dist/esm/editor/EditorEnabledContext.mjs +1 -1
  113. package/dist/esm/editor/EditorEnabledContext.mjs.map +1 -1
  114. package/dist/esm/editor/EditorProvider.mjs +1 -1
  115. package/dist/esm/editor/EditorProvider.mjs.map +1 -1
  116. package/dist/esm/editor/EditorStateContext.mjs +2 -0
  117. package/dist/esm/editor/EditorStateContext.mjs.map +1 -0
  118. package/dist/esm/editor/FocusDictionaryContext.mjs +1 -1
  119. package/dist/esm/editor/FocusDictionaryContext.mjs.map +1 -1
  120. package/dist/esm/editor/IntlayerEditorProvider.mjs +1 -1
  121. package/dist/esm/editor/IntlayerEditorProvider.mjs.map +1 -1
  122. package/dist/esm/editor/index.mjs +1 -1
  123. package/dist/esm/editor/useCrossFrameMessageListener.mjs +1 -1
  124. package/dist/esm/editor/useCrossFrameMessageListener.mjs.map +1 -1
  125. package/dist/esm/editor/useCrossFrameState.mjs +1 -1
  126. package/dist/esm/editor/useCrossFrameState.mjs.map +1 -1
  127. package/dist/esm/editor/useCrossURLPathState.mjs +1 -1
  128. package/dist/esm/editor/useCrossURLPathState.mjs.map +1 -1
  129. package/dist/esm/editor/useEditedContentRenderer.mjs +1 -1
  130. package/dist/esm/editor/useEditedContentRenderer.mjs.map +1 -1
  131. package/dist/esm/editor/useIframeClickInterceptor.mjs +1 -1
  132. package/dist/esm/editor/useIframeClickInterceptor.mjs.map +1 -1
  133. package/dist/esm/html/HTMLProvider.mjs +1 -1
  134. package/dist/esm/html/HTMLProvider.mjs.map +1 -1
  135. package/dist/types/UI/ContentSelector.d.ts.map +1 -1
  136. package/dist/types/client/IntlayerProvider.d.ts.map +1 -1
  137. package/dist/types/client/format/useCompact.d.ts.map +1 -1
  138. package/dist/types/client/format/useCurrency.d.ts.map +1 -1
  139. package/dist/types/client/format/useDate.d.ts.map +1 -1
  140. package/dist/types/client/format/useList.d.ts.map +1 -1
  141. package/dist/types/client/format/useNumber.d.ts.map +1 -1
  142. package/dist/types/client/format/usePercentage.d.ts.map +1 -1
  143. package/dist/types/client/format/useRelativeTime.d.ts.map +1 -1
  144. package/dist/types/client/format/useUnit.d.ts.map +1 -1
  145. package/dist/types/client/t.d.ts.map +1 -1
  146. package/dist/types/client/useDictionary.d.ts.map +1 -1
  147. package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
  148. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  149. package/dist/types/client/useIntlayer.d.ts.map +1 -1
  150. package/dist/types/client/useLocale.d.ts.map +1 -1
  151. package/dist/types/client/useLocaleBase.d.ts.map +1 -1
  152. package/dist/types/editor/CommunicatorContext.d.ts +4 -10
  153. package/dist/types/editor/CommunicatorContext.d.ts.map +1 -1
  154. package/dist/types/editor/ConfigurationContext.d.ts +2 -6
  155. package/dist/types/editor/ConfigurationContext.d.ts.map +1 -1
  156. package/dist/types/editor/ContentSelectorWrapper.d.ts.map +1 -1
  157. package/dist/types/editor/DictionariesRecordContext.d.ts +7 -11
  158. package/dist/types/editor/DictionariesRecordContext.d.ts.map +1 -1
  159. package/dist/types/editor/EditedContentContext.d.ts +25 -28
  160. package/dist/types/editor/EditedContentContext.d.ts.map +1 -1
  161. package/dist/types/editor/EditorEnabledContext.d.ts +4 -8
  162. package/dist/types/editor/EditorEnabledContext.d.ts.map +1 -1
  163. package/dist/types/editor/EditorProvider.d.ts +18 -6
  164. package/dist/types/editor/EditorProvider.d.ts.map +1 -1
  165. package/dist/types/editor/EditorStateContext.d.ts +12 -0
  166. package/dist/types/editor/EditorStateContext.d.ts.map +1 -0
  167. package/dist/types/editor/FocusDictionaryContext.d.ts +7 -16
  168. package/dist/types/editor/FocusDictionaryContext.d.ts.map +1 -1
  169. package/dist/types/editor/IntlayerEditorProvider.d.ts.map +1 -1
  170. package/dist/types/editor/index.d.ts +2 -1
  171. package/dist/types/editor/useCrossFrameMessageListener.d.ts +0 -16
  172. package/dist/types/editor/useCrossFrameMessageListener.d.ts.map +1 -1
  173. package/dist/types/editor/useCrossFrameState.d.ts +0 -21
  174. package/dist/types/editor/useCrossFrameState.d.ts.map +1 -1
  175. package/dist/types/editor/useCrossURLPathState.d.ts +2 -4
  176. package/dist/types/editor/useCrossURLPathState.d.ts.map +1 -1
  177. package/dist/types/editor/useEditedContentRenderer.d.ts.map +1 -1
  178. package/dist/types/editor/useIframeClickInterceptor.d.ts +1 -1
  179. package/dist/types/editor/useIframeClickInterceptor.d.ts.map +1 -1
  180. package/dist/types/html/HTMLProvider.d.ts.map +1 -1
  181. package/package.json +8 -9
@@ -1,2 +1,2 @@
1
- "use client";import{useCrossFrameMessageListener as e}from"./useCrossFrameMessageListener.mjs";import{MessageKey as t,mergeIframeClick as n}from"@intlayer/editor";import{useEffect as r}from"preact/hooks";const i=()=>{let n=e(t.INTLAYER_IFRAME_CLICKED),i=()=>{n()};r(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[n])},a=()=>e(t.INTLAYER_IFRAME_CLICKED,n);export{i as useIframeClickInterceptor,a as useIframeClickMerger};
1
+ import{useCrossFrameMessageListener as e}from"./useCrossFrameMessageListener.mjs";import{MessageKey as t,mergeIframeClick as n}from"@intlayer/editor";const r=()=>{e(t.INTLAYER_IFRAME_CLICKED)},i=()=>{e(t.INTLAYER_IFRAME_CLICKED,n)};export{r as useIframeClickInterceptor,i as useIframeClickMerger};
2
2
  //# sourceMappingURL=useIframeClickInterceptor.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIframeClickInterceptor.mjs","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.tsx"],"sourcesContent":["'use client';\n\nimport { MessageKey, mergeIframeClick } from '@intlayer/editor';\nimport { useEffect } from 'preact/hooks';\nimport { useCrossFrameMessageListener } from './useCrossFrameMessageListener';\n\nexport const useIframeClickInterceptor = () => {\n const postMessage = useCrossFrameMessageListener<undefined>(\n MessageKey.INTLAYER_IFRAME_CLICKED\n );\n const handlePostMessageEvent: EventListener = () => {\n postMessage();\n };\n\n useEffect(() => {\n window.addEventListener('mousedown', handlePostMessageEvent);\n\n return () =>\n window.removeEventListener('mousedown', handlePostMessageEvent);\n }, [postMessage]);\n};\n\nexport const useIframeClickMerger = () =>\n useCrossFrameMessageListener<MessageEvent>(\n MessageKey.INTLAYER_IFRAME_CLICKED,\n mergeIframeClick\n );\n"],"mappings":"4MAMA,MAAa,MAAkC,CAC7C,IAAM,EAAc,EAClB,EAAW,wBACZ,CACK,MAA8C,CAClD,GAAa,EAGf,OACE,OAAO,iBAAiB,YAAa,EAAuB,KAG1D,OAAO,oBAAoB,YAAa,EAAuB,EAChE,CAAC,EAAY,CAAC,EAGN,MACX,EACE,EAAW,wBACX,EACD"}
1
+ {"version":3,"file":"useIframeClickInterceptor.mjs","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.tsx"],"sourcesContent":["import { MessageKey, mergeIframeClick } from '@intlayer/editor';\nimport { useCrossFrameMessageListener } from './useCrossFrameMessageListener';\n\nexport const useIframeClickInterceptor = () => {\n useCrossFrameMessageListener<undefined>(MessageKey.INTLAYER_IFRAME_CLICKED);\n};\n\nexport const useIframeClickMerger = () => {\n useCrossFrameMessageListener<MessageEvent>(\n MessageKey.INTLAYER_IFRAME_CLICKED,\n mergeIframeClick\n );\n};\n"],"mappings":"sJAGA,MAAa,MAAkC,CAC7C,EAAwC,EAAW,wBAAwB,EAGhE,MAA6B,CACxC,EACE,EAAW,wBACX,EACD"}
@@ -1,2 +1,2 @@
1
- "use client";import{createContext as e}from"preact";import{useContext as t}from"preact/hooks";import{jsx as n}from"preact/jsx-runtime";const r=e(void 0),i=()=>t(r),a=({children:e,components:t})=>n(r.Provider,{value:{components:t},children:e});export{a as HTMLProvider,i as useHTMLContext};
1
+ import{createContext as e}from"preact";import{useContext as t}from"preact/hooks";import{jsx as n}from"preact/jsx-runtime";const r=e(void 0),i=()=>t(r),a=({children:e,components:t})=>n(r.Provider,{value:{components:t},children:e});export{a as HTMLProvider,i as useHTMLContext};
2
2
  //# sourceMappingURL=HTMLProvider.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"HTMLProvider.mjs","names":[],"sources":["../../../src/html/HTMLProvider.tsx"],"sourcesContent":["'use client';\n\nimport {\n createContext,\n type FunctionalComponent,\n type RenderableProps,\n} from 'preact';\nimport { useContext } from 'preact/hooks';\nimport type { HTMLComponents } from './types';\n\ntype HTMLContextValue = {\n components?: HTMLComponents<'permissive', {}>;\n};\n\ntype HTMLProviderProps = RenderableProps<{\n /**\n * Component overrides for HTML tags.\n */\n components?: HTMLComponents<'permissive', {}>;\n}>;\n\nconst HTMLContext = createContext<HTMLContextValue | undefined>(undefined);\n\nexport const useHTMLContext = () => useContext(HTMLContext);\n\nexport const HTMLProvider: FunctionalComponent<HTMLProviderProps> = ({\n children,\n components,\n}) => (\n <HTMLContext.Provider value={{ components }}>{children}</HTMLContext.Provider>\n);\n"],"mappings":"uIAqBA,MAAM,EAAc,EAA4C,IAAA,GAAU,CAE7D,MAAuB,EAAW,EAAY,CAE9C,GAAwD,CACnE,WACA,gBAEA,EAAC,EAAY,SAAb,CAAsB,MAAO,CAAE,aAAY,CAAG,WAAgC,CAAA"}
1
+ {"version":3,"file":"HTMLProvider.mjs","names":[],"sources":["../../../src/html/HTMLProvider.tsx"],"sourcesContent":["import {\n createContext,\n type FunctionalComponent,\n type RenderableProps,\n} from 'preact';\nimport { useContext } from 'preact/hooks';\nimport type { HTMLComponents } from './types';\n\ntype HTMLContextValue = {\n components?: HTMLComponents<'permissive', {}>;\n};\n\ntype HTMLProviderProps = RenderableProps<{\n /**\n * Component overrides for HTML tags.\n */\n components?: HTMLComponents<'permissive', {}>;\n}>;\n\nconst HTMLContext = createContext<HTMLContextValue | undefined>(undefined);\n\nexport const useHTMLContext = () => useContext(HTMLContext);\n\nexport const HTMLProvider: FunctionalComponent<HTMLProviderProps> = ({\n children,\n components,\n}) => (\n <HTMLContext.Provider value={{ components }}>{children}</HTMLContext.Provider>\n);\n"],"mappings":"0HAmBA,MAAM,EAAc,EAA4C,IAAA,GAAU,CAE7D,MAAuB,EAAW,EAAY,CAE9C,GAAwD,CACnE,WACA,gBAEA,EAAC,EAAY,SAAb,CAAsB,MAAO,CAAE,aAAY,CAAG,WAAgC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/UI/ContentSelector.tsx"],"mappings":";;;KAOK,oBAAA;EACH,OAAA;EACA,OAAA;EACA,SAAA;EACA,cAAA;EACA,aAAA;EACA,WAAA;AAAA,IACE,IAAA,CAAK,GAAA,CAAI,cAAA,CAAe,cAAA;AAAA,cAEf,eAAA,EAAiB,mBAAA,CAAoB,oBAAA"}
1
+ {"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/UI/ContentSelector.tsx"],"mappings":";;;KAKK,oBAAA;EACH,OAAA;EACA,OAAA;EACA,SAAA;EACA,cAAA;EACA,aAAA;EACA,WAAA;AAAA,IACE,IAAA,CAAK,GAAA,CAAI,cAAA,CAAe,cAAA;AAAA,cAEf,eAAA,EAAiB,mBAAA,CAAoB,oBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"mappings":";;;;;KAgBK,aAAA;EACH,MAAA,EAAQ,aAAA;EACR,SAAA,GAAY,SAAA,EAAW,aAAA;EACvB,aAAA;EACA,eAAA;AAAA;;;;cAMW,qBAAA,EAAqB,MAAA,CAAA,OAAA,CAAA,aAAA;;;;cASrB,kBAAA,QAAkB,aAAA;AAAA,KAEnB,qBAAA;EACV,QAAA,GAAW,cAAA;EACX,MAAA,GAAS,aAAA;EACT,aAAA,GAAgB,aAAA;EAChB,SAAA,IAAa,MAAA,EAAQ,aAAA;EACrB,aAAA;EACA,eAAA;AAAA;;;;cAMW,uBAAA,EAAyB,iBAAA,CACpC,qBAAA;AAbF;;;;;;;;;;;;;;;;;;;;AAAA,cA0Fa,gBAAA,EAAkB,iBAAA,CAAkB,qBAAA"}
1
+ {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"mappings":";;;;;KAcK,aAAA;EACH,MAAA,EAAQ,aAAA;EACR,SAAA,GAAY,SAAA,EAAW,aAAA;EACvB,aAAA;EACA,eAAA;AAAA;;;;cAMW,qBAAA,EAAqB,MAAA,CAAA,OAAA,CAAA,aAAA;;;;cASrB,kBAAA,QAAkB,aAAA;AAAA,KAEnB,qBAAA;EACV,QAAA,GAAW,cAAA;EACX,MAAA,GAAS,aAAA;EACT,aAAA,GAAgB,aAAA;EAChB,SAAA,IAAa,MAAA,EAAQ,aAAA;EACrB,aAAA;EACA,eAAA;AAAA;;;;cAMW,uBAAA,EAAyB,iBAAA,CACpC,qBAAA;AAbF;;;;;;;;;;;;;;;;;;;;AAAA,cA0Fa,gBAAA,EAAkB,iBAAA,CAAkB,qBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"mappings":";;;;;;AAgBA;;;;;;;cAAa,UAAA,SAAU,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"mappings":";;;;;;AAcA;;;;;;;cAAa,UAAA,SAAU,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/client/format/useCurrency.ts"],"mappings":";;;;;;AA8BA;;;;;;;;;;;;;;;;;;;;;cAAa,WAAA,SAAW,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/client/format/useCurrency.ts"],"mappings":";;;;;;AA4BA;;;;;;;;;;;;;;;;;;;;;cAAa,WAAA,SAAW,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/client/format/useDate.ts"],"mappings":";;;;;AAgCA;;;;;;;;;;;;;;;;;;;;;;;;cAAa,OAAA,YAGA,IAAA,EAAM,UAAA,QAAkB,IAAA"}
1
+ {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/client/format/useDate.ts"],"mappings":";;;;;AA8BA;;;;;;;;;;;;;;;;;;;;;;;;cAAa,OAAA,YAGA,IAAA,EAAM,UAAA,QAAkB,IAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/client/format/useList.ts"],"mappings":";;;;;;AA2BA;;;;;;;;;;;;;;;;;;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,GAAA,IAAA,CAAA,iBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/client/format/useNumber.ts"],"mappings":";;;;;;AA4BA;;;;;;;;;;;;;;;;;;;cAAa,SAAA,SAAS,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/client/format/useNumber.ts"],"mappings":";;;;;;AA0BA;;;;;;;;;;;;;;;;;;;cAAa,SAAA,SAAS,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../../src/client/format/usePercentage.ts"],"mappings":";;;;;;AAwBA;;;;;;;;;;;;;;;cAAa,aAAA,SAAa,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../../src/client/format/usePercentage.ts"],"mappings":";;;;;;AAsBA;;;;;;;;;;;;;;;cAAa,aAAA,SAAa,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/client/format/useRelativeTime.ts"],"mappings":";;;;;;AAwBA;;;;;;;;;;;;;;;cAAa,eAAA,SAAe,IAAA,oBAAA,IAAA,EAAA,EAAA,qBAAA,IAAA,EAAA,OAAA,GAAA,IAAA,CAAA,yBAAA;WAAA,oCAAA,CAAA,aAAA"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/client/format/useRelativeTime.ts"],"mappings":";;;;;;AAsBA;;;;;;;;;;;;;;;cAAa,eAAA,SAAe,IAAA,oBAAA,IAAA,EAAA,EAAA,qBAAA,IAAA,EAAA,OAAA,GAAA,IAAA,CAAA,yBAAA;WAAA,oCAAA,CAAA,aAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../../src/client/format/useUnit.ts"],"mappings":";;;;;;AAuBA;;;;;;;;;;;;;;cAAa,OAAA,SAAO,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../../src/client/format/useUnit.ts"],"mappings":";;;;;;AAqBA;;;;;;;;;;;;;;cAAa,OAAA,SAAO,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,oCAAA,CAAA,aAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/client/t.ts"],"mappings":";;;;;;AAaA;;;cAAa,CAAA,qBACX,gBAAA,EAAkB,mBAAA,CAAoB,OAAA,GACtC,MAAA,GAAS,MAAA,KAAM,OAAA"}
1
+ {"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/client/t.ts"],"mappings":";;;;;;AAWA;;;cAAa,CAAA,qBACX,gBAAA,EAAkB,mBAAA,CAAoB,OAAA,GACtC,MAAA,GAAS,MAAA,KAAM,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/client/useDictionary.ts"],"mappings":";;;;;;;;;;;;cAgBa,aAAA,aACD,UAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,UAAA,EAAY,CAAA,EACZ,MAAA,GAAS,CAAA,KAAC,2BAAA,CAAA,oBAAA,CAAA,CAAA,aAAA,yBAAA,EAAA,2BAAA,CAAA,MAAA"}
1
+ {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/client/useDictionary.ts"],"mappings":";;;;;;;;;;;;cAca,aAAA,aACD,UAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,UAAA,EAAY,CAAA,EACZ,MAAA,GAAS,CAAA,KAAC,2BAAA,CAAA,oBAAA,CAAA,CAAA,aAAA,yBAAA,EAAA,2BAAA,CAAA,MAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/client/useDictionaryAsync.ts"],"mappings":";;;;;;AAcA;;;cAAa,kBAAA,aAAsC,UAAA,EACjD,iBAAA,EAAmB,mBAAA,OAA0B,OAAA,CAAQ,CAAA,IACrD,MAAA,GAAS,aAAA,KACR,OAAA,CAAQ,CAAA"}
1
+ {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/client/useDictionaryAsync.ts"],"mappings":";;;;;;AAeA;;;cAAa,kBAAA,aAAsC,UAAA,EACjD,iBAAA,EAAmB,mBAAA,OAA0B,OAAA,CAAQ,CAAA,IACrD,MAAA,GAAS,aAAA,KACR,OAAA,CAAQ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;cAca,oBAAA,aACD,UAAA,YACA,cAAA,EAEV,iBAAA,EAAmB,mBAAA,OAA0B,OAAA,CAAQ,CAAA,IACrD,GAAA,EAAK,CAAA,EACL,MAAA,GAAS,aAAA,KAAa,2BAAA,CAAA,oBAAA,CAAA,CAAA,aAAA,yBAAA,EAAA,2BAAA,CAAA,MAAA"}
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;cAgBa,oBAAA,aACD,UAAA,YACA,cAAA,EAEV,iBAAA,EAAmB,mBAAA,OAA0B,OAAA,CAAQ,CAAA,IACrD,GAAA,EAAK,CAAA,EACL,MAAA,GAAS,aAAA,KAAa,2BAAA,CAAA,oBAAA,CAAA,CAAA,aAAA,yBAAA,EAAA,2BAAA,CAAA,MAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/client/useIntlayer.ts"],"mappings":";;;;;;AA4BA;;;;;;;;;;;;;;;;;;cAAa,WAAA,aAAyB,cAAA,YAA0B,aAAA,EAC9D,GAAA,EAAK,CAAA,EACL,MAAA,GAAS,CAAA,KAAC,oBAAA,CAAA,yBAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/client/useIntlayer.ts"],"mappings":";;;;;;AA8BA;;;;;;;;;;;;;;;;;;cAAa,WAAA,aAAyB,cAAA,YAA0B,aAAA,EAC9D,GAAA,EAAK,CAAA,EACL,MAAA,GAAS,CAAA,KAAC,oBAAA,CAAA,yBAAA,CAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;;;KAQK,cAAA;EACH,eAAA;EACA,cAAA,IAAkB,MAAA,EAAQ,aAAA;AAAA;;;;;;;;;;AA0B5B;;;;;;;;;;;;;;cAAa,SAAA;EAAa,eAAA;EAAA;AAAA,IAGvB,cAAA;;;;sBAU0B,aAAA;AAAA"}
1
+ {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;;;KAMK,cAAA;EACH,eAAA;EACA,cAAA,IAAkB,MAAA,EAAQ,aAAA;AAAA;;;;;;;;;;AA0B5B;;;;;;;;;;;;;;cAAa,SAAA;EAAa,eAAA;EAAA;AAAA,IAGvB,cAAA;;;;sBAU0B,aAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLocaleBase.d.ts","names":[],"sources":["../../../src/client/useLocaleBase.ts"],"mappings":";;;;;;;cAYa,aAAA;UASZ,oCAAA,CAAA,aAAA"}
1
+ {"version":3,"file":"useLocaleBase.d.ts","names":[],"sources":["../../../src/client/useLocaleBase.ts"],"mappings":";;;;;;;cAUa,aAAA;UASZ,oCAAA,CAAA,aAAA"}
@@ -1,18 +1,12 @@
1
- import { ComponentChildren, FunctionComponent } from "preact";
2
-
3
1
  //#region src/editor/CommunicatorContext.d.ts
4
- type UseCrossPlatformStateProps = {
5
- postMessage: typeof window.postMessage;
6
- allowedOrigins?: string[];
2
+ declare const useCommunicator: () => {
3
+ postMessage: (data: any) => void;
7
4
  senderId: string;
8
5
  };
9
6
  type CommunicatorProviderProps = {
10
- children?: ComponentChildren;
11
- postMessage: typeof window.postMessage;
7
+ postMessage?: (data: any) => void;
12
8
  allowedOrigins?: string[];
13
9
  };
14
- declare const CommunicatorProvider: FunctionComponent<CommunicatorProviderProps>;
15
- declare const useCommunicator: () => UseCrossPlatformStateProps;
16
10
  //#endregion
17
- export { CommunicatorProvider, CommunicatorProviderProps, UseCrossPlatformStateProps, useCommunicator };
11
+ export { CommunicatorProviderProps, useCommunicator };
18
12
  //# sourceMappingURL=CommunicatorContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommunicatorContext.d.ts","names":[],"sources":["../../../src/editor/CommunicatorContext.tsx"],"mappings":";;;KAYY,0BAAA;EACV,WAAA,SAAoB,MAAA,CAAO,WAAA;EAC3B,cAAA;EACA,QAAA;AAAA;AAAA,KAeU,yBAAA;EACV,QAAA,GAAW,iBAAA;EACX,WAAA,SAAoB,MAAA,CAAO,WAAA;EAC3B,cAAA;AAAA;AAAA,cAGW,oBAAA,EAAsB,iBAAA,CACjC,yBAAA;AAAA,cAiBW,eAAA,QAAe,0BAAA"}
1
+ {"version":3,"file":"CommunicatorContext.d.ts","names":[],"sources":["../../../src/editor/CommunicatorContext.tsx"],"mappings":";cAEa,eAAA;;;;KASD,yBAAA;EACV,WAAA,IAAe,IAAA;EACf,cAAA;AAAA"}
@@ -1,14 +1,10 @@
1
- import { CrossFrameStateUpdater } from "./useCrossFrameState.js";
2
- import { FunctionalComponent, RenderableProps } from "preact";
3
1
  import { IntlayerConfig } from "@intlayer/types/config";
4
2
 
5
3
  //#region src/editor/ConfigurationContext.d.ts
6
- declare const useConfigurationState: () => [IntlayerConfig, CrossFrameStateUpdater<IntlayerConfig>, () => void];
4
+ declare const useConfiguration: () => IntlayerConfig | undefined;
7
5
  type ConfigurationProviderProps = {
8
6
  configuration?: IntlayerConfig;
9
7
  };
10
- declare const ConfigurationProvider: FunctionalComponent<RenderableProps<ConfigurationProviderProps>>;
11
- declare const useConfiguration: () => IntlayerConfig;
12
8
  //#endregion
13
- export { ConfigurationProvider, ConfigurationProviderProps, useConfiguration, useConfigurationState };
9
+ export { ConfigurationProviderProps, useConfiguration };
14
10
  //# sourceMappingURL=ConfigurationContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurationContext.d.ts","names":[],"sources":["../../../src/editor/ConfigurationContext.tsx"],"mappings":";;;;;cAgBa,qBAAA,SAAqB,cAAA,EAAA,sBAAA,CAAA,cAAA;AAAA,KAUtB,0BAAA;EACV,aAAA,GAAgB,cAAA;AAAA;AAAA,cAGL,qBAAA,EAAuB,mBAAA,CAClC,eAAA,CAAgB,0BAAA;AAAA,cAOL,gBAAA,QAAgB,cAAA"}
1
+ {"version":3,"file":"ConfigurationContext.d.ts","names":[],"sources":["../../../src/editor/ConfigurationContext.tsx"],"mappings":";;;cAIa,gBAAA,QAAuB,cAAA;AAAA,KAgBxB,0BAAA;EAA+B,aAAA,GAAgB,cAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSelectorWrapper.d.ts","names":[],"sources":["../../../src/editor/ContentSelectorWrapper.tsx"],"mappings":";;;;KAcY,2BAAA,GAA8B,SAAA,GACxC,IAAA,CAAK,GAAA,CAAI,cAAA,CAAe,cAAA;AAAA,cAmEb,uBAAA,EAAyB,mBAAA,CACpC,2BAAA"}
1
+ {"version":3,"file":"ContentSelectorWrapper.d.ts","names":[],"sources":["../../../src/editor/ContentSelectorWrapper.tsx"],"mappings":";;;;KAWY,2BAAA,GAA8B,SAAA,GACxC,IAAA,CAAK,GAAA,CAAI,cAAA,CAAe,cAAA;AAAA,cA4Db,uBAAA,EAAyB,mBAAA,CACpC,2BAAA"}
@@ -1,20 +1,16 @@
1
- import { CrossFrameStateUpdater } from "./useCrossFrameState.js";
2
- import { FunctionalComponent, RenderableProps } from "preact";
3
1
  import { Dictionary } from "@intlayer/types/dictionary";
2
+ import { DictionaryContent } from "@intlayer/editor";
4
3
 
5
4
  //#region src/editor/DictionariesRecordContext.d.ts
6
- type DictionaryContent = Record<Dictionary['key'], Dictionary>;
7
- type DictionariesRecordActionsContextType = {
8
- setLocaleDictionaries: CrossFrameStateUpdater<DictionaryContent>;
5
+ declare const useDictionariesRecord: () => {
6
+ localeDictionaries: DictionaryContent;
7
+ setLocaleDictionaries: (value: DictionaryContent) => void;
9
8
  setLocaleDictionary: (dictionary: Dictionary) => void;
10
9
  };
11
- declare const DictionariesRecordProvider: FunctionalComponent<RenderableProps<{}>>;
12
- declare const useDictionariesRecordActions: () => DictionariesRecordActionsContextType;
13
- declare const useDictionariesRecord: () => {
14
- setLocaleDictionaries: CrossFrameStateUpdater<DictionaryContent>;
10
+ declare const useDictionariesRecordActions: () => {
11
+ setLocaleDictionaries: (value: DictionaryContent) => void;
15
12
  setLocaleDictionary: (dictionary: Dictionary) => void;
16
- localeDictionaries: DictionaryContent;
17
13
  };
18
14
  //#endregion
19
- export { DictionariesRecordProvider, DictionaryContent, useDictionariesRecord, useDictionariesRecordActions };
15
+ export { type DictionaryContent, useDictionariesRecord, useDictionariesRecordActions };
20
16
  //# sourceMappingURL=DictionariesRecordContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DictionariesRecordContext.d.ts","names":[],"sources":["../../../src/editor/DictionariesRecordContext.tsx"],"mappings":";;;;;KAeY,iBAAA,GAAoB,MAAA,CAAO,UAAA,SAAmB,UAAA;AAAA,KAKrD,oCAAA;EACH,qBAAA,EAAuB,sBAAA,CAAuB,iBAAA;EAC9C,mBAAA,GAAsB,UAAA,EAAY,UAAA;AAAA;AAAA,cAUvB,0BAAA,EAA4B,mBAAA,CACvC,eAAA;AAAA,cAqCW,4BAAA,QAA4B,oCAAA;AAAA,cAG5B,qBAAA;yBApDY,sBAAA,CAAuB,iBAAA;wBACxB,UAAA,EAAY,UAAA;sBAJd,iBAAA;AAAA"}
1
+ {"version":3,"file":"DictionariesRecordContext.d.ts","names":[],"sources":["../../../src/editor/DictionariesRecordContext.tsx"],"mappings":";;;;cAOa,qBAAA;;iCAiBsB,iBAAA;oCAEG,UAAA;AAAA;AAAA,cAKzB,4BAAA;iCAPsB,iBAAA;oCAEG,UAAA;AAAA"}
@@ -1,38 +1,35 @@
1
- import { CrossFrameStateUpdater } from "./useCrossFrameState.js";
2
- import { FunctionalComponent, RenderableProps } from "preact";
3
1
  import { ContentNode, Dictionary, LocalDictionaryId } from "@intlayer/types/dictionary";
2
+ import { DictionaryContent } from "@intlayer/editor";
4
3
  import { KeyPath } from "@intlayer/types/keyPath";
5
4
 
6
5
  //#region src/editor/EditedContentContext.d.ts
7
- declare const usePostEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
8
- declare const useGetEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
9
- type EditedContentActionsContextType = {
10
- setEditedContentState: (editedContent: Record<LocalDictionaryId, Dictionary>) => void;
11
- setEditedDictionary: CrossFrameStateUpdater<Dictionary>;
12
- setEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: Dictionary['content']) => void;
13
- addEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void;
14
- renameEditedContent: (dictionaryLocalId: LocalDictionaryId, newKey: KeyPath['key'], keyPath?: KeyPath[]) => void;
15
- removeEditedContent: (dictionaryLocalId: LocalDictionaryId, keyPath: KeyPath[]) => void;
16
- restoreEditedContent: (dictionaryLocalId: LocalDictionaryId) => void;
17
- clearEditedDictionaryContent: (dictionaryLocalId: LocalDictionaryId) => void;
6
+ declare const useEditedContent: () => {
7
+ editedContent: DictionaryContent;
8
+ setEditedContentState: (value: DictionaryContent) => void;
9
+ setEditedDictionary: (dict: Dictionary) => void;
10
+ setEditedContent: (localId: LocalDictionaryId, value: Dictionary["content"]) => void;
11
+ addEditedContent: (localId: LocalDictionaryId, value: ContentNode, keyPath?: KeyPath[], overwrite?: boolean) => void;
12
+ renameEditedContent: (localId: LocalDictionaryId, newKey: KeyPath["key"], keyPath?: KeyPath[]) => void;
13
+ removeEditedContent: (localId: LocalDictionaryId, keyPath: KeyPath[]) => void;
14
+ restoreEditedContent: (localId: LocalDictionaryId) => void;
15
+ clearEditedDictionaryContent: (localId: LocalDictionaryId) => void;
18
16
  clearEditedContent: () => void;
19
- getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary['key'] | string, keyPath: KeyPath[]) => ContentNode | undefined;
17
+ getEditedContentValue: (localIdOrKey: LocalDictionaryId | string, keyPath: KeyPath[]) => ContentNode | undefined;
20
18
  };
21
- declare const EditedContentProvider: FunctionalComponent<RenderableProps<{}>>;
22
- declare const useEditedContentActions: () => EditedContentActionsContextType;
23
- declare const useEditedContent: () => {
24
- setEditedContentState: (editedContent: Record<LocalDictionaryId, Dictionary>) => void;
25
- setEditedDictionary: CrossFrameStateUpdater<Dictionary>;
26
- setEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: Dictionary["content"]) => void;
27
- addEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void;
28
- renameEditedContent: (dictionaryLocalId: LocalDictionaryId, newKey: KeyPath["key"], keyPath?: KeyPath[]) => void;
29
- removeEditedContent: (dictionaryLocalId: LocalDictionaryId, keyPath: KeyPath[]) => void;
30
- restoreEditedContent: (dictionaryLocalId: LocalDictionaryId) => void;
31
- clearEditedDictionaryContent: (dictionaryLocalId: LocalDictionaryId) => void;
19
+ declare const useEditedContentActions: () => {
20
+ setEditedContentState: (value: DictionaryContent) => void;
21
+ setEditedDictionary: (dict: Dictionary) => void;
22
+ setEditedContent: (localId: LocalDictionaryId, value: Dictionary["content"]) => void;
23
+ addEditedContent: (localId: LocalDictionaryId, value: ContentNode, keyPath?: KeyPath[], overwrite?: boolean) => void;
24
+ renameEditedContent: (localId: LocalDictionaryId, newKey: KeyPath["key"], keyPath?: KeyPath[]) => void;
25
+ removeEditedContent: (localId: LocalDictionaryId, keyPath: KeyPath[]) => void;
26
+ restoreEditedContent: (localId: LocalDictionaryId) => void;
27
+ clearEditedDictionaryContent: (localId: LocalDictionaryId) => void;
32
28
  clearEditedContent: () => void;
33
- getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary["key"] | string, keyPath: KeyPath[]) => ContentNode | undefined;
34
- editedContent: Record<LocalDictionaryId, Dictionary> | undefined;
29
+ getEditedContentValue: (localIdOrKey: LocalDictionaryId | string, keyPath: KeyPath[]) => ContentNode | undefined;
35
30
  };
31
+ declare const useGetEditedContentState: () => () => void;
32
+ declare const usePostEditedContentState: () => () => void;
36
33
  //#endregion
37
- export { EditedContentProvider, useEditedContent, useEditedContentActions, useGetEditedContentState, usePostEditedContentState };
34
+ export { useEditedContent, useEditedContentActions, useGetEditedContentState, usePostEditedContentState };
38
35
  //# sourceMappingURL=EditedContentContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditedContentContext.d.ts","names":[],"sources":["../../../src/editor/EditedContentContext.tsx"],"mappings":";;;;;;cAuCa,yBAAA,MACX,gBAAA,IAAoB,IAAA,EAAM,CAAA,eAAU,IAAA,GAAA,CAAA;AAAA,cAOzB,wBAAA,MACX,gBAAA,IAAoB,IAAA,EAAM,CAAA,eAAU,IAAA,GAAA,CAAA;AAAA,KAOjC,+BAAA;EACH,qBAAA,GACE,aAAA,EAAe,MAAA,CAAO,iBAAA,EAAmB,UAAA;EAE3C,mBAAA,EAAqB,sBAAA,CAAuB,UAAA;EAC5C,gBAAA,GACE,iBAAA,EAAmB,iBAAA,EACnB,QAAA,EAAU,UAAA;EAEZ,gBAAA,GACE,iBAAA,EAAmB,iBAAA,EACnB,QAAA,EAAU,WAAA,OACV,OAAA,GAAU,OAAA,IACV,SAAA;EAEF,mBAAA,GACE,iBAAA,EAAmB,iBAAA,EACnB,MAAA,EAAQ,OAAA,SACR,OAAA,GAAU,OAAA;EAEZ,mBAAA,GACE,iBAAA,EAAmB,iBAAA,EACnB,OAAA,EAAS,OAAA;EAEX,oBAAA,GAAuB,iBAAA,EAAmB,iBAAA;EAC1C,4BAAA,GAA+B,iBAAA,EAAmB,iBAAA;EAClD,kBAAA;EACA,qBAAA,GACE,sBAAA,EAAwB,iBAAA,GAAoB,UAAA,kBAC5C,OAAA,EAAS,OAAA,OACN,WAAA;AAAA;AAAA,cAeM,qBAAA,EAAuB,mBAAA,CAClC,eAAA;AAAA,cAoPW,uBAAA,QAAuB,+BAAA;AAAA,cAGvB,gBAAA;0BAnST,aAAA,EAAe,MAAA,CAAO,iBAAA,EAAmB,UAAA;uBAEtB,sBAAA,CAAuB,UAAA;qBAE1C,iBAAA,EAAmB,iBAAA,EACnB,QAAA,EAAU,UAAA;qBAGV,iBAAA,EAAmB,iBAAA,EACnB,QAAA,EAAU,WAAA,OACV,OAAA,GAAU,OAAA,IACV,SAAA;wBAGA,iBAAA,EAAmB,iBAAA,EACnB,MAAA,EAAQ,OAAA,SACR,OAAA,GAAU,OAAA;wBAGV,iBAAA,EAAmB,iBAAA,EACnB,OAAA,EAAS,OAAA;yBAEY,iBAAA,EAAmB,iBAAA;iCACX,iBAAA,EAAmB,iBAAA;;0BAGhD,sBAAA,EAAwB,iBAAA,GAAoB,UAAA,kBAC5C,OAAA,EAAS,OAAA,OACN,WAAA;iBArDU,MAAA,CAAO,iBAAA,EAAmB,UAAA;AAAA"}
1
+ {"version":3,"file":"EditedContentContext.d.ts","names":[],"sources":["../../../src/editor/EditedContentContext.tsx"],"mappings":";;;;;cAUa,gBAAA;;iCAesB,iBAAA;8BAEH,UAAA;8BAGjB,iBAAA,EAAiB,KAAA,EACnB,UAAA;8BAGE,iBAAA,EAAiB,KAAA,EACnB,WAAA,EAAW,OAAA,GACR,OAAA,IAAS,SAAA;iCAIV,iBAAA,EAAiB,MAAA,EAClB,OAAA,SAAc,OAAA,GACZ,OAAA;iCAEmB,iBAAA,EAAiB,OAAA,EAAW,OAAA;kCAE3B,iBAAA;0CAEQ,iBAAA;;wCAIxB,iBAAA,WAA0B,OAAA,EAC/B,OAAA,OACR,WAAA;AAAA;AAAA,cAKM,uBAAA;iCAlCsB,iBAAA;8BAEH,UAAA;8BAGjB,iBAAA,EAAiB,KAAA,EACnB,UAAA;8BAGE,iBAAA,EAAiB,KAAA,EACnB,WAAA,EAAW,OAAA,GACR,OAAA,IAAS,SAAA;iCAIV,iBAAA,EAAiB,MAAA,EAClB,OAAA,SAAc,OAAA,GACZ,OAAA;iCAEmB,iBAAA,EAAiB,OAAA,EAAW,OAAA;kCAE3B,iBAAA;0CAEQ,iBAAA;;wCAIxB,iBAAA,WAA0B,OAAA,EAC/B,OAAA,OACR,WAAA;AAAA;AAAA,cAWM,wBAAA;AAAA,cAKA,yBAAA"}
@@ -1,15 +1,11 @@
1
- import { CrossFrameStateOptions, CrossFrameStateUpdater } from "./useCrossFrameState.js";
2
- import { FunctionalComponent, RenderableProps } from "preact";
3
-
4
1
  //#region src/editor/EditorEnabledContext.d.ts
5
2
  type EditorEnabledStateProps = {
6
3
  enabled: boolean;
7
4
  };
8
- declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean, CrossFrameStateUpdater<boolean>, () => void];
9
- declare const usePostEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
10
- declare const useGetEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
11
- declare const EditorEnabledProvider: FunctionalComponent<RenderableProps<{}>>;
12
5
  declare const useEditorEnabled: () => EditorEnabledStateProps;
6
+ declare const useEditorEnabledState: () => readonly [boolean, (value: boolean) => void];
7
+ declare const useGetEditorEnabledState: () => () => void;
8
+ declare const usePostEditorEnabledState: () => () => void;
13
9
  //#endregion
14
- export { EditorEnabledProvider, EditorEnabledStateProps, useEditorEnabled, useEditorEnabledState, useGetEditorEnabledState, usePostEditorEnabledState };
10
+ export { EditorEnabledStateProps, useEditorEnabled, useEditorEnabledState, useGetEditorEnabledState, usePostEditorEnabledState };
15
11
  //# sourceMappingURL=EditorEnabledContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorEnabledContext.d.ts","names":[],"sources":["../../../src/editor/EditorEnabledContext.tsx"],"mappings":";;;;KAeY,uBAAA;EACV,OAAA;AAAA;AAAA,cAOW,qBAAA,GAAyB,OAAA,GAAU,sBAAA,eAAsB,sBAAA;AAAA,cAGzD,yBAAA,MACX,gBAAA,IAAoB,IAAA,EAAM,CAAA,eAAU,IAAA,GAAA,CAAA;AAAA,cAOzB,wBAAA,MACX,gBAAA,IAAoB,IAAA,EAAM,CAAA,eAAU,IAAA,GAAA,CAAA;AAAA,cAOzB,qBAAA,EAAuB,mBAAA,CAClC,eAAA;AAAA,cAcW,gBAAA,QAAgB,uBAAA"}
1
+ {"version":3,"file":"EditorEnabledContext.d.ts","names":[],"sources":["../../../src/editor/EditorEnabledContext.tsx"],"mappings":";KAIY,uBAAA;EACV,OAAA;AAAA;AAAA,cAGW,gBAAA,QAAuB,uBAAA;AAAA,cAgBvB,qBAAA,4BAAqB,KAAA;AAAA,cASrB,wBAAA;AAAA,cAOA,yBAAA"}
@@ -1,10 +1,22 @@
1
- import { CommunicatorProviderProps } from "./CommunicatorContext.js";
2
- import { ConfigurationProviderProps } from "./ConfigurationContext.js";
3
- import { FunctionalComponent, RenderableProps } from "preact";
1
+ import { ComponentChildren, FunctionComponent } from "preact";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
4
3
 
5
4
  //#region src/editor/EditorProvider.d.ts
6
- type EditorProviderProps = CommunicatorProviderProps & ConfigurationProviderProps;
7
- declare const EditorProvider: FunctionalComponent<RenderableProps<EditorProviderProps>>;
5
+ type EditorProviderProps = {
6
+ mode?: 'editor' | 'client';
7
+ configuration?: IntlayerConfig;
8
+ postMessage?: (data: any) => void;
9
+ allowedOrigins?: string[];
10
+ children?: ComponentChildren;
11
+ };
12
+ declare const EditorProvider: FunctionComponent<EditorProviderProps>;
13
+ type CommunicatorProviderProps = {
14
+ postMessage?: (data: any) => void;
15
+ allowedOrigins?: string[];
16
+ };
17
+ type ConfigurationProviderProps = {
18
+ configuration?: IntlayerConfig;
19
+ };
8
20
  //#endregion
9
- export { EditorProvider, EditorProviderProps };
21
+ export { CommunicatorProviderProps, ConfigurationProviderProps, EditorProvider, EditorProviderProps };
10
22
  //# sourceMappingURL=EditorProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"mappings":";;;;;KA0FY,mBAAA,GAAsB,yBAAA,GAChC,0BAAA;AAAA,cAEW,cAAA,EAAgB,mBAAA,CAC3B,eAAA,CAAgB,mBAAA"}
1
+ {"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"mappings":";;;;KAuDY,mBAAA;EACV,IAAA;EACA,aAAA,GAAgB,cAAA;EAChB,WAAA,IAAe,IAAA;EACf,cAAA;EACA,QAAA,GAAW,iBAAA;AAAA;AAAA,cAGA,cAAA,EAAgB,iBAAA,CAAkB,mBAAA;AAAA,KA+CnC,yBAAA;EACV,WAAA,IAAe,IAAA;EACf,cAAA;AAAA;AAAA,KAEU,0BAAA;EAA+B,aAAA,GAAgB,cAAA;AAAA"}
@@ -0,0 +1,12 @@
1
+ import { ComponentChildren, FunctionComponent } from "preact";
2
+ import { EditorStateManager } from "@intlayer/editor";
3
+
4
+ //#region src/editor/EditorStateContext.d.ts
5
+ declare const EditorStateProvider: FunctionComponent<{
6
+ manager: EditorStateManager;
7
+ children?: ComponentChildren;
8
+ }>;
9
+ declare const useEditorStateManager: () => EditorStateManager;
10
+ //#endregion
11
+ export { EditorStateProvider, useEditorStateManager };
12
+ //# sourceMappingURL=EditorStateContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorStateContext.d.ts","names":[],"sources":["../../../src/editor/EditorStateContext.tsx"],"mappings":";;;;cAUa,mBAAA,EAAqB,iBAAA;EAChC,OAAA,EAAS,kBAAA;EACT,QAAA,GAAW,iBAAA;AAAA;AAAA,cAOA,qBAAA,QAA4B,kBAAA"}
@@ -1,25 +1,16 @@
1
- import { CrossFrameStateUpdater } from "./useCrossFrameState.js";
2
- import { FunctionalComponent, RenderableProps } from "preact";
1
+ import { FileContent } from "@intlayer/editor";
3
2
  import { KeyPath } from "@intlayer/types/keyPath";
4
3
 
5
4
  //#region src/editor/FocusDictionaryContext.d.ts
6
- type DictionaryPath = string;
7
- type FileContent = {
8
- dictionaryKey: string;
9
- keyPath?: KeyPath[];
10
- dictionaryPath?: DictionaryPath;
11
- };
12
- type FocusDictionaryActions = {
13
- setFocusedContent: CrossFrameStateUpdater<FileContent | null>;
5
+ declare const useFocusDictionary: () => {
6
+ focusedContent: FileContent;
7
+ setFocusedContent: (value: FileContent | null) => void;
14
8
  setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
15
9
  };
16
- declare const FocusDictionaryProvider: FunctionalComponent<RenderableProps<{}>>;
17
- declare const useFocusDictionaryActions: () => FocusDictionaryActions;
18
- declare const useFocusDictionary: () => {
19
- setFocusedContent: CrossFrameStateUpdater<FileContent | null>;
10
+ declare const useFocusDictionaryActions: () => {
11
+ setFocusedContent: (value: FileContent | null) => void;
20
12
  setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
21
- focusedContent: FileContent | null;
22
13
  };
23
14
  //#endregion
24
- export { FileContent, FocusDictionaryProvider, useFocusDictionary, useFocusDictionaryActions };
15
+ export { type FileContent, useFocusDictionary, useFocusDictionaryActions };
25
16
  //# sourceMappingURL=FocusDictionaryContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusDictionaryContext.d.ts","names":[],"sources":["../../../src/editor/FocusDictionaryContext.tsx"],"mappings":";;;;;KAeK,cAAA;AAAA,KAEO,WAAA;EACV,aAAA;EACA,OAAA,GAAU,OAAA;EACV,cAAA,GAAiB,cAAA;AAAA;AAAA,KAOd,sBAAA;EACH,iBAAA,EAAmB,sBAAA,CAAuB,WAAA;EAC1C,wBAAA,GAA2B,OAAA,EAAS,OAAA;AAAA;AAAA,cAUzB,uBAAA,EAAyB,mBAAA,CACpC,eAAA;AAAA,cA4BW,yBAAA,QAAyB,sBAAA;AAAA,cAUzB,kBAAA;qBAlDQ,sBAAA,CAAuB,WAAA;6BACf,OAAA,EAAS,OAAA;kBALpB,WAAA;AAAA"}
1
+ {"version":3,"file":"FocusDictionaryContext.d.ts","names":[],"sources":["../../../src/editor/FocusDictionaryContext.tsx"],"mappings":";;;;cAOa,kBAAA;;6BAekB,WAAA;sCAES,OAAA;AAAA;AAAA,cAK3B,yBAAA;6BAPkB,WAAA;sCAES,OAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerEditorProvider.d.ts","names":[],"sources":["../../../src/editor/IntlayerEditorProvider.tsx"],"mappings":";;;cAoDa,sBAAA,EAAwB,iBAAA;EACnC,QAAA,GAAW,iBAAA;AAAA"}
1
+ {"version":3,"file":"IntlayerEditorProvider.d.ts","names":[],"sources":["../../../src/editor/IntlayerEditorProvider.tsx"],"mappings":";;;cAGa,sBAAA,EAAwB,iBAAA;EACnC,QAAA,GAAW,iBAAA;AAAA"}
@@ -1,2 +1,3 @@
1
1
  import { ContentSelectorRenderer, ContentSelectorWrapperProps } from "./ContentSelectorWrapper.js";
2
- export { ContentSelectorRenderer, ContentSelectorWrapperProps };
2
+ import { EditorStateProvider, useEditorStateManager } from "./EditorStateContext.js";
3
+ export { ContentSelectorRenderer, ContentSelectorWrapperProps, EditorStateProvider, useEditorStateManager };
@@ -1,22 +1,6 @@
1
1
  import { MessageKey } from "@intlayer/editor";
2
2
 
3
3
  //#region src/editor/useCrossFrameMessageListener.d.ts
4
- /**
5
- * useCrossFrameMessageListener
6
- *
7
- * This React hook listens for messages sent via the `postMessage` API and triggers a callback
8
- * whenever a message of the specified type (`key`) is received. It is useful for synchronizing
9
- * state or events across different windows, iframes, or contexts.
10
- *
11
- * @template S - The type of the data payload in the message.
12
- * @param key - A unique identifier for the message type to listen for.
13
- * @param [onEventTriggered] - A callback function triggered when a message
14
- * @param [revalidator] - A function that re-suscribes the listener. Could be usefull if onEventTriggered depend of some state
15
- * with the specified key is received. The callback receives the message data as its argument.
16
- *
17
- * @returns {{ postMessage: (data: S) => void }} An object containing a `postMessage` function
18
- * that allows broadcasting messages with the specified key and data.
19
- */
20
4
  declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void, revalidator?: any) => (data?: S) => void;
21
5
  //#endregion
22
6
  export { useCrossFrameMessageListener };
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameMessageListener.tsx"],"mappings":";;;;;AAsBA;;;;;;;;;;;;;;cAAa,4BAAA,MACX,GAAA,KAAQ,UAAA,QAAkB,UAAA,aAAuB,UAAA,QACjD,gBAAA,IAAoB,IAAA,EAAM,CAAA,WAC1B,WAAA,YAAiB,IAAA,GAsDiB,CAAA"}
1
+ {"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameMessageListener.tsx"],"mappings":";;;cAIa,4BAAA,MACX,GAAA,KAAQ,UAAA,QAAkB,UAAA,aAAuB,UAAA,QACjD,gBAAA,IAAoB,IAAA,EAAM,CAAA,WAC1B,WAAA,YASQ,IAAA,GAAO,CAAA"}
@@ -7,27 +7,6 @@ type CrossFrameStateOptions = {
7
7
  };
8
8
  type SetStateAction<S> = S | ((prevState: S) => S);
9
9
  type CrossFrameStateUpdater<S> = (value: SetStateAction<S>) => void;
10
- /**
11
- * Configuration options for `useCrossFrameState`.
12
- * @typedef {Object} CrossFrameStateOptions
13
- * @property {boolean} [emit=true] - Whether to broadcast state changes to other instances.
14
- * @property {boolean} [receive=true] - Whether to listen for state updates from other instances.
15
- */
16
- /**
17
- * useCrossFrameState
18
- *
19
- * This Preact hook synchronizes state across multiple instances (e.g., different iframes or windows).
20
- * It uses the `postMessage` API to communicate state changes and updates between instances.
21
- *
22
- * @template S - The type of the state.
23
- * @param key - A unique identifier for the state to synchronize.
24
- * @param initialState - The initial state value or a function to compute it lazily.
25
- * @param options - Configuration options to control emitting and receiving messages.
26
- * - `emit` (default: true): Whether to broadcast state changes to other instances.
27
- * - `receive` (default: true): Whether to listen for state updates from other instances.
28
- *
29
- * @returns {[S, CrossFrameStateUpdater<S>, typeof postState]} An array containing the current state and a setter function, and a function to manually post the state.
30
- */
31
10
  declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [S, CrossFrameStateUpdater<S>, () => void];
32
11
  //#endregion
33
12
  export { CrossFrameStateOptions, CrossFrameStateUpdater, SetStateAction, useCrossFrameState };
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameState.tsx"],"mappings":";;;KAOY,sBAAA;EACV,IAAA;EACA,OAAA;AAAA;AAAA,KAGU,cAAA,MAAoB,CAAA,KAAM,SAAA,EAAW,CAAA,KAAM,CAAA;AAAA,KAC3C,sBAAA,OAA6B,KAAA,EAAO,cAAA,CAAe,CAAA;;AAD/D;;;;;;;;;;;;;;;AACA;;;;;cAgCa,kBAAA,MACX,GAAA,KAAQ,UAAA,IACR,YAAA,GAAe,CAAA,UAAW,CAAA,GAC1B,OAAA,GAAU,sBAAA,MACR,CAAA,EAAG,sBAAA,CAAuB,CAAA"}
1
+ {"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameState.tsx"],"mappings":";;;KAUY,sBAAA;EACV,IAAA;EACA,OAAA;AAAA;AAAA,KAGU,cAAA,MAAoB,CAAA,KAAM,SAAA,EAAW,CAAA,KAAM,CAAA;AAAA,KAC3C,sBAAA,OAA6B,KAAA,EAAO,cAAA,CAAe,CAAA;AAAA,cAElD,kBAAA,MACX,GAAA,KAAQ,UAAA,IACR,YAAA,GAAe,CAAA,UAAW,CAAA,GAC1B,OAAA,GAAU,sBAAA,MACR,CAAA,EAAG,sBAAA,CAAuB,CAAA"}
@@ -1,8 +1,6 @@
1
- import { CrossFrameStateOptions, CrossFrameStateUpdater } from "./useCrossFrameState.js";
2
-
3
1
  //#region src/editor/useCrossURLPathState.d.ts
4
- declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [string, CrossFrameStateUpdater<string>, () => void];
5
- declare const useCrossURLPathSetter: (initialState?: string) => [string, CrossFrameStateUpdater<string>, () => void];
2
+ declare const useCrossURLPathSetter: () => void;
3
+ declare const useCrossURLPathState: () => void;
6
4
  //#endregion
7
5
  export { useCrossURLPathSetter, useCrossURLPathState };
8
6
  //# sourceMappingURL=useCrossURLPathState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../../src/editor/useCrossURLPathState.tsx"],"mappings":";;;cASa,oBAAA,GACX,YAAA,WACA,OAAA,GAAU,sBAAA,cAAsB,sBAAA;AAAA,cAGrB,qBAAA,GAAyB,YAAA,uBA8DrC,sBAAA"}
1
+ {"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../../src/editor/useCrossURLPathState.tsx"],"mappings":";cAEa,qBAAA;AAAA,cAIA,oBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEditedContentRenderer.d.ts","names":[],"sources":["../../../src/editor/useEditedContentRenderer.tsx"],"mappings":";;;;;;KASK,0BAAA;EACH,aAAA,EAAe,UAAA;EACf,OAAA,EAAS,OAAA;EACT,QAAA;EACA,MAAA,GAAS,MAAA;AAAA;AAAA,cAGE,wBAAA;EAA4B,aAAA;EAAA,OAAA;EAAA;AAAA,GAItC,0BAAA;AAAA,cAiBU,qBAAA,EAAuB,mBAAA,CAClC,0BAAA"}
1
+ {"version":3,"file":"useEditedContentRenderer.d.ts","names":[],"sources":["../../../src/editor/useEditedContentRenderer.tsx"],"mappings":";;;;;;KAOK,0BAAA;EACH,aAAA,EAAe,UAAA;EACf,OAAA,EAAS,OAAA;EACT,QAAA;EACA,MAAA,GAAS,MAAA;AAAA;AAAA,cAGE,wBAAA;EAA4B,aAAA;EAAA,OAAA;EAAA;AAAA,GAItC,0BAAA;AAAA,cAiBU,qBAAA,EAAuB,mBAAA,CAClC,0BAAA"}
@@ -1,6 +1,6 @@
1
1
  //#region src/editor/useIframeClickInterceptor.d.ts
2
2
  declare const useIframeClickInterceptor: () => void;
3
- declare const useIframeClickMerger: () => (data?: MessageEvent<any>) => void;
3
+ declare const useIframeClickMerger: () => void;
4
4
  //#endregion
5
5
  export { useIframeClickInterceptor, useIframeClickMerger };
6
6
  //# sourceMappingURL=useIframeClickInterceptor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.tsx"],"mappings":";cAMa,yBAAA;AAAA,cAgBA,oBAAA,SAAoB,IAAA,GAAA,YAAA"}
1
+ {"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.tsx"],"mappings":";cAGa,yBAAA;AAAA,cAIA,oBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"HTMLProvider.d.ts","names":[],"sources":["../../../src/html/HTMLProvider.tsx"],"mappings":";;;;KAUK,gBAAA;EACH,UAAA,GAAa,cAAA;AAAA;AAAA,KAGV,iBAAA,GAAoB,eAAA;;;;EAIvB,UAAA,GAAa,cAAA;AAAA;AAAA,cAKF,cAAA,QAAc,gBAAA;AAAA,cAEd,YAAA,EAAc,mBAAA,CAAoB,iBAAA"}
1
+ {"version":3,"file":"HTMLProvider.d.ts","names":[],"sources":["../../../src/html/HTMLProvider.tsx"],"mappings":";;;;KAQK,gBAAA;EACH,UAAA,GAAa,cAAA;AAAA;AAAA,KAGV,iBAAA,GAAoB,eAAA;;;;EAIvB,UAAA,GAAa,cAAA;AAAA;AAAA,cAKF,cAAA,QAAc,gBAAA;AAAA,cAEd,YAAA,EAAc,mBAAA,CAAoB,iBAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "preact-intlayer",
3
- "version": "8.3.2",
3
+ "version": "8.3.4",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Preact applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -92,13 +92,12 @@
92
92
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
93
93
  },
94
94
  "dependencies": {
95
- "@intlayer/api": "8.3.2",
96
- "@intlayer/chokidar": "8.3.2",
97
- "@intlayer/config": "8.3.2",
98
- "@intlayer/core": "8.3.2",
99
- "@intlayer/editor": "8.3.2",
100
- "@intlayer/types": "8.3.2",
101
- "@intlayer/unmerged-dictionaries-entry": "8.3.2"
95
+ "@intlayer/api": "8.3.4",
96
+ "@intlayer/chokidar": "8.3.4",
97
+ "@intlayer/config": "8.3.4",
98
+ "@intlayer/core": "8.3.4",
99
+ "@intlayer/editor": "8.3.4",
100
+ "@intlayer/types": "8.3.4"
102
101
  },
103
102
  "devDependencies": {
104
103
  "@types/node": "25.5.0",
@@ -106,7 +105,7 @@
106
105
  "@utils/ts-config-types": "1.0.4",
107
106
  "@utils/tsdown-config": "1.0.4",
108
107
  "rimraf": "6.1.3",
109
- "tsdown": "0.21.2",
108
+ "tsdown": "0.21.4",
110
109
  "typescript": "5.9.3",
111
110
  "vitest": "4.1.0"
112
111
  },