@intlayer/react-intl 9.0.0-canary.17 → 9.0.0-canary.19

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.
@@ -65,7 +65,8 @@ const createIntlObject = (locale, lookupOverride) => {
65
65
  const messageTemplate = rawValue !== void 0 && rawValue !== null ? rawValue : typeof defaultMessage === "string" ? defaultMessage : id;
66
66
  if (!values || !isRichValues(values)) return resolveMessage(messageTemplate, values ?? {}, locale, "icu") ?? id;
67
67
  const { scalarValues, renderers } = splitRichValues(values);
68
- return renderRichTokens(parseTaggedMessage(resolveMessage(messageTemplate, scalarValues, locale, "icu") ?? id), renderers);
68
+ const message = resolveMessage(messageTemplate, scalarValues, locale, "icu") ?? id;
69
+ return renderRichTokens(parseTaggedMessage(message), renderers);
69
70
  };
70
71
  const toDate = (value) => value instanceof Date ? value : new Date(value);
71
72
  const formatDate = (value, options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"createIntlObject.mjs","names":[],"sources":["../../src/createIntlObject.tsx"],"sourcesContent":["import { getIntlayer } from '@intlayer/core/interpreter';\nimport {\n type MessageValues,\n navigatePath,\n parseTaggedMessage,\n resolveMessage,\n type TaggedMessageToken,\n} from '@intlayer/core/messageFormat';\nimport type {\n DictionaryKeys,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { Fragment, type ReactNode } from 'react';\nimport type { IntlShape, MessageDescriptor } from 'react-intl';\n\ntype RichRenderer = (chunks: ReactNode) => ReactNode;\n\n/** Splits a full dotted id into the dictionary key and remaining path. */\nconst splitId = (id: string): { dictionaryKey: string; path: string } => {\n const dotIndex = id.indexOf('.');\n if (dotIndex === -1) return { dictionaryKey: id, path: '' };\n return {\n dictionaryKey: id.slice(0, dotIndex),\n path: id.slice(dotIndex + 1),\n };\n};\n\n/** Looks up a message value by full dotted id; first segment = dictionary key. */\nconst lookupMessage = (id: string, locale: LocalesValues): unknown => {\n const { dictionaryKey, path } = splitId(id);\n if (!dictionaryKey) return undefined;\n try {\n const dictionary = getIntlayer(dictionaryKey as DictionaryKeys, locale);\n return navigatePath(dictionary, path);\n } catch {\n return undefined;\n }\n};\n\n/** Maps tagged tokens to React nodes using the provided renderer functions. */\nconst renderRichTokens = (\n tokens: TaggedMessageToken[],\n renderers: Record<string, unknown>\n): ReactNode[] =>\n tokens.map((token, tokenIndex) => {\n if (typeof token === 'string') return token;\n const children = renderRichTokens(token.children, renderers);\n const renderer = renderers[token.tag];\n if (typeof renderer === 'function') {\n return (\n <Fragment key={tokenIndex}>\n {(renderer as RichRenderer)(<>{children}</>)}\n </Fragment>\n );\n }\n return <Fragment key={tokenIndex}>{children}</Fragment>;\n });\n\n/** Partitions values into scalar interpolation params and tag renderers. */\nconst splitRichValues = (\n values: Record<string, unknown>\n): { scalarValues: MessageValues; renderers: Record<string, unknown> } => {\n const scalarValues: MessageValues = {};\n const renderers: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(values)) {\n if (typeof value === 'function') renderers[key] = value;\n else scalarValues[key] = value as MessageValues[string];\n }\n return { scalarValues, renderers };\n};\n\nconst isRichValues = (values: Record<string, unknown>): boolean =>\n Object.values(values).some((value) => typeof value === 'function');\n\n/**\n * Builds an intlayer-backed `IntlShape` object for the given locale.\n *\n * - Translation ids use the first dot-path segment as the dictionary key.\n * - Full ICU MessageFormat syntax is supported via `@intlayer/core/messageFormat`.\n * - Rich text tags (`<b>chunks</b>`) are resolved through render functions in `values`.\n *\n * @param locale - The locale messages are resolved for.\n * @param lookupOverride - Optional message lookup replacing the registry-based\n * id resolution; used by the dictionary-bound `useDictionary` variant.\n */\nexport const createIntlObject = (\n locale: LocalesValues,\n lookupOverride?: (id: string) => unknown\n): IntlShape => {\n const localeString = locale as string;\n\n const formatMessage = (\n descriptor: MessageDescriptor,\n values?: Record<string, unknown>\n ): string | ReactNode[] => {\n const { id = '', defaultMessage } = descriptor;\n const rawValue = lookupOverride\n ? lookupOverride(id)\n : lookupMessage(id, locale);\n const messageTemplate =\n rawValue !== undefined && rawValue !== null\n ? (rawValue as string)\n : typeof defaultMessage === 'string'\n ? defaultMessage\n : id;\n\n if (!values || !isRichValues(values)) {\n return (\n resolveMessage(\n messageTemplate,\n (values ?? {}) as MessageValues,\n locale,\n 'icu'\n ) ?? id\n );\n }\n\n const { scalarValues, renderers } = splitRichValues(values);\n const message =\n resolveMessage(messageTemplate, scalarValues, locale, 'icu') ?? id;\n return renderRichTokens(parseTaggedMessage(message), renderers);\n };\n\n const toDate = (value: Date | number | string): Date =>\n value instanceof Date ? value : new Date(value);\n\n const formatDate = (\n value: string | number | Date | undefined,\n options?: Intl.DateTimeFormatOptions\n ): string => {\n if (value === undefined || value === null) return '';\n return new Intl.DateTimeFormat(localeString, options).format(toDate(value));\n };\n\n const formatNumber = (\n value: number | bigint,\n options?: Intl.NumberFormatOptions\n ): string => new Intl.NumberFormat(localeString, options).format(value);\n\n const formatPlural = (\n value: number,\n options?: Intl.PluralRulesOptions\n ): Intl.LDMLPluralRule =>\n new Intl.PluralRules(localeString, options).select(value);\n\n const formatList = (\n list: Iterable<unknown> | readonly unknown[],\n options?: Intl.ListFormatOptions\n ): string => {\n const strings = Array.from(list).filter(\n (item): item is string => typeof item === 'string'\n );\n return new Intl.ListFormat(localeString, options).format(strings);\n };\n\n const formatListToParts = (\n list: Iterable<unknown> | readonly unknown[],\n options?: Intl.ListFormatOptions\n ): ReturnType<Intl.ListFormat['formatToParts']> => {\n const strings = Array.from(list).filter(\n (item): item is string => typeof item === 'string'\n );\n return new Intl.ListFormat(localeString, options).formatToParts(strings);\n };\n\n const formatDisplayName = (\n value: string,\n options?: Intl.DisplayNamesOptions\n ): string | undefined =>\n new Intl.DisplayNames([localeString], options ?? { type: 'language' }).of(\n value\n );\n\n const formatRelativeTime = (\n value: number,\n unit?: Intl.RelativeTimeFormatUnit,\n options?: Intl.RelativeTimeFormatOptions\n ): string =>\n new Intl.RelativeTimeFormat(localeString, {\n numeric: 'auto',\n ...options,\n }).format(value, unit ?? 'second');\n\n const formatDateTimeRange = (\n from: Date | number,\n to: Date | number,\n options?: Intl.DateTimeFormatOptions\n ): string =>\n new Intl.DateTimeFormat(localeString, options).formatRange(\n toDate(from),\n toDate(to)\n );\n\n const formatDateToParts = (\n value: Parameters<Intl.DateTimeFormat['format']>[0] | string,\n options?: Intl.DateTimeFormatOptions\n ): Intl.DateTimeFormatPart[] =>\n new Intl.DateTimeFormat(localeString, options).formatToParts(\n typeof value === 'string' ? new Date(value) : value\n );\n\n const formatNumberToParts = (\n value: number | bigint,\n options?: Intl.NumberFormatOptions\n ): Intl.NumberFormatPart[] =>\n new Intl.NumberFormat(localeString, options).formatToParts(value);\n\n /** Alias of `formatMessage` — provided for `@formatjs/intl` v4 compatibility. */\n const $t = formatMessage as IntlShape['$t'];\n\n return {\n locale: localeString,\n defaultLocale: localeString,\n messages: {},\n formats: {},\n defaultFormats: {},\n timeZone: undefined,\n textComponent: Fragment,\n wrapRichTextChunksInFragment: false,\n fallbackOnEmptyString: true,\n onError: () => {},\n onWarn: () => {},\n formatters: {} as IntlShape['formatters'],\n formatMessage: formatMessage as IntlShape['formatMessage'],\n $t,\n formatDate,\n formatTime: formatDate,\n formatNumber,\n formatPlural,\n formatList: formatList as IntlShape['formatList'],\n formatListToParts: formatListToParts as IntlShape['formatListToParts'],\n formatDisplayName: formatDisplayName as IntlShape['formatDisplayName'],\n formatRelativeTime,\n formatDateTimeRange,\n formatDateToParts: formatDateToParts as IntlShape['formatDateToParts'],\n formatTimeToParts: formatDateToParts as IntlShape['formatTimeToParts'],\n formatNumberToParts:\n formatNumberToParts as IntlShape['formatNumberToParts'],\n } as unknown as IntlShape;\n};\n"],"mappings":";;;;;;;AAkBA,MAAM,WAAW,OAAwD;CACvE,MAAM,WAAW,GAAG,QAAQ,GAAG;CAC/B,IAAI,aAAa,IAAI,OAAO;EAAE,eAAe;EAAI,MAAM;CAAG;CAC1D,OAAO;EACL,eAAe,GAAG,MAAM,GAAG,QAAQ;EACnC,MAAM,GAAG,MA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AO,IAAI,GACX,OAAO,EAAE,CACX;CAEF,MAAM,qBACJ,OACA,YAEA,IAAI,KAAK,eAAe,cAAc,OAAO,CAAC,CAAC,cAC7C,OAAO,UAAU,WAAW,IAAI,KAAK,KAAK,IAAI,KAChD;CAEF,MAAM,uBACJ,OACA,YAEA,IAAI,KAAK,aAAa,cAAc,OAAO,CAAC,CAAC,cAAc,KAAK;CAKlE,OAAO;EACL,QAAQ;EACR,eAAe;EACf,UAAU,CAAC;EACX,SAAS,CAAC;EACV,gBAAgB,CAAC;EACjB,UAAU;EACV,eAAe;EACf,8BAA8B;EAC9B,uBAAuB;EACvB,eAAe,CAAC;EAChB,cAAc,CAAC;EACf,YAAY,CAAC;EACE;EACf;EACA;EACA,YAAY;EACZ;EACA;EACY;EACO;EACA;EACnB;EACA;EACmB;EACnB,mBAAmB;EAEjB;CACJ;AACF"}
