teodor-new-chat-ui 2.0.13 → 2.0.15
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/index.esm.js +19 -11
- package/dist/index.umd.js +8 -8
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3366,17 +3366,25 @@ function Ga(e) {
|
|
|
3366
3366
|
viability: [],
|
|
3367
3367
|
other: []
|
|
3368
3368
|
};
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3369
|
+
let r = t;
|
|
3370
|
+
const o = Math.min(
|
|
3371
|
+
...["desirability=", "feasibility=", "viability=", "other="].map((a) => {
|
|
3372
|
+
const i = r.toLowerCase().indexOf(a);
|
|
3373
|
+
return i === -1 ? Number.MAX_SAFE_INTEGER : i;
|
|
3374
|
+
})
|
|
3375
|
+
);
|
|
3376
|
+
o !== Number.MAX_SAFE_INTEGER && (r = r.slice(o));
|
|
3377
|
+
for (const a of Object.keys(n)) {
|
|
3378
|
+
const u = new RegExp(a + "\\s*=\\s*\\[([\\s\\S]*?)\\]", "i").exec(r);
|
|
3379
|
+
if (!u) continue;
|
|
3380
|
+
const f = u[1], d = /Issue\(([\s\S]*?)\)(?:,|$)/g;
|
|
3381
|
+
let p = null;
|
|
3382
|
+
for (; (p = d.exec(f)) !== null; ) {
|
|
3383
|
+
const g = p[1], v = /title\s*=\s*(['"])([\s\S]*?)\1/.exec(g), m = /description\s*=\s*(['"])([\s\S]*?)\1/.exec(g), h = v ? v[2].trim() : "", b = m ? m[2].trim() : "";
|
|
3384
|
+
n[a].push({ title: h, description: b });
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
return Object.values(n).some((a) => a.length > 0) ? n : null;
|
|
3380
3388
|
}
|
|
3381
3389
|
function Ap({ issues: e }) {
|
|
3382
3390
|
return /* @__PURE__ */ c("div", { className: "prose prose-sm max-w-none dark:prose-invert", children: [
|