@react-aria/i18n 3.13.0 → 3.13.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.
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/i18n/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {I18nProvider, useLocale, isRTL} from 'react-aria/I18nProvider';\n\nexport {useMessageFormatter} from './useMessageFormatter';\nexport {useLocalizedStringFormatter, useLocalizedStringDictionary} from 'react-aria/useLocalizedStringFormatter';\nexport {useListFormatter} from 'react-aria/useListFormatter';\nexport {useDateFormatter} from 'react-aria/useDateFormatter';\nexport {useNumberFormatter} from 'react-aria/useNumberFormatter';\nexport {useCollator} from 'react-aria/useCollator';\nexport {useFilter} from 'react-aria/useFilter';\nexport type {FormatMessage} from './useMessageFormatter';\nexport type {I18nProviderProps, Locale} from 'react-aria/I18nProvider';\nexport type {DateFormatterOptions} from 'react-aria/useDateFormatter';\nexport type {Filter} from 'react-aria/useFilter';\nexport type {LocalizedStringFormatter} from '@internationalized/string';\nexport type {LocalizedStrings} from '@internationalized/message';\nexport type {DateFormatter} from '@internationalized/date';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/i18n/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {I18nProvider, useLocale, isRTL} from 'react-aria/I18nProvider';\n\nexport {useMessageFormatter} from './useMessageFormatter';\nexport {\n useLocalizedStringFormatter,\n useLocalizedStringDictionary\n} from 'react-aria/useLocalizedStringFormatter';\nexport {useListFormatter} from 'react-aria/useListFormatter';\nexport {useDateFormatter} from 'react-aria/useDateFormatter';\nexport {useNumberFormatter} from 'react-aria/useNumberFormatter';\nexport {useCollator} from 'react-aria/useCollator';\nexport {useFilter} from 'react-aria/useFilter';\nexport type {FormatMessage} from './useMessageFormatter';\nexport type {I18nProviderProps, Locale} from 'react-aria/I18nProvider';\nexport type {DateFormatterOptions} from 'react-aria/useDateFormatter';\nexport type {Filter} from 'react-aria/useFilter';\nexport type {LocalizedStringFormatter} from '@internationalized/string';\nexport type {LocalizedStrings} from '@internationalized/message';\nexport type {DateFormatter} from '@internationalized/date';\n"],"names":[],"version":3,"file":"main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/i18n/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {I18nProvider, useLocale, isRTL} from 'react-aria/I18nProvider';\n\nexport {useMessageFormatter} from './useMessageFormatter';\nexport {useLocalizedStringFormatter, useLocalizedStringDictionary} from 'react-aria/useLocalizedStringFormatter';\nexport {useListFormatter} from 'react-aria/useListFormatter';\nexport {useDateFormatter} from 'react-aria/useDateFormatter';\nexport {useNumberFormatter} from 'react-aria/useNumberFormatter';\nexport {useCollator} from 'react-aria/useCollator';\nexport {useFilter} from 'react-aria/useFilter';\nexport type {FormatMessage} from './useMessageFormatter';\nexport type {I18nProviderProps, Locale} from 'react-aria/I18nProvider';\nexport type {DateFormatterOptions} from 'react-aria/useDateFormatter';\nexport type {Filter} from 'react-aria/useFilter';\nexport type {LocalizedStringFormatter} from '@internationalized/string';\nexport type {LocalizedStrings} from '@internationalized/message';\nexport type {DateFormatter} from '@internationalized/date';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/i18n/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {I18nProvider, useLocale, isRTL} from 'react-aria/I18nProvider';\n\nexport {useMessageFormatter} from './useMessageFormatter';\nexport {\n useLocalizedStringFormatter,\n useLocalizedStringDictionary\n} from 'react-aria/useLocalizedStringFormatter';\nexport {useListFormatter} from 'react-aria/useListFormatter';\nexport {useDateFormatter} from 'react-aria/useDateFormatter';\nexport {useNumberFormatter} from 'react-aria/useNumberFormatter';\nexport {useCollator} from 'react-aria/useCollator';\nexport {useFilter} from 'react-aria/useFilter';\nexport type {FormatMessage} from './useMessageFormatter';\nexport type {I18nProviderProps, Locale} from 'react-aria/I18nProvider';\nexport type {DateFormatterOptions} from 'react-aria/useDateFormatter';\nexport type {Filter} from 'react-aria/useFilter';\nexport type {LocalizedStringFormatter} from '@internationalized/string';\nexport type {LocalizedStrings} from '@internationalized/message';\nexport type {DateFormatter} from '@internationalized/date';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAQD,MAAM,8BAAQ,IAAI;AAClB,SAAS,0CAAoB,OAAyB;IACpD,IAAI,aAAa,4BAAM,GAAG,CAAC;IAC3B,IAAI,CAAC,YAAY;QACf,aAAa,IAAI,CAAA,GAAA,iDAAgB,EAAE;QACnC,4BAAM,GAAG,CAAC,SAAS;IACrB;IAEA,OAAO;AACT;AAQO,SAAS,0CAAoB,OAAyB;IAC3D,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,sCAAQ;IACvB,IAAI,aAAa,CAAA,GAAA,oBAAM,EAAE,IAAM,0CAAoB,UAAU;QAAC;KAAQ;IACtE,IAAI,YAAY,CAAA,GAAA,oBAAM,EAAE,IAAM,IAAI,CAAA,GAAA,gDAAe,EAAE,QAAQ,aAAa;QAAC;QAAQ;KAAW;IAC5F,OAAO,CAAA,GAAA,wBAAU,EAAE,CAAC,KAAK,YAAc,UAAU,MAAM,CAAC,KAAK,YAAY;QAAC;KAAU;AACtF","sources":["packages/@react-aria/i18n/src/useMessageFormatter.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStrings, MessageDictionary, MessageFormatter} from '@internationalized/message';\nimport {useCallback, useMemo} from 'react';\nimport {useLocale} from 'react-aria/I18nProvider';\n\nexport type FormatMessage = (key: string, variables?: {[key: string]: any}) => string;\n\nconst cache = new WeakMap();\nfunction getCachedDictionary(strings: LocalizedStrings) {\n let dictionary = cache.get(strings);\n if (!dictionary) {\n dictionary = new MessageDictionary(strings);\n cache.set(strings, dictionary);\n }\n\n return dictionary;\n}\n\n/**\n * Handles formatting ICU Message strings to create localized strings for the current locale.\n * Automatically updates when the locale changes, and handles caching of messages for performance.\n * @param strings - A mapping of languages to strings by key.\n * @deprecated - use useLocalizedStringFormatter instead.\n */\nexport function useMessageFormatter(strings: LocalizedStrings): FormatMessage {\n let {locale} = useLocale();\n let dictionary = useMemo(() => getCachedDictionary(strings), [strings]);\n let formatter = useMemo(() => new MessageFormatter(locale, dictionary), [locale, dictionary]);\n return useCallback((key, variables) => formatter.format(key, variables), [formatter]);\n}\n"],"names":[],"version":3,"file":"useMessageFormatter.cjs.map"}
1
+ {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAQD,MAAM,8BAAQ,IAAI;AAClB,SAAS,0CAAoB,OAAyB;IACpD,IAAI,aAAa,4BAAM,GAAG,CAAC;IAC3B,IAAI,CAAC,YAAY;QACf,aAAa,IAAI,CAAA,GAAA,iDAAgB,EAAE;QACnC,4BAAM,GAAG,CAAC,SAAS;IACrB;IAEA,OAAO;AACT;AASO,SAAS,0CAAoB,OAAyB;IAC3D,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,sCAAQ;IACvB,IAAI,aAAa,CAAA,GAAA,oBAAM,EAAE,IAAM,0CAAoB,UAAU;QAAC;KAAQ;IACtE,IAAI,YAAY,CAAA,GAAA,oBAAM,EAAE,IAAM,IAAI,CAAA,GAAA,gDAAe,EAAE,QAAQ,aAAa;QAAC;QAAQ;KAAW;IAC5F,OAAO,CAAA,GAAA,wBAAU,EAAE,CAAC,KAAK,YAAc,UAAU,MAAM,CAAC,KAAK,YAAY;QAAC;KAAU;AACtF","sources":["packages/@react-aria/i18n/src/useMessageFormatter.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStrings, MessageDictionary, MessageFormatter} from '@internationalized/message';\nimport {useCallback, useMemo} from 'react';\nimport {useLocale} from 'react-aria/I18nProvider';\n\nexport type FormatMessage = (key: string, variables?: {[key: string]: any}) => string;\n\nconst cache = new WeakMap();\nfunction getCachedDictionary(strings: LocalizedStrings) {\n let dictionary = cache.get(strings);\n if (!dictionary) {\n dictionary = new MessageDictionary(strings);\n cache.set(strings, dictionary);\n }\n\n return dictionary;\n}\n\n/**\n * Handles formatting ICU Message strings to create localized strings for the current locale.\n * Automatically updates when the locale changes, and handles caching of messages for performance.\n *\n * @deprecated - use useLocalizedStringFormatter instead.\n * @param strings - A mapping of languages to strings by key.\n */\nexport function useMessageFormatter(strings: LocalizedStrings): FormatMessage {\n let {locale} = useLocale();\n let dictionary = useMemo(() => getCachedDictionary(strings), [strings]);\n let formatter = useMemo(() => new MessageFormatter(locale, dictionary), [locale, dictionary]);\n return useCallback((key, variables) => formatter.format(key, variables), [formatter]);\n}\n"],"names":[],"version":3,"file":"useMessageFormatter.cjs.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAQD,MAAM,8BAAQ,IAAI;AAClB,SAAS,0CAAoB,OAAyB;IACpD,IAAI,aAAa,4BAAM,GAAG,CAAC;IAC3B,IAAI,CAAC,YAAY;QACf,aAAa,IAAI,CAAA,GAAA,wBAAgB,EAAE;QACnC,4BAAM,GAAG,CAAC,SAAS;IACrB;IAEA,OAAO;AACT;AAQO,SAAS,0CAAoB,OAAyB;IAC3D,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IACvB,IAAI,aAAa,CAAA,GAAA,cAAM,EAAE,IAAM,0CAAoB,UAAU;QAAC;KAAQ;IACtE,IAAI,YAAY,CAAA,GAAA,cAAM,EAAE,IAAM,IAAI,CAAA,GAAA,uBAAe,EAAE,QAAQ,aAAa;QAAC;QAAQ;KAAW;IAC5F,OAAO,CAAA,GAAA,kBAAU,EAAE,CAAC,KAAK,YAAc,UAAU,MAAM,CAAC,KAAK,YAAY;QAAC;KAAU;AACtF","sources":["packages/@react-aria/i18n/src/useMessageFormatter.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStrings, MessageDictionary, MessageFormatter} from '@internationalized/message';\nimport {useCallback, useMemo} from 'react';\nimport {useLocale} from 'react-aria/I18nProvider';\n\nexport type FormatMessage = (key: string, variables?: {[key: string]: any}) => string;\n\nconst cache = new WeakMap();\nfunction getCachedDictionary(strings: LocalizedStrings) {\n let dictionary = cache.get(strings);\n if (!dictionary) {\n dictionary = new MessageDictionary(strings);\n cache.set(strings, dictionary);\n }\n\n return dictionary;\n}\n\n/**\n * Handles formatting ICU Message strings to create localized strings for the current locale.\n * Automatically updates when the locale changes, and handles caching of messages for performance.\n * @param strings - A mapping of languages to strings by key.\n * @deprecated - use useLocalizedStringFormatter instead.\n */\nexport function useMessageFormatter(strings: LocalizedStrings): FormatMessage {\n let {locale} = useLocale();\n let dictionary = useMemo(() => getCachedDictionary(strings), [strings]);\n let formatter = useMemo(() => new MessageFormatter(locale, dictionary), [locale, dictionary]);\n return useCallback((key, variables) => formatter.format(key, variables), [formatter]);\n}\n"],"names":[],"version":3,"file":"useMessageFormatter.js.map"}
1
+ {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAQD,MAAM,8BAAQ,IAAI;AAClB,SAAS,0CAAoB,OAAyB;IACpD,IAAI,aAAa,4BAAM,GAAG,CAAC;IAC3B,IAAI,CAAC,YAAY;QACf,aAAa,IAAI,CAAA,GAAA,wBAAgB,EAAE;QACnC,4BAAM,GAAG,CAAC,SAAS;IACrB;IAEA,OAAO;AACT;AASO,SAAS,0CAAoB,OAAyB;IAC3D,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IACvB,IAAI,aAAa,CAAA,GAAA,cAAM,EAAE,IAAM,0CAAoB,UAAU;QAAC;KAAQ;IACtE,IAAI,YAAY,CAAA,GAAA,cAAM,EAAE,IAAM,IAAI,CAAA,GAAA,uBAAe,EAAE,QAAQ,aAAa;QAAC;QAAQ;KAAW;IAC5F,OAAO,CAAA,GAAA,kBAAU,EAAE,CAAC,KAAK,YAAc,UAAU,MAAM,CAAC,KAAK,YAAY;QAAC;KAAU;AACtF","sources":["packages/@react-aria/i18n/src/useMessageFormatter.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStrings, MessageDictionary, MessageFormatter} from '@internationalized/message';\nimport {useCallback, useMemo} from 'react';\nimport {useLocale} from 'react-aria/I18nProvider';\n\nexport type FormatMessage = (key: string, variables?: {[key: string]: any}) => string;\n\nconst cache = new WeakMap();\nfunction getCachedDictionary(strings: LocalizedStrings) {\n let dictionary = cache.get(strings);\n if (!dictionary) {\n dictionary = new MessageDictionary(strings);\n cache.set(strings, dictionary);\n }\n\n return dictionary;\n}\n\n/**\n * Handles formatting ICU Message strings to create localized strings for the current locale.\n * Automatically updates when the locale changes, and handles caching of messages for performance.\n *\n * @deprecated - use useLocalizedStringFormatter instead.\n * @param strings - A mapping of languages to strings by key.\n */\nexport function useMessageFormatter(strings: LocalizedStrings): FormatMessage {\n let {locale} = useLocale();\n let dictionary = useMemo(() => getCachedDictionary(strings), [strings]);\n let formatter = useMemo(() => new MessageFormatter(locale, dictionary), [locale, dictionary]);\n return useCallback((key, variables) => formatter.format(key, variables), [formatter]);\n}\n"],"names":[],"version":3,"file":"useMessageFormatter.js.map"}
@@ -5,7 +5,8 @@ export type FormatMessage = (key: string, variables?: {
5
5
  /**
6
6
  * Handles formatting ICU Message strings to create localized strings for the current locale.
7
7
  * Automatically updates when the locale changes, and handles caching of messages for performance.
8
- * @param strings - A mapping of languages to strings by key.
8
+ *
9
9
  * @deprecated - use useLocalizedStringFormatter instead.
10
+ * @param strings - A mapping of languages to strings by key.
10
11
  */
11
12
  export declare function useMessageFormatter(strings: LocalizedStrings): FormatMessage;
package/package.json CHANGED
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "name": "@react-aria/i18n",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/adobe/react-spectrum"
9
+ },
10
+ "source": "src/index.ts",
11
+ "files": [
12
+ "dist",
13
+ "src",
14
+ "server"
15
+ ],
16
+ "sideEffects": false,
6
17
  "main": "dist/main.js",
7
18
  "module": "dist/module.js",
19
+ "types": "dist/types/src/index.d.ts",
8
20
  "exports": {
9
21
  ".": {
10
22
  "source": "./src/index.ts",
@@ -19,10 +31,26 @@
19
31
  },
20
32
  "./package.json": "./package.json"
21
33
  },
22
- "server-module": "server/index.mjs",
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "dependencies": {
38
+ "@internationalized/date": "^3.12.1",
39
+ "@internationalized/message": "^3.1.9",
40
+ "@internationalized/string": "^3.2.8",
41
+ "@swc/helpers": "^0.5.0",
42
+ "react-aria": "^3.48.0"
43
+ },
44
+ "devDependencies": {
45
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
46
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
50
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
51
+ },
23
52
  "server-main": "server/index.js",
24
- "types": "dist/types/src/index.d.ts",
25
- "source": "src/index.ts",
53
+ "server-module": "server/index.mjs",
26
54
  "targets": {
27
55
  "types": false,
28
56
  "server-module": {
@@ -38,29 +66,5 @@
38
66
  "includeNodeModules": false
39
67
  }
40
68
  },
41
- "files": [
42
- "dist",
43
- "src",
44
- "server"
45
- ],
46
- "sideEffects": false,
47
- "repository": {
48
- "type": "git",
49
- "url": "https://github.com/adobe/react-spectrum"
50
- },
51
- "dependencies": {
52
- "@internationalized/date": "^3.12.1",
53
- "@internationalized/message": "^3.1.9",
54
- "@internationalized/string": "^3.2.8",
55
- "@swc/helpers": "^0.5.0",
56
- "react-aria": "3.48.0"
57
- },
58
- "peerDependencies": {
59
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
60
- "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
61
- },
62
- "publishConfig": {
63
- "access": "public"
64
- },
65
- "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
69
+ "gitHead": "3577a20859b9585a000010c720f6ee39c1c588cc"
66
70
  }
