preact-intlayer 9.7.0 → 9.7.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 +1 -2
- package/dist/cjs/UI/ContentSelector.cjs +1 -2
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/cjs/analytics/AnalyticsProvider.cjs +2 -3
- package/dist/cjs/analytics/exposureSink.cjs +1 -2
- package/dist/cjs/analytics/index.cjs +4 -4
- package/dist/cjs/analytics/useAnalytics.cjs +4 -5
- package/dist/cjs/analytics/useConversion.cjs +2 -3
- package/dist/cjs/analytics/useExperiment.cjs +2 -3
- package/dist/cjs/client/IntlayerProvider.cjs +7 -8
- package/dist/cjs/client/index.cjs +11 -11
- package/dist/cjs/client/t.cjs +3 -4
- package/dist/cjs/client/useContent.cjs +3 -4
- package/dist/cjs/client/useDictionary.cjs +3 -4
- package/dist/cjs/client/useDictionary.cjs.map +1 -1
- package/dist/cjs/client/useDictionaryAsync.cjs +4 -5
- package/dist/cjs/client/useDictionaryDynamic.cjs +5 -6
- package/dist/cjs/client/useIntlayer.cjs +3 -4
- package/dist/cjs/client/useLoadDynamic.cjs +1 -2
- package/dist/cjs/client/useLocale.cjs +4 -5
- package/dist/cjs/client/useLocaleBase.cjs +3 -4
- package/dist/cjs/client/useLocaleStorage.cjs +1 -2
- package/dist/cjs/client/usePathname.cjs +1 -2
- package/dist/cjs/client/useTraduction.cjs +3 -4
- package/dist/cjs/editor/ContentSelector.cjs +2 -3
- package/dist/cjs/editor/EditorProvider.cjs +2 -3
- package/dist/cjs/editor/useEditor.cjs +3 -4
- package/dist/cjs/format/index.cjs +9 -9
- package/dist/cjs/format/useCompact.cjs +2 -3
- package/dist/cjs/format/useCurrency.cjs +2 -3
- package/dist/cjs/format/useDate.cjs +2 -3
- package/dist/cjs/format/useIntl.cjs +2 -3
- package/dist/cjs/format/useList.cjs +2 -3
- package/dist/cjs/format/useNumber.cjs +2 -3
- package/dist/cjs/format/usePercentage.cjs +2 -3
- package/dist/cjs/format/useRelativeTime.cjs +2 -3
- package/dist/cjs/format/useUnit.cjs +2 -3
- package/dist/cjs/getDictionary.cjs +2 -3
- package/dist/cjs/getDictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayer.cjs +2 -3
- package/dist/cjs/html/HTMLProvider.cjs +2 -3
- package/dist/cjs/html/HTMLRenderer.cjs +3 -4
- package/dist/cjs/html/index.cjs +2 -2
- package/dist/cjs/index.cjs +17 -17
- package/dist/cjs/markdown/MarkdownProvider.cjs +3 -4
- package/dist/cjs/markdown/MarkdownRenderer.cjs +3 -4
- package/dist/cjs/markdown/MarkdownRendererPlugin.cjs +4 -5
- package/dist/cjs/markdown/compiler.cjs +2 -3
- package/dist/cjs/markdown/index.cjs +3 -3
- package/dist/cjs/markdown/runtime.cjs +1 -2
- package/dist/cjs/plugins.cjs +10 -11
- package/dist/cjs/plugins.cjs.map +1 -1
- package/dist/cjs/preactElement/renderPreactElement.cjs +1 -2
- package/dist/esm/IntlayerNode.mjs +1 -2
- package/dist/esm/UI/ContentSelector.mjs +1 -2
- package/dist/esm/analytics/AnalyticsProvider.mjs +1 -2
- package/dist/esm/analytics/exposureSink.mjs +1 -2
- package/dist/esm/analytics/index.mjs +1 -1
- package/dist/esm/analytics/useAnalytics.mjs +3 -4
- package/dist/esm/analytics/useConversion.mjs +2 -3
- package/dist/esm/analytics/useExperiment.mjs +2 -3
- package/dist/esm/client/IntlayerProvider.mjs +5 -6
- package/dist/esm/client/index.mjs +2 -2
- package/dist/esm/client/t.mjs +2 -3
- package/dist/esm/client/useContent.mjs +1 -2
- package/dist/esm/client/useDictionary.mjs +1 -2
- package/dist/esm/client/useDictionary.mjs.map +1 -1
- package/dist/esm/client/useDictionaryAsync.mjs +2 -3
- package/dist/esm/client/useDictionaryDynamic.mjs +2 -3
- package/dist/esm/client/useIntlayer.mjs +1 -2
- package/dist/esm/client/useLoadDynamic.mjs +1 -2
- package/dist/esm/client/useLocale.mjs +3 -4
- package/dist/esm/client/useLocaleBase.mjs +2 -3
- package/dist/esm/client/useLocaleStorage.mjs +1 -2
- package/dist/esm/client/usePathname.mjs +1 -2
- package/dist/esm/client/useTraduction.mjs +2 -3
- package/dist/esm/editor/ContentSelector.mjs +2 -3
- package/dist/esm/editor/EditorProvider.mjs +1 -2
- package/dist/esm/editor/useEditor.mjs +2 -3
- package/dist/esm/format/index.mjs +5 -5
- package/dist/esm/format/useCompact.mjs +1 -2
- package/dist/esm/format/useCurrency.mjs +1 -2
- package/dist/esm/format/useDate.mjs +1 -2
- package/dist/esm/format/useIntl.mjs +1 -2
- package/dist/esm/format/useList.mjs +1 -2
- package/dist/esm/format/useNumber.mjs +1 -2
- package/dist/esm/format/usePercentage.mjs +1 -2
- package/dist/esm/format/useRelativeTime.mjs +1 -2
- package/dist/esm/format/useUnit.mjs +1 -2
- package/dist/esm/getDictionary.mjs +1 -2
- package/dist/esm/getDictionary.mjs.map +1 -1
- package/dist/esm/getIntlayer.mjs +1 -2
- package/dist/esm/html/HTMLProvider.mjs +2 -3
- package/dist/esm/html/HTMLRenderer.mjs +2 -3
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/markdown/MarkdownProvider.mjs +2 -3
- package/dist/esm/markdown/MarkdownRenderer.mjs +1 -2
- package/dist/esm/markdown/MarkdownRendererPlugin.mjs +2 -3
- package/dist/esm/markdown/compiler.mjs +1 -2
- package/dist/esm/markdown/runtime.mjs +1 -2
- package/dist/esm/plugins.mjs +5 -6
- package/dist/esm/plugins.mjs.map +1 -1
- package/dist/esm/preactElement/renderPreactElement.mjs +1 -2
- package/dist/types/IntlayerNode.d.ts +2 -3
- package/dist/types/IntlayerNode.d.ts.map +1 -1
- package/dist/types/UI/ContentSelector.d.ts +1 -2
- package/dist/types/UI/ContentSelector.d.ts.map +1 -1
- package/dist/types/analytics/AnalyticsProvider.d.ts +0 -2
- package/dist/types/analytics/AnalyticsProvider.d.ts.map +1 -1
- package/dist/types/analytics/exposureSink.d.ts +0 -2
- package/dist/types/analytics/exposureSink.d.ts.map +1 -1
- package/dist/types/analytics/useAnalytics.d.ts +0 -2
- package/dist/types/analytics/useAnalytics.d.ts.map +1 -1
- package/dist/types/analytics/useConversion.d.ts +0 -2
- package/dist/types/analytics/useConversion.d.ts.map +1 -1
- package/dist/types/analytics/useExperiment.d.ts +0 -2
- package/dist/types/analytics/useExperiment.d.ts.map +1 -1
- package/dist/types/client/IntlayerProvider.d.ts +1 -2
- package/dist/types/client/IntlayerProvider.d.ts.map +1 -1
- package/dist/types/client/t.d.ts +0 -2
- package/dist/types/client/t.d.ts.map +1 -1
- package/dist/types/client/useContent.d.ts +0 -2
- package/dist/types/client/useContent.d.ts.map +1 -1
- package/dist/types/client/useDictionary.d.ts +0 -2
- package/dist/types/client/useDictionary.d.ts.map +1 -1
- package/dist/types/client/useDictionaryAsync.d.ts +0 -2
- package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
- package/dist/types/client/useDictionaryDynamic.d.ts +0 -2
- package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
- package/dist/types/client/useIntlayer.d.ts +0 -2
- package/dist/types/client/useIntlayer.d.ts.map +1 -1
- package/dist/types/client/useLoadDynamic.d.ts +0 -2
- package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
- package/dist/types/client/useLocale.d.ts +1 -2
- package/dist/types/client/useLocale.d.ts.map +1 -1
- package/dist/types/client/useLocaleBase.d.ts +0 -2
- package/dist/types/client/useLocaleBase.d.ts.map +1 -1
- package/dist/types/client/useLocaleStorage.d.ts +0 -2
- package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
- package/dist/types/client/usePathname.d.ts +0 -2
- package/dist/types/client/usePathname.d.ts.map +1 -1
- package/dist/types/client/useTraduction.d.ts +0 -2
- package/dist/types/client/useTraduction.d.ts.map +1 -1
- package/dist/types/editor/ContentSelector.d.ts +0 -2
- package/dist/types/editor/ContentSelector.d.ts.map +1 -1
- package/dist/types/editor/EditorProvider.d.ts +0 -2
- package/dist/types/editor/EditorProvider.d.ts.map +1 -1
- package/dist/types/editor/useEditor.d.ts +0 -2
- package/dist/types/editor/useEditor.d.ts.map +1 -1
- package/dist/types/format/useCompact.d.ts +0 -2
- package/dist/types/format/useCompact.d.ts.map +1 -1
- package/dist/types/format/useCurrency.d.ts +0 -2
- package/dist/types/format/useCurrency.d.ts.map +1 -1
- package/dist/types/format/useDate.d.ts +0 -2
- package/dist/types/format/useDate.d.ts.map +1 -1
- package/dist/types/format/useIntl.d.ts +0 -2
- package/dist/types/format/useIntl.d.ts.map +1 -1
- package/dist/types/format/useList.d.ts +0 -2
- package/dist/types/format/useList.d.ts.map +1 -1
- package/dist/types/format/useNumber.d.ts +0 -2
- package/dist/types/format/useNumber.d.ts.map +1 -1
- package/dist/types/format/usePercentage.d.ts +0 -2
- package/dist/types/format/usePercentage.d.ts.map +1 -1
- package/dist/types/format/useRelativeTime.d.ts +0 -2
- package/dist/types/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/format/useUnit.d.ts +0 -2
- package/dist/types/format/useUnit.d.ts.map +1 -1
- package/dist/types/getDictionary.d.ts +0 -2
- package/dist/types/getDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayer.d.ts +0 -2
- package/dist/types/getIntlayer.d.ts.map +1 -1
- package/dist/types/html/HTMLProvider.d.ts +1 -2
- package/dist/types/html/HTMLProvider.d.ts.map +1 -1
- package/dist/types/html/HTMLRenderer.d.ts +0 -2
- package/dist/types/html/HTMLRenderer.d.ts.map +1 -1
- package/dist/types/html/index.d.ts +1 -1
- package/dist/types/html/types.d.ts +1 -2
- package/dist/types/html/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownProvider.d.ts +1 -2
- package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownRenderer.d.ts +0 -2
- package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/dist/types/markdown/MarkdownRendererPlugin.d.ts +1 -2
- package/dist/types/markdown/MarkdownRendererPlugin.d.ts.map +1 -1
- package/dist/types/markdown/compiler.d.ts +3 -2
- package/dist/types/markdown/compiler.d.ts.map +1 -1
- package/dist/types/markdown/runtime.d.ts +3 -2
- package/dist/types/markdown/runtime.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +3 -5
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/preactElement/renderPreactElement.d.ts +0 -2
- package/dist/types/preactElement/renderPreactElement.d.ts.map +1 -1
- package/package.json +50 -50
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/client/useLoadDynamic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/client/useLoadDynamic.ts"],"mappings":"A,qBA2Ba,iBAAkB,GAAC,aAAa,SAAW,QAAQ,OAAK"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
-
//#region src/client/useLocale.d.ts
|
|
3
2
|
type UseLocaleProps = {
|
|
4
3
|
isCookieEnabled?: boolean;
|
|
5
4
|
onLocaleChange?: (locale: DeclaredLocales) => void;
|
|
@@ -34,5 +33,5 @@ type UseLocaleResult = {
|
|
|
34
33
|
* ```
|
|
35
34
|
*/
|
|
36
35
|
export declare const useLocale: ({ isCookieEnabled, onLocaleChange }?: UseLocaleProps) => UseLocaleResult;
|
|
37
|
-
|
|
36
|
+
export {};
|
|
38
37
|
//# sourceMappingURL=useLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";KASK;EACH;EACA,kBAAkB,QAAQ;;KAGvB;EACH,QAAQ;EACR,eAAe;EACf,kBAAkB;EAClB,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;qBA4BT,cAAS,iBAAA,mBAGnB,mBAAsB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/client/useLocaleBase.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* On the client side, hook to get the current locale and all related fields
|
|
4
3
|
*/
|
|
@@ -8,5 +7,4 @@ export declare const useLocaleBase: () => {
|
|
|
8
7
|
availableLocales: import("@intlayer/types").Locale[];
|
|
9
8
|
setLocale: (newLocale: import("@intlayer/types").LocalesValues) => void;
|
|
10
9
|
};
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=useLocaleBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocaleBase.d.ts","names":[],"sources":["../../../src/client/useLocaleBase.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocaleBase.d.ts","names":[],"sources":["../../../src/client/useLocaleBase.ts"],"mappings":";;;qBASa"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
-
//#region src/client/useLocaleStorage.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Reads the locale persisted in the browser storage (cookie, localStorage…).
|
|
5
4
|
*
|
|
@@ -45,5 +44,4 @@ export declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
|
|
|
45
44
|
* Hook that provides the locale cookie and a function to set it
|
|
46
45
|
*/
|
|
47
46
|
export declare const useLocaleCookie: typeof useLocaleStorage;
|
|
48
|
-
//#endregion
|
|
49
47
|
//# sourceMappingURL=useLocaleStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;;;qBAgBa,oDAAkB;;;;;;;qBAQlB,2CAAe;;;;;;qBAOf,wCAAY;;;;qBAKZ,qBAAkB,QACrB,eAAa;;;;;;qBAaV,wBAAe;;;;qBAKf,mBAAgB;;;;;;;;;;;qBAiBhB,wBAAe"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/client/usePathname.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Preact hook that returns the current pathname with the locale segment removed.
|
|
4
3
|
*
|
|
@@ -18,5 +17,4 @@
|
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
19
|
export declare const usePathname: () => string;
|
|
21
|
-
//#endregion
|
|
22
20
|
//# sourceMappingURL=usePathname.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePathname.d.ts","names":[],"sources":["../../../src/client/usePathname.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePathname.d.ts","names":[],"sources":["../../../src/client/usePathname.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAqBa"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
|
-
//#region src/client/useTraduction.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* On the client side, Hook that picking one dictionary by its id and return the content.
|
|
5
4
|
*
|
|
@@ -22,5 +21,4 @@ import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
|
22
21
|
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
23
22
|
*/
|
|
24
23
|
export declare const useTranslation: <Content = string>(languageContent: StrictModeLocaleMap<Content>) => Content;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# sourceMappingURL=useTraduction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTraduction.d.ts","names":[],"sources":["../../../src/client/useTraduction.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTraduction.d.ts","names":[],"sources":["../../../src/client/useTraduction.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qBA0Ba,iBAAkB,kBAAgB,iBAC5B,oBAAoB,aACpC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { NodeProps } from "@intlayer/core/interpreter";
|
|
2
2
|
import { FunctionalComponent, HTMLAttributes } from "preact";
|
|
3
|
-
//#region src/editor/ContentSelector.d.ts
|
|
4
3
|
declare module 'preact' {
|
|
5
4
|
namespace JSX {
|
|
6
5
|
interface IntrinsicElements {
|
|
@@ -13,5 +12,4 @@ declare module 'preact' {
|
|
|
13
12
|
}
|
|
14
13
|
export type ContentSelectorWrapperProps = NodeProps & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
15
14
|
export declare const ContentSelector: FunctionalComponent<ContentSelectorWrapperProps>;
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=ContentSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/editor/ContentSelector.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/editor/ContentSelector.tsx"],"mappings":";;;YAOY;cACE;MACR,qCAAqC,eAAe;QAClD;QACA;;;;;YAMI,8BAA8B,YACxC,KAAK,eAAe;qBAET,iBAAiB,oBAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"mappings":";qBAGa,gBAAgB;EAC3B,WAAW"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/editor/useEditor.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Initialises the Intlayer editor client singleton when the editor is enabled.
|
|
4
3
|
* Syncs the current locale from the Intlayer context into the editor manager so
|
|
5
4
|
* the editor always knows which locale the app is displaying.
|
|
6
5
|
*/
|
|
7
6
|
export declare const useEditor: () => void;
|
|
8
|
-
//#endregion
|
|
9
7
|
//# sourceMappingURL=useEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.tsx"],"mappings":";;;;;qBAWa"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/format/useCompact.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React client hook that provides a compact number formatter
|
|
4
3
|
* bound to the current application locale.
|
|
@@ -12,5 +11,4 @@
|
|
|
12
11
|
export declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
13
12
|
locale?: import("@intlayer/types").LocalesValues;
|
|
14
13
|
}) => string;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=useCompact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";;;;;;;;;;qBAca,mBAAU,wBAAA,UAAA,KAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/format/useCurrency.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React client hook that provides a currency formatter
|
|
4
3
|
* bound to the current application locale.
|
|
@@ -26,5 +25,4 @@
|
|
|
26
25
|
export declare const useCurrency: () => (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
27
26
|
locale?: import("@intlayer/types").LocalesValues;
|
|
28
27
|
}) => string;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=useCurrency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;qBA4Ba,oBAAW,wBAAA,UAAA,KAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { date } from "@intlayer/core/formatters";
|
|
2
|
-
//#region src/format/useDate.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* React client hook that provides a localized date/time formatter
|
|
5
4
|
* bound to the current application locale.
|
|
@@ -27,5 +26,4 @@ import { date } from "@intlayer/core/formatters";
|
|
|
27
26
|
* @see createDate
|
|
28
27
|
*/
|
|
29
28
|
export declare const useDate: () => (...args: Parameters<typeof date>) => string;
|
|
30
|
-
//#endregion
|
|
31
29
|
//# sourceMappingURL=useDate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8Ba,mBAAO,MAGD,kBAAkB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { WrappedIntl } from "@intlayer/core/formatters";
|
|
3
|
-
//#region src/format/useIntl.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Preact client hook that provides a locale-bound `Intl` object.
|
|
6
5
|
*
|
|
@@ -20,5 +19,4 @@ import { WrappedIntl } from "@intlayer/core/formatters";
|
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
21
|
export declare const useIntl: (locale?: LocalesValues) => WrappedIntl;
|
|
23
|
-
//#endregion
|
|
24
22
|
//# sourceMappingURL=useIntl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/format/useIntl.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/format/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAuBa,UAAO,SAAa,kBAAa"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/format/useList.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React client hook that provides a list formatter
|
|
4
3
|
* bound to the current application locale.
|
|
@@ -23,5 +22,4 @@
|
|
|
23
22
|
export declare const useList: () => (values: (string | number)[], options?: import("@intlayer/core/formatters").ListFormatOptions & {
|
|
24
23
|
locale?: import("@intlayer/types").LocalesValues;
|
|
25
24
|
}) => string;
|
|
26
|
-
//#endregion
|
|
27
25
|
//# sourceMappingURL=useList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBAyBa,gBAAO,6BAAA,8CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/format/useNumber.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React client hook that provides a localized number formatter.
|
|
4
3
|
*
|
|
@@ -24,5 +23,4 @@
|
|
|
24
23
|
export declare const useNumber: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
25
24
|
locale?: import("@intlayer/types").LocalesValues;
|
|
26
25
|
}) => string;
|
|
27
|
-
//#endregion
|
|
28
26
|
//# sourceMappingURL=useNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qBA0Ba,kBAAS,wBAAA,SAAA,KAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/format/usePercentage.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React hook to provide a percentage formatter function
|
|
4
3
|
* based on the current application locale.
|
|
@@ -20,5 +19,4 @@
|
|
|
20
19
|
export declare const usePercentage: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
21
20
|
locale?: import("@intlayer/types").LocalesValues;
|
|
22
21
|
}) => string;
|
|
23
|
-
//#endregion
|
|
24
22
|
//# sourceMappingURL=usePercentage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAsBa,sBAAa,wBAAA,SAAA,KAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/format/useRelativeTime.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Client-side React hook for accessing a localized relative time formatter.
|
|
4
3
|
*
|
|
@@ -21,5 +20,4 @@ export declare const useRelativeTime: () => (from: string | number | Date, to?:
|
|
|
21
20
|
locale?: import("@intlayer/types").LocalesValues;
|
|
22
21
|
unit?: Intl.RelativeTimeFormatUnit;
|
|
23
22
|
}) => string;
|
|
24
|
-
//#endregion
|
|
25
23
|
//# sourceMappingURL=useRelativeTime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAsBa,wBAAe,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/format/useUnit.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* React hook that provides a unit formatting function
|
|
4
3
|
* based on the current locale from {@link useLocaleBase}.
|
|
@@ -19,5 +18,4 @@
|
|
|
19
18
|
export declare const useUnit: () => (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
20
19
|
locale?: import("@intlayer/types").LocalesValues;
|
|
21
20
|
}) => string;
|
|
22
|
-
//#endregion
|
|
23
21
|
//# sourceMappingURL=useUnit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAqBa,gBAAO,wBAAA,UAAA,KAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { DeepTransformContent } from "./plugins.js";
|
|
2
2
|
import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/getDictionary.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Transforms a dictionary (or qualified dictionary group) and returns its
|
|
7
6
|
* content for the given locale or selector (`{ item }`, `{ variant }`,
|
|
8
7
|
* optionally combined with `locale`).
|
|
9
8
|
*/
|
|
10
9
|
export declare const getDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=getDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;;qBAmBa,sBACL,UAAU,aAAa,gCACvB,UAAU,gBAAgB,2BAA2B,KACzD,iBAAe,YAEL,GAAC,mBACM,MAClB,qBACD,kCAAkC,GAAG,IACrC,sBAAsB"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { DeepTransformContent } from "./plugins.js";
|
|
2
2
|
import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
|
-
//#region src/getIntlayer.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Picks one dictionary by its key and returns its content for the given
|
|
6
5
|
* locale or selector (`{ item }`, `{ variant }`,
|
|
7
6
|
* optionally combined with `locale`).
|
|
8
7
|
*/
|
|
9
8
|
export declare const getIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>;
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=getIntlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"mappings":";;;;;;;qBAgBa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,MAClB,qBACD,yBAAyB,GAAG,IAC5B,sBAAsB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HTMLComponents } from "./types.js";
|
|
2
2
|
import { FunctionalComponent, RenderableProps } from "preact";
|
|
3
|
-
//#region src/html/HTMLProvider.d.ts
|
|
4
3
|
type HTMLContextValue = {
|
|
5
4
|
components?: HTMLComponents<'permissive', {}>;
|
|
6
5
|
};
|
|
@@ -12,5 +11,5 @@ type HTMLProviderProps = RenderableProps<{
|
|
|
12
11
|
}>;
|
|
13
12
|
export declare const useHTMLContext: () => HTMLContextValue;
|
|
14
13
|
export declare const HTMLProvider: FunctionalComponent<HTMLProviderProps>;
|
|
15
|
-
|
|
14
|
+
export {};
|
|
16
15
|
//# sourceMappingURL=HTMLProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HTMLProvider.d.ts","names":[],"sources":["../../../src/html/HTMLProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"HTMLProvider.d.ts","names":[],"sources":["../../../src/html/HTMLProvider.tsx"],"mappings":";;KAQK;EACH,aAAa;;KAGV,oBAAoB;;;;EAIvB,aAAa;;qBAKF,sBAAc;qBAEd,cAAc,oBAAoB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLComponents } from "./types.js";
|
|
2
2
|
import { FunctionComponent, JSX } from "preact";
|
|
3
3
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
4
|
-
//#region src/html/HTMLRenderer.d.ts
|
|
5
4
|
export type RenderHTMLProps = {
|
|
6
5
|
/**
|
|
7
6
|
* Component overrides for HTML tags.
|
|
@@ -43,5 +42,4 @@ export type HTMLRendererProps = RenderHTMLProps & {
|
|
|
43
42
|
* Preact component that renders HTML-like content to JSX.
|
|
44
43
|
*/
|
|
45
44
|
export declare const HTMLRenderer: FunctionComponent<HTMLRendererProps>;
|
|
46
|
-
//#endregion
|
|
47
45
|
//# sourceMappingURL=HTMLRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HTMLRenderer.d.ts","names":[],"sources":["../../../src/html/HTMLRenderer.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"HTMLRenderer.d.ts","names":[],"sources":["../../../src/html/HTMLRenderer.tsx"],"mappings":";;;YAOY;;;;;EAKV,aAAa;;;;;;;;qBASF,aAAU,mBACN,eACM,oBACpB,IAAI;;;;;;;qBAuCM,oBAAe,eAAoB,qBAAe,oBAGtC,IAAA;YAUb,oBAAoB;;;;EAI9B;;;;EAIA;;;;EAIA,aAAa;EACb;EACA,UAAU;;;;;qBAMC,cAAc,kBAAkB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLComponents } from "./types.js";
|
|
2
1
|
import { HTMLProvider, useHTMLContext } from "./HTMLProvider.js";
|
|
3
2
|
import { HTMLRenderer, HTMLRendererProps, RenderHTMLProps, renderHTML, useHTMLRenderer } from "./HTMLRenderer.js";
|
|
3
|
+
import { HTMLComponents } from "./types.js";
|
|
4
4
|
export { type HTMLComponents, HTMLProvider, HTMLRenderer, type HTMLRendererProps, type RenderHTMLProps, renderHTML, useHTMLContext, useHTMLRenderer };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FunctionalComponent, JSX } from "preact";
|
|
2
2
|
import { HTMLTagsType } from "@intlayer/core/transpiler";
|
|
3
|
-
//#region src/html/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Helper to extract specific props from the configuration value.
|
|
6
5
|
*/
|
|
@@ -32,5 +31,5 @@ export type HTMLComponents<Mode extends HTMLComponentMode = 'optional', T = {}>
|
|
|
32
31
|
[key: string]: FunctionalComponent<JSX.HTMLAttributes<HTMLElement>>;
|
|
33
32
|
} // Optional (Default): Keys in T optional. Rest of HTML optional.
|
|
34
33
|
: DefinedComponents<T, false> & RestHTMLComponents<T>;
|
|
35
|
-
|
|
34
|
+
export {};
|
|
36
35
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/html/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/html/types.ts"],"mappings":";;;;;KAMK,gBAAgB,SAAS,0BAE1B,uBACE;;;;KAMD,aAAa,KAAK,gBAAgB,IAAI,oBACvC,IAAI,kBAAkB,KACtB,IAAI,eAAe;;;;;KAMlB,kBAAkB,GAAG,8BAA8B,6BAGjD,WAAW,IAAI,oBACd,aAAa,KAAK,gBAAgB,EAAE,aAKrC,WAAW,KAAK,oBACf,aAAa,KAAK,gBAAgB,EAAE;;;;;KAQvC,mBAAmB,QACrB,KAAK,cAAc,oBAAoB,MAAM,oBAC5C,gBAAgB,IAAI,oBAChB,IAAI,kBAAkB,KACtB,IAAI,eAAe;;;;YAOf;;;;YASA,eACV,aAAa,gCACb,UACE,wBAEA,kBAAkB,WAClB;GAEE,kBAAkB,WAAW,mBAAmB,KAChD;GAEE,kBAAkB,YAChB,mBAAmB;GAChB,cAAc,oBAAoB,IAAI,eAAe;;GAG1D,kBAAkB,YAAY,mBAAmB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IInterpreterPluginPreact } from "./plugins.js";
|
|
2
|
+
import "./analytics/index.js";
|
|
2
3
|
import { AnalyticsProvider } from "./analytics/AnalyticsProvider.js";
|
|
3
4
|
import { useAnalytics } from "./analytics/useAnalytics.js";
|
|
4
5
|
import { ConversionParams, useConversion } from "./analytics/useConversion.js";
|
|
5
6
|
import { ExperimentState, useExperiment } from "./analytics/useExperiment.js";
|
|
6
|
-
import "./
|
|
7
|
+
import "./client/index.js";
|
|
7
8
|
import { IntlayerClientContext, IntlayerProvider, IntlayerProviderContent, IntlayerProviderProps, useIntlayerContext } from "./client/IntlayerProvider.js";
|
|
8
9
|
import { t } from "./client/t.js";
|
|
9
|
-
import { IInterpreterPluginPreact } from "./plugins.js";
|
|
10
10
|
import { useDictionary } from "./client/useDictionary.js";
|
|
11
11
|
import { useDictionaryAsync } from "./client/useDictionaryAsync.js";
|
|
12
12
|
import { useDictionaryDynamic } from "./client/useDictionaryDynamic.js";
|
|
@@ -16,14 +16,12 @@ import { useLocale } from "./client/useLocale.js";
|
|
|
16
16
|
import { useLocaleBase } from "./client/useLocaleBase.js";
|
|
17
17
|
import { localeCookie, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage } from "./client/useLocaleStorage.js";
|
|
18
18
|
import { usePathname } from "./client/usePathname.js";
|
|
19
|
-
import "./client/index.js";
|
|
20
19
|
import { getDictionary } from "./getDictionary.js";
|
|
21
20
|
import { getIntlayer } from "./getIntlayer.js";
|
|
21
|
+
import { IntlayerNode } from "./IntlayerNode.js";
|
|
22
22
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
23
|
-
//#region src/index.d.ts
|
|
24
23
|
declare module '@intlayer/core/interpreter' {
|
|
25
24
|
interface IInterpreterPlugin<T, S, L extends LocalesValues> extends IInterpreterPluginPreact<T, S, L> {}
|
|
26
25
|
}
|
|
27
|
-
//#endregion
|
|
28
26
|
export { AnalyticsProvider, type ConversionParams, type ExperimentState, IntlayerClientContext, type IntlayerNode, IntlayerProvider, IntlayerProviderContent, type IntlayerProviderProps, getDictionary, getIntlayer, localeCookie, setLocaleCookie, setLocaleInStorage, t, useAnalytics, useConversion, useDictionary, useDictionaryAsync, useDictionaryDynamic, useExperiment, useIntlayer, useIntlayerContext, useLoadDynamic, useLocale, useLocaleBase, useLocaleCookie, useLocaleStorage, usePathname };
|
|
29
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAIY,mBACR,GACA,GACA,UAAU,uBACF,yBAAyB,GAAG,GAAG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLComponents } from "../html/types.js";
|
|
2
2
|
import { ParsedMarkdown } from "./compiler.js";
|
|
3
3
|
import { ComponentChildren, ComponentType, FunctionComponent, JSX } from "preact";
|
|
4
|
-
//#region src/markdown/MarkdownProvider.d.ts
|
|
5
4
|
type PropsWithChildren<P = {}> = P & {
|
|
6
5
|
children?: ComponentChildren;
|
|
7
6
|
};
|
|
@@ -47,5 +46,5 @@ type MarkdownProviderProps = PropsWithChildren<MarkdownProviderOptions & {
|
|
|
47
46
|
}>;
|
|
48
47
|
export declare const useMarkdownContext: () => MarkdownContextValue;
|
|
49
48
|
export declare const MarkdownProvider: FunctionComponent<MarkdownProviderProps>;
|
|
50
|
-
|
|
49
|
+
export {};
|
|
51
50
|
//# sourceMappingURL=MarkdownProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownProvider.d.ts","names":[],"sources":["../../../src/markdown/MarkdownProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkdownProvider.d.ts","names":[],"sources":["../../../src/markdown/MarkdownProvider.tsx"],"mappings":";;;KAWK,kBAAkB,UAAU;EAAM,WAAW;;;;;YAKtC;;;;EAIV;;;;EAIA;;;;EAIA;;;;EAIA;;KASG;EACH,aAAa;EACb,iBACE,mBAAmB,gBACnB,UAAU,yBACV,aAAa,kCACb,UAAU,+BAA+B,IAAI,sBAC1C,oBAAoB,QAAQ;;KAG9B,wBAAwB,kBAC3B;;;;EAIE,aAAa;;;;EAIb,UAAU,+BAA+B,IAAI;;;;;EAK7C,kBACE,mBAAmB,gBACnB,UAAU,yBACV,aAAa,kCACb,UAAU,+BAA+B,IAAI,sBAC1C,oBAAoB,QAAQ;;qBAQxB,0BAAkB;qBAuBlB,kBAAkB,kBAAkB"}
|
|
@@ -2,7 +2,6 @@ import { HTMLComponents } from "../html/types.js";
|
|
|
2
2
|
import { ParsedMarkdown } from "./compiler.js";
|
|
3
3
|
import { MarkdownProviderOptions } from "./MarkdownProvider.js";
|
|
4
4
|
import { ComponentChildren, ComponentType, FunctionComponent, JSX } from "preact";
|
|
5
|
-
//#region src/markdown/MarkdownRenderer.d.ts
|
|
6
5
|
export type RenderMarkdownProps = MarkdownProviderOptions & {
|
|
7
6
|
/**
|
|
8
7
|
* Component overrides for HTML tags.
|
|
@@ -42,5 +41,4 @@ export type MarkdownRendererProps = RenderMarkdownProps & {
|
|
|
42
41
|
* Otherwise, it falls back to the default compiler with provided components and options.
|
|
43
42
|
*/
|
|
44
43
|
export declare const MarkdownRenderer: FunctionComponent<MarkdownRendererProps>;
|
|
45
|
-
//#endregion
|
|
46
44
|
//# sourceMappingURL=MarkdownRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownRenderer.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRenderer.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkdownRenderer.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRenderer.tsx"],"mappings":";;;;YAiBY,sBAAsB;;;;;EAKhC,aAAa;;;;;EAKb,UAAU,2BAA2B,IAAI;;qBAG9B,iBAAc,kBACP,kBAAc,YAAA,SAAA,YAAA,aAAA,qBAAA,cAQ7B,wBACF,IAAI;qBAeM,wBAAmB,YAAA,SAAA,YAAA,aAAA,qBAAA,cAO7B,yBAAmB,kBAGM,mBAAc;YA0B9B,wBAAwB;;;;EAIlC,mBAAmB;;;;;EAKnB,kBACE,mBAAmB,gBACnB;IACE,aAAa;IACb,UAAU,2BAA2B,IAAI;IACzC;IACA;IACA;IACA;QAEC,oBAAoB,QAAQ;;;;;;;;qBAStB,kBAAkB,kBAAkB"}
|
|
@@ -3,7 +3,6 @@ import { MarkdownProviderOptions } from "./MarkdownProvider.js";
|
|
|
3
3
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
4
4
|
import { FunctionComponent } from "preact";
|
|
5
5
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
6
|
-
//#region src/markdown/MarkdownRendererPlugin.d.ts
|
|
7
6
|
type MarkdownRendererPluginProps = {
|
|
8
7
|
dictionaryKey: string;
|
|
9
8
|
keyPath: KeyPath[];
|
|
@@ -17,5 +16,5 @@ type MarkdownMetadataRendererProps = MarkdownRendererPluginProps & {
|
|
|
17
16
|
metadataKeyPath: KeyPath[];
|
|
18
17
|
};
|
|
19
18
|
export declare const MarkdownMetadataRenderer: FunctionComponent<MarkdownMetadataRendererProps>;
|
|
20
|
-
|
|
19
|
+
export {};
|
|
21
20
|
//# sourceMappingURL=MarkdownRendererPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownRendererPlugin.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkdownRendererPlugin.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"mappings":";;;;;KAeK;EACH;EACA,SAAS;EACT,SAAS;EACT;EACA,UAAU;EACV,aAAa;;qBAGF,wBAAwB,kBACnC;KAYG,gCAAgC;EACnC,iBAAiB;;qBAGN,0BAA0B,kBACrC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preact adapter for the framework-agnostic markdown processor.
|
|
3
|
+
*/
|
|
1
4
|
import { HTMLComponents } from "../html/types.js";
|
|
2
5
|
import { ComponentType, JSX } from "preact";
|
|
3
6
|
import { CompileOptions, ParsedMarkdown } from "@intlayer/core/markdown";
|
|
4
|
-
//#region src/markdown/compiler.d.ts
|
|
5
7
|
/**
|
|
6
8
|
* Options accepted by `compileMarkdown` and `parseMarkdown` to customise
|
|
7
9
|
* rendering behaviour (custom components, sanitizer, slugify, rule hooks, …).
|
|
@@ -45,6 +47,5 @@ export declare const parseMarkdown: (markdown?: string, options?: MarkdownCompil
|
|
|
45
47
|
* ```
|
|
46
48
|
*/
|
|
47
49
|
export declare const compileMarkdown: (input?: string | ParsedMarkdown, options?: MarkdownCompilerOptions) => unknown;
|
|
48
|
-
//#endregion
|
|
49
50
|
export type { ParsedMarkdown };
|
|
50
51
|
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler.d.ts","names":[],"sources":["../../../src/markdown/compiler.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","names":[],"sources":["../../../src/markdown/compiler.ts"],"mappings":";;;;;;;;;;YAqBY,0BAA0B,KACpC,eAAe;EAGf,UAAU,+BAA+B,IAAI;EAC7C,aAAa;;;;;;;;;;;;;;;;;;;;qBA4BF,gBAAa,mBACR,UACP,4BACR;;;;;;;;;;;;;;;;qBAyCU,kBAAe,iBACV,gBAAc,UACrB"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preact-specific MarkdownRuntime implementation.
|
|
3
|
+
*/
|
|
1
4
|
import { MarkdownRuntime } from "@intlayer/core/markdown";
|
|
2
|
-
//#region src/markdown/runtime.d.ts
|
|
3
5
|
/**
|
|
4
6
|
* Preact-specific runtime for the markdown processor.
|
|
5
7
|
*/
|
|
6
8
|
export declare const preactRuntime: MarkdownRuntime;
|
|
7
|
-
//#endregion
|
|
8
9
|
export { preactRuntime as default };
|
|
9
10
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../../../src/markdown/runtime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../../../src/markdown/runtime.ts"],"mappings":";;;;;;;qBAgBa,eAAe"}
|
package/dist/types/plugins.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { IntlayerNode } from "./IntlayerNode.js";
|
|
2
1
|
import { HTMLComponents } from "./html/types.js";
|
|
3
|
-
import {
|
|
2
|
+
import { IntlayerNode } from "./IntlayerNode.js";
|
|
4
3
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
import {
|
|
4
|
+
import { DeepTransformContent as DeepTransformContent$1, IInterpreterPluginState as IInterpreterPluginState$1, Plugins } from "@intlayer/core/interpreter";
|
|
6
5
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
7
6
|
import { NodeType } from "@intlayer/types/nodeType";
|
|
8
|
-
|
|
7
|
+
import { VNode } from "preact";
|
|
9
8
|
/** ---------------------------------------------
|
|
10
9
|
* INTLAYER NODE PLUGIN
|
|
11
10
|
* --------------------------------------------- */
|
|
@@ -90,5 +89,4 @@ export type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> =
|
|
|
90
89
|
* This function is used by both getIntlayer and getDictionary to ensure consistent plugin configuration.
|
|
91
90
|
*/
|
|
92
91
|
export declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
|
|
93
|
-
//#endregion
|
|
94
92
|
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","names":["IInterpreterPluginStateCore","DeepTransformContentCore"],"sources":["../../src/plugins.tsx"],"mappings":";;;;;;;;;;YAgEY,iBAAiB,KAAK,4BAC9B,aAAa;;qBAIJ,qBAAqB;;;;YA+CtB,eAAe,KAAK;EAC9B;EACA;IAEE;;qBAIS,mBAAmB;;;;YA8CpB,cAAc,GAAG,IAAI,UAAU,iBAAiB;EAC1D,UAAU;GACT,UAAU,kBAAkB;EAC7B,wBAAwB;KAErB,aAAa,KAAK,QAAQ,+BAA+B,UACxD,QAAQ,MACL,mBACD,QAAQ,6BACN,uBACA,aAAa,SACf,qBAAqB,GAAG;;qBAuEnB,iBAAiB;;;;YAiFlB,mBAAmB,KAAK,mBAChC;EAGI,UAAU;EACV,MAAM,aAAa,qCAAqC;;;qBA4BnD,sBAAsB;YAiFvB,aAAa,KAAK;EAC5B,UAAU;GACT,UAAU,iBAAiB;EAC5B,iBAAiB;EACjB,aAAa;;EAGT,MAAM,aAAa,6BAA6B,OAAO;EACvD,UAAU,qBAAqB;;qBAIxB,gBAAgB;;;;YA8BjB,eAAe,KAAK;EAC9B,UAAU;GACT,UAAU,aAAa;EACxB,aAAa;;EAGT,MAAM,aAAa,6BAA6B,OAAO,aAAa;;;qBAW7D,YAAY;;;;iBAgDR,yBAAyB,GAAG,GAAG,UAAU;EACxD,YAAY,eAAe;EAC3B,oBAAoB,iBAAiB;EACrC,iBAAiB,cAAc,GAAG,GAAG;EACrC,gBAAgB,aAAa;EAC7B,YAAY,eAAe;;;;;;;YAQjB,0BAA0B,KACpCA;EAGA;EACA;EACA;EACA;EACA;;YAGU,qBACV,GACA,UAAU,gBAAgB,mBACxBC,uBAAyB,GAAG,yBAAyB;;;;;qBAQ5C,aAAU,SACZ,eAAa,uBAErB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderPreactElement.d.ts","names":[],"sources":["../../../src/preactElement/renderPreactElement.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderPreactElement.d.ts","names":[],"sources":["../../../src/preactElement/renderPreactElement.ts"],"mappings":";qBAGa,sBAAmB,SAAa"}
|