angular-intlayer 9.0.0-canary.0 → 9.0.0-canary.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 (74) hide show
  1. package/dist/cjs/client/index.cjs +3 -1
  2. package/dist/cjs/client/useDictionary.cjs +1 -1
  3. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  4. package/dist/cjs/client/useDictionaryDynamic.cjs +2 -2
  5. package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
  6. package/dist/cjs/client/useIntlayer.cjs +1 -1
  7. package/dist/cjs/client/useIntlayer.cjs.map +1 -1
  8. package/dist/cjs/client/usePathname.cjs +53 -0
  9. package/dist/cjs/client/usePathname.cjs.map +1 -0
  10. package/dist/cjs/editor/useEditor.cjs +1 -1
  11. package/dist/cjs/editor/useEditor.cjs.map +1 -1
  12. package/dist/cjs/getDictionary.cjs +1 -1
  13. package/dist/cjs/getDictionary.cjs.map +1 -1
  14. package/dist/cjs/getIntlayer.cjs +1 -1
  15. package/dist/cjs/getIntlayer.cjs.map +1 -1
  16. package/dist/cjs/index.cjs +3 -1
  17. package/dist/cjs/plugins.cjs +8 -8
  18. package/dist/cjs/plugins.cjs.map +1 -1
  19. package/dist/cjs/webpack/mergeConfig.cjs +5 -3
  20. package/dist/cjs/webpack/mergeConfig.cjs.map +1 -1
  21. package/dist/esm/_virtual/_rolldown/runtime.mjs +8 -0
  22. package/dist/esm/client/index.mjs +2 -1
  23. package/dist/esm/client/useDictionary.mjs +1 -1
  24. package/dist/esm/client/useDictionary.mjs.map +1 -1
  25. package/dist/esm/client/useDictionaryDynamic.mjs +2 -2
  26. package/dist/esm/client/useDictionaryDynamic.mjs.map +1 -1
  27. package/dist/esm/client/useIntlayer.mjs +1 -1
  28. package/dist/esm/client/useIntlayer.mjs.map +1 -1
  29. package/dist/esm/client/usePathname.mjs +51 -0
  30. package/dist/esm/client/usePathname.mjs.map +1 -0
  31. package/dist/esm/editor/useEditor.mjs +1 -1
  32. package/dist/esm/editor/useEditor.mjs.map +1 -1
  33. package/dist/esm/getDictionary.mjs +1 -1
  34. package/dist/esm/getDictionary.mjs.map +1 -1
  35. package/dist/esm/getIntlayer.mjs +1 -1
  36. package/dist/esm/getIntlayer.mjs.map +1 -1
  37. package/dist/esm/index.mjs +2 -1
  38. package/dist/esm/plugins.mjs +8 -8
  39. package/dist/esm/plugins.mjs.map +1 -1
  40. package/dist/esm/webpack/mergeConfig.mjs +6 -3
  41. package/dist/esm/webpack/mergeConfig.mjs.map +1 -1
  42. package/dist/types/client/index.d.ts +2 -1
  43. package/dist/types/client/useDictionaryDynamic.d.ts +1 -1
  44. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  45. package/dist/types/client/useLocaleStorage.d.ts +5 -5
  46. package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
  47. package/dist/types/client/usePathname.d.ts +36 -0
  48. package/dist/types/client/usePathname.d.ts.map +1 -0
  49. package/dist/types/format/useCompact.d.ts +2 -2
  50. package/dist/types/format/useCompact.d.ts.map +1 -1
  51. package/dist/types/format/useCurrency.d.ts +2 -2
  52. package/dist/types/format/useCurrency.d.ts.map +1 -1
  53. package/dist/types/format/useDate.d.ts +2 -2
  54. package/dist/types/format/useDate.d.ts.map +1 -1
  55. package/dist/types/format/useList.d.ts +2 -2
  56. package/dist/types/format/useList.d.ts.map +1 -1
  57. package/dist/types/format/useNumber.d.ts +2 -2
  58. package/dist/types/format/useNumber.d.ts.map +1 -1
  59. package/dist/types/format/usePercentage.d.ts +2 -2
  60. package/dist/types/format/usePercentage.d.ts.map +1 -1
  61. package/dist/types/format/useRelativeTime.d.ts +2 -2
  62. package/dist/types/format/useRelativeTime.d.ts.map +1 -1
  63. package/dist/types/format/useUnit.d.ts +2 -2
  64. package/dist/types/format/useUnit.d.ts.map +1 -1
  65. package/dist/types/getDictionary.d.ts +1 -1
  66. package/dist/types/getDictionary.d.ts.map +1 -1
  67. package/dist/types/getIntlayer.d.ts +1 -1
  68. package/dist/types/getIntlayer.d.ts.map +1 -1
  69. package/dist/types/index.d.ts +2 -1
  70. package/dist/types/index.d.ts.map +1 -1
  71. package/dist/types/webpack/mergeConfig.d.ts +3 -1
  72. package/dist/types/webpack/mergeConfig.d.ts.map +1 -1
  73. package/package.json +14 -11
  74. package/dist/types/intlayer/dist/types/index.d.ts +0 -4