1
+ {"version":3,"file":"createIntlObject.mjs","names":[],"sources":["../../src/createIntlObject.tsx"],"sourcesContent":["import { getIntlayer } from '@intlayer/core/interpreter';\nimport {\n type MessageValues,\n navigatePath,\n parseTaggedMessage,\n resolveMessage,\n type TaggedMessageToken,\n} from '@intlayer/core/messageFormat';\nimport type {\n DictionaryKeys,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { Fragment, type ReactNode } from 'react';\nimport type { IntlShape, MessageDescriptor } from 'react-intl';\n\ntype RichRenderer = (chunks: ReactNode) => ReactNode;\n\n/** Splits a full dotted id into the dictionary key and remaining path. */\nconst splitId = (id: string): { dictionaryKey: string; path: string } => {\n const dotIndex = id.indexOf('.');\n if (dotIndex === -1) return { dictionaryKey: id, path: '' };\n return {\n dictionaryKey: id.slice(0, dotIndex),\n path: id.slice(dotIndex + 1),\n };\n};\n\n/** Looks up a message value by full dotted id; first segment = dictionary key. */\nconst lookupMessage = (id: string, locale: LocalesValues): unknown => {\n const { dictionaryKey, path } = splitId(id);\n if (!dictionaryKey) return undefined;\n try {\n const dictionary = getIntlayer(dictionaryKey as DictionaryKeys, locale);\n return navigatePath(dictionary, path);\n } catch {\n return undefined;\n }\n};\n\n/** Maps tagged tokens to React nodes using the provided renderer functions. */\nconst renderRichTokens = (\n tokens: TaggedMessageToken[],\n renderers: Record<string, unknown>\n): ReactNode[] =>\n tokens.map((token, tokenIndex) => {\n if (typeof token === 'string') return token;\n const children = renderRichTokens(token.children, renderers);\n const renderer = renderers[token.tag];\n if (typeof renderer === 'function') {\n return (\n <Fragment key={tokenIndex}>\n {(renderer as RichRenderer)(<>{children}</>)}\n </Fragment>\n );\n }\n return <Fragment key={tokenIndex}>{children}</Fragment>;\n });\n\n/** Partitions values into scalar interpolation params and tag renderers. */\nconst splitRichValues = (\n values: Record<string, unknown>\n): { scalarValues: MessageValues; renderers: Record<string, unknown> } => {\n const scalarValues: MessageValues = {};\n const renderers: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(values)) {\n if (typeof value === 'function') renderers[key] = value;\n else scalarValues[key] = value as MessageValues[string];\n }\n return { scalarValues, renderers };\n};\n\nconst isRichValues = (values: Record<string, unknown>): boolean =>\n Object.values(values).some((value) => typeof value === 'function');\n\n/**\n * Builds an intlayer-backed `IntlShape` object for the given locale.\n *\n * - Translation ids use the first dot-path segment as the dictionary key.\n * - Full ICU MessageFormat syntax is supported via `@intlayer/core/messageFormat`.\n * - Rich text tags (`<b>chunks</b>`) are resolved through render functions in `values`.\n *\n * @param locale - The locale messages are resolved for.\n * @param lookupOverride - Optional message lookup replacing the registry-based\n * id resolution; used by the dictionary-bound `useDictionary` variant.\n */\nexport const createIntlObject = (\n locale: LocalesValues,\n lookupOverride?: (id: string) => unknown\n): IntlShape => {\n const localeString = locale as string;\n\n const formatMessage = (\n descriptor: MessageDescriptor,\n values?: Record<string, unknown>\n ): string | ReactNode[] => {\n const { id = '', defaultMessage } = descriptor;\n const rawValue = lookupOverride\n ? lookupOverride(id)\n : lookupMessage(id, locale);\n const messageTemplate =\n rawValue !== undefined && rawValue !== null\n ? (rawValue as string)\n : typeof defaultMessage === 'string'\n ? defaultMessage\n : id;\n\n if (!values || !isRichValues(values)) {\n return (\n resolveMessage(\n messageTemplate,\n (values ?? {}) as MessageValues,\n locale,\n 'icu'\n ) ?? id\n );\n }\n\n const { scalarValues, renderers } = splitRichValues(values);\n const message =\n resolveMessage(messageTemplate, scalarValues, locale, 'icu') ?? id;\n return renderRichTokens(parseTaggedMessage(message), renderers);\n };\n\n const toDate = (value: Date | number | string): Date =>\n value instanceof Date ? value : new Date(value);\n\n const formatDate = (\n value: string | number | Date | undefined,\n options?: Intl.DateTimeFormatOptions\n ): string => {\n if (value === undefined || value === null) return '';\n return new Intl.DateTimeFormat(localeString, options).format(toDate(value));\n };\n\n const formatNumber = (\n value: number | bigint,\n options?: Intl.NumberFormatOptions\n ): string => new Intl.NumberFormat(localeString, options).format(value);\n\n const formatPlural = (\n value: number,\n options?: Intl.PluralRulesOptions\n ): Intl.LDMLPluralRule =>\n new Intl.PluralRules(localeString, options).select(value);\n\n const formatList = (\n list: Iterable<unknown> | readonly unknown[],\n options?: Intl.ListFormatOptions\n ): string => {\n const strings = Array.from(list).filter(\n (item): item is string => typeof item === 'string'\n );\n return new Intl.ListFormat(localeString, options).format(strings);\n };\n\n const formatListToParts = (\n list: Iterable<unknown> | readonly unknown[],\n options?: Intl.ListFormatOptions\n ): ReturnType<Intl.ListFormat['formatToParts']> => {\n const strings = Array.from(list).filter(\n (item): item is string => typeof item === 'string'\n );\n return new Intl.ListFormat(localeString, options).formatToParts(strings);\n };\n\n const formatDisplayName = (\n value: string,\n options?: Intl.DisplayNamesOptions\n ): string | undefined =>\n new Intl.DisplayNames([localeString], options ?? { type: 'language' }).of(\n value\n );\n\n const formatRelativeTime = (\n value: number,\n unit?: Intl.RelativeTimeFormatUnit,\n options?: Intl.RelativeTimeFormatOptions\n ): string =>\n new Intl.RelativeTimeFormat(localeString, {\n numeric: 'auto',\n ...options,\n }).format(value, unit ?? 'second');\n\n const formatDateTimeRange = (\n from: Date | number,\n to: Date | number,\n options?: Intl.DateTimeFormatOptions\n ): string =>\n new Intl.DateTimeFormat(localeString, options).formatRange(\n toDate(from),\n toDate(to)\n );\n\n const formatDateToParts = (\n value: Parameters<Intl.DateTimeFormat['format']>[0] | string,\n options?: Intl.DateTimeFormatOptions\n ): Intl.DateTimeFormatPart[] =>\n new Intl.DateTimeFormat(localeString, options).formatToParts(\n typeof value === 'string' ? new Date(value) : value\n );\n\n const formatNumberToParts = (\n value: number | bigint,\n options?: Intl.NumberFormatOptions\n ): Intl.NumberFormatPart[] =>\n new Intl.NumberFormat(localeString, options).formatToParts(value);\n\n /** Alias of `formatMessage` — provided for `@formatjs/intl` v4 compatibility. */\n const $t = formatMessage as IntlShape['$t'];\n\n return {\n locale: localeString,\n defaultLocale: localeString,\n messages: {},\n formats: {},\n defaultFormats: {},\n timeZone: undefined,\n textComponent: Fragment,\n wrapRichTextChunksInFragment: false,\n fallbackOnEmptyString: true,\n onError: () => {},\n onWarn: () => {},\n formatters: {} as IntlShape['formatters'],\n formatMessage: formatMessage as IntlShape['formatMessage'],\n $t,\n formatDate,\n formatTime: formatDate,\n formatNumber,\n formatPlural,\n formatList: formatList as IntlShape['formatList'],\n formatListToParts: formatListToParts as IntlShape['formatListToParts'],\n formatDisplayName: formatDisplayName as IntlShape['formatDisplayName'],\n formatRelativeTime,\n formatDateTimeRange,\n formatDateToParts: formatDateToParts as IntlShape['formatDateToParts'],\n formatTimeToParts: formatDateToParts as IntlShape['formatTimeToParts'],\n formatNumberToParts:\n formatNumberToParts as IntlShape['formatNumberToParts'],\n } as unknown as IntlShape;\n};\n"],"mappings":";;;;;;;AAkBA,MAAM,WAAW,OAAwD;CACvE,MAAM,WAAW,GAAG,QAAQ,GAAG;CAC/B,IAAI,aAAa,IAAI,OAAO;EAAE,eAAe;EAAI,MAAM;CAAG;CAC1D,OAAO;EACL,eAAe,GAAG,MAAM,GAAG,QAAQ;EACnC,MAAM,GAAG,MAAM,WAAW,CAAC;CAC7B;AACF;;AAGA,MAAM,iBAA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CACX;CAEF,MAAM,qBACJ,OACA,YAEA,IAAI,KAAK,eAAe,cAAc,OAAO,CAAC,CAAC,cAC7C,OAAO,UAAU,WAAW,IAAI,KAAK,KAAK,IAAI,KAChD;CAEF,MAAM,uBACJ,OACA,YAEA,IAAI,KAAK,aAAa,cAAc,OAAO,CAAC,CAAC,cAAc,KAAK;CAKlE,OAAO;EACL,QAAQ;EACR,eAAe;EACf,UAAU,CAAC;EACX,SAAS,CAAC;EACV,gBAAgB,CAAC;EACjB,UAAU;EACV,eAAe;EACf,8BAA8B;EAC9B,uBAAuB;EACvB,eAAe,CAAC;EAChB,cAAc,CAAC;EACf,YAAY,CAAC;EACE;EACf;EACA;EACA,YAAY;EACZ;EACA;EACY;EACO;EACA;EACnB;EACA;EACmB;EACnB,mBAAmB;EAEjB;CACJ;AACF"}
@@ -1,5 +1,4 @@
1
1
  import { FormattedDate as FormattedDate$1, FormattedDateParts as FormattedDateParts$1, FormattedDateTimeRange as FormattedDateTimeRange$1, FormattedDisplayName as FormattedDisplayName$1, FormattedList as FormattedList$1, FormattedListParts as FormattedListParts$1, FormattedNumber as FormattedNumber$1, FormattedNumberParts as FormattedNumberParts$1, FormattedPlural as FormattedPlural$1, FormattedRelativeTime as FormattedRelativeTime$1, FormattedTime as FormattedTime$1, FormattedTimeParts as FormattedTimeParts$1 } from "react-intl";
