lit-intlayer 8.5.0 → 8.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./useIntl.cjs`);exports.useIntl=e.useIntl;
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;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-C91j1N6u.js`);const e=require(`../../installIntlayer-CkFmSJJA.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.compact)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.compact)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useCompact=r;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-C91j1N6u.js`);const e=require(`../../installIntlayer-CkFmSJJA.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.currency)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.currency)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useCurrency=r;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-C91j1N6u.js`);const e=require(`../../installIntlayer-CkFmSJJA.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>{let n=typeof e[1]==`string`?{...t.presets[e[1]],locale:r.locale}:{...e[1],locale:e[1]?.locale??r.locale};return(0,t.date)(e[0],n)},n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>{let r=typeof n[1]==`string`?{...t.presets[n[1]],locale:e}:{...n[1],locale:n[1]?.locale??e};return(0,t.date)(n[0],r)},this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useDate=r;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-C91j1N6u.js`);const e=require(`../../installIntlayer-CkFmSJJA.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.list)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.list)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useList=r;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-C91j1N6u.js`);const e=require(`../../installIntlayer-CkFmSJJA.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.number)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.number)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useNumber=r;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-C91j1N6u.js`);const e=require(`../../installIntlayer-CkFmSJJA.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.percentage)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.percentage)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.usePercentage=r;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-C91j1N6u.js`);const e=require(`../../installIntlayer-CkFmSJJA.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.relativeTime)(e[0],e[1],{...e[2],locale:e[2]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.relativeTime)(n[0],n[1],{...n[2],locale:n[2]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useRelativeTime=r;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-C91j1N6u.js`);const e=require(`../../installIntlayer-CkFmSJJA.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.units)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.units)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useUnit=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./plugins.cjs`),t=require(`./getDictionary.cjs`),n=require(`./getIntlayer.cjs`),r=require(`../installIntlayer-CkFmSJJA.js`),i=require(`./client/IntlayerBinding.cjs`),a=require(`./client/useDictionary.cjs`),o=require(`./client/useDictionaryDynamic.cjs`),s=require(`./client/useIntlayer.cjs`),c=require(`./client/useLocaleStorage.cjs`),l=require(`./client/useLocale.cjs`),u=require(`./client/useRewriteURL.cjs`);require(`./client/index.cjs`);const d=require(`./format/useIntl.cjs`);exports.IntlayerBinding=i.IntlayerBinding,exports.IntlayerClient=r.t,exports.LocaleController=l.LocaleController,exports.createIntlayerClient=r.n,exports.getDictionary=t.getDictionary,exports.getIntlayer=n.getIntlayer,exports.getIntlayerClient=r.r,exports.getPlugins=e.getPlugins,exports.htmlPlugin=e.htmlPlugin,exports.insertionPlugin=e.insertionPlugin,exports.installIntlayer=r.i,exports.intlayerNodePlugins=e.intlayerNodePlugins,exports.localeCookie=c.localeCookie,exports.localeInStorage=c.localeInStorage,exports.markdownPlugin=e.markdownPlugin,exports.markdownStringPlugin=e.markdownStringPlugin,exports.setLocaleCookie=c.setLocaleCookie,exports.setLocaleInStorage=c.setLocaleInStorage,exports.useDictionary=a.useDictionary,exports.useDictionaryDynamic=o.useDictionaryDynamic,exports.useEditor=r.a,exports.useIntl=d.useIntl,exports.useIntlayer=s.useIntlayer,exports.useLocale=l.useLocale,exports.useLocaleCookie=c.useLocaleCookie,exports.useLocaleStorage=c.useLocaleStorage,exports.useRewriteURL=u.useRewriteURL;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./plugins.cjs`),t=require(`./getDictionary.cjs`),n=require(`./getIntlayer.cjs`),r=require(`../installIntlayer-CkFmSJJA.js`),i=require(`./client/IntlayerBinding.cjs`),a=require(`./client/useDictionary.cjs`),o=require(`./client/useDictionaryDynamic.cjs`),s=require(`./client/useIntlayer.cjs`),c=require(`./client/useLocaleStorage.cjs`),l=require(`./client/useLocale.cjs`),u=require(`./client/useRewriteURL.cjs`);require(`./client/index.cjs`),exports.IntlayerBinding=i.IntlayerBinding,exports.IntlayerClient=r.t,exports.LocaleController=l.LocaleController,exports.createIntlayerClient=r.n,exports.getDictionary=t.getDictionary,exports.getIntlayer=n.getIntlayer,exports.getIntlayerClient=r.r,exports.getPlugins=e.getPlugins,exports.htmlPlugin=e.htmlPlugin,exports.insertionPlugin=e.insertionPlugin,exports.installIntlayer=r.i,exports.intlayerNodePlugins=e.intlayerNodePlugins,exports.localeCookie=c.localeCookie,exports.localeInStorage=c.localeInStorage,exports.markdownPlugin=e.markdownPlugin,exports.markdownStringPlugin=e.markdownStringPlugin,exports.setLocaleCookie=c.setLocaleCookie,exports.setLocaleInStorage=c.setLocaleInStorage,exports.useDictionary=a.useDictionary,exports.useDictionaryDynamic=o.useDictionaryDynamic,exports.useEditor=r.a,exports.useIntlayer=s.useIntlayer,exports.useLocale=l.useLocale,exports.useLocaleCookie=c.useLocaleCookie,exports.useLocaleStorage=c.useLocaleStorage,exports.useRewriteURL=u.useRewriteURL;
@@ -1,2 +1,10 @@
1
- import { useIntl as e } from "./useIntl.mjs";
2
- export { e as useIntl };
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 };
@@ -0,0 +1,29 @@
1
+ import { r as e } from "../../installIntlayer-3Fpy-rFd.mjs";
2
+ import { compact as t } from "@intlayer/core/formatters";
3
+ //#region src/format/useCompact.ts
4
+ var n = class {
5
+ host;
6
+ _unsubscribe = null;
7
+ value;
8
+ constructor(n) {
9
+ this.host = n;
10
+ let r = e();
11
+ this.value = (...e) => t(e[0], {
12
+ ...e[1],
13
+ locale: e[1]?.locale ?? r.locale
14
+ }), n.addController(this);
15
+ }
16
+ hostConnected() {
17
+ this._unsubscribe = e().subscribe((e) => {
18
+ this.value = (...n) => t(n[0], {
19
+ ...n[1],
20
+ locale: n[1]?.locale ?? e
21
+ }), this.host.requestUpdate();
22
+ });
23
+ }
24
+ hostDisconnected() {
25
+ this._unsubscribe?.(), this._unsubscribe = null;
26
+ }
27
+ }, r = (e) => new n(e);
28
+ //#endregion
29
+ export { r as useCompact };
@@ -0,0 +1,29 @@
1
+ import { r as e } from "../../installIntlayer-3Fpy-rFd.mjs";
2
+ import { currency as t } from "@intlayer/core/formatters";
3
+ //#region src/format/useCurrency.ts
4
+ var n = class {
5
+ host;
6
+ _unsubscribe = null;
7
+ value;
8
+ constructor(n) {
9
+ this.host = n;
10
+ let r = e();
11
+ this.value = (...e) => t(e[0], {
12
+ ...e[1],
13
+ locale: e[1]?.locale ?? r.locale
14
+ }), n.addController(this);
15
+ }
16
+ hostConnected() {
17
+ this._unsubscribe = e().subscribe((e) => {
18
+ this.value = (...n) => t(n[0], {
19
+ ...n[1],
20
+ locale: n[1]?.locale ?? e
21
+ }), this.host.requestUpdate();
22
+ });
23
+ }
24
+ hostDisconnected() {
25
+ this._unsubscribe?.(), this._unsubscribe = null;
26
+ }
27
+ }, r = (e) => new n(e);
28
+ //#endregion
29
+ export { r as useCurrency };
@@ -0,0 +1,41 @@
1
+ import { r as e } from "../../installIntlayer-3Fpy-rFd.mjs";
2
+ import { date as t, presets as n } from "@intlayer/core/formatters";
3
+ //#region src/format/useDate.ts
4
+ var r = class {
5
+ host;
6
+ _unsubscribe = null;
7
+ value;
8
+ constructor(r) {
9
+ this.host = r;
10
+ let i = e();
11
+ this.value = (...e) => {
12
+ let r = typeof e[1] == "string" ? {
13
+ ...n[e[1]],
14
+ locale: i.locale
15
+ } : {
16
+ ...e[1],
17
+ locale: e[1]?.locale ?? i.locale
18
+ };
19
+ return t(e[0], r);
20
+ }, r.addController(this);
21
+ }
22
+ hostConnected() {
23
+ this._unsubscribe = e().subscribe((e) => {
24
+ this.value = (...r) => {
25
+ let i = typeof r[1] == "string" ? {
26
+ ...n[r[1]],
27
+ locale: e
28
+ } : {
29
+ ...r[1],
30
+ locale: r[1]?.locale ?? e
31
+ };
32
+ return t(r[0], i);
33
+ }, this.host.requestUpdate();
34
+ });
35
+ }
36
+ hostDisconnected() {
37
+ this._unsubscribe?.(), this._unsubscribe = null;
38
+ }
39
+ }, i = (e) => new r(e);
40
+ //#endregion
41
+ export { i as useDate };
@@ -0,0 +1,29 @@
1
+ import { r as e } from "../../installIntlayer-3Fpy-rFd.mjs";
2
+ import { list as t } from "@intlayer/core/formatters";
3
+ //#region src/format/useList.ts
4
+ var n = class {
5
+ host;
6
+ _unsubscribe = null;
7
+ value;
8
+ constructor(n) {
9
+ this.host = n;
10
+ let r = e();
11
+ this.value = (...e) => t(e[0], {
12
+ ...e[1],
13
+ locale: e[1]?.locale ?? r.locale
14
+ }), n.addController(this);
15
+ }
16
+ hostConnected() {
17
+ this._unsubscribe = e().subscribe((e) => {
18
+ this.value = (...n) => t(n[0], {
19
+ ...n[1],
20
+ locale: n[1]?.locale ?? e
21
+ }), this.host.requestUpdate();
22
+ });
23
+ }
24
+ hostDisconnected() {
25
+ this._unsubscribe?.(), this._unsubscribe = null;
26
+ }
27
+ }, r = (e) => new n(e);
28
+ //#endregion
29
+ export { r as useList };
@@ -0,0 +1,29 @@
1
+ import { r as e } from "../../installIntlayer-3Fpy-rFd.mjs";
2
+ import { number as t } from "@intlayer/core/formatters";
3
+ //#region src/format/useNumber.ts
4
+ var n = class {
5
+ host;
6
+ _unsubscribe = null;
7
+ value;
8
+ constructor(n) {
9
+ this.host = n;
10
+ let r = e();
11
+ this.value = (...e) => t(e[0], {
12
+ ...e[1],
13
+ locale: e[1]?.locale ?? r.locale
14
+ }), n.addController(this);
15
+ }
16
+ hostConnected() {
17
+ this._unsubscribe = e().subscribe((e) => {
18
+ this.value = (...n) => t(n[0], {
19
+ ...n[1],
20
+ locale: n[1]?.locale ?? e
21
+ }), this.host.requestUpdate();
22
+ });
23
+ }
24
+ hostDisconnected() {
25
+ this._unsubscribe?.(), this._unsubscribe = null;
26
+ }
27
+ }, r = (e) => new n(e);
28
+ //#endregion
29
+ export { r as useNumber };
@@ -0,0 +1,29 @@
1
+ import { r as e } from "../../installIntlayer-3Fpy-rFd.mjs";
2
+ import { percentage as t } from "@intlayer/core/formatters";
3
+ //#region src/format/usePercentage.ts
4
+ var n = class {
5
+ host;
6
+ _unsubscribe = null;
7
+ value;
8
+ constructor(n) {
9
+ this.host = n;
10
+ let r = e();
11
+ this.value = (...e) => t(e[0], {
12
+ ...e[1],
13
+ locale: e[1]?.locale ?? r.locale
14
+ }), n.addController(this);
15
+ }
16
+ hostConnected() {
17
+ this._unsubscribe = e().subscribe((e) => {
18
+ this.value = (...n) => t(n[0], {
19
+ ...n[1],
20
+ locale: n[1]?.locale ?? e
21
+ }), this.host.requestUpdate();
22
+ });
23
+ }
24
+ hostDisconnected() {
25
+ this._unsubscribe?.(), this._unsubscribe = null;
26
+ }
27
+ }, r = (e) => new n(e);
28
+ //#endregion
29
+ export { r as usePercentage };
@@ -0,0 +1,29 @@
1
+ import { r as e } from "../../installIntlayer-3Fpy-rFd.mjs";
2
+ import { relativeTime as t } from "@intlayer/core/formatters";
3
+ //#region src/format/useRelativeTime.ts
4
+ var n = class {
5
+ host;
6
+ _unsubscribe = null;
7
+ value;
8
+ constructor(n) {
9
+ this.host = n;
10
+ let r = e();
11
+ this.value = (...e) => t(e[0], e[1], {
12
+ ...e[2],
13
+ locale: e[2]?.locale ?? r.locale
14
+ }), n.addController(this);
15
+ }
16
+ hostConnected() {
17
+ this._unsubscribe = e().subscribe((e) => {
18
+ this.value = (...n) => t(n[0], n[1], {
19
+ ...n[2],
20
+ locale: n[2]?.locale ?? e
21
+ }), this.host.requestUpdate();
22
+ });
23
+ }
24
+ hostDisconnected() {
25
+ this._unsubscribe?.(), this._unsubscribe = null;
26
+ }
27
+ }, r = (e) => new n(e);
28
+ //#endregion
29
+ export { r as useRelativeTime };
@@ -0,0 +1,29 @@
1
+ import { r as e } from "../../installIntlayer-3Fpy-rFd.mjs";
2
+ import { units as t } from "@intlayer/core/formatters";
3
+ //#region src/format/useUnit.ts
4
+ var n = class {
5
+ host;
6
+ _unsubscribe = null;
7
+ value;
8
+ constructor(n) {
9
+ this.host = n;
10
+ let r = e();
11
+ this.value = (...e) => t(e[0], {
12
+ ...e[1],
13
+ locale: e[1]?.locale ?? r.locale
14
+ }), n.addController(this);
15
+ }
16
+ hostConnected() {
17
+ this._unsubscribe = e().subscribe((e) => {
18
+ this.value = (...n) => t(n[0], {
19
+ ...n[1],
20
+ locale: n[1]?.locale ?? e
21
+ }), this.host.requestUpdate();
22
+ });
23
+ }
24
+ hostDisconnected() {
25
+ this._unsubscribe?.(), this._unsubscribe = null;
26
+ }
27
+ }, r = (e) => new n(e);
28
+ //#endregion
29
+ export { r as useUnit };
@@ -10,5 +10,4 @@ import { localeCookie as _, localeInStorage as v, setLocaleCookie as y, setLocal
10
10
  import { LocaleController as C, useLocale as w } from "./client/useLocale.mjs";
11
11
  import { useRewriteURL as T } from "./client/useRewriteURL.mjs";
12
12
  import "./client/index.mjs";
13
- import { useIntl as E } from "./format/useIntl.mjs";
14
- export { p as IntlayerBinding, f as IntlayerClient, C as LocaleController, u as createIntlayerClient, o as getDictionary, s as getIntlayer, d as getIntlayerClient, e as getPlugins, t as htmlPlugin, n as insertionPlugin, l as installIntlayer, r as intlayerNodePlugins, _ as localeCookie, v as localeInStorage, i as markdownPlugin, a as markdownStringPlugin, y as setLocaleCookie, b as setLocaleInStorage, m as useDictionary, h as useDictionaryDynamic, c as useEditor, E as useIntl, g as useIntlayer, w as useLocale, x as useLocaleCookie, S as useLocaleStorage, T as useRewriteURL };
13
+ export { p as IntlayerBinding, f as IntlayerClient, C as LocaleController, u as createIntlayerClient, o as getDictionary, s as getIntlayer, d as getIntlayerClient, e as getPlugins, t as htmlPlugin, n as insertionPlugin, l as installIntlayer, r as intlayerNodePlugins, _ as localeCookie, v as localeInStorage, i as markdownPlugin, a as markdownStringPlugin, y as setLocaleCookie, b as setLocaleInStorage, m as useDictionary, h as useDictionaryDynamic, c as useEditor, g as useIntlayer, w as useLocale, x as useLocaleCookie, S as useLocaleStorage, T as useRewriteURL };
@@ -1 +1,9 @@
1
- export * from './useIntl';
1
+ export { useCompact } from './useCompact';
2
+ export { useCurrency } from './useCurrency';
3
+ export { useDate } from './useDate';
4
+ export { useIntl } from './useIntl';
5
+ export { useList } from './useList';
6
+ export { useNumber } from './useNumber';
7
+ export { usePercentage } from './usePercentage';
8
+ export { useRelativeTime } from './useRelativeTime';
9
+ export { useUnit } from './useUnit';
@@ -0,0 +1,12 @@
1
+ import { compact } from '@intlayer/core/formatters';
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ declare class CompactController implements ReactiveController {
4
+ private readonly host;
5
+ private _unsubscribe;
6
+ value: (...args: Parameters<typeof compact>) => string;
7
+ constructor(host: ReactiveControllerHost);
8
+ hostConnected(): void;
9
+ hostDisconnected(): void;
10
+ }
11
+ export declare const useCompact: (host: ReactiveControllerHost) => CompactController;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import { currency } from '@intlayer/core/formatters';
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ declare class CurrencyController implements ReactiveController {
4
+ private readonly host;
5
+ private _unsubscribe;
6
+ value: (...args: Parameters<typeof currency>) => string;
7
+ constructor(host: ReactiveControllerHost);
8
+ hostConnected(): void;
9
+ hostDisconnected(): void;
10
+ }
11
+ export declare const useCurrency: (host: ReactiveControllerHost) => CurrencyController;
12
+ export {};
@@ -0,0 +1,18 @@
1
+ import { date } from '@intlayer/core/formatters';
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ /**
4
+ * ReactiveController that provides a locale-bound date formatter.
5
+ */
6
+ declare class DateController implements ReactiveController {
7
+ private readonly host;
8
+ private _unsubscribe;
9
+ value: (...args: Parameters<typeof date>) => string;
10
+ constructor(host: ReactiveControllerHost);
11
+ hostConnected(): void;
12
+ hostDisconnected(): void;
13
+ }
14
+ /**
15
+ * Reactive hook that provides a locale-bound date formatter.
16
+ */
17
+ export declare const useDate: (host: ReactiveControllerHost) => DateController;
18
+ export {};
@@ -0,0 +1,12 @@
1
+ import { list } from '@intlayer/core/formatters';
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ declare class ListController implements ReactiveController {
4
+ private readonly host;
5
+ private _unsubscribe;
6
+ value: (...args: Parameters<typeof list>) => string;
7
+ constructor(host: ReactiveControllerHost);
8
+ hostConnected(): void;
9
+ hostDisconnected(): void;
10
+ }
11
+ export declare const useList: (host: ReactiveControllerHost) => ListController;
12
+ export {};
@@ -0,0 +1,18 @@
1
+ import { number } from '@intlayer/core/formatters';
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ /**
4
+ * ReactiveController that provides a locale-bound number formatter.
5
+ */
6
+ declare class NumberController implements ReactiveController {
7
+ private readonly host;
8
+ private _unsubscribe;
9
+ value: (...args: Parameters<typeof number>) => string;
10
+ constructor(host: ReactiveControllerHost);
11
+ hostConnected(): void;
12
+ hostDisconnected(): void;
13
+ }
14
+ /**
15
+ * Reactive hook that provides a locale-bound number formatter.
16
+ */
17
+ export declare const useNumber: (host: ReactiveControllerHost) => NumberController;
18
+ export {};
@@ -0,0 +1,12 @@
1
+ import { percentage } from '@intlayer/core/formatters';
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ declare class PercentageController implements ReactiveController {
4
+ private readonly host;
5
+ private _unsubscribe;
6
+ value: (...args: Parameters<typeof percentage>) => string;
7
+ constructor(host: ReactiveControllerHost);
8
+ hostConnected(): void;
9
+ hostDisconnected(): void;
10
+ }
11
+ export declare const usePercentage: (host: ReactiveControllerHost) => PercentageController;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import { relativeTime } from '@intlayer/core/formatters';
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ declare class RelativeTimeController implements ReactiveController {
4
+ private readonly host;
5
+ private _unsubscribe;
6
+ value: (...args: Parameters<typeof relativeTime>) => string;
7
+ constructor(host: ReactiveControllerHost);
8
+ hostConnected(): void;
9
+ hostDisconnected(): void;
10
+ }
11
+ export declare const useRelativeTime: (host: ReactiveControllerHost) => RelativeTimeController;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import { units } from '@intlayer/core/formatters';
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ declare class UnitController implements ReactiveController {
4
+ private readonly host;
5
+ private _unsubscribe;
6
+ value: (...args: Parameters<typeof units>) => string;
7
+ constructor(host: ReactiveControllerHost);
8
+ hostConnected(): void;
9
+ hostDisconnected(): void;
10
+ }
11
+ export declare const useUnit: (host: ReactiveControllerHost) => UnitController;
12
+ export {};
@@ -6,7 +6,6 @@ declare module '@intlayer/core/interpreter' {
6
6
  }
7
7
  export * from './client';
8
8
  export * from './editor/useEditor';
9
- export * from './format/useIntl';
10
9
  export * from './getDictionary';
11
10
  export * from './getIntlayer';
12
11
  export * from './plugins';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lit-intlayer",
3
- "version": "8.5.0",
3
+ "version": "8.5.2",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Lit applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -103,11 +103,11 @@
103
103
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
104
104
  },
105
105
  "dependencies": {
106
- "@intlayer/api": "8.5.0",
107
- "@intlayer/config": "8.5.0",
108
- "@intlayer/core": "8.5.0",
109
- "@intlayer/editor": "8.5.0",
110
- "@intlayer/types": "8.5.0"
106
+ "@intlayer/api": "8.5.2",
107
+ "@intlayer/config": "8.5.2",
108
+ "@intlayer/core": "8.5.2",
109
+ "@intlayer/editor": "8.5.2",
110
+ "@intlayer/types": "8.5.2"
111
111
  },
112
112
  "devDependencies": {
113
113
  "@types/node": "25.5.0",
@@ -123,7 +123,7 @@
123
123
  "vitest": "4.1.1"
124
124
  },
125
125
  "peerDependencies": {
126
- "intlayer": "8.5.0",
126
+ "intlayer": "8.5.2",
127
127
  "lit": ">=3.0.0"
128
128
  },
129
129
  "peerDependenciesMeta": {