astro-intlayer 9.6.0 → 9.7.1

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 (101) hide show
  1. package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
  2. package/dist/cjs/client/format/index.cjs +9 -9
  3. package/dist/cjs/client/index.cjs +13 -13
  4. package/dist/cjs/client/localeRedirect.cjs +1 -2
  5. package/dist/cjs/emitRewrittenPages.cjs +1 -2
  6. package/dist/cjs/format/index.cjs +9 -9
  7. package/dist/cjs/format/useCompact.cjs +3 -6
  8. package/dist/cjs/format/useCompact.cjs.map +1 -1
  9. package/dist/cjs/format/useCurrency.cjs +3 -6
  10. package/dist/cjs/format/useCurrency.cjs.map +1 -1
  11. package/dist/cjs/format/useDate.cjs +3 -6
  12. package/dist/cjs/format/useDate.cjs.map +1 -1
  13. package/dist/cjs/format/useIntl.cjs +5 -8
  14. package/dist/cjs/format/useIntl.cjs.map +1 -1
  15. package/dist/cjs/format/useList.cjs +3 -6
  16. package/dist/cjs/format/useList.cjs.map +1 -1
  17. package/dist/cjs/format/useNumber.cjs +3 -6
  18. package/dist/cjs/format/useNumber.cjs.map +1 -1
  19. package/dist/cjs/format/usePercentage.cjs +3 -6
  20. package/dist/cjs/format/usePercentage.cjs.map +1 -1
  21. package/dist/cjs/format/useRelativeTime.cjs +3 -6
  22. package/dist/cjs/format/useRelativeTime.cjs.map +1 -1
  23. package/dist/cjs/format/useUnit.cjs +3 -6
  24. package/dist/cjs/format/useUnit.cjs.map +1 -1
  25. package/dist/cjs/html/index.cjs +5 -5
  26. package/dist/cjs/index.cjs +5 -6
  27. package/dist/cjs/integration.cjs +2 -3
  28. package/dist/cjs/markdown/index.cjs +7 -7
  29. package/dist/cjs/middleware.cjs +3 -4
  30. package/dist/cjs/requestStorage.cjs +1 -2
  31. package/dist/cjs/useDictionary.cjs +3 -4
  32. package/dist/cjs/useIntlayer.cjs +3 -4
  33. package/dist/cjs/useLocale.cjs +2 -3
  34. package/dist/cjs/withInertOnChange.cjs +1 -2
  35. package/dist/esm/client/localeRedirect.mjs +1 -2
  36. package/dist/esm/emitRewrittenPages.mjs +1 -2
  37. package/dist/esm/format/useCompact.mjs +2 -5
  38. package/dist/esm/format/useCompact.mjs.map +1 -1
  39. package/dist/esm/format/useCurrency.mjs +2 -5
  40. package/dist/esm/format/useCurrency.mjs.map +1 -1
  41. package/dist/esm/format/useDate.mjs +2 -5
  42. package/dist/esm/format/useDate.mjs.map +1 -1
  43. package/dist/esm/format/useIntl.mjs +4 -7
  44. package/dist/esm/format/useIntl.mjs.map +1 -1
  45. package/dist/esm/format/useList.mjs +2 -5
  46. package/dist/esm/format/useList.mjs.map +1 -1
  47. package/dist/esm/format/useNumber.mjs +2 -5
  48. package/dist/esm/format/useNumber.mjs.map +1 -1
  49. package/dist/esm/format/usePercentage.mjs +2 -5
  50. package/dist/esm/format/usePercentage.mjs.map +1 -1
  51. package/dist/esm/format/useRelativeTime.mjs +2 -5
  52. package/dist/esm/format/useRelativeTime.mjs.map +1 -1
  53. package/dist/esm/format/useUnit.mjs +2 -5
  54. package/dist/esm/format/useUnit.mjs.map +1 -1
  55. package/dist/esm/index.mjs +1 -2
  56. package/dist/esm/integration.mjs +1 -2
  57. package/dist/esm/middleware.mjs +1 -2
  58. package/dist/esm/requestStorage.mjs +1 -2
  59. package/dist/esm/useDictionary.mjs +1 -2
  60. package/dist/esm/useIntlayer.mjs +1 -2
  61. package/dist/esm/useLocale.mjs +1 -2
  62. package/dist/esm/withInertOnChange.mjs +1 -2
  63. package/dist/types/client/localeRedirect.d.ts +0 -2
  64. package/dist/types/client/localeRedirect.d.ts.map +1 -1
  65. package/dist/types/emitRewrittenPages.d.ts +0 -2
  66. package/dist/types/emitRewrittenPages.d.ts.map +1 -1
  67. package/dist/types/format/useCompact.d.ts +0 -2
  68. package/dist/types/format/useCompact.d.ts.map +1 -1
  69. package/dist/types/format/useCurrency.d.ts +0 -2
  70. package/dist/types/format/useCurrency.d.ts.map +1 -1
  71. package/dist/types/format/useDate.d.ts +0 -2
  72. package/dist/types/format/useDate.d.ts.map +1 -1
  73. package/dist/types/format/useIntl.d.ts +2 -4
  74. package/dist/types/format/useIntl.d.ts.map +1 -1
  75. package/dist/types/format/useList.d.ts +0 -2
  76. package/dist/types/format/useList.d.ts.map +1 -1
  77. package/dist/types/format/useNumber.d.ts +0 -2
  78. package/dist/types/format/useNumber.d.ts.map +1 -1
  79. package/dist/types/format/usePercentage.d.ts +0 -2
  80. package/dist/types/format/usePercentage.d.ts.map +1 -1
  81. package/dist/types/format/useRelativeTime.d.ts +0 -2
  82. package/dist/types/format/useRelativeTime.d.ts.map +1 -1
  83. package/dist/types/format/useUnit.d.ts +0 -2
  84. package/dist/types/format/useUnit.d.ts.map +1 -1
  85. package/dist/types/index.d.ts +0 -2
  86. package/dist/types/index.d.ts.map +1 -1
  87. package/dist/types/integration.d.ts +1 -2
  88. package/dist/types/integration.d.ts.map +1 -1
  89. package/dist/types/middleware.d.ts +0 -2
  90. package/dist/types/middleware.d.ts.map +1 -1
  91. package/dist/types/requestStorage.d.ts +0 -2
  92. package/dist/types/requestStorage.d.ts.map +1 -1
  93. package/dist/types/useDictionary.d.ts +0 -2
  94. package/dist/types/useDictionary.d.ts.map +1 -1
  95. package/dist/types/useIntlayer.d.ts +0 -2
  96. package/dist/types/useIntlayer.d.ts.map +1 -1
  97. package/dist/types/useLocale.d.ts +0 -2
  98. package/dist/types/useLocale.d.ts.map +1 -1
  99. package/dist/types/withInertOnChange.d.ts +0 -2
  100. package/dist/types/withInertOnChange.d.ts.map +1 -1
  101. package/package.json +11 -11
