scribe-widget 1.0.2 → 1.0.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/dist/scribe-widget.es.js
CHANGED
|
@@ -31462,7 +31462,11 @@ function FloatingPanel({ children, position, onClose, onMinimize }) {
|
|
|
31462
31462
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "panel-content", children })
|
|
31463
31463
|
] });
|
|
31464
31464
|
}
|
|
31465
|
-
function ConfigState({
|
|
31465
|
+
function ConfigState({
|
|
31466
|
+
onSubmit,
|
|
31467
|
+
initialApiKey = "",
|
|
31468
|
+
initialBaseUrl = ""
|
|
31469
|
+
}) {
|
|
31466
31470
|
const [apiKey, setApiKey] = reactExports.useState(initialApiKey);
|
|
31467
31471
|
const [baseUrl, setBaseUrl] = reactExports.useState(initialBaseUrl);
|
|
31468
31472
|
const [error2, setError] = reactExports.useState("");
|
|
@@ -31475,43 +31479,52 @@ function ConfigState({ onSubmit, initialApiKey = "", initialBaseUrl = "" }) {
|
|
|
31475
31479
|
setError("");
|
|
31476
31480
|
onSubmit(apiKey.trim(), baseUrl.trim());
|
|
31477
31481
|
};
|
|
31478
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
|
|
31485
|
-
|
|
31486
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
31487
|
-
"
|
|
31488
|
-
{
|
|
31489
|
-
|
|
31490
|
-
|
|
31491
|
-
|
|
31492
|
-
|
|
31493
|
-
|
|
31494
|
-
|
|
31495
|
-
|
|
31496
|
-
|
|
31497
|
-
|
|
31498
|
-
|
|
31499
|
-
|
|
31500
|
-
|
|
31501
|
-
|
|
31502
|
-
|
|
31503
|
-
|
|
31504
|
-
|
|
31505
|
-
|
|
31506
|
-
|
|
31507
|
-
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
|
|
31511
|
-
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
|
|
31482
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
31483
|
+
"div",
|
|
31484
|
+
{
|
|
31485
|
+
className: "config-state",
|
|
31486
|
+
style: {
|
|
31487
|
+
zIndex: 9999
|
|
31488
|
+
},
|
|
31489
|
+
children: [
|
|
31490
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "logo", children: [
|
|
31491
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "logo-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx(LogoIcon, {}) }),
|
|
31492
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "logo-text", children: "eka.scribe" })
|
|
31493
|
+
] }),
|
|
31494
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("form", { className: "config-form", onSubmit: handleSubmit, children: [
|
|
31495
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "form-group", children: [
|
|
31496
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: "eka-api-key", children: "API Key" }),
|
|
31497
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
31498
|
+
"input",
|
|
31499
|
+
{
|
|
31500
|
+
id: "eka-api-key",
|
|
31501
|
+
type: "text",
|
|
31502
|
+
value: apiKey,
|
|
31503
|
+
onChange: (e) => setApiKey(e.target.value),
|
|
31504
|
+
placeholder: "Enter your API key (optional)"
|
|
31505
|
+
}
|
|
31506
|
+
)
|
|
31507
|
+
] }),
|
|
31508
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "form-group", children: [
|
|
31509
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: "eka-base-url", children: "Base URL" }),
|
|
31510
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
31511
|
+
"input",
|
|
31512
|
+
{
|
|
31513
|
+
id: "eka-base-url",
|
|
31514
|
+
type: "text",
|
|
31515
|
+
value: baseUrl,
|
|
31516
|
+
onChange: (e) => setBaseUrl(e.target.value),
|
|
31517
|
+
placeholder: "https://api.eka.care",
|
|
31518
|
+
required: true
|
|
31519
|
+
}
|
|
31520
|
+
)
|
|
31521
|
+
] }),
|
|
31522
|
+
error2 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "config-error", children: error2 }),
|
|
31523
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "submit", className: "config-submit-btn", children: "Continue" })
|
|
31524
|
+
] })
|
|
31525
|
+
]
|
|
31526
|
+
}
|
|
31527
|
+
);
|
|
31515
31528
|
}
|
|
31516
31529
|
function IdleState({ onStartRecording }) {
|
|
31517
31530
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "idle-state", children: [
|