solid-intlayer 5.5.10 → 5.5.11

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 (192) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/IntlayerNode.cjs +1 -0
  3. package/dist/cjs/UI/ContentSelector.cjs +1 -0
  4. package/dist/cjs/client/IntlayerProvider.cjs +1 -0
  5. package/dist/cjs/client/getBrowserLocale.cjs +1 -0
  6. package/dist/cjs/client/index.cjs +1 -29
  7. package/dist/cjs/client/t.cjs +1 -0
  8. package/dist/cjs/client/useContent.cjs +1 -0
  9. package/dist/cjs/client/useDictionary.cjs +1 -41
  10. package/dist/cjs/client/useDictionaryDynamic.cjs +1 -0
  11. package/dist/cjs/client/useIntlayer.cjs +1 -44
  12. package/dist/cjs/client/useIntlayerAsync.cjs +1 -0
  13. package/dist/cjs/client/useLoadDynamic.cjs +1 -0
  14. package/dist/cjs/client/useLocale.cjs +1 -33
  15. package/dist/cjs/client/useLocaleBase.cjs +1 -0
  16. package/dist/cjs/client/useLocaleCookie.cjs +1 -0
  17. package/dist/cjs/client/useTraduction.cjs +1 -0
  18. package/dist/cjs/editor/ContentSelectorWrapper.cjs +1 -0
  19. package/dist/cjs/editor/IntlayerEditorProvider.cjs +1 -0
  20. package/dist/cjs/editor/contexts/ChangedContentContext.cjs +1 -0
  21. package/dist/cjs/editor/contexts/CommunicatorContext.cjs +1 -0
  22. package/dist/cjs/editor/contexts/ConfigurationContext.cjs +1 -0
  23. package/dist/cjs/editor/contexts/DictionariesRecordContext.cjs +1 -0
  24. package/dist/cjs/editor/contexts/EditedContentContext.cjs +1 -0
  25. package/dist/cjs/editor/contexts/EditorEnabledContext.cjs +1 -0
  26. package/dist/cjs/editor/contexts/EditorProvider.cjs +1 -0
  27. package/dist/cjs/editor/contexts/FocusDictionaryContext.cjs +1 -0
  28. package/dist/cjs/editor/contexts/index.cjs +1 -0
  29. package/dist/cjs/editor/contexts/useCrossFrameMessageListener.cjs +1 -0
  30. package/dist/cjs/editor/contexts/useCrossFrameState.cjs +1 -0
  31. package/dist/cjs/editor/contexts/useCrossURLPathState.cjs +1 -0
  32. package/dist/cjs/editor/contexts/useIframeClickInterceptor.cjs +1 -0
  33. package/dist/cjs/editor/index.cjs +1 -0
  34. package/dist/cjs/editor/useEditedContentRenderer.cjs +1 -0
  35. package/dist/cjs/getDictionary.cjs +1 -42
  36. package/dist/cjs/getIntlayer.cjs +1 -38
  37. package/dist/cjs/index.cjs +1 -31
  38. package/dist/cjs/markdown/MarkdownProvider.cjs +1 -0
  39. package/dist/cjs/markdown/MarkdownRenderer.cjs +1 -0
  40. package/dist/cjs/markdown/index.cjs +1 -36
  41. package/dist/cjs/plugins.cjs +1 -53
  42. package/dist/cjs/solidElement/renderSolidElement.cjs +1 -0
  43. package/dist/esm/IntlayerNode.mjs +17 -0
  44. package/dist/esm/UI/ContentSelector.mjs +58 -0
  45. package/dist/esm/client/IntlayerProvider.mjs +69 -0
  46. package/dist/esm/client/getBrowserLocale.mjs +100 -0
  47. package/dist/esm/client/index.mjs +29 -5
  48. package/dist/esm/client/t.mjs +10 -0
  49. package/dist/esm/client/useContent.mjs +13 -0
  50. package/dist/esm/client/useDictionary.mjs +18 -13
  51. package/dist/esm/client/useDictionaryDynamic.mjs +14 -0
  52. package/dist/esm/client/useIntlayer.mjs +18 -15
  53. package/dist/esm/client/useIntlayerAsync.mjs +15 -0
  54. package/dist/esm/client/useLoadDynamic.mjs +21 -0
  55. package/dist/esm/client/useLocale.mjs +29 -6
  56. package/dist/esm/client/useLocaleBase.mjs +19 -0
  57. package/dist/esm/client/useLocaleCookie.mjs +19 -0
  58. package/dist/esm/client/useTraduction.mjs +10 -0
  59. package/dist/esm/editor/ContentSelectorWrapper.mjs +52 -0
  60. package/dist/esm/editor/IntlayerEditorProvider.mjs +64 -0
  61. package/dist/esm/editor/contexts/ChangedContentContext.mjs +39 -0
  62. package/dist/esm/editor/contexts/CommunicatorContext.mjs +30 -0
  63. package/dist/esm/editor/contexts/ConfigurationContext.mjs +19 -0
  64. package/dist/esm/editor/contexts/DictionariesRecordContext.mjs +44 -0
  65. package/dist/esm/editor/contexts/EditedContentContext.mjs +147 -0
  66. package/dist/esm/editor/contexts/EditorEnabledContext.mjs +27 -0
  67. package/dist/esm/editor/contexts/EditorProvider.mjs +85 -0
  68. package/dist/esm/editor/contexts/FocusDictionaryContext.mjs +47 -0
  69. package/dist/esm/editor/contexts/index.mjs +43 -0
  70. package/dist/esm/editor/contexts/useCrossFrameMessageListener.mjs +35 -0
  71. package/dist/esm/editor/contexts/useCrossFrameState.mjs +57 -0
  72. package/dist/esm/editor/contexts/useCrossURLPathState.mjs +25 -0
  73. package/dist/esm/editor/contexts/useIframeClickInterceptor.mjs +18 -0
  74. package/dist/esm/editor/index.mjs +4 -0
  75. package/dist/esm/editor/useEditedContentRenderer.mjs +29 -0
  76. package/dist/esm/getDictionary.mjs +13 -18
  77. package/dist/esm/getIntlayer.mjs +10 -15
  78. package/dist/esm/index.mjs +41 -6
  79. package/dist/esm/markdown/MarkdownProvider.mjs +24 -0
  80. package/dist/esm/markdown/MarkdownRenderer.mjs +31 -0
  81. package/dist/esm/markdown/index.mjs +7 -10
  82. package/dist/esm/plugins.mjs +113 -20
  83. package/dist/esm/solidElement/renderSolidElement.mjs +31 -0
  84. package/dist/types/IntlayerNode.d.ts +15 -0
  85. package/dist/types/IntlayerNode.d.ts.map +1 -0
  86. package/dist/types/UI/ContentSelector.d.ts +11 -0
  87. package/dist/types/UI/ContentSelector.d.ts.map +1 -0
  88. package/dist/types/client/IntlayerProvider.d.ts +28 -0
  89. package/dist/types/client/IntlayerProvider.d.ts.map +1 -0
  90. package/dist/types/client/getBrowserLocale.d.ts +25 -0
  91. package/dist/types/client/getBrowserLocale.d.ts.map +1 -0
  92. package/dist/types/client/index.d.ts +11 -4
  93. package/dist/types/client/index.d.ts.map +1 -1
  94. package/dist/types/client/t.d.ts +9 -0
  95. package/dist/types/client/t.d.ts.map +1 -0
  96. package/dist/types/client/useContent.d.ts +10 -0
  97. package/dist/types/client/useContent.d.ts.map +1 -0
  98. package/dist/types/client/useDictionary.d.ts +7 -2
  99. package/dist/types/client/useDictionary.d.ts.map +1 -1
  100. package/dist/types/client/useDictionaryDynamic.d.ts +9 -0
  101. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -0
  102. package/dist/types/client/useIntlayer.d.ts +9 -6
  103. package/dist/types/client/useIntlayer.d.ts.map +1 -1
  104. package/dist/types/client/useIntlayerAsync.d.ts +15 -0
  105. package/dist/types/client/useIntlayerAsync.d.ts.map +1 -0
  106. package/dist/types/client/useLoadDynamic.d.ts +2 -0
  107. package/dist/types/client/useLoadDynamic.d.ts.map +1 -0
  108. package/dist/types/client/useLocale.d.ts +14 -3
  109. package/dist/types/client/useLocale.d.ts.map +1 -1
  110. package/dist/types/client/useLocaleBase.d.ts +10 -0
  111. package/dist/types/client/useLocaleBase.d.ts.map +1 -0
  112. package/dist/types/client/useLocaleCookie.d.ts +17 -0
  113. package/dist/types/client/useLocaleCookie.d.ts.map +1 -0
  114. package/dist/types/client/useTraduction.d.ts +24 -0
  115. package/dist/types/client/useTraduction.d.ts.map +1 -0
  116. package/dist/types/editor/ContentSelectorWrapper.d.ts +7 -0
  117. package/dist/types/editor/ContentSelectorWrapper.d.ts.map +1 -0
  118. package/dist/types/editor/IntlayerEditorProvider.d.ts +3 -0
  119. package/dist/types/editor/IntlayerEditorProvider.d.ts.map +1 -0
  120. package/dist/types/editor/contexts/ChangedContentContext.d.ts +13 -0
  121. package/dist/types/editor/contexts/ChangedContentContext.d.ts.map +1 -0
  122. package/dist/types/editor/contexts/CommunicatorContext.d.ts +10 -0
  123. package/dist/types/editor/contexts/CommunicatorContext.d.ts.map +1 -0
  124. package/dist/types/editor/contexts/ConfigurationContext.d.ts +9 -0
  125. package/dist/types/editor/contexts/ConfigurationContext.d.ts.map +1 -0
  126. package/dist/types/editor/contexts/DictionariesRecordContext.d.ts +16 -0
  127. package/dist/types/editor/contexts/DictionariesRecordContext.d.ts.map +1 -0
  128. package/dist/types/editor/contexts/EditedContentContext.d.ts +33 -0
  129. package/dist/types/editor/contexts/EditedContentContext.d.ts.map +1 -0
  130. package/dist/types/editor/contexts/EditorEnabledContext.d.ts +11 -0
  131. package/dist/types/editor/contexts/EditorEnabledContext.d.ts.map +1 -0
  132. package/dist/types/editor/contexts/EditorProvider.d.ts +6 -0
  133. package/dist/types/editor/contexts/EditorProvider.d.ts.map +1 -0
  134. package/dist/types/editor/contexts/FocusDictionaryContext.d.ts +21 -0
  135. package/dist/types/editor/contexts/FocusDictionaryContext.d.ts.map +1 -0
  136. package/dist/types/editor/contexts/index.d.ts +13 -0
  137. package/dist/types/editor/contexts/index.d.ts.map +1 -0
  138. package/dist/types/editor/contexts/useCrossFrameMessageListener.d.ts +19 -0
  139. package/dist/types/editor/contexts/useCrossFrameMessageListener.d.ts.map +1 -0
  140. package/dist/types/editor/contexts/useCrossFrameState.d.ts +29 -0
  141. package/dist/types/editor/contexts/useCrossFrameState.d.ts.map +1 -0
  142. package/dist/types/editor/contexts/useCrossURLPathState.d.ts +4 -0
  143. package/dist/types/editor/contexts/useCrossURLPathState.d.ts.map +1 -0
  144. package/dist/types/editor/contexts/useIframeClickInterceptor.d.ts +9 -0
  145. package/dist/types/editor/contexts/useIframeClickInterceptor.d.ts.map +1 -0
  146. package/dist/types/editor/index.d.ts +2 -0
  147. package/dist/types/editor/index.d.ts.map +1 -0
  148. package/dist/types/editor/useEditedContentRenderer.d.ts +13 -0
  149. package/dist/types/editor/useEditedContentRenderer.d.ts.map +1 -0
  150. package/dist/types/getDictionary.d.ts +1 -1
  151. package/dist/types/getDictionary.d.ts.map +1 -1
  152. package/dist/types/getIntlayer.d.ts +1 -1
  153. package/dist/types/getIntlayer.d.ts.map +1 -1
  154. package/dist/types/index.d.ts +3 -5
  155. package/dist/types/index.d.ts.map +1 -1
  156. package/dist/types/markdown/MarkdownProvider.d.ts +12 -0
  157. package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -0
  158. package/dist/types/markdown/MarkdownRenderer.d.ts +16 -0
  159. package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -0
  160. package/dist/types/markdown/index.d.ts +2 -3
  161. package/dist/types/markdown/index.d.ts.map +1 -1
  162. package/dist/types/plugins.d.ts +49 -23
  163. package/dist/types/plugins.d.ts.map +1 -1
  164. package/dist/types/solidElement/renderSolidElement.d.ts +3 -0
  165. package/dist/types/solidElement/renderSolidElement.d.ts.map +1 -0
  166. package/dist/web-BFg6-54-.mjs +443 -0
  167. package/dist/web-qH6jV2Kc.js +1 -0
  168. package/package.json +24 -18
  169. package/dist/cjs/client/index.cjs.map +0 -1
  170. package/dist/cjs/client/installIntlayer.cjs +0 -53
  171. package/dist/cjs/client/installIntlayer.cjs.map +0 -1
  172. package/dist/cjs/client/useDictionary.cjs.map +0 -1
  173. package/dist/cjs/client/useIntlayer.cjs.map +0 -1
  174. package/dist/cjs/client/useLocale.cjs.map +0 -1
  175. package/dist/cjs/getDictionary.cjs.map +0 -1
  176. package/dist/cjs/getIntlayer.cjs.map +0 -1
  177. package/dist/cjs/index.cjs.map +0 -1
  178. package/dist/cjs/markdown/index.cjs.map +0 -1
  179. package/dist/cjs/plugins.cjs.map +0 -1
  180. package/dist/esm/client/index.mjs.map +0 -1
  181. package/dist/esm/client/installIntlayer.mjs +0 -26
  182. package/dist/esm/client/installIntlayer.mjs.map +0 -1
  183. package/dist/esm/client/useDictionary.mjs.map +0 -1
  184. package/dist/esm/client/useIntlayer.mjs.map +0 -1
  185. package/dist/esm/client/useLocale.mjs.map +0 -1
  186. package/dist/esm/getDictionary.mjs.map +0 -1
  187. package/dist/esm/getIntlayer.mjs.map +0 -1
  188. package/dist/esm/index.mjs.map +0 -1
  189. package/dist/esm/markdown/index.mjs.map +0 -1
  190. package/dist/esm/plugins.mjs.map +0 -1
  191. package/dist/types/client/installIntlayer.d.ts +0 -11
  192. package/dist/types/client/installIntlayer.d.ts.map +0 -1
