tetrons 2.3.56 → 2.3.60

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.
@@ -82,12 +82,14 @@ export default function EditorContent({ apiKey }: EditorContentProps) {
82
82
  ) {
83
83
  return import.meta.env.VITE_TETRONS_API_URL;
84
84
  }
85
+
85
86
  if (
86
87
  typeof process !== "undefined" &&
87
88
  process.env?.NEXT_PUBLIC_TETRONS_API_URL
88
89
  ) {
89
90
  return process.env.NEXT_PUBLIC_TETRONS_API_URL;
90
91
  }
92
+
91
93
  return "https://staging.tetrons.com";
92
94
  }
93
95
 
@@ -39,6 +39,9 @@ __export(index_exports, {
39
39
  });
40
40
  module.exports = __toCommonJS(index_exports);
41
41
 
42
+ // <define:import.meta>
43
+ var define_import_meta_default = { env: { VITE_TETRONS_API_URL: "https://staging.tetrons.com" } };
44
+
42
45
  // src/components/tetrons/EditorContent.tsx
43
46
  var import_react20 = __toESM(require("react"));
44
47
  var import_react21 = require("@tiptap/react");
@@ -16809,7 +16812,6 @@ function TetronsToolbar({
16809
16812
  }
16810
16813
 
16811
16814
  // src/components/tetrons/EditorContent.tsx
16812
- var import_meta = {};
16813
16815
  var lowlight = (0, import_lowlight.createLowlight)();
16814
16816
  lowlight.register("js", javascript);
16815
16817
  lowlight.register("ts", typescript);
@@ -16824,8 +16826,8 @@ function EditorContent({ apiKey }) {
16824
16826
  );
16825
16827
  const wrapperRef = (0, import_react20.useRef)(null);
16826
16828
  function getApiBaseUrl() {
16827
- if (typeof import_meta !== "undefined" && import_meta.env?.VITE_TETRONS_API_URL) {
16828
- return import_meta.env.VITE_TETRONS_API_URL;
16829
+ if (typeof define_import_meta_default !== "undefined" && define_import_meta_default.env?.VITE_TETRONS_API_URL) {
16830
+ return define_import_meta_default.env.VITE_TETRONS_API_URL;
16829
16831
  }
16830
16832
  if (typeof process !== "undefined" && process.env?.NEXT_PUBLIC_TETRONS_API_URL) {
16831
16833
  return process.env.NEXT_PUBLIC_TETRONS_API_URL;
@@ -1,3 +1,6 @@
1
+ // <define:import.meta>
2
+ var define_import_meta_default = { env: { VITE_TETRONS_API_URL: "https://staging.tetrons.com" } };
3
+
1
4
  // src/components/tetrons/EditorContent.tsx
2
5
  import React14, { useEffect as useEffect8, useRef as useRef7, useState as useState9 } from "react";
3
6
  import {
@@ -16830,8 +16833,8 @@ function EditorContent({ apiKey }) {
16830
16833
  );
16831
16834
  const wrapperRef = useRef7(null);
16832
16835
  function getApiBaseUrl() {
16833
- if (typeof import.meta !== "undefined" && import.meta.env?.VITE_TETRONS_API_URL) {
16834
- return import.meta.env.VITE_TETRONS_API_URL;
16836
+ if (typeof define_import_meta_default !== "undefined" && define_import_meta_default.env?.VITE_TETRONS_API_URL) {
16837
+ return define_import_meta_default.env.VITE_TETRONS_API_URL;
16835
16838
  }
16836
16839
  if (typeof process !== "undefined" && process.env?.NEXT_PUBLIC_TETRONS_API_URL) {
16837
16840
  return process.env.NEXT_PUBLIC_TETRONS_API_URL;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "tetrons",
3
- "version": "2.3.56",
3
+ "version": "2.3.60",
4
4
  "description": "A Next.js project written in TypeScript",
5
- "main": "./dist/index.cjs",
6
- "module": "./dist/index.mjs",
5
+ "main": "./dist/index.node.cjs",
6
+ "module": "./dist/index.node.mjs",
7
7
  "types": "./dist/index.d.ts",
8
8
  "scripts": {
9
9
  "dev": "next dev --turbo",
@@ -75,11 +75,16 @@
75
75
  "license": "MIT",
76
76
  "exports": {
77
77
  ".": {
78
- "import": "./dist/index.mjs",
79
- "require": "./dist/index.cjs",
80
- "browser": "./dist/index.browser.js",
81
- "node": "./dist/index.node.js"
82
- },
78
+ "browser": {
79
+ "import": "./dist/index.browser.js"
80
+ },
81
+ "node": {
82
+ "import": "./dist/index.node.mjs",
83
+ "require": "./dist/index.node.cjs"
84
+ },
85
+ "import": "./dist/index.node.mjs",
86
+ "require": "./dist/index.node.cjs"
87
+ },
83
88
  "./style.css": "./dist/styles/tetrons.css",
84
89
  "./app/api/ai-action/route": {
85
90
  "import": "./dist/app/api/ai-action/route.mjs",