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.
- package/README.md +2 -2
- package/dist/cjs/IntlayerNode.cjs +1 -0
- package/dist/cjs/UI/ContentSelector.cjs +1 -0
- package/dist/cjs/client/IntlayerProvider.cjs +1 -0
- package/dist/cjs/client/getBrowserLocale.cjs +1 -0
- package/dist/cjs/client/index.cjs +1 -29
- package/dist/cjs/client/t.cjs +1 -0
- package/dist/cjs/client/useContent.cjs +1 -0
- package/dist/cjs/client/useDictionary.cjs +1 -41
- package/dist/cjs/client/useDictionaryDynamic.cjs +1 -0
- package/dist/cjs/client/useIntlayer.cjs +1 -44
- package/dist/cjs/client/useIntlayerAsync.cjs +1 -0
- package/dist/cjs/client/useLoadDynamic.cjs +1 -0
- package/dist/cjs/client/useLocale.cjs +1 -33
- package/dist/cjs/client/useLocaleBase.cjs +1 -0
- package/dist/cjs/client/useLocaleCookie.cjs +1 -0
- package/dist/cjs/client/useTraduction.cjs +1 -0
- package/dist/cjs/editor/ContentSelectorWrapper.cjs +1 -0
- package/dist/cjs/editor/IntlayerEditorProvider.cjs +1 -0
- package/dist/cjs/editor/contexts/ChangedContentContext.cjs +1 -0
- package/dist/cjs/editor/contexts/CommunicatorContext.cjs +1 -0
- package/dist/cjs/editor/contexts/ConfigurationContext.cjs +1 -0
- package/dist/cjs/editor/contexts/DictionariesRecordContext.cjs +1 -0
- package/dist/cjs/editor/contexts/EditedContentContext.cjs +1 -0
- package/dist/cjs/editor/contexts/EditorEnabledContext.cjs +1 -0
- package/dist/cjs/editor/contexts/EditorProvider.cjs +1 -0
- package/dist/cjs/editor/contexts/FocusDictionaryContext.cjs +1 -0
- package/dist/cjs/editor/contexts/index.cjs +1 -0
- package/dist/cjs/editor/contexts/useCrossFrameMessageListener.cjs +1 -0
- package/dist/cjs/editor/contexts/useCrossFrameState.cjs +1 -0
- package/dist/cjs/editor/contexts/useCrossURLPathState.cjs +1 -0
- package/dist/cjs/editor/contexts/useIframeClickInterceptor.cjs +1 -0
- package/dist/cjs/editor/index.cjs +1 -0
- package/dist/cjs/editor/useEditedContentRenderer.cjs +1 -0
- package/dist/cjs/getDictionary.cjs +1 -42
- package/dist/cjs/getIntlayer.cjs +1 -38
- package/dist/cjs/index.cjs +1 -31
- package/dist/cjs/markdown/MarkdownProvider.cjs +1 -0
- package/dist/cjs/markdown/MarkdownRenderer.cjs +1 -0
- package/dist/cjs/markdown/index.cjs +1 -36
- package/dist/cjs/plugins.cjs +1 -53
- package/dist/cjs/solidElement/renderSolidElement.cjs +1 -0
- package/dist/esm/IntlayerNode.mjs +17 -0
- package/dist/esm/UI/ContentSelector.mjs +58 -0
- package/dist/esm/client/IntlayerProvider.mjs +69 -0
- package/dist/esm/client/getBrowserLocale.mjs +100 -0
- package/dist/esm/client/index.mjs +29 -5
- package/dist/esm/client/t.mjs +10 -0
- package/dist/esm/client/useContent.mjs +13 -0
- package/dist/esm/client/useDictionary.mjs +18 -13
- package/dist/esm/client/useDictionaryDynamic.mjs +14 -0
- package/dist/esm/client/useIntlayer.mjs +18 -15
- package/dist/esm/client/useIntlayerAsync.mjs +15 -0
- package/dist/esm/client/useLoadDynamic.mjs +21 -0
- package/dist/esm/client/useLocale.mjs +29 -6
- package/dist/esm/client/useLocaleBase.mjs +19 -0
- package/dist/esm/client/useLocaleCookie.mjs +19 -0
- package/dist/esm/client/useTraduction.mjs +10 -0
- package/dist/esm/editor/ContentSelectorWrapper.mjs +52 -0
- package/dist/esm/editor/IntlayerEditorProvider.mjs +64 -0
- package/dist/esm/editor/contexts/ChangedContentContext.mjs +39 -0
- package/dist/esm/editor/contexts/CommunicatorContext.mjs +30 -0
- package/dist/esm/editor/contexts/ConfigurationContext.mjs +19 -0
- package/dist/esm/editor/contexts/DictionariesRecordContext.mjs +44 -0
- package/dist/esm/editor/contexts/EditedContentContext.mjs +147 -0
- package/dist/esm/editor/contexts/EditorEnabledContext.mjs +27 -0
- package/dist/esm/editor/contexts/EditorProvider.mjs +85 -0
- package/dist/esm/editor/contexts/FocusDictionaryContext.mjs +47 -0
- package/dist/esm/editor/contexts/index.mjs +43 -0
- package/dist/esm/editor/contexts/useCrossFrameMessageListener.mjs +35 -0
- package/dist/esm/editor/contexts/useCrossFrameState.mjs +57 -0
- package/dist/esm/editor/contexts/useCrossURLPathState.mjs +25 -0
- package/dist/esm/editor/contexts/useIframeClickInterceptor.mjs +18 -0
- package/dist/esm/editor/index.mjs +4 -0
- package/dist/esm/editor/useEditedContentRenderer.mjs +29 -0
- package/dist/esm/getDictionary.mjs +13 -18
- package/dist/esm/getIntlayer.mjs +10 -15
- package/dist/esm/index.mjs +41 -6
- package/dist/esm/markdown/MarkdownProvider.mjs +24 -0
- package/dist/esm/markdown/MarkdownRenderer.mjs +31 -0
- package/dist/esm/markdown/index.mjs +7 -10
- package/dist/esm/plugins.mjs +113 -20
- package/dist/esm/solidElement/renderSolidElement.mjs +31 -0
- package/dist/types/IntlayerNode.d.ts +15 -0
- package/dist/types/IntlayerNode.d.ts.map +1 -0
- package/dist/types/UI/ContentSelector.d.ts +11 -0
- package/dist/types/UI/ContentSelector.d.ts.map +1 -0
- package/dist/types/client/IntlayerProvider.d.ts +28 -0
- package/dist/types/client/IntlayerProvider.d.ts.map +1 -0
- package/dist/types/client/getBrowserLocale.d.ts +25 -0
- package/dist/types/client/getBrowserLocale.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +11 -4
- package/dist/types/client/index.d.ts.map +1 -1
- package/dist/types/client/t.d.ts +9 -0
- package/dist/types/client/t.d.ts.map +1 -0
- package/dist/types/client/useContent.d.ts +10 -0
- package/dist/types/client/useContent.d.ts.map +1 -0
- package/dist/types/client/useDictionary.d.ts +7 -2
- package/dist/types/client/useDictionary.d.ts.map +1 -1
- package/dist/types/client/useDictionaryDynamic.d.ts +9 -0
- package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -0
- package/dist/types/client/useIntlayer.d.ts +9 -6
- package/dist/types/client/useIntlayer.d.ts.map +1 -1
- package/dist/types/client/useIntlayerAsync.d.ts +15 -0
- package/dist/types/client/useIntlayerAsync.d.ts.map +1 -0
- package/dist/types/client/useLoadDynamic.d.ts +2 -0
- package/dist/types/client/useLoadDynamic.d.ts.map +1 -0
- package/dist/types/client/useLocale.d.ts +14 -3
- package/dist/types/client/useLocale.d.ts.map +1 -1
- package/dist/types/client/useLocaleBase.d.ts +10 -0
- package/dist/types/client/useLocaleBase.d.ts.map +1 -0
- package/dist/types/client/useLocaleCookie.d.ts +17 -0
- package/dist/types/client/useLocaleCookie.d.ts.map +1 -0
- package/dist/types/client/useTraduction.d.ts +24 -0
- package/dist/types/client/useTraduction.d.ts.map +1 -0
- package/dist/types/editor/ContentSelectorWrapper.d.ts +7 -0
- package/dist/types/editor/ContentSelectorWrapper.d.ts.map +1 -0
- package/dist/types/editor/IntlayerEditorProvider.d.ts +3 -0
- package/dist/types/editor/IntlayerEditorProvider.d.ts.map +1 -0
- package/dist/types/editor/contexts/ChangedContentContext.d.ts +13 -0
- package/dist/types/editor/contexts/ChangedContentContext.d.ts.map +1 -0
- package/dist/types/editor/contexts/CommunicatorContext.d.ts +10 -0
- package/dist/types/editor/contexts/CommunicatorContext.d.ts.map +1 -0
- package/dist/types/editor/contexts/ConfigurationContext.d.ts +9 -0
- package/dist/types/editor/contexts/ConfigurationContext.d.ts.map +1 -0
- package/dist/types/editor/contexts/DictionariesRecordContext.d.ts +16 -0
- package/dist/types/editor/contexts/DictionariesRecordContext.d.ts.map +1 -0
- package/dist/types/editor/contexts/EditedContentContext.d.ts +33 -0
- package/dist/types/editor/contexts/EditedContentContext.d.ts.map +1 -0
- package/dist/types/editor/contexts/EditorEnabledContext.d.ts +11 -0
- package/dist/types/editor/contexts/EditorEnabledContext.d.ts.map +1 -0
- package/dist/types/editor/contexts/EditorProvider.d.ts +6 -0
- package/dist/types/editor/contexts/EditorProvider.d.ts.map +1 -0
- package/dist/types/editor/contexts/FocusDictionaryContext.d.ts +21 -0
- package/dist/types/editor/contexts/FocusDictionaryContext.d.ts.map +1 -0
- package/dist/types/editor/contexts/index.d.ts +13 -0
- package/dist/types/editor/contexts/index.d.ts.map +1 -0
- package/dist/types/editor/contexts/useCrossFrameMessageListener.d.ts +19 -0
- package/dist/types/editor/contexts/useCrossFrameMessageListener.d.ts.map +1 -0
- package/dist/types/editor/contexts/useCrossFrameState.d.ts +29 -0
- package/dist/types/editor/contexts/useCrossFrameState.d.ts.map +1 -0
- package/dist/types/editor/contexts/useCrossURLPathState.d.ts +4 -0
- package/dist/types/editor/contexts/useCrossURLPathState.d.ts.map +1 -0
- package/dist/types/editor/contexts/useIframeClickInterceptor.d.ts +9 -0
- package/dist/types/editor/contexts/useIframeClickInterceptor.d.ts.map +1 -0
- package/dist/types/editor/index.d.ts +2 -0
- package/dist/types/editor/index.d.ts.map +1 -0
- package/dist/types/editor/useEditedContentRenderer.d.ts +13 -0
- package/dist/types/editor/useEditedContentRenderer.d.ts.map +1 -0
- package/dist/types/getDictionary.d.ts +1 -1
- package/dist/types/getDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayer.d.ts +1 -1
- package/dist/types/getIntlayer.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownProvider.d.ts +12 -0
- package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -0
- package/dist/types/markdown/MarkdownRenderer.d.ts +16 -0
- package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -0
- package/dist/types/markdown/index.d.ts +2 -3
- package/dist/types/markdown/index.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +49 -23
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/solidElement/renderSolidElement.d.ts +3 -0
- package/dist/types/solidElement/renderSolidElement.d.ts.map +1 -0
- package/dist/web-BFg6-54-.mjs +443 -0
- package/dist/web-qH6jV2Kc.js +1 -0
- package/package.json +24 -18
- package/dist/cjs/client/index.cjs.map +0 -1
- package/dist/cjs/client/installIntlayer.cjs +0 -53
- package/dist/cjs/client/installIntlayer.cjs.map +0 -1
- package/dist/cjs/client/useDictionary.cjs.map +0 -1
- package/dist/cjs/client/useIntlayer.cjs.map +0 -1
- package/dist/cjs/client/useLocale.cjs.map +0 -1
- package/dist/cjs/getDictionary.cjs.map +0 -1
- package/dist/cjs/getIntlayer.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/markdown/index.cjs.map +0 -1
- package/dist/cjs/plugins.cjs.map +0 -1
- package/dist/esm/client/index.mjs.map +0 -1
- package/dist/esm/client/installIntlayer.mjs +0 -26
- package/dist/esm/client/installIntlayer.mjs.map +0 -1
- package/dist/esm/client/useDictionary.mjs.map +0 -1
- package/dist/esm/client/useIntlayer.mjs.map +0 -1
- package/dist/esm/client/useLocale.mjs.map +0 -1
- package/dist/esm/getDictionary.mjs.map +0 -1
- package/dist/esm/getIntlayer.mjs.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/markdown/index.mjs.map +0 -1
- package/dist/esm/plugins.mjs.map +0 -1
- package/dist/types/client/installIntlayer.d.ts +0 -11
- 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 @@
|
|
|
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 @@
|
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,9 +3,7 @@ declare module '@intlayer/core' {
|
|
|
3
3
|
interface IInterpreterPlugin<T, S> extends IInterpreterPluginSolid<T> {
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
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;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/markdown/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/markdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
package/dist/types/plugins.d.ts
CHANGED
|
@@ -1,32 +1,58 @@
|
|
|
1
|
-
import
|
|
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
|
-
*
|
|
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
|
-
|
|
8
|
-
|
|
39
|
+
solidNode: SolidNodeCond<T>;
|
|
40
|
+
intlayerNode: IntlayerNodeCond<T>;
|
|
41
|
+
markdown: MarkdownCond<T>;
|
|
9
42
|
}
|
|
10
43
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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;
|
|
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 @@
|
|
|
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"}
|