@@ -0,0 +1,24 @@
1
+ import { LanguageContent } from '@intlayer/core';
2
+ /**
3
+ * On the client side, Hook that picking one dictionary by its id and return the content.
4
+ *
5
+ * If not locale found, it will return the content related to the default locale.
6
+ *
7
+ * Return either the content editor, or the content itself depending on the configuration.
8
+ *
9
+ * Usage:
10
+ *
11
+ * ```tsx
12
+ * const content = useTranslation<string>({
13
+ * en: 'Hello',
14
+ * fr: 'Bonjour',
15
+ * }, 'fr');
16
+ * // 'Bonjour'
17
+ * ```
18
+ *
19
+ * Using TypeScript:
20
+ * - this function will require each locale to be defined if defined in the project configuration.
21
+ * - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
22
+ */
23
+ export declare const useTranslation: <Content = string>(languageContent: LanguageContent<Content>) => Content;
24
+ //# sourceMappingURL=useTraduction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTraduction.d.ts","sourceRoot":"","sources":["../../../src/client/useTraduction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,MAAM,EAC7C,iBAAiB,eAAe,CAAC,OAAO,CAAC,KACxC,OAIF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { NodeProps } from '@intlayer/core';
2
+ import { Component, JSX } from 'solid-js';
3
+ export type ContentSelectorWrapperProps = NodeProps & Omit<JSX.HTMLAttributes<HTMLDivElement>, 'children'> & {
4
+ children?: JSX.Element;
5
+ };
6
+ export declare const ContentSelectorRenderer: Component<ContentSelectorWrapperProps>;
7
+ //# sourceMappingURL=ContentSelectorWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentSelectorWrapper.d.ts","sourceRoot":"","sources":["../../../src/editor/ContentSelectorWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAKhE,MAAM,MAAM,2BAA2B,GAAG,SAAS,GACjD,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,GAAG;IACrD,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACxB,CAAC;AA4BJ,eAAO,MAAM,uBAAuB,EAAE,SAAS,CAAC,2BAA2B,CAe1E,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Component, ParentProps } from 'solid-js';
2
+ export declare const IntlayerEditorProvider: Component<ParentProps>;
3
+ //# sourceMappingURL=IntlayerEditorProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntlayerEditorProvider.d.ts","sourceRoot":"","sources":["../../../src/editor/IntlayerEditorProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAyDhF,eAAO,MAAM,sBAAsB,EAAE,SAAS,CAAC,WAAW,CA+CzD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Dictionary } from '@intlayer/core';
2
+ import { Component, ParentProps } from 'solid-js';
3
+ type ChangedContentActionsContextType = {
4
+ setChangedContent: (dictionaryKey: Dictionary['key'], newValue: Dictionary['content']) => void;
5
+ };
6
+ export declare const ChangedContentProvider: Component<ParentProps>;
7
+ export declare const useChangedContentActions: () => ChangedContentActionsContextType | undefined;
8
+ export declare const useChangedContent: () => {
9
+ setChangedContent?: ((dictionaryKey: Dictionary["key"], newValue: Dictionary["content"]) => void) | undefined;
10
+ changedContent: Record<string, Dictionary> | undefined;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=ChangedContentContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangedContentContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/ChangedContentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAWlB,KAAK,gCAAgC,GAAG;IACtC,iBAAiB,EAAE,CACjB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC,KAC5B,IAAI,CAAC;CACX,CAAC;AAMF,eAAO,MAAM,sBAAsB,EAAE,SAAS,CAAC,WAAW,CAgCzD,CAAC;AAEF,eAAO,MAAM,wBAAwB,oDAIpC,CAAC;AAEF,eAAO,MAAM,iBAAiB;yCAjDX,UAAU,CAAC,KAAK,CAAC,YACtB,UAAU,CAAC,SAAS,CAAC,KAC5B,IAAI;;CAuDV,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Component, ParentProps } from 'solid-js';
2
+ export type UseCrossPlatformStateProps = {
3
+ postMessage: typeof window.postMessage;
4
+ allowedOrigins?: string[];
5
+ senderId: string;
6
+ };
7
+ export type CommunicatorProviderProps = ParentProps<Omit<UseCrossPlatformStateProps, 'senderId'>>;
8
+ export declare const CommunicatorProvider: Component<CommunicatorProviderProps>;
9
+ export declare const useCommunicator: () => UseCrossPlatformStateProps;
10
+ //# sourceMappingURL=CommunicatorContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommunicatorContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/CommunicatorContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAWlB,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,WAAW,CACjD,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAC7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,yBAAyB,CAiBrE,CAAC;AAEF,eAAO,MAAM,eAAe,kCAAwC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { IntlayerConfig } from '@intlayer/config/client';
2
+ import { Component, ParentProps } from 'solid-js';
3
+ export declare const useConfigurationState: () => [import('solid-js').Accessor<IntlayerConfig>, (value: IntlayerConfig | ((prev: IntlayerConfig) => IntlayerConfig)) => void, () => void];
4
+ export type ConfigurationProviderProps = ParentProps<{
5
+ configuration?: IntlayerConfig;
6
+ }>;
7
+ export declare const ConfigurationProvider: Component<ConfigurationProviderProps>;
8
+ export declare const useConfiguration: () => IntlayerConfig | undefined;
9
+ //# sourceMappingURL=ConfigurationContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigurationContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/ConfigurationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAGjB,MAAM,UAAU,CAAC;AAOlB,eAAO,MAAM,qBAAqB,+IAQ/B,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAAC;IACnD,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC,CAAC,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,0BAA0B,CAMvE,CAAC;AAEF,eAAO,MAAM,gBAAgB,kCAA+C,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { Dictionary } from '@intlayer/core';
2
+ import { Component, ParentProps, Setter } from 'solid-js';
3
+ export type DictionaryContent = Record<Dictionary['key'], Dictionary>;
4
+ type DictionariesRecordActionsContextType = {
5
+ setLocaleDictionaries: Setter<DictionaryContent>;
6
+ setLocaleDictionary: (dictionary: Dictionary) => void;
7
+ };
8
+ export declare const DictionariesRecordProvider: Component<ParentProps>;
9
+ export declare const useDictionariesRecordActions: () => DictionariesRecordActionsContextType | undefined;
10
+ export declare const useDictionariesRecord: () => {
11
+ setLocaleDictionaries?: Setter<DictionaryContent> | undefined;
12
+ setLocaleDictionary?: ((dictionary: Dictionary) => void) | undefined;
13
+ localeDictionaries: DictionaryContent;
14
+ };
15
+ export {};
16
+ //# sourceMappingURL=DictionariesRecordContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DictionariesRecordContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/DictionariesRecordContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,MAAM,EACZ,MAAM,UAAU,CAAC;AAGlB,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAKtE,KAAK,oCAAoC,GAAG;IAC1C,qBAAqB,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACjD,mBAAmB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CACvD,CAAC;AASF,eAAO,MAAM,0BAA0B,EAAE,SAAS,CAAC,WAAW,CA4B7D,CAAC;AAEF,eAAO,MAAM,4BAA4B,wDACK,CAAC;AAE/C,eAAO,MAAM,qBAAqB;;wCA3CE,UAAU,KAAK,IAAI;wBAJjC,iBAAiB;CA0DtC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { ContentNode, Dictionary, KeyPath } from '@intlayer/core';
2
+ import { Component, ParentProps } from 'solid-js';
3
+ export declare const usePostEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S | undefined) => void;
4
+ export declare const useGetEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S | undefined) => void;
5
+ type EditedContentActionsContextType = {
6
+ setEditedContentState: (editedContent: Record<Dictionary['key'], Dictionary>) => void;
7
+ setEditedDictionary: (newValue: Dictionary | ((prev?: Dictionary) => Dictionary)) => void;
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;
16
+ };
17
+ export declare const EditedContentProvider: Component<ParentProps>;
18
+ export declare const useEditedContentActions: () => EditedContentActionsContextType | undefined;
19
+ export declare const useEditedContent: () => {
20
+ setEditedContentState?: ((editedContent: Record<Dictionary["key"], Dictionary>) => void) | undefined;
21
+ setEditedDictionary?: ((newValue: Dictionary | ((prev?: Dictionary) => Dictionary)) => void) | undefined;
22
+ setEditedContent?: ((dictionaryKey: Dictionary["key"], newValue: Dictionary["content"]) => void) | undefined;
23
+ addEditedContent?: ((dictionaryKey: Dictionary["key"], newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void) | undefined;
24
+ renameEditedContent?: ((dictionaryKey: Dictionary["key"], newKey: KeyPath["key"], keyPath?: KeyPath[]) => void) | undefined;
25
+ removeEditedContent?: ((dictionaryKey: Dictionary["key"], keyPath: KeyPath[]) => void) | undefined;
26
+ restoreEditedContent?: ((dictionaryKey: Dictionary["key"]) => void) | undefined;
27
+ clearEditedDictionaryContent?: ((dictionaryKey: Dictionary["key"]) => void) | undefined;
28
+ clearEditedContent?: (() => void) | undefined;
29
+ getEditedContentValue?: ((dictionaryKey: Dictionary["key"], keyPath: KeyPath[]) => ContentNode | undefined) | undefined;
30
+ editedContent: Record<Dictionary["key"], Dictionary> | undefined;
31
+ };
32
+ export {};
33
+ //# sourceMappingURL=EditedContentContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditedContentContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/EditedContentContext.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ import { Component, ParentProps } from 'solid-js';
2
+ import { CrossFrameStateOptions } from './useCrossFrameState';
3
+ export type EditorEnabledStateProps = {
4
+ enabled: () => boolean;
5
+ };
6
+ export declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [import('solid-js').Accessor<boolean>, (value: boolean | ((prev: boolean) => boolean)) => void, () => void];
7
+ export declare const usePostEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S | undefined) => void;
8
+ export declare const useGetEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S | undefined) => void;
9
+ export declare const EditorEnabledProvider: Component<ParentProps>;
10
+ export declare const useEditorEnabled: () => EditorEnabledStateProps;
11
+ //# sourceMappingURL=EditorEnabledContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorEnabledContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/EditorEnabledContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,OAAO,CAAC;CACxB,CAAC;AAMF,eAAO,MAAM,qBAAqB,GAAI,UAAU,sBAAsB,gHACE,CAAC;AAEzE,eAAO,MAAM,yBAAyB,GAAI,CAAC,EACzC,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,mCAKnC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,GAAI,CAAC,EACxC,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,mCAKnC,CAAC;AAEJ,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,WAAW,CAWxD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAAyC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Component, ParentProps } from 'solid-js';
2
+ import { CommunicatorProviderProps } from './CommunicatorContext';
3
+ import { ConfigurationProviderProps } from './ConfigurationContext';
4
+ export type EditorProviderProps = CommunicatorProviderProps & ConfigurationProviderProps;
5
+ export declare const EditorProvider: Component<ParentProps<EditorProviderProps>>;
6
+ //# sourceMappingURL=EditorProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorProvider.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/EditorProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,WAAW,EAGjB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AAsEhC,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GACzD,0BAA0B,CAAC;AAE7B,eAAO,MAAM,cAAc,EAAE,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAmBtE,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { KeyPath } from '@intlayer/core';
2
+ import { Component, ParentProps, Setter } from 'solid-js';
3
+ type DictionaryPath = string;
4
+ export type FileContent = {
5
+ dictionaryKey: string;
6
+ keyPath?: KeyPath[];
7
+ dictionaryPath?: DictionaryPath;
8
+ };
9
+ type FocusDictionaryActions = {
10
+ setFocusedContent: Setter<FileContent | null>;
11
+ setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
12
+ };
13
+ export declare const FocusDictionaryProvider: Component<ParentProps>;
14
+ export declare const useFocusDictionaryActions: () => FocusDictionaryActions;
15
+ export declare const useFocusDictionary: () => {
16
+ setFocusedContent: Setter<FileContent | null>;
17
+ setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
18
+ focusedContent: FileContent | null;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=FocusDictionaryContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusDictionaryContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/FocusDictionaryContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,MAAM,EACZ,MAAM,UAAU,CAAC;AAGlB,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,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC9C,wBAAwB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACxD,CAAC;AASF,eAAO,MAAM,uBAAuB,EAAE,SAAS,CAAC,WAAW,CA8B1D,CAAC;AAEF,eAAO,MAAM,yBAAyB,8BAQrC,CAAC;AAEF,eAAO,MAAM,kBAAkB;uBArDV,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC;8BACnB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI;oBALtC,WAAW,GAAG,IAAI;CAoEnC,CAAC"}
@@ -0,0 +1,13 @@
1
+ export * from '@intlayer/editor';
2
+ export * from './ChangedContentContext';
3
+ export * from './ConfigurationContext';
4
+ export * from './DictionariesRecordContext';
5
+ export * from './EditedContentContext';
6
+ export * from './EditorEnabledContext';
7
+ export * from './EditorProvider';
8
+ export * from './FocusDictionaryContext';
9
+ export * from './useCrossFrameMessageListener';
10
+ export * from './useCrossFrameState';
11
+ export * from './useCrossURLPathState';
12
+ export * from './useIframeClickInterceptor';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { MessageKey } from '@intlayer/editor';
2
+ /**
3
+ * useCrossFrameMessageListener
4
+ *
5
+ * This Solid hook listens for messages sent via the `postMessage` API and triggers a callback
6
+ * whenever a message of the specified type (`key`) is received. It is useful for synchronizing
7
+ * state or events across different windows, iframes, or contexts.
8
+ *
9
+ * @template S - The type of the data payload in the message.
10
+ * @param key - A unique identifier for the message type to listen for.
11
+ * @param [onEventTriggered] - A callback function triggered when a message
12
+ * @param [revalidator] - A function that re-subscribes the listener. Could be useful if onEventTriggered depend of some state
13
+ * with the specified key is received. The callback receives the message data as its argument.
14
+ *
15
+ * @returns {{ postMessage: (data: S) => void }} An object containing a `postMessage` function
16
+ * that allows broadcasting messages with the specified key and data.
17
+ */
18
+ export declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void, revalidator?: any) => (data?: S) => void;
19
+ //# sourceMappingURL=useCrossFrameMessageListener.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCrossFrameMessageListener.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/useCrossFrameMessageListener.tsx"],"names":[],"mappings":"AAAA,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,aA4DiB,CAAC,KAAK,IAKzC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { MessageKey } from '@intlayer/editor';
2
+ import { Accessor } from 'solid-js';
3
+ export type CrossFrameStateOptions = {
4
+ emit?: boolean;
5
+ receive?: boolean;
6
+ };
7
+ /**
8
+ * Configuration options for `useCrossFrameState`.
9
+ * @typedef {Object} CrossFrameStateOptions
10
+ * @property {boolean} [emit=true] - Whether to broadcast state changes to other instances.
11
+ * @property {boolean} [receive=true] - Whether to listen for state updates from other instances.
12
+ */
13
+ /**
14
+ * useCrossFrameState
15
+ *
16
+ * This Solid.js hook synchronizes state across multiple instances (e.g., different iframes or windows).
17
+ * It uses the `postMessage` API to communicate state changes and updates between instances.
18
+ *
19
+ * @template S - The type of the state.
20
+ * @param key - A unique identifier for the state to synchronize.
21
+ * @param initialState - The initial state value or a function to compute it lazily.
22
+ * @param options - Configuration options to control emitting and receiving messages.
23
+ * - `emit` (default: true): Whether to broadcast state changes to other instances.
24
+ * - `receive` (default: true): Whether to listen for state updates from other instances.
25
+ *
26
+ * @returns {[Accessor<S>, (value: S | ((prev: S) => S)) => void, () => void]} An array containing the current state accessor, setter function, and post function.
27
+ */
28
+ export declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [Accessor<S>, (value: S | ((prev: S) => S)) => void, () => void];
29
+ //# sourceMappingURL=useCrossFrameState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCrossFrameState.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/useCrossFrameState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA8B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIrE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AASF;;;;;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,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,EAAE,MAAM,IAAI,CAqGjE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { CrossFrameStateOptions } from './useCrossFrameState';
2
+ export declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [import('solid-js').Accessor<string>, (value: string | ((prev: string) => string)) => void, () => void];
3
+ export declare const useCrossURLPathSetter: (initialState?: string) => [import('solid-js').Accessor<string>, (value: string | ((prev: string) => string)) => void, () => void];
4
+ //# sourceMappingURL=useCrossURLPathState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCrossURLPathState.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/useCrossURLPathState.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,oBAAoB,GAC/B,eAAe,MAAM,EACrB,UAAU,sBAAsB,4GAC4C,CAAC;AAE/E,eAAO,MAAM,qBAAqB,GAAI,eAAe,MAAM,4GA8D1D,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Custom hook that intercepts clicks on the page and sends them via `postMessage`.
3
+ *
4
+ * This is useful in iframe contexts where you want the parent frame to know
5
+ * about click events happening within the iframe.
6
+ */
7
+ export declare const useIframeClickInterceptor: () => void;
8
+ export declare const useIframeClickMerger: () => (data?: MessageEvent<any> | undefined) => void;
9
+ //# sourceMappingURL=useIframeClickInterceptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIframeClickInterceptor.d.ts","sourceRoot":"","sources":["../../../../src/editor/contexts/useIframeClickInterceptor.tsx"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,YAmBrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,sDAI9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ContentSelectorWrapper';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Locales } from '@intlayer/config/client';
2
+ import { KeyPath } from '@intlayer/core';
3
+ import { Component } from 'solid-js';
4
+ type EditedContentRendererProps = {
5
+ dictionaryKey: string;
6
+ keyPath: KeyPath[];
7
+ children: string;
8
+ locale?: Locales;
9
+ };
10
+ export declare const useEditedContentRenderer: ({ dictionaryKey, keyPath, children, }: EditedContentRendererProps) => string;
11
+ export declare const EditedContentRenderer: Component<EditedContentRendererProps>;
12
+ export {};
13
+ //# sourceMappingURL=useEditedContentRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditedContentRenderer.d.ts","sourceRoot":"","sources":["../../../src/editor/useEditedContentRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,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,SAAS,CAAC,0BAA0B,CAoBvE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Locales, LocalesValues } from '@intlayer/config/client';
1
+ import { Locales, LocalesValues } from '@intlayer/config/client';
2
2
  import { Dictionary, Plugins } from '@intlayer/core';