@@ -1 +1 @@
1
- {"mappings":"","sources":["packages/@react-aria/i18n/src/server.ts"],"sourcesContent":["export {PackageLocalizationProvider, getPackageLocalizationScript} from 'react-aria/private/i18n/server';\n"],"names":[],"version":3,"file":"index.js.map"}
1
+ {"mappings":"","sources":["packages/@react-aria/i18n/src/server.ts"],"sourcesContent":["export {\n PackageLocalizationProvider,\n getPackageLocalizationScript\n} from 'react-aria/private/i18n/server';\n"],"names":[],"version":3,"file":"index.js.map"}
@@ -1 +1 @@
1
- {"mappings":"","sources":["packages/@react-aria/i18n/src/server.ts"],"sourcesContent":["export {PackageLocalizationProvider, getPackageLocalizationScript} from 'react-aria/private/i18n/server';\n"],"names":[],"version":3,"file":"index.mjs.map"}
1
+ {"mappings":"","sources":["packages/@react-aria/i18n/src/server.ts"],"sourcesContent":["export {\n PackageLocalizationProvider,\n getPackageLocalizationScript\n} from 'react-aria/private/i18n/server';\n"],"names":[],"version":3,"file":"index.mjs.map"}
package/src/index.ts CHANGED
@@ -13,7 +13,10 @@
13
13
  export {I18nProvider, useLocale, isRTL} from 'react-aria/I18nProvider';
