tetrons 2.3.66 → 2.3.67

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.
@@ -16837,12 +16837,6 @@ function EditorContent({ apiKey }) {
16837
16837
  null
16838
16838
  );
16839
16839
  const wrapperRef = useRef7(null);
16840
- function getApiBaseUrl() {
16841
- if (typeof process !== "undefined") {
16842
- return process.env.VITE_TETRONS_API_URL || process.env.NEXT_PUBLIC_TETRONS_API_URL || "https://staging.tetrons.com";
16843
- }
16844
- return "https://staging.tetrons.com";
16845
- }
16846
16840
  const API_BASE_URL = getEnv(
16847
16841
  "VITE_TETRONS_API_URL",
16848
16842
  "https://staging.tetrons.com"
@@ -76,18 +76,6 @@ export default function EditorContent({ apiKey }: EditorContentProps) {
76
76
 
77
77
  const wrapperRef = useRef<HTMLDivElement>(null);
78
78
 
79
- function getApiBaseUrl(): string {
80
- if (typeof process !== "undefined") {
81
- return (
82
- process.env.VITE_TETRONS_API_URL ||
83
- process.env.NEXT_PUBLIC_TETRONS_API_URL ||
84
- "https://staging.tetrons.com"
85
- );
86
- }
87
-
88
- return "https://staging.tetrons.com";
89
- }
90
-
91
79
  const API_BASE_URL = getEnv(
92
80
  "VITE_TETRONS_API_URL",
93
81
  "https://staging.tetrons.com"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EditorContent
3
- } from "./chunk-IHAH6ILP.browser.js";
3
+ } from "./chunk-X7AC43AX.browser.js";
4
4
 
5
5
  // src/index.ts
6
6
  var API_VALID = false;
@@ -15,7 +15,7 @@ var _installedAt = null;
15
15
  async function getOrCreateInstallDate() {
16
16
  if (_installedAt) return _installedAt;
17
17
  if (typeof window === "undefined") {
18
- const mod = await import("./index.nodeimpl-U3BMCE2Y.browser.js");
18
+ const mod = await import("./index.nodeimpl-TWE53STQ.browser.js");
19
19
  _installedAt = await mod.getOrCreateInstallDate();
20
20
  } else {
21
21
  const mod = await import("./index.browserimpl-E7NZTX57.browser.js");
@@ -17153,12 +17153,6 @@ function EditorContent({ apiKey }) {
17153
17153
  null
17154
17154
  );
17155
17155
  const wrapperRef = (0, import_react20.useRef)(null);
17156
- function getApiBaseUrl() {
17157
- if (typeof process !== "undefined") {
17158
- return process.env.VITE_TETRONS_API_URL || process.env.NEXT_PUBLIC_TETRONS_API_URL || "https://staging.tetrons.com";
17159
- }
17160
- return "https://staging.tetrons.com";
17161
- }
17162
17156
  const API_BASE_URL = getEnv(
17163
17157
  "VITE_TETRONS_API_URL",
17164
17158
  "https://staging.tetrons.com"
@@ -17182,12 +17182,6 @@ function EditorContent({ apiKey }) {
17182
17182
  null
17183
17183
  );
17184
17184
  const wrapperRef = useRef7(null);
17185
- function getApiBaseUrl() {
17186
- if (typeof process !== "undefined") {
17187
- return process.env.VITE_TETRONS_API_URL || process.env.NEXT_PUBLIC_TETRONS_API_URL || "https://staging.tetrons.com";
17188
- }
17189
- return "https://staging.tetrons.com";
17190
- }
17191
17185
  const API_BASE_URL = getEnv(
17192
17186
  "VITE_TETRONS_API_URL",
17193
17187
  "https://staging.tetrons.com"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EditorContent
3
- } from "./chunk-IHAH6ILP.browser.js";
3
+ } from "./chunk-X7AC43AX.browser.js";
4
4
 
5
5
  // src/index.nodeimpl.ts
6
6
  import fs from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tetrons",
3
- "version": "2.3.66",
3
+ "version": "2.3.67",
4
4
  "description": "A Next.js project written in TypeScript",
5
5
  "main": "./dist/index.node.cjs",
6
6
  "module": "./dist/index.node.mjs",
@@ -75,16 +75,8 @@
75
75
  "license": "MIT",
76
76
  "exports": {
77
77
  ".": {
78
- "import": {
79
- "node": "./dist/index.node.mjs",
80
- "browser": "./dist/index.browser.js",
81
- "default": "./dist/index.node.mjs"
82
- },
83
- "require": {
84
- "node": "./dist/index.node.cjs",
85
- "browser": "./dist/index.browser.js",
86
- "default": "./dist/index.node.cjs"
87
- }
78
+ "import": "./dist/index.node.mjs",
79
+ "require": "./dist/index.node.cjs"
88
80
  },
89
81
  "./browser": {
90
82
  "import": "./dist/index.browser.js",