3
3
  import { DeepTransformContent } from './plugins';
4
4
  export declare const getDictionary: <T extends Dictionary, L extends LocalesValues = Locales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<T["content"]>;
@@ -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,UAAU,EACV,OAAO,EAER,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,oBAAoB,EAGrB,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,KAYjB,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,CAAC"}
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,5 +1,5 @@
1
1
  import { DictionaryKeys, Plugins } from '@intlayer/core';
2
- import type { IntlayerDictionaryTypesConnector, LocalesValues } from 'intlayer';
2
+ import { IntlayerDictionaryTypesConnector, LocalesValues } from 'intlayer';
3
3
  import { DeepTransformContent } from './plugins';
4
4
  export declare const getIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<IntlayerDictionaryTypesConnector[T]["content"]>;
5
5
  //# sourceMappingURL=getIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../src/getIntlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAEd,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,gCAAgC,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EACL,oBAAoB,EAGrB,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,KAQ0B,oBAAoB,CACzE,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAEjD,CAAC"}
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;AACxB,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"}
@@ -3,9 +3,7 @@ declare module '@intlayer/core' {
3
3
  interface IInterpreterPlugin<T, S> extends IInterpreterPluginSolid<T> {
4
4
  }
5
5
  }
6
- export * from './client';
7
- export * from './getDictionary';
8
- export * from './getIntlayer';
9
- export * from './markdown';
10
- export * from './plugins';
6
+ export { getBrowserLocale, IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, localeCookie, setLocaleCookie, t, useDictionary, useDictionaryDynamic, useIntlayer, useIntlayerAsync, useIntlayerContext, useLoadDynamic, useLocale, useLocaleBase, useLocaleCookie, type IntlayerProviderProps, } from './client/index';
7
+ export { type IntlayerNode } from './IntlayerNode';
8
+ export { MarkdownProvider } from './markdown/index';
11
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,uBAAuB,CAAC,CAAC,CAAC;KAAG;CACzE;AAED,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,uBAAuB,CAAC,CAAC,CAAC;KAAG;CACzE;AAED,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,eAAe,EACf,CAAC,EACD,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,aAAa,EACb,eAAe,EACf,KAAK,qBAAqB,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { JSXElement, Component, ParentProps } from 'solid-js';
2
+ type MarkdownProviderValue = {
3
+ renderMarkdown: (content: string) => JSXElement;
4
+ };
5
+ export declare const MarkdownContext: import('solid-js').Context<MarkdownProviderValue | undefined>;
6
+ export type MarkdownProviderProps = ParentProps<{
7
+ renderMarkdown?: (content: string) => JSXElement;
8
+ }>;
9
+ export declare const MarkdownProvider: Component<MarkdownProviderProps>;
10
+ export declare const useMarkdown: () => MarkdownProviderValue;
11
+ export {};
12
+ //# sourceMappingURL=MarkdownProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownProvider.d.ts","sourceRoot":"","sources":["../../../src/markdown/MarkdownProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAElB,KAAK,qBAAqB,GAAG;IAC3B,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,UAAU,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,eAAe,+DAAyC,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC;IAC9C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,UAAU,CAAC;CAClD,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,SAAS,CAAC,qBAAqB,CAY7D,CAAC;AAEF,eAAO,MAAM,WAAW,6BAUvB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { LocalesValues } from '@intlayer/config/client';
2
+ import { KeyPath } from '@intlayer/core';
3
+ import { Component } from 'solid-js';
4
+ type MarkdownRendererProps = {
5
+ dictionaryKey: string;
6
+ keyPath: KeyPath[];
7
+ locale?: LocalesValues;
8
+ children: string;
9
+ };
10
+ export declare const MarkdownRenderer: Component<MarkdownRendererProps>;
11
+ type MarkdownMetadataRendererProps = MarkdownRendererProps & {
12
+ metadataKeyPath: KeyPath[];
13
+ };
14
+ export declare const MarkdownMetadataRenderer: Component<MarkdownMetadataRendererProps>;
15
+ export {};
16
+ //# sourceMappingURL=MarkdownRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/markdown/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAKL,OAAO,EACR,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAO,MAAM,UAAU,CAAC;AAI/C,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAAS,CAAC,qBAAqB,CA8B7D,CAAC;AAEF,KAAK,6BAA6B,GAAG,qBAAqB,GAAG;IAC3D,eAAe,EAAE,OAAO,EAAE,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAC9C,6BAA6B,CAe9B,CAAC"}
@@ -1,4 +1,3 @@
1
- export declare const useMarkdown: () => {
2
- renderMarkdown: (content: string) => string;
3
- };
1
+ export * from './MarkdownProvider';
2
+ export * from './MarkdownRenderer';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/markdown/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;8BACW,MAAM,KAAG,MAAM;CAQjD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/markdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
@@ -1,32 +1,58 @@
1
- import type { Plugins } from '@intlayer/core';
1
+ import { NodeType, DeepTransformContent as DeepTransformContentCore, IInterpreterPluginState as IInterpreterPluginStateCore, Plugins } from '@intlayer/core';
2
+ import { JSX } from 'solid-js';
3
+ import { IntlayerNode } from './IntlayerNode';
4
+ /** ---------------------------------------------
5
+ * INTLAYER NODE PLUGIN
6
+ * --------------------------------------------- */
7
+ export type IntlayerNodeCond<T> = T extends number | string ? IntlayerNode<T> : never;
8
+ /** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
9
+ export declare const intlayerNodePlugins: Plugins;
10
+ /** ---------------------------------------------
11
+ * SOLID NODE PLUGIN
12
+ * --------------------------------------------- */
13
+ export type SolidNodeCond<T> = T extends {
14
+ props: any;
15
+ key?: any;
16
+ } ? JSX.Element : never;
17
+ /** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
18
+ export declare const solidNodePlugins: Plugins;
2
19
  /**
3
- * Interface for Solid-specific plugin functionality
4
- * This interface can be augmented to add more Solid-specific transformations
20
+ * MARKDOWN PLUGIN
5
21
  */