@@ -1,5 +1,4 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
- //#region src/emitRewrittenPages.d.ts
3
2
  /**
4
3
  * Emits a copy of every prerendered page at its rewritten ("pretty") URL.
5
4
  *
@@ -18,5 +17,4 @@ import { IntlayerConfig } from "@intlayer/types/config";
18
17
  * @returns The list of `[from, to]` URL paths that were emitted.
19
18
  */
20
19
  export declare const emitRewrittenPages: (configuration: IntlayerConfig, outputDirectoryUrl: URL) => Promise<[from: string, to: string][]>;
21
- //#endregion
22
20
  //# sourceMappingURL=emitRewrittenPages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emitRewrittenPages.d.ts","names":[],"sources":["../../src/emitRewrittenPages.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAuHa,qBAAkB,eACd,gBAAc,oBACT,QACnB,SAAS,cAAc"}
1
+ {"version":3,"file":"emitRewrittenPages.d.ts","names":[],"sources":["../../src/emitRewrittenPages.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAuHa,qBAAkB,eACd,gBAAc,oBACT,QACnB,SAAS,cAAc"}
@@ -1,5 +1,3 @@
1
1
  import { compact } from "@intlayer/core/formatters";
2
- //#region src/format/useCompact.d.ts
3
2
  export declare const useCompact: () => (...args: Parameters<typeof compact>) => string;
4
- //#endregion
5
3
  //# sourceMappingURL=useCompact.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";;qBAOa,sBAAU,MAGJ,kBAAkB"}
1
+ {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";qBAGa,sBAAU,MAGJ,kBAAkB"}
@@ -1,5 +1,3 @@
1
1
  import { currency } from "@intlayer/core/formatters";
2
- //#region src/format/useCurrency.d.ts
3
2
  export declare const useCurrency: () => (...args: Parameters<typeof currency>) => string;
4
- //#endregion
5
3
  //# sourceMappingURL=useCurrency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";;qBAOa,uBAAW,MAGL,kBAAkB"}
1
+ {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";qBAGa,uBAAW,MAGL,kBAAkB"}
@@ -1,8 +1,6 @@
1
1
  import { date } from "@intlayer/core/formatters";
2
- //#region src/format/useDate.d.ts
3
2
  /**
4
3
  * Astro hook that provides a localized date/time formatter bound to the request locale.
5
4
  */
6
5
  export declare const useDate: () => (...args: Parameters<typeof date>) => string;
7
- //#endregion
8
6
  //# sourceMappingURL=useDate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;;qBAUa,mBAAO,MAGD,kBAAkB"}
1
+ {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;qBAMa,mBAAO,MAGD,kBAAkB"}
@@ -1,15 +1,13 @@
1
1
  import { WrappedIntl } from "@intlayer/core/utils";
2
2
  import { LocalesValues } from "@intlayer/types/module_augmentation";
3
- //#region src/format/useIntl.d.ts
4
3
  /**
5
4
  * Astro hook that provides a locale-bound `Intl` object.
6
5
  *
7
- * It uses the request locale on the server, falling back to the configured
8
- * default locale.
6
+ * It uses the request locale on the server, falling back to the stored
7
+ * locale in the browser, then to the default locale.
9
8
  */
10
9
  export declare const useIntl: (locale?: LocalesValues) => {
11
10
  intl: WrappedIntl;
12
11
  subscribe: (callback: (intl: WrappedIntl) => void) => () => void;
13
12
  };
14
- //#endregion
15
13
  //# sourceMappingURL=useIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/format/useIntl.ts"],"mappings":";;;;;;;;;qBAgBa,UAAO,SACT;EAET,MAAM;EACN,YAAY,WAAW,MAAM"}
1
+ {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../src/format/useIntl.ts"],"mappings":";;;;;;;;qBAUa,UAAO,SACT;EAET,MAAM;EACN,YAAY,WAAW,MAAM"}
@@ -1,5 +1,3 @@
1
1
  import { list } from "@intlayer/core/formatters";
2
- //#region src/format/useList.d.ts
3
2
  export declare const useList: () => (...args: Parameters<typeof list>) => string;
4
- //#endregion
5
3
  //# sourceMappingURL=useList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";;qBAOa,mBAAO,MAGD,kBAAkB"}
1
+ {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";qBAGa,mBAAO,MAGD,kBAAkB"}
@@ -1,8 +1,6 @@
1
1
  import { number } from "@intlayer/core/formatters";
2
- //#region src/format/useNumber.d.ts
3
2
  /**
4
3
  * Astro hook that provides a localized number formatter bound to the request locale.
5
4
  */
6
5
  export declare const useNumber: () => (...args: Parameters<typeof number>) => string;
7
- //#endregion
8
6
  //# sourceMappingURL=useNumber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;;qBAUa,qBAAS,MAGH,kBAAkB"}
1
+ {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;qBAMa,qBAAS,MAGH,kBAAkB"}
@@ -1,5 +1,3 @@
1
1
  import { percentage } from "@intlayer/core/formatters";
2
- //#region src/format/usePercentage.d.ts
3
2
  export declare const usePercentage: () => (...args: Parameters<typeof percentage>) => string;
4
- //#endregion
5
3
  //# sourceMappingURL=usePercentage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;qBAOa,yBAAa,MAGP,kBAAkB"}
1
+ {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";qBAGa,yBAAa,MAGP,kBAAkB"}
@@ -1,5 +1,3 @@
1
1
  import { relativeTime } from "@intlayer/core/formatters";
2
- //#region src/format/useRelativeTime.d.ts
3
2
  export declare const useRelativeTime: () => (...args: Parameters<typeof relativeTime>) => string;
4
- //#endregion
5
3
  //# sourceMappingURL=useRelativeTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;qBAOa,2BAAe,MAGT,kBAAkB"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";qBAGa,2BAAe,MAGT,kBAAkB"}
@@ -1,5 +1,3 @@
1
1
  import { units } from "@intlayer/core/formatters";
2
- //#region src/format/useUnit.d.ts
3
2
  export declare const useUnit: () => (...args: Parameters<typeof units>) => string;
4
- //#endregion
5
3
  //# sourceMappingURL=useUnit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;qBAOa,mBAAO,MAGD,kBAAkB"}
1
+ {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";qBAGa,mBAAO,MAGD,kBAAkB"}
@@ -4,7 +4,6 @@ import { useDictionary } from "./useDictionary.js";
4
4
  import { useIntlayer } from "./useIntlayer.js";
5
5
  import { UseLocaleProps, UseLocaleResult, useLocale } from "./useLocale.js";
6
6
  import { AstroIntegration } from "astro";
7
- //#region src/index.d.ts
8
7
  /**
9
8
  * Astro integration for Intlayer.
10
9
  *
@@ -35,6 +34,5 @@ import { AstroIntegration } from "astro";
35
34
  * ```
36
35
  */
37
36
  export declare const intlayer: () => AstroIntegration;
38
- //#endregion
39
37
  export { type IntlayerLocals, type UseLocaleProps, type UseLocaleResult, intlayer as default, getIntlayerLocals, useDictionary, useIntlayer, useLocale };
40
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqDa,gBAAe"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqDa,gBAAe"}
@@ -1,5 +1,4 @@
1
1
  import { AstroIntegration } from "astro";
2
- //#region src/integration.d.ts
3
2
  /**
4
3
  * Node-only half of the integration, loaded lazily by the `astro-intlayer`
5
4
  * entry when a hook runs.
@@ -37,5 +36,5 @@ export declare const configSetup: ({ command, updateConfig, addMiddleware, injec
37
36
  * `getLocalizedUrl` (links, hreflang, sitemap) 404 once deployed.
38
37
  */
39
38
  export declare const buildDone: ({ dir, logger }: BuildDoneOptions) => Promise<void>;
40
- //#endregion
39
+ export {};
41
40
  //# sourceMappingURL=integration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"integration.d.ts","names":[],"sources":["../../src/integration.ts"],"mappings":";;;;;;;;;;;KA0CK,qBAAqB,WACxB,YAAY;KAGT,mBAAmB,WACtB,YAAY;;;;;;;;;;;;;;;;;;;qBAqBD,gBAAW,SAAA,cAAA,eAAA,gBAKrB,uBAAqB;;;;;;;qBAsEX,cAAS,KAAA,UAGnB,qBAAmB"}
1
+ {"version":3,"file":"integration.d.ts","names":[],"sources":["../../src/integration.ts"],"mappings":";;;;;;;;;;KA0CK,qBAAqB,WACxB,YAAY;KAGT,mBAAmB,WACtB,YAAY;;;;;;;;;;;;;;;;;;;qBAqBD,gBAAW,SAAA,cAAA,eAAA,gBAKrB,uBAAqB;;;;;;;qBAsEX,cAAS,KAAA,UAGnB,qBAAmB"}
@@ -1,6 +1,5 @@
1
1
  import { DeclaredLocales } from "@intlayer/types/module_augmentation";
2
2
  import { MiddlewareHandler } from "astro";
3
- //#region src/middleware.d.ts
4
3
  /**
5
4
  * Intlayer state stored in `Astro.locals.intlayer` by the {@link onRequest} middleware.
6
5
  */
@@ -50,5 +49,4 @@ declare global {
50
49
  * ```
51
50
  */
52
51
  export declare const onRequest: MiddlewareHandler;
53
- //#endregion
54
52
  //# sourceMappingURL=middleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","names":[],"sources":["../../src/middleware.ts"],"mappings":";;;;;;YAuEY;;EAEV,QAAQ;;EAER,eAAe;;EAEf,kBAAkB;;QAGZ;YACI;cACE;MACR,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmCH,WAAW"}
1
+ {"version":3,"file":"middleware.d.ts","names":[],"sources":["../../src/middleware.ts"],"mappings":";;;;;YAuEY;;EAEV,QAAQ;;EAER,eAAe;;EAEf,kBAAkB;;QAGZ;YACI;cACE;MACR,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmCH,WAAW"}
@@ -1,7 +1,6 @@
1
1
  import { IntlayerLocals } from "./middleware.js";
2
2
  import { DeclaredLocales } from "@intlayer/types/module_augmentation";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
- //#region src/requestStorage.d.ts
5
4
  /**
6
5
  * `Astro.locals` of the request being rendered, made available to every
7
6
  * function running inside the middleware scope — page and component
@@ -18,5 +17,4 @@ export declare const getIntlayerLocals: () => IntlayerLocals | undefined;
18
17
  * Returns the locale of the request being rendered, if any.
19
18
  */
20
19
  export declare const getRequestLocale: () => DeclaredLocales | undefined;
21
- //#endregion
22
20
  //# sourceMappingURL=requestStorage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestStorage.d.ts","names":[],"sources":["../../src/requestStorage.ts"],"mappings":";;;;;;;;;qBAUa,gBAAc;EACd,WAAA;;;;;qBAMA,yBAAwB;;;;qBAMxB,wBAAuB"}
1
+ {"version":3,"file":"requestStorage.d.ts","names":[],"sources":["../../src/requestStorage.ts"],"mappings":";;;;;;;;qBAUa,gBAAc;EACd,WAAA;;;;;qBAMA,yBAAwB;;;;qBAMxB,wBAAuB"}
@@ -1,7 +1,6 @@
1
1
  import { DeepTransformContent, WithOnChange } from "vanilla-intlayer";
2
2
  import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
3
3
  import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from "@intlayer/types/dictionary";
4
- //#region src/useDictionary.d.ts
5
4
  /**
6
5
  * Transforms an imported dictionary (or qualified dictionary group) and returns
7
6
  * its content for the locale of the request being rendered, read from
@@ -25,5 +24,4 @@ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, Resol
25
24
  * ```
26
25
  */
27
26
  export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => WithOnChange<DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>>;
28
- //#endregion
29
27
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;qBA0Ca,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,MAClB,aACD,qBACE,kCAAkC,GAAG,IACrC,sBAAsB"}
1
+ {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;qBA0Ca,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,MAClB,aACD,qBACE,kCAAkC,GAAG,IACrC,sBAAsB"}
@@ -1,6 +1,5 @@
1
1
  import { DeepTransformContent, WithOnChange } from "vanilla-intlayer";
2
2
  import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
3
- //#region src/useIntlayer.d.ts
4
3
  /**
5
4
  * Picks one dictionary by its key and returns its content for the locale of
6
5
  * the request being rendered, read from `Astro.locals.intlayer`.
@@ -24,5 +23,4 @@ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySe
24
23
  * ```
25
24
  */
26
25
  export declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => WithOnChange<DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>>;
27
- //#endregion
28
26
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../src/useIntlayer.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;qBAuCa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,MAClB,aACD,qBAAqB,yBAAyB,GAAG,IAAI,sBAAsB"}
1
+ {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../src/useIntlayer.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;qBAuCa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,MAClB,aACD,qBAAqB,yBAAyB,GAAG,IAAI,sBAAsB"}
@@ -1,5 +1,4 @@
1
1
  import { UseLocaleProps, UseLocaleProps as UseLocaleProps$1, UseLocaleResult as UseLocaleResult$1 } from "vanilla-intlayer";
2
- //#region src/useLocale.d.ts
3
2
  export type UseLocaleResult = UseLocaleResult$1;
4
3
  /**
5
4
  * Returns the locale of the request being rendered, read from
@@ -24,6 +23,5 @@ export type UseLocaleResult = UseLocaleResult$1;
24
23
  * ```
25
24
  */
26
25
  export declare const useLocale: (_props?: UseLocaleProps$1) => UseLocaleResult;
27
- //#endregion
28
26
  export type { UseLocaleProps };
29
27
  //# sourceMappingURL=useLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../src/useLocale.ts"],"mappings":";;YAUY,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;qBA0BjB,YAAS,SAAY,qBAAsB"}
1
+ {"version":3,"file":"useLocale.d.ts","names":["VanillaUseLocaleResult","UseLocaleProps"],"sources":["../../src/useLocale.ts"],"mappings":";YAUY,kBAAkBA;;;;;;;;;;;;;;;;;;;;;;;qBA0BjB,YAAS,SAAYC,qBAAsB"}
@@ -1,5 +1,4 @@
1
1
  import { WithOnChange } from "vanilla-intlayer";
2
- //#region src/withInertOnChange.d.ts
3
2
  /**
4
3
  * Gives server-rendered content the `.onChange()` of its client counterpart.
5
4
  *
@@ -8,5 +7,4 @@ import { WithOnChange } from "vanilla-intlayer";
8
7
  * `astro-intlayer` entry.
9
8
  */
10
9
  export declare const withInertOnChange: <T>(content: T) => WithOnChange<T>;
11
- //#endregion
12
10
  //# sourceMappingURL=withInertOnChange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withInertOnChange.d.ts","names":[],"sources":["../../src/withInertOnChange.ts"],"mappings":";;;;;;;;;qBASa,oBAAqB,GAAC,SAAW,MAAI,aAAa"}
1
+ {"version":3,"file":"withInertOnChange.d.ts","names":[],"sources":["../../src/withInertOnChange.ts"],"mappings":";;;;;;;;qBASa,oBAAqB,GAAC,SAAW,MAAI,aAAa"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-intlayer",
3
- "version": "9.6.0",
3
+ "version": "9.7.1",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Astro applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -167,24 +167,24 @@
167
167
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
168
168
  },
169
169
  "dependencies": {
170
- "@intlayer/config": "9.6.0",
171
- "@intlayer/core": "9.6.0",
172
- "@intlayer/engine": "9.6.0",
173
- "@intlayer/types": "9.6.0",
174
- "vanilla-intlayer": "9.6.0",
175
- "vite-intlayer": "9.6.0"
170
+ "@intlayer/config": "9.7.1",
171
+ "@intlayer/core": "9.7.1",
172
+ "@intlayer/engine": "9.7.1",
173
+ "@intlayer/types": "9.7.1",
174
+ "vanilla-intlayer": "9.7.1",
175
+ "vite-intlayer": "9.7.1"
176
176
  },
177
177
  "devDependencies": {
178
- "@intlayer/dictionaries-entry": "9.6.0",
179
- "@types/node": "^22",
178
+ "@intlayer/dictionaries-entry": "9.7.1",
179
+ "@types/node": "^26",
180
180
  "@utils/ts-config": "1.0.4",
181
181
  "@utils/ts-config-types": "1.0.4",
182
182
  "@utils/tsdown-config": "1.0.4",
183
183
  "fast-glob": "3.3.3",
184
184
  "rimraf": "6.1.3",
185
- "tsdown": "0.23.0",
185
+ "tsdown": "0.23.4",
186
186
  "typescript": "7.0.2",
187
- "vitest": "5.0.3"
187
+ "vitest": "5.1.0"
188
188
  },
189
189
  "peerDependencies": {
190
190
  "astro": ">=4.0.0",