@sheet-i18n/react 1.7.1 → 1.7.2
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I18nStore } from '@sheet-i18n/core';
|
|
2
|
-
export
|
|
2
|
+
export { I18nContextState, I18nStore } from '@sheet-i18n/core';
|
|
3
3
|
import * as _sheet_i18n_shared_service from '@sheet-i18n/shared-service';
|
|
4
4
|
import { LocaleStorageManager, IStorageService } from '@sheet-i18n/shared-service';
|
|
5
5
|
export { LocaleStorageManager, IStorageService as Storage, ruleFactory } from '@sheet-i18n/shared-service';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I18nStore } from '@sheet-i18n/core';
|
|
2
|
-
export
|
|
2
|
+
export { I18nContextState, I18nStore } from '@sheet-i18n/core';
|
|
3
3
|
import * as _sheet_i18n_shared_service from '@sheet-i18n/shared-service';
|
|
4
4
|
import { LocaleStorageManager, IStorageService } from '@sheet-i18n/shared-service';
|
|
5
5
|
export { LocaleStorageManager, IStorageService as Storage, ruleFactory } from '@sheet-i18n/shared-service';
|
package/dist/index.js
CHANGED
|
@@ -33,18 +33,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
33
33
|
}
|
|
34
34
|
return to;
|
|
35
35
|
};
|
|
36
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
37
36
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
37
|
|
|
39
38
|
// src/index.ts
|
|
40
39
|
var src_exports = {};
|
|
41
40
|
__export(src_exports, {
|
|
41
|
+
I18nStore: () => import_core2.I18nStore,
|
|
42
42
|
LocaleStorageManager: () => import_shared_service3.LocaleStorageManager,
|
|
43
43
|
createI18nContext: () => createI18nContext,
|
|
44
44
|
ruleFactory: () => import_shared_service3.ruleFactory
|
|
45
45
|
});
|
|
46
46
|
module.exports = __toCommonJS(src_exports);
|
|
47
|
-
|
|
47
|
+
var import_core2 = require("@sheet-i18n/core");
|
|
48
48
|
|
|
49
49
|
// src/createI18nContext.tsx
|
|
50
50
|
var import_shared_utils5 = require("@sheet-i18n/shared-utils");
|
|
@@ -426,8 +426,8 @@ function createI18nContext(i18nStore, plugins) {
|
|
|
426
426
|
var import_shared_service3 = require("@sheet-i18n/shared-service");
|
|
427
427
|
// Annotate the CommonJS export names for ESM import in node:
|
|
428
428
|
0 && (module.exports = {
|
|
429
|
+
I18nStore,
|
|
429
430
|
LocaleStorageManager,
|
|
430
431
|
createI18nContext,
|
|
431
|
-
ruleFactory
|
|
432
|
-
...require("@sheet-i18n/core")
|
|
432
|
+
ruleFactory
|
|
433
433
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -20,7 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
|
|
22
22
|
// src/index.ts
|
|
23
|
-
|
|
23
|
+
import { I18nStore as I18nStore2 } from "@sheet-i18n/core";
|
|
24
24
|
|
|
25
25
|
// src/createI18nContext.tsx
|
|
26
26
|
import { validator as validator5 } from "@sheet-i18n/shared-utils";
|
|
@@ -405,6 +405,7 @@ function createI18nContext(i18nStore, plugins) {
|
|
|
405
405
|
// src/index.ts
|
|
406
406
|
import { ruleFactory, LocaleStorageManager } from "@sheet-i18n/shared-service";
|
|
407
407
|
export {
|
|
408
|
+
I18nStore2 as I18nStore,
|
|
408
409
|
LocaleStorageManager,
|
|
409
410
|
createI18nContext,
|
|
410
411
|
ruleFactory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheet-i18n/react",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "i18n client logic based on react",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"react-intl": "^7.0.4",
|
|
39
39
|
"@sheet-i18n/core": "1.7.0",
|
|
40
|
-
"@sheet-i18n/shared-service": "0.2.0",
|
|
41
40
|
"@sheet-i18n/errors": "1.8.2",
|
|
41
|
+
"@sheet-i18n/shared-service": "0.2.0",
|
|
42
42
|
"@sheet-i18n/shared-utils": "1.8.3",
|
|
43
43
|
"@sheet-i18n/typescript": "0.4.0"
|
|
44
44
|
},
|