22
+ export type MarkdownStringCond<T> = T extends string ? IntlayerNode<string, {
23
+ metadata: DeepTransformContent<string>;
24
+ }> : never;
25
+ /** Markdown string plugin. Replaces string node with a component that render the markdown. */
26
+ export declare const markdownStringPlugin: Plugins;
27
+ export type MarkdownCond<T> = T extends {
28
+ nodeType: NodeType | string;
29
+ [NodeType.Markdown]: infer M;
30
+ metadata?: infer U;
31
+ } ? IntlayerNode<DeepTransformContent<M>, {
32
+ metadata: DeepTransformContent<U>;
33
+ }> : never;
34
+ export declare const markdownPlugin: Plugins;
35
+ /** ---------------------------------------------
36
+ * PLUGINS RESULT
37
+ * --------------------------------------------- */
6
38
  export interface IInterpreterPluginSolid<T> {
7
- /** Any Solid-specific properties can be added here */
8
- solidRendered?: T;
39
+ solidNode: SolidNodeCond<T>;
40
+ intlayerNode: IntlayerNodeCond<T>;
41
+ markdown: MarkdownCond<T>;
9
42
  }
10
43
  /**
11
- * Type that represents the deep transformation of content for Solid
12
- * This applies Solid-specific transformations recursively to all content
13
- */
14
- export type DeepTransformContent<T> = T extends object ? {
15
- [K in keyof T]: DeepTransformContent<T[K]>;
16
- } & IInterpreterPluginSolid<T> : T;
17
- /**
18
- * Solid-specific node plugins for handling basic content types
19
- * These plugins handle strings, numbers, and bigints in Solid applications
44
+ * Insert this type as param of `DeepTransformContent` to avoid `intlayer` package pollution.
45
+ *
46
+ * Otherwise the the `solid-intlayer` plugins will override the types of `intlayer` functions.
20
47
  */
