@gemina/elements 0.9.0 → 0.10.0
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/chat.cjs +1 -1
- package/dist/chat.cjs.map +1 -1
- package/dist/chat.js +2 -2
- package/dist/{chunk-MITACKUW.js → chunk-ILX5CY6H.js} +106 -17
- package/dist/chunk-ILX5CY6H.js.map +1 -0
- package/dist/{chunk-S4KBJRIP.js → chunk-TSOUHYYB.js} +2 -2
- package/dist/{chunk-S4KBJRIP.js.map → chunk-TSOUHYYB.js.map} +1 -1
- package/dist/{chunk-DU6BUHR5.js → chunk-YVJI4TFI.js} +2 -2
- package/dist/index.cjs +105 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/verification.cjs +105 -16
- package/dist/verification.cjs.map +1 -1
- package/dist/verification.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-MITACKUW.js.map +0 -1
- /package/dist/{chunk-DU6BUHR5.js.map → chunk-YVJI4TFI.js.map} +0 -0
|
@@ -45,7 +45,7 @@ async function readErrorEnvelope(error) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/version.ts
|
|
48
|
-
var VERSION = "0.
|
|
48
|
+
var VERSION = "0.10.0";
|
|
49
49
|
|
|
50
50
|
export {
|
|
51
51
|
getResponseLike,
|
|
@@ -53,4 +53,4 @@ export {
|
|
|
53
53
|
readErrorEnvelope,
|
|
54
54
|
VERSION
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-TSOUHYYB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/internal/response-like.ts","../src/version.ts"],"sourcesContent":["/**\n * Shared transport-error helpers for the widgets (chat + verification).\n *\n * Extracted verbatim from chat.tsx so both components read thrown SDK errors\n * the same way. Pure and dependency-free: no React, no DOM.\n */\n\n/**\n * The response-like object carried by a thrown transport error. We pull it off\n * by shape rather than `instanceof ResponseError` — robust against duplicated\n * `@gemina/sdk` copies in a bundle (class identity is not shared across\n * copies). On the fetch transport this is the raw `Response`, so `status`,\n * `headers`, and the JSON body are all reachable from here.\n */\nexport interface ResponseLike {\n status?: number;\n headers?: { get?: (name: string) => string | null };\n json?: () => Promise<unknown>;\n clone?: () => ResponseLike;\n}\n\nexport function getResponseLike(error: unknown): ResponseLike | undefined {\n if (error !== null && typeof error === 'object' && 'response' in error) {\n const response = (error as { response?: unknown }).response;\n if (response !== null && typeof response === 'object') {\n return response as ResponseLike;\n }\n }\n return undefined;\n}\n\n/** Extract an HTTP status from a thrown value, or `undefined`. */\nexport function httpStatus(error: unknown): number | undefined {\n const status = getResponseLike(error)?.status;\n return typeof status === 'number' ? status : undefined;\n}\n\n/** What the standard backend error envelope reliably carries. */\nexport interface ErrorEnvelope {\n status: number | undefined;\n /** Stable backend `errors[0].error_code`. */\n errorCode: string | undefined;\n /** Human-readable server fallback (`errors[0].description`). */\n description: string | undefined;\n}\n\n/**\n * Read what the backend actually sent on an error. Only the HTTP status and\n * the stable `errors[0].error_code` / `description` are reliable across\n * environments — production strips `errors[0].detail`, so we never touch it.\n * The fetch body can be read once, so we clone defensively; if that fails\n * (non-JSON, empty, or already consumed) the status still stands.\n */\nexport async function readErrorEnvelope(error: unknown): Promise<ErrorEnvelope> {\n const response = getResponseLike(error);\n const info: ErrorEnvelope = {\n status: typeof response?.status === 'number' ? response.status : undefined,\n errorCode: undefined,\n description: undefined,\n };\n if (response === undefined) {\n return info;\n }\n\n let body: unknown;\n try {\n const source = typeof response.clone === 'function' ? response.clone() : response;\n body = typeof source.json === 'function' ? await source.json() : undefined;\n } catch {\n body = undefined;\n }\n if (body !== null && typeof body === 'object') {\n const errors = (body as { errors?: unknown }).errors;\n if (\n Array.isArray(errors) &&\n errors.length > 0 &&\n errors[0] !== null &&\n typeof errors[0] === 'object'\n ) {\n const first = errors[0] as { error_code?: unknown; description?: unknown };\n if (typeof first.error_code === 'string') {\n info.errorCode = first.error_code;\n }\n if (typeof first.description === 'string') {\n info.description = first.description;\n }\n }\n }\n return info;\n}\n","/** Package version. Keep in sync with package.json. */\nexport const VERSION = '0.
|
|
1
|
+
{"version":3,"sources":["../src/internal/response-like.ts","../src/version.ts"],"sourcesContent":["/**\n * Shared transport-error helpers for the widgets (chat + verification).\n *\n * Extracted verbatim from chat.tsx so both components read thrown SDK errors\n * the same way. Pure and dependency-free: no React, no DOM.\n */\n\n/**\n * The response-like object carried by a thrown transport error. We pull it off\n * by shape rather than `instanceof ResponseError` — robust against duplicated\n * `@gemina/sdk` copies in a bundle (class identity is not shared across\n * copies). On the fetch transport this is the raw `Response`, so `status`,\n * `headers`, and the JSON body are all reachable from here.\n */\nexport interface ResponseLike {\n status?: number;\n headers?: { get?: (name: string) => string | null };\n json?: () => Promise<unknown>;\n clone?: () => ResponseLike;\n}\n\nexport function getResponseLike(error: unknown): ResponseLike | undefined {\n if (error !== null && typeof error === 'object' && 'response' in error) {\n const response = (error as { response?: unknown }).response;\n if (response !== null && typeof response === 'object') {\n return response as ResponseLike;\n }\n }\n return undefined;\n}\n\n/** Extract an HTTP status from a thrown value, or `undefined`. */\nexport function httpStatus(error: unknown): number | undefined {\n const status = getResponseLike(error)?.status;\n return typeof status === 'number' ? status : undefined;\n}\n\n/** What the standard backend error envelope reliably carries. */\nexport interface ErrorEnvelope {\n status: number | undefined;\n /** Stable backend `errors[0].error_code`. */\n errorCode: string | undefined;\n /** Human-readable server fallback (`errors[0].description`). */\n description: string | undefined;\n}\n\n/**\n * Read what the backend actually sent on an error. Only the HTTP status and\n * the stable `errors[0].error_code` / `description` are reliable across\n * environments — production strips `errors[0].detail`, so we never touch it.\n * The fetch body can be read once, so we clone defensively; if that fails\n * (non-JSON, empty, or already consumed) the status still stands.\n */\nexport async function readErrorEnvelope(error: unknown): Promise<ErrorEnvelope> {\n const response = getResponseLike(error);\n const info: ErrorEnvelope = {\n status: typeof response?.status === 'number' ? response.status : undefined,\n errorCode: undefined,\n description: undefined,\n };\n if (response === undefined) {\n return info;\n }\n\n let body: unknown;\n try {\n const source = typeof response.clone === 'function' ? response.clone() : response;\n body = typeof source.json === 'function' ? await source.json() : undefined;\n } catch {\n body = undefined;\n }\n if (body !== null && typeof body === 'object') {\n const errors = (body as { errors?: unknown }).errors;\n if (\n Array.isArray(errors) &&\n errors.length > 0 &&\n errors[0] !== null &&\n typeof errors[0] === 'object'\n ) {\n const first = errors[0] as { error_code?: unknown; description?: unknown };\n if (typeof first.error_code === 'string') {\n info.errorCode = first.error_code;\n }\n if (typeof first.description === 'string') {\n info.description = first.description;\n }\n }\n }\n return info;\n}\n","/** Package version. Keep in sync with package.json. */\nexport const VERSION = '0.10.0';\n"],"mappings":";AAqBO,SAAS,gBAAgB,OAA0C;AACxE,MAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,cAAc,OAAO;AACtE,UAAM,WAAY,MAAiC;AACnD,QAAI,aAAa,QAAQ,OAAO,aAAa,UAAU;AACrD,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AAGO,SAAS,WAAW,OAAoC;AAC7D,QAAM,SAAS,gBAAgB,KAAK,GAAG;AACvC,SAAO,OAAO,WAAW,WAAW,SAAS;AAC/C;AAkBA,eAAsB,kBAAkB,OAAwC;AAC9E,QAAM,WAAW,gBAAgB,KAAK;AACtC,QAAM,OAAsB;AAAA,IAC1B,QAAQ,OAAO,UAAU,WAAW,WAAW,SAAS,SAAS;AAAA,IACjE,WAAW;AAAA,IACX,aAAa;AAAA,EACf;AACA,MAAI,aAAa,QAAW;AAC1B,WAAO;AAAA,EACT;AAEA,MAAI;AACJ,MAAI;AACF,UAAM,SAAS,OAAO,SAAS,UAAU,aAAa,SAAS,MAAM,IAAI;AACzE,WAAO,OAAO,OAAO,SAAS,aAAa,MAAM,OAAO,KAAK,IAAI;AAAA,EACnE,QAAQ;AACN,WAAO;AAAA,EACT;AACA,MAAI,SAAS,QAAQ,OAAO,SAAS,UAAU;AAC7C,UAAM,SAAU,KAA8B;AAC9C,QACE,MAAM,QAAQ,MAAM,KACpB,OAAO,SAAS,KAChB,OAAO,CAAC,MAAM,QACd,OAAO,OAAO,CAAC,MAAM,UACrB;AACA,YAAM,QAAQ,OAAO,CAAC;AACtB,UAAI,OAAO,MAAM,eAAe,UAAU;AACxC,aAAK,YAAY,MAAM;AAAA,MACzB;AACA,UAAI,OAAO,MAAM,gBAAgB,UAAU;AACzC,aAAK,cAAc,MAAM;AAAA,MAC3B;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;;;ACxFO,IAAM,UAAU;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getResponseLike,
|
|
4
4
|
httpStatus,
|
|
5
5
|
readErrorEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TSOUHYYB.js";
|
|
7
7
|
|
|
8
8
|
// src/chat.tsx
|
|
9
9
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -656,4 +656,4 @@ function GeminaChat(props) {
|
|
|
656
656
|
export {
|
|
657
657
|
GeminaChat
|
|
658
658
|
};
|
|
659
|
-
//# sourceMappingURL=chunk-
|
|
659
|
+
//# sourceMappingURL=chunk-YVJI4TFI.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -221,7 +221,7 @@ async function readErrorEnvelope(error) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
// src/version.ts
|
|
224
|
-
var VERSION = "0.
|
|
224
|
+
var VERSION = "0.10.0";
|
|
225
225
|
|
|
226
226
|
// src/chat.tsx
|
|
227
227
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1156,6 +1156,7 @@ function escapeSegment(segment) {
|
|
|
1156
1156
|
var ROW_META_KEY = "_rowMeta";
|
|
1157
1157
|
function classifyData(data) {
|
|
1158
1158
|
const result = {
|
|
1159
|
+
overallConfidence: null,
|
|
1159
1160
|
headers: [],
|
|
1160
1161
|
simpleLists: [],
|
|
1161
1162
|
entities: [],
|
|
@@ -1166,6 +1167,7 @@ function classifyData(data) {
|
|
|
1166
1167
|
return result;
|
|
1167
1168
|
}
|
|
1168
1169
|
let rootData = data;
|
|
1170
|
+
result.overallConfidence = readOverallConfidence(rootData);
|
|
1169
1171
|
let basePointer = "";
|
|
1170
1172
|
if ("data" in rootData && typeof rootData.data === "object" && rootData.data !== null && !Array.isArray(rootData.data)) {
|
|
1171
1173
|
for (const [key, value] of Object.entries(rootData)) {
|
|
@@ -1173,6 +1175,7 @@ function classifyData(data) {
|
|
|
1173
1175
|
processField(key, value, result, rootData, "");
|
|
1174
1176
|
}
|
|
1175
1177
|
rootData = rootData.data;
|
|
1178
|
+
result.overallConfidence ?? (result.overallConfidence = readOverallConfidence(rootData));
|
|
1176
1179
|
basePointer = "/data";
|
|
1177
1180
|
}
|
|
1178
1181
|
for (const [key, value] of Object.entries(rootData)) {
|
|
@@ -1180,8 +1183,23 @@ function classifyData(data) {
|
|
|
1180
1183
|
}
|
|
1181
1184
|
return result;
|
|
1182
1185
|
}
|
|
1186
|
+
function readOverallConfidence(source) {
|
|
1187
|
+
const rawLevel = source.overall_confidence ?? source.overallConfidence;
|
|
1188
|
+
const value = extractValue(rawLevel);
|
|
1189
|
+
if (typeof value !== "string" || value.length === 0) return null;
|
|
1190
|
+
const rawReasons = source.confidence_reasons ?? source.confidenceReasons;
|
|
1191
|
+
const reasons = Array.isArray(rawReasons) ? rawReasons.filter((reason) => typeof reason === "string") : [];
|
|
1192
|
+
return { level: value, reasons };
|
|
1193
|
+
}
|
|
1183
1194
|
function processField(key, value, result, parentObj, basePointer) {
|
|
1184
|
-
if ([
|
|
1195
|
+
if ([
|
|
1196
|
+
"confidence",
|
|
1197
|
+
"confidence_reasons",
|
|
1198
|
+
"confidenceReasons",
|
|
1199
|
+
"coordinates",
|
|
1200
|
+
"overall_confidence",
|
|
1201
|
+
"overallConfidence"
|
|
1202
|
+
].includes(key)) {
|
|
1185
1203
|
return;
|
|
1186
1204
|
}
|
|
1187
1205
|
const pointer = `${basePointer}/${escapeSegment(key)}`;
|
|
@@ -1255,11 +1273,6 @@ function processField(key, value, result, parentObj, basePointer) {
|
|
|
1255
1273
|
level: parentObj[confidenceKey],
|
|
1256
1274
|
reasons: parentObj[reasonsKey] || []
|
|
1257
1275
|
};
|
|
1258
|
-
} else if (parentObj["overall_confidence"]) {
|
|
1259
|
-
overallConfidence = {
|
|
1260
|
-
level: parentObj["overall_confidence"],
|
|
1261
|
-
reasons: parentObj["confidence_reasons"] || []
|
|
1262
|
-
};
|
|
1263
1276
|
}
|
|
1264
1277
|
}
|
|
1265
1278
|
result.tables.push({
|
|
@@ -1588,8 +1601,11 @@ function planTableCells(table, plan, columns, bindingsByRawKey) {
|
|
|
1588
1601
|
}
|
|
1589
1602
|
function displayColumns(table, classifiedColumns) {
|
|
1590
1603
|
const declared = table.columns.map((column) => column.key).filter((name) => typeof name === "string");
|
|
1591
|
-
const
|
|
1592
|
-
return [
|
|
1604
|
+
const declaredAliases = new Set(declared.map(snakeToCamel));
|
|
1605
|
+
return [
|
|
1606
|
+
...declared,
|
|
1607
|
+
...classifiedColumns.filter((name) => !declaredAliases.has(snakeToCamel(name)))
|
|
1608
|
+
];
|
|
1593
1609
|
}
|
|
1594
1610
|
function matchesTablePointer(serverPointer, classifiedPointer) {
|
|
1595
1611
|
return serverPointer === classifiedPointer || snakeToCamel(serverPointer) === classifiedPointer;
|
|
@@ -2033,6 +2049,7 @@ function VerificationViewer(props) {
|
|
|
2033
2049
|
const [magnifierOn, setMagnifierOn] = (0, import_react3.useState)(false);
|
|
2034
2050
|
const [showMag, setShowMag] = (0, import_react3.useState)(false);
|
|
2035
2051
|
const [mousePos, setMousePos] = (0, import_react3.useState)({ x: 0, y: 0 });
|
|
2052
|
+
const lastMouseClientRef = (0, import_react3.useRef)(null);
|
|
2036
2053
|
const [isPanning, setIsPanning] = (0, import_react3.useState)(false);
|
|
2037
2054
|
const panStart = (0, import_react3.useRef)(null);
|
|
2038
2055
|
const [flashOpacity, setFlashOpacity] = (0, import_react3.useState)(0);
|
|
@@ -2217,15 +2234,38 @@ function VerificationViewer(props) {
|
|
|
2217
2234
|
const handleTouchEnd = (0, import_react3.useCallback)((e) => {
|
|
2218
2235
|
if (e.touches.length === 0) touchState.current = null;
|
|
2219
2236
|
}, []);
|
|
2220
|
-
const
|
|
2237
|
+
const syncMagnifierToClientPoint = (0, import_react3.useCallback)((clientX, clientY, assumeInside = false) => {
|
|
2221
2238
|
const rect = canvasRef.current?.getBoundingClientRect();
|
|
2222
2239
|
if (!rect) return;
|
|
2223
|
-
|
|
2224
|
-
|
|
2240
|
+
const x = clientX - rect.left;
|
|
2241
|
+
const y = clientY - rect.top;
|
|
2242
|
+
const inside = assumeInside || x >= 0 && y >= 0 && x <= rect.width && y <= rect.height;
|
|
2243
|
+
setShowMag(inside);
|
|
2244
|
+
if (inside) {
|
|
2245
|
+
setMousePos({ x, y });
|
|
2246
|
+
}
|
|
2225
2247
|
}, []);
|
|
2248
|
+
const handleCanvasMouseMove = (0, import_react3.useCallback)((e) => {
|
|
2249
|
+
lastMouseClientRef.current = { x: e.clientX, y: e.clientY };
|
|
2250
|
+
syncMagnifierToClientPoint(e.clientX, e.clientY, true);
|
|
2251
|
+
}, [syncMagnifierToClientPoint]);
|
|
2226
2252
|
const handleCanvasMouseLeave = (0, import_react3.useCallback)(() => {
|
|
2253
|
+
lastMouseClientRef.current = null;
|
|
2227
2254
|
setShowMag(false);
|
|
2228
2255
|
}, []);
|
|
2256
|
+
(0, import_react3.useEffect)(() => {
|
|
2257
|
+
if (!magnifierOn || !showMag) return;
|
|
2258
|
+
const sync = () => {
|
|
2259
|
+
const point = lastMouseClientRef.current;
|
|
2260
|
+
if (point) syncMagnifierToClientPoint(point.x, point.y);
|
|
2261
|
+
};
|
|
2262
|
+
document.addEventListener("scroll", sync, true);
|
|
2263
|
+
window.addEventListener("resize", sync);
|
|
2264
|
+
return () => {
|
|
2265
|
+
document.removeEventListener("scroll", sync, true);
|
|
2266
|
+
window.removeEventListener("resize", sync);
|
|
2267
|
+
};
|
|
2268
|
+
}, [magnifierOn, showMag, syncMagnifierToClientPoint]);
|
|
2229
2269
|
const handleDoubleClick = (0, import_react3.useCallback)(
|
|
2230
2270
|
(e) => {
|
|
2231
2271
|
cancelFlashTravel();
|
|
@@ -2772,7 +2812,10 @@ function TableRowView(props) {
|
|
|
2772
2812
|
[rects, onFlash]
|
|
2773
2813
|
);
|
|
2774
2814
|
const cellFor = (column) => {
|
|
2775
|
-
const
|
|
2815
|
+
const direct = row?.[column];
|
|
2816
|
+
const alias = direct === void 0 ? row?.[snakeToCamel(column)] : void 0;
|
|
2817
|
+
const fallbackKey = direct === void 0 && alias === void 0 && row !== void 0 ? Object.keys(row).find((key) => snakeToCamel(key) === snakeToCamel(column)) : void 0;
|
|
2818
|
+
const classified = direct ?? alias ?? (fallbackKey === void 0 ? void 0 : row?.[fallbackKey]);
|
|
2776
2819
|
const fromPlan = planned?.cells.find((cell) => cell.column === column);
|
|
2777
2820
|
if (fromPlan) {
|
|
2778
2821
|
return { classified, binding: fromPlan.binding, editKey: fromPlan.editKey };
|
|
@@ -2929,7 +2972,10 @@ function TableSection(props) {
|
|
|
2929
2972
|
needsReview > 0 ? ` \xB7 ${needsReview} need review` : "",
|
|
2930
2973
|
")"
|
|
2931
2974
|
] }),
|
|
2932
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.
|
|
2975
|
+
table.overallConfidence ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "gemina-verification__overall-confidence", children: [
|
|
2976
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: "Overall confidence" }),
|
|
2977
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ConfidenceDot, { confidence: table.overallConfidence })
|
|
2978
|
+
] }) : null
|
|
2933
2979
|
] }),
|
|
2934
2980
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "gemina-verification__table-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "gemina-verification__table", children: [
|
|
2935
2981
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("tr", { children: [
|
|
@@ -3063,6 +3109,10 @@ function VerificationForm(props) {
|
|
|
3063
3109
|
"aria-label": "Extraction fields",
|
|
3064
3110
|
onSubmit: (event) => event.preventDefault(),
|
|
3065
3111
|
children: [
|
|
3112
|
+
classified.overallConfidence ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "gemina-verification__confidence-summary", children: [
|
|
3113
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: "Overall confidence" }),
|
|
3114
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ConfidenceDot, { confidence: classified.overallConfidence })
|
|
3115
|
+
] }) : null,
|
|
3066
3116
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3067
3117
|
HeaderSection,
|
|
3068
3118
|
{
|
|
@@ -3181,9 +3231,15 @@ var VERIFICATION_CSS = `
|
|
|
3181
3231
|
background: var(--gemina-verification-bg);
|
|
3182
3232
|
border: 1px solid var(--gemina-verification-border);
|
|
3183
3233
|
border-radius: var(--gemina-verification-radius);
|
|
3184
|
-
overflow
|
|
3234
|
+
/* overflow hidden creates a scroll container and prevents the toolbar's sticky
|
|
3235
|
+
positioning from following the host modal's scrollport. Clip keeps the
|
|
3236
|
+
rounded frame without stealing sticky containment. */
|
|
3237
|
+
overflow: clip;
|
|
3185
3238
|
}
|
|
3186
3239
|
.gemina-verification__toolbar {
|
|
3240
|
+
position: sticky;
|
|
3241
|
+
top: 0;
|
|
3242
|
+
z-index: 5;
|
|
3187
3243
|
display: flex;
|
|
3188
3244
|
/* Narrow roots (~<330px) can't fit all 7 buttons on one line: wrap to a
|
|
3189
3245
|
second row instead of clipping past the canvas edge. The gap shorthand
|
|
@@ -3193,6 +3249,7 @@ var VERIFICATION_CSS = `
|
|
|
3193
3249
|
gap: 6px;
|
|
3194
3250
|
flex: 0 0 auto;
|
|
3195
3251
|
padding: 8px 10px;
|
|
3252
|
+
background: var(--gemina-verification-bg);
|
|
3196
3253
|
border-block-end: 1px solid var(--gemina-verification-border);
|
|
3197
3254
|
}
|
|
3198
3255
|
.gemina-verification__toolbar-btn {
|
|
@@ -3303,6 +3360,19 @@ var VERIFICATION_CSS = `
|
|
|
3303
3360
|
min-width: 0;
|
|
3304
3361
|
margin: 0;
|
|
3305
3362
|
}
|
|
3363
|
+
.gemina-verification__confidence-summary {
|
|
3364
|
+
display: flex;
|
|
3365
|
+
align-items: center;
|
|
3366
|
+
justify-content: space-between;
|
|
3367
|
+
gap: 12px;
|
|
3368
|
+
padding: 9px 12px;
|
|
3369
|
+
background: var(--gemina-verification-surface);
|
|
3370
|
+
border: 1px solid var(--gemina-verification-border);
|
|
3371
|
+
border-radius: var(--gemina-verification-radius);
|
|
3372
|
+
color: var(--gemina-verification-muted);
|
|
3373
|
+
font-size: 12px;
|
|
3374
|
+
font-weight: 600;
|
|
3375
|
+
}
|
|
3306
3376
|
.gemina-verification__section {
|
|
3307
3377
|
background: var(--gemina-verification-bg);
|
|
3308
3378
|
border: 1px solid var(--gemina-verification-border);
|
|
@@ -3319,6 +3389,16 @@ var VERIFICATION_CSS = `
|
|
|
3319
3389
|
font-size: 13px;
|
|
3320
3390
|
font-weight: 600;
|
|
3321
3391
|
}
|
|
3392
|
+
.gemina-verification__overall-confidence {
|
|
3393
|
+
display: inline-flex;
|
|
3394
|
+
align-items: center;
|
|
3395
|
+
gap: 6px;
|
|
3396
|
+
margin-inline-start: auto;
|
|
3397
|
+
color: var(--gemina-verification-muted);
|
|
3398
|
+
font-size: 11px;
|
|
3399
|
+
font-weight: 500;
|
|
3400
|
+
white-space: nowrap;
|
|
3401
|
+
}
|
|
3322
3402
|
.gemina-verification__dl {
|
|
3323
3403
|
display: grid;
|
|
3324
3404
|
grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
|
|
@@ -3361,6 +3441,15 @@ var VERIFICATION_CSS = `
|
|
|
3361
3441
|
border-radius: calc(var(--gemina-verification-radius) - 4px);
|
|
3362
3442
|
padding: 5px 8px;
|
|
3363
3443
|
}
|
|
3444
|
+
/* FieldInput is a fragment. Let its control take the remaining row width
|
|
3445
|
+
instead of forcing width:100%, so a coordinate eye can sit beside it rather
|
|
3446
|
+
than wrapping onto a visually disconnected second line. */
|
|
3447
|
+
.gemina-verification__dd > .gemina-verification__input,
|
|
3448
|
+
.gemina-verification__cell > .gemina-verification__input {
|
|
3449
|
+
flex: 1 1 8ch;
|
|
3450
|
+
width: auto;
|
|
3451
|
+
min-width: 0;
|
|
3452
|
+
}
|
|
3364
3453
|
.gemina-verification__input--dirty { border-color: var(--gemina-verification-dirty); }
|
|
3365
3454
|
.gemina-verification__input--missed {
|
|
3366
3455
|
border-color: var(--gemina-verification-error);
|
|
@@ -3731,7 +3820,7 @@ var VERIFICATION_CSS = `
|
|
|
3731
3820
|
}
|
|
3732
3821
|
.gemina-verification__table-footer {
|
|
3733
3822
|
display: flex;
|
|
3734
|
-
padding: 8px 10px
|
|
3823
|
+
padding: 8px 10px;
|
|
3735
3824
|
}
|
|
3736
3825
|
.gemina-verification__add-row {
|
|
3737
3826
|
font: inherit;
|