@sheet-i18n/react-client 1.1.0-canary.5 → 1.1.0

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/index.d.mts CHANGED
@@ -22,13 +22,13 @@ type UseTranslationReturn<TSupportedLocales extends readonly string[], TLocaleSe
22
22
  };
23
23
  };
24
24
 
25
- type IntlProviderProps<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TTypeSafe extends boolean = true> = {
25
+ type IntlProviderProps<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TTypeSafe extends boolean = false> = {
26
26
  i18nStore: I18nStore<TSupportedLocales, TLocaleSet, TTypeSafe>;
27
27
  currentLocale: TSupportedLocales[number];
28
28
  children: React.ReactNode;
29
29
  };
30
30
 
31
- declare function createI18nContext<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TTypeSafe extends boolean = true>(i18nStore: I18nStore<TSupportedLocales, TLocaleSet, TTypeSafe>): {
31
+ declare function createI18nContext<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TTypeSafe extends boolean = false>(i18nStore: I18nStore<TSupportedLocales, TLocaleSet, TTypeSafe>): {
32
32
  IntlProvider: ({ currentLocale, children, }: Omit<IntlProviderProps<TSupportedLocales, TLocaleSet>, "currentLocale" | "i18nStore"> & {
33
33
  currentLocale?: string;
34
34
  children?: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -22,13 +22,13 @@ type UseTranslationReturn<TSupportedLocales extends readonly string[], TLocaleSe
22
22
  };
23
23
  };
24
24
 
25
- type IntlProviderProps<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TTypeSafe extends boolean = true> = {
25
+ type IntlProviderProps<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TTypeSafe extends boolean = false> = {
26
26
  i18nStore: I18nStore<TSupportedLocales, TLocaleSet, TTypeSafe>;
27
27
  currentLocale: TSupportedLocales[number];
28
28
  children: React.ReactNode;
29
29
  };
30
30
 
31
- declare function createI18nContext<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TTypeSafe extends boolean = true>(i18nStore: I18nStore<TSupportedLocales, TLocaleSet, TTypeSafe>): {
31
+ declare function createI18nContext<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TTypeSafe extends boolean = false>(i18nStore: I18nStore<TSupportedLocales, TLocaleSet, TTypeSafe>): {
32
32
  IntlProvider: ({ currentLocale, children, }: Omit<IntlProviderProps<TSupportedLocales, TLocaleSet>, "currentLocale" | "i18nStore"> & {
33
33
  currentLocale?: string;
34
34
  children?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheet-i18n/react-client",
3
- "version": "1.1.0-canary.5",
3
+ "version": "1.1.0",
4
4
  "description": "a client package for react modules used by sheet-i18n",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "license": "ISC",
27
27
  "dependencies": {
28
- "@sheet-i18n/react-core": "1.1.0-canary.3",
29
- "@sheet-i18n/errors": "1.4.0-canary.3",
30
- "@sheet-i18n/shared-utils": "1.4.0-canary.3"
28
+ "@sheet-i18n/shared-utils": "1.4.0",
29
+ "@sheet-i18n/errors": "1.4.0",
30
+ "@sheet-i18n/react-core": "1.1.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/react": "^19.0.2",
34
34
  "@types/react-dom": "^19.0.2",
35
35
  "react": "^18.2.0",
36
36
  "react-intl": "^7.0.4",
37
- "@sheet-i18n/typescript-config": "1.4.0-canary.3"
37
+ "@sheet-i18n/typescript-config": "1.4.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "^18 || ^19",