@@ -1,9 +1,9 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  import * as _$_angular_core0 from "@angular/core";
2
+ import * as _$_intlayer_types0 from "@intlayer/types";
3
3
 
4
4
  //#region src/format/usePercentage.d.ts
5
5
  declare const usePercentage: () => _$_angular_core0.Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
6
- locale?: LocalesValues;
6
+ locale?: _$_intlayer_types0.LocalesValues;
7
7
  }) => string>;
8
8
  //#endregion
9
9
  export { usePercentage };
@@ -1 +1 @@
1
- {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;;;cAIa,aAAA,yBAAa,MAAA,EAAA,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;;;cAIa,aAAA,yBAAa,MAAA,EAAA,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,kBAAA,CAAA,aAAA;AAAA"}
@@ -1,9 +1,9 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  import * as _$_angular_core0 from "@angular/core";
2
+ import * as _$_intlayer_types0 from "@intlayer/types";
3
3
 
4
4
  //#region src/format/useRelativeTime.d.ts
5
5
  declare const useRelativeTime: () => _$_angular_core0.Signal<(from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
6
- locale?: LocalesValues;
6
+ locale?: _$_intlayer_types0.LocalesValues;
7
7
  unit?: Intl.RelativeTimeFormatUnit;
8
8
  }) => string>;
9
9
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;;;cAIa,eAAA,yBAAe,MAAA,EAAA,IAAA,oBAAA,IAAA,EAAA,EAAA,qBAAA,IAAA,EAAA,OAAA,GAAA,IAAA,CAAA,yBAAA;WAAA,aAAA"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;;;cAIa,eAAA,yBAAe,MAAA,EAAA,IAAA,oBAAA,IAAA,EAAA,EAAA,qBAAA,IAAA,EAAA,OAAA,GAAA,IAAA,CAAA,yBAAA;WAAA,kBAAA,CAAA,aAAA"}
@@ -1,9 +1,9 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  import * as _$_angular_core0 from "@angular/core";
2
+ import * as _$_intlayer_types0 from "@intlayer/types";
3
3
 
4
4
  //#region src/format/useUnit.d.ts
5
5
  declare const useUnit: () => _$_angular_core0.Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
6
- locale?: LocalesValues;
6
+ locale?: _$_intlayer_types0.LocalesValues;
7
7
  }) => string>;
8
8
  //#endregion
9
9
  export { useUnit };
