sheet-i18n 0.2.5-canary.3 → 0.2.5-canary.4

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/README.md CHANGED
@@ -30,7 +30,7 @@ This is the core package for sheet-based translations. You can use it to work wi
30
30
  The **server-side exporter** subpackage allows you to interact with Google Sheets and export translations directly into your project. This is primarily used in server-side environments, such as Next.js API routes or other backend frameworks, where you want to fetch and store translations from a Google Spreadsheet to be served to clients or used within your server application.
31
31
 
32
32
  ```jsx
33
- import { googleSheetExporter } from 'sheet-i18n';
33
+ import { googleSheetExporter } from 'sheet-i18n/exporter';
34
34
 
35
35
  const exporter = await googleSheetExporter({
36
36
  credentials: {
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ import '@sheet-i18n/react';
1
2
  import '@sheet-i18n/exporter';
@@ -1,3 +1 @@
1
- declare const test = "I will add react package soon!";
2
-
3
- export { test };
1
+ export * from '@sheet-i18n/react';
@@ -3,10 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
6
  var __copyProps = (to, from, except, desc) => {
11
7
  if (from && typeof from === "object" || typeof from === "function") {
12
8
  for (let key of __getOwnPropNames(from))
@@ -15,16 +11,14 @@ var __copyProps = (to, from, except, desc) => {
15
11
  }
16
12
  return to;
17
13
  };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
16
 
20
17
  // src/react/index.ts
21
18
  var react_exports = {};
22
- __export(react_exports, {
23
- test: () => test
24
- });
25
19
  module.exports = __toCommonJS(react_exports);
26
- var test = "I will add react package soon!";
20
+ __reExport(react_exports, require("@sheet-i18n/react"), module.exports);
27
21
  // Annotate the CommonJS export names for ESM import in node:
28
22
  0 && (module.exports = {
29
- test
23
+ ...require("@sheet-i18n/react")
30
24
  });
@@ -1,5 +1,2 @@
1
1
  // src/react/index.ts
2
- var test = "I will add react package soon!";
3
- export {
4
- test
5
- };
2
+ export * from "@sheet-i18n/react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sheet-i18n",
3
- "version": "0.2.5-canary.3",
3
+ "version": "0.2.5-canary.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -32,7 +32,8 @@
32
32
  },
33
33
  "license": "ISC",
34
34
  "dependencies": {
35
- "@sheet-i18n/exporter": "0.2.1"
35
+ "@sheet-i18n/exporter": "0.2.1",
36
+ "@sheet-i18n/react": "0.1.0"
36
37
  },
37
38
  "devDependencies": {
38
39
  "tsup": "^6.0.0",