@intlayer/react-intl 9.4.3 → 9.4.4

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.
@@ -4,63 +4,62 @@ import { FormattedDate as FormattedDate$1, FormattedDateParts as FormattedDatePa
4
4
  * Drop-in for react-intl's `<FormattedDate>`.
5
5
  * Renders a locale-aware date string using `Intl.DateTimeFormat`.
6
6
  */
7
- declare const FormattedDate: typeof FormattedDate$1;
7
+ export declare const FormattedDate: typeof FormattedDate$1;
8
8
  /**
9
9
  * Drop-in for react-intl's `<FormattedTime>`.
10
10
  * Renders a locale-aware time string using `Intl.DateTimeFormat`.
11
11
  */
12
- declare const FormattedTime: typeof FormattedTime$1;
12
+ export declare const FormattedTime: typeof FormattedTime$1;
13
13
  /**
14
14
  * Drop-in for react-intl's `<FormattedNumber>`.
15
15
  * Renders a locale-aware number string using `Intl.NumberFormat`.
16
16
  */
17
- declare const FormattedNumber: typeof FormattedNumber$1;
17
+ export declare const FormattedNumber: typeof FormattedNumber$1;
18
18
  /**
19
19
  * Drop-in for react-intl's `<FormattedList>`.
20
20
  * Renders a locale-aware list string using `Intl.ListFormat`.
21
21
  */
22
- declare const FormattedList: typeof FormattedList$1;
22
+ export declare const FormattedList: typeof FormattedList$1;
23
23
  /**
24
24
  * Drop-in for react-intl's `<FormattedDisplayName>`.
25
25
  * Renders a locale-aware display name using `Intl.DisplayNames`.
26
26
  */
27
- declare const FormattedDisplayName: typeof FormattedDisplayName$1;
27
+ export declare const FormattedDisplayName: typeof FormattedDisplayName$1;
28
28
  /**
29
29
  * Drop-in for react-intl's `<FormattedRelativeTime>`.
30
30
  * Renders a locale-aware relative time string using `Intl.RelativeTimeFormat`.
31
31
  * Auto-update (`updateIntervalInSeconds`) is not implemented.
32
32
  */
33
- declare const FormattedRelativeTime: typeof FormattedRelativeTime$1;
33
+ export declare const FormattedRelativeTime: typeof FormattedRelativeTime$1;
34
34
  /**
35
35
  * Drop-in for react-intl's `<FormattedPlural>`.
36
36
  * Selects the matching plural slot using `Intl.PluralRules`.
37
37
  */
38
- declare const FormattedPlural: typeof FormattedPlural$1;
38
+ export declare const FormattedPlural: typeof FormattedPlural$1;
39
39
  /**
40
40
  * Drop-in for react-intl's `<FormattedDateTimeRange>`.
41
41
  * Renders a locale-aware date range string using `Intl.DateTimeFormat#formatRange`.
42
42
  */
43
- declare const FormattedDateTimeRange: typeof FormattedDateTimeRange$1;
43
+ export declare const FormattedDateTimeRange: typeof FormattedDateTimeRange$1;
44
44
  /**
45
45
  * Drop-in for react-intl's `<FormattedDateParts>`.
46
46
  * Renders format parts via a `children` render-prop.
47
47
  */
48
- declare const FormattedDateParts: typeof FormattedDateParts$1;
48
+ export declare const FormattedDateParts: typeof FormattedDateParts$1;
49
49
  /**
50
50
  * Drop-in for react-intl's `<FormattedTimeParts>`.
51
51
  * Renders format parts via a `children` render-prop.
52
52
  */
53
- declare const FormattedTimeParts: typeof FormattedTimeParts$1;
53
+ export declare const FormattedTimeParts: typeof FormattedTimeParts$1;
54
54
  /**
55
55
  * Drop-in for react-intl's `<FormattedNumberParts>`.
56
56
  * Renders format parts via a `children` render-prop.
57
57
  */
58
- declare const FormattedNumberParts: typeof FormattedNumberParts$1;
58
+ export declare const FormattedNumberParts: typeof FormattedNumberParts$1;
59
59
  /**
60
60
  * Drop-in for react-intl's `<FormattedListParts>`.
61
61
  * Renders list format parts via a `children` render-prop.
62
62
  */
63
- declare const FormattedListParts: typeof FormattedListParts$1;
63
+ export declare const FormattedListParts: typeof FormattedListParts$1;
64
64
  //#endregion
65
- export { FormattedDate, FormattedDateParts, FormattedDateTimeRange, FormattedDisplayName, FormattedList, FormattedListParts, FormattedNumber, FormattedNumberParts, FormattedPlural, FormattedRelativeTime, FormattedTime, FormattedTimeParts };
66
65
  //# sourceMappingURL=FormattedComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormattedComponents.d.ts","names":[],"sources":["../../src/FormattedComponents.tsx"],"mappings":";;;;;;cA8Ba,sBAAsB;;;;;cAkBtB,sBAAsB;;;;;cAkBtB,wBAAwB;;;;;cAkBxB,sBAAsB;;;;;cAatB,6BAA6B;;;;;;cAiB7B,8BAA8B;;;;;cAmB9B,wBAAwB;;;;;cAmCxB,+BAA+B;;;;;cAkB/B,2BAA2B;;;;;cAkB3B,2BAA2B;;;;;cAkB3B,6BAA6B;;;;;cAe7B,2BAA2B"}
1
+ {"version":3,"file":"FormattedComponents.d.ts","names":[],"sources":["../../src/FormattedComponents.tsx"],"mappings":";;;;;;qBA8Ba,sBAAsB;;;;;qBAkBtB,sBAAsB;;;;;qBAkBtB,wBAAwB;;;;;qBAkBxB,sBAAsB;;;;;qBAatB,6BAA6B;;;;;;qBAiB7B,8BAA8B;;;;;qBAmB9B,wBAAwB;;;;;qBAmCxB,+BAA+B;;;;;qBAkB/B,2BAA2B;;;;;qBAkB3B,2BAA2B;;;;;qBAkB3B,6BAA6B;;;;;qBAe7B,2BAA2B"}
@@ -21,7 +21,6 @@ import { FormattedMessage as FormattedMessage$1 } from "react-intl";
21
21
  * />
22
22
  * ```
23
23
  */
24
- declare const FormattedMessage: typeof FormattedMessage$1;
24
+ export declare const FormattedMessage: typeof FormattedMessage$1;
25
25
  //#endregion
26
- export { FormattedMessage };
27
26
  //# sourceMappingURL=FormattedMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormattedMessage.d.ts","names":[],"sources":["../../src/FormattedMessage.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cA2Ba,yBAAyB"}
1
+ {"version":3,"file":"FormattedMessage.d.ts","names":[],"sources":["../../src/FormattedMessage.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBA2Ba,yBAAyB"}
@@ -9,7 +9,6 @@ import { IntlProvider as IntlProvider$1 } from "react-intl";
9
9
  *
10
10
  * The `locale` prop is forwarded to `IntlayerClientProvider`.
11
11
  */
12
- declare const IntlProvider: typeof IntlProvider$1;
12
+ export declare const IntlProvider: typeof IntlProvider$1;
13
13
  //#endregion
14
- export { IntlProvider };
15
14
  //# sourceMappingURL=IntlProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntlProvider.d.ts","names":[],"sources":["../../src/IntlProvider.tsx"],"mappings":";;;;;;;;;;;cAqBa,qBAAqB"}
1
+ {"version":3,"file":"IntlProvider.d.ts","names":[],"sources":["../../src/IntlProvider.tsx"],"mappings":";;;;;;;;;;;qBAqBa,qBAAqB"}
@@ -4,9 +4,8 @@ import { IntlShape } from "react-intl";
4
4
  * React context holding the active intlayer-backed `IntlShape` instance.
5
5
  * Populated by {@link IntlProvider}; consumed by {@link useIntl}.
6
6
  */
7
- declare const IntlContext: import("react").Context<IntlShape>;
7
+ export declare const IntlContext: import("react").Context<IntlShape>;
8
8
  /** The raw `React.Provider<IntlShape>` — same as `IntlContext.Provider`. */
9
- declare const RawIntlProvider: import("react").Provider<IntlShape>;
9
+ export declare const RawIntlProvider: import("react").Provider<IntlShape>;
10
10
  //#endregion
11
- export { IntlContext, RawIntlProvider };
12
11
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","names":[],"sources":["../../src/context.tsx"],"mappings":";;;;;;cAOa,6BAAW,QAAA;;cAKX,iCAAe,SAAA"}
1
+ {"version":3,"file":"context.d.ts","names":[],"sources":["../../src/context.tsx"],"mappings":";;;;;;qBAOa,6BAAW,QAAA;;qBAKX,iCAAe,SAAA"}
@@ -10,7 +10,7 @@ import { createIntl as createIntl$1, createIntlCache as createIntlCache$1 } from
10
10
  * @deprecated
11
11
  * Has no practical effect with intlayer — no formatter pooling is needed.
12
12
  */
13
- declare const createIntlCache: typeof createIntlCache$1;
13
+ export declare const createIntlCache: typeof createIntlCache$1;
14
14
  /**
15
15
  * Drop-in for react-intl's `createIntl`.
16
16
  *
@@ -28,7 +28,6 @@ declare const createIntlCache: typeof createIntlCache$1;
28
28
  * intl.formatMessage({ id: 'home.title' });
29
29
  * ```
30
30
  */
31
- declare const createIntl: typeof createIntl$1;
31
+ export declare const createIntl: typeof createIntl$1;
32
32
  //#endregion
33
- export { createIntl, createIntlCache };
34
33
  //# sourceMappingURL=createIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createIntl.d.ts","names":[],"sources":["../../src/createIntl.ts"],"mappings":";;;;;;;;;;;;cAoBa,wBAAwB;;;;;;;;;;;;;;;;;;cA4BxB,mBAAmB"}
1
+ {"version":3,"file":"createIntl.d.ts","names":[],"sources":["../../src/createIntl.ts"],"mappings":";;;;;;;;;;;;qBAoBa,wBAAwB;;;;;;;;;;;;;;;;;;qBA4BxB,mBAAmB"}
@@ -12,7 +12,6 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
12
12
  * @param lookupOverride - Optional message lookup replacing the registry-based
13
13
  * id resolution; used by the dictionary-bound `useDictionary` variant.
14
14
  */
15
- declare const createIntlObject: (locale: LocalesValues, lookupOverride?: (id: string) => unknown) => IntlShape;
15
+ export declare const createIntlObject: (locale: LocalesValues, lookupOverride?: (id: string) => unknown) => IntlShape;
16
16
  //#endregion
17
- export { createIntlObject };
18
17
  //# sourceMappingURL=createIntlObject.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createIntlObject.d.ts","names":[],"sources":["../../src/createIntlObject.tsx"],"mappings":";;;;;;;;;;;;;;cAqFa,mBAAgB,QACnB,eAAa,kBACH,2BACjB"}
1
+ {"version":3,"file":"createIntlObject.d.ts","names":[],"sources":["../../src/createIntlObject.tsx"],"mappings":";;;;;;;;;;;;;;qBAqFa,mBAAgB,QACnB,eAAa,kBACH,2BACjB"}
@@ -6,12 +6,11 @@ import { defineMessage as defineMessage$1, defineMessages as defineMessages$1 }
6
6
  * Exists so that IDEs and the intlayer analyzer can locate message ids
7
7
  * at source-analysis time.
8
8
  */
9
- declare const defineMessages: typeof defineMessages$1;
9
+ export declare const defineMessages: typeof defineMessages$1;
10
10
  /**
11
11
  * Drop-in for react-intl's `defineMessage`.
12
12
  * Identity function — returns the descriptor unchanged.
13
13
  */
14
- declare const defineMessage: typeof defineMessage$1;
14
+ export declare const defineMessage: typeof defineMessage$1;
15
15
  //#endregion
16
- export { defineMessage, defineMessages };
17
16
  //# sourceMappingURL=defineMessages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defineMessages.d.ts","names":[],"sources":["../../src/defineMessages.ts"],"mappings":";;;;;;;;cAWa,uBAAuB;;;;;cAMvB,sBAAsB"}
1
+ {"version":3,"file":"defineMessages.d.ts","names":[],"sources":["../../src/defineMessages.ts"],"mappings":";;;;;;;;qBAWa,uBAAuB;;;;;qBAMvB,sBAAsB"}
@@ -19,19 +19,19 @@ type TranslatedValue<N extends DictionaryKeys, P> = ContentAtPath<N, P> extends
19
19
  * Ids accepted by a dictionary-bound intl object: the dictionary's dot-paths,
20
20
  * either relative (`'title'`) or absolute (`'home.title'`).
21
21
  */
22
- type DictionaryMessageIds<N extends DictionaryKeys> = ValidDotPathsFor<N> | `${N & string}.${ValidDotPathsFor<N> & string}`;
22
+ export type DictionaryMessageIds<N extends DictionaryKeys> = ValidDotPathsFor<N> | `${N & string}.${ValidDotPathsFor<N> & string}`;
23
23
  /**
24
24
  * Resolves the translated value type for an id: the absolute form strips the
25
25
  * leading `<dictionaryKey>.` first, matching the runtime lookup.
26
26
  */
27
- type MessageValueForId<N extends DictionaryKeys, Id extends string> = Id extends `${N & string}.${infer RelativePath}` ? TranslatedValue<N, RelativePath> : TranslatedValue<N, Id>;
27
+ export type MessageValueForId<N extends DictionaryKeys, Id extends string> = Id extends `${N & string}.${infer RelativePath}` ? TranslatedValue<N, RelativePath> : TranslatedValue<N, Id>;
28
28
  /**
29
29
  * `formatMessage` bound to dictionary `N`: ids are validated against the
30
30
  * dictionary's dot-paths and the return type is resolved from the content at
31
31
  * that path. With rich-text render functions in `values`, React nodes are
32
32
  * returned.
33
33
  */
34
- type TypedFormatMessage<N extends DictionaryKeys> = {
34
+ export type TypedFormatMessage<N extends DictionaryKeys> = {
35
35
  <Id extends DictionaryMessageIds<N> & string>(descriptor: Omit<MessageDescriptor, 'id'> & {
36
36
  id: Id;
37
37
  }, values?: Record<string, PrimitiveType>): MessageValueForId<N, Id>;
@@ -44,10 +44,9 @@ type TypedFormatMessage<N extends DictionaryKeys> = {
44
44
  * `N`. Returned by the dictionary-bound `useDictionary` /
45
45
  * `useDictionaryDynamic` variants.
46
46
  */
47
- type DictionaryIntlShape<N extends DictionaryKeys> = Omit<IntlShape, 'formatMessage' | '$t'> & {
47
+ export type DictionaryIntlShape<N extends DictionaryKeys> = Omit<IntlShape, 'formatMessage' | '$t'> & {
48
48
  formatMessage: TypedFormatMessage<N>;
49
49
  $t: TypedFormatMessage<N>;
50
50
  };
51
51
  //#endregion
52
- export { DictionaryIntlShape, DictionaryMessageIds, MessageValueForId, TypedFormatMessage };
53
52
  //# sourceMappingURL=dictionaryIntlShape.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionaryIntlShape.d.ts","names":[],"sources":["../../src/dictionaryIntlShape.ts"],"mappings":";;;;;;;;;;KAUK,cAAc,UAAU,gBAAgB,KAAK,iBAAiB,GAAG;;;;;;KAOjE,gBAAgB,UAAU,gBAAgB,KAC7C,cAAc,GAAG,oBAAoB,cAAc,GAAG;;;;;KAM5C,qBAAqB,UAAU,kBACvC,iBAAiB,QACd,cAAc,iBAAiB;;;;;KAM1B,kBACV,UAAU,gBACV,qBACE,cAAc,oBAAoB,iBAClC,gBAAgB,GAAG,gBACnB,gBAAgB,GAAG;;;;;;;KAQX,mBAAmB,UAAU;GACtC,WAAW,qBAAqB,aAC/B,YAAY,KAAK;IAA6B,IAAI;KAClD,SAAS,eAAe,iBACvB,kBAAkB,GAAG;GACvB,WAAW,qBAAqB,aAC/B,YAAY,KAAK;IAA6B,IAAI;KAClD,SAAS,eAEP,YAAY,kBAAkB,QAAQ,cAAc,uBAE5C;;;;;;;KAQF,oBAAoB,UAAU,kBAAkB,KAC1D;EAGA,eAAe,mBAAmB;EAClC,IAAI,mBAAmB"}
1
+ {"version":3,"file":"dictionaryIntlShape.d.ts","names":[],"sources":["../../src/dictionaryIntlShape.ts"],"mappings":";;;;;;;;;;KAUK,cAAc,UAAU,gBAAgB,KAAK,iBAAiB,GAAG;;;;;;KAOjE,gBAAgB,UAAU,gBAAgB,KAC7C,cAAc,GAAG,oBAAoB,cAAc,GAAG;;;;;YAM5C,qBAAqB,UAAU,kBACvC,iBAAiB,QACd,cAAc,iBAAiB;;;;;YAM1B,kBACV,UAAU,gBACV,qBACE,cAAc,oBAAoB,iBAClC,gBAAgB,GAAG,gBACnB,gBAAgB,GAAG;;;;;;;YAQX,mBAAmB,UAAU;GACtC,WAAW,qBAAqB,aAC/B,YAAY,KAAK;IAA6B,IAAI;KAClD,SAAS,eAAe,iBACvB,kBAAkB,GAAG;GACvB,WAAW,qBAAqB,aAC/B,YAAY,KAAK;IAA6B,IAAI;KAClD,SAAS,eAEP,YAAY,kBAAkB,QAAQ,cAAc,uBAE5C;;;;;;;YAQF,oBAAoB,UAAU,kBAAkB,KAC1D;EAGA,eAAe,mBAAmB;EAClC,IAAI,mBAAmB"}
@@ -5,7 +5,7 @@
5
5
  * @deprecated These error codes are not raised by the intlayer compat adapter.
6
6
  * Exported for API compatibility only.
7
7
  */
8
- declare enum ReactIntlErrorCode {
8
+ export declare enum ReactIntlErrorCode {
9
9
  FORMAT_ERROR = "FORMAT_ERROR",
10
10
  UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER",
11
11
  INVALID_CONFIG = "INVALID_CONFIG",
@@ -17,40 +17,39 @@ declare enum ReactIntlErrorCode {
17
17
  *
18
18
  * @deprecated Not raised by the intlayer compat adapter. Exported for API compatibility only.
19
19
  */
20
- declare class ReactIntlError extends Error {
20
+ export declare class ReactIntlError extends Error {
21
21
  readonly code: ReactIntlErrorCode;
22
22
  constructor(code: ReactIntlErrorCode, message: string);
23
23
  }
24
24
  /**
25
25
  * @deprecated Not raised by the intlayer compat adapter. Exported for API compatibility only.
26
26
  */
27
- declare class InvalidConfigError extends ReactIntlError {
27
+ export declare class InvalidConfigError extends ReactIntlError {
28
28
  constructor(message: string);
29
29
  }
30
30
  /**
31
31
  * @deprecated Not raised by the intlayer compat adapter. Exported for API compatibility only.
32
32
  */
33
- declare class MessageFormatError extends ReactIntlError {
33
+ export declare class MessageFormatError extends ReactIntlError {
34
34
  constructor(message: string);
35
35
  }
36
36
  /**
37
37
  * @deprecated Not raised by the intlayer compat adapter. Exported for API compatibility only.
38
38
  */
39
- declare class MissingDataError extends ReactIntlError {
39
+ export declare class MissingDataError extends ReactIntlError {
40
40
  constructor(message: string);
41
41
  }
42
42
  /**
43
43
  * @deprecated Not raised by the intlayer compat adapter. Exported for API compatibility only.
44
44
  */
45
- declare class MissingTranslationError extends ReactIntlError {
45
+ export declare class MissingTranslationError extends ReactIntlError {
46
46
  constructor(message: string);
47
47
  }
48
48
  /**
49
49
  * @deprecated Not raised by the intlayer compat adapter. Exported for API compatibility only.
50
50
  */
51
- declare class UnsupportedFormatterError extends ReactIntlError {
51
+ export declare class UnsupportedFormatterError extends ReactIntlError {
52
52
  constructor(message: string);
53
53
  }
54
54
  //#endregion
55
- export { InvalidConfigError, MessageFormatError, MissingDataError, MissingTranslationError, ReactIntlError, ReactIntlErrorCode, UnsupportedFormatterError };
56
55
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","names":[],"sources":["../../src/errors.ts"],"mappings":";;;;;;;aAMY;EACV;EACA;EACA;EACA;EACA;;;;;;;cAQW,uBAAuB;WAClB,MAAM;EAEtB,YAAY,MAAM,oBAAoB;;;;;cAU3B,2BAA2B;EACtC,YAAY;;;;;cASD,2BAA2B;EACtC,YAAY;;;;;cASD,yBAAyB;EACpC,YAAY;;;;;cASD,gCAAgC;EAC3C,YAAY;;;;;cASD,kCAAkC;EAC7C,YAAY"}
1
+ {"version":3,"file":"errors.d.ts","names":[],"sources":["../../src/errors.ts"],"mappings":";;;;;;;oBAMY;EACV;EACA;EACA;EACA;EACA;;;;;;;qBAQW,uBAAuB;WAClB,MAAM;EAEtB,YAAY,MAAM,oBAAoB;;;;;qBAU3B,2BAA2B;EACtC,YAAY;;;;;qBASD,2BAA2B;EACtC,YAAY;;;;;qBASD,yBAAyB;EACpC,YAAY;;;;;qBASD,gCAAgC;EAC3C,YAAY;;;;;qBASD,kCAAkC;EAC7C,YAAY"}
@@ -16,7 +16,7 @@ import { intlayer } from "vite-intlayer";
16
16
  * });
17
17
  * ```
18
18
  */
19
- declare const reactIntlVitePlugin: (options?: Parameters<typeof intlayer>[0]) => PluginOption[];
19
+ export declare const reactIntlVitePlugin: (options?: Parameters<typeof intlayer>[0]) => PluginOption[];
20
20
  //#endregion
21
- export { reactIntlVitePlugin as default, reactIntlVitePlugin };
21
+ export { reactIntlVitePlugin as default };
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;cAwBa,sBAAmB,UACpB,kBAAkB,iBAC3B"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAwBa,sBAAmB,UACpB,kBAAkB,iBAC3B"}
@@ -6,7 +6,7 @@ import { ValidDotPathsFor } from "@intlayer/core/transpiler";
6
6
  * first segment designates the intlayer dictionary. Falls back to `string`
7
7
  * when no dictionary registry is declared (e.g. before the first build).
8
8
  */
9
- type RootMessageIds = string extends DictionaryKeys ? string : { [K in DictionaryKeys]: `${K & string}.${ValidDotPathsFor<K> & string}`; }[DictionaryKeys];
9
+ export type RootMessageIds = string extends DictionaryKeys ? string : { [K in DictionaryKeys]: `${K & string}.${ValidDotPathsFor<K> & string}`; }[DictionaryKeys];
10
10
  declare global {
11
11
  namespace FormatjsIntl {
12
12
  interface Message {
@@ -21,5 +21,4 @@ declare global {
21
21
  }
22
22
  }
23
23
  //#endregion
24
- export { RootMessageIds };
25
24
  //# sourceMappingURL=typedMessageIds.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typedMessageIds.d.ts","names":[],"sources":["../../src/typedMessageIds.ts"],"mappings":";;;;;;;;KAQY,gCAAgC,6BAGrC,KAAK,oBAAoB,cAAc,iBAAiB,iBACzD;QAEE;YACI;cACE;;;;;;;MAOR,KAAK"}
1
+ {"version":3,"file":"typedMessageIds.d.ts","names":[],"sources":["../../src/typedMessageIds.ts"],"mappings":";;;;;;;;YAQY,gCAAgC,6BAGrC,KAAK,oBAAoB,cAAc,iBAAiB,iBACzD;QAEE;YACI;cACE;;;;;;;MAOR,KAAK"}
@@ -10,7 +10,7 @@ import { Dictionary } from "@intlayer/types/dictionary";
10
10
  * supplied directly, the leading `<dictionaryKey>.` is stripped so both the
11
11
  * absolute (`'home.title'`) and relative (`'title'`) forms resolve.
12
12
  */
13
- declare const createDictionaryLookup: (dictionaryKey: string, content: unknown) => (id: string) => unknown;
13
+ export declare const createDictionaryLookup: (dictionaryKey: string, content: unknown) => (id: string) => unknown;
14
14
  /**
15
15
  * Dictionary-accepting variant of `useIntl`.
16
16
  *
@@ -24,7 +24,6 @@ declare const createDictionaryLookup: (dictionaryKey: string, content: unknown)
24
24
  * const intl = useDictionary(_abc);
25
25
  * intl.formatMessage({ id: 'home.title' }); // or { id: 'title' } — both typed
26
26
  */
27
- declare const useDictionary: <T extends Dictionary>(dictionary: T) => DictionaryIntlShape<T['key'] & DictionaryKeys>;
27
+ export declare const useDictionary: <T extends Dictionary>(dictionary: T) => DictionaryIntlShape<T['key'] & DictionaryKeys>;
28
28
  //#endregion
29
- export { createDictionaryLookup, useDictionary };
30
29
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":";;;;;;;;;;;;cAqBa,yBAAsB,uBACX,sBAAkB;;;;;;;;;;;;;;cAuB7B,gBAAiB,UAAU,YAAU,YACpC,MACX,oBAAoB,WAAW"}
1
+ {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":";;;;;;;;;;;;qBAqBa,yBAAsB,uBACX,sBAAkB;;;;;;;;;;;;;;qBAuB7B,gBAAiB,UAAU,YAAU,YACpC,MACX,oBAAoB,WAAW"}
@@ -8,7 +8,6 @@ import { Dictionary } from "@intlayer/types/dictionary";
8
8
  * Counterpart to {@link useDictionary} for dictionaries imported lazily per
9
9
  * locale. Used internally by the build-time optimization.
10
10
  */
11
- declare const useDictionaryDynamic: <const T extends Dictionary, const K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K) => DictionaryIntlShape<K>;
11
+ export declare const useDictionaryDynamic: <const T extends Dictionary, const K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K) => DictionaryIntlShape<K>;
12
12
  //#endregion
13
- export { useDictionaryDynamic };
14
13
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../src/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;cAuBa,6BACL,UAAU,kBACV,UAAU,gBAAc,mBAEX,0BAA0B,QAAQ,KAAG,KACnD,MACJ,oBAAoB"}
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../src/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;qBAuBa,6BACL,UAAU,kBACV,UAAU,gBAAc,mBAEX,0BAA0B,QAAQ,KAAG,KACnD,MACJ,oBAAoB"}
@@ -14,7 +14,6 @@ import { useIntl as useIntl$1 } from "react-intl";
14
14
  * intl.formatNumber(42, { style: 'currency', currency: 'USD' });
15
15
  * ```
16
16
  */
17
- declare const useIntl: typeof useIntl$1;
17
+ export declare const useIntl: typeof useIntl$1;
18
18
  //#endregion
19
- export { useIntl };
20
19
  //# sourceMappingURL=useIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../src/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;cAuBa,gBAAgB"}
1
+ {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../src/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;qBAuBa,gBAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/react-intl",
3
- "version": "9.4.3",
3
+ "version": "9.4.4",
4
4
  "private": false,
5
5
  "description": "react-intl API adapter for intlayer — drop-in compatibility layer",
6
6
  "keywords": [
@@ -74,13 +74,13 @@
74
74
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
75
75
  },
76
76
  "dependencies": {
77
- "@intlayer/config": "9.4.3",
78
- "@intlayer/core": "9.4.3",
79
- "@intlayer/dictionaries-entry": "9.4.3",
80
- "@intlayer/engine": "9.4.3",
81
- "@intlayer/types": "9.4.3",
82
- "react-intlayer": "9.4.3",
83
- "vite-intlayer": "9.4.3"
77
+ "@intlayer/config": "9.4.4",
78
+ "@intlayer/core": "9.4.4",
79
+ "@intlayer/dictionaries-entry": "9.4.4",
80
+ "@intlayer/engine": "9.4.4",
81
+ "@intlayer/types": "9.4.4",
82
+ "react-intlayer": "9.4.4",
83
+ "vite-intlayer": "9.4.4"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@types/node": "26.4.1",
@@ -90,10 +90,10 @@
90
90
  "@utils/tsdown-config": "1.0.4",
91
91
  "react-intl": "^10.1.18",
92
92
  "rimraf": "6.1.3",
93
- "tsdown": "0.22.14",
93
+ "tsdown": "0.23.0",
94
94
  "typescript": "7.0.2",
95
95
  "vite": "8.2.2",
96
- "vitest": "4.1.11"
96
+ "vitest": "5.0.0"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "react": ">=16.0.0",