2
-
3
2
  //#region src/FormattedComponents.d.ts
4
3
  /**
5
4
  * Drop-in for react-intl's `<FormattedDate>`.
@@ -1 +1 @@
1
- {"version":3,"file":"FormattedComponents.d.ts","names":[],"sources":["../../src/FormattedComponents.tsx"],"mappings":";;;;;AA8BA;;cAAa,aAAA,SAAsB,eAYlC;;AAAA;AAMD;;cAAa,aAAA,SAAsB,eAYlC;;AAAA;AAMD;;cAAa,eAAA,SAAwB,iBAYpC;;AAAA;AAMD;;cAAa,aAAA,SAAsB,eAOlC;;AAAA;AAMD;;cAAa,oBAAA,SAA6B,sBAUzC;;AAAA;AAOD;;;cAAa,qBAAA,SAA8B,uBAa1C;AAAA;AAMD;;;AANC,cAMY,eAAA,SAAwB,iBA6BpC;AAAA;AAMD;;;AANC,cAMY,sBAAA,SAA+B,wBAY3C;AAAA;AAMD;;;AANC,cAMY,kBAAA,SAA2B,oBAYvC;AAAA;AAMD;;;AANC,cAMY,kBAAA,SAA2B,oBAYvC;AAAA;AAMD;;;AANC,cAMY,oBAAA,SAA6B,sBASzC;AAAA;AAMD;;;AANC,cAMY,kBAAA,SAA2B,oBAWvC"}
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,5 +1,4 @@
1
1
  import { FormattedMessage as FormattedMessage$1 } from "react-intl";
2
-
3
2
  //#region src/FormattedMessage.d.ts
4
3
  /**
5
4
  * Drop-in for react-intl's `<FormattedMessage>`.
@@ -1 +1 @@
1
- {"version":3,"file":"FormattedMessage.d.ts","names":[],"sources":["../../src/FormattedMessage.tsx"],"mappings":";;;;;AA2BA;;;;AAgCC;;;;;;;;;;;;;;;cAhCY,gBAAA,SAAyB,kBAgCrC"}
1
+ {"version":3,"file":"FormattedMessage.d.ts","names":[],"sources":["../../src/FormattedMessage.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cA2Ba,yBAAyB"}
@@ -1,5 +1,4 @@
1
1
  import { IntlProvider as IntlProvider$1 } from "react-intl";
2
-
3
2
  //#region src/IntlProvider.d.ts
4
3
  /**
5
4
  * Drop-in for react-intl's `IntlProvider`.
@@ -1 +1 @@
1
- {"version":3,"file":"IntlProvider.d.ts","names":[],"sources":["../../src/IntlProvider.tsx"],"mappings":";;;;;AAqBA;;;;AAgCC;;;cAhCY,YAAA,SAAqB,cAgCjC"}
1
+ {"version":3,"file":"IntlProvider.d.ts","names":[],"sources":["../../src/IntlProvider.tsx"],"mappings":";;;;;;;;;;;cAqBa,qBAAqB"}
@@ -1,5 +1,4 @@
1
1
  import { IntlShape } from "react-intl";
2
-
3
2
  //#region src/context.d.ts
4
3
  /**
5
4
  * React context holding the active intlayer-backed `IntlShape` instance.
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","names":[],"sources":["../../src/context.tsx"],"mappings":";;;;;AAOA;;cAAa,WAAA,kBAAW,OAAA,CAAA,SAAA;;cAKX,eAAA,kBAAe,QAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"context.d.ts","names":[],"sources":["../../src/context.tsx"],"mappings":";;;;;;cAOa,6BAAW,QAAA;;cAKX,iCAAe,SAAA"}
@@ -1,5 +1,4 @@
1
1
  import { createIntl as createIntl$1, createIntlCache as createIntlCache$1 } from "react-intl";
2
-
3
2
  //#region src/createIntl.d.ts
4
3
  /**
5
4
  * Drop-in for react-intl's `createIntlCache`.
@@ -1 +1 @@
1
- {"version":3,"file":"createIntl.d.ts","names":[],"sources":["../../src/createIntl.ts"],"mappings":";;;;;AAoBA;;;;AASiB;AAmBjB;;;cA5Ba,eAAA,SAAwB,iBASpB;AAsBwC;;;;;;;;;;;;;;;;;AAAA,cAH5C,UAAA,SAAmB,YAGyB"}
1
+ {"version":3,"file":"createIntl.d.ts","names":[],"sources":["../../src/createIntl.ts"],"mappings":";;;;;;;;;;;;cAoBa,wBAAwB;;;;;;;;;;;;;;;;;;cA4BxB,mBAAmB"}
@@ -1,6 +1,5 @@
1
1
  import { IntlShape } from "react-intl";
2
2
  import { LocalesValues } from "@intlayer/types/module_augmentation";
3
-
4
3
  //#region src/createIntlObject.d.ts
5
4
  /**
6
5
  * Builds an intlayer-backed `IntlShape` object for the given locale.
@@ -1 +1 @@
1
- {"version":3,"file":"createIntlObject.d.ts","names":[],"sources":["../../src/createIntlObject.tsx"],"mappings":";;;;;;AAqFA;;;;;;;;;cAAa,gBAAA,GACX,MAAA,EAAQ,aAAA,EACR,cAAA,IAAkB,EAAA,yBACjB,SAuJF"}
1
+ {"version":3,"file":"createIntlObject.d.ts","names":[],"sources":["../../src/createIntlObject.tsx"],"mappings":";;;;;;;;;;;;;;cAqFa,mBAAgB,QACnB,eAAa,kBACH,2BACjB"}
@@ -1,5 +1,4 @@
1
1
  import { defineMessage as defineMessage$1, defineMessages as defineMessages$1 } from "react-intl";
2
-
3
2
  //#region src/defineMessages.d.ts
4
3
  /**
5
4
  * Drop-in for react-intl's `defineMessages`.
@@ -1 +1 @@
1
- {"version":3,"file":"defineMessages.d.ts","names":[],"sources":["../../src/defineMessages.ts"],"mappings":";;;;;AAWA;;;;cAAa,cAAA,SAAuB,gBAAwC;AAM5E;;;;AAAA,cAAa,aAAA,SAAsB,eAAqC"}
1
+ {"version":3,"file":"defineMessages.d.ts","names":[],"sources":["../../src/defineMessages.ts"],"mappings":";;;;;;;;cAWa,uBAAuB;;;;;cAMvB,sBAAsB"}
@@ -3,7 +3,6 @@ import { DictionaryKeys } from "@intlayer/types/module_augmentation";
3
3
  import { GetNestingResult } from "@intlayer/core/interpreter";
4
4
  import { ValidDotPathsFor } from "@intlayer/core/transpiler";
5
5
  import { ReactNode } from "react";
6
-
7
6
  //#region src/dictionaryIntlShape.d.ts
8
7
  /**
9
8
  * The interpreter-resolved content type at dot-path `P` of dictionary `N` —
@@ -1 +1 @@
1
- {"version":3,"file":"dictionaryIntlShape.d.ts","names":[],"sources":["../../src/dictionaryIntlShape.ts"],"mappings":";;;;;;;;;AAI8E;;KAMzE,aAAA,WAAwB,cAAA,OAAqB,gBAAA,CAAiB,CAAA,EAAG,CAAA;;;;;;KAOjE,eAAA,WAA0B,cAAA,OAC7B,aAAA,CAAc,CAAA,EAAG,CAAA,mBAAoB,aAAA,CAAc,CAAA,EAAG,CAAA;;;;;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AA6B,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 +1 @@
1
- {"version":3,"file":"errors.d.ts","names":[],"sources":["../../src/errors.ts"],"mappings":";;AAMA;;;;;aAAY,kBAAA;EACV,YAAA;EACA,qBAAA;EACA,cAAA;EACA,YAAA;EACA,mBAAA;AAAA;;;;;;cAQW,cAAA,SAAuB,KAAA;EAAA,SAClB,IAAA,EAAM,kBAAA;cAEV,IAAA,EAAM,kBAAA,EAAoB,OAAA;AAAA;;;;cAU3B,kBAAA,SAA2B,cAAc;cACxC,OAAA;AAAA;AAXyC;AAUvD;;AAVuD,cAoB1C,kBAAA,SAA2B,cAAc;cACxC,OAAA;AAAA;;;;cASD,gBAAA,SAAyB,cAAc;cACtC,OAAA;AAAA;;;;cASD,uBAAA,SAAgC,cAAc;cAC7C,OAAA;AAAA;AApBe;AAS7B;;AAT6B,cA6BhB,yBAAA,SAAkC,cAAc;cAC/C,OAAA;AAAA"}
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,6 +1,5 @@
1
1
  import { PluginOption } from "vite";
2
2
  import { intlayer } from "vite-intlayer";
3
-
4
3
  //#region src/plugin/index.d.ts
5
4
  /**
6
5
  * A Vite plugin for react-intl compat that wraps vite-intlayer
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;AAwBA;;;;;;;;;;;;;cAAa,mBAAA,GACX,OAAA,GAAU,UAAA,QAAkB,QAAA,SAC3B,YAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;cAwBa,sBAAmB,UACpB,kBAAkB,iBAC3B"}
@@ -1,13 +1,12 @@
1
1
  import { DictionaryKeys } from "@intlayer/types/module_augmentation";
2
2
  import { ValidDotPathsFor } from "@intlayer/core/transpiler";
3
-
4
3
  //#region src/typedMessageIds.d.ts
5
4
  /**
6
5
  * Every valid react-intl message id: `<dictionaryKey>.<dotPath>`, where the
7
6
  * first segment designates the intlayer dictionary. Falls back to `string`
8
7
  * when no dictionary registry is declared (e.g. before the first build).
9
8
  */
