preact-intlayer 7.5.4 → 7.5.6

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,4 +1,4 @@
1
- import * as _intlayer_types12 from "@intlayer/types";
1
+ import * as _intlayer_types8 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useCompact.d.ts
4
4
 
@@ -13,7 +13,7 @@ import * as _intlayer_types12 from "@intlayer/types";
13
13
  * ```
14
14
  */
15
15
  declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & {
16
- locale?: _intlayer_types12.LocalesValues;
16
+ locale?: _intlayer_types8.LocalesValues;
17
17
  }) => string;
18
18
  //#endregion
19
19
  export { useCompact };
@@ -1 +1 @@
1
- {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"sourcesContent":[],"mappings":";;;;;;;AAgBA;;;;;;;cAAa,qDAAU,IAAA,CAAA;WAAA,iBAAA,CAAA"}
1
+ {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"sourcesContent":[],"mappings":";;;;;;;AAgBA;;;;;;;cAAa,qDAAU,IAAA,CAAA;WAAA,gBAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types13 from "@intlayer/types";
1
+ import * as _intlayer_types17 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useList.d.ts
4
4
 
@@ -24,7 +24,7 @@ import * as _intlayer_types13 from "@intlayer/types";
24
24
  * ```
25
25
  */
26
26
  declare const useList: () => (values: (string | number)[], options?: Intl.ListFormatOptions & {
27
- locale?: _intlayer_types13.LocalesValues;
27
+ locale?: _intlayer_types17.LocalesValues;
28
28
  }) => string;
29
29
  //#endregion
30
30
  export { useList };
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types16 from "@intlayer/types";
1
+ import * as _intlayer_types9 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useNumber.d.ts
4
4
 
@@ -25,7 +25,7 @@ import * as _intlayer_types16 from "@intlayer/types";
25
25
  * A number formatting function bound to the active locale.
26
26
  */
27
27
  declare const useNumber: () => (value: string | number, options?: Intl.NumberFormatOptions & {
28
- locale?: _intlayer_types16.LocalesValues;
28
+ locale?: _intlayer_types9.LocalesValues;
29
29
  }) => string;
30
30
  //#endregion
31
31
  export { useNumber };
@@ -1 +1 @@
1
- {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/client/format/useNumber.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;;;;;;;;;;;;;;;;;;;cAAa,oDAAS,IAAA,CAAA;WAAA,iBAAA,CAAA"}
1
+ {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/client/format/useNumber.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;;;;;;;;;;;;;;;;;;;cAAa,oDAAS,IAAA,CAAA;WAAA,gBAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types17 from "@intlayer/types";
1
+ import * as _intlayer_types14 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/usePercentage.d.ts
4
4
 
@@ -21,7 +21,7 @@ import * as _intlayer_types17 from "@intlayer/types";
21
21
  * A function that formats numbers or numeric strings into localized percentages.
22
22
  */
23
23
  declare const usePercentage: () => (value: string | number, options?: Intl.NumberFormatOptions & {
24
- locale?: _intlayer_types17.LocalesValues;
24
+ locale?: _intlayer_types14.LocalesValues;
25
25
  }) => string;
26
26
  //#endregion
27
27
  export { usePercentage };
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types18 from "@intlayer/types";
1
+ import * as _intlayer_types16 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useRelativeTime.d.ts
4
4
 
@@ -21,7 +21,7 @@ import * as _intlayer_types18 from "@intlayer/types";
21
21
  * bound to the current client locale.
22
22
  */
23
23
  declare const useRelativeTime: () => (from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
24
- locale?: _intlayer_types18.LocalesValues;
24
+ locale?: _intlayer_types16.LocalesValues;
25
25
  unit?: Intl.RelativeTimeFormatUnit;
26
26
  }) => string;
27
27
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types14 from "@intlayer/types";
1
+ import * as _intlayer_types18 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useUnit.d.ts
4
4
 
@@ -20,7 +20,7 @@ import * as _intlayer_types14 from "@intlayer/types";
20
20
  * @returns {Function} A unit formatting function that accepts a value and optional formatting options.
21
21
  */
22
22
  declare const useUnit: () => (value: string | number, options?: Intl.NumberFormatOptions & {
23
- locale?: _intlayer_types14.LocalesValues;
23
+ locale?: _intlayer_types18.LocalesValues;
24
24
  }) => string;
25
25
  //#endregion
26
26
  export { useUnit };
@@ -1,14 +1,14 @@
1
- import * as _intlayer_types8 from "@intlayer/types";
1
+ import * as _intlayer_types4 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/useLocaleBase.d.ts
4
4
  /**
5
5
  * On the client side, hook to get the current locale and all related fields
6
6
  */
7
7
  declare const useLocaleBase: () => {
8
- locale: _intlayer_types8.LocalesValues;
9
- defaultLocale: _intlayer_types8.Locale;
10
- availableLocales: _intlayer_types8.Locale[];
11
- setLocale: (newLocale: _intlayer_types8.LocalesValues) => void;
8
+ locale: _intlayer_types4.LocalesValues;
9
+ defaultLocale: _intlayer_types4.Locale;
10
+ availableLocales: _intlayer_types4.Locale[];
11
+ setLocale: (newLocale: _intlayer_types4.LocalesValues) => void;
12
12
  };
13
13
  //#endregion
14
14
  export { useLocaleBase };
@@ -1,17 +1,17 @@
1
- import * as _intlayer_types4 from "@intlayer/types";
1
+ import * as _intlayer_types10 from "@intlayer/types";
2
2
  import { LocalesValues } from "@intlayer/types";
3
3
 
4
4
  //#region src/client/useLocaleStorage.d.ts
5
5
  /**
6
6
  * Get the locale cookie
7
7
  */
8
- declare const localeInStorage: _intlayer_types4.Locale;
8
+ declare const localeInStorage: _intlayer_types10.Locale;
9
9
  /**
10
10
  * @deprecated Use localeInStorage instead
11
11
  *
12
12
  * Get the locale cookie
13
13
  */
14
- declare const localeCookie: _intlayer_types4.Locale;
14
+ declare const localeCookie: _intlayer_types10.Locale;
15
15
  /**
16
16
  * Set the locale cookie
17
17
  */
@@ -26,7 +26,7 @@ declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: boolean)
26
26
  * Hook that provides the locale storage and a function to set it
