angular-intlayer 6.1.6 → 7.0.0-canary.0
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/UI/ContentSelector.component.cjs +94 -121
- package/dist/cjs/UI/ContentSelector.component.cjs.map +1 -1
- package/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/cjs/client/index.cjs +19 -35
- package/dist/cjs/client/installIntlayer.cjs +39 -68
- package/dist/cjs/client/installIntlayer.cjs.map +1 -1
- package/dist/cjs/client/useDictionary.cjs +13 -36
- package/dist/cjs/client/useDictionary.cjs.map +1 -1
- package/dist/cjs/client/useDictionaryAsync.cjs +23 -48
- package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
- package/dist/cjs/client/useDictionaryDynamic.cjs +24 -52
- package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
- package/dist/cjs/client/useIntlayer.cjs +16 -36
- package/dist/cjs/client/useIntlayer.cjs.map +1 -1
- package/dist/cjs/client/useLoadDynamic.cjs +26 -42
- package/dist/cjs/client/useLoadDynamic.cjs.map +1 -1
- package/dist/cjs/client/useLocale.cjs +35 -67
- package/dist/cjs/client/useLocale.cjs.map +1 -1
- package/dist/cjs/client/useLocaleStorage.cjs +61 -0
- package/dist/cjs/client/useLocaleStorage.cjs.map +1 -0
- package/dist/cjs/editor/ContentSelectorWrapper.component.cjs +41 -63
- package/dist/cjs/editor/ContentSelectorWrapper.component.cjs.map +1 -1
- package/dist/cjs/editor/EditedContentRenderer.component.cjs +44 -75
- package/dist/cjs/editor/EditedContentRenderer.component.cjs.map +1 -1
- package/dist/cjs/editor/EditorSelectorRenderer.component.cjs +25 -45
- package/dist/cjs/editor/EditorSelectorRenderer.component.cjs.map +1 -1
- package/dist/cjs/editor/communicator.cjs +55 -73
- package/dist/cjs/editor/communicator.cjs.map +1 -1
- package/dist/cjs/editor/configuration.cjs +21 -54
- package/dist/cjs/editor/configuration.cjs.map +1 -1
- package/dist/cjs/editor/createSharedComposable.cjs +46 -63
- package/dist/cjs/editor/createSharedComposable.cjs.map +1 -1
- package/dist/cjs/editor/dictionariesRecord.cjs +47 -77
- package/dist/cjs/editor/dictionariesRecord.cjs.map +1 -1
- package/dist/cjs/editor/editedContent.cjs +58 -71
- package/dist/cjs/editor/editedContent.cjs.map +1 -1
- package/dist/cjs/editor/editorEnabled.cjs +45 -70
- package/dist/cjs/editor/editorEnabled.cjs.map +1 -1
- package/dist/cjs/editor/editorLocale.cjs +21 -45
- package/dist/cjs/editor/editorLocale.cjs.map +1 -1
- package/dist/cjs/editor/focusDictionary.cjs +58 -74
- package/dist/cjs/editor/focusDictionary.cjs.map +1 -1
- package/dist/cjs/editor/index.cjs +9 -38
- package/dist/cjs/editor/installIntlayerEditor.cjs +46 -64
- package/dist/cjs/editor/installIntlayerEditor.cjs.map +1 -1
- package/dist/cjs/editor/useCrossFrameMessageListener.cjs +63 -72
- package/dist/cjs/editor/useCrossFrameMessageListener.cjs.map +1 -1
- package/dist/cjs/editor/useCrossFrameState.cjs +108 -88
- package/dist/cjs/editor/useCrossFrameState.cjs.map +1 -1
- package/dist/cjs/editor/useCrossURLPathState.cjs +64 -69
- package/dist/cjs/editor/useCrossURLPathState.cjs.map +1 -1
- package/dist/cjs/editor/useEditedContentRenderer.cjs +25 -54
- package/dist/cjs/editor/useEditedContentRenderer.cjs.map +1 -1
- package/dist/cjs/editor/useEditor.cjs +22 -44
- package/dist/cjs/editor/useEditor.cjs.map +1 -1
- package/dist/cjs/editor/useIframeClickInterceptor.cjs +38 -59
- package/dist/cjs/editor/useIframeClickInterceptor.cjs.map +1 -1
- package/dist/cjs/getDictionary.cjs +14 -39
- package/dist/cjs/getDictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayer.cjs +14 -35
- package/dist/cjs/getIntlayer.cjs.map +1 -1
- package/dist/cjs/index.cjs +32 -31
- package/dist/cjs/markdown/index.cjs +6 -23
- package/dist/cjs/markdown/installIntlayerMarkdown.cjs +33 -60
- package/dist/cjs/markdown/installIntlayerMarkdown.cjs.map +1 -1
- package/dist/cjs/plugins.cjs +77 -108
- package/dist/cjs/plugins.cjs.map +1 -1
- package/dist/cjs/renderIntlayerNode.cjs +16 -56
- package/dist/cjs/renderIntlayerNode.cjs.map +1 -1
- package/dist/cjs/webpack/index.cjs +3 -23
- package/dist/cjs/webpack/mergeConfig.cjs +33 -68
- package/dist/cjs/webpack/mergeConfig.cjs.map +1 -1
- package/dist/esm/UI/ContentSelector.component.mjs +89 -104
- package/dist/esm/UI/ContentSelector.component.mjs.map +1 -1
- package/dist/esm/client/index.mjs +9 -8
- package/dist/esm/client/installIntlayer.mjs +29 -27
- package/dist/esm/client/installIntlayer.mjs.map +1 -1
- package/dist/esm/client/useDictionary.mjs +10 -11
- package/dist/esm/client/useDictionary.mjs.map +1 -1
- package/dist/esm/client/useDictionaryAsync.mjs +18 -12
- package/dist/esm/client/useDictionaryAsync.mjs.map +1 -1
- package/dist/esm/client/useDictionaryDynamic.mjs +18 -15
- package/dist/esm/client/useDictionaryDynamic.mjs.map +1 -1
- package/dist/esm/client/useIntlayer.mjs +12 -10
- package/dist/esm/client/useIntlayer.mjs.map +1 -1
- package/dist/esm/client/useLoadDynamic.mjs +23 -17
- package/dist/esm/client/useLoadDynamic.mjs.map +1 -1
- package/dist/esm/client/useLocale.mjs +30 -31
- package/dist/esm/client/useLocale.mjs.map +1 -1
- package/dist/esm/client/useLocaleStorage.mjs +54 -0
- package/dist/esm/client/useLocaleStorage.mjs.map +1 -0
- package/dist/esm/editor/ContentSelectorWrapper.component.mjs +32 -34
- package/dist/esm/editor/ContentSelectorWrapper.component.mjs.map +1 -1
- package/dist/esm/editor/EditedContentRenderer.component.mjs +38 -49
- package/dist/esm/editor/EditedContentRenderer.component.mjs.map +1 -1
- package/dist/esm/editor/EditorSelectorRenderer.component.mjs +19 -18
- package/dist/esm/editor/EditorSelectorRenderer.component.mjs.map +1 -1
- package/dist/esm/editor/communicator.mjs +48 -35
- package/dist/esm/editor/communicator.mjs.map +1 -1
- package/dist/esm/editor/configuration.mjs +15 -18
- package/dist/esm/editor/configuration.mjs.map +1 -1
- package/dist/esm/editor/createSharedComposable.mjs +42 -37
- package/dist/esm/editor/createSharedComposable.mjs.map +1 -1
- package/dist/esm/editor/dictionariesRecord.mjs +38 -38
- package/dist/esm/editor/dictionariesRecord.mjs.map +1 -1
- package/dist/esm/editor/editedContent.mjs +49 -42
- package/dist/esm/editor/editedContent.mjs.map +1 -1
- package/dist/esm/editor/editorEnabled.mjs +37 -41
- package/dist/esm/editor/editorEnabled.mjs.map +1 -1
- package/dist/esm/editor/editorLocale.mjs +15 -18
- package/dist/esm/editor/editorLocale.mjs.map +1 -1
- package/dist/esm/editor/focusDictionary.mjs +50 -45
- package/dist/esm/editor/focusDictionary.mjs.map +1 -1
- package/dist/esm/editor/index.mjs +3 -7
- package/dist/esm/editor/installIntlayerEditor.mjs +40 -26
- package/dist/esm/editor/installIntlayerEditor.mjs.map +1 -1
- package/dist/esm/editor/useCrossFrameMessageListener.mjs +58 -46
- package/dist/esm/editor/useCrossFrameMessageListener.mjs.map +1 -1
- package/dist/esm/editor/useCrossFrameState.mjs +104 -62
- package/dist/esm/editor/useCrossFrameState.mjs.map +1 -1
- package/dist/esm/editor/useCrossURLPathState.mjs +57 -41
- package/dist/esm/editor/useCrossURLPathState.mjs.map +1 -1
- package/dist/esm/editor/useEditedContentRenderer.mjs +21 -33
- package/dist/esm/editor/useEditedContentRenderer.mjs.map +1 -1
- package/dist/esm/editor/useEditor.mjs +16 -14
- package/dist/esm/editor/useEditor.mjs.map +1 -1
- package/dist/esm/editor/useIframeClickInterceptor.mjs +30 -30
- package/dist/esm/editor/useIframeClickInterceptor.mjs.map +1 -1
- package/dist/esm/getDictionary.mjs +12 -20
- package/dist/esm/getDictionary.mjs.map +1 -1
- package/dist/esm/getIntlayer.mjs +12 -16
- package/dist/esm/getIntlayer.mjs.map +1 -1
- package/dist/esm/index.mjs +13 -6
- package/dist/esm/markdown/index.mjs +3 -2
- package/dist/esm/markdown/installIntlayerMarkdown.mjs +27 -32
- package/dist/esm/markdown/installIntlayerMarkdown.mjs.map +1 -1
- package/dist/esm/plugins.mjs +70 -83
- package/dist/esm/plugins.mjs.map +1 -1
- package/dist/esm/renderIntlayerNode.mjs +15 -32
- package/dist/esm/renderIntlayerNode.mjs.map +1 -1
- package/dist/esm/webpack/index.mjs +3 -2
- package/dist/esm/webpack/mergeConfig.mjs +25 -31
- package/dist/esm/webpack/mergeConfig.mjs.map +1 -1
- package/dist/types/UI/ContentSelector.component.d.ts +32 -30
- package/dist/types/UI/ContentSelector.component.d.ts.map +1 -1
- package/dist/types/client/index.d.ts +8 -8
- package/dist/types/client/installIntlayer.d.ts +15 -9
- package/dist/types/client/installIntlayer.d.ts.map +1 -1
- package/dist/types/client/useDictionary.d.ts +7 -4
- 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 +9 -7
- 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 +17 -8
- package/dist/types/client/useLocale.d.ts.map +1 -1
- package/dist/types/client/useLocaleStorage.d.ts +49 -0
- package/dist/types/client/useLocaleStorage.d.ts.map +1 -0
- package/dist/types/editor/ContentSelectorWrapper.component.d.ts +18 -12
- package/dist/types/editor/ContentSelectorWrapper.component.d.ts.map +1 -1
- package/dist/types/editor/EditedContentRenderer.component.d.ts +20 -16
- package/dist/types/editor/EditedContentRenderer.component.d.ts.map +1 -1
- package/dist/types/editor/EditorSelectorRenderer.component.d.ts +11 -6
- package/dist/types/editor/EditorSelectorRenderer.component.d.ts.map +1 -1
- package/dist/types/editor/communicator.d.ts +14 -9
- package/dist/types/editor/communicator.d.ts.map +1 -1
- package/dist/types/editor/configuration.d.ts +4 -1
- package/dist/types/editor/configuration.d.ts.map +1 -1
- package/dist/types/editor/createSharedComposable.d.ts +6 -4
- package/dist/types/editor/createSharedComposable.d.ts.map +1 -1
- package/dist/types/editor/dictionariesRecord.d.ts +13 -10
- package/dist/types/editor/dictionariesRecord.d.ts.map +1 -1
- package/dist/types/editor/editedContent.d.ts +13 -10
- package/dist/types/editor/editedContent.d.ts.map +1 -1
- package/dist/types/editor/editorEnabled.d.ts +12 -8
- package/dist/types/editor/editorEnabled.d.ts.map +1 -1
- package/dist/types/editor/editorLocale.d.ts +6 -2
- package/dist/types/editor/editorLocale.d.ts.map +1 -1
- package/dist/types/editor/focusDictionary.d.ts +16 -13
- package/dist/types/editor/focusDictionary.d.ts.map +1 -1
- package/dist/types/editor/index.d.ts +5 -5
- package/dist/types/editor/installIntlayerEditor.d.ts +7 -2
- package/dist/types/editor/installIntlayerEditor.d.ts.map +1 -1
- 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 +12 -8
- package/dist/types/editor/useCrossFrameState.d.ts.map +1 -1
- package/dist/types/editor/useCrossURLPathState.d.ts +9 -3
- package/dist/types/editor/useCrossURLPathState.d.ts.map +1 -1
- package/dist/types/editor/useEditedContentRenderer.d.ts +15 -11
- package/dist/types/editor/useEditedContentRenderer.d.ts.map +1 -1
- package/dist/types/editor/useEditor.d.ts +4 -1
- package/dist/types/editor/useEditor.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 +16 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/markdown/index.d.ts +2 -2
- package/dist/types/markdown/installIntlayerMarkdown.d.ts +15 -12
- package/dist/types/markdown/installIntlayerMarkdown.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +29 -23
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/renderIntlayerNode.d.ts +16 -10
- package/dist/types/renderIntlayerNode.d.ts.map +1 -1
- package/dist/types/webpack/index.d.ts +2 -2
- package/dist/types/webpack/mergeConfig.d.ts +5 -2
- package/dist/types/webpack/mergeConfig.d.ts.map +1 -1
- package/package.json +43 -49
- package/LICENSE +0 -202
- 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/cjs/webpack/index.cjs.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/esm/webpack/index.mjs.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
- package/dist/types/webpack/index.d.ts.map +0 -1
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeProps } from "@intlayer/core";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/EditorSelectorRenderer.component.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Combine your NodeProps (which include dictionaryKey & keyPath)
|
|
4
7
|
* with any other div-like attributes.
|
|
5
8
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
interface EditorSelectorRendererProps extends NodeProps {
|
|
10
|
+
[key: string]: any;
|
|
8
11
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
declare class EditorSelectorRendererComponent {
|
|
13
|
+
dictionaryKey: string;
|
|
14
|
+
keyPath: any[];
|
|
12
15
|
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { EditorSelectorRendererComponent, EditorSelectorRendererProps };
|
|
13
18
|
//# sourceMappingURL=EditorSelectorRenderer.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorSelectorRenderer.component.d.ts","
|
|
1
|
+
{"version":3,"file":"EditorSelectorRenderer.component.d.ts","names":[],"sources":["../../../src/editor/EditorSelectorRenderer.component.ts"],"sourcesContent":[],"mappings":";;;;;;AAUA;AAIA;UAJiB,2BAAA,SAAoC;;;cA0BxC,+BAAA"}
|
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
import { Injector } from
|
|
1
|
+
import { Injector } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/communicator.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Interface defining a cross-frame communicator
|
|
4
7
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
type Communicator = {
|
|
9
|
+
postMessage: typeof window.postMessage;
|
|
10
|
+
allowedOrigins?: string[];
|
|
11
|
+
senderId: string;
|
|
9
12
|
};
|
|
10
13
|
/**
|
|
11
14
|
* Configuration options for the communicator
|
|
12
15
|
*/
|
|
13
|
-
|
|
16
|
+
type CommunicatorOptions = Omit<Communicator, 'senderId'>;
|
|
14
17
|
/**
|
|
15
18
|
* Creates a communicator client
|
|
16
19
|
* @param options - Options for configuring the communicator
|
|
17
20
|
*/
|
|
18
|
-
|
|
21
|
+
declare const createCommunicator: (options?: CommunicatorOptions) => Communicator;
|
|
19
22
|
/**
|
|
20
23
|
* Helper to install the Intlayer communicator into the injector
|
|
21
24
|
*/
|
|
22
|
-
|
|
25
|
+
declare const installCommunicator: (_injector: Injector, options?: CommunicatorOptions) => void;
|
|
23
26
|
/**
|
|
24
27
|
* Hook to access the communicator
|
|
25
28
|
* @returns The communicator instance
|
|
26
29
|
*/
|
|
27
|
-
|
|
30
|
+
declare const useCommunicator: () => Communicator;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Communicator, CommunicatorOptions, createCommunicator, installCommunicator, useCommunicator };
|
|
28
33
|
//# sourceMappingURL=communicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communicator.d.ts","
|
|
1
|
+
{"version":3,"file":"communicator.d.ts","names":[],"sources":["../../../src/editor/communicator.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AASY,KATA,YAAA,GASmB;EA4BlB,WAAA,EAAA,OApCS,MAAA,CAAO,WAqClB;EAgBE,cAAA,CAAA,EAAA,MAQZ,EAAA;EAMY,QAAA,EAAA,MAAA;;;;;KA3DD,mBAAA,GAAsB,KAAK;;;;;cA4B1B,+BACF,wBAAiD;;;;cAgB/C,iCACA,oBACF;;;;;cAYE,uBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","names":[],"sources":["../../../src/editor/configuration.ts"],"sourcesContent":[],"mappings":";cAMa"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
//#region src/editor/createSharedComposable.d.ts
|
|
1
2
|
type AnyFn = (...args: any[]) => any;
|
|
2
|
-
|
|
3
|
+
type SharedComposableReturn<T extends AnyFn = AnyFn> = T;
|
|
3
4
|
/**
|
|
4
5
|
* Angular replacement for Vue's tryOnScopeDispose
|
|
5
6
|
* Uses Angular's DestroyRef to handle cleanup when the injection context is destroyed
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
declare function tryOnScopeDispose(fn: () => void): boolean;
|
|
8
9
|
/**
|
|
9
10
|
* Angular equivalent of Vue's createSharedComposable
|
|
10
11
|
* Creates a singleton pattern for services/composables
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const createSharedComposable: <Fn extends AnyFn>(composable: Fn) => SharedComposableReturn<Fn>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SharedComposableReturn, createSharedComposable, tryOnScopeDispose };
|
|
14
16
|
//# sourceMappingURL=createSharedComposable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSharedComposable.d.ts","
|
|
1
|
+
{"version":3,"file":"createSharedComposable.d.ts","names":[],"sources":["../../../src/editor/createSharedComposable.ts"],"sourcesContent":[],"mappings":";KAEK,KAAA;AAAA,KAEO,sBAFF,CAAA,UAEmC,KAFnC,GAE2C,KAF3C,CAAA,GAEoD,CAFpD;AAEV;;;;AAA+D,iBAM/C,iBAAA,CAN+C,EAAA,EAAA,GAAA,GAAA,IAAA,CAAA,EAAA,OAAA;AAM/D;AAkBA;;;AAE0B,cAFb,sBAEa,EAAA,CAAA,WAFwB,KAExB,CAAA,CAAA,UAAA,EADZ,EACY,EAAA,GAAvB,sBAAuB,CAAA,EAAA,CAAA"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Injector, Signal } from
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Injector, Signal } from "@angular/core";
|
|
2
|
+
import { Dictionary } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/dictionariesRecord.d.ts
|
|
5
|
+
type DictionaryContent = Record<Dictionary['key'], Dictionary>;
|
|
4
6
|
type DictionariesRecordClient = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
localeDictionaries: Signal<DictionaryContent>;
|
|
8
|
+
setLocaleDictionaries: (newValue: DictionaryContent) => void;
|
|
9
|
+
setLocaleDictionary: (d: Dictionary) => void;
|
|
8
10
|
};
|
|
9
|
-
|
|
11
|
+
declare const createDictionaryRecordClient: () => DictionariesRecordClient;
|
|
10
12
|
/**
|
|
11
13
|
* Helper to install the provider into the injector
|
|
12
14
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
declare const installDictionariesRecord: (_injector: Injector) => void;
|
|
16
|
+
declare const useDictionariesRecord: () => void;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DictionaryContent, createDictionaryRecordClient, installDictionariesRecord, useDictionariesRecord };
|
|
16
19
|
//# sourceMappingURL=dictionariesRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionariesRecord.d.ts","
|
|
1
|
+
{"version":3,"file":"dictionariesRecord.d.ts","names":[],"sources":["../../../src/editor/dictionariesRecord.ts"],"sourcesContent":[],"mappings":";;;;KAYY,iBAAA,GAAoB,OAAO,mBAAmB;KAErD,wBAAA;EAFO,kBAAA,EAGU,MAHO,CAGA,iBAHA,CAAA;EAAU,qBAAA,EAAA,CAAA,QAAA,EAIH,iBAJG,EAAA,GAAA,IAAA;EAAmB,mBAAA,EAAA,CAAA,CAAA,EAK/B,UAL+B,EAAA,GAAA,IAAA;CAA1B;AAAM,cAQzB,4BARyB,EAAA,GAAA,GAQG,wBARH;AAAgC;;;AAIlC,cAgCvB,yBAhCuB,EAAA,CAAA,SAAA,EAgCiB,QAhCjB,EAAA,GAAA,IAAA;AACT,cAsCd,qBAtCc,EAAA,GAAA,GAAA,IAAA"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { Injector, Signal } from
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Injector, Signal } from "@angular/core";
|
|
2
|
+
import { ContentNode, Dictionary, KeyPath, LocalDictionaryId } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/editedContent.d.ts
|
|
5
|
+
type EditedContent = Record<Dictionary['key'], Dictionary>;
|
|
4
6
|
type EditedContentClient = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
editedContent: Signal<EditedContent>;
|
|
8
|
+
setEditedContent: (editedContent: EditedContent) => void;
|
|
9
|
+
getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary['key'] | string, keyPath: KeyPath[]) => ContentNode | undefined;
|
|
8
10
|
};
|
|
9
11
|
/**
|
|
10
12
|
* Creates an edited content client
|
|
11
13
|
*/
|
|
12
|
-
|
|
14
|
+
declare const createEditedContentClient: () => EditedContentClient;
|
|
13
15
|
/**
|
|
14
16
|
* Helper to install the edited content into the injector
|
|
15
17
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
declare const installEditedContent: (_injector: Injector) => void;
|
|
19
|
+
declare const useEditedContent: () => EditedContentClient;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { EditedContent, createEditedContentClient, installEditedContent, useEditedContent };
|
|
19
22
|
//# sourceMappingURL=editedContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editedContent.d.ts","
|
|
1
|
+
{"version":3,"file":"editedContent.d.ts","names":[],"sources":["../../../src/editor/editedContent.ts"],"sourcesContent":[],"mappings":";;;;KAYY,aAAA,GAAgB,OAAO,mBAAmB;KAEjD,mBAAA;EAFO,aAAA,EAGK,MAHQ,CAGD,aAHC,CAAA;EAAU,gBAAA,EAAA,CAAA,aAAA,EAIC,aAJD,EAAA,GAAA,IAAA;EAAmB,qBAAA,EAAA,CAAA,sBAAA,EAM1B,iBAN0B,GAMN,UANM,CAAA,KAAA,CAAA,GAAA,MAAA,EAAA,OAAA,EAOzC,OAPyC,EAAA,EAAA,GAQ/C,WAR+C,GAAA,SAAA;CAA1B;;AAAsC;;AAGjD,cAkBJ,yBAlBI,EAAA,GAAA,GAkBqB,mBAlBrB;;;;AAIJ,cAqEA,oBArEA,EAAA,CAAA,SAAA,EAqEmC,QArEnC,EAAA,GAAA,IAAA;AACN,cA2EM,gBA3EN,EAAA,GAAA,GA2EsB,mBA3EtB"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { Injector, Signal } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Injector, Signal } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/editorEnabled.d.ts
|
|
4
|
+
type EditorEnabledStateProps = {
|
|
5
|
+
wrapperEnabled: Signal<boolean>;
|
|
6
|
+
isInIframe: Signal<boolean>;
|
|
7
|
+
enabled: Signal<boolean>;
|
|
6
8
|
};
|
|
7
9
|
/**
|
|
8
10
|
* Creates an editor wrapperEnabled client
|
|
9
11
|
*/
|
|
10
|
-
|
|
12
|
+
declare const createEditorEnabledClient: () => EditorEnabledStateProps;
|
|
11
13
|
/**
|
|
12
14
|
* Helper to install the editor wrapperEnabled state into the injector
|
|
13
15
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
declare const installEditorEnabled: (_injector: Injector) => void;
|
|
17
|
+
declare const useEditorEnabled: () => EditorEnabledStateProps;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { EditorEnabledStateProps, createEditorEnabledClient, installEditorEnabled, useEditorEnabled };
|
|
16
20
|
//# sourceMappingURL=editorEnabled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorEnabled.d.ts","
|
|
1
|
+
{"version":3,"file":"editorEnabled.d.ts","names":[],"sources":["../../../src/editor/editorEnabled.ts"],"sourcesContent":[],"mappings":";;;KAcY,uBAAA;kBACM;EADN,UAAA,EAEE,MAFF,CAAA,OAAuB,CAAA;EACjB,OAAA,EAEP,MAFO,CAAA,OAAA,CAAA;CACJ;;;AAcd;AAqBa,cArBA,yBAqBmC,EAAQ,GAAA,GArBlB,uBAqBkB;AAOxD;;;cAPa,kCAAmC;cAOnC,wBAAgB"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import { IntlayerProvider } from
|
|
2
|
-
|
|
1
|
+
import { IntlayerProvider } from "../client/installIntlayer.js";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/editorLocale.d.ts
|
|
4
|
+
declare const useEditorLocale: () => IntlayerProvider;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { useEditorLocale };
|
|
3
7
|
//# sourceMappingURL=editorLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorLocale.d.ts","
|
|
1
|
+
{"version":3,"file":"editorLocale.d.ts","names":[],"sources":["../../../src/editor/editorLocale.ts"],"sourcesContent":[],"mappings":";;;cAOa,uBAAe"}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { Injector, Signal } from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Injector, Signal } from "@angular/core";
|
|
2
|
+
import { KeyPath } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/focusDictionary.d.ts
|
|
5
|
+
type FileContent = {
|
|
6
|
+
dictionaryKey: string;
|
|
7
|
+
keyPath?: KeyPath[];
|
|
8
|
+
dictionaryPath?: string;
|
|
7
9
|
};
|
|
8
10
|
type FocusDictionaryClient = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
focusedContent: Signal<FileContent | null>;
|
|
12
|
+
setFocusedContent: (focussedContent: FileContent | null) => void;
|
|
13
|
+
setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
|
|
12
14
|
};
|
|
13
15
|
/**
|
|
14
16
|
* Creates a focus dictionary client
|
|
15
17
|
*/
|
|
16
|
-
|
|
18
|
+
declare const createFocusDictionaryClient: () => FocusDictionaryClient;
|
|
17
19
|
/**
|
|
18
20
|
* Helper to install the focus dictionary into the injector
|
|
19
21
|
*/
|
|
20
|
-
|
|
22
|
+
declare const installFocusDictionary: (_injector: Injector) => void;
|
|
21
23
|
/** consumer */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
declare const useFocusDictionary: () => FocusDictionaryClient;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { FileContent, createFocusDictionaryClient, installFocusDictionary, useFocusDictionary };
|
|
24
27
|
//# sourceMappingURL=focusDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusDictionary.d.ts","
|
|
1
|
+
{"version":3,"file":"focusDictionary.d.ts","names":[],"sources":["../../../src/editor/focusDictionary.ts"],"sourcesContent":[],"mappings":";;;;KAMY,WAAA;;EAAA,OAAA,CAAA,EAEA,OAFW,EAAA;EAMlB,cAAA,CAAA,EAAA,MAAA;CACoB;KADpB,qBAAA,GACa;EACqB,cAAA,EADrB,MACqB,CADd,WACc,GAAA,IAAA,CAAA;EACD,iBAAA,EAAA,CAAA,eAAA,EADC,WACD,GAAA,IAAA,EAAA,GAAA,IAAA;EAAO,wBAAA,EAAA,CAAA,OAAA,EAAP,OAAO,EAAA,EAAA,GAAA,IAAA;AAW7C,CAAA;AA2BA;AAQA;;cAnCa,mCAA2B;;;;cA2B3B,oCAAqC;;cAQrC,0BAAkB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ContentSelectorWrapperComponent } from "./ContentSelectorWrapper.component.js";
|
|
2
|
+
import { EditedContentRendererComponent } from "./EditedContentRenderer.component.js";
|
|
3
|
+
import { EditorSelectorRendererComponent } from "./EditorSelectorRenderer.component.js";
|
|
4
|
+
import { installIntlayerEditor } from "./installIntlayerEditor.js";
|
|
5
|
+
export { ContentSelectorWrapperComponent, EditedContentRendererComponent, EditorSelectorRendererComponent, installIntlayerEditor };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Injector } from
|
|
1
|
+
import { Injector } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/installIntlayerEditor.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Angular-side replacement for the former <IntlayerEditorProvider> React component.
|
|
4
7
|
*
|
|
@@ -14,5 +17,7 @@ import { Injector } from '@angular/core';
|
|
|
14
17
|
* });
|
|
15
18
|
* ```
|
|
16
19
|
*/
|
|
17
|
-
|
|
20
|
+
declare const installIntlayerEditor: (injector: Injector) => void;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { installIntlayerEditor };
|
|
18
23
|
//# sourceMappingURL=installIntlayerEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installIntlayerEditor.d.ts","
|
|
1
|
+
{"version":3,"file":"installIntlayerEditor.d.ts","names":[],"sources":["../../../src/editor/installIntlayerEditor.ts"],"sourcesContent":[],"mappings":";;;;;;AA8CA;;;;;;;;;;;;;cAAa,kCAAmC"}
|
|
@@ -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
|
*
|
|
@@ -7,5 +10,7 @@ import { type MessageKey } from '@intlayer/editor';
|
|
|
7
10
|
* @param onEventTriggered optional callback when a matching message arrives
|
|
8
11
|
* @returns postMessage(data?) helper scoped to this key
|
|
9
12
|
*/
|
|
10
|
-
|
|
13
|
+
declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void) => (data?: S) => void;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useCrossFrameMessageListener };
|
|
11
16
|
//# 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.ts"],"sourcesContent":[],"mappings":";;;;;;AAiEA;;;;;;AAgCsC,cAhCzB,4BAgCyB,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA,EAAA,GA/B5B,UA+B4B,EAAA,GAAA,GA/BV,UA+BU,OAAA,GAAA,GA/Ba,UA+Bb,MAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,IAAA,EA9BV,CA8BU,EAAA,GAAA,IAAA,EAAA,GAAA,CAAA,IAAA,CAAA,EAAD,CAAC,EAAA,GAAA,IAAA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Signal } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Signal } from "@angular/core";
|
|
2
|
+
import { MessageKey } from "@intlayer/editor";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/useCrossFrameState.d.ts
|
|
5
|
+
type CrossFrameStateOptions = {
|
|
6
|
+
/** Whether to broadcast state changes to other instances (default: true) */
|
|
7
|
+
emit?: boolean;
|
|
8
|
+
/** Whether to listen for state updates from other instances (default: true) */
|
|
9
|
+
receive?: boolean;
|
|
8
10
|
};
|
|
9
11
|
/**
|
|
10
12
|
* Angular replacement for Vue's cross-frame state composable.
|
|
@@ -20,5 +22,7 @@ export type CrossFrameStateOptions = {
|
|
|
20
22
|
* - `setState` – Setter with the same API as React's `setState`.
|
|
21
23
|
* - `postState` – Manually broadcast the current state (useful after mutations outside `setState`).
|
|
22
24
|
*/
|
|
23
|
-
|
|
25
|
+
declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [Signal<S | undefined>, (v: S | ((prev: S | undefined) => S)) => void, () => void];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { CrossFrameStateOptions, useCrossFrameState };
|
|
24
28
|
//# 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.ts"],"sourcesContent":[],"mappings":";;;;KAKY,sBAAA;;EAAA,IAAA,CAAA,EAAA,OAAA;EAqDC;EACH,OAAA,CAAA,EAAA,OAAA;CACO;;;;;;;;;;;;;;;cAFJ,gCACH,6BACO,WAAW,cACjB,4BAET,OAAO,oBACH,YAAY,kBAAkB"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { useCrossFrameState } from
|
|
1
|
+
import { useCrossFrameState } from "./useCrossFrameState.js";
|
|
2
|
+
import * as _angular_core1 from "@angular/core";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/useCrossURLPathState.d.ts
|
|
5
|
+
|
|
2
6
|
/**
|
|
3
7
|
* Hook to create and manage a cross-frame synchronized URL path state
|
|
4
8
|
* @param initial - The initial URL path
|
|
5
9
|
* @param opts - Options for controlling emit and receive behavior
|
|
6
10
|
* @returns A tuple containing [state signal, setState function, forceSync function]
|
|
7
11
|
*/
|
|
8
|
-
|
|
12
|
+
declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [_angular_core1.Signal<string>, (v: string | ((prev: string) => string)) => void, () => void];
|
|
9
13
|
/**
|
|
10
14
|
* Hook for host applications to push URL path changes into the shared state
|
|
11
15
|
* This also monkey patches history methods to capture navigation events
|
|
12
16
|
* @param initial - The initial URL path
|
|
13
17
|
* @returns A tuple containing [state signal, setState function]
|
|
14
18
|
*/
|
|
15
|
-
|
|
19
|
+
declare const useCrossURLPathSetter: (initial?: string) => readonly [_angular_core1.Signal<string>, (v: string | ((prev: string) => string)) => void];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { useCrossURLPathSetter, useCrossURLPathState };
|
|
16
22
|
//# 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.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAUA;;;AAEmB,cAFN,oBAEoC,EAAA,CAAA,OAAA,CAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAAxC,UAAwC,CAAA,OAAtB,kBAAsB,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAA9B,cAAA,CAA8B,MAAA,CAAA,MAAA,CAAA,EAAA,CAAA,CAAA,EAAA,MAAA,GAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GAAA,MAAA,CAAA,EAAA,GAAA,IAAA,EAAA,GAAA,GAAA,IAAA,CAAA;;AASjD;;;;;cAAa,uDAiEZ,cAAA,CAjEqD"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { InjectionToken, Signal } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { InjectionToken, Signal } from "@angular/core";
|
|
2
|
+
import { KeyPath } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/useEditedContentRenderer.d.ts
|
|
5
|
+
interface EditedContentActions {
|
|
6
|
+
getEditedContentValue(dictionaryKey: string, keyPath: KeyPath[]): unknown;
|
|
5
7
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
declare const EDITED_CONTENT_ACTIONS_TOKEN: InjectionToken<EditedContentActions>;
|
|
9
|
+
declare class EditedContentRendererService {
|
|
10
|
+
/**
|
|
11
|
+
* Mirrors the React hook one-for-one.
|
|
12
|
+
*/
|
|
13
|
+
useEditedContentRenderer(dictionaryKey: string, keyPath: KeyPath[], fallback: unknown): Signal<unknown>;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Standalone function that can be used like the Vue composable
|
|
15
17
|
*/
|
|
16
|
-
|
|
18
|
+
declare const useEditedContentRenderer: (dictionaryKey: string, keyPath: KeyPath[], fallback: unknown) => Signal<unknown>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { EDITED_CONTENT_ACTIONS_TOKEN, EditedContentActions, EditedContentRendererService, useEditedContentRenderer };
|
|
17
21
|
//# 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.ts"],"sourcesContent":[],"mappings":";;;;UASiB,oBAAA;wDACuC;AADxD;AAIa,cAAA,4BAA4B,EAAA,cAAA,CAAA,oBAAA,CAAA;AAM5B,cAAA,4BAAA,CAMA;EAqBA;;;2DArBA,+BAER;;;;;cAmBQ,2DAEF,iCAER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditor.d.ts","
|
|
1
|
+
{"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.ts"],"sourcesContent":[],"mappings":";cASa"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
//#region src/editor/useIframeClickInterceptor.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Hook that intercepts clicks in the iframe and sends them to the parent window
|
|
3
4
|
* This allows the parent window to know when the iframe is clicked
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
declare const useIframeClickInterceptor: () => void;
|
|
6
7
|
/**
|
|
7
8
|
* Hook for the parent window to listen for iframe clicks and merge them
|
|
8
9
|
* This makes iframe clicks behave as if they happened in the parent window
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
declare const useIframeClickMerger: () => void;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { useIframeClickInterceptor, useIframeClickMerger };
|
|
11
14
|
//# 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.ts"],"sourcesContent":[],"mappings":";;AAaA;AAkCA;;cAlCa;;;;;cAkCA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
|
|
2
|
+
import * as _intlayer_core0 from "@intlayer/core";
|
|
3
|
+
import { Plugins } from "@intlayer/core";
|
|
4
|
+
|
|
5
|
+
//#region src/getDictionary.d.ts
|
|
6
|
+
declare const getDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => _intlayer_core0.DeepTransformContent<T["content"], _intlayer_core0.IInterpreterPluginState, L>;
|
|
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":";;;;;cAWa,0BACD,sBACA,gBAAgB,6BAEd,YACH,uBACW,cAAS,eAAA,CAAA,qBAAA,cAAA,eAAA,CAAA,uBAAA,EAAA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { DeepTransformContent as DeepTransformContent$1 } from "./plugins.js";
|
|
2
|
+
import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types";
|
|
3
|
+
import { Plugins } from "@intlayer/core";
|
|
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":";;;;;cAaa,wBACD,0BACA,gBAAgB,sBAErB,YACI,uBACW,cASkC,uBACpD,0BAA0B"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient, installIntlayer } from "./client/installIntlayer.js";
|
|
2
|
+
import { DeepTransformContent, IInterpreterPluginAngular, IInterpreterPluginState, IntlayerNode, IntlayerNodeCond, MarkdownCond, MarkdownStringCond, intlayerNodePlugins, markdownPlugin, markdownStringPlugin } from "./plugins.js";
|
|
3
|
+
import { useDictionary } from "./client/useDictionary.js";
|
|
4
|
+
import { useDictionaryAsync } from "./client/useDictionaryAsync.js";
|
|
5
|
+
import { getDictionary } from "./getDictionary.js";
|
|
6
|
+
import { getIntlayer } from "./getIntlayer.js";
|
|
7
|
+
import { INTLAYER_MARKDOWN_TOKEN, IntlayerMarkdownProvider, IntlayerMarkdownService, createIntlayerMarkdownProvider, useMarkdown } from "./markdown/installIntlayerMarkdown.js";
|
|
8
|
+
import { useDictionaryDynamic } from "./client/useDictionaryDynamic.js";
|
|
9
|
+
import { isUpdatableNode, useIntlayer } from "./client/useIntlayer.js";
|
|
10
|
+
import { useLoadDynamic } from "./client/useLoadDynamic.js";
|
|
11
|
+
import { useLocale } from "./client/useLocale.js";
|
|
12
|
+
|
|
13
|
+
//#region src/index.d.ts
|
|
2
14
|
declare module '@intlayer/core' {
|
|
3
|
-
|
|
4
|
-
}
|
|
15
|
+
interface IInterpreterPlugin<T, S, L> extends IInterpreterPluginAngular<T> {}
|
|
5
16
|
}
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export * from './getIntlayer';
|
|
9
|
-
export * from './markdown';
|
|
10
|
-
export * from './plugins';
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DeepTransformContent, IInterpreterPluginAngular, IInterpreterPluginState, INTLAYER_MARKDOWN_TOKEN, INTLAYER_TOKEN, IntlayerMarkdownProvider, IntlayerMarkdownService, IntlayerNode, IntlayerNodeCond, IntlayerProvider, MarkdownCond, MarkdownStringCond, createIntlayerClient, createIntlayerMarkdownProvider, getDictionary, getIntlayer, installIntlayer, intlayerNodePlugins, isUpdatableNode, markdownPlugin, markdownStringPlugin, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntlayer, useLoadDynamic, useLocale, useMarkdown };
|
|
11
19
|
//# sourceMappingURL=index.d.ts.map
|