vanilla-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/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/cjs/client/index.cjs +8 -8
- package/dist/cjs/client/installIntlayer.cjs +3 -4
- package/dist/cjs/client/useDictionary.cjs +3 -4
- package/dist/cjs/client/useDictionary.cjs.map +1 -1
- package/dist/cjs/client/useDictionaryDynamic.cjs +4 -5
- package/dist/cjs/client/useIntlayer.cjs +3 -4
- package/dist/cjs/client/useLocale.cjs +3 -4
- package/dist/cjs/client/useLocaleStorage.cjs +1 -2
- package/dist/cjs/client/usePathname.cjs +1 -2
- package/dist/cjs/client/useRewriteURL.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/HTMLRenderer.cjs +2 -3
- package/dist/cjs/html/HTMLRenderer.cjs.map +1 -1
- package/dist/cjs/html/index.cjs +2 -2
- package/dist/cjs/html/installIntlayerHTML.cjs +1 -2
- package/dist/cjs/index.cjs +12 -12
- package/dist/cjs/markdown/MarkdownRenderer.cjs +3 -4
- package/dist/cjs/markdown/compiler.cjs +2 -3
- package/dist/cjs/markdown/index.cjs +3 -3
- package/dist/cjs/markdown/installIntlayerMarkdown.cjs +2 -3
- package/dist/cjs/markdown/runtime.cjs +1 -2
- package/dist/cjs/plugins.cjs +4 -5
- package/dist/cjs/plugins.cjs.map +1 -1
- package/dist/cjs/renderIntlayerNode.cjs +1 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/installIntlayer.mjs +2 -3
- package/dist/esm/client/useDictionary.mjs +1 -2
- package/dist/esm/client/useDictionary.mjs.map +1 -1
- package/dist/esm/client/useDictionaryDynamic.mjs +2 -3
- package/dist/esm/client/useIntlayer.mjs +1 -2
- package/dist/esm/client/useLocale.mjs +2 -3
- package/dist/esm/client/useLocaleStorage.mjs +1 -2
- package/dist/esm/client/usePathname.mjs +1 -2
- package/dist/esm/client/useRewriteURL.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/HTMLRenderer.mjs +1 -2
- package/dist/esm/html/HTMLRenderer.mjs.map +1 -1
- package/dist/esm/html/index.mjs +1 -1
- package/dist/esm/html/installIntlayerHTML.mjs +1 -2
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/markdown/MarkdownRenderer.mjs +1 -2
- package/dist/esm/markdown/compiler.mjs +1 -2
- package/dist/esm/markdown/installIntlayerMarkdown.mjs +1 -2
- package/dist/esm/markdown/runtime.mjs +1 -2
- package/dist/esm/plugins.mjs +2 -3
- package/dist/esm/plugins.mjs.map +1 -1
- package/dist/esm/renderIntlayerNode.mjs +1 -2
- package/dist/types/client/installIntlayer.d.ts +1 -2
- package/dist/types/client/installIntlayer.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/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/useLocale.d.ts +0 -2
- package/dist/types/client/useLocale.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/useRewriteURL.d.ts +0 -2
- package/dist/types/client/useRewriteURL.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/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/installIntlayerHTML.d.ts +0 -2
- package/dist/types/html/installIntlayerHTML.d.ts.map +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 +1 -3
- package/dist/types/index.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/compiler.d.ts +6 -2
- package/dist/types/markdown/compiler.d.ts.map +1 -1
- package/dist/types/markdown/installIntlayerMarkdown.d.ts +0 -2
- package/dist/types/markdown/installIntlayerMarkdown.d.ts.map +1 -1
- package/dist/types/markdown/runtime.d.ts +6 -2
- package/dist/types/markdown/runtime.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +0 -2
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/renderIntlayerNode.d.ts +1 -2
- package/dist/types/renderIntlayerNode.d.ts.map +1 -1
- package/package.json +48 -48
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLComponents } from "./types.js";
|
|
2
|
-
//#region src/html/installIntlayerHTML.d.ts
|
|
3
2
|
export type RenderHTMLOptions = {
|
|
4
3
|
components?: HTMLComponents<'permissive', {}>;
|
|
5
4
|
};
|
|
@@ -61,5 +60,4 @@ export declare const useHTML: () => IntlayerHTMLProvider;
|
|
|
61
60
|
* ```
|
|
62
61
|
*/
|
|
63
62
|
export declare const installIntlayerHTMLDynamic: (loader: () => Promise<IntlayerHTMLPluginOptions | RenderHTMLFunction>) => Promise<IntlayerHTMLProvider>;
|
|
64
|
-
//#endregion
|
|
65
63
|
//# sourceMappingURL=installIntlayerHTML.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installIntlayerHTML.d.ts","names":[],"sources":["../../../src/html/installIntlayerHTML.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"installIntlayerHTML.d.ts","names":[],"sources":["../../../src/html/installIntlayerHTML.ts"],"mappings":";YAEY;EACV,aAAa;;YAGH,sBACV,cACA,YAAY,mCAAmC;YAQrC;EACV,YAAY;;YAGF;EACV,aAAa;EACb,aAAa;;;;;qBAMF,2BAAwB,YACvB,uBACX;;;;;;;;;;;;;;;qBAoBU,sBAAmB,gBACd,4BAA4B,uBAC3C;;;;;;qBA2CU,eAAc;;;;;;;;;;;;;;;;;;;;;;;;;qBA6Bd,6BAA0B,cACvB,QAAQ,4BAA4B,wBACjD,QAAQ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLTagsType } from "@intlayer/core/transpiler";
|
|
2
|
-
//#region src/html/types.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Helper to extract specific props from the configuration value.
|
|
5
4
|
*/
|
|
@@ -34,5 +33,5 @@ export type HTMLComponentMode = 'permissive' | 'optional' | 'inclusive' | 'stric
|
|
|
34
33
|
export type HTMLComponents<Mode extends HTMLComponentMode = 'optional', T = {}> = Mode extends 'strict' ? DefinedComponents<T, true> : Mode extends 'inclusive' ? DefinedComponents<T, true> & RestHTMLComponents<T> : Mode extends 'permissive' ? DefinedComponents<T, false> & RestHTMLComponents<T> & {
|
|
35
34
|
[key: string]: VanillaHTMLComponent;
|
|
36
35
|
} : DefinedComponents<T, false> & RestHTMLComponents<T>;
|
|
37
|
-
|
|
36
|
+
export {};
|
|
38
37
|
//# 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":";;;;KAKK,gBAAgB,SAAS,0BAE1B,uBACE;;;;;KAOD,eAAe;EAClB;;;;;KAMG,qBAAqB,WAAW,OAAO,IAAI;;;;KAK3C,kBAAkB,GAAG,8BAA8B,6BAEjD,WAAW,IAAI,qBAAqB,gBAAgB,EAAE,aAGtD,WAAW,KAAK,qBAAqB,gBAAgB,EAAE;;;;KAMzD,mBAAmB,QACrB,KAAK,cAAc,oBAAoB,MAAM;;;;YAMpC;;;;;YAUA,eACV,aAAa,gCACb,UACE,wBACA,kBAAkB,WAClB,2BACE,kBAAkB,WAAW,mBAAmB,KAChD,4BACE,kBAAkB,YAChB,mBAAmB;GAChB,cAAc;IAEnB,kBAAkB,YAAY,mBAAmB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IntlayerClient, createIntlayerClient, getIntlayerClient, installIntlayer } from "./client/installIntlayer.js";
|
|
2
1
|
import { DeepTransformContent, HTMLPluginCond, IInterpreterPluginState, IInterpreterPluginVanilla, InsertionCond, IntlayerNode, IntlayerNodeCond, MarkdownCond, MarkdownStringCond, getPlugins, htmlPlugin, insertionPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin } from "./plugins.js";
|
|
2
|
+
import { IntlayerClient, createIntlayerClient, getIntlayerClient, installIntlayer } from "./client/installIntlayer.js";
|
|
3
3
|
import { WithOnChange, useDictionary } from "./client/useDictionary.js";
|
|
4
4
|
import { useDictionaryDynamic } from "./client/useDictionaryDynamic.js";
|
|
5
5
|
import { useIntlayer } from "./client/useIntlayer.js";
|
|
@@ -12,10 +12,8 @@ import { useEditor } from "./editor/useEditor.js";
|
|
|
12
12
|
import { getDictionary } from "./getDictionary.js";
|
|
13
13
|
import { getIntlayer } from "./getIntlayer.js";
|
|
14
14
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
15
|
-
//#region src/index.d.ts
|
|
16
15
|
declare module '@intlayer/core/interpreter' {
|
|
17
16
|
interface IInterpreterPlugin<T, S, L extends LocalesValues> extends IInterpreterPluginVanilla<T, S, L> {}
|
|
18
17
|
}
|
|
19
|
-
//#endregion
|
|
20
18
|
export { DeepTransformContent, HTMLPluginCond, IInterpreterPluginState, IInterpreterPluginVanilla, InsertionCond, IntlayerClient, IntlayerNode, IntlayerNodeCond, MarkdownCond, MarkdownStringCond, UseLocaleProps, UseLocaleResult, UsePathnameResult, WithOnChange, createIntlayerClient, getDictionary, getIntlayer, getIntlayerClient, getLocaleInStorage, getPlugins, htmlPlugin, insertionPlugin, installIntlayer, intlayerNodePlugins, localeCookie, localeInStorage, markdownPlugin, markdownStringPlugin, setLocaleCookie, setLocaleInStorage, useDictionary, useDictionaryDynamic, useEditor, useIntlayer, useLocale, useLocaleCookie, useLocaleStorage, usePathname, useRewriteURL };
|
|
21
19
|
//# 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,0BAA0B,GAAG,GAAG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLComponents } from "../html/types.js";
|
|
2
2
|
import { ParsedMarkdown } from "./compiler.js";
|
|
3
3
|
import { MarkdownProviderOptions } from "./installIntlayerMarkdown.js";
|
|
4
|
-
//#region src/markdown/MarkdownRenderer.d.ts
|
|
5
4
|
export type RenderMarkdownProps = MarkdownProviderOptions & {
|
|
6
5
|
components?: HTMLComponents<'permissive', {}>;
|
|
7
6
|
wrapper?: string;
|
|
@@ -22,5 +21,4 @@ export declare const renderMarkdown: (content: string | ParsedMarkdown, { forceB
|
|
|
22
21
|
* (installed via `installIntlayerMarkdown`), falling back to `compileMarkdown`.
|
|
23
22
|
*/
|
|
24
23
|
export declare const useMarkdownRenderer: (props?: RenderMarkdownProps) => ((content: string | ParsedMarkdown) => string | Promise<string>);
|
|
25
|
-
//#endregion
|
|
26
24
|
//# sourceMappingURL=MarkdownRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownRenderer.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRenderer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkdownRenderer.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRenderer.ts"],"mappings":";;;YAYY,sBAAsB;EAChC,aAAa;EACb;;;;;;;;;;;;qBAaW,iBAAc,kBACP,kBAAc,YAAA,aAAA,qBAAA,cAM7B;;;;;qBAeQ,sBAAmB,QACvB,0BACJ,kBAAkB,4BAA4B"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vanilla JS adapter for the framework-agnostic markdown processor.
|
|
3
|
+
*
|
|
4
|
+
* Compiles markdown to an HTML string for use with `innerHTML` or the
|
|
5
|
+
* `renderMarkdown` utility.
|
|
6
|
+
*/
|
|
1
7
|
import { CompileOptions, ParsedMarkdown } from "@intlayer/core/markdown";
|
|
2
|
-
//#region src/markdown/compiler.d.ts
|
|
3
8
|
/**
|
|
4
9
|
* Options accepted by `compileMarkdown` and `parseMarkdown` to customise
|
|
5
10
|
* rendering behaviour (custom components, sanitizer, slugify, rule hooks, …).
|
|
@@ -41,6 +46,5 @@ export declare const parseMarkdown: (markdown?: string, options?: MarkdownCompil
|
|
|
41
46
|
* ```
|
|
42
47
|
*/
|
|
43
48
|
export declare const compileMarkdown: (input?: string | ParsedMarkdown, options?: MarkdownCompilerOptions) => string;
|
|
44
|
-
//#endregion
|
|
45
49
|
export type { ParsedMarkdown };
|
|
46
50
|
//# 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;;;;;;;;;;;;;;;;;;;qBA2BzB,gBAAa,mBACR,UACP,4BACR;;;;;;;;;;;;;;;;;qBAoCU,kBAAe,iBACV,gBAAc,UACrB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HTMLComponents } from "../html/types.js";
|
|
2
2
|
import { ParsedMarkdown } from "./compiler.js";
|
|
3
|
-
//#region src/markdown/installIntlayerMarkdown.d.ts
|
|
4
3
|
export type MarkdownProviderOptions = {
|
|
5
4
|
/** Forces the compiler to always output content with a block-level wrapper. */
|
|
6
5
|
forceBlock?: boolean;
|
|
@@ -70,5 +69,4 @@ export declare const useMarkdown: () => IntlayerMarkdownProvider;
|
|
|
70
69
|
* ```
|
|
71
70
|
*/
|
|
72
71
|
export declare const installIntlayerMarkdownDynamic: (loader: () => Promise<IntlayerMarkdownPluginOptions | RenderMarkdownFunction>) => Promise<IntlayerMarkdownProvider>;
|
|
73
|
-
//#endregion
|
|
74
72
|
//# sourceMappingURL=installIntlayerMarkdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installIntlayerMarkdown.d.ts","names":[],"sources":["../../../src/markdown/installIntlayerMarkdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"installIntlayerMarkdown.d.ts","names":[],"sources":["../../../src/markdown/installIntlayerMarkdown.ts"],"mappings":";;YAOY;;EAEV;;EAEA;;EAEA;;EAEA;;YAGU,wBAAwB;EAClC,aAAa;EACb;;YAGU,0BACV,mBAAmB,gBACnB,UAAU,yBACV,aAAa,kCACb,8BACY;YAOF;EACV,aAAa;EACb,gBAAgB;;YAGN,gCAAgC;EAC1C,aAAa;EACb;EACA,iBAAiB;;;;;qBAMN,+BAA4B,gBACvB,wBAAsB,aACzB,qCACZ;;;;;;;;;;;qBAiBU,0BAAuB,gBAClB,gCAAgC,2BAC/C;;;;;;qBAsDU,mBAAkB;;;;;;;;;;;;;;;;;;;;;;;;qBAgClB,iCAA8B,cAC3B,QAAQ,gCAAgC,4BACrD,QAAQ"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vanilla JS adapter for the framework-agnostic markdown processor.
|
|
3
|
+
*
|
|
4
|
+
* Builds HTML strings which can be inserted into the DOM via `innerHTML`
|
|
5
|
+
* or the `renderMarkdown` utility.
|
|
6
|
+
*/
|
|
1
7
|
import { MarkdownRuntime } from "@intlayer/core/markdown";
|
|
2
|
-
//#region src/markdown/runtime.d.ts
|
|
3
8
|
/**
|
|
4
9
|
* Vanilla-specific MarkdownRuntime that produces HTML strings.
|
|
5
10
|
*/
|
|
@@ -10,6 +15,5 @@ export declare const vanillaRuntime: MarkdownRuntime;
|
|
|
10
15
|
export declare const createVanillaRuntime: (options?: {
|
|
11
16
|
onCreateElement?: (type: any, props: Record<string, any> | null, children: any[]) => string;
|
|
12
17
|
}) => MarkdownRuntime;
|
|
13
|
-
//#endregion
|
|
14
18
|
export { vanillaRuntime as default };
|
|
15
19
|
//# 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":";;;;;;;;;;qBA6Ca,gBAAgB;;;;qBA6EhB,uBAAoB;EAE7B,mBACE,WACA,OAAO,4BACP;MAGH"}
|
package/dist/types/plugins.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentat
|
|
|
4
4
|
import { DeepTransformContent as DeepTransformContent$1, IInterpreterPluginState as IInterpreterPluginState$1, Plugins } from "@intlayer/core/interpreter";
|
|
5
5
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
6
6
|
import { NodeType } from "@intlayer/types/nodeType";
|
|
7
|
-
//#region src/plugins.d.ts
|
|
8
7
|
/** ---------------------------------------------
|
|
9
8
|
* INTLAYER NODE PLUGIN
|
|
10
9
|
* --------------------------------------------- */
|
|
@@ -75,5 +74,4 @@ export type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> =
|
|
|
75
74
|
* This function is used by both getIntlayer and getDictionary to ensure consistent plugin configuration.
|
|
76
75
|
*/
|
|
77
76
|
export declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
|
|
78
|
-
//#endregion
|
|
79
77
|
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","names":["IntlayerNodeCore","IInterpreterPluginStateCore","DeepTransformContentCore"],"sources":["../../src/plugins.ts"],"mappings":";;;;;;;;;YA+CY,iBAAiB,KAAK,4BAC9B,aAAa;YAGL,aAAa,GAAG,UAAUA,eAAiB,KAAK;qBAQ/C,qBAAqB;;;;YAiDtB,cAAc,GAAG,IAAI,UAAU,iBAAiB;EAC1D,UAAU;GACT,UAAU,kBAAkB;EAC7B,wBAAwB;KAErB,aAAa,KAAK,QAAQ,iCACzB,QAAQ,MACL,mBAAmB,uBAAuB,qBAAqB,GAAG;qBAG9D,iBAAiB;YA6GlB,mBAAmB,KAAK,mBAChC;EAGI,UAAU;;EAEV,MAAM,aAAa;;qBAKd,sBAAsB;YAuEvB,aAAa,KAAK;EAC5B,UAAU;GACT,UAAU,iBAAiB;EAC5B,iBAAiB;EACjB,aAAa;;EAGT,MAAM,aAAa,6BAA6B,OAAO,aAAa;EACpE,UAAU,qBAAqB;;qBAIxB,gBAAgB;;;;YA2BjB,eAAe,KAAK;EAC9B,UAAU;GACT,UAAU,aAAa;EACxB,aAAa;;EAGT,MAAM,aAAa,6BAA6B,OAAO,aAAa;;qBAI7D,YAAY;;;;iBAqER,0BAA0B,GAAG,GAAG,UAAU;EACzD,qBAAqB,iBAAiB;EACtC,kBAAkB,cAAc,GAAG,GAAG;EACtC,iBAAiB,aAAa;EAC9B,aAAa,eAAe;;;;;;;;;YAUlB,0BAA0B,KACpCC;EAGA;EACA;EACA;EACA;;YAGU,qBACV,GACA,UAAU,gBAAgB,mBACxBC,uBAAyB,GAAG,yBAAyB;;;;;qBAQ5C,aAAU,SACZ,eAAa,uBAErB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ResolvedEditor } from "@intlayer/types/module_augmentation";
|
|
2
|
-
//#region src/renderIntlayerNode.d.ts
|
|
3
2
|
type IntlayerNodeMembers<T> = {
|
|
4
3
|
raw: T;
|
|
5
4
|
value: T;
|
|
@@ -22,5 +21,5 @@ export declare const renderIntlayerNode: <T>({ value, children, additionalProps
|
|
|
22
21
|
additionalProps?: Record<string, unknown>;
|
|
23
22
|
[key: string]: unknown;
|
|
24
23
|
}) => IntlayerNode<T>;
|
|
25
|
-
|
|
24
|
+
export {};
|
|
26
25
|
//# sourceMappingURL=renderIntlayerNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderIntlayerNode.d.ts","names":[],"sources":["../../src/renderIntlayerNode.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderIntlayerNode.d.ts","names":[],"sources":["../../src/renderIntlayerNode.ts"],"mappings":";KAGK,oBAAoB;EACvB,KAAK;EACL,OAAO;EACP;EACA,eAAe;EACf,cAAc;EACd,WAAW,MAAM,aAAa;;;;;;;;;YAUpB,aAAa,cAAc,eACrC,IAAI,oBAAoB,IACxB,oBAAoB;qBAGT,qBACX,KAAC,OAAA,UAAA;EAMD,OAAO;EACP;EACA,kBAAkB;GACjB;MACC,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vanilla-intlayer",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Vanilla JS, HTML, and PHP applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
7
|
-
"intlayer",
|
|
8
7
|
"data",
|
|
8
|
+
"i18n",
|
|
9
9
|
"internationalization",
|
|
10
|
+
"intlayer",
|
|
11
|
+
"json",
|
|
10
12
|
"multilingual",
|
|
11
|
-
"i18n",
|
|
12
13
|
"typescript",
|
|
13
|
-
"vanilla"
|
|
14
|
-
"json"
|
|
14
|
+
"vanilla"
|
|
15
15
|
],
|
|
16
16
|
"homepage": "https://intlayer.org",
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/aymericzip/intlayer/issues"
|
|
19
19
|
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
23
|
-
},
|
|
24
20
|
"license": "Apache-2.0",
|
|
25
21
|
"author": {
|
|
26
22
|
"name": "Aymeric PINEAU",
|
|
@@ -33,7 +29,37 @@
|
|
|
33
29
|
"url": "https://github.com/aymericzip"
|
|
34
30
|
}
|
|
35
31
|
],
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"./dist",
|
|
38
|
+
"./package.json"
|
|
39
|
+
],
|
|
36
40
|
"sideEffects": false,
|
|
41
|
+
"main": "dist/cjs/index.cjs",
|
|
42
|
+
"module": "dist/esm/index.mjs",
|
|
43
|
+
"types": "dist/types/index.d.ts",
|
|
44
|
+
"typesVersions": {
|
|
45
|
+
"*": {
|
|
46
|
+
".": [
|
|
47
|
+
"./dist/types/index.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"markdown": [
|
|
50
|
+
"./dist/types/markdown/index.d.ts"
|
|
51
|
+
],
|
|
52
|
+
"html": [
|
|
53
|
+
"./dist/types/html/index.d.ts"
|
|
54
|
+
],
|
|
55
|
+
"format": [
|
|
56
|
+
"./dist/types/format/index.d.ts"
|
|
57
|
+
],
|
|
58
|
+
"package.json": [
|
|
59
|
+
"./package.json"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
37
63
|
"exports": {
|
|
38
64
|
".": {
|
|
39
65
|
"types": "./dist/types/index.d.ts",
|
|
@@ -57,41 +83,15 @@
|
|
|
57
83
|
},
|
|
58
84
|
"./package.json": "./package.json"
|
|
59
85
|
},
|
|
60
|
-
"main": "dist/cjs/index.cjs",
|
|
61
|
-
"module": "dist/esm/index.mjs",
|
|
62
|
-
"types": "dist/types/index.d.ts",
|
|
63
|
-
"typesVersions": {
|
|
64
|
-
"*": {
|
|
65
|
-
".": [
|
|
66
|
-
"./dist/types/index.d.ts"
|
|
67
|
-
],
|
|
68
|
-
"markdown": [
|
|
69
|
-
"./dist/types/markdown/index.d.ts"
|
|
70
|
-
],
|
|
71
|
-
"html": [
|
|
72
|
-
"./dist/types/html/index.d.ts"
|
|
73
|
-
],
|
|
74
|
-
"format": [
|
|
75
|
-
"./dist/types/format/index.d.ts"
|
|
76
|
-
],
|
|
77
|
-
"package.json": [
|
|
78
|
-
"./package.json"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"files": [
|
|
83
|
-
"./dist",
|
|
84
|
-
"./package.json"
|
|
85
|
-
],
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "bun --bun tsdown --config tsdown.config.ts",
|
|
88
88
|
"build:ci": "bun --bun tsdown --config tsdown.config.ts",
|
|
89
89
|
"clean": "bun --bun rimraf ./dist .turbo",
|
|
90
90
|
"dev": "bun --bun tsdown --config tsdown.config.ts --watch",
|
|
91
|
-
"format": "
|
|
92
|
-
"format:fix": "
|
|
93
|
-
"lint": "
|
|
94
|
-
"lint:fix": "
|
|
91
|
+
"format": "oxfmt --check .",
|
|
92
|
+
"format:fix": "oxfmt .",
|
|
93
|
+
"lint": "oxlint .",
|
|
94
|
+
"lint:fix": "oxlint --fix .",
|
|
95
95
|
"prepublish": "cp -f ../../README.md ./README.md",
|
|
96
96
|
"publish": "bun publish || true",
|
|
97
97
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
@@ -102,24 +102,24 @@
|
|
|
102
102
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@intlayer/api": "9.7.
|
|
106
|
-
"@intlayer/config": "9.7.
|
|
107
|
-
"@intlayer/core": "9.7.
|
|
108
|
-
"@intlayer/editor": "9.7.
|
|
109
|
-
"@intlayer/types": "9.7.
|
|
105
|
+
"@intlayer/api": "9.7.2",
|
|
106
|
+
"@intlayer/config": "9.7.2",
|
|
107
|
+
"@intlayer/core": "9.7.2",
|
|
108
|
+
"@intlayer/editor": "9.7.2",
|
|
109
|
+
"@intlayer/types": "9.7.2"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@types/node": "^26",
|
|
113
113
|
"@utils/ts-config": "1.0.4",
|
|
114
114
|
"@utils/ts-config-types": "1.0.4",
|
|
115
115
|
"@utils/tsdown-config": "1.0.4",
|
|
116
|
-
"rimraf": "6.1.
|
|
117
|
-
"tsdown": "0.23.
|
|
116
|
+
"rimraf": "6.1.4",
|
|
117
|
+
"tsdown": "0.23.7",
|
|
118
118
|
"typescript": "7.0.2",
|
|
119
|
-
"vitest": "5.0
|
|
119
|
+
"vitest": "5.1.0"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
|
-
"intlayer": "9.7.
|
|
122
|
+
"intlayer": "9.7.2"
|
|
123
123
|
},
|
|
124
124
|
"peerDependenciesMeta": {
|
|
125
125
|
"intlayer": {
|