14
14
 
15
15
  export {useMessageFormatter} from './useMessageFormatter';
16
- export {useLocalizedStringFormatter, useLocalizedStringDictionary} from 'react-aria/useLocalizedStringFormatter';
16
+ export {
17
+ useLocalizedStringFormatter,
18
+ useLocalizedStringDictionary
19
+ } from 'react-aria/useLocalizedStringFormatter';
17
20
  export {useListFormatter} from 'react-aria/useListFormatter';
18
21
  export {useDateFormatter} from 'react-aria/useDateFormatter';
19
22
  export {useNumberFormatter} from 'react-aria/useNumberFormatter';
package/src/server.ts CHANGED
@@ -1 +1,4 @@
1
- export {PackageLocalizationProvider, getPackageLocalizationScript} from 'react-aria/private/i18n/server';
1
+ export {
2
+ PackageLocalizationProvider,
3
+ getPackageLocalizationScript
4
+ } from 'react-aria/private/i18n/server';
@@ -30,8 +30,9 @@ function getCachedDictionary(strings: LocalizedStrings) {
30
30
  /**
31
31
  * Handles formatting ICU Message strings to create localized strings for the current locale.
32
32
  * Automatically updates when the locale changes, and handles caching of messages for performance.
33
- * @param strings - A mapping of languages to strings by key.
33
+ *
34
34
  * @deprecated - use useLocalizedStringFormatter instead.
35
+ * @param strings - A mapping of languages to strings by key.
35
36
  */
36
37
  export function useMessageFormatter(strings: LocalizedStrings): FormatMessage {
37
38
  let {locale} = useLocale();