@@ -1 +1 @@
1
- {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;;;cAIa,OAAA,yBAAO,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;;;cAIa,OAAA,yBAAO,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,kBAAA,CAAA,aAAA;AAAA"}
@@ -6,7 +6,7 @@ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, Resol
6
6
  /**
7
7
  * Transforms a dictionary (or qualified dictionary group) and returns its
8
8
  * content for the given locale or selector (`{ item }`, `{ variant }`,
9
- * `{ id, ...meta }`, optionally combined with `locale`).
9
+ * optionally combined with `locale`).
10
10
  */
11
11
  declare const getDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>;
12
12
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;AAoBA;;;cAAa,aAAA,mBACK,UAAA,GAAa,wBAAA,kBAEzB,aAAA,GACA,0BAAA,CAA2B,CAAA,IAAK,eAAA,EAEpC,UAAA,EAAY,CAAA,EACZ,gBAAA,GAAmB,CAAA,KAClB,oBAAA,CACD,iCAAA,CAAkC,CAAA,EAAG,CAAA,GACrC,qBAAA,CAAsB,CAAA"}
1
+ {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;AAmBA;;;cAAa,aAAA,mBACK,UAAA,GAAa,wBAAA,kBAEzB,aAAA,GACA,0BAAA,CAA2B,CAAA,IAAK,eAAA,EAEpC,UAAA,EAAY,CAAA,EACZ,gBAAA,GAAmB,CAAA,KAClB,oBAAA,CACD,iCAAA,CAAkC,CAAA,EAAG,CAAA,GACrC,qBAAA,CAAsB,CAAA"}
@@ -4,7 +4,7 @@ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySe
4
4
  //#region src/getIntlayer.d.ts
5
5
  /**
6
6
  * Picks one dictionary by its key and returns its content for the given
7
- * locale or selector (`{ item }`, `{ variant }`, `{ id, ...meta }`,
7
+ * locale or selector (`{ item }`, `{ variant }`,
8
8
  * optionally combined with `locale`).
9
9
  */
10
10
  declare const getIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>;
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"mappings":";;;;;;AAiBA;;;cAAa,WAAA,mBACK,cAAA,kBACA,aAAA,GAAgB,wBAAA,CAAyB,CAAA,IAAK,eAAA,EAE9D,GAAA,EAAK,CAAA,EACL,gBAAA,GAAmB,CAAA,KAClB,oBAAA,CACD,wBAAA,CAAyB,CAAA,EAAG,CAAA,GAC5B,qBAAA,CAAsB,CAAA"}
1
+ {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"mappings":";;;;;;AAgBA;;;cAAa,WAAA,mBACK,cAAA,kBACA,aAAA,GAAgB,wBAAA,CAAyB,CAAA,IAAK,eAAA,EAE9D,GAAA,EAAK,CAAA,EACL,gBAAA,GAAmB,CAAA,KAClB,oBAAA,CACD,wBAAA,CAAyB,CAAA,EAAG,CAAA,GAC5B,qBAAA,CAAsB,CAAA"}
@@ -8,6 +8,7 @@ import { useDictionaryDynamic } from "./client/useDictionaryDynamic.js";
8
8
  import { isUpdatableNode, useIntlayer } from "./client/useIntlayer.js";
9
9
  import { useLoadDynamic } from "./client/useLoadDynamic.js";
10
10
  import { UseLocaleProps, UseLocaleResult, useLocale } from "./client/useLocale.js";
11
+ import { usePathname } from "./client/usePathname.js";
11
12
  import { getDictionary } from "./getDictionary.js";
12
13
  import { getIntlayer } from "./getIntlayer.js";
13
14
  import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -17,5 +18,5 @@ declare module '@intlayer/core/interpreter' {
17
18
  interface IInterpreterPlugin<T, S, L extends LocalesValues> extends IInterpreterPluginAngular<T, S, L> {}
18
19
  }
19
20
  //#endregion
20
- export { DeepTransformContent, HTMLPluginCond, IInterpreterPluginAngular, IInterpreterPluginState, INTLAYER_TOKEN, InsertionPluginCond, IntlayerNode, IntlayerNodeComponent, IntlayerNodeCond, IntlayerProvider, MarkdownCond, MarkdownStringCond, UseLocaleProps, UseLocaleResult, createIntlayerClient, getDictionary, getIntlayer, getPlugins, htmlPlugin, insertionPlugin, installIntlayer, intlayerNodePlugins, isUpdatableNode, markdownPlugin, markdownStringPlugin, provideIntlayer, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntlayer, useLoadDynamic, useLocale };
21
+ export { DeepTransformContent, HTMLPluginCond, IInterpreterPluginAngular, IInterpreterPluginState, INTLAYER_TOKEN, InsertionPluginCond, IntlayerNode, IntlayerNodeComponent, IntlayerNodeCond, IntlayerProvider, MarkdownCond, MarkdownStringCond, UseLocaleProps, UseLocaleResult, createIntlayerClient, getDictionary, getIntlayer, getPlugins, htmlPlugin, insertionPlugin, installIntlayer, intlayerNodePlugins, isUpdatableNode, markdownPlugin, markdownStringPlugin, provideIntlayer, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntlayer, useLoadDynamic, useLocale, usePathname };
21
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;YAIY,kBAAA,iBAAmC,aAAA,UACnC,yBAAA,CAA0B,CAAA,EAAG,CAAA,EAAG,CAAA;AAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;YAIY,kBAAA,iBAAmC,aAAA,UACnC,yBAAA,CAA0B,CAAA,EAAG,CAAA,EAAG,CAAA;AAAA"}
@@ -1,5 +1,7 @@
1
+ import * as _$webpack from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@types+webpack@5.28.5+9e3c06e9a1a2edab/node_modules/@types/webpack/index.js";
2
+
1
3
  //#region src/webpack/mergeConfig.d.ts
2
- declare const mergeConfig: (baseConfig: undefined) => undefined;
4
+ declare const mergeConfig: (baseConfig: _$webpack.Configuration) => _$webpack.Configuration;
3
5
  //#endregion
4
6
  export { mergeConfig };
5
7
  //# sourceMappingURL=mergeConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mergeConfig.d.ts","names":[],"sources":["../../../src/webpack/mergeConfig.ts"],"mappings":";cAMa,WAAA,GACX,UAAA,EAkDD,SAAA,KAlD4C,SAAA"}
1
+ {"version":3,"file":"mergeConfig.d.ts","names":[],"sources":["../../../src/webpack/mergeConfig.ts"],"mappings":";;;cASa,WAAA,GACX,UAAA,EAuDD,SAAA,CAvD+B,aAAA,KAAa,SAAA,CACxB,aAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-intlayer",
3
- "version": "9.0.0-canary.0",
3
+ "version": "9.0.0-canary.10",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -116,29 +116,32 @@
116
116
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
117
117
  },
118
118
  "dependencies": {
119
+ "@babel/core": "^7.26.9",
119
120
  "@babel/plugin-syntax-import-attributes": "7.28.6",
120
121
  "@babel/preset-env": "7.29.2",
121
- "@intlayer/chokidar": "9.0.0-canary.0",
122
- "@intlayer/config": "9.0.0-canary.0",
123
- "@intlayer/core": "9.0.0-canary.0",
124
- "@intlayer/dictionaries-entry": "9.0.0-canary.0",
125
- "@intlayer/editor": "9.0.0-canary.0",
126
- "@intlayer/types": "9.0.0-canary.0",
127
- "@intlayer/webpack": "9.0.0-canary.0",
122
+ "@intlayer/chokidar": "9.0.0-canary.10",
123
+ "@intlayer/config": "9.0.0-canary.10",
124
+ "@intlayer/core": "9.0.0-canary.10",
125
+ "@intlayer/dictionaries-entry": "9.0.0-canary.10",
126
+ "@intlayer/editor": "9.0.0-canary.10",
127
+ "@intlayer/types": "9.0.0-canary.10",
128
+ "@intlayer/webpack": "9.0.0-canary.10",
128
129
  "babel-loader": "10.1.1",
129
130
  "defu": "6.1.7"
130
131
  },
131
132
  "devDependencies": {
132
- "@types/node": "25.9.3",
133
+ "@angular/common": "19.2.25",
134
+ "@angular/core": "19.2.25",
135
+ "@types/node": "25.9.4",
133
136
  "@types/webpack": "5.28.5",
134
137
  "@utils/ts-config": "1.0.4",
135
138
  "@utils/ts-config-types": "1.0.4",
136
139
  "@utils/tsdown-config": "1.0.4",
137
- "esbuild": "0.28.0",
140
+ "esbuild": "0.28.1",
138
141
  "rimraf": "6.1.3",
139
142
  "tsdown": "0.21.10",
140
143
  "typescript": "6.0.3",
141
- "vitest": "4.1.8"
144
+ "vitest": "4.1.9"
142
145
  },
143
146
  "peerDependencies": {
144
147
  "@angular/common": ">=15",
@@ -1,4 +0,0 @@
1
- import { LocalesValues as LocalesValues$1 } from "@intlayer/types/module_augmentation";
2
- import { Dictionary } from "@intlayer/types/dictionary";
3
- import { Locale } from "@intlayer/types/allLocales";
4
- export { type Locale, type LocalesValues$1 as LocalesValues };