lit-intlayer 9.0.0-canary.9 → 9.0.1
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/plugins.cjs +1 -1
- package/dist/esm/plugins.mjs +49 -48
- package/dist/types/plugins.d.ts.map +1 -1
- package/package.json +14 -13
package/dist/cjs/plugins.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require("./renderIntlayerNode.cjs"),l=require("../installIntlayer-DFH3THoH.js"),u=require("./markdown/runtime.cjs");let d=require("@intlayer/core/interpreter"),f=require("@intlayer/config/built"),p=require("@intlayer/core/markdown"),m=require("@intlayer/types/nodeType");m=s(m);let h=require("lit/directives/unsafe-html.js"),g=require("lit/static-html.js");var _=(e=``,t={})=>(0,p.compileWithOptions)(e,u.default,t),v=(e,t,n={})=>{let r=typeof e==`string`?(0,h.unsafeHTML)(e):e;return new Proxy(r,{get(e,r,i){if(r===`value`||r===`raw`)return t;if(r===`toString`||r===Symbol.toPrimitive)return()=>t;if(r!==Symbol.iterator)return r===`__update`?()=>{}:r===`isJSX`?!0:r in n?n[r]:Reflect.get(e,r,i)}})},y=e=>e.replace(/&/g,`&`).replace(/"/g,`"`),b=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),x={id:`intlayer-node-plugin`,canHandle:e=>typeof e==`bigint`||typeof e==`string`||typeof e==`number`,transform:(e,{children:t,keyPath:n,dictionaryKey:r,...i})=>{if(process.env.INTLAYER_EDITOR_ENABLED!==`false`&&f.editor.enabled){let e=String(t??``);return v(`<intlayer-content-selector-wrapper key-path="${y(JSON.stringify(n??[]))}" dictionary-key="${y(String(r??``))}">${b(e)}</intlayer-content-selector-wrapper>`,e)}return c.renderIntlayerNode({...i,value:t,children:t})}},S=process.env.INTLAYER_NODE_TYPE_INSERTION===`false`?d.fallbackPlugin:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===m.INSERTION,transform:(e,t,n)=>{let r=[...t.keyPath,{type:m.INSERTION}],i=e[m.INSERTION],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require("./renderIntlayerNode.cjs"),l=require("../installIntlayer-DFH3THoH.js"),u=require("./markdown/runtime.cjs");let d=require("@intlayer/core/interpreter"),f=require("@intlayer/config/built"),p=require("@intlayer/core/markdown"),m=require("@intlayer/types/nodeType");m=s(m);let h=require("lit/directives/unsafe-html.js"),g=require("lit/static-html.js");var _=(e=``,t={})=>(0,p.compileWithOptions)(e,u.default,t),v=(e,t,n={})=>{let r=typeof e==`string`?(0,h.unsafeHTML)(e):e;return new Proxy(r,{get(e,r,i){if(r===`value`||r===`raw`)return t;if(r===`toString`||r===Symbol.toPrimitive)return()=>t;if(r!==Symbol.iterator)return r===`__update`?()=>{}:r===`isJSX`?!0:r in n?n[r]:Reflect.get(e,r,i)}})},y=e=>e.replace(/&/g,`&`).replace(/"/g,`"`),b=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),x={id:`intlayer-node-plugin`,canHandle:e=>typeof e==`bigint`||typeof e==`string`||typeof e==`number`,transform:(e,{children:t,keyPath:n,dictionaryKey:r,...i})=>{if(process.env.INTLAYER_EDITOR_ENABLED!==`false`&&f.editor.enabled){let e=String(t??``);return v(`<intlayer-content-selector-wrapper key-path="${y(JSON.stringify(n??[]))}" dictionary-key="${y(String(r??``))}">${b(e)}</intlayer-content-selector-wrapper>`,e)}return c.renderIntlayerNode({...i,value:t,children:t})}},S=process.env.INTLAYER_NODE_TYPE_INSERTION===`false`?d.fallbackPlugin:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===m.INSERTION,transform:(e,t,n)=>{let r=[...t.keyPath,{type:m.INSERTION}],i=e[m.INSERTION],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`||(0,d.isInterpolableWrapperNode)(e),transform:(e,n,r)=>{if((0,d.isInterpolableWrapperNode)(e))return i=>(0,d.transformInterpolableNode)(e,i,n,t.plugins,r);let i=r(e,{...n,children:e,plugins:(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)});return e=>{let a=(0,d.splitInsertionTemplate)(i,e),o=a.isSimple?a.parts:a.parts.join(``);return r(o,{...n,plugins:t.plugins,children:o})}}},o=n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]});return typeof i==`object`&&i&&`nodeType`in i&&[m.ENUMERATION,m.CONDITION].includes(i.nodeType)?e=>t=>{let n=o(t);return typeof n==`function`?n(e):n}:o}},C=process.env.INTLAYER_NODE_TYPE_MARKDOWN===`false`?d.fallbackPlugin:{id:`markdown-string-plugin`,canHandle:e=>typeof e==`string`,transform:(e,t,n)=>{let{plugins:r,...i}=t,{keyPath:a,dictionaryKey:o}=i,s=n((0,p.getMarkdownMetadata)(e)??{},{plugins:[{id:`markdown-metadata-plugin`,canHandle:e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`||!e,transform:(t,n)=>c.renderIntlayerNode({...n,value:t,children:e})}],dictionaryKey:i.dictionaryKey,keyPath:[]}),l=_(e),u=t=>{let n=_(e,{components:t});return process.env.INTLAYER_EDITOR_ENABLED!==`false`&&f.editor.enabled?v(`<intlayer-content-selector-wrapper key-path="${y(JSON.stringify(a??[]))}" dictionary-key="${y(String(o??``))}">${n}</intlayer-content-selector-wrapper>`,e):v(n,e)};return process.env.INTLAYER_EDITOR_ENABLED!==`false`&&f.editor.enabled?v(`<intlayer-content-selector-wrapper key-path="${y(JSON.stringify(a??[]))}" dictionary-key="${y(String(o??``))}">${l}</intlayer-content-selector-wrapper>`,e,{metadata:s,use:u}):v(l,e,{metadata:s,use:u})}},w=process.env.INTLAYER_NODE_TYPE_MARKDOWN===`false`?d.fallbackPlugin:{id:`markdown-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===m.MARKDOWN,transform:(e,t,n)=>{let r=[...t.keyPath,{type:m.MARKDOWN}],i=e[m.MARKDOWN];return n(i,{...t,children:i,keyPath:r,plugins:[C,...t.plugins??[]]})}},T=process.env.INTLAYER_NODE_TYPE_HTML===`false`?d.fallbackPlugin:{id:`html-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===m.HTML,transform:(e,t)=>{let n=e[m.HTML],{keyPath:r,dictionaryKey:i}=t,a=(e={})=>{let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e).map(([e,t])=>[e,e=>t(e)])),a=new Proxy(t,{get(e,t){if(typeof t==`string`&&t in e)return e[t];if(typeof t==`string`&&/^[a-z][a-z0-9]*$/.test(t))return e=>g.html`<${(0,g.unsafeStatic)(t)} ...${e}>${e.children}</${(0,g.unsafeStatic)(t)}>`}}),o=(0,d.getHTML)(n,a);return process.env.INTLAYER_EDITOR_ENABLED!==`false`&&f.editor.enabled?v(`<intlayer-content-selector-wrapper key-path="${y(JSON.stringify(r??[]))}" dictionary-key="${y(String(i??``))}">${o}</intlayer-content-selector-wrapper>`,n):v(o,n)};return process.env.INTLAYER_EDITOR_ENABLED!==`false`&&f.editor.enabled?v(`<intlayer-content-selector-wrapper key-path="${y(JSON.stringify(r??[]))}" dictionary-key="${y(String(i??``))}">${n}</intlayer-content-selector-wrapper>`,n,{use:a}):v(n,n,{use:a})}},E=new Map,D=(e,t=!0)=>{let n=e??(typeof window<`u`&&l.r()?.locale)??f.internationalization.defaultLocale,r=`${n}_${t}`;if(E.has(r))return E.get(r);let i=[(0,d.translationPlugin)(e??f.internationalization.defaultLocale,t?f.internationalization.defaultLocale:void 0),d.enumerationPlugin,(0,d.pluralPlugin)(n),d.conditionPlugin,(0,d.nestedPlugin)(n),d.filePlugin,d.genderPlugin,x,S,w,T];return E.set(r,i),i};exports.getPlugins=D,exports.htmlPlugin=T,exports.insertionPlugin=S,exports.intlayerNodePlugins=x,exports.markdownPlugin=w,exports.markdownStringPlugin=C;
|
package/dist/esm/plugins.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { renderIntlayerNode as e } from "./renderIntlayerNode.mjs";
|
|
2
2
|
import { r as t } from "../installIntlayer-DWDo9T68.mjs";
|
|
3
3
|
import n from "./markdown/runtime.mjs";
|
|
4
|
-
import { conditionPlugin as r, enumerationPlugin as i, fallbackPlugin as a, filePlugin as o, genderPlugin as s, getHTML as c,
|
|
5
|
-
import { editor as
|
|
6
|
-
import { compileWithOptions as
|
|
7
|
-
import * as
|
|
8
|
-
import { unsafeHTML as
|
|
9
|
-
import { html as
|
|
4
|
+
import { conditionPlugin as r, enumerationPlugin as i, fallbackPlugin as a, filePlugin as o, genderPlugin as s, getHTML as c, isInterpolableWrapperNode as l, nestedPlugin as u, pluralPlugin as d, splitInsertionTemplate as f, transformInterpolableNode as p, translationPlugin as m } from "@intlayer/core/interpreter";
|
|
5
|
+
import { editor as h, internationalization as g } from "@intlayer/config/built";
|
|
6
|
+
import { compileWithOptions as _, getMarkdownMetadata as v } from "@intlayer/core/markdown";
|
|
7
|
+
import * as y from "@intlayer/types/nodeType";
|
|
8
|
+
import { unsafeHTML as b } from "lit/directives/unsafe-html.js";
|
|
9
|
+
import { html as x, unsafeStatic as S } from "lit/static-html.js";
|
|
10
10
|
//#region src/plugins.ts
|
|
11
|
-
var
|
|
12
|
-
let r = typeof e == "string" ?
|
|
11
|
+
var C = (e = "", t = {}) => _(e, n, t), w = (e, t, n = {}) => {
|
|
12
|
+
let r = typeof e == "string" ? b(e) : e;
|
|
13
13
|
return new Proxy(r, { get(e, r, i) {
|
|
14
14
|
if (r === "value" || r === "raw") return t;
|
|
15
15
|
if (r === "toString" || r === Symbol.toPrimitive) return () => t;
|
|
16
16
|
if (r !== Symbol.iterator) return r === "__update" ? () => {} : r === "isJSX" ? !0 : r in n ? n[r] : Reflect.get(e, r, i);
|
|
17
17
|
} });
|
|
18
|
-
},
|
|
18
|
+
}, T = (e) => e.replace(/&/g, "&").replace(/"/g, """), E = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), D = {
|
|
19
19
|
id: "intlayer-node-plugin",
|
|
20
20
|
canHandle: (e) => typeof e == "bigint" || typeof e == "string" || typeof e == "number",
|
|
21
21
|
transform: (t, { children: n, keyPath: r, dictionaryKey: i, ...a }) => {
|
|
22
|
-
if (process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
22
|
+
if (process.env.INTLAYER_EDITOR_ENABLED !== "false" && h.enabled) {
|
|
23
23
|
let e = String(n ?? "");
|
|
24
|
-
return
|
|
24
|
+
return w(`<intlayer-content-selector-wrapper key-path="${T(JSON.stringify(r ?? []))}" dictionary-key="${T(String(i ?? ""))}">${E(e)}</intlayer-content-selector-wrapper>`, e);
|
|
25
25
|
}
|
|
26
26
|
return e({
|
|
27
27
|
...a,
|
|
@@ -29,21 +29,22 @@ var x = (e = "", t = {}) => h(e, n, t), S = (e, t, n = {}) => {
|
|
|
29
29
|
children: n
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
},
|
|
32
|
+
}, O = process.env.INTLAYER_NODE_TYPE_INSERTION === "false" ? a : {
|
|
33
33
|
id: "insertion-plugin",
|
|
34
|
-
canHandle: (e) => typeof e == "object" && e?.nodeType ===
|
|
34
|
+
canHandle: (e) => typeof e == "object" && e?.nodeType === y.INSERTION,
|
|
35
35
|
transform: (e, t, n) => {
|
|
36
|
-
let r = [...t.keyPath, { type:
|
|
36
|
+
let r = [...t.keyPath, { type: y.INSERTION }], i = e[y.INSERTION], a = {
|
|
37
37
|
id: "insertion-string-plugin",
|
|
38
|
-
canHandle: (e) => typeof e == "string",
|
|
38
|
+
canHandle: (e) => typeof e == "string" || l(e),
|
|
39
39
|
transform: (e, n, r) => {
|
|
40
|
+
if (l(e)) return (i) => p(e, i, n, t.plugins, r);
|
|
40
41
|
let i = r(e, {
|
|
41
42
|
...n,
|
|
42
43
|
children: e,
|
|
43
44
|
plugins: (t.plugins ?? []).filter((e) => e.id !== "intlayer-node-plugin")
|
|
44
45
|
});
|
|
45
46
|
return (e) => {
|
|
46
|
-
let a =
|
|
47
|
+
let a = f(i, e), o = a.isSimple ? a.parts : a.parts.join("");
|
|
47
48
|
return r(o, {
|
|
48
49
|
...n,
|
|
49
50
|
plugins: t.plugins,
|
|
@@ -57,16 +58,16 @@ var x = (e = "", t = {}) => h(e, n, t), S = (e, t, n = {}) => {
|
|
|
57
58
|
keyPath: r,
|
|
58
59
|
plugins: [a, ...t.plugins ?? []]
|
|
59
60
|
});
|
|
60
|
-
return typeof i == "object" && i && "nodeType" in i && [
|
|
61
|
+
return typeof i == "object" && i && "nodeType" in i && [y.ENUMERATION, y.CONDITION].includes(i.nodeType) ? (e) => (t) => {
|
|
61
62
|
let n = o(t);
|
|
62
63
|
return typeof n == "function" ? n(e) : n;
|
|
63
64
|
} : o;
|
|
64
65
|
}
|
|
65
|
-
},
|
|
66
|
+
}, k = process.env.INTLAYER_NODE_TYPE_MARKDOWN === "false" ? a : {
|
|
66
67
|
id: "markdown-string-plugin",
|
|
67
68
|
canHandle: (e) => typeof e == "string",
|
|
68
69
|
transform: (t, n, r) => {
|
|
69
|
-
let { plugins: i, ...a } = n, { keyPath: o, dictionaryKey: s } = a, c = r(
|
|
70
|
+
let { plugins: i, ...a } = n, { keyPath: o, dictionaryKey: s } = a, c = r(v(t) ?? {}, {
|
|
70
71
|
plugins: [{
|
|
71
72
|
id: "markdown-metadata-plugin",
|
|
72
73
|
canHandle: (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || !e,
|
|
@@ -78,60 +79,60 @@ var x = (e = "", t = {}) => h(e, n, t), S = (e, t, n = {}) => {
|
|
|
78
79
|
}],
|
|
79
80
|
dictionaryKey: a.dictionaryKey,
|
|
80
81
|
keyPath: []
|
|
81
|
-
}), l =
|
|
82
|
-
let n =
|
|
83
|
-
return process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
82
|
+
}), l = C(t), u = (e) => {
|
|
83
|
+
let n = C(t, { components: e });
|
|
84
|
+
return process.env.INTLAYER_EDITOR_ENABLED !== "false" && h.enabled ? w(`<intlayer-content-selector-wrapper key-path="${T(JSON.stringify(o ?? []))}" dictionary-key="${T(String(s ?? ""))}">${n}</intlayer-content-selector-wrapper>`, t) : w(n, t);
|
|
84
85
|
};
|
|
85
|
-
return process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
86
|
+
return process.env.INTLAYER_EDITOR_ENABLED !== "false" && h.enabled ? w(`<intlayer-content-selector-wrapper key-path="${T(JSON.stringify(o ?? []))}" dictionary-key="${T(String(s ?? ""))}">${l}</intlayer-content-selector-wrapper>`, t, {
|
|
86
87
|
metadata: c,
|
|
87
88
|
use: u
|
|
88
|
-
}) :
|
|
89
|
+
}) : w(l, t, {
|
|
89
90
|
metadata: c,
|
|
90
91
|
use: u
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
|
-
},
|
|
94
|
+
}, A = process.env.INTLAYER_NODE_TYPE_MARKDOWN === "false" ? a : {
|
|
94
95
|
id: "markdown-plugin",
|
|
95
|
-
canHandle: (e) => typeof e == "object" && e?.nodeType ===
|
|
96
|
+
canHandle: (e) => typeof e == "object" && e?.nodeType === y.MARKDOWN,
|
|
96
97
|
transform: (e, t, n) => {
|
|
97
|
-
let r = [...t.keyPath, { type:
|
|
98
|
+
let r = [...t.keyPath, { type: y.MARKDOWN }], i = e[y.MARKDOWN];
|
|
98
99
|
return n(i, {
|
|
99
100
|
...t,
|
|
100
101
|
children: i,
|
|
101
102
|
keyPath: r,
|
|
102
|
-
plugins: [
|
|
103
|
+
plugins: [k, ...t.plugins ?? []]
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
|
-
},
|
|
106
|
+
}, j = process.env.INTLAYER_NODE_TYPE_HTML === "false" ? a : {
|
|
106
107
|
id: "html-plugin",
|
|
107
|
-
canHandle: (e) => typeof e == "object" && e?.nodeType ===
|
|
108
|
+
canHandle: (e) => typeof e == "object" && e?.nodeType === y.HTML,
|
|
108
109
|
transform: (e, t) => {
|
|
109
|
-
let n = e[
|
|
110
|
-
let t = Object.fromEntries(Object.entries(e).filter(([, e]) => e).map(([e, t]) => [e, (e) => t(e)])), a =
|
|
110
|
+
let n = e[y.HTML], { keyPath: r, dictionaryKey: i } = t, a = (e = {}) => {
|
|
111
|
+
let t = Object.fromEntries(Object.entries(e).filter(([, e]) => e).map(([e, t]) => [e, (e) => t(e)])), a = new Proxy(t, { get(e, t) {
|
|
111
112
|
if (typeof t == "string" && t in e) return e[t];
|
|
112
|
-
if (typeof t == "string" && /^[a-z][a-z0-9]*$/.test(t)) return (e) =>
|
|
113
|
-
} }));
|
|
114
|
-
return process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
113
|
+
if (typeof t == "string" && /^[a-z][a-z0-9]*$/.test(t)) return (e) => x`<${S(t)} ...${e}>${e.children}</${S(t)}>`;
|
|
114
|
+
} }), o = c(n, a);
|
|
115
|
+
return process.env.INTLAYER_EDITOR_ENABLED !== "false" && h.enabled ? w(`<intlayer-content-selector-wrapper key-path="${T(JSON.stringify(r ?? []))}" dictionary-key="${T(String(i ?? ""))}">${o}</intlayer-content-selector-wrapper>`, n) : w(o, n);
|
|
115
116
|
};
|
|
116
|
-
return process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
117
|
+
return process.env.INTLAYER_EDITOR_ENABLED !== "false" && h.enabled ? w(`<intlayer-content-selector-wrapper key-path="${T(JSON.stringify(r ?? []))}" dictionary-key="${T(String(i ?? ""))}">${n}</intlayer-content-selector-wrapper>`, n, { use: a }) : w(n, n, { use: a });
|
|
117
118
|
}
|
|
118
|
-
},
|
|
119
|
-
let a = e ?? (typeof window < "u" && t()?.locale) ??
|
|
120
|
-
if (
|
|
121
|
-
let
|
|
122
|
-
|
|
119
|
+
}, M = /* @__PURE__ */ new Map(), N = (e, n = !0) => {
|
|
120
|
+
let a = e ?? (typeof window < "u" && t()?.locale) ?? g.defaultLocale, c = `${a}_${n}`;
|
|
121
|
+
if (M.has(c)) return M.get(c);
|
|
122
|
+
let l = [
|
|
123
|
+
m(e ?? g.defaultLocale, n ? g.defaultLocale : void 0),
|
|
123
124
|
i,
|
|
124
|
-
|
|
125
|
+
d(a),
|
|
125
126
|
r,
|
|
126
|
-
|
|
127
|
+
u(a),
|
|
127
128
|
o,
|
|
128
129
|
s,
|
|
129
|
-
|
|
130
|
-
E,
|
|
130
|
+
D,
|
|
131
131
|
O,
|
|
132
|
-
|
|
132
|
+
A,
|
|
133
|
+
j
|
|
133
134
|
];
|
|
134
|
-
return
|
|
135
|
+
return M.set(c, l), l;
|
|
135
136
|
};
|
|
136
137
|
//#endregion
|
|
137
|
-
export {
|
|
138
|
+
export { N as getPlugins, j as htmlPlugin, O as insertionPlugin, D as intlayerNodePlugins, A as markdownPlugin, k as markdownStringPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/plugins.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,oBAAoB,IAAI,wBAAwB,EAMrD,KAAK,uBAAuB,IAAI,2BAA2B,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/plugins.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,oBAAoB,IAAI,wBAAwB,EAMrD,KAAK,uBAAuB,IAAI,2BAA2B,EAG3D,KAAK,OAAO,EAKb,MAAM,4BAA4B,CAAC;AAYpC,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAKtD,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,cAAc,CAAC;AAErE,OAAO,EACL,KAAK,YAAY,IAAI,gBAAgB,EAEtC,MAAM,sBAAsB,CAAC;AA+C9B;;mDAEmD;AAEnD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,GACvD,YAAY,CAAC,CAAC,CAAC,GACf,KAAK,CAAC;AAEV,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAQ9D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAkBjC,CAAC;AAEF;;mDAEmD;AAEnD,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,aAAa,IAAI,CAAC,SAAS;IACpE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;CAC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
|
|
5
5
|
"description": "Easily internationalize i18n your Lit applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -103,27 +103,28 @@
|
|
|
103
103
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@intlayer/api": "9.0.
|
|
107
|
-
"@intlayer/config": "9.0.
|
|
108
|
-
"@intlayer/core": "9.0.
|
|
109
|
-
"@intlayer/editor": "9.0.
|
|
110
|
-
"@intlayer/types": "9.0.
|
|
106
|
+
"@intlayer/api": "9.0.1",
|
|
107
|
+
"@intlayer/config": "9.0.1",
|
|
108
|
+
"@intlayer/core": "9.0.1",
|
|
109
|
+
"@intlayer/editor": "9.0.1",
|
|
110
|
+
"@intlayer/types": "9.0.1"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@types/node": "
|
|
113
|
+
"@types/node": "26.1.1",
|
|
114
|
+
"@typescript/typescript6": "^6.0.2",
|
|
114
115
|
"@utils/ts-config": "1.0.4",
|
|
115
116
|
"@utils/ts-config-types": "1.0.4",
|
|
116
117
|
"@utils/tsdown-config": "1.0.4",
|
|
117
118
|
"fast-glob": "3.3.3",
|
|
118
119
|
"rimraf": "6.1.3",
|
|
119
|
-
"tsdown": "0.
|
|
120
|
-
"typescript": "
|
|
121
|
-
"vite": "8.1.
|
|
122
|
-
"vite-plugin-dts": "5.0.
|
|
123
|
-
"vitest": "4.1.
|
|
120
|
+
"tsdown": "0.22.13",
|
|
121
|
+
"typescript": "7.0.2",
|
|
122
|
+
"vite": "8.1.5",
|
|
123
|
+
"vite-plugin-dts": "5.0.3",
|
|
124
|
+
"vitest": "4.1.10"
|
|
124
125
|
},
|
|
125
126
|
"peerDependencies": {
|
|
126
|
-
"intlayer": "9.0.
|
|
127
|
+
"intlayer": "9.0.1",
|
|
127
128
|
"lit": ">=3.0.0"
|
|
128
129
|
},
|
|
129
130
|
"peerDependenciesMeta": {
|