21
- export declare const solidNodePlugins: Plugins;
48
+ export type IInterpreterPluginState = IInterpreterPluginStateCore & {
49
+ solidNode: true;
50
+ intlayerNode: true;
51
+ markdown: true;
52
+ };
53
+ export type DeepTransformContent<T> = DeepTransformContentCore<T, IInterpreterPluginState>;
22
54
  /**
23
- * Basic Intlayer node plugins for content handling
24
- * These handle the core content transformation logic
55
+ * Default enabled state for the plugins. Those are necessary for the rendering on client side.
25
56
  */
26
- export declare const intlayerNodePlugins: Plugins;
27
- /**
28
- * Markdown plugin for handling markdown content in Solid
29
- * This can be extended to integrate with Solid markdown processors
30
- */
31
- export declare const markdownPlugin: Plugins;
57
+ export declare const interpreterPluginsEnabledState: IInterpreterPluginState;
32
58
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/plugins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACxC,sDAAsD;IACtD,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAClD;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3C,GAAG,uBAAuB,CAAC,CAAC,CAAC,GAC9B,CAAC,CAAC;AAEN;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAW9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAUjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,OAO5B,CAAC"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/plugins.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAER,KAAK,oBAAoB,IAAI,wBAAwB,EACrD,KAAK,uBAAuB,IAAI,2BAA2B,EAE3D,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMvE;;oDAEoD;AAEpD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,GACvD,YAAY,CAAC,CAAC,CAAC,GACf,KAAK,CAAC;AAEV,wFAAwF;AACxF,eAAO,MAAM,mBAAmB,EAAE,OAwBjC,CAAC;AAEF;;oDAEoD;AAEpD,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS;IACvC,KAAK,EAAE,GAAG,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,GACG,GAAG,CAAC,OAAO,GACX,KAAK,CAAC;AAEV,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,EAAE,OAqB9B,CAAC;AAEF;;GAEG;AAEH,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAChD,YAAY,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC,GAChE,KAAK,CAAC;AAEV,8FAA8F;AAC9F,eAAO,MAAM,oBAAoB,EAAE,OAuDlC,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS;IACtC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;CACpB,GACG,YAAY,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE;IAAE,QAAQ,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,GAC5E,KAAK,CAAC;AAEV,eAAO,MAAM,cAAc,EAAE,OAqB5B,CAAC;AACF;;oDAEoD;AAEpD,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACxC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC5B,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAClC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,GAAG;IAClE,SAAS,EAAE,IAAI,CAAC;IAChB,YAAY,EAAE,IAAI,CAAC;IACnB,QAAQ,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,wBAAwB,CAC5D,CAAC,EACD,uBAAuB,CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,uBAS5C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js';
2
+ export declare const renderSolidElement: (element: JSX.Element) => JSX.Element;
3
+ //# sourceMappingURL=renderSolidElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderSolidElement.d.ts","sourceRoot":"","sources":["../../../src/solidElement/renderSolidElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAIpC,eAAO,MAAM,kBAAkB,GAAI,SAAS,GAAG,CAAC,OAAO,gBAwCtD,CAAC"}