@sheet-i18n/react 1.7.2 → 1.7.3

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