lit-intlayer 8.12.4 → 9.0.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/cjs/client/useDictionary.cjs +1 -1
  2. package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
  3. package/dist/cjs/client/useIntlayer.cjs +1 -1
  4. package/dist/cjs/getDictionary.cjs +1 -1
  5. package/dist/cjs/getIntlayer.cjs +1 -1
  6. package/dist/esm/client/useDictionary.mjs +11 -8
  7. package/dist/esm/client/useDictionaryDynamic.mjs +38 -26
  8. package/dist/esm/client/useIntlayer.mjs +10 -7
  9. package/dist/esm/getDictionary.mjs +1 -1
  10. package/dist/esm/getIntlayer.mjs +1 -1
  11. package/dist/{src → types}/client/IntlayerBinding.d.ts +1 -0
  12. package/dist/types/client/IntlayerBinding.d.ts.map +1 -0
  13. package/dist/{src → types}/client/index.d.ts +1 -0
  14. package/dist/types/client/index.d.ts.map +1 -0
  15. package/dist/{src → types}/client/installIntlayer.d.ts +1 -0
  16. package/dist/types/client/installIntlayer.d.ts.map +1 -0
  17. package/dist/types/client/useDictionary.d.ts +18 -0
  18. package/dist/types/client/useDictionary.d.ts.map +1 -0
  19. package/dist/{src → types}/client/useDictionaryDynamic.d.ts +4 -2
  20. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -0
  21. package/dist/{src → types}/client/useIntlayer.d.ts +3 -2
  22. package/dist/types/client/useIntlayer.d.ts.map +1 -0
  23. package/dist/{src → types}/client/useLocale.d.ts +1 -0
  24. package/dist/types/client/useLocale.d.ts.map +1 -0
  25. package/dist/{src → types}/client/useLocaleStorage.d.ts +3 -2
  26. package/dist/types/client/useLocaleStorage.d.ts.map +1 -0
  27. package/dist/{src → types}/client/useRewriteURL.d.ts +1 -0
  28. package/dist/types/client/useRewriteURL.d.ts.map +1 -0
  29. package/dist/{src → types}/editor/useEditor.d.ts +1 -0
  30. package/dist/types/editor/useEditor.d.ts.map +1 -0
  31. package/dist/{src → types}/format/index.d.ts +1 -0
  32. package/dist/types/format/index.d.ts.map +1 -0
  33. package/dist/{src → types}/format/useCompact.d.ts +1 -0
  34. package/dist/types/format/useCompact.d.ts.map +1 -0
  35. package/dist/{src → types}/format/useCurrency.d.ts +1 -0
  36. package/dist/types/format/useCurrency.d.ts.map +1 -0
  37. package/dist/{src → types}/format/useDate.d.ts +1 -0
  38. package/dist/types/format/useDate.d.ts.map +1 -0
  39. package/dist/{src → types}/format/useIntl.d.ts +1 -0
  40. package/dist/types/format/useIntl.d.ts.map +1 -0
  41. package/dist/{src → types}/format/useList.d.ts +1 -0
  42. package/dist/types/format/useList.d.ts.map +1 -0
  43. package/dist/{src → types}/format/useNumber.d.ts +1 -0
  44. package/dist/types/format/useNumber.d.ts.map +1 -0
  45. package/dist/{src → types}/format/usePercentage.d.ts +1 -0
  46. package/dist/types/format/usePercentage.d.ts.map +1 -0
  47. package/dist/{src → types}/format/useRelativeTime.d.ts +1 -0
  48. package/dist/types/format/useRelativeTime.d.ts.map +1 -0
  49. package/dist/{src → types}/format/useUnit.d.ts +1 -0
  50. package/dist/types/format/useUnit.d.ts.map +1 -0
  51. package/dist/types/getDictionary.d.ts +10 -0
  52. package/dist/types/getDictionary.d.ts.map +1 -0
  53. package/dist/types/getIntlayer.d.ts +9 -0
  54. package/dist/types/getIntlayer.d.ts.map +1 -0
  55. package/dist/{src → types}/html/HTMLRenderer.d.ts +1 -0
  56. package/dist/types/html/HTMLRenderer.d.ts.map +1 -0
  57. package/dist/{src → types}/html/index.d.ts +1 -0
  58. package/dist/types/html/index.d.ts.map +1 -0
  59. package/dist/{src → types}/html/installIntlayerHTML.d.ts +1 -0
  60. package/dist/types/html/installIntlayerHTML.d.ts.map +1 -0
  61. package/dist/{src → types}/html/types.d.ts +1 -0
  62. package/dist/types/html/types.d.ts.map +1 -0
  63. package/dist/{src → types}/index.d.ts +1 -0
  64. package/dist/types/index.d.ts.map +1 -0
  65. package/dist/{src → types}/markdown/MarkdownRenderer.d.ts +1 -0
  66. package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -0
  67. package/dist/{src → types}/markdown/compiler.d.ts +1 -0
  68. package/dist/types/markdown/compiler.d.ts.map +1 -0
  69. package/dist/{src → types}/markdown/index.d.ts +1 -0
  70. package/dist/types/markdown/index.d.ts.map +1 -0
  71. package/dist/{src → types}/markdown/installIntlayerMarkdown.d.ts +1 -0
  72. package/dist/types/markdown/installIntlayerMarkdown.d.ts.map +1 -0
  73. package/dist/{src → types}/markdown/runtime.d.ts +1 -0
  74. package/dist/types/markdown/runtime.d.ts.map +1 -0
  75. package/dist/{src → types}/plugins.d.ts +1 -0
  76. package/dist/types/plugins.d.ts.map +1 -0
  77. package/dist/{src → types}/renderIntlayerNode.d.ts +1 -0
  78. package/dist/types/renderIntlayerNode.d.ts.map +1 -0
  79. package/package.json +8 -8
  80. package/dist/src/client/useDictionary.d.ts +0 -31
  81. package/dist/src/getDictionary.d.ts +0 -4
  82. package/dist/src/getIntlayer.d.ts +0 -3
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../installIntlayer-DFH3THoH.js"),t=require("../getDictionary.cjs"),n=require("./IntlayerBinding.cjs");let r=require("@intlayer/config/built");var i=(i,a)=>{let o=e.r(),s=t.getDictionary(i,a??o.locale??r.internationalization.defaultLocale);o.subscribe(e=>{s=t.getDictionary(i,a??e)});let c,l=new Proxy({},{get(e,t){if(t===`observe`)return c;if(t===Symbol.toPrimitive)return()=>s[Symbol.toPrimitive]?.()??``;if(t===`toString`)return()=>String(s.toString?.()??``);if(t!==`then`)return s[t]}});return c=e=>(new n.IntlayerBinding(e),l),l};exports.useDictionary=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../installIntlayer-DFH3THoH.js"),t=require("../getDictionary.cjs"),n=require("./IntlayerBinding.cjs");let r=require("@intlayer/config/built");var i=(i,a)=>{let o=e.r(),s=typeof a==`object`&&!!a,c=s?a.locale:a,l=e=>s?t.getDictionary(i,{...a,locale:e}):t.getDictionary(i,e),u=l(c??o.locale??r.internationalization.defaultLocale);o.subscribe(e=>{u=l(c??e)});let d,f=new Proxy({},{get(e,t){if(t===`observe`)return d;if(t===Symbol.toPrimitive)return()=>u?.[Symbol.toPrimitive]?.()??``;if(t===`toString`)return()=>String(u?.toString?.()??``);if(t!==`then`&&u!=null)return u[t]}});return d=e=>(new n.IntlayerBinding(e),f),f};exports.useDictionary=i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../installIntlayer-DFH3THoH.js"),t=require("../getDictionary.cjs"),n=require("./IntlayerBinding.cjs");let r=require("@intlayer/config/built");var i=new Map,a=async(e,t)=>{if(!t)return;if(i.has(e))return i.get(e);let n=await t();return i.set(e,n),n},o=new Proxy(()=>{},{get:(e,t)=>{if(t===Symbol.toPrimitive||t===`toString`)return()=>``;if(t!==`then`&&!(typeof t==`string`&&t.startsWith(`_$`))&&t!==`nodeType`&&t!==Symbol.iterator)return o},apply:()=>o,construct:()=>({})}),s=(i,s,c)=>{let l=e.r(),u=()=>c??l.locale??r.internationalization.defaultLocale,d,f=new Set,p=e=>{let n=`${String(s)}.${e}`,r=i[e];a(n,r).then(n=>{if(n){d=t.getDictionary(n,e);for(let e of f)e()}})};p(u()),l.subscribe(e=>{p(c??e)});let m,h=new Proxy({},{get(e,t){if(t===`observe`)return m;if(t===Symbol.toPrimitive)return()=>void 0;if(t===`toString`)return()=>``;if(t!==`then`)return d===void 0?o:d[t]}});return m=e=>{let t=()=>e.requestUpdate();return f.add(t),new n.IntlayerBinding(e,()=>{d!==void 0&&e.requestUpdate()},()=>{f.delete(t)}),h},h};exports.useDictionaryDynamic=s;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../installIntlayer-DFH3THoH.js"),t=require("../getDictionary.cjs"),n=require("./IntlayerBinding.cjs");let r=require("@intlayer/config/built"),i=require("@intlayer/core/dictionaryManipulator");var a=new Map,o=async(e,t)=>{if(!t)return;if(a.has(e))return a.get(e);let n=await t();return a.set(e,n),n},s=new Proxy(()=>{},{get:(e,t)=>{if(t===Symbol.toPrimitive||t===`toString`)return()=>``;if(t!==`then`&&!(typeof t==`string`&&t.startsWith(`_$`))&&t!==`nodeType`&&t!==Symbol.iterator)return s},apply:()=>s,construct:()=>({})}),c=(a,c,l)=>{let u=e.r(),d=(0,i.isQualifiedDynamicLoaderMap)(a),{locale:f,selector:p}=(0,i.parseDictionarySelector)(l),m=()=>f??u.locale??r.internationalization.defaultLocale,h,g=new Set,_=()=>{for(let e of g)e()},v=e=>{if(d){(0,i.resolveQualifiedDynamicContentAsync)({loaderMap:a,key:String(c),locale:e,selector:p,transform:n=>t.getDictionary(n,e)}).then(e=>{h=e,_()});return}let n=`${String(c)}.${e}`,r=a[e];o(n,r).then(n=>{n&&(h=t.getDictionary(n,e),_())})};v(m()),u.subscribe(e=>{v(f??e)});let y,b=new Proxy({},{get(e,t){if(t===`observe`)return y;if(t===Symbol.toPrimitive)return()=>void 0;if(t===`toString`)return()=>``;if(t!==`then`)return h==null?s:h[t]}});return y=e=>{let t=()=>e.requestUpdate();return g.add(t),new n.IntlayerBinding(e,()=>{h!=null&&e.requestUpdate()},()=>{g.delete(t)}),b},b};exports.useDictionaryDynamic=c;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../installIntlayer-DFH3THoH.js"),t=require("../getIntlayer.cjs"),n=require("./IntlayerBinding.cjs");let r=require("@intlayer/config/built");var i=(i,a)=>{let o=e.r(),s,c=null,l=new Proxy({},{get(e,u){if(u===`observe`)return e=>(new n.IntlayerBinding(e),l);if(u===Symbol.toPrimitive||u===`toString`)return()=>``;if(u===`then`||typeof u==`symbol`||typeof u==`string`&&u.startsWith(`_$`))return;let d=a??o.locale??r.internationalization.defaultLocale;return(s!==d||c===null)&&(c=t.getIntlayer(i,d),s=d),c[u]}});return l};exports.useIntlayer=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../installIntlayer-DFH3THoH.js"),t=require("../getIntlayer.cjs"),n=require("./IntlayerBinding.cjs");let r=require("@intlayer/config/built");var i=(i,a)=>{let o=e.r(),s=typeof a==`object`&&!!a,c=s?a.locale:a,l=e=>s?t.getIntlayer(i,{...a,locale:e}):t.getIntlayer(i,e),u,d,f=!1,p=new Proxy({},{get(e,t){if(t===`observe`)return e=>(new n.IntlayerBinding(e),p);if(t===Symbol.toPrimitive||t===`toString`)return()=>``;if(t===`then`||typeof t==`symbol`||typeof t==`string`&&t.startsWith(`_$`))return;let i=c??o.locale??r.internationalization.defaultLocale;if((!f||u!==i)&&(d=l(i),u=i,f=!0),d!=null)return d[t]}});return p};exports.useIntlayer=i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../plugins-DFLXSPs7.js");let t=require("@intlayer/core/interpreter");var n=(n,r)=>(0,t.getDictionary)(n,r,e.t(r));exports.getDictionary=n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../plugins-DFLXSPs7.js");let t=require("@intlayer/core/interpreter");var n=(n,r)=>(0,t.getDictionary)(n,r,e.t(typeof r==`object`&&r?r.locale:r));exports.getDictionary=n;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../plugins-DFLXSPs7.js");let t=require("@intlayer/core/interpreter");var n=(n,r)=>(0,t.getIntlayer)(n,r,e.t(r));exports.getIntlayer=n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../plugins-DFLXSPs7.js");let t=require("@intlayer/core/interpreter");var n=(n,r)=>(0,t.getIntlayer)(n,r,e.t(typeof r==`object`&&r?r.locale:r));exports.getIntlayer=n;
@@ -4,17 +4,20 @@ import { IntlayerBinding as n } from "./IntlayerBinding.mjs";
4
4
  import { internationalization as r } from "@intlayer/config/built";
