vue-intlayer 8.1.2 → 8.1.3

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 (80) hide show
  1. package/dist/{EditedContentRenderer.vue_vue_type_script_setup_true_lang-DyLCuFVf.mjs → EditedContentRenderer.vue_vue_type_script_setup_true_lang-BlN498QG.mjs} +1 -1
  2. package/dist/EditedContentRenderer.vue_vue_type_script_setup_true_lang-DYN7KHa_.js +1 -0
  3. package/dist/cjs/client/index.cjs +1 -1
  4. package/dist/cjs/client/installIntlayer.cjs +1 -1
  5. package/dist/cjs/client/useDictionary.cjs +1 -1
  6. package/dist/cjs/client/useDictionaryAsync.cjs +1 -1
  7. package/dist/cjs/client/useIntlayer.cjs +1 -1
  8. package/dist/cjs/client/useLocale.cjs +1 -1
  9. package/dist/cjs/client/useLocaleStorage.cjs +1 -1
  10. package/dist/cjs/client/useRewriteURL.cjs +1 -1
  11. package/dist/cjs/editor/ContentSelectorWrapper.cjs +1 -1
  12. package/dist/cjs/editor/EditedContentRenderer.cjs +1 -1
  13. package/dist/cjs/editor/EditorSelectorRenderer.cjs +1 -1
  14. package/dist/cjs/editor/editedContent.cjs +1 -1
  15. package/dist/cjs/editor/editorLocale.cjs +1 -1
  16. package/dist/cjs/editor/index.cjs +1 -1
  17. package/dist/cjs/editor/useEditor.cjs +1 -1
  18. package/dist/cjs/format/useCompact.cjs +1 -1
  19. package/dist/cjs/format/useCurrency.cjs +1 -1
  20. package/dist/cjs/format/useDate.cjs +1 -1
  21. package/dist/cjs/format/useIntl.cjs +1 -1
  22. package/dist/cjs/format/useList.cjs +1 -1
  23. package/dist/cjs/format/useNumber.cjs +1 -1
  24. package/dist/cjs/format/usePercentage.cjs +1 -1
  25. package/dist/cjs/format/useRelativeTime.cjs +1 -1
  26. package/dist/cjs/format/useUnit.cjs +1 -1
  27. package/dist/cjs/getDictionary.cjs +1 -1
  28. package/dist/cjs/getIntlayer.cjs +1 -1
  29. package/dist/cjs/html/HTMLRenderer.cjs +1 -1
  30. package/dist/cjs/html/installIntlayerHTML.cjs +1 -1
  31. package/dist/cjs/index.cjs +1 -1
  32. package/dist/cjs/markdown/compiler.cjs +1 -1
  33. package/dist/cjs/markdown/index.cjs +1 -1
  34. package/dist/cjs/plugins.cjs +1 -1
  35. package/dist/esm/client/index.mjs +1 -1
  36. package/dist/esm/client/installIntlayer.mjs +7 -5
  37. package/dist/esm/client/useDictionary.mjs +1 -1
  38. package/dist/esm/client/useDictionaryAsync.mjs +1 -1
  39. package/dist/esm/client/useIntlayer.mjs +1 -1
  40. package/dist/esm/client/useLocale.mjs +1 -1
  41. package/dist/esm/client/useLocaleStorage.mjs +9 -8
  42. package/dist/esm/client/useRewriteURL.mjs +1 -1
  43. package/dist/esm/editor/ContentSelectorWrapper.mjs +1 -1
  44. package/dist/esm/editor/EditedContentRenderer.mjs +1 -1
  45. package/dist/esm/editor/EditorSelectorRenderer.mjs +2 -2
  46. package/dist/esm/editor/editedContent.mjs +1 -1
  47. package/dist/esm/editor/editorLocale.mjs +4 -3
  48. package/dist/esm/editor/index.mjs +1 -1
  49. package/dist/esm/editor/useEditor.mjs +1 -1
  50. package/dist/esm/format/useCompact.mjs +2 -2
  51. package/dist/esm/format/useCurrency.mjs +2 -2
  52. package/dist/esm/format/useDate.mjs +2 -2
  53. package/dist/esm/format/useIntl.mjs +2 -2
  54. package/dist/esm/format/useList.mjs +2 -2
  55. package/dist/esm/format/useNumber.mjs +2 -2
  56. package/dist/esm/format/usePercentage.mjs +2 -2
  57. package/dist/esm/format/useRelativeTime.mjs +2 -2
  58. package/dist/esm/format/useUnit.mjs +2 -2
  59. package/dist/esm/getDictionary.mjs +2 -2
  60. package/dist/esm/getIntlayer.mjs +2 -2
  61. package/dist/esm/html/HTMLRenderer.mjs +1 -1
  62. package/dist/esm/html/installIntlayerHTML.mjs +1 -1
  63. package/dist/esm/index.mjs +2 -2
  64. package/dist/esm/markdown/compiler.mjs +2 -2
  65. package/dist/esm/markdown/index.mjs +1 -1
  66. package/dist/esm/plugins.mjs +10 -7
  67. package/dist/{plugins-BtrDPsT6.mjs → plugins-DMjvMNJp.mjs} +36 -32
  68. package/dist/plugins-pJ683VWg.js +1 -0
  69. package/dist/types/editor/ContentSelectorWrapper.vue.d.ts +1 -1
  70. package/dist/types/getDictionary.d.ts +1 -1
  71. package/dist/types/getIntlayer.d.ts +1 -1
  72. package/dist/types/html/types.d.ts +1 -1
  73. package/dist/types/index.d.ts +1 -1
  74. package/dist/types/markdown/MarkdownRenderer.d.ts +5 -5
  75. package/dist/types/markdown/compiler.d.ts +1 -1
  76. package/dist/types/markdown/runtime.d.ts +1 -1
  77. package/dist/types/plugins.d.ts +3 -3
  78. package/package.json +8 -8
  79. package/dist/EditedContentRenderer.vue_vue_type_script_setup_true_lang-CilQuo_6.js +0 -1
  80. package/dist/plugins-C-ttEWPT.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, useSlots as d, computed as c, openBlock as p, createBlock as u, unref as f } from "vue";
2
- import { getContent as m } from "@intlayer/core";
2
+ import { getContent as m } from "@intlayer/core/interpreter";
3
3
  import { useEditedContentRenderer as y } from "./esm/editor/useEditedContentRenderer.mjs";