10
- type RootMessageIds = string extends DictionaryKeys ? string : { [K in DictionaryKeys]: `${K & string}.${ValidDotPathsFor<K> & string}` }[DictionaryKeys];
9
+ type RootMessageIds = string extends DictionaryKeys ? string : { [K in DictionaryKeys]: `${K & string}.${ValidDotPathsFor<K> & string}`; }[DictionaryKeys];
11
10
  declare global {
12
11
  namespace FormatjsIntl {
13
12
  interface Message {
@@ -20,7 +19,7 @@ declare global {
20
19
  ids: RootMessageIds;
21
20
  }
22
21
  }
23
- } //# sourceMappingURL=typedMessageIds.d.ts.map
22
+ }
24
23
  //#endregion
25
24
  export { RootMessageIds };
26
25
  //# sourceMappingURL=typedMessageIds.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typedMessageIds.d.ts","names":[],"sources":["../../src/typedMessageIds.ts"],"mappings":";;;;;;AAQA;;;KAAY,cAAA,kBAAgC,cAAA,oBAGhC,cAAA,MAAoB,CAAA,aAAc,gBAAA,CAAiB,CAAA,eACzD,cAAA;AAAA,QAEE,MAAA;EAAA,UACI,YAAA;IAAA,UACE,OAAA;MAJM;;;;;;MAWd,GAAA,EAAK,cAAc;IAAA;EAAA;AAAA"}
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,7 +1,6 @@
1
1
  import { DictionaryIntlShape } from "./dictionaryIntlShape.js";
