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.
Files changed (59) hide show
  1. package/dist/cjs/analytics/useAnalytics.cjs +1 -1
  2. package/dist/cjs/client/intlayerToken.cjs +3 -1
  3. package/dist/cjs/client/intlayerToken.cjs.map +1 -1
  4. package/dist/cjs/client/useDictionary.cjs +1 -1
  5. package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
  6. package/dist/cjs/client/useIntlayer.cjs +1 -1
  7. package/dist/cjs/client/useLocale.cjs +1 -1
  8. package/dist/cjs/client/useLocaleStorage.cjs +10 -2
  9. package/dist/cjs/client/useLocaleStorage.cjs.map +1 -1
  10. package/dist/cjs/editor/EditorProvider.component.cjs +1 -1
  11. package/dist/cjs/editor/index.cjs +1 -1
  12. package/dist/cjs/esbuild/plugin.cjs +3 -3
  13. package/dist/cjs/format/index.cjs +4 -4
  14. package/dist/cjs/index.cjs +3 -3
  15. package/dist/cjs/plugins.cjs +64 -70
  16. package/dist/cjs/plugins.cjs.map +1 -1
  17. package/dist/cjs/renderIntlayerNode.cjs +17 -36
  18. package/dist/cjs/renderIntlayerNode.cjs.map +1 -1
  19. package/dist/esm/analytics/useAnalytics.mjs +1 -1
  20. package/dist/esm/client/intlayerToken.mjs +3 -1
  21. package/dist/esm/client/intlayerToken.mjs.map +1 -1
  22. package/dist/esm/client/useDictionary.mjs +1 -1
  23. package/dist/esm/client/useDictionaryDynamic.mjs +1 -1
  24. package/dist/esm/client/useIntlayer.mjs +1 -1
  25. package/dist/esm/client/useLocale.mjs +1 -1
  26. package/dist/esm/client/useLocaleStorage.mjs +11 -4
  27. package/dist/esm/client/useLocaleStorage.mjs.map +1 -1
  28. package/dist/esm/editor/EditorProvider.component.mjs +1 -1
  29. package/dist/esm/editor/index.mjs +1 -1
  30. package/dist/esm/format/index.mjs +4 -4
  31. package/dist/esm/index.mjs +3 -3
  32. package/dist/esm/plugins.mjs +64 -70
  33. package/dist/esm/plugins.mjs.map +1 -1
  34. package/dist/esm/renderIntlayerNode.mjs +17 -36
  35. package/dist/esm/renderIntlayerNode.mjs.map +1 -1
  36. package/dist/types/client/intlayerToken.d.ts.map +1 -1
  37. package/dist/types/client/useLocaleStorage.d.ts +12 -6
  38. package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
  39. package/dist/types/format/useCompact.d.ts +1 -2
  40. package/dist/types/format/useCompact.d.ts.map +1 -1
  41. package/dist/types/format/useCurrency.d.ts +1 -2
  42. package/dist/types/format/useCurrency.d.ts.map +1 -1
  43. package/dist/types/format/useDate.d.ts +1 -2
  44. package/dist/types/format/useDate.d.ts.map +1 -1
  45. package/dist/types/format/useList.d.ts +1 -2
  46. package/dist/types/format/useList.d.ts.map +1 -1
  47. package/dist/types/format/useNumber.d.ts +1 -2
  48. package/dist/types/format/useNumber.d.ts.map +1 -1
  49. package/dist/types/format/usePercentage.d.ts +1 -2
  50. package/dist/types/format/usePercentage.d.ts.map +1 -1
  51. package/dist/types/format/useRelativeTime.d.ts +1 -2
  52. package/dist/types/format/useRelativeTime.d.ts.map +1 -1
  53. package/dist/types/format/useUnit.d.ts +1 -2
  54. package/dist/types/format/useUnit.d.ts.map +1 -1
  55. package/dist/types/plugins.d.ts.map +1 -1
  56. package/dist/types/renderIntlayerNode.d.ts +8 -0
  57. package/dist/types/renderIntlayerNode.d.ts.map +1 -1
  58. package/package.json +10 -10
  59. 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":";;;;;;;;;qBAca,iBAAA;;;;;;qBAMA,cAAA;;;;qBAKA,qBAAkB,QACrB,eAAa;;;;;;qBAaV,wBAAe;;;;qBAKf,mBAAgB;mBAAhB;sBAAA;;;;;;;;;qBAaA,kBAAe;EAIxB,cAJS;EAKT,kBAAe,QAAA"}
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":";;qBAIa,0CAAU,QAAA,wBAAA,UAAA,KAAA;WAAA"}
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":";;qBAIa,2CAAW,QAAA,wBAAA,UAAA,KAAA;WAAA"}
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":";;;;;qBAOa,uCAAO,QAAA,wBAAA,MAAA,8CAAA,kBAAA,KAAA;WAAA"}
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":";;qBAIa,uCAAO,QAAA,6BAAA,8CAAA;WAAP"}
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":";;;;;qBAOa,yCAAS,QAAA,wBAAA,SAAA,KAAA;WAAA"}
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":";;qBAIa,6CAAa,QAAA,wBAAA,SAAA,KAAA;WAAA"}
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":";;qBAIa,+CAAe,QAAA,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA;WAAA"}
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":";;qBAIa,uCAAO,QAAA,wBAAA,UAAA,KAAA;WAAA"}
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;;;;YAwCtB,mBAAmB,KAAK,mBAChC;EAAuB,UAAU;;;qBAIxB,sBAAsB;YAkGvB,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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AyB,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":";;YAEY,aAAa,YAAY,wBAAwB,eAC3D;EAGA,OAAO;IACL,kBACF;KAEG,wBAAwB;EAC3B,OAAO;EACP;EACA;KAAqB;;;qBAGV,qBACX,KAAC,UAAA,OAAA,mBAKA,wBAAwB,OAAK,aAAa"}
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.9-canary.0",
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.8",
124
- "@intlayer/core": "9.5.8",
125
- "@intlayer/dictionaries-entry": "9.5.8",
126
- "@intlayer/editor": "9.5.8",
127
- "@intlayer/engine": "9.5.8",
128
- "@intlayer/types": "9.5.8",
129
- "@intlayer/webpack": "9.5.8",
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.1"
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.8"
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 };