4
4
  const g = /* @__PURE__ */ l({
5
5
  __name: "EditedContentRenderer",
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),u=require("@intlayer/core/interpreter"),a=require("./cjs/editor/useEditedContentRenderer.cjs"),l=e.defineComponent({__name:"EditedContentRenderer",props:{dictionaryKey:{},keyPath:{},locale:{}},setup(s){const n=s,i=e.useSlots(),c=e.computed(()=>(i.default?.()??[]).map(o=>typeof o.children=="string"?o.children:"").join("")),r=a.useEditedContentRenderer(n.dictionaryKey,n.keyPath,c),d=e.computed(()=>{if(typeof r.value=="object"&&r.value!==null){const t=u.getContent(r.value,n,n.locale);return typeof t!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof t}. Expected string. Value ${JSON.stringify(t)}`),c.value):t}return r.value});return(t,o)=>(e.openBlock(),e.createBlock(e.unref(d)))}});exports._sfc_main=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../plugins-C-ttEWPT.js"),e=require("./useDictionary.cjs"),i=require("./useDictionaryAsync.cjs"),n=require("./useDictionaryDynamic.cjs"),r=require("./useIntlayer.cjs"),a=require("./useLoadDynamic.cjs"),c=require("./useLocale.cjs"),s=require("./useRewriteURL.cjs");exports.INTLAYER_SYMBOL=t.INTLAYER_SYMBOL;exports.createIntlayerClient=t.createIntlayerClient;exports.installIntlayer=t.installIntlayer;exports.atPath=e.atPath;exports.createIntlayerLeafProxy=e.createIntlayerLeafProxy;exports.isComponentLike=e.isComponentLike;exports.isIntlayerNode=e.isIntlayerNode;exports.isObjectLike=e.isObjectLike;exports.toComponent=e.toComponent;exports.useDictionary=e.useDictionary;exports.useDictionaryAsync=i.useDictionaryAsync;exports.useDictionaryDynamic=n.useDictionaryDynamic;exports.useIntlayer=r.useIntlayer;exports.useLoadDynamic=a.useLoadDynamic;exports.useLocale=c.useLocale;exports.useRewriteURL=s.useRewriteURL;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../plugins-pJ683VWg.js"),e=require("./useDictionary.cjs"),i=require("./useDictionaryAsync.cjs"),n=require("./useDictionaryDynamic.cjs"),r=require("./useIntlayer.cjs"),a=require("./useLoadDynamic.cjs"),c=require("./useLocale.cjs"),s=require("./useRewriteURL.cjs");exports.INTLAYER_SYMBOL=t.INTLAYER_SYMBOL;exports.createIntlayerClient=t.createIntlayerClient;exports.installIntlayer=t.installIntlayer;exports.atPath=e.atPath;exports.createIntlayerLeafProxy=e.createIntlayerLeafProxy;exports.isComponentLike=e.isComponentLike;exports.isIntlayerNode=e.isIntlayerNode;exports.isObjectLike=e.isObjectLike;exports.toComponent=e.toComponent;exports.useDictionary=e.useDictionary;exports.useDictionaryAsync=i.useDictionaryAsync;exports.useDictionaryDynamic=n.useDictionaryDynamic;exports.useIntlayer=r.useIntlayer;exports.useLoadDynamic=a.useLoadDynamic;exports.useLocale=c.useLocale;exports.useRewriteURL=s.useRewriteURL;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@intlayer/config/built");require("vue");require("@intlayer/core");require("@intlayer/editor");require("@intlayer/types");require("../editor/communicator.cjs");const e=require("../../plugins-C-ttEWPT.js");require("./useLocaleStorage.cjs");require("../editor/installIntlayerEditor.cjs");exports.INTLAYER_SYMBOL=e.INTLAYER_SYMBOL;exports.createIntlayerClient=e.createIntlayerClient;exports.installIntlayer=e.installIntlayer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@intlayer/config/built");require("vue");require("@intlayer/core/utils");require("@intlayer/editor");require("@intlayer/types");require("../editor/communicator.cjs");const e=require("../../plugins-pJ683VWg.js");require("@intlayer/core/interpreter");require("./useLocaleStorage.cjs");require("@intlayer/core/localization");require("../editor/installIntlayerEditor.cjs");exports.INTLAYER_SYMBOL=e.INTLAYER_SYMBOL;exports.createIntlayerClient=e.createIntlayerClient;exports.installIntlayer=e.installIntlayer;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@intlayer/config/built"),t=require("vue"),k=require("../getDictionary.cjs"),C=require("../../plugins-C-ttEWPT.js"),c=(e,n)=>n.reduce((o,r)=>o?.[r],e),d=e=>e!=null&&typeof e=="object",_=e=>typeof e=="function"||d(e)&&("render"in e||"setup"in e),L=e=>e!=null&&typeof e=="object"&&"__update"in e&&"render"in e&&"raw"in e,w=e=>t.markRaw(t.defineComponent({name:"IntlayerLeaf",setup(){return()=>{const n=e();return n==null?null:_(n)?t.h(n):Array.isArray(n)?t.h("span",n):n}}})),h=e=>{const n={get(o,r){const a=e.value;if(r==="__v_isRef")return!0;if(r==="value")return a??"";if(r==="$raw")return e;if(r==="__v_skip")return!0;if(r==="c"||r==="asComponent")return w(()=>e.value);if(a==null)return r===Symbol.toPrimitive||r==="toString"?()=>"":void 0;const u=a[r];return typeof u=="function"?u.bind(a):u},ownKeys(){const o=e.value;return o!=null&&typeof o=="object"?Reflect.ownKeys(o):[]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}};return new Proxy({},n)},I=(e,n)=>{const o=t.inject(C.INTLAYER_SYMBOL),r=t.isRef(o?.locale)?o.locale:t.ref(o?.locale??j.internationalization.defaultLocale),a=t.computed(()=>(n!==void 0?t.toValue(n):void 0)??r.value),u=t.shallowRef({});t.watch([()=>t.toValue(e),()=>a.value],([l,v])=>{u.value=k.getDictionary(l,v)},{immediate:!0,flush:"sync"});const b=l=>{const v={get(m,i,D){if(i==="__v_isRef")return!0;const s=t.computed(()=>c(u.value,l));if(i==="value")return s.value??"";if(i==="then")return;if(i==="c"||i==="asComponent")return w(()=>s.value);if(i==="$raw")return s;if(i===Symbol.toPrimitive)return()=>s.value;const f=l.concat(i),y=c(u.value,f);if(y===void 0||d(y)&&!_(y))return b(f);if(L(y))return h(t.computed(()=>c(u.value,f)));const x=t.computed(()=>c(u.value,f));return new Proxy(x,{get(g,P,R){return P==="value"?g.value??"":Reflect.get(g,P,R)}})},ownKeys(){const m=c(u.value,l);return d(m)?Reflect.ownKeys(m):[]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}};return new Proxy({},v)};return b([])};exports.atPath=c;exports.createIntlayerLeafProxy=h;exports.isComponentLike=_;exports.isIntlayerNode=L;exports.isObjectLike=d;exports.toComponent=w;exports.useDictionary=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@intlayer/config/built"),t=require("vue"),k=require("../getDictionary.cjs"),C=require("../../plugins-pJ683VWg.js"),c=(e,n)=>n.reduce((o,r)=>o?.[r],e),d=e=>e!=null&&typeof e=="object",_=e=>typeof e=="function"||d(e)&&("render"in e||"setup"in e),L=e=>e!=null&&typeof e=="object"&&"__update"in e&&"render"in e&&"raw"in e,w=e=>t.markRaw(t.defineComponent({name:"IntlayerLeaf",setup(){return()=>{const n=e();return n==null?null:_(n)?t.h(n):Array.isArray(n)?t.h("span",n):n}}})),h=e=>{const n={get(o,r){const a=e.value;if(r==="__v_isRef")return!0;if(r==="value")return a??"";if(r==="$raw")return e;if(r==="__v_skip")return!0;if(r==="c"||r==="asComponent")return w(()=>e.value);if(a==null)return r===Symbol.toPrimitive||r==="toString"?()=>"":void 0;const u=a[r];return typeof u=="function"?u.bind(a):u},ownKeys(){const o=e.value;return o!=null&&typeof o=="object"?Reflect.ownKeys(o):[]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}};return new Proxy({},n)},I=(e,n)=>{const o=t.inject(C.INTLAYER_SYMBOL),r=t.isRef(o?.locale)?o.locale:t.ref(o?.locale??j.internationalization.defaultLocale),a=t.computed(()=>(n!==void 0?t.toValue(n):void 0)??r.value),u=t.shallowRef({});t.watch([()=>t.toValue(e),()=>a.value],([l,v])=>{u.value=k.getDictionary(l,v)},{immediate:!0,flush:"sync"});const b=l=>{const v={get(m,i,D){if(i==="__v_isRef")return!0;const s=t.computed(()=>c(u.value,l));if(i==="value")return s.value??"";if(i==="then")return;if(i==="c"||i==="asComponent")return w(()=>s.value);if(i==="$raw")return s;if(i===Symbol.toPrimitive)return()=>s.value;const f=l.concat(i),y=c(u.value,f);if(y===void 0||d(y)&&!_(y))return b(f);if(L(y))return h(t.computed(()=>c(u.value,f)));const x=t.computed(()=>c(u.value,f));return new Proxy(x,{get(g,P,R){return P==="value"?g.value??"":Reflect.get(g,P,R)}})},ownKeys(){const m=c(u.value,l);return d(m)?Reflect.ownKeys(m):[]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}};return new Proxy({},v)};return b([])};exports.atPath=c;exports.createIntlayerLeafProxy=h;exports.isComponentLike=_;exports.isIntlayerNode=L;exports.isObjectLike=d;exports.toComponent=w;exports.useDictionary=I;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@intlayer/config/built"),e=require("vue"),u=require("../../plugins-C-ttEWPT.js"),s=require("./useDictionary.cjs"),y=async(n,c)=>{const o=e.inject(u.INTLAYER_SYMBOL),t=e.computed(()=>c??o?.locale?.value??l?.internationalization.defaultLocale),a=e.ref(await n[t.value]?.());return e.watch(()=>t.value,async r=>{const i=await n[r]?.();i&&(a.value=i)}),s.useDictionary(a,t)};exports.useDictionaryAsync=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@intlayer/config/built"),e=require("vue"),u=require("../../plugins-pJ683VWg.js"),s=require("./useDictionary.cjs"),y=async(n,c)=>{const o=e.inject(u.INTLAYER_SYMBOL),t=e.computed(()=>c??o?.locale?.value??l?.internationalization.defaultLocale),a=e.ref(await n[t.value]?.());return e.watch(()=>t.value,async r=>{const i=await n[r]?.();i&&(a.value=i)}),s.useDictionary(a,t)};exports.useDictionaryAsync=y;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("@intlayer/config/built"),t=require("vue"),b=require("../getIntlayer.cjs"),j=require("../../plugins-C-ttEWPT.js"),n=require("./useDictionary.cjs"),q=(h,v)=>{const s=t.inject(j.INTLAYER_SYMBOL),P=t.isRef(s?.locale)?s.locale:t.ref(s?.locale??I.internationalization.defaultLocale),_=t.computed(()=>(v!==void 0?t.toValue(v):void 0)??P.value),a=t.shallowRef({});t.watch([()=>t.toValue(h),()=>_.value],([r,i])=>{a.value=b.getIntlayer(r,i)},{immediate:!0,flush:"sync"});const f=new Map,d=r=>{const i=r.join(".");if(f.has(i))return f.get(i);const o=t.computed(()=>n.atPath(a.value,r)),R={get(u,e,w){if(typeof e=="symbol"||typeof e=="string"&&(e.startsWith("__")||e.startsWith("$")))return e==="__v_isRef"?!0:e==="then"?void 0:Reflect.get(u,e,w);if(e==="value")return o.value??"";if(e==="c"||e==="asComponent")return n.toComponent(()=>o.value);if(e==="$raw")return o;if(e===Symbol.toPrimitive)return()=>String(o.value??"");const l=r.concat(e),c=n.atPath(a.value,l);if(c===void 0||n.isObjectLike(c)&&!n.isComponentLike(c))return d(l);if(n.isIntlayerNode(c))return n.createIntlayerLeafProxy(t.computed(()=>n.atPath(a.value,l)));const x=t.computed(()=>n.atPath(a.value,l));return new Proxy(x,{get(g,y,L){return y==="value"?g.value??"":y==="__v_isRef"?!0:Reflect.get(g,y,L)}})},ownKeys(){const u=n.atPath(a.value,r);return n.isObjectLike(u)?Reflect.ownKeys(u):[]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},m=new Proxy({},R);return f.set(i,m),m};return d([])};exports.useIntlayer=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("@intlayer/config/built"),t=require("vue"),b=require("../getIntlayer.cjs"),j=require("../../plugins-pJ683VWg.js"),n=require("./useDictionary.cjs"),q=(h,v)=>{const s=t.inject(j.INTLAYER_SYMBOL),P=t.isRef(s?.locale)?s.locale:t.ref(s?.locale??I.internationalization.defaultLocale),_=t.computed(()=>(v!==void 0?t.toValue(v):void 0)??P.value),a=t.shallowRef({});t.watch([()=>t.toValue(h),()=>_.value],([r,i])=>{a.value=b.getIntlayer(r,i)},{immediate:!0,flush:"sync"});const f=new Map,d=r=>{const i=r.join(".");if(f.has(i))return f.get(i);const o=t.computed(()=>n.atPath(a.value,r)),R={get(u,e,w){if(typeof e=="symbol"||typeof e=="string"&&(e.startsWith("__")||e.startsWith("$")))return e==="__v_isRef"?!0:e==="then"?void 0:Reflect.get(u,e,w);if(e==="value")return o.value??"";if(e==="c"||e==="asComponent")return n.toComponent(()=>o.value);if(e==="$raw")return o;if(e===Symbol.toPrimitive)return()=>String(o.value??"");const l=r.concat(e),c=n.atPath(a.value,l);if(c===void 0||n.isObjectLike(c)&&!n.isComponentLike(c))return d(l);if(n.isIntlayerNode(c))return n.createIntlayerLeafProxy(t.computed(()=>n.atPath(a.value,l)));const x=t.computed(()=>n.atPath(a.value,l));return new Proxy(x,{get(g,y,L){return y==="value"?g.value??"":y==="__v_isRef"?!0:Reflect.get(g,y,L)}})},ownKeys(){const u=n.atPath(a.value,r);return n.isObjectLike(u)?Reflect.ownKeys(u):[]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},m=new Proxy({},R);return f.set(i,m),m};return d([])};exports.useIntlayer=q;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@intlayer/config/built"),a=require("vue"),r=require("../../plugins-C-ttEWPT.js"),s=require("./useLocaleStorage.cjs"),u=({isCookieEnabled:c,onLocaleChange:i}={})=>{const{defaultLocale:o,locales:l}=n?.internationalization??{},t=a.inject(r.INTLAYER_SYMBOL);return{locale:a.computed(()=>t?.locale?.value??o),defaultLocale:o,availableLocales:l,setLocale:e=>{if(!l?.map(String).includes(e)){console.error(`Locale ${e} is not available`);return}t&&t.setLocale(e),s.setLocaleInStorage(e,c??t?.isCookieEnabled??!0),i?.(e)}}};exports.useLocale=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@intlayer/config/built"),a=require("vue"),r=require("../../plugins-pJ683VWg.js"),s=require("./useLocaleStorage.cjs"),u=({isCookieEnabled:c,onLocaleChange:i}={})=>{const{defaultLocale:o,locales:l}=n?.internationalization??{},t=a.inject(r.INTLAYER_SYMBOL);return{locale:a.computed(()=>t?.locale?.value??o),defaultLocale:o,availableLocales:l,setLocale:e=>{if(!l?.map(String).includes(e)){console.error(`Locale ${e} is not available`);return}t&&t.setLocale(e),s.setLocaleInStorage(e,c??t?.isCookieEnabled??!0),i?.(e)}}};exports.useLocale=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@intlayer/core"),r=require("vue"),a=o.getLocaleFromStorage(o.localeStorageOptions),s=a,c=(t,e)=>o.setLocaleInStorage(t,{...o.localeStorageOptions,isCookieEnabled:e}),g=c,l=t=>{const e=o.LocaleStorage({...o.localeStorageOptions,isCookieEnabled:t});return{localeStorage:r.computed(()=>e.getLocale()),setLocaleStorage:e.setLocale}},n=t=>{const e=l(t);return{localeCookie:e.localeStorage,setLocaleCookie:e.setLocaleStorage}};exports.localeCookie=s;exports.localeInStorage=a;exports.setLocaleCookie=g;exports.setLocaleInStorage=c;exports.useLocaleCookie=n;exports.useLocaleStorage=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@intlayer/core/localization"),a=require("@intlayer/core/utils"),s=require("vue"),l=a.getLocaleFromStorage(t.localeStorageOptions),n=l,c=(o,e)=>a.setLocaleInStorage(o,{...t.localeStorageOptions,isCookieEnabled:e}),g=c,r=o=>{const e=a.LocaleStorage({...t.localeStorageOptions,isCookieEnabled:o});return{localeStorage:s.computed(()=>e.getLocale()),setLocaleStorage:e.setLocale}},i=o=>{const e=r(o);return{localeCookie:e.localeStorage,setLocaleCookie:e.setLocaleStorage}};exports.localeCookie=n;exports.localeInStorage=l;exports.setLocaleCookie=g;exports.setLocaleInStorage=c;exports.useLocaleCookie=i;exports.useLocaleStorage=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@intlayer/config/built"),a=require("@intlayer/core"),c=require("vue"),s=require("./useLocale.cjs"),w=()=>{const{locale:i}=s.useLocale(),t=n?.routing?.rewrite;c.watch(i,r=>{if(typeof window>"u"||!t)return;const o=window.location.pathname,e=a.getRewritePath(o,r,t);e&&e!==o&&window.history.replaceState(window.history.state,"",e+window.location.search+window.location.hash)},{immediate:!0})};exports.useRewriteURL=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@intlayer/config/built"),a=require("@intlayer/core/localization"),c=require("vue"),s=require("./useLocale.cjs"),w=()=>{const{locale:i}=s.useLocale(),t=r?.routing?.rewrite;c.watch(i,n=>{if(typeof window>"u"||!t)return;const o=window.location.pathname,e=a.getRewritePath(o,n,t);e&&e!==o&&window.history.replaceState(window.history.state,"",e+window.location.search+window.location.hash)},{immediate:!0})};exports.useRewriteURL=w;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../plugins-C-ttEWPT.js");exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../plugins-pJ683VWg.js");exports.default=e._sfc_main;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../EditedContentRenderer.vue_vue_type_script_setup_true_lang-CilQuo_6.js");exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../EditedContentRenderer.vue_vue_type_script_setup_true_lang-DYN7KHa_.js");exports.default=e._sfc_main;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../plugins-C-ttEWPT.js"),d=require("../../EditedContentRenderer.vue_vue_type_script_setup_true_lang-CilQuo_6.js"),l=e.defineComponent({__name:"EditorSelectorRenderer",props:{dictionaryKey:{},keyPath:{},plugins:{},locale:{},dictionaryPath:{},children:{}},setup(i){const c=i,{keyPath:t,children:r,dictionaryKey:n}=c;return(a,u)=>(e.openBlock(),e.createBlock(o._sfc_main,{dictionaryKey:e.unref(n),keyPath:e.unref(t),children:e.unref(r)},{default:e.withCtx(()=>[e.createVNode(d._sfc_main,{dictionaryKey:e.unref(n),keyPath:e.unref(t),children:e.unref(r)},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["dictionaryKey","keyPath","children"])]),_:3},8,["dictionaryKey","keyPath","children"]))}});exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../plugins-pJ683VWg.js"),d=require("../../EditedContentRenderer.vue_vue_type_script_setup_true_lang-DYN7KHa_.js"),l=e.defineComponent({__name:"EditorSelectorRenderer",props:{dictionaryKey:{},keyPath:{},plugins:{},locale:{},dictionaryPath:{},children:{}},setup(i){const c=i,{keyPath:t,children:r,dictionaryKey:n}=c;return(a,u)=>(e.openBlock(),e.createBlock(o._sfc_main,{dictionaryKey:e.unref(n),keyPath:e.unref(t),children:e.unref(r)},{default:e.withCtx(()=>[e.createVNode(d._sfc_main,{dictionaryKey:e.unref(n),keyPath:e.unref(t),children:e.unref(r)},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["dictionaryKey","keyPath","children"])]),_:3},8,["dictionaryKey","keyPath","children"]))}});exports.default=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("@intlayer/core"),v=require("@intlayer/editor"),y=require("@intlayer/types"),d=require("vue"),h=require("./createSharedComposable.cjs"),S=require("./useCrossFrameState.cjs");let s=null;const E=Symbol("EditedContent"),f=t=>{if(s)return s;const n=d.ref({});return s={editedContent:d.readonly(n),getEditedContentValue:(e,r)=>{const i=n.value;if(!i)return;const c=r.filter(o=>o.type!==y.NodeType.Translation),N=e.includes(":local:")||e.includes(":remote:"),a=t?.locale.value;if(N){const o=i?.[e]?.content??{};return C.getContentNodeByKeyPath(o,c,a)}const T=Object.keys(i).filter(o=>o.startsWith(`${e}:`));for(const o of T){const u=i?.[o]?.content??{},l=C.getContentNodeByKeyPath(u,c,a);if(l)return l}},setEditedContent:e=>{n.value=e}},s},_=(t,n)=>{const e=f(n);t.provide(E,e)},m=h.createSharedComposable(()=>{const t=d.inject(E);if(!t)throw new Error("EditedContent state not found");const[n,e]=S.useCrossFrameState(v.MessageKey.INTLAYER_EDITED_CONTENT_CHANGED,{});return d.watch(n,r=>{t.editedContent.value=r??{}}),d.watch(t,r=>{e(r.editedContent.value)}),t});exports.createEditedContentClient=f;exports.installEditedContent=_;exports.useEditedContent=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("@intlayer/core/dictionaryManipulator"),T=require("@intlayer/editor"),v=require("@intlayer/types"),i=require("vue"),h=require("./createSharedComposable.cjs"),p=require("./useCrossFrameState.cjs");let s=null;const E=Symbol("EditedContent"),f=e=>{if(s)return s;const n=i.ref({});return s={editedContent:i.readonly(n),getEditedContentValue:(t,r)=>{const d=n.value;if(!d)return;const c=r.filter(o=>o.type!==v.NodeType.Translation),N=t.includes(":local:")||t.includes(":remote:"),a=e?.locale.value;if(N){const o=d?.[t]?.content??{};return C.getContentNodeByKeyPath(o,c,a)}const y=Object.keys(d).filter(o=>o.startsWith(`${t}:`));for(const o of y){const u=d?.[o]?.content??{},l=C.getContentNodeByKeyPath(u,c,a);if(l)return l}},setEditedContent:t=>{n.value=t}},s},S=(e,n)=>{const t=f(n);e.provide(E,t)},_=h.createSharedComposable(()=>{const e=i.inject(E);if(!e)throw new Error("EditedContent state not found");const[n,t]=p.useCrossFrameState(T.MessageKey.INTLAYER_EDITED_CONTENT_CHANGED,{});return i.watch(n,r=>{e.editedContent.value=r??{}}),i.watch(e,r=>{t(r.editedContent.value)}),e});exports.createEditedContentClient=f;exports.installEditedContent=S;exports.useEditedContent=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@intlayer/editor");require("vue");const e=require("../../plugins-C-ttEWPT.js");require("@intlayer/config/built");require("@intlayer/core");require("../client/useLocaleStorage.cjs");require("./createSharedComposable.cjs");require("./useCrossFrameState.cjs");exports.useEditorLocale=e.useEditorLocale;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@intlayer/editor");require("vue");const e=require("../../plugins-pJ683VWg.js");require("@intlayer/config/built");require("@intlayer/core/interpreter");require("../client/useLocaleStorage.cjs");require("@intlayer/core/localization");require("./createSharedComposable.cjs");require("./useCrossFrameState.cjs");exports.useEditorLocale=e.useEditorLocale;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../plugins-C-ttEWPT.js"),e=require("./installIntlayerEditor.cjs");exports.ContentSelectorWrapper=t._sfc_main;exports.useEditor=t.useEditor;exports.installIntlayerEditor=e.installIntlayerEditor;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../plugins-pJ683VWg.js"),e=require("./installIntlayerEditor.cjs");exports.ContentSelectorWrapper=t._sfc_main;exports.useEditor=t.useEditor;exports.installIntlayerEditor=e.installIntlayerEditor;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./configuration.cjs");require("./createSharedComposable.cjs");require("./dictionariesRecord.cjs");require("./editorEnabled.cjs");const e=require("../../plugins-C-ttEWPT.js");require("./focusDictionary.cjs");require("./useCrossURLPathState.cjs");require("./useIframeClickInterceptor.cjs");exports.useEditor=e.useEditor;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./configuration.cjs");require("./createSharedComposable.cjs");require("./dictionariesRecord.cjs");require("./editorEnabled.cjs");const e=require("../../plugins-pJ683VWg.js");require("./focusDictionary.cjs");require("./useCrossURLPathState.cjs");require("./useIframeClickInterceptor.cjs");exports.useEditor=e.useEditor;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@intlayer/core"),t=require("vue"),n=require("../../plugins-C-ttEWPT.js"),r=()=>{const c=t.inject(n.INTLAYER_SYMBOL);return t.computed(()=>{const o=c.locale.value;return(...e)=>l.compact(e[0],{...e[1],locale:e[1]?.locale??o})})};exports.useCompact=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@intlayer/core/formatters"),t=require("vue"),r=require("../../plugins-pJ683VWg.js"),n=()=>{const c=t.inject(r.INTLAYER_SYMBOL);return t.computed(()=>{const o=c.locale.value;return(...e)=>l.compact(e[0],{...e[1],locale:e[1]?.locale??o})})};exports.useCompact=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@intlayer/core"),r=require("vue"),l=require("../../plugins-C-ttEWPT.js"),o=()=>{const c=r.inject(l.INTLAYER_SYMBOL);return r.computed(()=>{const t=c.locale.value;return(...e)=>n.currency(e[0],{...e[1],locale:e[1]?.locale??t})})};exports.useCurrency=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@intlayer/core/formatters"),r=require("vue"),l=require("../../plugins-pJ683VWg.js"),o=()=>{const t=r.inject(l.INTLAYER_SYMBOL);return r.computed(()=>{const c=t.locale.value;return(...e)=>n.currency(e[0],{...e[1],locale:e[1]?.locale??c})})};exports.useCurrency=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@intlayer/core"),t=require("vue"),n=require("../../plugins-C-ttEWPT.js"),r=()=>{const l=t.inject(n.INTLAYER_SYMBOL);return t.computed(()=>{const c=l.locale.value;return(...e)=>o.date(e[0],{...e[1],locale:e[1]?.locale??c})})};exports.useDate=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@intlayer/core/formatters"),t=require("vue"),c=require("../../plugins-pJ683VWg.js"),n=()=>{const l=t.inject(c.INTLAYER_SYMBOL);return t.computed(()=>{const o=l.locale.value;return(...e)=>r.date(e[0],{...e[1],locale:e[1]?.locale??o})})};exports.useDate=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@intlayer/core"),e=require("vue"),l=require("../../plugins-C-ttEWPT.js"),o=t=>{const n=e.inject(l.INTLAYER_SYMBOL);return e.computed(()=>{const r=t??n.locale.value;return c.bindIntl(r)})};exports.useIntl=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@intlayer/core/utils"),e=require("vue"),u=require("../../plugins-pJ683VWg.js"),c=t=>{const n=e.inject(u.INTLAYER_SYMBOL);return e.computed(()=>{const r=t??n.locale.value;return l.bindIntl(r)})};exports.useIntl=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@intlayer/core"),t=require("vue"),n=require("../../plugins-C-ttEWPT.js"),r=()=>{const l=t.inject(n.INTLAYER_SYMBOL);return t.computed(()=>{const c=l.locale.value;return(...e)=>o.list(e[0],{...e[1],locale:e[1]?.locale??c})})};exports.useList=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@intlayer/core/formatters"),t=require("vue"),c=require("../../plugins-pJ683VWg.js"),n=()=>{const l=t.inject(c.INTLAYER_SYMBOL);return t.computed(()=>{const o=l.locale.value;return(...e)=>r.list(e[0],{...e[1],locale:e[1]?.locale??o})})};exports.useList=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@intlayer/core"),t=require("vue"),n=require("../../plugins-C-ttEWPT.js"),o=()=>{const r=t.inject(n.INTLAYER_SYMBOL);return t.computed(()=>{const l=r.locale.value;return(...e)=>c.number(e[0],{...e[1],locale:e[1]?.locale??l})})};exports.useNumber=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@intlayer/core/formatters"),t=require("vue"),o=require("../../plugins-pJ683VWg.js"),u=()=>{const r=t.inject(o.INTLAYER_SYMBOL);return t.computed(()=>{const l=r.locale.value;return(...e)=>n.number(e[0],{...e[1],locale:e[1]?.locale??l})})};exports.useNumber=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@intlayer/core"),t=require("vue"),l=require("../../plugins-C-ttEWPT.js"),o=()=>{const c=t.inject(l.INTLAYER_SYMBOL);return t.computed(()=>{const n=c.locale.value;return(...e)=>r.percentage(e[0],{...e[1],locale:e[1]?.locale??n})})};exports.usePercentage=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@intlayer/core/formatters"),t=require("vue"),l=require("../../plugins-pJ683VWg.js"),o=()=>{const r=t.inject(l.INTLAYER_SYMBOL);return t.computed(()=>{const c=r.locale.value;return(...e)=>n.percentage(e[0],{...e[1],locale:e[1]?.locale??c})})};exports.usePercentage=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@intlayer/core"),t=require("vue"),o=require("../../plugins-C-ttEWPT.js"),n=()=>{const l=t.inject(o.INTLAYER_SYMBOL);return t.computed(()=>{const c=l.locale.value;return(...e)=>i.relativeTime(e[0],e[1],{...e[2],locale:e[2]?.locale??c})})};exports.useRelativeTime=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@intlayer/core/formatters"),t=require("vue"),r=require("../../plugins-pJ683VWg.js"),c=()=>{const l=t.inject(r.INTLAYER_SYMBOL);return t.computed(()=>{const i=l.locale.value;return(...e)=>o.relativeTime(e[0],e[1],{...e[2],locale:e[2]?.locale??i})})};exports.useRelativeTime=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@intlayer/core"),t=require("vue"),o=require("../../plugins-C-ttEWPT.js"),r=()=>{const n=t.inject(o.INTLAYER_SYMBOL);return t.computed(()=>{const l=n.locale.value;return(...e)=>c.units(e[0],{...e[1],locale:e[1]?.locale??l})})};exports.useUnit=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@intlayer/core/formatters"),t=require("vue"),r=require("../../plugins-pJ683VWg.js"),c=()=>{const n=t.inject(r.INTLAYER_SYMBOL);return t.computed(()=>{const l=n.locale.value;return(...e)=>o.units(e[0],{...e[1],locale:e[1]?.locale??l})})};exports.useUnit=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@intlayer/core"),t=require("../plugins-C-ttEWPT.js"),l=(n,e,i)=>{const r=[t.intlayerNodePlugins,t.insertionPlugin,t.markdownPlugin,t.htmlPlugin,...i??[]];return o.getDictionary(n,e,r)};exports.getDictionary=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@intlayer/core/interpreter"),t=require("../plugins-pJ683VWg.js"),o=(e,n,i)=>{const r=[t.intlayerNodePlugins,t.insertionPlugin,t.markdownPlugin,t.htmlPlugin,...i??[]];return l.getDictionary(e,n,r)};exports.getDictionary=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@intlayer/core"),e=require("../plugins-C-ttEWPT.js"),o=(t,n,r)=>{const l=[e.intlayerNodePlugins,e.insertionPlugin,e.markdownPlugin,e.htmlPlugin,...r??[]];return i.getIntlayer(t,n,l)};exports.getIntlayer=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@intlayer/core/interpreter"),e=require("../plugins-pJ683VWg.js"),o=(t,n,r)=>{const l=[e.intlayerNodePlugins,e.insertionPlugin,e.markdownPlugin,e.htmlPlugin,...r??[]];return i.getIntlayer(t,n,l)};exports.getIntlayer=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@intlayer/core"),s=require("vue"),c=require("./installIntlayerHTML.cjs"),t=(e,{components:r}={})=>u.getHTML(e,r),o=({components:e}={})=>{const r=c.useHTML();return n=>r?r.renderHTML(n,{components:e}):t(n,{components:e})},d=s.defineComponent({name:"HTMLRenderer",props:{content:{type:String,required:!0},components:{type:Object,default:void 0}},setup(e){const r=o({components:e.components});return()=>r(e.content)}});exports.HTMLRenderer=d;exports.renderHTML=t;exports.useHTMLRenderer=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@intlayer/core/interpreter"),s=require("vue"),c=require("./installIntlayerHTML.cjs"),t=(e,{components:r}={})=>u.getHTML(e,r),o=({components:e}={})=>{const r=c.useHTML();return n=>r?r.renderHTML(n,{components:e}):t(n,{components:e})},d=s.defineComponent({name:"HTMLRenderer",props:{content:{type:String,required:!0},components:{type:Object,default:void 0}},setup(e){const r=o({components:e.components});return()=>r(e.content)}});exports.HTMLRenderer=d;exports.renderHTML=t;exports.useHTMLRenderer=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("@intlayer/core"),M=require("vue"),l=Symbol("intlayerHTML");let s=null;const T=r=>s||(s={renderHTML:r},s),y=(r,e)=>{let t;if(typeof e=="function")t=e;else{const{components:c,renderHTML:n}=e??{};n?t=n:t=(L,o)=>{const a=o&&typeof o=="object"&&"components"in o,{components:H,...m}=a?o:{components:o},i={...c,...H||m};return p.getHTML(L,i)}}const u=T((c,n)=>typeof e=="function"||typeof e=="object"&&e?.renderHTML?{setup(){return M.provide(l,{renderHTML:void 0}),()=>t(c,n)}}:t(c,n));r.provide(l,u)},d=()=>M.inject(l);exports.INTLAYER_HTML_SYMBOL=l;exports.createIntlayerHTMLClient=T;exports.installIntlayerHTML=y;exports.useHTML=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("@intlayer/core/interpreter"),M=require("vue"),l=Symbol("intlayerHTML");let s=null;const T=r=>s||(s={renderHTML:r},s),y=(r,e)=>{let t;if(typeof e=="function")t=e;else{const{components:c,renderHTML:n}=e??{};n?t=n:t=(L,o)=>{const a=o&&typeof o=="object"&&"components"in o,{components:H,...m}=a?o:{components:o},i={...c,...H||m};return p.getHTML(L,i)}}const u=T((c,n)=>typeof e=="function"||typeof e=="object"&&e?.renderHTML?{setup(){return M.provide(l,{renderHTML:void 0}),()=>t(c,n)}}:t(c,n));r.provide(l,u)},d=()=>M.inject(l);exports.INTLAYER_HTML_SYMBOL=l;exports.createIntlayerHTMLClient=T;exports.installIntlayerHTML=y;exports.useHTML=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../plugins-C-ttEWPT.js"),r=require("./client/useDictionary.cjs"),u=require("./client/useDictionaryAsync.cjs"),c=require("./client/useDictionaryDynamic.cjs"),y=require("./client/useIntlayer.cjs"),d=require("./client/useLoadDynamic.cjs"),L=require("./client/useLocale.cjs"),M=require("./client/useRewriteURL.cjs"),m=require("./editor/installIntlayerEditor.cjs"),I=require("./format/useIntl.cjs"),R=require("./getDictionary.cjs"),k=require("./getIntlayer.cjs"),i=require("./html/HTMLRenderer.cjs"),n=require("./html/installIntlayerHTML.cjs"),a=require("./markdown/compiler.cjs"),t=require("./markdown/installIntlayerMarkdown.cjs"),l=require("./markdown/MarkdownRenderer.cjs"),s=require("./markdown/runtime.cjs"),o=require("@intlayer/core");exports.ContentSelectorWrapper=e._sfc_main;exports.INTLAYER_SYMBOL=e.INTLAYER_SYMBOL;exports.createIntlayerClient=e.createIntlayerClient;exports.htmlPlugin=e.htmlPlugin;exports.insertionPlugin=e.insertionPlugin;exports.installIntlayer=e.installIntlayer;exports.intlayerNodePlugins=e.intlayerNodePlugins;exports.markdownPlugin=e.markdownPlugin;exports.markdownStringPlugin=e.markdownStringPlugin;exports.useEditor=e.useEditor;exports.atPath=r.atPath;exports.createIntlayerLeafProxy=r.createIntlayerLeafProxy;exports.isComponentLike=r.isComponentLike;exports.isIntlayerNode=r.isIntlayerNode;exports.isObjectLike=r.isObjectLike;exports.toComponent=r.toComponent;exports.useDictionary=r.useDictionary;exports.useDictionaryAsync=u.useDictionaryAsync;exports.useDictionaryDynamic=c.useDictionaryDynamic;exports.useIntlayer=y.useIntlayer;exports.useLoadDynamic=d.useLoadDynamic;exports.useLocale=L.useLocale;exports.useRewriteURL=M.useRewriteURL;exports.installIntlayerEditor=m.installIntlayerEditor;exports.useIntl=I.useIntl;exports.getDictionary=R.getDictionary;exports.getIntlayer=k.getIntlayer;exports.HTMLRenderer=i.HTMLRenderer;exports.renderHTML=i.renderHTML;exports.useHTMLRenderer=i.useHTMLRenderer;exports.INTLAYER_HTML_SYMBOL=n.INTLAYER_HTML_SYMBOL;exports.createIntlayerHTMLClient=n.createIntlayerHTMLClient;exports.installIntlayerHTML=n.installIntlayerHTML;exports.useHTML=n.useHTML;exports.compile=a.compile;exports.compileMarkdown=a.compileMarkdown;exports.compiler=a.compiler;exports.INTLAYER_MARKDOWN_SYMBOL=t.INTLAYER_MARKDOWN_SYMBOL;exports.createIntlayerMarkdownClient=t.createIntlayerMarkdownClient;exports.installIntlayerMarkdown=t.installIntlayerMarkdown;exports.useMarkdown=t.useMarkdown;exports.MarkdownRenderer=l.MarkdownRenderer;exports.renderMarkdown=l.renderMarkdown;exports.useMarkdownRenderer=l.useMarkdownRenderer;exports.createVueRuntime=s.createVueRuntime;exports.vueRuntime=s.default;Object.defineProperty(exports,"RuleType",{enumerable:!0,get:()=>o.RuleType});Object.defineProperty(exports,"sanitizer",{enumerable:!0,get:()=>o.sanitizer});Object.defineProperty(exports,"slugify",{enumerable:!0,get:()=>o.slugify});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../plugins-pJ683VWg.js"),r=require("./client/useDictionary.cjs"),u=require("./client/useDictionaryAsync.cjs"),c=require("./client/useDictionaryDynamic.cjs"),y=require("./client/useIntlayer.cjs"),d=require("./client/useLoadDynamic.cjs"),L=require("./client/useLocale.cjs"),M=require("./client/useRewriteURL.cjs"),m=require("./editor/installIntlayerEditor.cjs"),I=require("./format/useIntl.cjs"),k=require("./getDictionary.cjs"),R=require("./getIntlayer.cjs"),i=require("./html/HTMLRenderer.cjs"),n=require("./html/installIntlayerHTML.cjs"),a=require("./markdown/compiler.cjs"),t=require("./markdown/installIntlayerMarkdown.cjs"),l=require("./markdown/MarkdownRenderer.cjs"),s=require("./markdown/runtime.cjs"),o=require("@intlayer/core/markdown");exports.ContentSelectorWrapper=e._sfc_main;exports.INTLAYER_SYMBOL=e.INTLAYER_SYMBOL;exports.createIntlayerClient=e.createIntlayerClient;exports.htmlPlugin=e.htmlPlugin;exports.insertionPlugin=e.insertionPlugin;exports.installIntlayer=e.installIntlayer;exports.intlayerNodePlugins=e.intlayerNodePlugins;exports.markdownPlugin=e.markdownPlugin;exports.markdownStringPlugin=e.markdownStringPlugin;exports.useEditor=e.useEditor;exports.atPath=r.atPath;exports.createIntlayerLeafProxy=r.createIntlayerLeafProxy;exports.isComponentLike=r.isComponentLike;exports.isIntlayerNode=r.isIntlayerNode;exports.isObjectLike=r.isObjectLike;exports.toComponent=r.toComponent;exports.useDictionary=r.useDictionary;exports.useDictionaryAsync=u.useDictionaryAsync;exports.useDictionaryDynamic=c.useDictionaryDynamic;exports.useIntlayer=y.useIntlayer;exports.useLoadDynamic=d.useLoadDynamic;exports.useLocale=L.useLocale;exports.useRewriteURL=M.useRewriteURL;exports.installIntlayerEditor=m.installIntlayerEditor;exports.useIntl=I.useIntl;exports.getDictionary=k.getDictionary;exports.getIntlayer=R.getIntlayer;exports.HTMLRenderer=i.HTMLRenderer;exports.renderHTML=i.renderHTML;exports.useHTMLRenderer=i.useHTMLRenderer;exports.INTLAYER_HTML_SYMBOL=n.INTLAYER_HTML_SYMBOL;exports.createIntlayerHTMLClient=n.createIntlayerHTMLClient;exports.installIntlayerHTML=n.installIntlayerHTML;exports.useHTML=n.useHTML;exports.compile=a.compile;exports.compileMarkdown=a.compileMarkdown;exports.compiler=a.compiler;exports.INTLAYER_MARKDOWN_SYMBOL=t.INTLAYER_MARKDOWN_SYMBOL;exports.createIntlayerMarkdownClient=t.createIntlayerMarkdownClient;exports.installIntlayerMarkdown=t.installIntlayerMarkdown;exports.useMarkdown=t.useMarkdown;exports.MarkdownRenderer=l.MarkdownRenderer;exports.renderMarkdown=l.renderMarkdown;exports.useMarkdownRenderer=l.useMarkdownRenderer;exports.createVueRuntime=s.createVueRuntime;exports.vueRuntime=s.default;Object.defineProperty(exports,"RuleType",{enumerable:!0,get:()=>o.RuleType});Object.defineProperty(exports,"sanitizer",{enumerable:!0,get:()=>o.sanitizer});Object.defineProperty(exports,"slugify",{enumerable:!0,get:()=>o.slugify});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@intlayer/core"),o=require("./runtime.cjs"),r=(t="",i={})=>e.compileWithOptions(t,o.default,i),n=r,c=r;Object.defineProperty(exports,"RuleType",{enumerable:!0,get:()=>e.RuleType});Object.defineProperty(exports,"sanitizer",{enumerable:!0,get:()=>e.sanitizer});Object.defineProperty(exports,"slugify",{enumerable:!0,get:()=>e.slugify});exports.compile=c;exports.compileMarkdown=r;exports.compiler=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@intlayer/core/markdown"),o=require("./runtime.cjs"),r=(t="",i={})=>e.compileWithOptions(t,o.default,i),n=r,l=r;Object.defineProperty(exports,"RuleType",{enumerable:!0,get:()=>e.RuleType});Object.defineProperty(exports,"sanitizer",{enumerable:!0,get:()=>e.sanitizer});Object.defineProperty(exports,"slugify",{enumerable:!0,get:()=>e.slugify});exports.compile=l;exports.compileMarkdown=r;exports.compiler=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./compiler.cjs"),e=require("./installIntlayerMarkdown.cjs"),n=require("./MarkdownRenderer.cjs"),a=require("./runtime.cjs"),t=require("@intlayer/core");exports.compile=r.compile;exports.compileMarkdown=r.compileMarkdown;exports.compiler=r.compiler;exports.INTLAYER_MARKDOWN_SYMBOL=e.INTLAYER_MARKDOWN_SYMBOL;exports.createIntlayerMarkdownClient=e.createIntlayerMarkdownClient;exports.installIntlayerMarkdown=e.installIntlayerMarkdown;exports.useMarkdown=e.useMarkdown;exports.MarkdownRenderer=n.MarkdownRenderer;exports.renderMarkdown=n.renderMarkdown;exports.useMarkdownRenderer=n.useMarkdownRenderer;exports.createVueRuntime=a.createVueRuntime;exports.vueRuntime=a.default;Object.defineProperty(exports,"RuleType",{enumerable:!0,get:()=>t.RuleType});Object.defineProperty(exports,"sanitizer",{enumerable:!0,get:()=>t.sanitizer});Object.defineProperty(exports,"slugify",{enumerable:!0,get:()=>t.slugify});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./compiler.cjs"),e=require("./installIntlayerMarkdown.cjs"),n=require("./MarkdownRenderer.cjs"),a=require("./runtime.cjs"),t=require("@intlayer/core/markdown");exports.compile=r.compile;exports.compileMarkdown=r.compileMarkdown;exports.compiler=r.compiler;exports.INTLAYER_MARKDOWN_SYMBOL=e.INTLAYER_MARKDOWN_SYMBOL;exports.createIntlayerMarkdownClient=e.createIntlayerMarkdownClient;exports.installIntlayerMarkdown=e.installIntlayerMarkdown;exports.useMarkdown=e.useMarkdown;exports.MarkdownRenderer=n.MarkdownRenderer;exports.renderMarkdown=n.renderMarkdown;exports.useMarkdownRenderer=n.useMarkdownRenderer;exports.createVueRuntime=a.createVueRuntime;exports.vueRuntime=a.default;Object.defineProperty(exports,"RuleType",{enumerable:!0,get:()=>t.RuleType});Object.defineProperty(exports,"sanitizer",{enumerable:!0,get:()=>t.sanitizer});Object.defineProperty(exports,"slugify",{enumerable:!0,get:()=>t.slugify});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@intlayer/core");require("@intlayer/types");require("vue");const e=require("../plugins-C-ttEWPT.js");require("./editor/installIntlayerEditor.cjs");require("@intlayer/config/built");require("@intlayer/editor");require("./editor/communicator.cjs");require("./client/useLocaleStorage.cjs");require("./markdown/installIntlayerMarkdown.cjs");require("./renderIntlayerNode.cjs");exports.htmlPlugin=e.htmlPlugin;exports.insertionPlugin=e.insertionPlugin;exports.intlayerNodePlugins=e.intlayerNodePlugins;exports.markdownPlugin=e.markdownPlugin;exports.markdownStringPlugin=e.markdownStringPlugin;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@intlayer/core/interpreter");require("@intlayer/core/markdown");require("@intlayer/core/transpiler");require("@intlayer/types");require("vue");const e=require("../plugins-pJ683VWg.js");require("./editor/installIntlayerEditor.cjs");require("@intlayer/config/built");require("@intlayer/editor");require("./editor/communicator.cjs");require("./client/useLocaleStorage.cjs");require("@intlayer/core/localization");require("./markdown/installIntlayerMarkdown.cjs");require("./renderIntlayerNode.cjs");exports.htmlPlugin=e.htmlPlugin;exports.insertionPlugin=e.insertionPlugin;exports.intlayerNodePlugins=e.intlayerNodePlugins;exports.markdownPlugin=e.markdownPlugin;exports.markdownStringPlugin=e.markdownStringPlugin;
@@ -1,4 +1,4 @@
1
- import { I as r, c as t, a } from "../../plugins-BtrDPsT6.mjs";
1
+ import { I as r, c as t, a } from "../../plugins-DMjvMNJp.mjs";
2
2
  import { atPath as i, createIntlayerLeafProxy as s, isComponentLike as m, isIntlayerNode as y, isObjectLike as c, toComponent as p, useDictionary as f } from "./useDictionary.mjs";
3
3
  import { useDictionaryAsync as x } from "./useDictionaryAsync.mjs";
4
4
  import { useDictionaryDynamic as u } from "./useDictionaryDynamic.mjs";
@@ -1,14 +1,16 @@
1
1
  import "@intlayer/config/built";
2
2
  import "vue";
3
- import "@intlayer/core";
3
+ import "@intlayer/core/utils";
4
4
  import "@intlayer/editor";
5
5
  import "@intlayer/types";
6
6
  import "../editor/communicator.mjs";
7
- import { I as s, c as I, a as c } from "../../plugins-BtrDPsT6.mjs";
7
+ import { I as c, c as y, a as L } from "../../plugins-DMjvMNJp.mjs";
8
+ import "@intlayer/core/interpreter";
8
9
  import "./useLocaleStorage.mjs";
10
+ import "@intlayer/core/localization";
9
11
  import "../editor/installIntlayerEditor.mjs";
10
12
  export {
11
- s as INTLAYER_SYMBOL,
12
- I as createIntlayerClient,
13
- c as installIntlayer
13
+ c as INTLAYER_SYMBOL,
14
+ y as createIntlayerClient,
15
+ L as installIntlayer
14
16
  };
@@ -1,7 +1,7 @@
1
1
  import j from "@intlayer/config/built";
2
2
  import { markRaw as k, defineComponent as C, h as g, inject as I, isRef as D, ref as K, computed as y, toValue as P, shallowRef as O, watch as S } from "vue";
3
3
  import { getDictionary as A } from "../getDictionary.mjs";
4
- import { I as N } from "../../plugins-BtrDPsT6.mjs";
4
+ import { I as N } from "../../plugins-DMjvMNJp.mjs";
5
5
  const l = (e, t) => t.reduce((r, n) => r?.[n], e), d = (e) => e != null && typeof e == "object", x = (e) => typeof e == "function" || d(e) && ("render" in e || "setup" in e), T = (e) => e != null && typeof e == "object" && "__update" in e && "render" in e && "raw" in e, L = (e) => k(
6
6
  C({
7
7
  name: "IntlayerLeaf",
@@ -1,6 +1,6 @@
1
1
  import r from "@intlayer/config/built";
2
2
  import { inject as l, computed as s, ref as u, watch as f } from "vue";
3
- import { I as m } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as m } from "../../plugins-DMjvMNJp.mjs";
4
4
  import { useDictionary as y } from "./useDictionary.mjs";
5
5
  const L = async (a, i) => {
6
6
  const c = l(m), t = s(
@@ -1,7 +1,7 @@
1
1
  import C from "@intlayer/config/built";
2
2
  import { inject as j, isRef as k, ref as K, computed as s, toValue as h, shallowRef as O, watch as S } from "vue";
3
3
  import { getIntlayer as M } from "../getIntlayer.mjs";
4
- import { I as N } from "../../plugins-BtrDPsT6.mjs";
4
+ import { I as N } from "../../plugins-DMjvMNJp.mjs";
5
5
  import { atPath as o, isObjectLike as x, toComponent as T, isComponentLike as W, isIntlayerNode as Y, createIntlayerLeafProxy as $ } from "./useDictionary.mjs";
6
6
  const V = (R, m) => {
7
7
  const c = j(N), w = k(c?.locale) ? c.locale : K(c?.locale ?? C.internationalization.defaultLocale), _ = s(() => (m !== void 0 ? h(m) : void 0) ?? w.value), r = O({});
@@ -1,6 +1,6 @@
1
1
  import i from "@intlayer/config/built";
2
2
  import { inject as c, computed as n } from "vue";
3
- import { I as s } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as s } from "../../plugins-DMjvMNJp.mjs";
4
4
  import { setLocaleInStorage as m } from "./useLocaleStorage.mjs";
5
5
  const g = ({
6
6
  isCookieEnabled: l,
@@ -1,15 +1,16 @@
1
- import { getLocaleFromStorage as a, localeStorageOptions as t, setLocaleInStorage as c, LocaleStorage as l } from "@intlayer/core";
2
- import { computed as r } from "vue";
3
- const s = a(t), i = s, g = (e, o) => c(e, {
1
+ import { localeStorageOptions as t } from "@intlayer/core/localization";
2
+ import { getLocaleFromStorage as a, setLocaleInStorage as c, LocaleStorage as r } from "@intlayer/core/utils";
3
+ import { computed as l } from "vue";
4
+ const s = a(t), m = s, g = (e, o) => c(e, {
4
5
  ...t,
5
6
  isCookieEnabled: o
6
- }), m = g, n = (e) => {
7
- const o = l({
7
+ }), p = g, n = (e) => {
8
+ const o = r({
8
9
  ...t,
9
10
  isCookieEnabled: e
10
11
  });
11
12
  return {
12
- localeStorage: r(() => o.getLocale()),
13
+ localeStorage: l(() => o.getLocale()),
13
14
  setLocaleStorage: o.setLocale
14
15
  };
15
16
  }, k = (e) => {
@@ -20,9 +21,9 @@ const s = a(t), i = s, g = (e, o) => c(e, {
20
21
  };
21
22
  };
22
23
  export {
23
- i as localeCookie,
24
+ m as localeCookie,
24
25
  s as localeInStorage,
25
- m as setLocaleCookie,
26
+ p as setLocaleCookie,
26
27
  g as setLocaleInStorage,
27
28
  k as useLocaleCookie,
28
29
  n as useLocaleStorage
@@ -1,5 +1,5 @@
1
1
  import n from "@intlayer/config/built";
2
- import { getRewritePath as a } from "@intlayer/core";
2
+ import { getRewritePath as a } from "@intlayer/core/localization";
3
3
  import { watch as w } from "vue";
4
4
  import { useLocale as c } from "./useLocale.mjs";
5
5
  const f = () => {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../plugins-BtrDPsT6.mjs";
1
+ import { _ as f } from "../../plugins-DMjvMNJp.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../EditedContentRenderer.vue_vue_type_script_setup_true_lang-DyLCuFVf.mjs";
1
+ import { _ as f } from "../../EditedContentRenderer.vue_vue_type_script_setup_true_lang-BlN498QG.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, openBlock as y, createBlock as l, unref as e, withCtx as n, createVNode as h, renderSlot as s } from "vue";
2
- import { _ } from "../../plugins-BtrDPsT6.mjs";
3
- import { _ as f } from "../../EditedContentRenderer.vue_vue_type_script_setup_true_lang-DyLCuFVf.mjs";
2
+ import { _ } from "../../plugins-DMjvMNJp.mjs";
3
+ import { _ as f } from "../../EditedContentRenderer.vue_vue_type_script_setup_true_lang-BlN498QG.mjs";
4
4
  const P = /* @__PURE__ */ d({
5
5
  __name: "EditorSelectorRenderer",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { getContentNodeByKeyPath as u } from "@intlayer/core";
1
+ import { getContentNodeByKeyPath as u } from "@intlayer/core/dictionaryManipulator";
2
2
  import { MessageKey as N } from "@intlayer/editor";
3
3
  import { NodeType as p } from "@intlayer/types";
4
4
  import { ref as T, readonly as v, inject as h, watch as C } from "vue";
@@ -1,11 +1,12 @@
1
1
  import "@intlayer/editor";
2
2
  import "vue";
3
- import { e as c } from "../../plugins-BtrDPsT6.mjs";
3
+ import { e as d } from "../../plugins-DMjvMNJp.mjs";
4
4
  import "@intlayer/config/built";
5
- import "@intlayer/core";
5
+ import "@intlayer/core/interpreter";
6
6
  import "../client/useLocaleStorage.mjs";
7
+ import "@intlayer/core/localization";
7
8
  import "./createSharedComposable.mjs";
8
9
  import "./useCrossFrameState.mjs";
9
10
  export {
10
- c as useEditorLocale
11
+ d as useEditorLocale
11
12
  };
@@ -1,4 +1,4 @@
1
- import { _ as e, u as o } from "../../plugins-BtrDPsT6.mjs";
1
+ import { _ as e, u as o } from "../../plugins-DMjvMNJp.mjs";
2
2
  import { installIntlayerEditor as l } from "./installIntlayerEditor.mjs";
3
3
  export {
4
4
  e as ContentSelectorWrapper,
@@ -2,7 +2,7 @@ import "./configuration.mjs";
2
2
  import "./createSharedComposable.mjs";
3
3
  import "./dictionariesRecord.mjs";
4
4
  import "./editorEnabled.mjs";
5
- import { u as a } from "../../plugins-BtrDPsT6.mjs";
5
+ import { u as a } from "../../plugins-DMjvMNJp.mjs";
6
6
  import "./focusDictionary.mjs";
7
7
  import "./useCrossURLPathState.mjs";
8
8
  import "./useIframeClickInterceptor.mjs";
@@ -1,6 +1,6 @@
1
- import { compact as e } from "@intlayer/core";
1
+ import { compact as e } from "@intlayer/core/formatters";
2
2
  import { inject as l, computed as r } from "vue";
3
- import { I as m } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as m } from "../../plugins-DMjvMNJp.mjs";
4
4
  const i = () => {
5
5
  const t = l(m);
6
6
  return r(() => {
@@ -1,6 +1,6 @@
1
- import { currency as c } from "@intlayer/core";
1
+ import { currency as c } from "@intlayer/core/formatters";
2
2
  import { inject as t, computed as l } from "vue";
3
- import { I as n } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as n } from "../../plugins-DMjvMNJp.mjs";
4
4
  const i = () => {
5
5
  const e = t(n);
6
6
  return l(() => {
@@ -1,6 +1,6 @@
1
- import { date as l } from "@intlayer/core";
1
+ import { date as l } from "@intlayer/core/formatters";
2
2
  import { inject as r, computed as c } from "vue";
3
- import { I as a } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as a } from "../../plugins-DMjvMNJp.mjs";
4
4
  const p = () => {
5
5
  const e = r(a);
6
6
  return c(() => {
@@ -1,6 +1,6 @@
1
- import { bindIntl as e } from "@intlayer/core";
1
+ import { bindIntl as e } from "@intlayer/core/utils";
2
2
  import { inject as n, computed as c } from "vue";
3
- import { I as l } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as l } from "../../plugins-DMjvMNJp.mjs";
4
4
  const a = (t) => {
5
5
  const r = n(l);
6
6
  return c(() => {
@@ -1,6 +1,6 @@
1
- import { list as l } from "@intlayer/core";
1
+ import { list as l } from "@intlayer/core/formatters";
2
2
  import { inject as r, computed as c } from "vue";
3
- import { I as i } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as i } from "../../plugins-DMjvMNJp.mjs";
4
4
  const p = () => {
5
5
  const t = r(i);
6
6
  return c(() => {
@@ -1,6 +1,6 @@
1
- import { number as t } from "@intlayer/core";
1
+ import { number as t } from "@intlayer/core/formatters";
2
2
  import { inject as l, computed as c } from "vue";
3
- import { I as m } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as m } from "../../plugins-DMjvMNJp.mjs";
4
4
  const i = () => {
5
5
  const e = l(m);
6
6
  return c(() => {
@@ -1,6 +1,6 @@
1
- import { percentage as r } from "@intlayer/core";
1
+ import { percentage as r } from "@intlayer/core/formatters";
2
2
  import { inject as c, computed as l } from "vue";
3
- import { I as n } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as n } from "../../plugins-DMjvMNJp.mjs";
4
4
  const i = () => {
5
5
  const o = c(n);
6
6
  return l(() => {
@@ -1,6 +1,6 @@
1
- import { relativeTime as l } from "@intlayer/core";
1
+ import { relativeTime as l } from "@intlayer/core/formatters";
2
2
  import { inject as r, computed as c } from "vue";
3
- import { I as i } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as i } from "../../plugins-DMjvMNJp.mjs";
4
4
  const p = () => {
5
5
  const o = r(i);
6
6
  return c(() => {
@@ -1,6 +1,6 @@
1
- import { units as l } from "@intlayer/core";
1
+ import { units as l } from "@intlayer/core/formatters";
2
2
  import { inject as r, computed as c } from "vue";
3
- import { I as n } from "../../plugins-BtrDPsT6.mjs";
3
+ import { I as n } from "../../plugins-DMjvMNJp.mjs";
4
4
  const a = () => {
5
5
  const t = r(n);
6
6
  return c(() => {
@@ -1,5 +1,5 @@
1
- import { getDictionary as r } from "@intlayer/core";
2
- import { b as a, i as s, m as e, h as g } from "../plugins-BtrDPsT6.mjs";
1
+ import { getDictionary as r } from "@intlayer/core/interpreter";
2
+ import { b as a, i as s, m as e, h as g } from "../plugins-DMjvMNJp.mjs";
3
3
  const u = (i, n, t) => {
4
4
  const o = [
5
5
  a,
@@ -1,5 +1,5 @@
1
- import { getIntlayer as i } from "@intlayer/core";
2
- import { b as a, i as l, m as o, h as s } from "../plugins-BtrDPsT6.mjs";
1
+ import { getIntlayer as i } from "@intlayer/core/interpreter";
2
+ import { b as a, i as l, m as o, h as s } from "../plugins-DMjvMNJp.mjs";
3
3
  const u = (n, t, r) => {
4
4
  const e = [
5
5
  a,
@@ -1,4 +1,4 @@
1
- import { getHTML as n } from "@intlayer/core";
1
+ import { getHTML as n } from "@intlayer/core/interpreter";
2
2
  import { defineComponent as o } from "vue";
3
3
  import { useHTML as u } from "./installIntlayerHTML.mjs";
4
4
  const c = (e, { components: r } = {}) => n(e, r), d = ({ components: e } = {}) => {
@@ -1,4 +1,4 @@
1
- import { getHTML as H } from "@intlayer/core";
1
+ import { getHTML as H } from "@intlayer/core/interpreter";
2
2
  import { inject as a, provide as u } from "vue";
3
3
  const m = /* @__PURE__ */ Symbol("intlayerHTML");
4
4
  let s = null;
@@ -1,4 +1,4 @@
1
- import { _ as o, I as t, c as n, h as a, i, a as l, b as s, m, d as p, u } from "../plugins-BtrDPsT6.mjs";
1
+ import { _ as o, I as t, c as n, h as a, i, a as l, b as s, m, d as p, u } from "../plugins-DMjvMNJp.mjs";
2
2
  import { atPath as f, createIntlayerLeafProxy as y, isComponentLike as x, isIntlayerNode as c, isObjectLike as L, toComponent as M, useDictionary as I } from "./client/useDictionary.mjs";
3
3
  import { useDictionaryAsync as k } from "./client/useDictionaryAsync.mjs";
4
4
  import { useDictionaryDynamic as w } from "./client/useDictionaryDynamic.mjs";
@@ -16,7 +16,7 @@ import { compile as Q, compileMarkdown as X, compiler as Z } from "./markdown/co
16
16
  import { INTLAYER_MARKDOWN_SYMBOL as ee, createIntlayerMarkdownClient as re, installIntlayerMarkdown as oe, useMarkdown as te } from "./markdown/installIntlayerMarkdown.mjs";
17
17
  import { MarkdownRenderer as ae, renderMarkdown as ie, useMarkdownRenderer as le } from "./markdown/MarkdownRenderer.mjs";
18
18
  import { createVueRuntime as me, default as pe } from "./markdown/runtime.mjs";
19
- import { RuleType as de, sanitizer as fe, slugify as ye } from "@intlayer/core";
19
+ import { RuleType as de, sanitizer as fe, slugify as ye } from "@intlayer/core/markdown";
20
20
  export {
21
21
  o as ContentSelectorWrapper,
22
22
  v as HTMLRenderer,
@@ -1,5 +1,5 @@
1
- import { compileWithOptions as t } from "@intlayer/core";
2
- import { RuleType as f, sanitizer as u, slugify as a } from "@intlayer/core";
1
+ import { compileWithOptions as t } from "@intlayer/core/markdown";
2
+ import { RuleType as f, sanitizer as u, slugify as a } from "@intlayer/core/markdown";
3
3
  import m from "./runtime.mjs";
4
4
  const o = (i = "", e = {}) => t(i, m, e), c = o, n = o;
5
5
  export {
@@ -2,7 +2,7 @@ import { compile as o, compileMarkdown as n, compiler as a } from "./compiler.mj
2
2
  import { INTLAYER_MARKDOWN_SYMBOL as d, createIntlayerMarkdownClient as l, installIntlayerMarkdown as i, useMarkdown as m } from "./installIntlayerMarkdown.mjs";
3
3
  import { MarkdownRenderer as u, renderMarkdown as M, useMarkdownRenderer as f } from "./MarkdownRenderer.mjs";
4
4
  import { createVueRuntime as w, default as R } from "./runtime.mjs";
5
- import { RuleType as c, sanitizer as x, slugify as y } from "@intlayer/core";
5
+ import { RuleType as c, sanitizer as x, slugify as y } from "@intlayer/core/markdown";
6
6
  export {
7
7
  d as INTLAYER_MARKDOWN_SYMBOL,
8
8
  u as MarkdownRenderer,
@@ -1,18 +1,21 @@
1
- import "@intlayer/core";
1
+ import "@intlayer/core/interpreter";
2
+ import "@intlayer/core/markdown";
3
+ import "@intlayer/core/transpiler";
2
4
  import "@intlayer/types";
3
5
  import "vue";
4
- import { h as P, i as d, b as e, m as h, d as k } from "../plugins-BtrDPsT6.mjs";
6
+ import { h, i as k, b as w, m as b, d as f } from "../plugins-DMjvMNJp.mjs";
5
7
  import "./editor/installIntlayerEditor.mjs";
6
8
  import "@intlayer/config/built";
7
9
  import "@intlayer/editor";
8
10
  import "./editor/communicator.mjs";
9
11
  import "./client/useLocaleStorage.mjs";
12
+ import "@intlayer/core/localization";
10
13
  import "./markdown/installIntlayerMarkdown.mjs";
11
14
  import "./renderIntlayerNode.mjs";
12
15
  export {
13
- P as htmlPlugin,
14
- d as insertionPlugin,
15
- e as intlayerNodePlugins,
16
- h as markdownPlugin,
17
- k as markdownStringPlugin
16
+ h as htmlPlugin,
17
+ k as insertionPlugin,
18
+ w as intlayerNodePlugins,
19
+ b as markdownPlugin,
20
+ f as markdownStringPlugin
18
21
  };
@@ -1,57 +1,61 @@
1
- import { isSameKeyPath as T, HTML_TAGS as O, getMarkdownMetadata as H, splitInsertionTemplate as v, getHTML as K } from "@intlayer/core";
1
+ import { splitInsertionTemplate as T, getHTML as O } from "@intlayer/core/interpreter";
2
+ import { getMarkdownMetadata as H } from "@intlayer/core/markdown";
3
+ import { HTML_TAGS as v } from "@intlayer/core/transpiler";
2
4
  import { NodeType as u } from "@intlayer/types";
3
- import { ref as L, readonly as M, inject as S, watch as I, defineComponent as j, computed as h, unref as N, openBlock as P, createBlock as R, withCtx as D, renderSlot as k, createElementBlock as A, markRaw as Y, h as f, Fragment as $ } from "vue";
5
+ import { ref as K, readonly as L, inject as M, watch as S, defineComponent as I, computed as h, unref as j, openBlock as P, createBlock as N, withCtx as R, renderSlot as k, createElementBlock as D, markRaw as A, h as f, Fragment as Y } from "vue";
6
+ import { isSameKeyPath as $ } from "@intlayer/core/utils";
4
7
  import { MessageKey as g } from "@intlayer/editor";
5
8
  import { _ as B } from "./ContentSelector.vue_vue_type_script_setup_true_lang-CR8kSRs9.mjs";
6
9
  import { useCommunicator as F } from "./esm/editor/communicator.mjs";
7
10
  import { useEditorEnabled as C } from "./esm/editor/editorEnabled.mjs";
8
11
  import { useFocusDictionary as E } from "./esm/editor/focusDictionary.mjs";
9
12
  import { useConfiguration as U } from "./esm/editor/configuration.mjs";
10
- import { createSharedComposable as w } from "./esm/editor/createSharedComposable.mjs";
13
+ import { createSharedComposable as _ } from "./esm/editor/createSharedComposable.mjs";
11
14
  import { useDictionariesRecord as G } from "./esm/editor/dictionariesRecord.mjs";
12
15
  import V from "@intlayer/config/built";
13
16
  import { installIntlayerEditor as x } from "./esm/editor/installIntlayerEditor.mjs";
14
17
  import "./esm/client/useLocaleStorage.mjs";
18
+ import "@intlayer/core/localization";
15
19
  import { useMarkdown as z } from "./esm/markdown/installIntlayerMarkdown.mjs";
16
20
  import { renderIntlayerNode as m } from "./esm/renderIntlayerNode.mjs";
17
21
  import { useCrossFrameState as J } from "./esm/editor/useCrossFrameState.mjs";
18
22
  import { useCrossURLPathSetter as W } from "./esm/editor/useCrossURLPathState.mjs";
19
23
  import { useIframeClickMerger as q } from "./esm/editor/useIframeClickInterceptor.mjs";
20
- const _ = /* @__PURE__ */ Symbol("intlayer");
24
+ const w = /* @__PURE__ */ Symbol("intlayer");
21
25
  let y = null;
22
26
  const Q = (t, e = !0) => {
23
27
  if (y) return y;
24
- const { defaultLocale: n } = V.internationalization ?? {}, r = L(t ?? n), o = (i) => {
28
+ const { defaultLocale: n } = V.internationalization ?? {}, r = K(t ?? n), o = (i) => {
25
29
  r.value = i;
26
30
  };
27
31
  return y = {
28
- locale: M(r),
32
+ locale: L(r),
29
33
  setLocale: o,
30
34
  isCookieEnabled: e
31
35
  }, y;
32
- }, bt = (t, e, n = !0) => {
36
+ }, vt = (t, e, n = !0) => {
33
37
  const r = Q(e, n);
34
- return t.provide(_, r), x(t, r), t;
35
- }, X = w(() => {
36
- const t = S(_);
38
+ return t.provide(w, r), x(t, r), t;
39
+ }, X = _(() => {
40
+ const t = M(w);
37
41
  if (!t)
38
42
  throw new Error("IntlayerEditor state not found");
39
43
  const [e, n] = J(
40
44
  g.INTLAYER_CURRENT_LOCALE
41
45
  );
42
- return I(
46
+ return S(
43
47
  t.locale,
44
48
  (r) => {
45
49
  n(r);
46
50
  },
47
51
  { immediate: !0 }
48
52
  ), t;
49
- }), Z = w(() => {
53
+ }), Z = _(() => {
50
54
  U(), C(), E(), q(), W(), X(), G();
51
55
  }), tt = {
52
56
  key: 1,
53
57
  style: { display: "contents" }
54
- }, b = /* @__PURE__ */ j({
58
+ }, b = /* @__PURE__ */ I({
55
59
  __name: "ContentSelectorWrapper",
56
60
  props: {
57
61
  dictionaryKey: {},
@@ -67,7 +71,7 @@ const Q = (t, e = !0) => {
67
71
  const i = h(
68
72
  () => e.keyPath.filter((l) => l.type !== u.Translation)
69
73
  ), a = h(
70
- () => n?.focusedContent.value?.dictionaryKey === e.dictionaryKey && (n?.focusedContent.value.keyPath?.length ?? 0) > 0 && T(
74
+ () => n?.focusedContent.value?.dictionaryKey === e.dictionaryKey && (n?.focusedContent.value.keyPath?.length ?? 0) > 0 && $(
71
75
  n?.focusedContent.value.keyPath ?? [],
72
76
  i.value
73
77
  )
@@ -90,22 +94,22 @@ const Q = (t, e = !0) => {
90
94
  data: null
91
95
  });
92
96
  };
93
- return (l, p) => N(r)?.enabled.value ? (P(), R(B, {
97
+ return (l, p) => j(r)?.enabled.value ? (P(), N(B, {
94
98
  key: 0,
95
99
  onPress: s,
96
100
  isSelecting: a.value,
97
101
  onHover: d,
98
102
  onUnhover: c
99
103
  }, {
100
- default: D(() => [
104
+ default: R(() => [
101
105
  k(l.$slots, "default")
102
106
  ]),
103
107
  _: 3
104
- }, 8, ["isSelecting"])) : (P(), A("span", tt, [
108
+ }, 8, ["isSelecting"])) : (P(), D("span", tt, [
105
109
  k(l.$slots, "default")
106
110
  ]));
107
111
  }
108
- }), Tt = {
112
+ }), Kt = {
109
113
  id: "intlayer-node-plugin",
110
114
  canHandle: (t) => typeof t == "bigint" || typeof t == "string" || typeof t == "number",
111
115
  transform: (t, { children: e, ...n }) => {
@@ -139,12 +143,12 @@ const Q = (t, e = !0) => {
139
143
  const s = Object.getOwnPropertyDescriptor(o, a);
140
144
  s && Object.defineProperty(i, a, s);
141
145
  }
142
- return Y(i);
146
+ return A(i);
143
147
  }
144
148
  }, et = (t, e) => {
145
- const n = v(t, e);
146
- return n.isSimple ? n.parts : f($, null, n.parts);
147
- }, Ot = {
149
+ const n = T(t, e);
150
+ return n.isSimple ? n.parts : f(Y, null, n.parts);
151
+ }, Lt = {
148
152
  id: "insertion-plugin",
149
153
  canHandle: (t) => typeof t == "object" && t?.nodeType === u.Insertion,
150
154
  transform: (t, e, n) => {
@@ -226,7 +230,7 @@ const Q = (t, e = !0) => {
226
230
  }
227
231
  }))();
228
232
  }
229
- }, Ht = {
233
+ }, Mt = {
230
234
  id: "markdown-plugin",
231
235
  canHandle: (t) => typeof t == "object" && t?.nodeType === u.Markdown,
232
236
  transform: (t, e, n) => {
@@ -245,10 +249,10 @@ const Q = (t, e = !0) => {
245
249
  }
246
250
  }, ot = () => {
247
251
  const t = {};
248
- for (const e of O)
252
+ for (const e of v)
249
253
  t[e] = ({ children: n, ...r }) => f(e, r, n);
250
254
  return t;
251
- }, rt = ot(), vt = {
255
+ }, rt = ot(), St = {
252
256
  id: "html-plugin",
253
257
  canHandle: (t) => typeof t == "object" && t?.nodeType === u.HTML,
254
258
  transform: (t, e) => {
@@ -259,7 +263,7 @@ const Q = (t, e = !0) => {
259
263
  ...rt,
260
264
  ...o
261
265
  };
262
- return K(n, i);
266
+ return O(n, i);
263
267
  };
264
268
  return m({
265
269
  ...e,
@@ -269,15 +273,15 @@ const Q = (t, e = !0) => {
269
273
  }
270
274
  };
271
275
  export {
272
- _ as I,
276
+ w as I,
273
277
  b as _,
274
- bt as a,
275
- Tt as b,
278
+ vt as a,
279
+ Kt as b,
276
280
  Q as c,
277
281
  nt as d,
278
282
  X as e,
279
- vt as h,
280
- Ot as i,
281
- Ht as m,
283
+ St as h,
284
+ Lt as i,
285
+ Mt as m,
282
286
  Z as u
283
287
  };
@@ -0,0 +1 @@
1
+ "use strict";const _=require("@intlayer/core/interpreter"),S=require("@intlayer/core/markdown"),b=require("@intlayer/core/transpiler"),d=require("@intlayer/types"),i=require("vue"),q=require("@intlayer/core/utils"),m=require("@intlayer/editor"),L=require("./ContentSelector.vue_vue_type_script_setup_true_lang-87sjUiJI.js"),M=require("./cjs/editor/communicator.cjs"),k=require("./cjs/editor/editorEnabled.cjs"),C=require("./cjs/editor/focusDictionary.cjs"),v=require("./cjs/editor/configuration.cjs"),E=require("./cjs/editor/createSharedComposable.cjs"),O=require("./cjs/editor/dictionariesRecord.cjs"),K=require("@intlayer/config/built"),H=require("./cjs/editor/installIntlayerEditor.cjs");require("./cjs/client/useLocaleStorage.cjs");require("@intlayer/core/localization");const R=require("./cjs/markdown/installIntlayerMarkdown.cjs"),g=require("./cjs/renderIntlayerNode.cjs"),D=require("./cjs/editor/useCrossFrameState.cjs"),j=require("./cjs/editor/useCrossURLPathState.cjs"),A=require("./cjs/editor/useIframeClickInterceptor.cjs"),h=Symbol("intlayer");let p=null;const T=(e,t=!0)=>{if(p)return p;const{defaultLocale:n}=K.internationalization??{},o=i.ref(e??n),r=s=>{o.value=s};return p={locale:i.readonly(o),setLocale:r,isCookieEnabled:t},p},Y=(e,t,n=!0)=>{const o=T(t,n);return e.provide(h,o),H.installIntlayerEditor(e,o),e},w=E.createSharedComposable(()=>{const e=i.inject(h);if(!e)throw new Error("IntlayerEditor state not found");const[t,n]=D.useCrossFrameState(m.MessageKey.INTLAYER_CURRENT_LOCALE);return i.watch(e.locale,o=>{n(o)},{immediate:!0}),e}),I=E.createSharedComposable(()=>{v.useConfiguration(),k.useEditorEnabled(),C.useFocusDictionary(),A.useIframeClickMerger(),j.useCrossURLPathSetter(),w(),O.useDictionariesRecord()}),B={key:1,style:{display:"contents"}},P=i.defineComponent({__name:"ContentSelectorWrapper",props:{dictionaryKey:{},keyPath:{},plugins:{},locale:{},dictionaryPath:{},children:{}},setup(e){const t=e,n=C.useFocusDictionary(),o=k.useEditorEnabled(),r=M.useCommunicator();I();const s=i.computed(()=>t.keyPath.filter(u=>u.type!==d.NodeType.Translation)),a=i.computed(()=>n?.focusedContent.value?.dictionaryKey===t.dictionaryKey&&(n?.focusedContent.value.keyPath?.length??0)>0&&q.isSameKeyPath(n?.focusedContent.value.keyPath??[],s.value)),c=()=>{n?.setFocusedContent({dictionaryKey:t.dictionaryKey,keyPath:s.value})},y=()=>{r?.postMessage({type:`${m.MessageKey.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t.dictionaryKey,keyPath:s.value}})},l=()=>{r?.postMessage({type:`${m.MessageKey.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null})};return(u,f)=>i.unref(o)?.enabled.value?(i.openBlock(),i.createBlock(L._sfc_main,{key:0,onPress:c,isSelecting:a.value,onHover:y,onUnhover:l},{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default")]),_:3},8,["isSelecting"])):(i.openBlock(),i.createElementBlock("span",B,[i.renderSlot(u.$slots,"default")]))}}),F={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{children:t,...n})=>{const o=a=>g.renderIntlayerNode({...n,value:a,children:()=>i.h(P,{dictionaryKey:n.dictionaryKey,keyPath:n.keyPath},{default:()=>typeof a=="function"?a():a})}),r=o(t);if(typeof t!="function")return r;const s=(...a)=>{const c=t(...a);return o(c)};Object.setPrototypeOf(s,Object.getPrototypeOf(r));for(const a of Object.getOwnPropertyNames(r)){const c=Object.getOwnPropertyDescriptor(r,a);c&&Object.defineProperty(s,a,c)}for(const a of Object.getOwnPropertySymbols(r)){const c=Object.getOwnPropertyDescriptor(r,a);c&&Object.defineProperty(s,a,c)}return i.markRaw(s)}},U=(e,t)=>{const n=_.splitInsertionTemplate(e,t);return n.isSimple?n.parts:i.h(i.Fragment,null,n.parts)},$={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===d.NodeType.Insertion,transform:(e,t,n)=>{const o=[...t.keyPath,{type:d.NodeType.Insertion}],r=e[d.NodeType.Insertion];return n(r,{...t,children:r,keyPath:o,plugins:[{id:"insertion-string-plugin",canHandle:a=>typeof a=="string",transform:(a,c,y)=>{const l=y(a,{...c,children:a,plugins:[...(t.plugins??[]).filter(u=>u.id!=="intlayer-node-plugin")]});return u=>{const f=U(l,u);return y(f,{...c,plugins:t.plugins,children:f})}}},...t.plugins??[]]})}},N={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:o,...r}=t,s=S.getMarkdownMetadata(e),c=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:l=>typeof l=="string"||typeof l=="number"||typeof l=="boolean"||!l,transform:(l,u)=>g.renderIntlayerNode({...u,value:l,children:e})}],dictionaryKey:r.dictionaryKey,keyPath:[]});return(l=>g.renderIntlayerNode({...t,value:e,children:()=>i.h(P,{dictionaryKey:r.dictionaryKey,keyPath:r.keyPath},{default:()=>{const{renderMarkdown:u}=R.useMarkdown();return u(e,l)}}),additionalProps:{metadata:c}}))()}},G={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===d.NodeType.Markdown,transform:(e,t,n)=>{const o=[...t.keyPath,{type:d.NodeType.Markdown}],r=e[d.NodeType.Markdown];return n(r,{...t,children:r,keyPath:o,plugins:[N,...t.plugins??[]]})}},V=()=>{const e={};for(const t of b.HTML_TAGS)e[t]=({children:n,...o})=>i.h(t,o,n);return e},z=V(),J={id:"html-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===d.NodeType.HTML,transform:(e,t)=>{const n=e[d.NodeType.HTML];e.tags;const o=r=>{const s={...z,...r};return _.getHTML(n,s)};return g.renderIntlayerNode({...t,value:n,children:r=>o(r)})}};exports.INTLAYER_SYMBOL=h;exports._sfc_main=P;exports.createIntlayerClient=T;exports.htmlPlugin=J;exports.insertionPlugin=$;exports.installIntlayer=Y;exports.intlayerNodePlugins=F;exports.markdownPlugin=G;exports.markdownStringPlugin=N;exports.useEditor=I;exports.useEditorLocale=w;
@@ -1,4 +1,4 @@
1
- import { NodeProps } from '@intlayer/core';
1
+ import { NodeProps } from '@intlayer/core/interpreter';
2
2
  import { HTMLAttributes } from 'vue';
3
3
  /**
4
4
  * Combine your NodeProps (which include dictionaryKey & keyPath)
@@ -1,4 +1,4 @@
1
- import { Plugins } from '@intlayer/core';
1
+ import { Plugins } from '@intlayer/core/interpreter';
2
2
  import { DeclaredLocales, Dictionary, LocalesValues } from '@intlayer/types';
3
3
  import { DeepTransformContent } from './plugins';
4
4
  export declare const getDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<T["content"], L>;
@@ -1,4 +1,4 @@
1
- import { Plugins } from '@intlayer/core';
1
+ import { Plugins } from '@intlayer/core/interpreter';
2
2
  import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from '@intlayer/types';
3
3
  import { DeepTransformContent } from './plugins';
4
4
  export declare const getIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<DictionaryRegistryContent<T>, L>;
@@ -1,4 +1,4 @@
1
- import { HTMLTagsType } from '@intlayer/core';
1
+ import { HTMLTagsType } from '@intlayer/core/transpiler';
2
2
  import { AllowedComponentProps, HTMLAttributes, VNode, VNodeProps } from 'vue';
3
3
  /**
4
4
  * Helper to extract specific props from the configuration value.
@@ -1,6 +1,6 @@
1
1
  import { LocalesValues } from '@intlayer/types';
2
2
  import { IInterpreterPluginVue } from './plugins';
3
- declare module '@intlayer/core' {
3
+ declare module '@intlayer/core/interpreter' {
4
4
  interface IInterpreterPlugin<T, S, L extends LocalesValues> extends IInterpreterPluginVue<T, S, L> {
5
5
  }
6
6
  }
@@ -100,6 +100,11 @@ export declare const MarkdownRenderer: import('vue').DefineComponent<import('vue
100
100
  };
101
101
  }>> & Readonly<{}>, {
102
102
  content: string;
103
+ forceBlock: boolean;
104
+ forceInline: boolean;
105
+ wrapper: any;
106
+ preserveFrontmatter: boolean;
107
+ tagfilter: boolean;
103
108
  renderMarkdown: RenderMarkdownFunction;
104
109
  components: {} & {
105
110
  object?: ((props: import('vue').HTMLAttributes & import('vue').AllowedComponentProps & import('vue').VNodeProps & {
@@ -407,9 +412,4 @@ export declare const MarkdownRenderer: import('vue').DefineComponent<import('vue
407
412
  children?: any;
408
413
  }) => import('vue').VNode | import('vue').VNode[];
409
414
  };
410
- wrapper: any;
411
- forceBlock: boolean;
412
- forceInline: boolean;
413
- preserveFrontmatter: boolean;
414
- tagfilter: boolean;
415
415
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import { CompileOptions, sanitizer as defaultSanitizer, slugify as defaultSlugify, RuleType } from '@intlayer/core';
1
+ import { CompileOptions, sanitizer as defaultSanitizer, slugify as defaultSlugify, RuleType } from '@intlayer/core/markdown';
2
2
  export { RuleType };
3
3
  export { defaultSlugify as slugify, defaultSanitizer as sanitizer };
4
4
  export type MarkdownCompilerOptions = CompileOptions;
@@ -1,4 +1,4 @@
1
- import { MarkdownRuntime } from '@intlayer/core';
1
+ import { MarkdownRuntime } from '@intlayer/core/markdown';
2
2
  import { Component, VNodeChild } from 'vue';
3
3
  /**
4
4
  * Vue-specific runtime for the markdown processor.
@@ -1,4 +1,4 @@
1
- import { DeepTransformContent as DeepTransformContentCore, IInterpreterPluginState as IInterpreterPluginStateCore, Plugins } from '@intlayer/core';
1
+ import { DeepTransformContent as DeepTransformContentCore, IInterpreterPluginState as IInterpreterPluginStateCore, Plugins } from '@intlayer/core/interpreter';
2
2
  import { DeclaredLocales, LocalesValues, NodeType } from '@intlayer/types';
3
3
  import { VNode } from 'vue';
4
4
  import { HTMLComponents } from './html/types';
@@ -53,9 +53,9 @@ export declare const htmlPlugin: Plugins;
53
53
  /** ---------------------------------------------
54
54
  * PLUGINS RESULT
55
55
  * --------------------------------------------- */
56
- export interface IInterpreterPluginVue<T, _S, _L extends LocalesValues> {
56
+ export interface IInterpreterPluginVue<T, S, L extends LocalesValues> {
57
57
  vueIntlayerNode: IntlayerNodeCond<T>;
58
- vueInsertion: InsertionCond<T>;
58
+ vueInsertion: InsertionCond<T, S, L>;
59
59
  vueMarkdown: MarkdownCond<T>;
60
60
  vueHtml: HTMLPluginCond<T>;
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intlayer",
3
- "version": "8.1.2",
3
+ "version": "8.1.3",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -95,12 +95,12 @@
95
95
  "typecheck": "vue-tsc --noEmit --project tsconfig.types.json"
96
96
  },
97
97
  "dependencies": {
98
- "@intlayer/api": "8.1.2",
99
- "@intlayer/config": "8.1.2",
100
- "@intlayer/core": "8.1.2",
101
- "@intlayer/editor": "8.1.2",
102
- "@intlayer/types": "8.1.2",
103
- "@intlayer/unmerged-dictionaries-entry": "8.1.2"
98
+ "@intlayer/api": "8.1.3",
99
+ "@intlayer/config": "8.1.3",
100
+ "@intlayer/core": "8.1.3",
101
+ "@intlayer/editor": "8.1.3",
102
+ "@intlayer/types": "8.1.3",
103
+ "@intlayer/unmerged-dictionaries-entry": "8.1.3"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@types/node": "25.2.3",
@@ -119,7 +119,7 @@
119
119
  "vue-tsc": "3.1.5"
120
120
  },
121
121
  "peerDependencies": {
122
- "intlayer": "8.1.2",
122
+ "intlayer": "8.1.3",
123
123
  "vue": ">=3.0.0"
124
124
  },
125
125
  "peerDependenciesMeta": {
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),u=require("@intlayer/core"),a=require("./cjs/editor/useEditedContentRenderer.cjs"),l=e.defineComponent({__name:"EditedContentRenderer",props:{dictionaryKey:{},keyPath:{},locale:{}},setup(s){const n=s,d=e.useSlots(),c=e.computed(()=>(d.default?.()??[]).map(r=>typeof r.children=="string"?r.children:"").join("")),o=a.useEditedContentRenderer(n.dictionaryKey,n.keyPath,c),i=e.computed(()=>{if(typeof o.value=="object"&&o.value!==null){const t=u.getContent(o.value,n,n.locale);return typeof t!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof t}. Expected string. Value ${JSON.stringify(t)}`),c.value):t}return o.value});return(t,r)=>(e.openBlock(),e.createBlock(e.unref(i)))}});exports._sfc_main=l;
@@ -1 +0,0 @@
1
- "use strict";const p=require("@intlayer/core"),d=require("@intlayer/types"),i=require("vue"),h=require("@intlayer/editor"),S=require("./ContentSelector.vue_vue_type_script_setup_true_lang-87sjUiJI.js"),b=require("./cjs/editor/communicator.cjs"),k=require("./cjs/editor/editorEnabled.cjs"),C=require("./cjs/editor/focusDictionary.cjs"),L=require("./cjs/editor/configuration.cjs"),E=require("./cjs/editor/createSharedComposable.cjs"),M=require("./cjs/editor/dictionariesRecord.cjs"),v=require("@intlayer/config/built"),O=require("./cjs/editor/installIntlayerEditor.cjs");require("./cjs/client/useLocaleStorage.cjs");const K=require("./cjs/markdown/installIntlayerMarkdown.cjs"),f=require("./cjs/renderIntlayerNode.cjs"),q=require("./cjs/editor/useCrossFrameState.cjs"),H=require("./cjs/editor/useCrossURLPathState.cjs"),R=require("./cjs/editor/useIframeClickInterceptor.cjs"),P=Symbol("intlayer");let g=null;const T=(e,t=!0)=>{if(g)return g;const{defaultLocale:n}=v.internationalization??{},o=i.ref(e??n),r=s=>{o.value=s};return g={locale:i.readonly(o),setLocale:r,isCookieEnabled:t},g},D=(e,t,n=!0)=>{const o=T(t,n);return e.provide(P,o),O.installIntlayerEditor(e,o),e},w=E.createSharedComposable(()=>{const e=i.inject(P);if(!e)throw new Error("IntlayerEditor state not found");const[t,n]=q.useCrossFrameState(h.MessageKey.INTLAYER_CURRENT_LOCALE);return i.watch(e.locale,o=>{n(o)},{immediate:!0}),e}),I=E.createSharedComposable(()=>{L.useConfiguration(),k.useEditorEnabled(),C.useFocusDictionary(),R.useIframeClickMerger(),H.useCrossURLPathSetter(),w(),M.useDictionariesRecord()}),j={key:1,style:{display:"contents"}},_=i.defineComponent({__name:"ContentSelectorWrapper",props:{dictionaryKey:{},keyPath:{},plugins:{},locale:{},dictionaryPath:{},children:{}},setup(e){const t=e,n=C.useFocusDictionary(),o=k.useEditorEnabled(),r=b.useCommunicator();I();const s=i.computed(()=>t.keyPath.filter(u=>u.type!==d.NodeType.Translation)),a=i.computed(()=>n?.focusedContent.value?.dictionaryKey===t.dictionaryKey&&(n?.focusedContent.value.keyPath?.length??0)>0&&p.isSameKeyPath(n?.focusedContent.value.keyPath??[],s.value)),c=()=>{n?.setFocusedContent({dictionaryKey:t.dictionaryKey,keyPath:s.value})},y=()=>{r?.postMessage({type:`${h.MessageKey.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t.dictionaryKey,keyPath:s.value}})},l=()=>{r?.postMessage({type:`${h.MessageKey.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null})};return(u,m)=>i.unref(o)?.enabled.value?(i.openBlock(),i.createBlock(S._sfc_main,{key:0,onPress:c,isSelecting:a.value,onHover:y,onUnhover:l},{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default")]),_:3},8,["isSelecting"])):(i.openBlock(),i.createElementBlock("span",j,[i.renderSlot(u.$slots,"default")]))}}),A={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{children:t,...n})=>{const o=a=>f.renderIntlayerNode({...n,value:a,children:()=>i.h(_,{dictionaryKey:n.dictionaryKey,keyPath:n.keyPath},{default:()=>typeof a=="function"?a():a})}),r=o(t);if(typeof t!="function")return r;const s=(...a)=>{const c=t(...a);return o(c)};Object.setPrototypeOf(s,Object.getPrototypeOf(r));for(const a of Object.getOwnPropertyNames(r)){const c=Object.getOwnPropertyDescriptor(r,a);c&&Object.defineProperty(s,a,c)}for(const a of Object.getOwnPropertySymbols(r)){const c=Object.getOwnPropertyDescriptor(r,a);c&&Object.defineProperty(s,a,c)}return i.markRaw(s)}},Y=(e,t)=>{const n=p.splitInsertionTemplate(e,t);return n.isSimple?n.parts:i.h(i.Fragment,null,n.parts)},B={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===d.NodeType.Insertion,transform:(e,t,n)=>{const o=[...t.keyPath,{type:d.NodeType.Insertion}],r=e[d.NodeType.Insertion];return n(r,{...t,children:r,keyPath:o,plugins:[{id:"insertion-string-plugin",canHandle:a=>typeof a=="string",transform:(a,c,y)=>{const l=y(a,{...c,children:a,plugins:[...(t.plugins??[]).filter(u=>u.id!=="intlayer-node-plugin")]});return u=>{const m=Y(l,u);return y(m,{...c,plugins:t.plugins,children:m})}}},...t.plugins??[]]})}},N={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:o,...r}=t,s=p.getMarkdownMetadata(e),c=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:l=>typeof l=="string"||typeof l=="number"||typeof l=="boolean"||!l,transform:(l,u)=>f.renderIntlayerNode({...u,value:l,children:e})}],dictionaryKey:r.dictionaryKey,keyPath:[]});return(l=>f.renderIntlayerNode({...t,value:e,children:()=>i.h(_,{dictionaryKey:r.dictionaryKey,keyPath:r.keyPath},{default:()=>{const{renderMarkdown:u}=K.useMarkdown();return u(e,l)}}),additionalProps:{metadata:c}}))()}},F={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===d.NodeType.Markdown,transform:(e,t,n)=>{const o=[...t.keyPath,{type:d.NodeType.Markdown}],r=e[d.NodeType.Markdown];return n(r,{...t,children:r,keyPath:o,plugins:[N,...t.plugins??[]]})}},U=()=>{const e={};for(const t of p.HTML_TAGS)e[t]=({children:n,...o})=>i.h(t,o,n);return e},$=U(),G={id:"html-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===d.NodeType.HTML,transform:(e,t)=>{const n=e[d.NodeType.HTML];e.tags;const o=r=>{const s={...$,...r};return p.getHTML(n,s)};return f.renderIntlayerNode({...t,value:n,children:r=>o(r)})}};exports.INTLAYER_SYMBOL=P;exports._sfc_main=_;exports.createIntlayerClient=T;exports.htmlPlugin=G;exports.insertionPlugin=B;exports.installIntlayer=D;exports.intlayerNodePlugins=A;exports.markdownPlugin=F;exports.markdownStringPlugin=N;exports.useEditor=I;exports.useEditorLocale=w;