preact-intlayer 6.1.6 → 7.0.0-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/IntlayerNode.cjs +15 -45
- package/dist/cjs/IntlayerNode.cjs.map +1 -1
- package/dist/cjs/UI/ContentSelector.cjs +98 -130
- package/dist/cjs/UI/ContentSelector.cjs.map +1 -1
- package/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/cjs/client/IntlayerProvider.cjs +67 -95
- package/dist/cjs/client/IntlayerProvider.cjs.map +1 -1
- package/dist/cjs/client/format/index.cjs +17 -50
- package/dist/cjs/client/format/useCompact.cjs +29 -39
- package/dist/cjs/client/format/useCompact.cjs.map +1 -1
- package/dist/cjs/client/format/useCurrency.cjs +43 -39
- package/dist/cjs/client/format/useCurrency.cjs.map +1 -1
- package/dist/cjs/client/format/useDate.cjs +45 -36
- package/dist/cjs/client/format/useDate.cjs.map +1 -1
- package/dist/cjs/client/format/useList.cjs +40 -39
- package/dist/cjs/client/format/useList.cjs.map +1 -1
- package/dist/cjs/client/format/useNumber.cjs +41 -39
- package/dist/cjs/client/format/useNumber.cjs.map +1 -1
- package/dist/cjs/client/format/usePercentage.cjs +37 -39
- package/dist/cjs/client/format/usePercentage.cjs.map +1 -1
- package/dist/cjs/client/format/useRelativeTime.cjs +37 -39
- package/dist/cjs/client/format/useRelativeTime.cjs.map +1 -1
- package/dist/cjs/client/format/useUnit.cjs +36 -39
- package/dist/cjs/client/format/useUnit.cjs.map +1 -1
- package/dist/cjs/client/index.cjs +29 -69
- package/dist/cjs/client/t.cjs +21 -34
- package/dist/cjs/client/t.cjs.map +1 -1
- package/dist/cjs/client/useContent.cjs +16 -36
- package/dist/cjs/client/useContent.cjs.map +1 -1
- package/dist/cjs/client/useDictionary.cjs +26 -36
- package/dist/cjs/client/useDictionary.cjs.map +1 -1
- package/dist/cjs/client/useDictionaryAsync.cjs +23 -52
- package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
- package/dist/cjs/client/useDictionaryDynamic.cjs +22 -42
- package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
- package/dist/cjs/client/useIntlayer.cjs +26 -36
- package/dist/cjs/client/useIntlayer.cjs.map +1 -1
- package/dist/cjs/client/useLoadDynamic.cjs +21 -50
- package/dist/cjs/client/useLoadDynamic.cjs.map +1 -1
- package/dist/cjs/client/useLocale.cjs +36 -67
- package/dist/cjs/client/useLocale.cjs.map +1 -1
- package/dist/cjs/client/useLocaleBase.cjs +25 -53
- package/dist/cjs/client/useLocaleBase.cjs.map +1 -1
- package/dist/cjs/client/useLocaleStorage.cjs +60 -0
- package/dist/cjs/client/useLocaleStorage.cjs.map +1 -0
- package/dist/cjs/client/useTraduction.cjs +34 -35
- package/dist/cjs/client/useTraduction.cjs.map +1 -1
- package/dist/cjs/editor/CommunicatorContext.cjs +40 -62
- package/dist/cjs/editor/CommunicatorContext.cjs.map +1 -1
- package/dist/cjs/editor/ConfigurationContext.cjs +26 -47
- package/dist/cjs/editor/ConfigurationContext.cjs.map +1 -1
- package/dist/cjs/editor/ContentSelectorWrapper.cjs +58 -94
- package/dist/cjs/editor/ContentSelectorWrapper.cjs.map +1 -1
- package/dist/cjs/editor/DictionariesRecordContext.cjs +47 -73
- package/dist/cjs/editor/DictionariesRecordContext.cjs.map +1 -1
- package/dist/cjs/editor/EditedContentContext.cjs +160 -211
- package/dist/cjs/editor/EditedContentContext.cjs.map +1 -1
- package/dist/cjs/editor/EditorEnabledContext.cjs +34 -59
- package/dist/cjs/editor/EditorEnabledContext.cjs.map +1 -1
- package/dist/cjs/editor/EditorProvider.cjs +62 -66
- package/dist/cjs/editor/EditorProvider.cjs.map +1 -1
- package/dist/cjs/editor/FocusDictionaryContext.cjs +51 -75
- package/dist/cjs/editor/FocusDictionaryContext.cjs.map +1 -1
- package/dist/cjs/editor/IntlayerEditorProvider.cjs +45 -94
- package/dist/cjs/editor/IntlayerEditorProvider.cjs.map +1 -1
- package/dist/cjs/editor/index.cjs +3 -23
- package/dist/cjs/editor/useCrossFrameMessageListener.cjs +73 -50
- package/dist/cjs/editor/useCrossFrameMessageListener.cjs.map +1 -1
- package/dist/cjs/editor/useCrossFrameState.cjs +106 -73
- package/dist/cjs/editor/useCrossFrameState.cjs.map +1 -1
- package/dist/cjs/editor/useCrossURLPathState.cjs +67 -66
- package/dist/cjs/editor/useCrossURLPathState.cjs.map +1 -1
- package/dist/cjs/editor/useEditedContentRenderer.cjs +27 -59
- package/dist/cjs/editor/useEditedContentRenderer.cjs.map +1 -1
- package/dist/cjs/editor/useIframeClickInterceptor.cjs +24 -47
- package/dist/cjs/editor/useIframeClickInterceptor.cjs.map +1 -1
- package/dist/cjs/getDictionary.cjs +15 -40
- package/dist/cjs/getDictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayer.cjs +15 -36
- package/dist/cjs/getIntlayer.cjs.map +1 -1
- package/dist/cjs/index.cjs +30 -62
- package/dist/cjs/markdown/MarkdownProvider.cjs +19 -39
- package/dist/cjs/markdown/MarkdownProvider.cjs.map +1 -1
- package/dist/cjs/markdown/MarkdownRenderer.cjs +39 -80
- package/dist/cjs/markdown/MarkdownRenderer.cjs.map +1 -1
- package/dist/cjs/markdown/index.cjs +7 -25
- package/dist/cjs/plugins.cjs +97 -119
- package/dist/cjs/plugins.cjs.map +1 -1
- package/dist/cjs/preactElement/renderPreactElement.cjs +34 -59
- package/dist/cjs/preactElement/renderPreactElement.cjs.map +1 -1
- package/dist/esm/IntlayerNode.mjs +13 -25
- package/dist/esm/IntlayerNode.mjs.map +1 -1
- package/dist/esm/UI/ContentSelector.mjs +94 -105
- package/dist/esm/UI/ContentSelector.mjs.map +1 -1
- package/dist/esm/client/IntlayerProvider.mjs +51 -54
- package/dist/esm/client/IntlayerProvider.mjs.map +1 -1
- package/dist/esm/client/format/index.mjs +2 -11
- package/dist/esm/client/format/useCompact.mjs +24 -13
- package/dist/esm/client/format/useCompact.mjs.map +1 -1
- package/dist/esm/client/format/useCurrency.mjs +38 -13
- package/dist/esm/client/format/useCurrency.mjs.map +1 -1
- package/dist/esm/client/format/useDate.mjs +40 -10
- package/dist/esm/client/format/useDate.mjs.map +1 -1
- package/dist/esm/client/format/useList.mjs +35 -13
- package/dist/esm/client/format/useList.mjs.map +1 -1
- package/dist/esm/client/format/useNumber.mjs +36 -13
- package/dist/esm/client/format/useNumber.mjs.map +1 -1
- package/dist/esm/client/format/usePercentage.mjs +32 -13
- package/dist/esm/client/format/usePercentage.mjs.map +1 -1
- package/dist/esm/client/format/useRelativeTime.mjs +32 -13
- package/dist/esm/client/format/useRelativeTime.mjs.map +1 -1
- package/dist/esm/client/format/useUnit.mjs +31 -13
- package/dist/esm/client/format/useUnit.mjs.map +1 -1
- package/dist/esm/client/index.mjs +5 -32
- package/dist/esm/client/t.mjs +16 -8
- package/dist/esm/client/t.mjs.map +1 -1
- package/dist/esm/client/useContent.mjs +14 -10
- package/dist/esm/client/useContent.mjs.map +1 -1
- package/dist/esm/client/useDictionary.mjs +23 -11
- package/dist/esm/client/useDictionary.mjs.map +1 -1
- package/dist/esm/client/useDictionaryAsync.mjs +18 -16
- package/dist/esm/client/useDictionaryAsync.mjs.map +1 -1
- package/dist/esm/client/useDictionaryDynamic.mjs +17 -15
- package/dist/esm/client/useDictionaryDynamic.mjs.map +1 -1
- package/dist/esm/client/useIntlayer.mjs +23 -11
- package/dist/esm/client/useIntlayer.mjs.map +1 -1
- package/dist/esm/client/useLoadDynamic.mjs +20 -26
- package/dist/esm/client/useLoadDynamic.mjs.map +1 -1
- package/dist/esm/client/useLocale.mjs +31 -31
- package/dist/esm/client/useLocale.mjs.map +1 -1
- package/dist/esm/client/useLocaleBase.mjs +19 -16
- package/dist/esm/client/useLocaleBase.mjs.map +1 -1
- package/dist/esm/client/useLocaleStorage.mjs +52 -0
- package/dist/esm/client/useLocaleStorage.mjs.map +1 -0
- package/dist/esm/client/useTraduction.mjs +29 -9
- package/dist/esm/client/useTraduction.mjs.map +1 -1
- package/dist/esm/editor/CommunicatorContext.mjs +28 -24
- package/dist/esm/editor/CommunicatorContext.mjs.map +1 -1
- package/dist/esm/editor/ConfigurationContext.mjs +20 -24
- package/dist/esm/editor/ConfigurationContext.mjs.map +1 -1
- package/dist/esm/editor/ContentSelectorWrapper.mjs +50 -70
- package/dist/esm/editor/ContentSelectorWrapper.mjs.map +1 -1
- package/dist/esm/editor/DictionariesRecordContext.mjs +37 -47
- package/dist/esm/editor/DictionariesRecordContext.mjs.map +1 -1
- package/dist/esm/editor/EditedContentContext.mjs +146 -187
- package/dist/esm/editor/EditedContentContext.mjs.map +1 -1
- package/dist/esm/editor/EditorEnabledContext.mjs +23 -33
- package/dist/esm/editor/EditorEnabledContext.mjs.map +1 -1
- package/dist/esm/editor/EditorProvider.mjs +57 -54
- package/dist/esm/editor/EditorProvider.mjs.map +1 -1
- package/dist/esm/editor/FocusDictionaryContext.mjs +42 -49
- package/dist/esm/editor/FocusDictionaryContext.mjs.map +1 -1
- package/dist/esm/editor/IntlayerEditorProvider.mjs +37 -55
- package/dist/esm/editor/IntlayerEditorProvider.mjs.map +1 -1
- package/dist/esm/editor/index.mjs +3 -2
- package/dist/esm/editor/useCrossFrameMessageListener.mjs +68 -24
- package/dist/esm/editor/useCrossFrameMessageListener.mjs.map +1 -1
- package/dist/esm/editor/useCrossFrameState.mjs +102 -47
- package/dist/esm/editor/useCrossFrameState.mjs.map +1 -1
- package/dist/esm/editor/useCrossURLPathState.mjs +60 -40
- package/dist/esm/editor/useCrossURLPathState.mjs.map +1 -1
- package/dist/esm/editor/useEditedContentRenderer.mjs +23 -33
- package/dist/esm/editor/useEditedContentRenderer.mjs.map +1 -1
- package/dist/esm/editor/useIframeClickInterceptor.mjs +18 -20
- package/dist/esm/editor/useIframeClickInterceptor.mjs.map +1 -1
- package/dist/esm/getDictionary.mjs +13 -22
- package/dist/esm/getDictionary.mjs.map +1 -1
- package/dist/esm/getIntlayer.mjs +13 -18
- package/dist/esm/getIntlayer.mjs.map +1 -1
- package/dist/esm/index.mjs +13 -39
- package/dist/esm/markdown/MarkdownProvider.mjs +14 -16
- package/dist/esm/markdown/MarkdownProvider.mjs.map +1 -1
- package/dist/esm/markdown/MarkdownRenderer.mjs +34 -57
- package/dist/esm/markdown/MarkdownRenderer.mjs.map +1 -1
- package/dist/esm/markdown/index.mjs +4 -3
- package/dist/esm/plugins.mjs +86 -92
- package/dist/esm/plugins.mjs.map +1 -1
- package/dist/esm/preactElement/renderPreactElement.mjs +31 -34
- package/dist/esm/preactElement/renderPreactElement.mjs.map +1 -1
- package/dist/types/IntlayerNode.d.ts +19 -12
- package/dist/types/IntlayerNode.d.ts.map +1 -1
- package/dist/types/UI/ContentSelector.d.ts +12 -9
- package/dist/types/UI/ContentSelector.d.ts.map +1 -1
- package/dist/types/client/IntlayerProvider.d.ts +22 -16
- package/dist/types/client/IntlayerProvider.d.ts.map +1 -1
- package/dist/types/client/format/index.d.ts +9 -9
- package/dist/types/client/format/useCompact.d.ts +8 -2
- package/dist/types/client/format/useCompact.d.ts.map +1 -1
- package/dist/types/client/format/useCurrency.d.ts +8 -2
- package/dist/types/client/format/useCurrency.d.ts.map +1 -1
- package/dist/types/client/format/useDate.d.ts +7 -2
- package/dist/types/client/format/useDate.d.ts.map +1 -1
- package/dist/types/client/format/useList.d.ts +8 -2
- package/dist/types/client/format/useList.d.ts.map +1 -1
- package/dist/types/client/format/useNumber.d.ts +8 -2
- package/dist/types/client/format/useNumber.d.ts.map +1 -1
- package/dist/types/client/format/usePercentage.d.ts +8 -2
- package/dist/types/client/format/usePercentage.d.ts.map +1 -1
- package/dist/types/client/format/useRelativeTime.d.ts +9 -3
- package/dist/types/client/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/client/format/useUnit.d.ts +8 -2
- package/dist/types/client/format/useUnit.d.ts.map +1 -1
- package/dist/types/client/index.d.ts +11 -12
- package/dist/types/client/t.d.ts +7 -3
- package/dist/types/client/t.d.ts.map +1 -1
- package/dist/types/client/useContent.d.ts +10 -5
- package/dist/types/client/useContent.d.ts.map +1 -1
- package/dist/types/client/useDictionary.d.ts +9 -3
- package/dist/types/client/useDictionary.d.ts.map +1 -1
- package/dist/types/client/useDictionaryAsync.d.ts +7 -3
- package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
- package/dist/types/client/useDictionaryDynamic.d.ts +9 -3
- package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
- package/dist/types/client/useIntlayer.d.ts +8 -5
- package/dist/types/client/useIntlayer.d.ts.map +1 -1
- package/dist/types/client/useLoadDynamic.d.ts +4 -1
- package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
- package/dist/types/client/useLocale.d.ts +16 -8
- package/dist/types/client/useLocale.d.ts.map +1 -1
- package/dist/types/client/useLocaleBase.d.ts +10 -5
- package/dist/types/client/useLocaleBase.d.ts.map +1 -1
- package/dist/types/client/useLocaleStorage.d.ts +45 -0
- package/dist/types/client/useLocaleStorage.d.ts.map +1 -0
- package/dist/types/client/useTraduction.d.ts +7 -2
- package/dist/types/client/useTraduction.d.ts.map +1 -1
- package/dist/types/editor/CommunicatorContext.d.ts +15 -11
- package/dist/types/editor/CommunicatorContext.d.ts.map +1 -1
- package/dist/types/editor/ConfigurationContext.d.ts +12 -7
- package/dist/types/editor/ConfigurationContext.d.ts.map +1 -1
- package/dist/types/editor/ContentSelectorWrapper.d.ts +8 -4
- package/dist/types/editor/ContentSelectorWrapper.d.ts.map +1 -1
- package/dist/types/editor/DictionariesRecordContext.d.ts +15 -12
- package/dist/types/editor/DictionariesRecordContext.d.ts.map +1 -1
- package/dist/types/editor/EditedContentContext.d.ts +32 -29
- package/dist/types/editor/EditedContentContext.d.ts.map +1 -1
- package/dist/types/editor/EditorEnabledContext.d.ts +14 -9
- package/dist/types/editor/EditorEnabledContext.d.ts.map +1 -1
- package/dist/types/editor/EditorProvider.d.ts +9 -5
- package/dist/types/editor/EditorProvider.d.ts.map +1 -1
- package/dist/types/editor/FocusDictionaryContext.d.ts +18 -15
- package/dist/types/editor/FocusDictionaryContext.d.ts.map +1 -1
- package/dist/types/editor/IntlayerEditorProvider.d.ts +7 -3
- package/dist/types/editor/IntlayerEditorProvider.d.ts.map +1 -1
- package/dist/types/editor/index.d.ts +2 -2
- package/dist/types/editor/useCrossFrameMessageListener.d.ts +7 -2
- package/dist/types/editor/useCrossFrameMessageListener.d.ts.map +1 -1
- package/dist/types/editor/useCrossFrameState.d.ts +11 -7
- package/dist/types/editor/useCrossFrameState.d.ts.map +1 -1
- package/dist/types/editor/useCrossURLPathState.d.ts +8 -3
- package/dist/types/editor/useCrossURLPathState.d.ts.map +1 -1
- package/dist/types/editor/useEditedContentRenderer.d.ts +16 -10
- package/dist/types/editor/useEditedContentRenderer.d.ts.map +1 -1
- package/dist/types/editor/useIframeClickInterceptor.d.ts +5 -2
- package/dist/types/editor/useIframeClickInterceptor.d.ts.map +1 -1
- package/dist/types/getDictionary.d.ts +8 -4
- package/dist/types/getDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayer.d.ts +8 -4
- package/dist/types/getIntlayer.d.ts.map +1 -1
- package/dist/types/index.d.ts +18 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownProvider.d.ts +8 -5
- package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownRenderer.d.ts +13 -11
- package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/dist/types/markdown/index.d.ts +3 -3
- package/dist/types/plugins.d.ts +33 -27
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/preactElement/renderPreactElement.d.ts +7 -3
- package/dist/types/preactElement/renderPreactElement.d.ts.map +1 -1
- package/package.json +40 -46
- package/LICENSE +0 -202
- package/dist/cjs/client/format/index.cjs.map +0 -1
- package/dist/cjs/client/getBrowserLocale.cjs +0 -173
- package/dist/cjs/client/getBrowserLocale.cjs.map +0 -1
- package/dist/cjs/client/index.cjs.map +0 -1
- package/dist/cjs/client/useLocaleCookie.cjs +0 -60
- package/dist/cjs/client/useLocaleCookie.cjs.map +0 -1
- package/dist/cjs/editor/index.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/markdown/index.cjs.map +0 -1
- package/dist/esm/client/format/index.mjs.map +0 -1
- package/dist/esm/client/getBrowserLocale.mjs +0 -138
- package/dist/esm/client/getBrowserLocale.mjs.map +0 -1
- package/dist/esm/client/index.mjs.map +0 -1
- package/dist/esm/client/useLocaleCookie.mjs +0 -24
- package/dist/esm/client/useLocaleCookie.mjs.map +0 -1
- package/dist/esm/editor/index.mjs.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/markdown/index.mjs.map +0 -1
- package/dist/types/client/format/index.d.ts.map +0 -1
- package/dist/types/client/getBrowserLocale.d.ts +0 -25
- package/dist/types/client/getBrowserLocale.d.ts.map +0 -1
- package/dist/types/client/index.d.ts.map +0 -1
- package/dist/types/client/useLocaleCookie.d.ts +0 -17
- package/dist/types/client/useLocaleCookie.d.ts.map +0 -1
- package/dist/types/editor/index.d.ts.map +0 -1
- package/dist/types/markdown/index.d.ts.map +0 -1
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ComponentChildren, FunctionComponent } from "preact";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/CommunicatorContext.d.ts
|
|
4
|
+
type UseCrossPlatformStateProps = {
|
|
5
|
+
postMessage: typeof window.postMessage;
|
|
6
|
+
allowedOrigins?: string[];
|
|
7
|
+
senderId: string;
|
|
6
8
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type CommunicatorProviderProps = {
|
|
10
|
+
children?: ComponentChildren;
|
|
11
|
+
postMessage: typeof window.postMessage;
|
|
12
|
+
allowedOrigins?: string[];
|
|
11
13
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
declare const CommunicatorProvider: FunctionComponent<CommunicatorProviderProps>;
|
|
15
|
+
declare const useCommunicator: () => UseCrossPlatformStateProps;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { CommunicatorProvider, CommunicatorProviderProps, UseCrossPlatformStateProps, useCommunicator };
|
|
14
18
|
//# sourceMappingURL=CommunicatorContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunicatorContext.d.ts","
|
|
1
|
+
{"version":3,"file":"CommunicatorContext.d.ts","names":[],"sources":["../../../src/editor/CommunicatorContext.tsx"],"sourcesContent":[],"mappings":";;;KAYY,0BAAA;sBACU,MAAA,CAAO;EADjB,cAAA,CAAA,EAAA,MAAA,EAAA;EAkBA,QAAA,EAAA,MAAA;AAMZ,CAAA;AAkBa,KAxBD,yBAAA,GAwBgB;aAvBf;sBACS,MAAA,CAAO;;;cAIhB,sBAAsB,kBACjC;cAiBW,uBAAe"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { FC, PropsWithChildren } from "preact/compat";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
3
|
+
import * as preact_hooks0 from "preact/hooks";
|
|
4
|
+
|
|
5
|
+
//#region src/editor/ConfigurationContext.d.ts
|
|
6
|
+
declare const useConfigurationState: () => [IntlayerConfig, preact_hooks0.Dispatch<preact_hooks0.StateUpdater<IntlayerConfig>>, () => void];
|
|
7
|
+
type ConfigurationProviderProps = {
|
|
8
|
+
configuration?: IntlayerConfig;
|
|
6
9
|
};
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
declare const ConfigurationProvider: FC<PropsWithChildren<ConfigurationProviderProps>>;
|
|
11
|
+
declare const useConfiguration: () => IntlayerConfig;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ConfigurationProvider, ConfigurationProviderProps, useConfiguration, useConfigurationState };
|
|
9
14
|
//# sourceMappingURL=ConfigurationContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationContext.d.ts","
|
|
1
|
+
{"version":3,"file":"ConfigurationContext.d.ts","names":[],"sources":["../../../src/editor/ConfigurationContext.tsx"],"sourcesContent":[],"mappings":";;;;;cAgBa,8BAAqB,gBAAA,aAAA,CAAA,SAAA,aAAA,CAAA,aAAA;KAUtB,0BAAA;kBACM;AAXlB,CAAA;AAAkC,cAcrB,qBAdqB,EAcE,EAdF,CAehC,iBAfgC,CAed,0BAfc,CAAA,CAAA;AAAA,cAsBrB,gBAtBqB,EAAA,GAAA,GAsBL,cAtBK"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeProps } from "@intlayer/core";
|
|
2
|
+
import { FC, HTMLAttributes } from "preact/compat";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/ContentSelectorWrapper.d.ts
|
|
5
|
+
type ContentSelectorWrapperProps = NodeProps & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
6
|
+
declare const ContentSelectorRenderer: FC<ContentSelectorWrapperProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ContentSelectorRenderer, ContentSelectorWrapperProps };
|
|
5
9
|
//# sourceMappingURL=ContentSelectorWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentSelectorWrapper.d.ts","
|
|
1
|
+
{"version":3,"file":"ContentSelectorWrapper.d.ts","names":[],"sources":["../../../src/editor/ContentSelectorWrapper.tsx"],"sourcesContent":[],"mappings":";;;;KAgBY,2BAAA,GAA8B,YACxC,KAAK,eAAe;cA+DT,yBAAyB,GAAG"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Dispatch, FC, PropsWithChildren, SetStateAction } from "preact/compat";
|
|
2
|
+
import { Dictionary } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/DictionariesRecordContext.d.ts
|
|
5
|
+
type DictionaryContent = Record<Dictionary['key'], Dictionary>;
|
|
4
6
|
type DictionariesRecordActionsContextType = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
setLocaleDictionaries: Dispatch<SetStateAction<DictionaryContent>>;
|
|
8
|
+
setLocaleDictionary: (dictionary: Dictionary) => void;
|
|
7
9
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
declare const DictionariesRecordProvider: FC<PropsWithChildren>;
|
|
11
|
+
declare const useDictionariesRecordActions: () => DictionariesRecordActionsContextType;
|
|
12
|
+
declare const useDictionariesRecord: () => {
|
|
13
|
+
setLocaleDictionaries: Dispatch<SetStateAction<DictionaryContent>>;
|
|
14
|
+
setLocaleDictionary: (dictionary: Dictionary) => void;
|
|
15
|
+
localeDictionaries: DictionaryContent;
|
|
14
16
|
};
|
|
15
|
-
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DictionariesRecordProvider, DictionaryContent, useDictionariesRecord, useDictionariesRecordActions };
|
|
16
19
|
//# sourceMappingURL=DictionariesRecordContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionariesRecordContext.d.ts","
|
|
1
|
+
{"version":3,"file":"DictionariesRecordContext.d.ts","names":[],"sources":["../../../src/editor/DictionariesRecordContext.tsx"],"sourcesContent":[],"mappings":";;;;KAeY,iBAAA,GAAoB,OAAO,mBAAmB;KAKrD,oCAAA;EALO,qBAAiB,EAMJ,QANI,CAMK,cANL,CAMoB,iBANpB,CAAA,CAAA;EAAU,mBAAA,EAAA,CAAA,UAAA,EAOH,UAPG,EAAA,GAAA,IAAA;CAAmB;AAA1B,cAiBnB,0BAjBmB,EAiBS,EAjBT,CAiBY,iBAjBZ,CAAA;AAAM,cAuDzB,4BAvDyB,EAAA,GAAA,GAuDG,oCAvDH;AAKjC,cAqDQ,qBArDR,EAAoC,GAAA,GAAA;EACQ,qBAAA,EAAxB,QAAwB,CAAf,cAAe,CAAA,iBAAA,CAAA,CAAA;EAAf,mBAAA,EAAA,CAAA,UAAA,EACE,UADF,EAAA,GAAA,IAAA;EAAT,kBAAA,EAHH,iBAGG;CACW"}
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Dispatch, FC, PropsWithChildren, SetStateAction } from "preact/compat";
|
|
2
|
+
import { ContentNode, Dictionary, KeyPath, LocalDictionaryId } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/EditedContentContext.d.ts
|
|
5
|
+
declare const usePostEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
|
|
6
|
+
declare const useGetEditedContentState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
|
|
5
7
|
type EditedContentActionsContextType = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
setEditedContentState: (editedContent: Record<LocalDictionaryId, Dictionary>) => void;
|
|
9
|
+
setEditedDictionary: Dispatch<SetStateAction<Dictionary>>;
|
|
10
|
+
setEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: Dictionary['content']) => void;
|
|
11
|
+
addEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void;
|
|
12
|
+
renameEditedContent: (dictionaryLocalId: LocalDictionaryId, newKey: KeyPath['key'], keyPath?: KeyPath[]) => void;
|
|
13
|
+
removeEditedContent: (dictionaryLocalId: LocalDictionaryId, keyPath: KeyPath[]) => void;
|
|
14
|
+
restoreEditedContent: (dictionaryLocalId: LocalDictionaryId) => void;
|
|
15
|
+
clearEditedDictionaryContent: (dictionaryLocalId: LocalDictionaryId) => void;
|
|
16
|
+
clearEditedContent: () => void;
|
|
17
|
+
getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary['key'] | string, keyPath: KeyPath[]) => ContentNode | undefined;
|
|
16
18
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
declare const EditedContentProvider: FC<PropsWithChildren>;
|
|
20
|
+
declare const useEditedContentActions: () => EditedContentActionsContextType;
|
|
21
|
+
declare const useEditedContent: () => {
|
|
22
|
+
setEditedContentState: (editedContent: Record<LocalDictionaryId, Dictionary>) => void;
|
|
23
|
+
setEditedDictionary: Dispatch<SetStateAction<Dictionary>>;
|
|
24
|
+
setEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: Dictionary["content"]) => void;
|
|
25
|
+
addEditedContent: (dictionaryLocalId: LocalDictionaryId, newValue: ContentNode<any>, keyPath?: KeyPath[], overwrite?: boolean) => void;
|
|
26
|
+
renameEditedContent: (dictionaryLocalId: LocalDictionaryId, newKey: KeyPath["key"], keyPath?: KeyPath[]) => void;
|
|
27
|
+
removeEditedContent: (dictionaryLocalId: LocalDictionaryId, keyPath: KeyPath[]) => void;
|
|
28
|
+
restoreEditedContent: (dictionaryLocalId: LocalDictionaryId) => void;
|
|
29
|
+
clearEditedDictionaryContent: (dictionaryLocalId: LocalDictionaryId) => void;
|
|
30
|
+
clearEditedContent: () => void;
|
|
31
|
+
getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary["key"] | string, keyPath: KeyPath[]) => ContentNode | undefined;
|
|
32
|
+
editedContent: Record<LocalDictionaryId, Dictionary> | undefined;
|
|
31
33
|
};
|
|
32
|
-
|
|
34
|
+
//#endregion
|
|
35
|
+
export { EditedContentProvider, useEditedContent, useEditedContentActions, useGetEditedContentState, usePostEditedContentState };
|
|
33
36
|
//# sourceMappingURL=EditedContentContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditedContentContext.d.ts","
|
|
1
|
+
{"version":3,"file":"EditedContentContext.d.ts","names":[],"sources":["../../../src/editor/EditedContentContext.tsx"],"sourcesContent":[],"mappings":";;;;cAqCa,yDACe,uBAAU;cAOzB,wDACe,uBAAU;AATtC,KAgBK,+BAAA,GAVF;EAEU,qBAAA,EAAA,CAAA,aAMV,EAIgB,MATmB,CASZ,iBATY,EASO,UATP,CAAA,EAAA,GAAA,IAAA;EAOjC,mBAAA,EAIkB,QAJlB,CAI2B,cAJI,CAIW,UAJX,CAAA,CAAA;EAEV,gBAAA,EAAA,CAAA,iBAAA,EAIH,iBAJG,EAAA,QAAA,EAKZ,UALY,CAAA,SAAA,CAAA,EAAA,GAAA,IAAA;EAAmB,gBAAA,EAAA,CAAA,iBAAA,EAQtB,iBARsB,EAAA,QAAA,EAS/B,WAT+B,CAAA,GAAA,CAAA,EAAA,OAAA,CAAA,EAU/B,OAV+B,EAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAA1B,mBAAA,EAAA,CAAA,iBAAA,EAcI,iBAdJ,EAAA,MAAA,EAeP,OAfO,CAAA,KAAA,CAAA,EAAA,OAAA,CAAA,EAgBL,OAhBK,EAAA,EAAA,GAAA,IAAA;EAE4B,mBAAA,EAAA,CAAA,iBAAA,EAiBxB,iBAjBwB,EAAA,OAAA,EAkBlC,OAlBkC,EAAA,EAAA,GAAA,IAAA;EAAf,oBAAA,EAAA,CAAA,iBAAA,EAoBY,iBApBZ,EAAA,GAAA,IAAA;EAAT,4BAAA,EAAA,CAAA,iBAAA,EAqB6B,iBArB7B,EAAA,GAAA,IAAA;EAEA,kBAAA,EAAA,GAAA,GAAA,IAAA;EACT,qBAAA,EAAA,CAAA,sBAAA,EAqBc,iBArBd,GAqBkC,UArBlC,CAAA,KAAA,CAAA,GAAA,MAAA,EAAA,OAAA,EAsBD,OAtBC,EAAA,EAAA,GAuBP,WAvBO,GAAA,SAAA;CAGS;AACT,cA+BD,qBA/BC,EA+BsB,EA/BtB,CA+ByB,iBA/BzB,CAAA;AACA,cA6QD,uBA7QC,EAAA,GAAA,GA6QsB,+BA7QtB;AAIS,cA4QV,gBA5QU,EAAA,GAAA,GAAA;EACX,qBAAA,EAAA,CAAA,aAAA,EAfO,MAeP,CAfc,iBAed,EAfiC,UAejC,CAAA,EAAA,GAAA,IAAA;EACE,mBAAA,EAdS,QAcT,CAdkB,cAclB,CAdiC,UAcjC,CAAA,CAAA;EAGS,gBAAA,EAAA,CAAA,iBAAA,EAfA,iBAeA,EAAA,QAAA,EAdT,UAcS,CAAA,SAAA,CAAA,EAAA,GAAA,IAAA;EACV,gBAAA,EAAA,CAAA,iBAAA,EAZU,iBAYV,EAAA,QAAA,EAXC,WAWD,CAAA,GAAA,CAAA,EAAA,OAAA,CAAA,EAVC,OAUD,EAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAE+B,mBAAA,EAAA,CAAA,iBAAA,EARrB,iBAQqB,EAAA,MAAA,EAPhC,OAOgC,CAAA,KAAA,CAAA,EAAA,OAAA,CAAA,EAN9B,OAM8B,EAAA,EAAA,GAAA,IAAA;EACQ,mBAAA,EAAA,CAAA,iBAAA,EAJ7B,iBAI6B,EAAA,OAAA,EAHvC,OAGuC,EAAA,EAAA,GAAA,IAAA;EAGxB,oBAAA,EAAA,CAAA,iBAAA,EAJgB,iBAIhB,EAAA,GAAA,IAAA;EAAoB,4BAAA,EAAA,CAAA,iBAAA,EAHI,iBAGJ,EAAA,GAAA,IAAA;EACnC,kBAAA,EAAA,GAAA,GAAA,IAAA;EACN,qBAAA,EAAA,CAAA,sBAAA,EAFqB,iBAErB,GAFyC,UAEzC,CAAA,KAAA,CAAA,GAAA,MAAA,EAAA,OAAA,EADM,OACN,EAAA,EAAA,GAAA,WAAA,GAAA,SAAA;EAAW,aAAA,EArDD,MAqDC,CArDM,iBAqDN,EArDyB,UAqDzB,CAAA,GAAA,SAAA;AAYlB,CAAA"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { CrossFrameStateOptions } from "./useCrossFrameState.js";
|
|
2
|
+
import { FC, PropsWithChildren } from "preact/compat";
|
|
3
|
+
import * as preact_hooks1 from "preact/hooks";
|
|
4
|
+
|
|
5
|
+
//#region src/editor/EditorEnabledContext.d.ts
|
|
6
|
+
type EditorEnabledStateProps = {
|
|
7
|
+
enabled: boolean;
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean, preact_hooks1.Dispatch<preact_hooks1.StateUpdater<boolean>>, () => void];
|
|
10
|
+
declare const usePostEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
|
|
11
|
+
declare const useGetEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
|
|
12
|
+
declare const EditorEnabledProvider: FC<PropsWithChildren>;
|
|
13
|
+
declare const useEditorEnabled: () => EditorEnabledStateProps;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { EditorEnabledProvider, EditorEnabledStateProps, useEditorEnabled, useEditorEnabledState, useGetEditorEnabledState, usePostEditorEnabledState };
|
|
11
16
|
//# sourceMappingURL=EditorEnabledContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorEnabledContext.d.ts","
|
|
1
|
+
{"version":3,"file":"EditorEnabledContext.d.ts","names":[],"sources":["../../../src/editor/EditorEnabledContext.tsx"],"sourcesContent":[],"mappings":";;;;;KAeY,uBAAA;;;AAAA,cAQC,qBARsB,EAAA,CAAA,OAAA,CAAA,EAQa,sBARb,EAAA,GAAA,CAAA,OAAA,EAQmC,aAAA,CAAA,QARnC,CAQmC,aAAA,CAAA,YARnC,CAAA,OAAA,CAAA,CAAA,EAAA,GAAA,GAAA,IAAA,CAAA;AAQtB,cAGA,yBAF2D,EAAA,CAAA,CAAA,CAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,IAAA,EAG5C,CAH4C,EAAA,GAAA,IAAA,EAAA,GAAA,CAAA,IAAA,CAAA,EAGlC,CAHkC,EAAA,GAAA,IAAA;AADxB,cAWnC,wBAXmC,EAAA,CAAA,CAAA,CAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,IAAA,EAYpB,CAZoB,EAAA,GAAA,IAAA,EAAA,GAAA,CAAA,IAAA,CAAA,EAYV,CAZU,EAAA,GAAA,IAAA;AAAsB,cAmBzD,qBAnByD,EAmBlC,EAnBkC,CAmB/B,iBAnB+B,CAAA;AAAA,cAgCzD,gBAhCyD,EAAA,GAAA,GAgCzC,uBAhCyC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CommunicatorProviderProps } from "./CommunicatorContext.js";
|
|
2
|
+
import { ConfigurationProviderProps } from "./ConfigurationContext.js";
|
|
3
|
+
import { FC, PropsWithChildren } from "preact/compat";
|
|
4
|
+
|
|
5
|
+
//#region src/editor/EditorProvider.d.ts
|
|
6
|
+
type EditorProviderProps = CommunicatorProviderProps & ConfigurationProviderProps;
|
|
7
|
+
declare const EditorProvider: FC<PropsWithChildren<EditorProviderProps>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { EditorProvider, EditorProviderProps };
|
|
6
10
|
//# sourceMappingURL=EditorProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorProvider.d.ts","
|
|
1
|
+
{"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"sourcesContent":[],"mappings":";;;;;KA2FY,mBAAA,GAAsB,4BAChC;cAEW,gBAAgB,GAAG,kBAAkB"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { Dispatch, FC, PropsWithChildren, SetStateAction } from "preact/compat";
|
|
2
|
+
import { KeyPath } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/FocusDictionaryContext.d.ts
|
|
3
5
|
type DictionaryPath = string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type FileContent = {
|
|
7
|
+
dictionaryKey: string;
|
|
8
|
+
keyPath?: KeyPath[];
|
|
9
|
+
dictionaryPath?: DictionaryPath;
|
|
8
10
|
};
|
|
9
11
|
type FocusDictionaryActions = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
setFocusedContent: Dispatch<SetStateAction<FileContent | null>>;
|
|
13
|
+
setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
|
|
12
14
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
declare const FocusDictionaryProvider: FC<PropsWithChildren>;
|
|
16
|
+
declare const useFocusDictionaryActions: () => FocusDictionaryActions;
|
|
17
|
+
declare const useFocusDictionary: () => {
|
|
18
|
+
setFocusedContent: Dispatch<SetStateAction<FileContent | null>>;
|
|
19
|
+
setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
|
|
20
|
+
focusedContent: FileContent | null;
|
|
19
21
|
};
|
|
20
|
-
|
|
22
|
+
//#endregion
|
|
23
|
+
export { FileContent, FocusDictionaryProvider, useFocusDictionary, useFocusDictionaryActions };
|
|
21
24
|
//# sourceMappingURL=FocusDictionaryContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusDictionaryContext.d.ts","
|
|
1
|
+
{"version":3,"file":"FocusDictionaryContext.d.ts","names":[],"sources":["../../../src/editor/FocusDictionaryContext.tsx"],"sourcesContent":[],"mappings":";;;;KAcK,cAAA;KAEO,WAAA;EAFP,aAAA,EAAA,MAAc;EAEP,OAAA,CAAA,EAEA,OAFW,EAAA;EAUlB,cAAA,CAAA,EAPc,cAOQ;CACkB;KADxC,sBAAA,GACyB;EAAT,iBAAA,EAAA,QAAA,CAAS,cAAT,CAAwB,WAAxB,GAAA,IAAA,CAAA,CAAA;EACiB,wBAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,EAAA,GAAA,IAAA;CAAO;AAUhC,cAAA,uBAA4B,EAAH,EAAG,CAAA,iBAAD,CAAA;AA6B3B,cAAA,yBAAyB,EAAA,GAAA,GAAA,sBAQrC;AAEY,cAAA,kBAWZ,EAAA,GAAA,GAAA;EA7D4C,iBAAA,EAAxB,QAAwB,CAAf,cAAe,CAAA,WAAA,GAAA,IAAA,CAAA,CAAA;EAAf,wBAAA,EAAA,CAAA,OAAA,EACQ,OADR,EAAA,EAAA,GAAA,IAAA;EAAT,cAAA,EAJH,WAIG,GAAA,IAAA;CACiB"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ComponentChildren, FunctionComponent } from "preact";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/IntlayerEditorProvider.d.ts
|
|
4
|
+
declare const IntlayerEditorProvider: FunctionComponent<{
|
|
5
|
+
children?: ComponentChildren;
|
|
4
6
|
}>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { IntlayerEditorProvider };
|
|
5
9
|
//# sourceMappingURL=IntlayerEditorProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerEditorProvider.d.ts","
|
|
1
|
+
{"version":3,"file":"IntlayerEditorProvider.d.ts","names":[],"sources":["../../../src/editor/IntlayerEditorProvider.tsx"],"sourcesContent":[],"mappings":";;;cA+Ba,wBAAwB;aACxB;AADb,CAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ContentSelectorRenderer, ContentSelectorWrapperProps } from "./ContentSelectorWrapper.js";
|
|
2
|
+
export { ContentSelectorRenderer, ContentSelectorWrapperProps };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MessageKey } from "@intlayer/editor";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/useCrossFrameMessageListener.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* useCrossFrameMessageListener
|
|
4
7
|
*
|
|
@@ -15,5 +18,7 @@ import { type MessageKey } from '@intlayer/editor';
|
|
|
15
18
|
* @returns {{ postMessage: (data: S) => void }} An object containing a `postMessage` function
|
|
16
19
|
* that allows broadcasting messages with the specified key and data.
|
|
17
20
|
*/
|
|
18
|
-
|
|
21
|
+
declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void, revalidator?: any) => (data?: S) => void;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useCrossFrameMessageListener };
|
|
19
24
|
//# sourceMappingURL=useCrossFrameMessageListener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossFrameMessageListener.d.ts","
|
|
1
|
+
{"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameMessageListener.tsx"],"sourcesContent":[],"mappings":";;;;;;AAsBA;;;;;;;;;;;;;;cAAa,0CACH,kBAAkB,uBAAuB,4CACvB,0CAqDQ"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { SetStateAction } from "preact/compat";
|
|
2
|
+
import { Dispatch as Dispatch$1 } from "preact/hooks";
|
|
3
|
+
import { MessageKey } from "@intlayer/editor";
|
|
4
|
+
|
|
5
|
+
//#region src/editor/useCrossFrameState.d.ts
|
|
6
|
+
type CrossFrameStateOptions = {
|
|
7
|
+
emit?: boolean;
|
|
8
|
+
receive?: boolean;
|
|
7
9
|
};
|
|
8
10
|
/**
|
|
9
11
|
* Configuration options for `useCrossFrameState`.
|
|
@@ -26,5 +28,7 @@ export type CrossFrameStateOptions = {
|
|
|
26
28
|
*
|
|
27
29
|
* @returns {[S, StateUpdater<S>, typeof postState]} An array containing the current state and a setter function, and a function to manually post the state.
|
|
28
30
|
*/
|
|
29
|
-
|
|
31
|
+
declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [S, Dispatch$1<SetStateAction<S>>, () => void];
|
|
32
|
+
//#endregion
|
|
33
|
+
export { CrossFrameStateOptions, useCrossFrameState };
|
|
30
34
|
//# sourceMappingURL=useCrossFrameState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossFrameState.d.ts","
|
|
1
|
+
{"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameState.tsx"],"sourcesContent":[],"mappings":";;;;;KAaY,sBAAA;;EAAA,OAAA,CAAA,EAAA,OAAA;AAmCZ,CAAA;;;;;;;;;;;;;;;;;;;;;;cAAa,gCACH,6BACO,WAAW,cAChB,4BACR,GAAG,WAAS,eAAe"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CrossFrameStateOptions } from "./useCrossFrameState.js";
|
|
2
|
+
import * as preact_hooks3 from "preact/hooks";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/useCrossURLPathState.d.ts
|
|
5
|
+
declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [string, preact_hooks3.Dispatch<preact_hooks3.StateUpdater<string>>, () => void];
|
|
6
|
+
declare const useCrossURLPathSetter: (initialState?: string) => [string, preact_hooks3.Dispatch<preact_hooks3.StateUpdater<string>>, () => void];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { useCrossURLPathSetter, useCrossURLPathState };
|
|
4
9
|
//# sourceMappingURL=useCrossURLPathState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossURLPathState.d.ts","
|
|
1
|
+
{"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../../src/editor/useCrossURLPathState.tsx"],"sourcesContent":[],"mappings":";;;;cASa,wDAED,oCAAsB,aAAA,CAAA,SAAA,aAAA,CAAA;cAGrB,2DAA8C,aAAA,CAAA,SA8D1D,aAAA,CA9D0D"}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { FC } from "preact/compat";
|
|
2
|
+
import { Dictionary, KeyPath, Locale } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/useEditedContentRenderer.d.ts
|
|
4
5
|
type EditedContentRendererProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
dictionaryKey: Dictionary['key'];
|
|
7
|
+
keyPath: KeyPath[];
|
|
8
|
+
children: string;
|
|
9
|
+
locale?: Locale;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
declare const useEditedContentRenderer: ({
|
|
12
|
+
dictionaryKey,
|
|
13
|
+
keyPath,
|
|
14
|
+
children
|
|
15
|
+
}: EditedContentRendererProps) => string;
|
|
16
|
+
declare const EditedContentRenderer: FC<EditedContentRendererProps>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EditedContentRenderer, useEditedContentRenderer };
|
|
13
19
|
//# sourceMappingURL=useEditedContentRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditedContentRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"useEditedContentRenderer.d.ts","names":[],"sources":["../../../src/editor/useEditedContentRenderer.tsx"],"sourcesContent":[],"mappings":";;;;KAOK,0BAAA;iBACY;EADZ,OAAA,EAEM,OAFN,EAAA;EACY,QAAA,EAAA,MAAA;EACN,MAAA,CAAA,EAEA,MAFA;CAEA;AAAM,cAGJ,wBAHI,EAAA,CAAA;EAAA,aAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAOd,0BAPc,EAAA,GAAA,MAAA;AAGJ,cAqBA,qBAFZ,EAEmC,EAFnC,CAEsC,0BAFtC,CAAA"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/editor/useIframeClickInterceptor.d.ts
|
|
2
|
+
declare const useIframeClickInterceptor: () => void;
|
|
3
|
+
declare const useIframeClickMerger: () => (data?: MessageEvent<any>) => void;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { useIframeClickInterceptor, useIframeClickMerger };
|
|
3
6
|
//# sourceMappingURL=useIframeClickInterceptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIframeClickInterceptor.d.ts","
|
|
1
|
+
{"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.tsx"],"sourcesContent":[],"mappings":";cAMa;AAAA,cAgBA,oBAFZ,EAAA,GAAA,GAAA,CAAA,IAAA,CAAA,EAEgC,YAFhC,CAAA,GAAA,CAAA,EAAA,GAAA,IAAA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { DeepTransformContent as DeepTransformContent$1 } from "./plugins.js";
|
|
2
|
+
import { Plugins } from "@intlayer/core";
|
|
3
|
+
import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getDictionary.d.ts
|
|
6
|
+
declare const getDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent$1<T["content"]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { getDictionary };
|
|
5
9
|
//# sourceMappingURL=getDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDictionary.d.ts","
|
|
1
|
+
{"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"sourcesContent":[],"mappings":";;;;;cAgBa,0BACD,sBACA,gBAAgB,6BAEd,YACH,uBACW,cACnB,uBAAqB"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { DeepTransformContent as DeepTransformContent$1 } from "./plugins.js";
|
|
2
|
+
import { Plugins } from "@intlayer/core";
|
|
3
|
+
import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayer.d.ts
|
|
6
|
+
declare const getIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent$1<DictionaryRegistryContent<T>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { getIntlayer };
|
|
5
9
|
//# sourceMappingURL=getIntlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIntlayer.d.ts","
|
|
1
|
+
{"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"sourcesContent":[],"mappings":";;;;;cAca,wBACD,0BACA,gBAAgB,sBAErB,YACI,uBACW,cAUkC,uBACpD,0BAA0B"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IntlayerNode } from "./IntlayerNode.js";
|
|
2
|
+
import { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, IntlayerProviderProps, useIntlayerContext } from "./client/IntlayerProvider.js";
|
|
3
|
+
import { t } from "./client/t.js";
|
|
4
|
+
import { IInterpreterPluginPreact } from "./plugins.js";
|
|
5
|
+
import { useDictionary } from "./client/useDictionary.js";
|
|
6
|
+
import { useDictionaryAsync } from "./client/useDictionaryAsync.js";
|
|
7
|
+
import { useDictionaryDynamic } from "./client/useDictionaryDynamic.js";
|
|
8
|
+
import { useIntlayer } from "./client/useIntlayer.js";
|
|
9
|
+
import { useLoadDynamic } from "./client/useLoadDynamic.js";
|
|
10
|
+
import { useLocale } from "./client/useLocale.js";
|
|
11
|
+
import { useLocaleBase } from "./client/useLocaleBase.js";
|
|
12
|
+
import { localeCookie, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage } from "./client/useLocaleStorage.js";
|
|
13
|
+
import { MarkdownProvider } from "./markdown/MarkdownProvider.js";
|
|
14
|
+
|
|
15
|
+
//#region src/index.d.ts
|
|
2
16
|
declare module '@intlayer/core' {
|
|
3
|
-
|
|
4
|
-
}
|
|
17
|
+
interface IInterpreterPlugin<T, S, L> extends IInterpreterPluginPreact<T> {}
|
|
5
18
|
}
|
|
6
|
-
|
|
7
|
-
export { type IntlayerNode
|
|
8
|
-
export { MarkdownProvider } from './markdown/index';
|
|
19
|
+
//#endregion
|
|
20
|
+
export { IntlayerClientContext, type IntlayerNode, IntlayerProvider, IntlayerProviderContent, type IntlayerProviderProps, MarkdownProvider, localeCookie, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntlayer, useIntlayerContext, useLoadDynamic, useLocale, useLocaleBase, useLocaleCookie, useLocaleStorage };
|
|
9
21
|
//# sourceMappingURL=index.d.ts.map
|