angular-intlayer 9.5.9-canary.0 → 9.5.10
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/analytics/useAnalytics.cjs +1 -1
- package/dist/cjs/client/intlayerToken.cjs +3 -1
- package/dist/cjs/client/intlayerToken.cjs.map +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/client/useLocaleStorage.cjs +10 -2
- package/dist/cjs/client/useLocaleStorage.cjs.map +1 -1
- package/dist/cjs/editor/EditorProvider.component.cjs +1 -1
- package/dist/cjs/editor/index.cjs +1 -1
- package/dist/cjs/esbuild/plugin.cjs +3 -3
- package/dist/cjs/format/index.cjs +4 -4
- package/dist/cjs/index.cjs +3 -3
- package/dist/cjs/plugins.cjs +64 -70
- package/dist/cjs/plugins.cjs.map +1 -1
- package/dist/cjs/renderIntlayerNode.cjs +17 -36
- package/dist/cjs/renderIntlayerNode.cjs.map +1 -1
- package/dist/esm/analytics/useAnalytics.mjs +1 -1
- package/dist/esm/client/intlayerToken.mjs +3 -1
- package/dist/esm/client/intlayerToken.mjs.map +1 -1
- package/dist/esm/client/useDictionary.mjs +1 -1
- package/dist/esm/client/useDictionaryDynamic.mjs +1 -1
- package/dist/esm/client/useIntlayer.mjs +1 -1
- package/dist/esm/client/useLocale.mjs +1 -1
- package/dist/esm/client/useLocaleStorage.mjs +11 -4
- package/dist/esm/client/useLocaleStorage.mjs.map +1 -1
- package/dist/esm/editor/EditorProvider.component.mjs +1 -1
- package/dist/esm/editor/index.mjs +1 -1
- package/dist/esm/format/index.mjs +4 -4
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/plugins.mjs +64 -70
- package/dist/esm/plugins.mjs.map +1 -1
- package/dist/esm/renderIntlayerNode.mjs +17 -36
- package/dist/esm/renderIntlayerNode.mjs.map +1 -1
- package/dist/types/client/intlayerToken.d.ts.map +1 -1
- package/dist/types/client/useLocaleStorage.d.ts +12 -6
- package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
- package/dist/types/format/useCompact.d.ts +1 -2
- package/dist/types/format/useCompact.d.ts.map +1 -1
- package/dist/types/format/useCurrency.d.ts +1 -2
- package/dist/types/format/useCurrency.d.ts.map +1 -1
- package/dist/types/format/useDate.d.ts +1 -2
- package/dist/types/format/useDate.d.ts.map +1 -1
- package/dist/types/format/useList.d.ts +1 -2
- package/dist/types/format/useList.d.ts.map +1 -1
- package/dist/types/format/useNumber.d.ts +1 -2
- package/dist/types/format/useNumber.d.ts.map +1 -1
- package/dist/types/format/usePercentage.d.ts +1 -2
- package/dist/types/format/usePercentage.d.ts.map +1 -1
- package/dist/types/format/useRelativeTime.d.ts +1 -2
- package/dist/types/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/format/useUnit.d.ts +1 -2
- package/dist/types/format/useUnit.d.ts.map +1 -1
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/renderIntlayerNode.d.ts +8 -0
- package/dist/types/renderIntlayerNode.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/types/intlayer/dist/types/index.d.ts +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;;;;qBAea,oDAAkB;;;;;;;qBAQlB,2CAAe;;;;;;qBAOf,wCAAY;;;;qBAKZ,qBAAkB,QACrB,eAAa;;;;;;qBAaV,wBAAe;;;;qBAKf,mBAAgB;;sBAAhB;;;;;;;;;qBAaA,kBAAe;EAIxB,wCAAY;EACZ,kBAAe,QAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
1
|
//#region src/format/useCompact.d.ts
|
|
3
2
|
export declare const useCompact: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
4
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
5
4
|
}) => string>;
|
|
6
5
|
//#endregion
|
|
7
6
|
//# sourceMappingURL=useCompact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";qBAIa,0CAAU,QAAA,wBAAA,UAAA,KAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
1
|
//#region src/format/useCurrency.d.ts
|
|
3
2
|
export declare const useCurrency: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
4
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
5
4
|
}) => string>;
|
|
6
5
|
//#endregion
|
|
7
6
|
//# sourceMappingURL=useCurrency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";qBAIa,2CAAW,QAAA,wBAAA,UAAA,KAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
1
|
//#region src/format/useDate.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Angular client hook that provides a localized date/time formatter.
|
|
5
4
|
*/
|
|
6
5
|
export declare const useDate: () => import("@angular/core").Signal<(date: string | number | Date, options?: import("@intlayer/core/formatters").DateTimePreset | (Intl.DateTimeFormatOptions & {
|
|
7
|
-
locale?: LocalesValues;
|
|
6
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
8
7
|
})) => string>;
|
|
9
8
|
//#endregion
|
|
10
9
|
//# sourceMappingURL=useDate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;qBAOa,uCAAO,QAAA,wBAAA,MAAA,8CAAA,kBAAA,KAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
1
|
//#region src/format/useList.d.ts
|
|
3
2
|
export declare const useList: () => import("@angular/core").Signal<(values: (string | number)[], options?: import("@intlayer/core/formatters").ListFormatOptions & {
|
|
4
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
5
4
|
}) => string>;
|
|
6
5
|
//#endregion
|
|
7
6
|
//# sourceMappingURL=useList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";qBAIa,uCAAO,QAAA,6BAAA,8CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
1
|
//#region src/format/useNumber.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Angular client hook that provides a localized number formatter.
|
|
5
4
|
*/
|
|
6
5
|
export declare const useNumber: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
7
|
-
locale?: LocalesValues;
|
|
6
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
8
7
|
}) => string>;
|
|
9
8
|
//#endregion
|
|
10
9
|
//# sourceMappingURL=useNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;qBAOa,yCAAS,QAAA,wBAAA,SAAA,KAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
1
|
//#region src/format/usePercentage.d.ts
|
|
3
2
|
export declare const usePercentage: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
4
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
5
4
|
}) => string>;
|
|
6
5
|
//#endregion
|
|
7
6
|
//# sourceMappingURL=usePercentage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";qBAIa,6CAAa,QAAA,wBAAA,SAAA,KAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
1
|
//#region src/format/useRelativeTime.d.ts
|
|
3
2
|
export declare const useRelativeTime: () => import("@angular/core").Signal<(from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
|
|
4
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
5
4
|
unit?: Intl.RelativeTimeFormatUnit;
|
|
6
5
|
}) => string>;
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";qBAIa,+CAAe,QAAA,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
1
|
//#region src/format/useUnit.d.ts
|
|
3
2
|
export declare const useUnit: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
4
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
5
4
|
}) => string>;
|
|
6
5
|
//#endregion
|
|
7
6
|
//# sourceMappingURL=useUnit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";qBAIa,uCAAO,QAAA,wBAAA,UAAA,KAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"mappings":";;;;;;;;YAkHY,iBAAiB,KAAK,4BAC9B,aAAa;iBAGA,aAAa,GAAG;EAC/B,OAAO;EACP;EACA,kBAAkB;;;qBAIP,qBAAqB;;;;
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"mappings":";;;;;;;;YAkHY,iBAAiB,KAAK,4BAC9B,aAAa;iBAGA,aAAa,GAAG;EAC/B,OAAO;EACP;EACA,kBAAkB;;;qBAIP,qBAAqB;;;;YAsCtB,mBAAmB,KAAK,mBAChC;EAAuB,UAAU;;;qBAIxB,sBAAsB;YA0EvB,aAAa,GAAG,IAAI,WAAW,iBAAiB;EAC1D,UAAU;GACT,UAAU,iBAAiB;EAC5B,aAAa;EACb,iBAAiB;IAEf,aACE;EAEE,MAAM,aAAa,aAAa;EAChC,UAAU,qBAAqB;;qBAK1B,gBAAgB;;;;;;;;;;YAoCjB,eAAe,GAAG,IAAI,MAAM;EACtC,UAAU;GACT,UAAU,aAAa;EACxB,aAAa;IAEX,aACE;EAEE,MAAM,aAAa,aAAa;;;qBAM3B,YAAY;;;;;;;YAwDb,oBAAoB,GAAG,GAAG,UAAU,iBAAiB;EAC/D,UAAU;GACT,UAAU,kBAAkB;KAGzB,MAAM,oCACH,kCAED,uBAAyB,SAAS,GAAG;qBAGhC,iBAAiB;iBAgGb,0BAA0B,GAAG,GAAG,UAAU;EACzD,qBAAqB,iBAAiB;EACtC,iBAAiB,aAAa,GAAG,GAAG;EACpC,aAAa,eAAe,GAAG,GAAG;EAClC,kBAAkB,oBAAoB,GAAG,GAAG;;;;;;;YAQlC,0BAA0B,KACpC;EAGA;EACA;EACA;EACA;;YAGU,qBACV,GACA,UAAU,gBAAgB,mBACxB,uBAAyB,GAAG,yBAAyB;;;;;qBAQ5C,aAAU,SACZ,eAAa,uBAErB"}
|
|
@@ -10,6 +10,14 @@ type RenderIntlayerNodeProps<T> = {
|
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Builds a node that renders its content and also behaves like its value
|
|
15
|
+
* (`node.value`, `${node}`, `node.toUpperCase()`), through a shared prototype
|
|
16
|
+
* rather than a Proxy.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The value, the rendered content and extra node members.
|
|
19
|
+
* @returns The node.
|
|
20
|
+
*/
|
|
13
21
|
export declare const renderIntlayerNode: <T>({ children, value, additionalProps }: RenderIntlayerNodeProps<T>) => IntlayerNode<T>;
|
|
14
22
|
//#endregion
|
|
15
23
|
//# sourceMappingURL=renderIntlayerNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderIntlayerNode.d.ts","names":[],"sources":["../../src/renderIntlayerNode.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"renderIntlayerNode.d.ts","names":[],"sources":["../../src/renderIntlayerNode.ts"],"mappings":";;YAGY,aAAa,YAAY,wBAAwB,eAC3D;EAGA,OAAO;IACL,kBACF;KAEG,wBAAwB;EAC3B,OAAO;EACP;EACA;KAAqB;;;;;;;;;;;qBAWV,qBACX,KAAC,UAAA,OAAA,mBAKA,wBAAwB,OAAK,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
"@babel/core": "^8.0.1",
|
|
121
121
|
"@babel/plugin-syntax-import-attributes": "7.29.7",
|
|
122
122
|
"@babel/preset-env": "8.0.2",
|
|
123
|
-
"@intlayer/config": "9.5.
|
|
124
|
-
"@intlayer/core": "9.5.
|
|
125
|
-
"@intlayer/dictionaries-entry": "9.5.
|
|
126
|
-
"@intlayer/editor": "9.5.
|
|
127
|
-
"@intlayer/engine": "9.5.
|
|
128
|
-
"@intlayer/types": "9.5.
|
|
129
|
-
"@intlayer/webpack": "9.5.
|
|
123
|
+
"@intlayer/config": "9.5.10",
|
|
124
|
+
"@intlayer/core": "9.5.10",
|
|
125
|
+
"@intlayer/dictionaries-entry": "9.5.10",
|
|
126
|
+
"@intlayer/editor": "9.5.10",
|
|
127
|
+
"@intlayer/engine": "9.5.10",
|
|
128
|
+
"@intlayer/types": "9.5.10",
|
|
129
|
+
"@intlayer/webpack": "9.5.10",
|
|
130
130
|
"babel-loader": "10.1.1",
|
|
131
131
|
"defu": "6.1.7"
|
|
132
132
|
},
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"rimraf": "6.1.3",
|
|
143
143
|
"tsdown": "0.23.0",
|
|
144
144
|
"typescript": "7.0.2",
|
|
145
|
-
"vitest": "5.0.
|
|
145
|
+
"vitest": "5.0.2"
|
|
146
146
|
},
|
|
147
147
|
"peerDependencies": {
|
|
148
148
|
"@angular/common": ">=15",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
"optionalDependencies": {
|
|
159
|
-
"@intlayer/analytics": "9.5.
|
|
159
|
+
"@intlayer/analytics": "9.5.10"
|
|
160
160
|
},
|
|
161
161
|
"engines": {
|
|
162
162
|
"node": ">=14.18"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DeclaredLocales, LocalesValues as LocalesValues$1 } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
-
import "@intlayer/core/interpreter";
|
|
4
|
-
import "@intlayer/types/config";
|
|
5
|
-
import { Locale } from "@intlayer/types/allLocales";
|
|
6
|
-
import "@intlayer/types/locales";
|
|
7
|
-
import "@intlayer/config/built";
|
|
8
|
-
import "@intlayer/core/file";
|
|
9
|
-
import "@intlayer/core/formatters";
|
|
10
|
-
import "@intlayer/core/localization";
|
|
11
|
-
import "@intlayer/core/markdown";
|
|
12
|
-
import "@intlayer/core/transpiler";
|
|
13
|
-
import "@intlayer/core/utils";
|
|
14
|
-
export type { Locale, LocalesValues$1 as LocalesValues };
|