@testsmith/api-spector 0.6.7 → 0.6.8

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/out/main/index.js CHANGED
@@ -5943,7 +5943,7 @@ function isNewer(a, b) {
5943
5943
  return a2 > b2;
5944
5944
  }
5945
5945
  async function checkForUpdate() {
5946
- const current = "0.6.7";
5946
+ const current = "0.6.8";
5947
5947
  try {
5948
5948
  const res = await fetch(REGISTRY_URL, { signal: AbortSignal.timeout(4e3) });
5949
5949
  if (!res.ok) return null;
@@ -495,7 +495,7 @@ async function main() {
495
495
  } else if (!envName && workspace.settings?.defaultEnvironment && !env) {
496
496
  console.warn(cliCommon.color(`Warning: default environment "${workspace.settings.defaultEnvironment}" not found. Running without environment.`, cliCommon.C.yellow));
497
497
  }
498
- const version = `v${"0.6.7"}`;
498
+ const version = `v${"0.6.8"}`;
499
499
  console.log("");
500
500
  console.log(cliCommon.color(" API Test Runner" + (version ? ` ${version}` : ""), cliCommon.C.bold, cliCommon.C.white));
501
501
  console.log(cliCommon.color(` Workspace: ${wsPath}`, cliCommon.C.gray));
@@ -1,5 +1,5 @@
1
1
  import { l as linter, E as EditorView, L as LanguageSupport, e as LRLanguage, s as styleTags, i as indentNodeProp, f as delimitedIndent, m as foldNodeProp, n as foldInside, S as StateField, p as LRParser, q as StateEffect, u as tags, r as reactExports, j as jsxRuntimeExports, c as ReactCodeMirror, o as oneDark, b as json } from "./codemirror-F6m3Hm1M.js";
2
- import { u as useT, a as useStore, b as useActiveEnvironment } from "./index-p_0EPamJ.js";
2
+ import { u as useT, a as useStore, b as useActiveEnvironment } from "./index-BRHOhi5S.js";
3
3
  import "./ajv-2MAg6kGF.js";
4
4
  function devAssert(condition, message) {
5
5
  const booleanCondition = Boolean(condition);
@@ -1,5 +1,5 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports, c as ReactCodeMirror, o as oneDark, x as xml } from "./codemirror-F6m3Hm1M.js";
2
- import { u as useT, c as btnPrimaryCls, d as commentKeymap } from "./index-p_0EPamJ.js";
2
+ import { u as useT, c as btnPrimaryCls, d as commentKeymap } from "./index-BRHOhi5S.js";
3
3
  import "./ajv-2MAg6kGF.js";
4
4
  const SOAP_11_CONTENT_TYPE = "text/xml; charset=utf-8";
5
5
  const SOAP_12_CONTENT_TYPE = "application/soap+xml; charset=utf-8";
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./GraphQLEditor-CJAXPsZk.js","./codemirror-F6m3Hm1M.js","./ajv-2MAg6kGF.js","./SoapEditor-CE9-tMh6.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./GraphQLEditor-ZFBdIcXA.js","./codemirror-F6m3Hm1M.js","./ajv-2MAg6kGF.js","./SoapEditor-B9W4JxTQ.js"])))=>i.map(i=>d[i]);
2
2
  import { r as reactExports, g as getDefaultExportFromCjs, R as React$2, a as autocompletion, h as hoverTooltip, j as jsxRuntimeExports, k as keymap, t as toggleComment, x as xml, b as json, c as ReactCodeMirror, o as oneDark, d as javascript } from "./codemirror-F6m3Hm1M.js";
3
3
  import { A as Ajv } from "./ajv-2MAg6kGF.js";
4
4
  var client = { exports: {} };
@@ -27438,8 +27438,8 @@ function jsonWithComments() {
27438
27438
  function xmlWithComments() {
27439
27439
  return [xml(), commentKeymap];
27440
27440
  }
27441
- const GraphQLEditor = reactExports.lazy(() => __vitePreload(() => import("./GraphQLEditor-CJAXPsZk.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url).then((m) => ({ default: m.GraphQLEditor })));
27442
- const SoapEditor = reactExports.lazy(() => __vitePreload(() => import("./SoapEditor-CE9-tMh6.js"), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url).then((m) => ({ default: m.SoapEditor })));
27441
+ const GraphQLEditor = reactExports.lazy(() => __vitePreload(() => import("./GraphQLEditor-ZFBdIcXA.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url).then((m) => ({ default: m.GraphQLEditor })));
27442
+ const SoapEditor = reactExports.lazy(() => __vitePreload(() => import("./SoapEditor-B9W4JxTQ.js"), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url).then((m) => ({ default: m.SoapEditor })));
27443
27443
  function BodyTab({ request: request2, onChange }) {
27444
27444
  const t = useT();
27445
27445
  const editorFallback = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 text-xs text-surface-500", children: t("Loading editor…") });
@@ -28373,7 +28373,7 @@ function renderMarkdown(md) {
28373
28373
  }
28374
28374
  function DocsEditor({ value: value2, onChange, placeholder, onGenerate, aiAvailable }) {
28375
28375
  const t = useT();
28376
- const [mode, setMode] = reactExports.useState("write");
28376
+ const [mode, setMode] = reactExports.useState(value2.trim() ? "preview" : "write");
28377
28377
  const [generating, setGenerating] = reactExports.useState(false);
28378
28378
  const [error2, setError] = reactExports.useState(null);
28379
28379
  const taRef = reactExports.useRef(null);
@@ -32600,7 +32600,7 @@ function WelcomeScreen() {
32600
32600
  )
32601
32601
  ] }),
32602
32602
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-surface-400 text-sm max-w-sm", children: t("Local-first API testing with Robot Framework & Playwright code generation. Secrets stay on your machine.") }),
32603
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[11px] mt-3", style: { color: "var(--text-muted)" }, children: t("version :version", { version: "0.6.7" }) })
32603
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[11px] mt-3", style: { color: "var(--text-muted)" }, children: t("version :version", { version: "0.6.8" }) })
32604
32604
  ] }),
32605
32605
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-3 w-64", children: [
32606
32606
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -41380,7 +41380,6 @@ function IconGit() {
41380
41380
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M6 8.5 C6 13 18 10 18 8.5" })
41381
41381
  ] });
41382
41382
  }
41383
- const WELCOME_SCREEN_DELAY_MS = 1500;
41384
41383
  function ActivityBarBtn({
41385
41384
  active: active2,
41386
41385
  onClick,
@@ -41523,14 +41522,6 @@ function App() {
41523
41522
  window.removeEventListener("mouseup", onMouseUp);
41524
41523
  };
41525
41524
  }, []);
41526
- reactExports.useEffect(() => {
41527
- const id = setTimeout(() => {
41528
- electron.getLastWorkspace().then((result) => {
41529
- if (result) applyWorkspace(result.workspace, result.workspacePath);
41530
- });
41531
- }, WELCOME_SCREEN_DELAY_MS);
41532
- return () => clearTimeout(id);
41533
- }, [applyWorkspace]);
41534
41525
  reactExports.useEffect(() => {
41535
41526
  electron.onOpenFromGit(async (repoUrl) => {
41536
41527
  try {
@@ -41636,7 +41627,7 @@ function App() {
41636
41627
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#6aa3c8" }, children: "Spector" }),
41637
41628
  /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "ml-2 text-[10px] font-normal opacity-50", children: [
41638
41629
  "v",
41639
- "0.6.7"
41630
+ "0.6.8"
41640
41631
  ] }),
41641
41632
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mx-2 opacity-30", children: "·" }),
41642
41633
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -5,7 +5,7 @@
5
5
  <meta charset="UTF-8" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>API Spector</title>
8
- <script type="module" crossorigin src="./assets/index-p_0EPamJ.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-BRHOhi5S.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="./assets/codemirror-F6m3Hm1M.js">
10
10
  <link rel="modulepreload" crossorigin href="./assets/ajv-2MAg6kGF.js">
11
11
  <link rel="stylesheet" crossorigin href="./assets/index-B3mtLdU3.css">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@testsmith/api-spector",
3
3
  "productName": "API Spector",
4
- "version": "0.6.7",
4
+ "version": "0.6.8",
5
5
  "description": "Local-first API testing tool to inspect, test and mock APIs",
6
6
  "repository": {
7
7
  "type": "git",