27
27
  */
28
28
  declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
29
- getLocale: () => _intlayer_types4.Locale;
29
+ getLocale: () => _intlayer_types10.Locale;
30
30
  setLocale: (locale: LocalesValues) => void;
31
31
  };
32
32
  /**
@@ -37,7 +37,7 @@ declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
37
37
  * Hook that provides the locale cookie and a function to set it
38
38
  */
39
39
  declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
40
- localeCookie: _intlayer_types4.Locale;
40
+ localeCookie: _intlayer_types10.Locale;
41
41
  setLocaleCookie: (locale: LocalesValues) => void;
42
42
  };
43
43
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"sourcesContent":[],"mappings":";;;;;;;AAYa,cAAA,eAA4D,EAAA,gBAAA,CAA7C,MAA6C;AAMzE;AAKA;AAcA;AAKA;AAiBA;cAzCa,cAA8B,gBAAA,CAAlB;;;;cAKZ,6BACH;;;;;;cAaG,0BAbH;;;;cAkBG;mBAQV,gBAAA,CAAA;sBAAA;;;;;;;;;cASU;gBAMZ,gBAAA,CAAA;4BAAA"}
1
+ {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"sourcesContent":[],"mappings":";;;;;;;AAYa,cAAA,eAA4D,EAAA,iBAAA,CAA7C,MAA6C;AAMzE;AAKA;AAcA;AAKA;AAiBA;cAzCa,cAA8B,iBAAA,CAAlB;;;;cAKZ,6BACH;;;;;;cAaG,0BAbH;;;;cAkBG;mBAQV,iBAAA,CAAA;sBAAA;;;;;;;;;cASU;gBAMZ,iBAAA,CAAA;4BAAA"}
@@ -1,9 +1,9 @@
1
1
  import { FC, PropsWithChildren } from "preact/compat";
2
2
  import { IntlayerConfig } from "@intlayer/types";
3
- import * as preact_hooks1 from "preact/hooks";
3
+ import * as preact_hooks0 from "preact/hooks";
4
4
 
5
5
  //#region src/editor/ConfigurationContext.d.ts
6
- declare const useConfigurationState: () => [IntlayerConfig, preact_hooks1.Dispatch<preact_hooks1.StateUpdater<IntlayerConfig>>, () => void];
6
+ declare const useConfigurationState: () => [IntlayerConfig, preact_hooks0.Dispatch<preact_hooks0.StateUpdater<IntlayerConfig>>, () => void];
7
7
  type ConfigurationProviderProps = {
8
8
  configuration?: IntlayerConfig;
9
9
  };
@@ -1,12 +1,12 @@
1
1
  import { CrossFrameStateOptions } from "./useCrossFrameState.js";
2
2
  import { FC, PropsWithChildren } from "preact/compat";
3
- import * as preact_hooks0 from "preact/hooks";
3
+ import * as preact_hooks1 from "preact/hooks";
4
4
 
5
5
  //#region src/editor/EditorEnabledContext.d.ts
6
6
  type EditorEnabledStateProps = {
7
7
  enabled: boolean;
8
8
  };
9
- declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean, preact_hooks0.Dispatch<preact_hooks0.StateUpdater<boolean>>, () => void];
9
+ declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean, preact_hooks1.Dispatch<preact_hooks1.StateUpdater<boolean>>, () => void];
10
10
  declare const usePostEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
11
11
  declare const useGetEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
12
12
  declare const EditorEnabledProvider: FC<PropsWithChildren>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "preact-intlayer",
3
- "version": "7.5.4",
3
+ "version": "7.5.6",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Preact applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -85,13 +85,13 @@
85
85
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
86
86
  },
87
87
  "dependencies": {
88
- "@intlayer/api": "7.5.4",
89
- "@intlayer/chokidar": "7.5.4",
90
- "@intlayer/config": "7.5.4",
91
- "@intlayer/core": "7.5.4",
92
- "@intlayer/editor": "7.5.4",
93
- "@intlayer/types": "7.5.4",
94
- "@intlayer/unmerged-dictionaries-entry": "7.5.4"
88
+ "@intlayer/api": "7.5.6",
89
+ "@intlayer/chokidar": "7.5.6",
90
+ "@intlayer/config": "7.5.6",
91
+ "@intlayer/core": "7.5.6",
92
+ "@intlayer/editor": "7.5.6",
93
+ "@intlayer/types": "7.5.6",
94
+ "@intlayer/unmerged-dictionaries-entry": "7.5.6"
95
95
  },
96
96
  "devDependencies": {
97
97
  "@types/node": "25.0.3",