2
2
  import { DictionaryKeys } from "@intlayer/types/module_augmentation";
3
3
  import { Dictionary } from "@intlayer/types/dictionary";
4
-
5
4
  //#region src/useDictionary.d.ts
6
5
  /**
7
6
  * Builds the id lookup of a dictionary-bound intl object.
@@ -25,7 +24,7 @@ declare const createDictionaryLookup: (dictionaryKey: string, content: unknown)
25
24
  * const intl = useDictionary(_abc);
26
25
  * intl.formatMessage({ id: 'home.title' }); // or { id: 'title' } — both typed
27
26
  */
28
- declare const useDictionary: <T extends Dictionary>(dictionary: T) => DictionaryIntlShape<T["key"] & DictionaryKeys>;
27
+ declare const useDictionary: <T extends Dictionary>(dictionary: T) => DictionaryIntlShape<T['key'] & DictionaryKeys>;
29
28
  //#endregion
30
29
  export { createDictionaryLookup, useDictionary };
31
30
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":";;;;;;;AAqBA;;;;;;cAAa,sBAAA,GACV,aAAA,UAAuB,OAAA,eACvB,EAAA;;AAAU;AAsBb;;;;;;;;;;;cAAa,aAAA,aAA2B,UAAA,EACtC,UAAA,EAAY,CAAA,KACX,mBAAA,CAAoB,CAAA,UAAW,cAAA"}
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,7 +1,6 @@
1
1
  import { DictionaryIntlShape } from "./dictionaryIntlShape.js";
