lit-intlayer 9.7.0 → 9.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/client/index.cjs +1 -1
- package/dist/cjs/client/useDictionary.cjs +1 -1
- package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
- package/dist/cjs/client/useIntlayer.cjs +1 -1
- package/dist/cjs/client/useLocale.cjs +1 -1
- package/dist/cjs/format/index.cjs +1 -1
- package/dist/cjs/html/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/plugins.cjs +1 -1
- package/dist/esm/client/IntlayerBinding.mjs +2 -3
- package/dist/esm/client/index.mjs +8 -8
- package/dist/esm/client/installIntlayer.mjs +1 -2
- package/dist/esm/client/useDictionary.mjs +7 -8
- package/dist/esm/client/useDictionaryDynamic.mjs +15 -16
- package/dist/esm/client/useIntlayer.mjs +11 -12
- package/dist/esm/client/useLocale.mjs +11 -12
- package/dist/esm/client/useLocaleStorage.mjs +1 -2
- package/dist/esm/client/useRewriteURL.mjs +2 -3
- package/dist/esm/editor/useEditor.mjs +1 -2
- package/dist/esm/format/index.mjs +10 -10
- package/dist/esm/format/useCompact.mjs +2 -3
- package/dist/esm/format/useCurrency.mjs +2 -3
- package/dist/esm/format/useDate.mjs +2 -3
- package/dist/esm/format/useIntl.mjs +2 -3
- package/dist/esm/format/useList.mjs +2 -3
- package/dist/esm/format/useNumber.mjs +2 -3
- package/dist/esm/format/usePercentage.mjs +2 -3
- package/dist/esm/format/useRelativeTime.mjs +2 -3
- package/dist/esm/format/useUnit.mjs +2 -3
- package/dist/esm/getDictionary.mjs +1 -2
- package/dist/esm/getIntlayer.mjs +1 -2
- package/dist/esm/html/HTMLRenderer.mjs +1 -2
- package/dist/esm/html/index.mjs +3 -3
- package/dist/esm/html/installIntlayerHTML.mjs +1 -2
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/markdown/MarkdownRenderer.mjs +1 -2
- package/dist/esm/markdown/compiler.mjs +1 -2
- package/dist/esm/markdown/installIntlayerMarkdown.mjs +1 -2
- package/dist/esm/markdown/runtime.mjs +1 -2
- package/dist/esm/plugins.mjs +43 -44
- package/dist/esm/renderIntlayerNode.mjs +1 -2
- package/dist/{installIntlayer-5LiejIKC.mjs → installIntlayer-Dvl7Prhw.mjs} +2 -4
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./IntlayerBinding.cjs"),t=require("../../installIntlayer-Btnci_ES.js"),n=require("./useDictionary.cjs"),r=require("./useDictionaryDynamic.cjs"),i=require("./useIntlayer.cjs"),a=require("./useLocale.cjs"),o=require("./useLocaleStorage.cjs"),s=require("./useRewriteURL.cjs");exports.IntlayerBinding=e.IntlayerBinding,exports.IntlayerClient=t.t,exports.LocaleController=a.LocaleController,exports.createIntlayerClient=t.n,exports.getIntlayerClient=t.r,exports.getLocaleInStorage=o.getLocaleInStorage,exports.installIntlayer=t.i,exports.localeCookie=o.localeCookie,exports.localeInStorage=o.localeInStorage,exports.setLocaleCookie=o.setLocaleCookie,exports.setLocaleInStorage=o.setLocaleInStorage,exports.useDictionary=n.useDictionary,exports.useDictionaryDynamic=r.useDictionaryDynamic,exports.useIntlayer=i.useIntlayer,exports.useLocale=a.useLocale,exports.useLocaleCookie=o.useLocaleCookie,exports.useLocaleStorage=o.useLocaleStorage,exports.useRewriteURL=s.useRewriteURL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../getDictionary.cjs"),t=require("./IntlayerBinding.cjs"),n=require("../../installIntlayer-Btnci_ES.js");let r=require("@intlayer/core/interpreter"),i=require("@intlayer/core/dictionaryManipulator");var a=(a,o)=>{let s=n.r(),c=process.env.INTLAYER_DICTIONARY_SELECTOR!==`false`&&typeof o==`object`&&o?o.locale:o,l=t=>process.env.INTLAYER_DICTIONARY_SELECTOR===`false`?e.getDictionary(a,t):e.getDictionary(a,(0,i.resolveDictionaryArgument)({localeOrSelector:o,contextLocale:t,contextVariant:s.variant,dictionaryKey:a.key})),u=l(c??s.locale??(0,r.resolveInterpreterLocale)());s.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 t.IntlayerBinding(e),f),f};exports.useDictionary=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../getDictionary.cjs"),t=require("./IntlayerBinding.cjs"),n=require("../../installIntlayer-Btnci_ES.js");let r=require("@intlayer/core/interpreter"),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=(c,l,u)=>{let d=n.r(),f=process.env.INTLAYER_DICTIONARY_SELECTOR!==`false`&&(0,i.isQualifiedDynamicLoaderMap)(c),{locale:p,selector:m}=process.env.INTLAYER_DICTIONARY_SELECTOR===`false`?{locale:u,selector:void 0}:(0,i.parseDictionarySelector)((0,i.resolveDictionaryArgument)({localeOrSelector:u,contextLocale:d.locale,contextVariant:d.variant,dictionaryKey:String(l)})),h=()=>p??d.locale??(0,r.resolveInterpreterLocale)(),g,_=new Set,v=()=>{for(let e of _)e()},y=t=>{if(f){(0,i.resolveQualifiedDynamicContentAsync)({loaderMap:c,key:String(l),locale:t,selector:m,transform:n=>e.getDictionary(n,t)}).then(e=>{g=e,v()});return}let n=`${String(l)}.${t}`,r=(0,i.getPreloadedDictionary)(c,t);if(r){a.set(n,r),g=e.getDictionary(r,t),v();return}let s=c[t];o(n,s).then(n=>{n&&(g=e.getDictionary(n,t),v())})};y(h()),d.subscribe(e=>{y(p??e)});let b,x=new Proxy({},{get(e,t){if(t===`observe`)return b;if(t===Symbol.toPrimitive)return()=>void 0;if(t===`toString`)return()=>``;if(t!==`then`)return g==null?s:g[t]}});return b=e=>{let n=()=>e.requestUpdate();return _.add(n),new t.IntlayerBinding(e,()=>{g!=null&&e.requestUpdate()},()=>{_.delete(n)}),x},x};exports.useDictionaryDynamic=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../getIntlayer.cjs"),t=require("./IntlayerBinding.cjs"),n=require("../../installIntlayer-Btnci_ES.js");let r=require("@intlayer/core/interpreter"),i=require("@intlayer/core/dictionaryManipulator");var a=(a,o)=>{let s=n.r(),c=process.env.INTLAYER_DICTIONARY_SELECTOR!==`false`&&typeof o==`object`&&o?o.locale:o,l=t=>process.env.INTLAYER_DICTIONARY_SELECTOR===`false`?e.getIntlayer(a,t):e.getIntlayer(a,(0,i.resolveDictionaryArgument)({localeOrSelector:o,contextLocale:t,contextVariant:s.variant,dictionaryKey:a})),u,d,f=!1,p=new Proxy({},{get(e,n){if(n===`observe`)return e=>(new t.IntlayerBinding(e),p);if(n===Symbol.toPrimitive||n===`toString`)return()=>``;if(n===`then`||typeof n==`symbol`||typeof n==`string`&&n.startsWith(`_$`))return;let i=c??s.locale??(0,r.resolveInterpreterLocale)();if(f&&u===i||(d=l(i),u=i,f=!0),d!=null)return d[n]}});return p};exports.useIntlayer=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../installIntlayer-Btnci_ES.js"),t=require("./useLocaleStorage.cjs");let n=require("@intlayer/config/built");var r=class{host;_isCookieEnabled;_onLocaleChange;_unsubscribe=null;locale;defaultLocale;availableLocales;constructor(t,r={}){this.host=t,this._isCookieEnabled=r.isCookieEnabled,this._onLocaleChange=r.onLocaleChange;let i=e.r(),{defaultLocale:a,locales:o}=n.internationalization??{};this.locale=i.locale,this.defaultLocale=a,this.availableLocales=o??[],t.addController(this)}setLocale=n=>{if(!this.availableLocales.map(String).includes(n)){console.error(`Locale "${n}" is not available.`);return}let r=e.r();r.setLocale(n),t.setLocaleInStorage(n,this._isCookieEnabled??r.isCookieEnabled??!0),this._onLocaleChange?.(n)};hostConnected(){let t=e.r();this._unsubscribe=t.subscribe(e=>{this.locale=e,this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},i=(e,t={})=>new r(e,t);exports.LocaleController=r,exports.useLocale=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./useCompact.cjs"),t=require("./useCurrency.cjs"),n=require("./useDate.cjs"),r=require("./useIntl.cjs"),i=require("./useList.cjs"),a=require("./useNumber.cjs"),o=require("./usePercentage.cjs"),s=require("./useRelativeTime.cjs"),c=require("./useUnit.cjs");exports.useCompact=e.useCompact,exports.useCurrency=t.useCurrency,exports.useDate=n.useDate,exports.useIntl=r.useIntl,exports.useList=i.useList,exports.useNumber=a.useNumber,exports.usePercentage=o.usePercentage,exports.useRelativeTime=s.useRelativeTime,exports.useUnit=c.useUnit;
|
package/dist/cjs/html/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./HTMLRenderer.cjs"),t=require("./installIntlayerHTML.cjs");exports.installIntlayerHTML=t.installIntlayerHTML,exports.installIntlayerHTMLDynamic=t.installIntlayerHTMLDynamic,exports.renderHTML=e.renderHTML,exports.useHTML=t.useHTML,exports.useHTMLRenderer=e.useHTMLRenderer;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./client/useLocaleStorage.cjs"),t=require("../installIntlayer-Btnci_ES.js"),n=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./client/useLocaleStorage.cjs"),t=require("../installIntlayer-Btnci_ES.js"),n=require("./getDictionary.cjs"),r=require("./client/IntlayerBinding.cjs"),i=require("./getIntlayer.cjs"),a=require("./client/useDictionary.cjs"),o=require("./client/useDictionaryDynamic.cjs"),s=require("./plugins.cjs"),c=require("./client/useIntlayer.cjs"),l=require("./client/useLocale.cjs"),u=require("./client/useRewriteURL.cjs");require("./client/index.cjs"),exports.IntlayerBinding=r.IntlayerBinding,exports.IntlayerClient=t.t,exports.LocaleController=l.LocaleController,exports.createIntlayerClient=t.n,exports.getDictionary=n.getDictionary,exports.getIntlayer=i.getIntlayer,exports.getIntlayerClient=t.r,exports.getLocaleInStorage=e.getLocaleInStorage,exports.getPlugins=s.getPlugins,exports.htmlPlugin=s.htmlPlugin,exports.insertionPlugin=s.insertionPlugin,exports.installIntlayer=t.i,exports.intlayerNodePlugins=s.intlayerNodePlugins,exports.localeCookie=e.localeCookie,exports.localeInStorage=e.localeInStorage,exports.markdownPlugin=s.markdownPlugin,exports.markdownStringPlugin=s.markdownStringPlugin,exports.setLocaleCookie=e.setLocaleCookie,exports.setLocaleInStorage=e.setLocaleInStorage,exports.useDictionary=a.useDictionary,exports.useDictionaryDynamic=o.useDictionaryDynamic,exports.useEditor=t.a,exports.useIntlayer=c.useIntlayer,exports.useLocale=l.useLocale,exports.useLocaleCookie=e.useLocaleCookie,exports.useLocaleStorage=e.useLocaleStorage,exports.useRewriteURL=u.useRewriteURL;
|
package/dist/cjs/plugins.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));const c=require("../installIntlayer-Btnci_ES.js"),l=require("./markdown/runtime.cjs"),u=require("./renderIntlayerNode.cjs");let d=require("@intlayer/
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));const c=require("../installIntlayer-Btnci_ES.js"),l=require("./markdown/runtime.cjs"),u=require("./renderIntlayerNode.cjs");let d=require("@intlayer/config/built"),f=require("@intlayer/core/interpreter"),p=require("@intlayer/core/markdown"),m=require("@intlayer/core/utils"),h=require("@intlayer/types/nodeType");h=s(h);let g=require("lit/directives/unsafe-html.js"),_=require("lit/static-html.js");var v=(e=``,t={})=>(0,p.compileWithOptions)(e,l.default,t),y=(e,t,n={})=>{let r=typeof e==`string`?(0,g.unsafeHTML)(e):e,i=Array.isArray(r),a=Object.assign(i?[...r]:{...r},n,{value:t,raw:t,[Symbol.iterator]:void 0,__update:()=>{},isJSX:!0});return Object.setPrototypeOf(a,(0,m.getIntlayerNodePrototype)(t,i?Array.prototype:Object.prototype))},b=e=>e.replace(/&/g,`&`).replace(/"/g,`"`),x=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),S={id:`intlayer-node-plugin`,canHandle:e=>typeof e==`bigint`||typeof e==`string`||typeof e==`number`,transform:(e,{children:t,keyPath:n,dictionaryKey:r})=>{if(process.env.INTLAYER_EDITOR_ENABLED!==`false`&&d.editor.enabled){let e=String(t??``);return y(`<intlayer-content-selector-wrapper key-path="${b(JSON.stringify(n??[]))}" dictionary-key="${b(String(r??``))}">${x(e)}</intlayer-content-selector-wrapper>`,e)}return u.renderIntlayerNode({value:t,children:t})}},C=process.env.INTLAYER_NODE_TYPE_INSERTION===`false`?f.fallbackPlugin:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===h.INSERTION,transform:(e,t,n)=>{let r=[...t.keyPath,{type:h.INSERTION}],i=e[h.INSERTION],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`||(0,f.isInterpolableWrapperNode)(e),transform:(e,n,r)=>{if((0,f.isInterpolableWrapperNode)(e))return i=>(0,f.transformInterpolableNode)(e,i,n,t.plugins,r);let i=r(e,{...n,children:e,plugins:(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)});return e=>{let a=(0,f.splitInsertionTemplate)(i,e),o=a.isSimple?a.parts:a.parts.join(``);return r(o,{...n,plugins:t.plugins,children:o})}}},o=n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]});return(0,f.resolveInsertedSelector)(i,o)}},w=process.env.INTLAYER_NODE_TYPE_MARKDOWN===`false`?f.fallbackPlugin:{id:`markdown-string-plugin`,canHandle:e=>typeof e==`string`,transform:(e,t,n)=>{let{plugins:r,...i}=t,{keyPath:a,dictionaryKey:o}=i,s=n((0,p.getMarkdownMetadata)(e)??{},{plugins:[{id:`markdown-metadata-plugin`,canHandle:e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`||!e,transform:(t,n)=>u.renderIntlayerNode({...n,value:t,children:e})}],dictionaryKey:i.dictionaryKey,keyPath:[]}),c=v(e),l=t=>{let n=v(e,{components:t});return process.env.INTLAYER_EDITOR_ENABLED!==`false`&&d.editor.enabled?y(`<intlayer-content-selector-wrapper key-path="${b(JSON.stringify(a??[]))}" dictionary-key="${b(String(o??``))}">${n}</intlayer-content-selector-wrapper>`,e):y(n,e)};return process.env.INTLAYER_EDITOR_ENABLED!==`false`&&d.editor.enabled?y(`<intlayer-content-selector-wrapper key-path="${b(JSON.stringify(a??[]))}" dictionary-key="${b(String(o??``))}">${c}</intlayer-content-selector-wrapper>`,e,{metadata:s,use:l}):y(c,e,{metadata:s,use:l})}},T=process.env.INTLAYER_NODE_TYPE_MARKDOWN===`false`?f.fallbackPlugin:{id:`markdown-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===h.MARKDOWN,transform:(e,t,n)=>{let r=[...t.keyPath,{type:h.MARKDOWN}],i=e[h.MARKDOWN];return n(i,{...t,children:i,keyPath:r,plugins:[w,...t.plugins??[]]})}},E=process.env.INTLAYER_NODE_TYPE_HTML===`false`?f.fallbackPlugin:{id:`html-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===h.HTML,transform:(e,t)=>{let n=e[h.HTML],{keyPath:r,dictionaryKey:i}=t,a=(e={})=>{let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e).map(([e,t])=>[e,e=>t(e)])),a=new Proxy(t,{get(e,t){if(typeof t==`string`&&t in e)return e[t];if(typeof t==`string`&&/^[a-z][a-z0-9]*$/.test(t))return e=>_.html`<${(0,_.unsafeStatic)(t)} ...${e}>${e.children}</${(0,_.unsafeStatic)(t)}>`}}),o=(0,f.getHTML)(n,a);return process.env.INTLAYER_EDITOR_ENABLED!==`false`&&d.editor.enabled?y(`<intlayer-content-selector-wrapper key-path="${b(JSON.stringify(r??[]))}" dictionary-key="${b(String(i??``))}">${o}</intlayer-content-selector-wrapper>`,n):y(o,n)};return process.env.INTLAYER_EDITOR_ENABLED!==`false`&&d.editor.enabled?y(`<intlayer-content-selector-wrapper key-path="${b(JSON.stringify(r??[]))}" dictionary-key="${b(String(i??``))}">${n}</intlayer-content-selector-wrapper>`,n,{use:a}):y(n,n,{use:a})}},D=new Map,O=(e,t=!0)=>{let n=e??(typeof window<`u`&&c.r()?.locale)??(0,f.resolveInterpreterLocale)(),r=`${n}_${t}`;if(D.has(r))return D.get(r);let i=[S,(0,f.translationPlugin)(n,t?d.internationalization.defaultLocale:void 0),f.enumerationPlugin,(0,f.pluralPlugin)(n),f.conditionPlugin,(0,f.nestedPlugin)(n),f.filePlugin,f.genderPlugin,f.selectPlugin,C,T,E].filter(e=>e!==f.fallbackPlugin);return D.set(r,i),i};exports.getPlugins=O,exports.htmlPlugin=E,exports.insertionPlugin=C,exports.intlayerNodePlugins=S,exports.markdownPlugin=T,exports.markdownStringPlugin=w;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
2
|
-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
|
+
// src/client/IntlayerBinding.ts
|
|
3
3
|
var t = class {
|
|
4
4
|
host;
|
|
5
5
|
unsubscribeLocale = null;
|
|
@@ -18,5 +18,4 @@ var t = class {
|
|
|
18
18
|
this.unsubscribeLocale?.(), this.unsubscribeLocale = null, this.onDisconnect?.();
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
//#endregion
|
|
22
21
|
export { t as IntlayerBinding };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { IntlayerBinding as e } from "./IntlayerBinding.mjs";
|
|
2
|
+
import { i as t, n, r, t as i } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
3
|
+
import { useDictionary as a } from "./useDictionary.mjs";
|
|
4
|
+
import { useDictionaryDynamic as o } from "./useDictionaryDynamic.mjs";
|
|
5
|
+
import { useIntlayer as s } from "./useIntlayer.mjs";
|
|
6
|
+
import { LocaleController as c, useLocale as l } from "./useLocale.mjs";
|
|
7
|
+
import { getLocaleInStorage as u, localeCookie as d, localeInStorage as f, setLocaleCookie as p, setLocaleInStorage as m, useLocaleCookie as h, useLocaleStorage as g } from "./useLocaleStorage.mjs";
|
|
8
8
|
import { useRewriteURL as _ } from "./useRewriteURL.mjs";
|
|
9
|
-
export {
|
|
9
|
+
export { e as IntlayerBinding, i as IntlayerClient, c as LocaleController, n as createIntlayerClient, r as getIntlayerClient, u as getLocaleInStorage, t as installIntlayer, d as localeCookie, f as localeInStorage, p as setLocaleCookie, m as setLocaleInStorage, a as useDictionary, o as useDictionaryDynamic, s as useIntlayer, l as useLocale, h as useLocaleCookie, g as useLocaleStorage, _ as useRewriteURL };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { r as IntlayerClient, t as createIntlayerClient, n as getIntlayerClient, e as installIntlayer };
|
|
1
|
+
export { t as IntlayerClient, n as createIntlayerClient, r as getIntlayerClient, i as installIntlayer } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { getDictionary as e } from "../getDictionary.mjs";
|
|
2
|
+
import { IntlayerBinding as t } from "./IntlayerBinding.mjs";
|
|
3
|
+
import { r as n } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
4
4
|
import { resolveInterpreterLocale as r } from "@intlayer/core/interpreter";
|
|
5
5
|
import { resolveDictionaryArgument as i } from "@intlayer/core/dictionaryManipulator";
|
|
6
|
-
|
|
6
|
+
// src/client/useDictionary.ts
|
|
7
7
|
var a = (a, o) => {
|
|
8
|
-
let s =
|
|
8
|
+
let s = n(), c = process.env.INTLAYER_DICTIONARY_SELECTOR !== "false" && typeof o == "object" && o ? o.locale : o, l = (t) => process.env.INTLAYER_DICTIONARY_SELECTOR === "false" ? e(a, t) : e(a, i({
|
|
9
9
|
localeOrSelector: o,
|
|
10
|
-
contextLocale:
|
|
10
|
+
contextLocale: t,
|
|
11
11
|
contextVariant: s.variant,
|
|
12
12
|
dictionaryKey: a.key
|
|
13
13
|
})), u = l(c ?? s.locale ?? r());
|
|
@@ -20,7 +20,6 @@ var a = (a, o) => {
|
|
|
20
20
|
if (t === "toString") return () => String(u?.toString?.() ?? "");
|
|
21
21
|
if (t !== "then" && u != null) return u[t];
|
|
22
22
|
} });
|
|
23
|
-
return d = (e) => (new
|
|
23
|
+
return d = (e) => (new t(e), f), f;
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { a as useDictionary };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { getDictionary as e } from "../getDictionary.mjs";
|
|
2
|
+
import { IntlayerBinding as t } from "./IntlayerBinding.mjs";
|
|
3
|
+
import { r as n } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
4
4
|
import { resolveInterpreterLocale as r } from "@intlayer/core/interpreter";
|
|
5
5
|
import { getPreloadedDictionary as i, isQualifiedDynamicLoaderMap as a, parseDictionarySelector as o, resolveDictionaryArgument as s, resolveQualifiedDynamicContentAsync as c } from "@intlayer/core/dictionaryManipulator";
|
|
6
|
-
|
|
6
|
+
// src/client/useDictionaryDynamic.ts
|
|
7
7
|
var l = /* @__PURE__ */ new Map(), u = async (e, t) => {
|
|
8
8
|
if (!t) return;
|
|
9
9
|
if (l.has(e)) return l.get(e);
|
|
@@ -17,7 +17,7 @@ var l = /* @__PURE__ */ new Map(), u = async (e, t) => {
|
|
|
17
17
|
apply: () => d,
|
|
18
18
|
construct: () => ({})
|
|
19
19
|
}), f = (f, p, m) => {
|
|
20
|
-
let h =
|
|
20
|
+
let h = n(), g = process.env.INTLAYER_DICTIONARY_SELECTOR !== "false" && a(f), { locale: _, selector: v } = process.env.INTLAYER_DICTIONARY_SELECTOR === "false" ? {
|
|
21
21
|
locale: m,
|
|
22
22
|
selector: void 0
|
|
23
23
|
} : o(s({
|
|
@@ -27,27 +27,27 @@ var l = /* @__PURE__ */ new Map(), u = async (e, t) => {
|
|
|
27
27
|
dictionaryKey: String(p)
|
|
28
28
|
})), y = () => _ ?? h.locale ?? r(), b, x = /* @__PURE__ */ new Set(), S = () => {
|
|
29
29
|
for (let e of x) e();
|
|
30
|
-
}, C = (
|
|
30
|
+
}, C = (t) => {
|
|
31
31
|
if (g) {
|
|
32
32
|
c({
|
|
33
33
|
loaderMap: f,
|
|
34
34
|
key: String(p),
|
|
35
|
-
locale:
|
|
35
|
+
locale: t,
|
|
36
36
|
selector: v,
|
|
37
|
-
transform: (n) =>
|
|
37
|
+
transform: (n) => e(n, t)
|
|
38
38
|
}).then((e) => {
|
|
39
39
|
b = e, S();
|
|
40
40
|
});
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
let n = `${String(p)}.${
|
|
43
|
+
let n = `${String(p)}.${t}`, r = i(f, t);
|
|
44
44
|
if (r) {
|
|
45
|
-
l.set(n, r), b =
|
|
45
|
+
l.set(n, r), b = e(r, t), S();
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
-
let a = f[
|
|
48
|
+
let a = f[t];
|
|
49
49
|
u(n, a).then((n) => {
|
|
50
|
-
n && (b =
|
|
50
|
+
n && (b = e(n, t), S());
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
C(y()), h.subscribe((e) => {
|
|
@@ -60,13 +60,12 @@ var l = /* @__PURE__ */ new Map(), u = async (e, t) => {
|
|
|
60
60
|
if (t !== "then") return b == null ? d : b[t];
|
|
61
61
|
} });
|
|
62
62
|
return w = (e) => {
|
|
63
|
-
let
|
|
64
|
-
return x.add(
|
|
63
|
+
let n = () => e.requestUpdate();
|
|
64
|
+
return x.add(n), new t(e, () => {
|
|
65
65
|
b != null && e.requestUpdate();
|
|
66
66
|
}, () => {
|
|
67
|
-
x.delete(
|
|
67
|
+
x.delete(n);
|
|
68
68
|
}), T;
|
|
69
69
|
}, T;
|
|
70
70
|
};
|
|
71
|
-
//#endregion
|
|
72
71
|
export { f as useDictionaryDynamic };
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { getIntlayer as e } from "../getIntlayer.mjs";
|
|
2
|
+
import { IntlayerBinding as t } from "./IntlayerBinding.mjs";
|
|
3
|
+
import { r as n } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
4
4
|
import { resolveInterpreterLocale as r } from "@intlayer/core/interpreter";
|
|
5
5
|
import { resolveDictionaryArgument as i } from "@intlayer/core/dictionaryManipulator";
|
|
6
|
-
|
|
6
|
+
// src/client/useIntlayer.ts
|
|
7
7
|
var a = (a, o) => {
|
|
8
|
-
let s =
|
|
8
|
+
let s = n(), c = process.env.INTLAYER_DICTIONARY_SELECTOR !== "false" && typeof o == "object" && o ? o.locale : o, l = (t) => process.env.INTLAYER_DICTIONARY_SELECTOR === "false" ? e(a, t) : e(a, i({
|
|
9
9
|
localeOrSelector: o,
|
|
10
|
-
contextLocale:
|
|
10
|
+
contextLocale: t,
|
|
11
11
|
contextVariant: s.variant,
|
|
12
12
|
dictionaryKey: a
|
|
13
|
-
})), u, d, f = !1, p = new Proxy({}, { get(e,
|
|
14
|
-
if (
|
|
15
|
-
if (
|
|
16
|
-
if (
|
|
13
|
+
})), u, d, f = !1, p = new Proxy({}, { get(e, n) {
|
|
14
|
+
if (n === "observe") return (e) => (new t(e), p);
|
|
15
|
+
if (n === Symbol.toPrimitive || n === "toString") return () => "";
|
|
16
|
+
if (n === "then" || typeof n == "symbol" || typeof n == "string" && n.startsWith("_$")) return;
|
|
17
17
|
let i = c ?? s.locale ?? r();
|
|
18
|
-
if (
|
|
18
|
+
if (f && u === i || (d = l(i), u = i, f = !0), d != null) return d[n];
|
|
19
19
|
} });
|
|
20
20
|
return p;
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { a as useIntlayer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
|
+
import { setLocaleInStorage as t } from "./useLocaleStorage.mjs";
|
|
3
3
|
import { internationalization as n } from "@intlayer/config/built";
|
|
4
|
-
|
|
4
|
+
// src/client/useLocale.ts
|
|
5
5
|
var r = class {
|
|
6
6
|
host;
|
|
7
7
|
_isCookieEnabled;
|
|
@@ -10,22 +10,22 @@ var r = class {
|
|
|
10
10
|
locale;
|
|
11
11
|
defaultLocale;
|
|
12
12
|
availableLocales;
|
|
13
|
-
constructor(
|
|
14
|
-
this.host =
|
|
15
|
-
let i =
|
|
16
|
-
this.locale = i.locale, this.defaultLocale = a, this.availableLocales = o ?? [],
|
|
13
|
+
constructor(t, r = {}) {
|
|
14
|
+
this.host = t, this._isCookieEnabled = r.isCookieEnabled, this._onLocaleChange = r.onLocaleChange;
|
|
15
|
+
let i = e(), { defaultLocale: a, locales: o } = n ?? {};
|
|
16
|
+
this.locale = i.locale, this.defaultLocale = a, this.availableLocales = o ?? [], t.addController(this);
|
|
17
17
|
}
|
|
18
18
|
setLocale = (n) => {
|
|
19
19
|
if (!this.availableLocales.map(String).includes(n)) {
|
|
20
20
|
console.error(`Locale "${n}" is not available.`);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
let r =
|
|
24
|
-
r.setLocale(n),
|
|
23
|
+
let r = e();
|
|
24
|
+
r.setLocale(n), t(n, this._isCookieEnabled ?? r.isCookieEnabled ?? !0), this._onLocaleChange?.(n);
|
|
25
25
|
};
|
|
26
26
|
hostConnected() {
|
|
27
|
-
let
|
|
28
|
-
this._unsubscribe =
|
|
27
|
+
let t = e();
|
|
28
|
+
this._unsubscribe = t.subscribe((e) => {
|
|
29
29
|
this.locale = e, this.host.requestUpdate();
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -33,5 +33,4 @@ var r = class {
|
|
|
33
33
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
34
34
|
}
|
|
35
35
|
}, i = (e, t = {}) => new r(e, t);
|
|
36
|
-
//#endregion
|
|
37
36
|
export { r as LocaleController, i as useLocale };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LocaleStorageClient as e, getCachedLocaleFromStorageClient as t, getLocaleFromStorageClient as n, localeStorageOptions as r, setLocaleInStorageClient as i } from "@intlayer/core/utils";
|
|
2
|
-
|
|
2
|
+
// src/client/useLocaleStorage.ts
|
|
3
3
|
var a = t, o = /* @__PURE__ */ n(r), s = o, c = (e, t) => i(e, {
|
|
4
4
|
...r,
|
|
5
5
|
isCookieEnabled: t
|
|
@@ -13,5 +13,4 @@ var a = t, o = /* @__PURE__ */ n(r), s = o, c = (e, t) => i(e, {
|
|
|
13
13
|
setLocaleStorage: n.setLocale
|
|
14
14
|
};
|
|
15
15
|
}, d = u;
|
|
16
|
-
//#endregion
|
|
17
16
|
export { a as getLocaleInStorage, s as localeCookie, o as localeInStorage, l as setLocaleCookie, c as setLocaleInStorage, d as useLocaleCookie, u as useLocaleStorage };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { routing as t } from "@intlayer/config/built";
|
|
3
3
|
import { getRewritePath as n } from "@intlayer/core/localization";
|
|
4
|
-
|
|
4
|
+
// src/client/useRewriteURL.ts
|
|
5
5
|
var r = class {
|
|
6
6
|
_host;
|
|
7
7
|
_unsubscribe = null;
|
|
@@ -26,5 +26,4 @@ var r = class {
|
|
|
26
26
|
}, i = (e) => {
|
|
27
27
|
new r(e);
|
|
28
28
|
};
|
|
29
|
-
//#endregion
|
|
30
29
|
export { i as useRewriteURL };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as useEditor };
|
|
1
|
+
export { a as useEditor } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
export {
|
|
1
|
+
import { useCompact as e } from "./useCompact.mjs";
|
|
2
|
+
import { useCurrency as t } from "./useCurrency.mjs";
|
|
3
|
+
import { useDate as n } from "./useDate.mjs";
|
|
4
|
+
import { useIntl as r } from "./useIntl.mjs";
|
|
5
|
+
import { useList as i } from "./useList.mjs";
|
|
6
|
+
import { useNumber as a } from "./useNumber.mjs";
|
|
7
|
+
import { usePercentage as o } from "./usePercentage.mjs";
|
|
8
|
+
import { useRelativeTime as s } from "./useRelativeTime.mjs";
|
|
9
|
+
import { useUnit as c } from "./useUnit.mjs";
|
|
10
|
+
export { e as useCompact, t as useCurrency, n as useDate, r as useIntl, i as useList, a as useNumber, o as usePercentage, s as useRelativeTime, c as useUnit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { compact as t } from "@intlayer/core/formatters";
|
|
3
|
-
|
|
3
|
+
// src/format/useCompact.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
host;
|
|
6
6
|
_unsubscribe = null;
|
|
@@ -26,5 +26,4 @@ var n = class {
|
|
|
26
26
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
27
27
|
}
|
|
28
28
|
}, r = (e) => new n(e);
|
|
29
|
-
//#endregion
|
|
30
29
|
export { r as useCompact };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { currency as t } from "@intlayer/core/formatters";
|
|
3
|
-
|
|
3
|
+
// src/format/useCurrency.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
host;
|
|
6
6
|
_unsubscribe = null;
|
|
@@ -26,5 +26,4 @@ var n = class {
|
|
|
26
26
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
27
27
|
}
|
|
28
28
|
}, r = (e) => new n(e);
|
|
29
|
-
//#endregion
|
|
30
29
|
export { r as useCurrency };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { date as t, presets as n } from "@intlayer/core/formatters";
|
|
3
|
-
|
|
3
|
+
// src/format/useDate.ts
|
|
4
4
|
var r = class {
|
|
5
5
|
host;
|
|
6
6
|
_unsubscribe = null;
|
|
@@ -38,5 +38,4 @@ var r = class {
|
|
|
38
38
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
39
39
|
}
|
|
40
40
|
}, i = (e) => new r(e);
|
|
41
|
-
//#endregion
|
|
42
41
|
export { i as useDate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { bindIntl as t } from "@intlayer/core/utils";
|
|
3
|
-
|
|
3
|
+
// src/format/useIntl.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
host;
|
|
6
6
|
_overrideLocale;
|
|
@@ -21,5 +21,4 @@ var n = class {
|
|
|
21
21
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
22
22
|
}
|
|
23
23
|
}, r = (e, t) => new n(e, t);
|
|
24
|
-
//#endregion
|
|
25
24
|
export { r as useIntl };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { list as t } from "@intlayer/core/formatters";
|
|
3
|
-
|
|
3
|
+
// src/format/useList.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
host;
|
|
6
6
|
_unsubscribe = null;
|
|
@@ -26,5 +26,4 @@ var n = class {
|
|
|
26
26
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
27
27
|
}
|
|
28
28
|
}, r = (e) => new n(e);
|
|
29
|
-
//#endregion
|
|
30
29
|
export { r as useList };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { number as t } from "@intlayer/core/formatters";
|
|
3
|
-
|
|
3
|
+
// src/format/useNumber.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
host;
|
|
6
6
|
_unsubscribe = null;
|
|
@@ -26,5 +26,4 @@ var n = class {
|
|
|
26
26
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
27
27
|
}
|
|
28
28
|
}, r = (e) => new n(e);
|
|
29
|
-
//#endregion
|
|
30
29
|
export { r as useNumber };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { percentage as t } from "@intlayer/core/formatters";
|
|
3
|
-
|
|
3
|
+
// src/format/usePercentage.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
host;
|
|
6
6
|
_unsubscribe = null;
|
|
@@ -26,5 +26,4 @@ var n = class {
|
|
|
26
26
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
27
27
|
}
|
|
28
28
|
}, r = (e) => new n(e);
|
|
29
|
-
//#endregion
|
|
30
29
|
export { r as usePercentage };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { relativeTime as t } from "@intlayer/core/formatters";
|
|
3
|
-
|
|
3
|
+
// src/format/useRelativeTime.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
host;
|
|
6
6
|
_unsubscribe = null;
|
|
@@ -26,5 +26,4 @@ var n = class {
|
|
|
26
26
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
27
27
|
}
|
|
28
28
|
}, r = (e) => new n(e);
|
|
29
|
-
//#endregion
|
|
30
29
|
export { r as useRelativeTime };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../installIntlayer-
|
|
1
|
+
import { r as e } from "../../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import { units as t } from "@intlayer/core/formatters";
|
|
3
|
-
|
|
3
|
+
// src/format/useUnit.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
host;
|
|
6
6
|
_unsubscribe = null;
|
|
@@ -26,5 +26,4 @@ var n = class {
|
|
|
26
26
|
this._unsubscribe?.(), this._unsubscribe = null;
|
|
27
27
|
}
|
|
28
28
|
}, r = (e) => new n(e);
|
|
29
|
-
//#endregion
|
|
30
29
|
export { r as useUnit };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { getPlugins as e } from "./plugins.mjs";
|
|
2
2
|
import { getDictionary as t } from "@intlayer/core/interpreter";
|
|
3
|
-
|
|
3
|
+
// src/getDictionary.ts
|
|
4
4
|
var n = (n, r) => {
|
|
5
5
|
let i = typeof r == "object" && r ? r.locale : r;
|
|
6
6
|
return t(n, r, e(i));
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { n as getDictionary };
|
package/dist/esm/getIntlayer.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { getPlugins as e } from "./plugins.mjs";
|
|
2
2
|
import { getIntlayer as t } from "@intlayer/core/interpreter";
|
|
3
|
-
|
|
3
|
+
// src/getIntlayer.ts
|
|
4
4
|
var n = (n, r) => {
|
|
5
5
|
let i = typeof r == "object" && r ? r.locale : r;
|
|
6
6
|
return t(n, r, e(i));
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { n as getIntlayer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useHTML as e } from "./installIntlayerHTML.mjs";
|
|
2
2
|
import { unsafeHTML as t } from "lit/directives/unsafe-html.js";
|
|
3
3
|
import { LitElement as n, html as r, nothing as i } from "lit";
|
|
4
|
-
|
|
4
|
+
// src/html/HTMLRenderer.ts
|
|
5
5
|
var a = (e, t = {}) => e, o = ({ components: t } = {}) => {
|
|
6
6
|
let n = e();
|
|
7
7
|
return (e) => n.renderHTML(e, { components: t });
|
|
@@ -22,5 +22,4 @@ var a = (e, t = {}) => e, o = ({ components: t } = {}) => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
customElements.get("intlayer-html-renderer") || customElements.define("intlayer-html-renderer", s);
|
|
25
|
-
//#endregion
|
|
26
25
|
export { s as HTMLRenderer, a as renderHTML, o as useHTMLRenderer };
|
package/dist/esm/html/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { renderHTML as e, useHTMLRenderer as t } from "./HTMLRenderer.mjs";
|
|
2
|
+
import { installIntlayerHTML as n, installIntlayerHTMLDynamic as r, useHTML as i } from "./installIntlayerHTML.mjs";
|
|
3
|
+
export { n as installIntlayerHTML, r as installIntlayerHTMLDynamic, e as renderHTML, i as useHTML, t as useHTMLRenderer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/html/installIntlayerHTML.ts
|
|
2
2
|
var e = null, t = (t) => e || (e = { renderHTML: t }, e), n = (e) => {
|
|
3
3
|
let n;
|
|
4
4
|
if (typeof e == "function") n = e;
|
|
@@ -14,5 +14,4 @@ var e = null, t = (t) => e || (e = { renderHTML: t }, e), n = (e) => {
|
|
|
14
14
|
}
|
|
15
15
|
return t(n);
|
|
16
16
|
}, r = () => e || { renderHTML: (e) => e }, i = async (t) => e || n(await t());
|
|
17
|
-
//#endregion
|
|
18
17
|
export { t as createIntlayerHTMLClient, n as installIntlayerHTML, i as installIntlayerHTMLDynamic, r as useHTML };
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { getLocaleInStorage as e, localeCookie as t, localeInStorage as n, setLocaleCookie as r, setLocaleInStorage as i, useLocaleCookie as a, useLocaleStorage as o } from "./client/useLocaleStorage.mjs";
|
|
2
|
-
import { a as s, i as c, n as l, r as u, t as d } from "../installIntlayer-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { getIntlayer as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { a as s, i as c, n as l, r as u, t as d } from "../installIntlayer-Dvl7Prhw.mjs";
|
|
3
|
+
import { getDictionary as f } from "./getDictionary.mjs";
|
|
4
|
+
import { IntlayerBinding as p } from "./client/IntlayerBinding.mjs";
|
|
5
|
+
import { getIntlayer as m } from "./getIntlayer.mjs";
|
|
6
|
+
import { useDictionary as h } from "./client/useDictionary.mjs";
|
|
7
|
+
import { useDictionaryDynamic as g } from "./client/useDictionaryDynamic.mjs";
|
|
8
|
+
import { getPlugins as _, htmlPlugin as v, insertionPlugin as y, intlayerNodePlugins as b, markdownPlugin as x, markdownStringPlugin as S } from "./plugins.mjs";
|
|
9
9
|
import { useIntlayer as C } from "./client/useIntlayer.mjs";
|
|
10
10
|
import { LocaleController as w, useLocale as T } from "./client/useLocale.mjs";
|
|
11
11
|
import { useRewriteURL as E } from "./client/useRewriteURL.mjs";
|
|
12
12
|
import "./client/index.mjs";
|
|
13
|
-
export {
|
|
13
|
+
export { p as IntlayerBinding, d as IntlayerClient, w as LocaleController, l as createIntlayerClient, f as getDictionary, m as getIntlayer, u as getIntlayerClient, e as getLocaleInStorage, _ as getPlugins, v as htmlPlugin, y as insertionPlugin, c as installIntlayer, b as intlayerNodePlugins, t as localeCookie, n as localeInStorage, x as markdownPlugin, S as markdownStringPlugin, r as setLocaleCookie, i as setLocaleInStorage, h as useDictionary, g as useDictionaryDynamic, s as useEditor, C as useIntlayer, T as useLocale, a as useLocaleCookie, o as useLocaleStorage, E as useRewriteURL };
|
|
@@ -2,7 +2,7 @@ import { compileMarkdown as e } from "./compiler.mjs";
|
|
|
2
2
|
import { useMarkdown as t } from "./installIntlayerMarkdown.mjs";
|
|
3
3
|
import { unsafeHTML as n } from "lit/directives/unsafe-html.js";
|
|
4
4
|
import { LitElement as r, html as i, nothing as a } from "lit";
|
|
5
|
-
|
|
5
|
+
// src/markdown/MarkdownRenderer.ts
|
|
6
6
|
var o = (t, { forceBlock: n, forceInline: r, preserveFrontmatter: i, tagfilter: a } = {}) => e(t, {
|
|
7
7
|
forceBlock: n,
|
|
8
8
|
forceInline: r,
|
|
@@ -51,5 +51,4 @@ var o = (t, { forceBlock: n, forceInline: r, preserveFrontmatter: i, tagfilter:
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
customElements.get("intlayer-markdown-renderer") || customElements.define("intlayer-markdown-renderer", c);
|
|
54
|
-
//#endregion
|
|
55
54
|
export { c as MarkdownRenderer, o as renderMarkdown, s as useMarkdownRenderer };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "./runtime.mjs";
|
|
2
2
|
import { compileWithOptions as t, parseMarkdown as n, renderMarkdownAst as r } from "@intlayer/core/markdown";
|
|
3
|
-
|
|
3
|
+
// src/markdown/compiler.ts
|
|
4
4
|
var i = (t = "", r = {}) => {
|
|
5
5
|
let { components: i, namedCodesToUnicode: a, sanitizer: o, slugify: s, ...c } = r;
|
|
6
6
|
return n(t, {
|
|
@@ -21,5 +21,4 @@ var i = (t = "", r = {}) => {
|
|
|
21
21
|
slugify: c
|
|
22
22
|
}, l);
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { a as compileMarkdown, i as parseMarkdown };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { compileMarkdown as e } from "./compiler.mjs";
|
|
2
|
-
|
|
2
|
+
// src/markdown/installIntlayerMarkdown.ts
|
|
3
3
|
var t = null, n = (e, n) => t || (t = {
|
|
4
4
|
components: n,
|
|
5
5
|
renderMarkdown: e
|
|
@@ -27,5 +27,4 @@ var t = null, n = (e, n) => t || (t = {
|
|
|
27
27
|
}
|
|
28
28
|
return n(r, i);
|
|
29
29
|
}, i = () => t || { renderMarkdown: (t) => e(t) }, a = async (e) => t || r(await e());
|
|
30
|
-
//#endregion
|
|
31
30
|
export { n as createIntlayerMarkdownClient, r as installIntlayerMarkdown, a as installIntlayerMarkdownDynamic, i as useMarkdown };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/markdown/runtime.ts
|
|
2
2
|
var e = /* @__PURE__ */ new Set([
|
|
3
3
|
"area",
|
|
4
4
|
"base",
|
|
@@ -47,5 +47,4 @@ var e = /* @__PURE__ */ new Set([
|
|
|
47
47
|
createElement: (e, n, ...r) => t(e, n, r)
|
|
48
48
|
} : r;
|
|
49
49
|
};
|
|
50
|
-
//#endregion
|
|
51
50
|
export { i as createLitRuntime, r as default, r as litRuntime };
|
package/dist/esm/plugins.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as e } from "../installIntlayer-
|
|
1
|
+
import { r as e } from "../installIntlayer-Dvl7Prhw.mjs";
|
|
2
2
|
import t from "./markdown/runtime.mjs";
|
|
3
3
|
import { renderIntlayerNode as n } from "./renderIntlayerNode.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { editor as r, internationalization as i } from "@intlayer/config/built";
|
|
5
|
+
import { conditionPlugin as a, enumerationPlugin as o, fallbackPlugin as s, filePlugin as c, genderPlugin as l, getHTML as u, isInterpolableWrapperNode as d, nestedPlugin as f, pluralPlugin as p, resolveInsertedSelector as m, resolveInterpreterLocale as h, selectPlugin as g, splitInsertionTemplate as _, transformInterpolableNode as v, translationPlugin as y } from "@intlayer/core/interpreter";
|
|
6
6
|
import { compileWithOptions as b, getMarkdownMetadata as x } from "@intlayer/core/markdown";
|
|
7
7
|
import { getIntlayerNodePrototype as S } from "@intlayer/core/utils";
|
|
8
8
|
import * as C from "@intlayer/types/nodeType";
|
|
9
9
|
import { unsafeHTML as w } from "lit/directives/unsafe-html.js";
|
|
10
10
|
import { html as T, unsafeStatic as E } from "lit/static-html.js";
|
|
11
|
-
|
|
11
|
+
// src/plugins.ts
|
|
12
12
|
var D = (e = "", n = {}) => b(e, t, n), O = (e, t, n = {}) => {
|
|
13
13
|
let r = typeof e == "string" ? w(e) : e, i = Array.isArray(r), a = Object.assign(i ? [...r] : { ...r }, n, {
|
|
14
14
|
value: t,
|
|
@@ -21,32 +21,32 @@ var D = (e = "", n = {}) => b(e, t, n), O = (e, t, n = {}) => {
|
|
|
21
21
|
}, k = (e) => e.replace(/&/g, "&").replace(/"/g, """), A = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), j = {
|
|
22
22
|
id: "intlayer-node-plugin",
|
|
23
23
|
canHandle: (e) => typeof e == "bigint" || typeof e == "string" || typeof e == "number",
|
|
24
|
-
transform: (e, { children: t, keyPath:
|
|
25
|
-
if (process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
24
|
+
transform: (e, { children: t, keyPath: i, dictionaryKey: a }) => {
|
|
25
|
+
if (process.env.INTLAYER_EDITOR_ENABLED !== "false" && r.enabled) {
|
|
26
26
|
let e = String(t ?? "");
|
|
27
|
-
return O(`<intlayer-content-selector-wrapper key-path="${k(JSON.stringify(
|
|
27
|
+
return O(`<intlayer-content-selector-wrapper key-path="${k(JSON.stringify(i ?? []))}" dictionary-key="${k(String(a ?? ""))}">${A(e)}</intlayer-content-selector-wrapper>`, e);
|
|
28
28
|
}
|
|
29
29
|
return n({
|
|
30
30
|
value: t,
|
|
31
31
|
children: t
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
}, M = process.env.INTLAYER_NODE_TYPE_INSERTION === "false" ?
|
|
34
|
+
}, M = process.env.INTLAYER_NODE_TYPE_INSERTION === "false" ? s : {
|
|
35
35
|
id: "insertion-plugin",
|
|
36
36
|
canHandle: (e) => typeof e == "object" && e?.nodeType === C.INSERTION,
|
|
37
37
|
transform: (e, t, n) => {
|
|
38
38
|
let r = [...t.keyPath, { type: C.INSERTION }], i = e[C.INSERTION], a = {
|
|
39
39
|
id: "insertion-string-plugin",
|
|
40
|
-
canHandle: (e) => typeof e == "string" ||
|
|
40
|
+
canHandle: (e) => typeof e == "string" || d(e),
|
|
41
41
|
transform: (e, n, r) => {
|
|
42
|
-
if (
|
|
42
|
+
if (d(e)) return (i) => v(e, i, n, t.plugins, r);
|
|
43
43
|
let i = r(e, {
|
|
44
44
|
...n,
|
|
45
45
|
children: e,
|
|
46
46
|
plugins: (t.plugins ?? []).filter((e) => e.id !== "intlayer-node-plugin")
|
|
47
47
|
});
|
|
48
48
|
return (e) => {
|
|
49
|
-
let a =
|
|
49
|
+
let a = _(i, e), o = a.isSimple ? a.parts : a.parts.join("");
|
|
50
50
|
return r(o, {
|
|
51
51
|
...n,
|
|
52
52
|
plugins: t.plugins,
|
|
@@ -60,13 +60,13 @@ var D = (e = "", n = {}) => b(e, t, n), O = (e, t, n = {}) => {
|
|
|
60
60
|
keyPath: r,
|
|
61
61
|
plugins: [a, ...t.plugins ?? []]
|
|
62
62
|
});
|
|
63
|
-
return
|
|
63
|
+
return m(i, o);
|
|
64
64
|
}
|
|
65
|
-
}, N = process.env.INTLAYER_NODE_TYPE_MARKDOWN === "false" ?
|
|
65
|
+
}, N = process.env.INTLAYER_NODE_TYPE_MARKDOWN === "false" ? s : {
|
|
66
66
|
id: "markdown-string-plugin",
|
|
67
67
|
canHandle: (e) => typeof e == "string",
|
|
68
|
-
transform: (e, t,
|
|
69
|
-
let { plugins:
|
|
68
|
+
transform: (e, t, i) => {
|
|
69
|
+
let { plugins: a, ...o } = t, { keyPath: s, dictionaryKey: c } = o, l = i(x(e) ?? {}, {
|
|
70
70
|
plugins: [{
|
|
71
71
|
id: "markdown-metadata-plugin",
|
|
72
72
|
canHandle: (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || !e,
|
|
@@ -76,21 +76,21 @@ var D = (e = "", n = {}) => b(e, t, n), O = (e, t, n = {}) => {
|
|
|
76
76
|
children: e
|
|
77
77
|
})
|
|
78
78
|
}],
|
|
79
|
-
dictionaryKey:
|
|
79
|
+
dictionaryKey: o.dictionaryKey,
|
|
80
80
|
keyPath: []
|
|
81
|
-
}),
|
|
81
|
+
}), u = D(e), d = (t) => {
|
|
82
82
|
let n = D(e, { components: t });
|
|
83
|
-
return process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
83
|
+
return process.env.INTLAYER_EDITOR_ENABLED !== "false" && r.enabled ? O(`<intlayer-content-selector-wrapper key-path="${k(JSON.stringify(s ?? []))}" dictionary-key="${k(String(c ?? ""))}">${n}</intlayer-content-selector-wrapper>`, e) : O(n, e);
|
|
84
84
|
};
|
|
85
|
-
return process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
86
|
-
metadata:
|
|
87
|
-
use:
|
|
88
|
-
}) : O(
|
|
89
|
-
metadata:
|
|
90
|
-
use:
|
|
85
|
+
return process.env.INTLAYER_EDITOR_ENABLED !== "false" && r.enabled ? O(`<intlayer-content-selector-wrapper key-path="${k(JSON.stringify(s ?? []))}" dictionary-key="${k(String(c ?? ""))}">${u}</intlayer-content-selector-wrapper>`, e, {
|
|
86
|
+
metadata: l,
|
|
87
|
+
use: d
|
|
88
|
+
}) : O(u, e, {
|
|
89
|
+
metadata: l,
|
|
90
|
+
use: d
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
}, P = process.env.INTLAYER_NODE_TYPE_MARKDOWN === "false" ?
|
|
93
|
+
}, P = process.env.INTLAYER_NODE_TYPE_MARKDOWN === "false" ? s : {
|
|
94
94
|
id: "markdown-plugin",
|
|
95
95
|
canHandle: (e) => typeof e == "object" && e?.nodeType === C.MARKDOWN,
|
|
96
96
|
transform: (e, t, n) => {
|
|
@@ -102,37 +102,36 @@ var D = (e = "", n = {}) => b(e, t, n), O = (e, t, n = {}) => {
|
|
|
102
102
|
plugins: [N, ...t.plugins ?? []]
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
}, F = process.env.INTLAYER_NODE_TYPE_HTML === "false" ?
|
|
105
|
+
}, F = process.env.INTLAYER_NODE_TYPE_HTML === "false" ? s : {
|
|
106
106
|
id: "html-plugin",
|
|
107
107
|
canHandle: (e) => typeof e == "object" && e?.nodeType === C.HTML,
|
|
108
108
|
transform: (e, t) => {
|
|
109
|
-
let n = e[C.HTML], { keyPath:
|
|
110
|
-
let t = Object.fromEntries(Object.entries(e).filter(([, e]) => e).map(([e, t]) => [e, (e) => t(e)])),
|
|
109
|
+
let n = e[C.HTML], { keyPath: i, dictionaryKey: a } = t, o = (e = {}) => {
|
|
110
|
+
let t = Object.fromEntries(Object.entries(e).filter(([, e]) => e).map(([e, t]) => [e, (e) => t(e)])), o = new Proxy(t, { get(e, t) {
|
|
111
111
|
if (typeof t == "string" && t in e) return e[t];
|
|
112
112
|
if (typeof t == "string" && /^[a-z][a-z0-9]*$/.test(t)) return (e) => T`<${E(t)} ...${e}>${e.children}</${E(t)}>`;
|
|
113
|
-
} }),
|
|
114
|
-
return process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
113
|
+
} }), s = u(n, o);
|
|
114
|
+
return process.env.INTLAYER_EDITOR_ENABLED !== "false" && r.enabled ? O(`<intlayer-content-selector-wrapper key-path="${k(JSON.stringify(i ?? []))}" dictionary-key="${k(String(a ?? ""))}">${s}</intlayer-content-selector-wrapper>`, n) : O(s, n);
|
|
115
115
|
};
|
|
116
|
-
return process.env.INTLAYER_EDITOR_ENABLED !== "false" &&
|
|
116
|
+
return process.env.INTLAYER_EDITOR_ENABLED !== "false" && r.enabled ? O(`<intlayer-content-selector-wrapper key-path="${k(JSON.stringify(i ?? []))}" dictionary-key="${k(String(a ?? ""))}">${n}</intlayer-content-selector-wrapper>`, n, { use: o }) : O(n, n, { use: o });
|
|
117
117
|
}
|
|
118
118
|
}, I = /* @__PURE__ */ new Map(), L = (t, n = !0) => {
|
|
119
|
-
let
|
|
120
|
-
if (I.has(
|
|
121
|
-
let
|
|
119
|
+
let r = t ?? (typeof window < "u" && e()?.locale) ?? h(), u = `${r}_${n}`;
|
|
120
|
+
if (I.has(u)) return I.get(u);
|
|
121
|
+
let d = [
|
|
122
122
|
j,
|
|
123
|
-
|
|
124
|
-
i,
|
|
125
|
-
d(c),
|
|
126
|
-
r,
|
|
127
|
-
u(c),
|
|
123
|
+
y(r, n ? i.defaultLocale : void 0),
|
|
128
124
|
o,
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
p(r),
|
|
126
|
+
a,
|
|
127
|
+
f(r),
|
|
128
|
+
c,
|
|
129
|
+
l,
|
|
130
|
+
g,
|
|
131
131
|
M,
|
|
132
132
|
P,
|
|
133
133
|
F
|
|
134
|
-
].filter((e) => e !==
|
|
135
|
-
return I.set(
|
|
134
|
+
].filter((e) => e !== s);
|
|
135
|
+
return I.set(u, d), d;
|
|
136
136
|
};
|
|
137
|
-
//#endregion
|
|
138
137
|
export { L as getPlugins, F as htmlPlugin, M as insertionPlugin, j as intlayerNodePlugins, P as markdownPlugin, N as markdownStringPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getIntlayerNodePrototype as e } from "@intlayer/core/utils";
|
|
2
|
-
|
|
2
|
+
// src/renderIntlayerNode.ts
|
|
3
3
|
var t = ({ value: t, additionalProps: n = {} }) => {
|
|
4
4
|
let r = t;
|
|
5
5
|
return {
|
|
@@ -25,5 +25,4 @@ var t = ({ value: t, additionalProps: n = {} }) => {
|
|
|
25
25
|
...n
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
//#endregion
|
|
29
28
|
export { t as renderIntlayerNode };
|
|
@@ -2,7 +2,7 @@ import { getLocaleInStorage as e, setLocaleInStorage as t } from "./esm/client/u
|
|
|
2
2
|
import { internationalization as n } from "@intlayer/config/built";
|
|
3
3
|
import { setIntlayerIdentifier as r } from "@intlayer/config/client";
|
|
4
4
|
import { isEnabled as i } from "@intlayer/editor/isEnabled";
|
|
5
|
-
|
|
5
|
+
// src/editor/useEditor.ts
|
|
6
6
|
var a = (e) => {
|
|
7
7
|
let n = d();
|
|
8
8
|
e.currentLocale.set(n.locale);
|
|
@@ -46,8 +46,7 @@ function s(e) {
|
|
|
46
46
|
}
|
|
47
47
|
new o(e);
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
//#region src/client/installIntlayer.ts
|
|
49
|
+
// src/client/installIntlayer.ts
|
|
51
50
|
var c = class {
|
|
52
51
|
_locale;
|
|
53
52
|
_variant;
|
|
@@ -80,5 +79,4 @@ var c = class {
|
|
|
80
79
|
let r = u(e, t, n);
|
|
81
80
|
return s(), r;
|
|
82
81
|
};
|
|
83
|
-
//#endregion
|
|
84
82
|
export { s as a, f as i, u as n, d as r, c as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lit-intlayer",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Lit applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -104,11 +104,11 @@
|
|
|
104
104
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@intlayer/api": "9.7.
|
|
108
|
-
"@intlayer/config": "9.7.
|
|
109
|
-
"@intlayer/core": "9.7.
|
|
110
|
-
"@intlayer/editor": "9.7.
|
|
111
|
-
"@intlayer/types": "9.7.
|
|
107
|
+
"@intlayer/api": "9.7.1",
|
|
108
|
+
"@intlayer/config": "9.7.1",
|
|
109
|
+
"@intlayer/core": "9.7.1",
|
|
110
|
+
"@intlayer/editor": "9.7.1",
|
|
111
|
+
"@intlayer/types": "9.7.1"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@types/node": "^26",
|
|
@@ -118,14 +118,14 @@
|
|
|
118
118
|
"@utils/tsdown-config": "1.0.4",
|
|
119
119
|
"fast-glob": "3.3.3",
|
|
120
120
|
"rimraf": "6.1.3",
|
|
121
|
-
"tsdown": "0.23.
|
|
121
|
+
"tsdown": "0.23.4",
|
|
122
122
|
"typescript": "7.0.2",
|
|
123
|
-
"vite": "8.3.
|
|
123
|
+
"vite": "8.3.5",
|
|
124
124
|
"vite-plugin-dts": "5.1.2",
|
|
125
|
-
"vitest": "5.0
|
|
125
|
+
"vitest": "5.1.0"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
|
-
"intlayer": "9.7.
|
|
128
|
+
"intlayer": "9.7.1",
|
|
129
129
|
"lit": ">=3.0.0"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|