@micromag/intl 0.4.37 → 0.4.38

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 (2) hide show
  1. package/es/index.d.ts +8 -6
  2. package/package.json +3 -3
package/es/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
2
3
 
3
4
  declare class IntlManager {
4
5
  constructor();
@@ -11,13 +12,14 @@ declare class IntlManager {
11
12
  declare const LocalesContext: any;
12
13
  declare const useLocales: () => unknown;
13
14
  declare const useOtherLocales: () => any;
14
- declare function IntlProvider({ intlManager, locale, locales, children, extraMessages, }: {
15
+ interface IntlProviderProps {
15
16
  intlManager?: IntlManager;
16
- locale?: any;
17
- locales?: any;
18
- children?: any;
19
- extraMessages?: any;
20
- }): react_jsx_runtime.JSX.Element;
17
+ locale?: string;
18
+ locales?: string[];
19
+ extraMessages?: Record<string, string>;
20
+ children?: React.ReactNode;
21
+ }
22
+ declare function IntlProvider({ intlManager, locale, locales, children, extraMessages, }: IntlProviderProps): react_jsx_runtime.JSX.Element;
21
23
 
22
24
  declare const intlManager: IntlManager;
23
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/intl",
3
- "version": "0.4.37",
3
+ "version": "0.4.38",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -73,7 +73,7 @@
73
73
  "dependencies": {
74
74
  "@babel/runtime": "^7.28.6",
75
75
  "@formatjs/cli": "^6.2.7",
76
- "@micromag/core": "^0.4.37",
76
+ "@micromag/core": "^0.4.38",
77
77
  "commander": "^12.0.0",
78
78
  "fs-extra": "^11.2.0",
79
79
  "gettext-parser": "^7.0.1",
@@ -90,6 +90,6 @@
90
90
  "access": "public",
91
91
  "registry": "https://registry.npmjs.org/"
92
92
  },
93
- "gitHead": "03c7d78fb0745377eddbb04f6c7dfaca8aa42381",
93
+ "gitHead": "e984a8b97d5c87914dd4844ff29628a5690edd6f",
94
94
  "types": "es/index.d.ts"
95
95
  }