2
2
  import { DictionaryKeys, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
3
3
  import { Dictionary } from "@intlayer/types/dictionary";
4
-
5
4
  //#region src/useDictionaryDynamic.d.ts
6
5
  /**
7
6
  * Dynamic dictionary-accepting variant of `useIntl`.
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../src/useDictionaryDynamic.ts"],"mappings":";;;;;;;AAuBA;;;;cAAa,oBAAA,mBACK,UAAA,kBACA,cAAA,EAEhB,iBAAA,EAAmB,mBAAA,OAA0B,OAAA,CAAQ,CAAA,IACrD,GAAA,EAAK,CAAA,KACJ,mBAAA,CAAoB,CAAA"}
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,5 +1,4 @@
1
1
  import { useIntl as useIntl$1 } from "react-intl";
2
-
3
2
  //#region src/useIntl.d.ts
4
3
  /**
5
4
  * Drop-in for react-intl's `useIntl`.
@@ -1 +1 @@
1
- {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../src/useIntl.ts"],"mappings":";;;;;AAuBA;;;;AAUC;;;;;;;;cAVY,OAAA,SAAgB,SAU5B"}
1
+ {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../src/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;cAuBa,gBAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/react-intl",
3
- "version": "9.0.0-canary.17",
3
+ "version": "9.0.0-canary.19",
4
4
  "private": false,
5
5
  "description": "react-intl API adapter for intlayer — drop-in compatibility layer",
6
6
  "keywords": [
@@ -74,25 +74,25 @@
74
74
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
75
75
  },
76
76
  "dependencies": {
77
- "@intlayer/config": "9.0.0-canary.17",
78
- "@intlayer/core": "9.0.0-canary.17",
79
- "@intlayer/dictionaries-entry": "9.0.0-canary.17",
80
- "@intlayer/engine": "9.0.0-canary.17",
81
- "@intlayer/types": "9.0.0-canary.17",
82
- "react-intlayer": "9.0.0-canary.17",
83
- "vite-intlayer": "9.0.0-canary.17"
77
+ "@intlayer/config": "9.0.0-canary.19",
78
+ "@intlayer/core": "9.0.0-canary.19",
79
+ "@intlayer/dictionaries-entry": "9.0.0-canary.19",
80
+ "@intlayer/engine": "9.0.0-canary.19",
81
+ "@intlayer/types": "9.0.0-canary.19",
82
+ "react-intlayer": "9.0.0-canary.19",
83
+ "vite-intlayer": "9.0.0-canary.19"
84
84
  },
85
85
  "devDependencies": {
86
- "@types/node": "25.9.4",
86
+ "@types/node": "26.1.1",
87
87
  "@types/react": "19.1.8",
88
88
  "@utils/ts-config": "1.0.4",
89
89
  "@utils/ts-config-types": "1.0.4",
90
90
  "@utils/tsdown-config": "1.0.4",
91
- "react-intl": "^10.1.13",
91
+ "react-intl": "^10.1.18",
92
92
  "rimraf": "6.1.3",
93
- "tsdown": "0.22.2",
94
- "typescript": "6.0.3",
95
- "vite": "8.1.4",
93
+ "tsdown": "0.22.12",
94
+ "typescript": "7.0.2",
95
+ "vite": "8.1.5",
96
96
  "vitest": "4.1.10"
97
97
  },
98
98
  "peerDependencies": {