5
5
  //#region src/client/useDictionary.ts
6
6
  var i = (i, a) => {
7
- let o = e(), s = t(i, a ?? o.locale ?? r.defaultLocale);
7
+ let o = e(), s = typeof a == "object" && !!a, c = s ? a.locale : a, l = (e) => s ? t(i, {
8
+ ...a,
9
+ locale: e
10
+ }) : t(i, e), u = l(c ?? o.locale ?? r.defaultLocale);
8
11
  o.subscribe((e) => {
9
- s = t(i, a ?? e);
12
+ u = l(c ?? e);
10
13
  });
11
- let c, l = new Proxy({}, { get(e, t) {
12
- if (t === "observe") return c;
13
- if (t === Symbol.toPrimitive) return () => s[Symbol.toPrimitive]?.() ?? "";
14
- if (t === "toString") return () => String(s.toString?.() ?? "");
15
- if (t !== "then") return s[t];
14
+ let d, f = new Proxy({}, { get(e, t) {
15
+ if (t === "observe") return d;
16
+ if (t === Symbol.toPrimitive) return () => u?.[Symbol.toPrimitive]?.() ?? "";
17
+ if (t === "toString") return () => String(u?.toString?.() ?? "");
18
+ if (t !== "then" && u != null) return u[t];
16
19
  } });
17
- return c = (e) => (new n(e), l), l;
20
+ return d = (e) => (new n(e), f), f;
18
21
  };
19
22
  //#endregion
20
23
  export { i as useDictionary };
@@ -2,46 +2,58 @@ import { r as e } from "../../installIntlayer-DWDo9T68.mjs";
2
2
  import { getDictionary as t } from "../getDictionary.mjs";
3
3
  import { IntlayerBinding as n } from "./IntlayerBinding.mjs";
4
4
  import { internationalization as r } from "@intlayer/config/built";
5
+ import { isQualifiedDynamicLoaderMap as i, parseDictionarySelector as a, resolveQualifiedDynamicContentAsync as o } from "@intlayer/core/dictionaryManipulator";
5
6
  //#region src/client/useDictionaryDynamic.ts
6
- var i = /* @__PURE__ */ new Map(), a = async (e, t) => {
7
+ var s = /* @__PURE__ */ new Map(), c = async (e, t) => {
7
8
  if (!t) return;
8
- if (i.has(e)) return i.get(e);
9
+ if (s.has(e)) return s.get(e);
9
10
  let n = await t();
10
- return i.set(e, n), n;
11
- }, o = new Proxy(() => {}, {
11
+ return s.set(e, n), n;
12
+ }, l = new Proxy(() => {}, {
12
13
  get: (e, t) => {
13
14
  if (t === Symbol.toPrimitive || t === "toString") return () => "";
14
- if (t !== "then" && !(typeof t == "string" && t.startsWith("_$")) && t !== "nodeType" && t !== Symbol.iterator) return o;
15
+ if (t !== "then" && !(typeof t == "string" && t.startsWith("_$")) && t !== "nodeType" && t !== Symbol.iterator) return l;
15
16
  },
16
- apply: () => o,
17
+ apply: () => l,
17
18
  construct: () => ({})
18
- }), s = (i, s, c) => {
19
- let l = e(), u = () => c ?? l.locale ?? r.defaultLocale, d, f = /* @__PURE__ */ new Set(), p = (e) => {
20
- let n = `${String(s)}.${e}`, r = i[e];
21
- a(n, r).then((n) => {
22
- if (n) {
23
- d = t(n, e);
24
- for (let e of f) e();
25
- }
19
+ }), u = (s, u, d) => {
20
+ let f = e(), p = i(s), { locale: m, selector: h } = a(d), g = () => m ?? f.locale ?? r.defaultLocale, _, v = /* @__PURE__ */ new Set(), y = () => {
21
+ for (let e of v) e();
22
+ }, b = (e) => {
23
+ if (p) {
24
+ o({
25
+ loaderMap: s,
26
+ key: String(u),
27
+ locale: e,
28
+ selector: h,
29
+ transform: (n) => t(n, e)
30
+ }).then((e) => {
31
+ _ = e, y();
32
+ });
33
+ return;
34
+ }
35
+ let n = `${String(u)}.${e}`, r = s[e];
36
+ c(n, r).then((n) => {
37
+ n && (_ = t(n, e), y());
26
38
  });
27
39
  };
28
- p(u()), l.subscribe((e) => {
29
- p(c ?? e);
40
+ b(g()), f.subscribe((e) => {
41
+ b(m ?? e);
30
42
  });
31
- let m, h = new Proxy({}, { get(e, t) {
32
- if (t === "observe") return m;
43
+ let x, S = new Proxy({}, { get(e, t) {
44
+ if (t === "observe") return x;
33
45
  if (t === Symbol.toPrimitive) return () => void 0;
34
46
  if (t === "toString") return () => "";
35
- if (t !== "then") return d === void 0 ? o : d[t];
47
+ if (t !== "then") return _ == null ? l : _[t];
36
48
  } });
37
- return m = (e) => {
49
+ return x = (e) => {
38
50
  let t = () => e.requestUpdate();
39
- return f.add(t), new n(e, () => {
40
- d !== void 0 && e.requestUpdate();
51
+ return v.add(t), new n(e, () => {
52
+ _ != null && e.requestUpdate();
41
53
  }, () => {
42
- f.delete(t);
43
- }), h;
44
- }, h;
54
+ v.delete(t);
55
+ }), S;
56
+ }, S;
45
57
  };
46
58
  //#endregion
47
- export { s as useDictionaryDynamic };
59
+ export { u as useDictionaryDynamic };
@@ -4,14 +4,17 @@ import { IntlayerBinding as n } from "./IntlayerBinding.mjs";
4
4
  import { internationalization as r } from "@intlayer/config/built";
5
5
  //#region src/client/useIntlayer.ts
6
6
  var i = (i, a) => {
7
- let o = e(), s, c = null, l = new Proxy({}, { get(e, u) {
8
- if (u === "observe") return (e) => (new n(e), l);
9
- if (u === Symbol.toPrimitive || u === "toString") return () => "";
10
- if (u === "then" || typeof u == "symbol" || typeof u == "string" && u.startsWith("_$")) return;
11
- let d = a ?? o.locale ?? r.defaultLocale;
12
- return (s !== d || c === null) && (c = t(i, d), s = d), c[u];
7
+ let o = e(), s = typeof a == "object" && !!a, c = s ? a.locale : a, l = (e) => s ? t(i, {
8
+ ...a,
9
+ locale: e
10
+ }) : t(i, e), u, d, f = !1, p = new Proxy({}, { get(e, t) {
11
+ if (t === "observe") return (e) => (new n(e), p);
12
+ if (t === Symbol.toPrimitive || t === "toString") return () => "";
13
+ if (t === "then" || typeof t == "symbol" || typeof t == "string" && t.startsWith("_$")) return;
14
+ let i = c ?? o.locale ?? r.defaultLocale;
15
+ if ((!f || u !== i) && (d = l(i), u = i, f = !0), d != null) return d[t];
13
16
  } });
14
- return l;
17
+ return p;
15
18
  };
16
19
  //#endregion
17
20
  export { i as useIntlayer };
@@ -1,6 +1,6 @@
1
1
  import { getPlugins as e } from "./plugins.mjs";
2
2
  import { getDictionary as t } from "@intlayer/core/interpreter";
3
3
  //#region src/getDictionary.ts
4
- var n = (n, r) => t(n, r, e(r));
4
+ var n = (n, r) => t(n, r, e(typeof r == "object" && r ? r.locale : r));
5
5
  //#endregion
6
6
  export { n as getDictionary };
@@ -1,6 +1,6 @@
1
1
  import { getPlugins as e } from "./plugins.mjs";
2
2
  import { getIntlayer as t } from "@intlayer/core/interpreter";
3
3
  //#region src/getIntlayer.ts
4
- var n = (n, r) => t(n, r, e(r));
4
+ var n = (n, r) => t(n, r, e(typeof r == "object" && r ? r.locale : r));
5
5
  //#endregion
6
6
  export { n as getIntlayer };
@@ -38,3 +38,4 @@ export declare class IntlayerBinding implements ReactiveController {
38
38
  hostConnected(): void;
39
39
  hostDisconnected(): void;
40
40
  }
41
+ //# sourceMappingURL=IntlayerBinding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntlayerBinding.d.ts","sourceRoot":"","sources":["../../../src/client/IntlayerBinding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG;IACpC,OAAO,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,qBAAa,eAAgB,YAAW,kBAAkB;IACxD,OAAO,CAAC,IAAI,CAAyB;IACrC,OAAO,CAAC,iBAAiB,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAa;gBAGzC,IAAI,EAAE,sBAAsB,EAC5B,SAAS,CAAC,EAAE,MAAM,IAAI,EACtB,YAAY,CAAC,EAAE,MAAM,IAAI;IAQ3B,aAAa,IAAI,IAAI;IAQrB,gBAAgB,IAAI,IAAI;CAKzB"}
@@ -6,3 +6,4 @@ export * from './useIntlayer';
6
6
  export * from './useLocale';
7
7
  export * from './useLocaleStorage';
8
8
  export * from './useRewriteURL';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
@@ -51,3 +51,4 @@ export declare const installIntlayer: ({ locale, isCookieEnabled, }?: {
51
51
  isCookieEnabled?: boolean;
52
52
  }) => IntlayerClient;
53
53
  export {};
54
+ //# sourceMappingURL=installIntlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installIntlayer.d.ts","sourceRoot":"","sources":["../../../src/client/installIntlayer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAGzE,KAAK,cAAc,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;AAEtD,qBAAa,cAAc;IACzB,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,UAAU,CAAkC;IACpD,eAAe,EAAE,OAAO,CAAC;gBAEb,MAAM,CAAC,EAAE,aAAa,EAAE,eAAe,UAAO;IAU1D,IAAI,MAAM,IAAI,aAAa,CAE1B;IAED,SAAS,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI;IAOzC,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,IAAI;CAMhD;AAOD;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,aAAa,EACtB,yBAAsB,KACrB,cAIF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,cAKpC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe,GAAI,+BAG7B;IACD,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CACtB,KAAG,cAMR,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from '@intlayer/types/dictionary';
2
+ import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
3
+ import { DeepTransformContent } from '../plugins';
4
+ import { IntlayerLitProxy } from './IntlayerBinding';
5
+ /**
6
+ * Returns the content for a raw dictionary (or qualified dictionary group),
7
+ * wrapped in an {@link IntlayerLitProxy} so the caller can subscribe to locale
8
+ * changes via a Lit `ReactiveController`.
9
+ *
10
+ * The second argument is either a locale or a selector object (`{ item }`,
11
+ * `{ variant }`, `{ id, ...meta }`, optionally combined with `locale`).
12
+ *
13
+ * @param dictionary - The raw dictionary (or qualified group) object.
14
+ * @param localeOrSelector - Optional locale or selector.
15
+ * @returns An {@link IntlayerLitProxy} with an `.observe()` registration method.
16
+ */
17
+ export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => IntlayerLitProxy<DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>>;
18
+ //# sourceMappingURL=useDictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDictionary.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EAEV,0BAA0B,EAC1B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAG7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG3E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,UAAU,GAAG,wBAAwB,EACrD,KAAK,CAAC,CAAC,SACH,aAAa,GACb,0BAA0B,CAAC,CAAC,CAAC,GAAG,eAAe,EAEnD,YAAY,CAAC,EACb,mBAAmB,CAAC,KACnB,gBAAgB,CACjB,oBAAoB,CAClB,iCAAiC,CAAC,CAAC,EAAE,CAAC,CAAC,EACvC,qBAAqB,CAAC,CAAC,CAAC,CACzB,CA0DF,CAAC"}
@@ -1,5 +1,6 @@
1
+ import { QualifiedDynamicLoaderMap } from '@intlayer/core/dictionaryManipulator';
1
2
  import { Dictionary } from '@intlayer/types/dictionary';
2
- import { DictionaryKeys, LocalesValues, StrictModeLocaleMap } from '@intlayer/types/module_augmentation';
3
+ import { DictionaryKeys, DictionarySelectorForKey, LocalesValues, StrictModeLocaleMap } from '@intlayer/types/module_augmentation';
3
4
  import { DeepTransformContent } from '../plugins';
4
5
  import { IntlayerLitProxy } from './IntlayerBinding';
5
6
  /**
@@ -33,4 +34,5 @@ import { IntlayerLitProxy } from './IntlayerBinding';
33
34
  * private content = useDictionaryDynamic(_hash_dyn, 'app').observe(this);
34
35
  * ```
35
36
  */
36
- export declare const useDictionaryDynamic: <const T extends Dictionary, const K extends DictionaryKeys, const L extends LocalesValues = LocalesValues>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: L) => IntlayerLitProxy<DeepTransformContent<T["content"], L>>;
37
+ export declare const useDictionaryDynamic: <const T extends Dictionary, const K extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<K> = LocalesValues>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: K, localeOrSelector?: A) => IntlayerLitProxy<DeepTransformContent<T["content"]>>;
38
+ //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionaryDynamic.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,yBAAyB,EAE/B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACV,UAAU,EAEX,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAG7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAkD3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,oBAAoB,GAC/B,KAAK,CAAC,CAAC,SAAS,UAAU,EAC1B,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,GAAG,aAAa,EAE3E,mBACI,mBAAmB,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,GACrC,yBAAyB,EAC7B,KAAK,CAAC,EACN,mBAAmB,CAAC,KACnB,gBAAgB,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAuGrD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { DictionaryKeys, DictionaryRegistryContent, LocalesValues } from '@intlayer/types/module_augmentation';
1
+ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  import { DeepTransformContent } from '../plugins';
3
3
  import { IntlayerLitProxy } from './IntlayerBinding';
4
4
  /**
@@ -19,4 +19,5 @@ import { IntlayerLitProxy } from './IntlayerBinding';
19
19
  * In non-optimized builds (dev without babel) the content is re-fetched from
20
20
  * `getIntlayer` on every property access, caching by locale.
21
21
  */
22
- export declare const useIntlayer: <const T extends DictionaryKeys>(key: T, locale?: LocalesValues) => IntlayerLitProxy<DeepTransformContent<DictionaryRegistryContent<T>>>;
22
+ export declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => IntlayerLitProxy<DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>>;
23
+ //# sourceMappingURL=useIntlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIntlayer.d.ts","sourceRoot":"","sources":["../../../src/client/useIntlayer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG3E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,WAAW,GACtB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,GAAG,eAAe,EAE7E,KAAK,CAAC,EACN,mBAAmB,CAAC,KACnB,gBAAgB,CACjB,oBAAoB,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CA4D/E,CAAC"}
@@ -59,3 +59,4 @@ export declare class LocaleController implements ReactiveController {
59
59
  * ```
60
60
  */
61
61
  export declare const useLocale: (host: ReactiveControllerHost, props?: UseLocaleProps) => LocaleController;
62
+ //# sourceMappingURL=useLocale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../../src/client/useLocale.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAItE,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,kBAAkB;IACzD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAsB;IACvD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAElB;IACd,OAAO,CAAC,YAAY,CAA6B;IAEjD,mCAAmC;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB,sDAAsD;IACtD,QAAQ,CAAC,aAAa,EAAE,eAAe,CAAC;IACxC,2CAA2C;IAC3C,QAAQ,CAAC,gBAAgB,EAAE,eAAe,EAAE,CAAC;gBAEjC,IAAI,EAAE,sBAAsB,EAAE,KAAK,GAAE,cAAmB;IAgBpE;;;OAGG;IACH,SAAS,GAAI,WAAW,aAAa,KAAG,IAAI,CAe1C;IAEF,aAAa,IAAI,IAAI;IAQrB,gBAAgB,IAAI,IAAI;CAIzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,SAAS,GACpB,MAAM,sBAAsB,EAC5B,QAAO,cAAmB,KACzB,gBAAqD,CAAC"}
@@ -2,11 +2,11 @@ import { LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  /**
3
3
  * Get the current locale from storage (cookie or localStorage).
4
4
  */
5
- export declare const localeInStorage: import('intlayer').Locale | undefined;
5
+ export declare const localeInStorage: import('intlayer').Locale;
6
6
  /**
7
7
  * @deprecated Use localeInStorage instead.
8
8
  */
9
- export declare const localeCookie: import('intlayer').Locale | undefined;
9
+ export declare const localeCookie: import('intlayer').Locale;
10
10
  /**
11
11
  * Persist the locale to storage (cookie and/or localStorage).
12
12
  */
@@ -29,3 +29,4 @@ export declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
29
29
  localeStorage: import('intlayer').Locale;
30
30
  setLocaleStorage: (locale: LocalesValues) => void;
31
31
  };
32
+ //# sourceMappingURL=useLocaleStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocaleStorage.d.ts","sourceRoot":"","sources":["../../../src/client/useLocaleStorage.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,eAAe,2BAAmD,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,YAAY,2BAAkB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,aAAa,EACrB,iBAAiB,OAAO,SAKtB,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,eAAe,WAXlB,aAAa,mBACJ,OAAO,SAUuB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,kBAAkB,OAAO;;;CAUzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,qBAfuB,OAAO;;;CAeX,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { ReactiveControllerHost } from 'lit';
2
2
  export declare const useRewriteURL: (host: ReactiveControllerHost) => void;
3
+ //# sourceMappingURL=useRewriteURL.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRewriteURL.d.ts","sourceRoot":"","sources":["../../../src/client/useRewriteURL.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAsB,sBAAsB,EAAE,MAAM,KAAK,CAAC;AA2DtE,eAAO,MAAM,aAAa,GAAI,MAAM,sBAAsB,KAAG,IAE5D,CAAC"}
@@ -32,3 +32,4 @@ import { ReactiveControllerHost } from 'lit';
32
32
  */
33
33
  export declare function useEditor(): () => void;
34
34
  export declare function useEditor(host: ReactiveControllerHost): void;
35
+ //# sourceMappingURL=useEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../src/editor/useEditor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAsB,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAiDtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,SAAS,IAAI,MAAM,IAAI,CAAC;AACxC,wBAAgB,SAAS,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAAC"}
@@ -7,3 +7,4 @@ export { useNumber } from './useNumber';
7
7
  export { usePercentage } from './usePercentage';
8
8
  export { useRelativeTime } from './useRelativeTime';
9
9
  export { useUnit } from './useUnit';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/format/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -10,3 +10,4 @@ declare class CompactController implements ReactiveController {
10
10
  }
11
11
  export declare const useCompact: (host: ReactiveControllerHost) => CompactController;
12
12
  export {};
13
+ //# sourceMappingURL=useCompact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCompact.d.ts","sourceRoot":"","sources":["../../../src/format/useCompact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE,cAAM,iBAAkB,YAAW,kBAAkB;IACnD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,YAAY,CAA6B;IACjD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,KAAK,MAAM,CAAC;gBAE3C,IAAI,EAAE,sBAAsB;IAYxC,aAAa,IAAI,IAAI;IAYrB,gBAAgB,IAAI,IAAI;CAIzB;AAED,eAAO,MAAM,UAAU,GAAI,MAAM,sBAAsB,KAAG,iBAC7B,CAAC"}
@@ -10,3 +10,4 @@ declare class CurrencyController implements ReactiveController {
10
10
  }
11
11
  export declare const useCurrency: (host: ReactiveControllerHost) => CurrencyController;
12
12
  export {};
13
+ //# sourceMappingURL=useCurrency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCurrency.d.ts","sourceRoot":"","sources":["../../../src/format/useCurrency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE,cAAM,kBAAmB,YAAW,kBAAkB;IACpD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,YAAY,CAA6B;IACjD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,KAAK,MAAM,CAAC;gBAE5C,IAAI,EAAE,sBAAsB;IAYxC,aAAa,IAAI,IAAI;IAYrB,gBAAgB,IAAI,IAAI;CAIzB;AAED,eAAO,MAAM,WAAW,GAAI,MAAM,sBAAsB,KAAG,kBAC7B,CAAC"}
@@ -16,3 +16,4 @@ declare class DateController implements ReactiveController {
16
16
  */
17
17
  export declare const useDate: (host: ReactiveControllerHost) => DateController;
18
18
  export {};
19
+ //# sourceMappingURL=useDate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDate.d.ts","sourceRoot":"","sources":["../../../src/format/useDate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE;;GAEG;AACH,cAAM,cAAe,YAAW,kBAAkB;IAChD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,YAAY,CAA6B;IACjD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,MAAM,CAAC;gBAExC,IAAI,EAAE,sBAAsB;IAcxC,aAAa,IAAI,IAAI;IAcrB,gBAAgB,IAAI,IAAI;CAIzB;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,MAAM,sBAAsB,KAAG,cAC7B,CAAC"}
@@ -48,3 +48,4 @@ declare class IntlController implements ReactiveController {
48
48
  */
49
49
  export declare const useIntl: (host: ReactiveControllerHost, locale?: LocalesValues) => IntlController;
50
50
  export {};
51
+ //# sourceMappingURL=useIntl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIntl.d.ts","sourceRoot":"","sources":["../../../src/format/useIntl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE;;;;;;;GAOG;AACH,cAAM,cAAe,YAAW,kBAAkB;IAChD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B;IAC5D,OAAO,CAAC,YAAY,CAA6B;IAEjD,oCAAoC;IACpC,KAAK,EAAE,WAAW,CAAC;gBAEP,IAAI,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,aAAa;IAUhE,aAAa,IAAI,IAAI;IAQrB,gBAAgB,IAAI,IAAI;CAIzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,OAAO,GAClB,MAAM,sBAAsB,EAC5B,SAAS,aAAa,KACrB,cAAkD,CAAC"}
@@ -10,3 +10,4 @@ declare class ListController implements ReactiveController {
10
10
  }
11
11
  export declare const useList: (host: ReactiveControllerHost) => ListController;
12
12
  export {};
13
+ //# sourceMappingURL=useList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useList.d.ts","sourceRoot":"","sources":["../../../src/format/useList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE,cAAM,cAAe,YAAW,kBAAkB;IAChD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,YAAY,CAA6B;IACjD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,MAAM,CAAC;gBAExC,IAAI,EAAE,sBAAsB;IASxC,aAAa,IAAI,IAAI;IAYrB,gBAAgB,IAAI,IAAI;CAIzB;AAED,eAAO,MAAM,OAAO,GAAI,MAAM,sBAAsB,KAAG,cAC7B,CAAC"}
@@ -16,3 +16,4 @@ declare class NumberController implements ReactiveController {
16
16
  */
17
17
  export declare const useNumber: (host: ReactiveControllerHost) => NumberController;
18
18
  export {};
19
+ //# sourceMappingURL=useNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNumber.d.ts","sourceRoot":"","sources":["../../../src/format/useNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE;;GAEG;AACH,cAAM,gBAAiB,YAAW,kBAAkB;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,YAAY,CAA6B;IACjD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,KAAK,MAAM,CAAC;gBAE1C,IAAI,EAAE,sBAAsB;IASxC,aAAa,IAAI,IAAI;IASrB,gBAAgB,IAAI,IAAI;CAIzB;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,sBAAsB,KAAG,gBAC7B,CAAC"}
@@ -10,3 +10,4 @@ declare class PercentageController implements ReactiveController {
10
10
  }
11
11
  export declare const usePercentage: (host: ReactiveControllerHost) => PercentageController;
12
12
  export {};
13
+ //# sourceMappingURL=usePercentage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePercentage.d.ts","sourceRoot":"","sources":["../../../src/format/usePercentage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE,cAAM,oBAAqB,YAAW,kBAAkB;IACtD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,YAAY,CAA6B;IACjD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,KAAK,MAAM,CAAC;gBAE9C,IAAI,EAAE,sBAAsB;IAYxC,aAAa,IAAI,IAAI;IAYrB,gBAAgB,IAAI,IAAI;CAIzB;AAED,eAAO,MAAM,aAAa,GACxB,MAAM,sBAAsB,KAC3B,oBAAsD,CAAC"}
@@ -10,3 +10,4 @@ declare class RelativeTimeController implements ReactiveController {
10
10
  }
11
11
  export declare const useRelativeTime: (host: ReactiveControllerHost) => RelativeTimeController;
12
12
  export {};
13
+ //# sourceMappingURL=useRelativeTime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRelativeTime.d.ts","sourceRoot":"","sources":["../../../src/format/useRelativeTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE,cAAM,sBAAuB,YAAW,kBAAkB;IACxD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,YAAY,CAA6B;IACjD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,KAAK,MAAM,CAAC;gBAEhD,IAAI,EAAE,sBAAsB;IAYxC,aAAa,IAAI,IAAI;IAYrB,gBAAgB,IAAI,IAAI;CAIzB;AAED,eAAO,MAAM,eAAe,GAC1B,MAAM,sBAAsB,KAC3B,sBAA0D,CAAC"}
@@ -10,3 +10,4 @@ declare class UnitController implements ReactiveController {
10
10
  }
11
11
  export declare const useUnit: (host: ReactiveControllerHost) => UnitController;
12
12
  export {};
13
+ //# sourceMappingURL=useUnit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnit.d.ts","sourceRoot":"","sources":["../../../src/format/useUnit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGtE,cAAM,cAAe,YAAW,kBAAkB;IAChD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,YAAY,CAA6B;IACjD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,KAAK,MAAM,CAAC;gBAEzC,IAAI,EAAE,sBAAsB;IASxC,aAAa,IAAI,IAAI;IAYrB,gBAAgB,IAAI,IAAI;CAIzB;AAED,eAAO,MAAM,OAAO,GAAI,MAAM,sBAAsB,KAAG,cAC7B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from '@intlayer/types/dictionary';
2
+ import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
3
+ import { DeepTransformContent } from './plugins';
4
+ /**
5
+ * Transforms a dictionary (or qualified dictionary group) and returns its
6
+ * content for the given locale or selector (`{ item }`, `{ variant }`,
7
+ * `{ id, ...meta }`, optionally combined with `locale`).
8
+ */
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>>;
10
+ //# sourceMappingURL=getDictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDictionary.d.ts","sourceRoot":"","sources":["../../src/getDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EAEV,0BAA0B,EAC1B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,WAAW,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,UAAU,GAAG,wBAAwB,EACrD,KAAK,CAAC,CAAC,SACH,aAAa,GACb,0BAA0B,CAAC,CAAC,CAAC,GAAG,eAAe,EAEnD,YAAY,CAAC,EACb,mBAAmB,CAAC,KACnB,oBAAoB,CACrB,iCAAiC,CAAC,CAAC,EAAE,CAAC,CAAC,EACvC,qBAAqB,CAAC,CAAC,CAAC,CAazB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
2
+ import { DeepTransformContent } from './plugins';
3
+ /**
4
+ * Picks one dictionary by its key and returns its content for the given
5
+ * locale or selector (`{ item }`, `{ variant }`, `{ id, ...meta }`,
6
+ * optionally combined with `locale`).
7
+ */
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>>;
9
+ //# sourceMappingURL=getIntlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../src/getIntlayer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,WAAW,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GACtB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,GAAG,eAAe,EAE7E,KAAK,CAAC,EACN,mBAAmB,CAAC,KACnB,oBAAoB,CACrB,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,EAC9B,qBAAqB,CAAC,CAAC,CAAC,CASzB,CAAC"}
@@ -47,3 +47,4 @@ declare global {
47
47
  'intlayer-html-renderer': HTMLRenderer;
48
48
  }
49
49
  }
50
+ //# sourceMappingURL=HTMLRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HTMLRenderer.d.ts","sourceRoot":"","sources":["../../../src/html/HTMLRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAGhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;CAC/C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GACrB,SAAS,MAAM,EACf,SAAQ,eAAoB,KAC3B,MAAiB,CAAC;AAErB;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,kBAE7B,eAAoB,KAAG,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAKrD,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC1C,OAAgB,UAAU;;;;;;;MAGxB;IAEF,iCAAiC;IACjC,OAAO,SAAM;IACb,kDAAkD;IAClD,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAE9C,mEAAmE;IAC1D,gBAAgB;IAIhB,MAAM;CAMhB;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,YAAY,CAAC;KACxC;CACF"}
@@ -1,3 +1,4 @@
1
1
  export { type RenderHTMLProps, renderHTML, useHTMLRenderer, } from './HTMLRenderer';
2
2
  export { type IntlayerHTMLPluginOptions, type IntlayerHTMLProvider, installIntlayerHTML, installIntlayerHTMLDynamic, type RenderHTMLFunction, type RenderHTMLOptions, useHTML, } from './installIntlayerHTML';
3
3
  export type { HTMLComponents } from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EACpB,UAAU,EACV,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,mBAAmB,EACnB,0BAA0B,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,OAAO,GACR,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
@@ -63,3 +63,4 @@ export declare const useHTML: () => IntlayerHTMLProvider;
63
63
  * ```
64
64
  */
65
65
  export declare const installIntlayerHTMLDynamic: (loader: () => Promise<IntlayerHTMLPluginOptions | RenderHTMLFunction>) => Promise<IntlayerHTMLProvider>;
66
+ //# sourceMappingURL=installIntlayerHTML.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installIntlayerHTML.d.ts","sourceRoot":"","sources":["../../../src/html/installIntlayerHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAC/B,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,GAAG,iBAAiB,KAC7D,MAAM,CAAC;AAOZ,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,kBAAkB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,YAAY,kBAAkB,KAC7B,oBAIF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB,GAC9B,gBAAgB,yBAAyB,GAAG,kBAAkB,KAC7D,oBAoCF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,QAAO,oBAG1B,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,0BAA0B,GACrC,QAAQ,MAAM,OAAO,CAAC,yBAAyB,GAAG,kBAAkB,CAAC,KACpE,OAAO,CAAC,oBAAoB,CAI9B,CAAC"}
@@ -41,3 +41,4 @@ export type HTMLComponents<Mode extends HTMLComponentMode = 'optional', T = {}>
41
41
  [key: string]: LitHTMLComponent;
42
42
  } : DefinedComponents<T, false> & RestHTMLComponents<T>;
43
43
  export {};
44
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/html/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C;;GAEG;AACH,KAAK,eAAe,CAAC,KAAK,IAAI,KAAK,SAAS,IAAI,GAC5C,EAAE,GACF,KAAK,SAAS,MAAM,GAClB,KAAK,GACL,EAAE,CAAC;AAET;;;GAGG;AACH,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC5C,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,EAAE,IAAI,CACrC,KAAK,EAAE,CAAC,GAAG,YAAY,KACpB,cAAc,GAAG,MAAM,GAAG,GAAG,CAAC;AAEnC;;GAEG;AACH,KAAK,iBAAiB,CAAC,CAAC,EAAE,UAAU,SAAS,OAAO,IAAI,UAAU,SAAS,IAAI,GAC3E;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACxD,GACD;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACzD,CAAC;AAEN;;GAEG;AACH,KAAK,kBAAkB,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,OAAO,CAAC,MAAM,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB;CAC/D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,YAAY,GACZ,UAAU,GACV,WAAW,GACX,QAAQ,CAAC;AAEb;;;GAGG;AACH,MAAM,MAAM,cAAc,CACxB,IAAI,SAAS,iBAAiB,GAAG,UAAU,EAC3C,CAAC,GAAG,EAAE,IACJ,IAAI,SAAS,QAAQ,GACrB,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,GAC1B,IAAI,SAAS,WAAW,GACtB,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAClD,IAAI,SAAS,YAAY,GACvB,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAC,GACzB,kBAAkB,CAAC,CAAC,CAAC,GAAG;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACjC,GACH,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC"}
@@ -9,3 +9,4 @@ export * from './editor/useEditor';
9
9
  export * from './getDictionary';
10
10
  export * from './getIntlayer';
11
11
  export * from './plugins';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,OAAO,QAAQ,4BAA4B,CAAC;IAC1C,UAAU,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,aAAa,CACxD,SAAQ,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;KAAG;CAC5C;AAED,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
@@ -77,3 +77,4 @@ declare global {
77
77
  'intlayer-markdown-renderer': MarkdownRenderer;
78
78
  }
79
79
  }
80
+ //# sourceMappingURL=MarkdownRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/markdown/MarkdownRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAE5B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GAAG;IAC1D,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,MAAM,GAAG,cAAc,EAChC,+DAKG,mBAAwB,KAC1B,MAQF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAO,mBAAwB,KAC9B,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,KAAK,MAAM,CAe/C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,OAAgB,UAAU;;;;;;;;;;;;;;;;;;;MAOxB;IAEF,iDAAiD;IACjD,OAAO,EAAE,MAAM,GAAG,cAAc,CAAM;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAE1C,mEAAmE;IAC1D,gBAAgB;IAIhB,MAAM;CA6BhB;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,4BAA4B,EAAE,gBAAgB,CAAC;KAChD;CACF"}
@@ -51,3 +51,4 @@ export declare const parseMarkdown: (markdown?: string, options?: MarkdownCompil
51
51
  * ```
52
52
  */
53
53
  export declare const compileMarkdown: (input?: string | ParsedMarkdown, options?: MarkdownCompilerOptions) => string;
54
+ //# sourceMappingURL=compiler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../src/markdown/compiler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,cAAc,EAKnB,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AAGjC;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC;AAErD;;;;GAIG;AACH,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,GACxB,WAAU,MAAW,EACrB,UAAS,uBAA4B,KACpC,cAkBF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,GAC1B,QAAO,MAAM,GAAG,cAAmB,EACnC,UAAS,uBAA4B,KACpC,MAsBF,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { compileMarkdown, type MarkdownCompilerOptions, type ParsedMarkdown, parseMarkdown, } from './compiler';
2
2
  export { type IntlayerMarkdownPluginOptions, type IntlayerMarkdownProvider, installIntlayerMarkdown, installIntlayerMarkdownDynamic, type MarkdownProviderOptions, type RenderMarkdownFunction, useMarkdown, } from './installIntlayerMarkdown';
3
3
  export { MarkdownRenderer, type RenderMarkdownProps, renderMarkdown, useMarkdownRenderer, } from './MarkdownRenderer';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/markdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,uBAAuB,EACvB,8BAA8B,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,WAAW,GACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
@@ -73,3 +73,4 @@ export declare const useMarkdown: () => IntlayerMarkdownProvider;
73
73
  * ```
74
74
  */
75
75
  export declare const installIntlayerMarkdownDynamic: (loader: () => Promise<IntlayerMarkdownPluginOptions | RenderMarkdownFunction>) => Promise<IntlayerMarkdownProvider>;
76
+ //# sourceMappingURL=installIntlayerMarkdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installIntlayerMarkdown.d.ts","sourceRoot":"","sources":["../../../src/markdown/installIntlayerMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+DAA+D;IAC/D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,GAAG;IAC5D,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CACnC,QAAQ,EAAE,MAAM,GAAG,cAAc,EACjC,OAAO,CAAC,EAAE,uBAAuB,EACjC,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,EAC7C,OAAO,CAAC,EAAE,MAAM,KACb,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAO9B,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,cAAc,EAAE,sBAAsB,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,uBAAuB,GAAG;IACpE,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,GACvC,gBAAgB,sBAAsB,EACtC,aAAa,cAAc,CAAC,YAAY,EAAE,EAAE,CAAC,KAC5C,wBAKF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB,GAClC,gBAAgB,6BAA6B,GAAG,sBAAsB,KACrE,wBA+CF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,QAAO,wBAQ9B,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,8BAA8B,GACzC,QAAQ,MAAM,OAAO,CAAC,6BAA6B,GAAG,sBAAsB,CAAC,KAC5E,OAAO,CAAC,wBAAwB,CAIlC,CAAC"}
@@ -10,3 +10,4 @@ export declare const createLitRuntime: (options?: {
10
10
  onCreateElement?: (type: any, props: Record<string, any> | null, children: any[]) => string;
11
11
  }) => MarkdownRuntime;
12
12
  export default litRuntime;
13
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/markdown/runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAW,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAqCxE;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,eAyExB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAS;IACP,eAAe,CAAC,EAAE,CAChB,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EACjC,QAAQ,EAAE,GAAG,EAAE,KACZ,MAAM,CAAC;CACR,KACL,eAeF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -76,3 +76,4 @@ export type IInterpreterPluginState = Omit<IInterpreterPluginStateCore, 'inserti
76
76
  };
77
77
  export type DeepTransformContent<T, L extends LocalesValues = DeclaredLocales> = DeepTransformContentCore<T, IInterpreterPluginState, L>;
78
78
  export declare const getPlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
79
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/plugins.ts"],"names":[],"mappings":"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"}
@@ -20,3 +20,4 @@ export declare const renderIntlayerNode: <T>({ value, additionalProps, }: {
20
20
  additionalProps?: Record<string, unknown>;
21
21
  [key: string]: unknown;
22
22
  }) => IntlayerNode<T>;
23
+ //# sourceMappingURL=renderIntlayerNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderIntlayerNode.d.ts","sourceRoot":"","sources":["../../src/renderIntlayerNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,MAAM,IAAI,cAAc,CACnD,CAAC,GAAG;IACF,GAAG,EAAE,CAAC,CAAC;IACP,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3C,EACD;IACE,GAAG,EAAE,CAAC,CAAC;IACP,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3C,CACF,GACC,CAAC,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAC7B,CAAC,EACD,6BAGC;IACD,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,KAAG,YAAY,CAAC,CAAC,CAuDjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lit-intlayer",
3
- "version": "8.12.4",
3
+ "version": "9.0.0-canary.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Lit applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -103,14 +103,14 @@
103
103
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
104
104
  },
105
105
  "dependencies": {
106
- "@intlayer/api": "8.12.4",
107
- "@intlayer/config": "8.12.4",
108
- "@intlayer/core": "8.12.4",
109
- "@intlayer/editor": "8.12.4",
110
- "@intlayer/types": "8.12.4"
106
+ "@intlayer/api": "9.0.0-canary.0",
107
+ "@intlayer/config": "9.0.0-canary.0",
108
+ "@intlayer/core": "9.0.0-canary.0",
109
+ "@intlayer/editor": "9.0.0-canary.0",
110
+ "@intlayer/types": "9.0.0-canary.0"
111
111
  },
112
112
  "devDependencies": {
113
- "@types/node": "25.9.2",
113
+ "@types/node": "25.9.3",
114
114
  "@utils/ts-config": "1.0.4",
115
115
  "@utils/ts-config-types": "1.0.4",
116
116
  "@utils/tsdown-config": "1.0.4",
@@ -123,7 +123,7 @@
123
123
  "vitest": "4.1.8"
124
124
  },
125
125
  "peerDependencies": {
126
- "intlayer": "8.12.4",
126
+ "intlayer": "9.0.0-canary.0",
127
127
  "lit": ">=3.0.0"
128
128
  },
129
129
  "peerDependenciesMeta": {
@@ -1,31 +0,0 @@
1
- import { Dictionary } from '@intlayer/types/dictionary';
2
- import { DeclaredLocales, LocalesValues } from '@intlayer/types/module_augmentation';
3
- import { DeepTransformContent } from '../plugins';
4
- import { IntlayerLitProxy } from './IntlayerBinding';
5
- /**
6
- * Returns the translated content for a raw dictionary object, wrapped in an
7
- * {@link IntlayerLitProxy} so the caller can subscribe to locale changes via
8
- * a Lit `ReactiveController`.
9
- *
10
- * This is the babel-optimized counterpart of `useIntlayer` — it accepts a
11
- * pre-imported dictionary object directly instead of a string key, matching
12
- * the same signature as `react-intlayer` and other framework adapters.
13
- *
14
- * The content is resolved synchronously on every property access via a proxy,
15
- * so the first render always shows the correct locale without a loading phase.
16
- * Chain `.observe(this)` to register a `ReactiveController` that triggers
17
- * `requestUpdate()` on every subsequent locale change.
18
- *
19
- * @param dictionary - The raw dictionary object (pre-imported by the build plugin).
20
- * @param locale - Optional locale override.
21
- * @returns An {@link IntlayerLitProxy} that exposes the current locale's content
22
- * together with an `.observe()` registration method.
23
- *
24
- * @example
25
- * ```ts
26
- * // Typically injected by the babel/SWC optimization plugin:
27
- * import _hash from '.intlayer/dictionaries/app.json' with { type: 'json' };
28
- * private content = useDictionary(_hash).observe(this);
29
- * ```
30
- */
31
- export declare const useDictionary: <const T extends Dictionary, const L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => IntlayerLitProxy<DeepTransformContent<T["content"], L>>;
@@ -1,4 +0,0 @@
1
- import { Dictionary } from '@intlayer/types/dictionary';
2
- import { DeclaredLocales, LocalesValues } from '@intlayer/types/module_augmentation';
3
- import { DeepTransformContent } from './plugins';
4
- export declare const getDictionary: <const T extends Dictionary, const L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => DeepTransformContent<T["content"], L>;
@@ -1,3 +0,0 @@
1
- import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from '@intlayer/types/module_augmentation';
2
- import { DeepTransformContent } from './plugins';
3
- export declare const getIntlayer: <const T extends DictionaryKeys, const L extends LocalesValues = DeclaredLocales>(key: T, locale?: L) => DeepTransformContent<DictionaryRegistryContent<T>, L>;