@gemina/elements 0.10.0 → 0.12.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-YVJI4TFI.js → chunk-4HKLI46J.js} +2 -2
- package/dist/{chunk-ILX5CY6H.js → chunk-I5APRZ3B.js} +52 -4
- package/dist/{chunk-ILX5CY6H.js.map → chunk-I5APRZ3B.js.map} +1 -1
- package/dist/{chunk-TSOUHYYB.js → chunk-Z3OLTR2S.js} +2 -2
- package/dist/{chunk-TSOUHYYB.js.map → chunk-Z3OLTR2S.js.map} +1 -1
- package/dist/index.cjs +51 -3
- 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 +51 -3
- package/dist/verification.cjs.map +1 -1
- package/dist/verification.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-YVJI4TFI.js.map → chunk-4HKLI46J.js.map} +0 -0
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-CUOHJGPN.js";
|
|
4
4
|
import {
|
|
5
5
|
GeminaChat
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4HKLI46J.js";
|
|
7
7
|
import {
|
|
8
8
|
GeminaVerification
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I5APRZ3B.js";
|
|
10
10
|
import {
|
|
11
11
|
VERSION
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z3OLTR2S.js";
|
|
13
13
|
export {
|
|
14
14
|
GeminaChat,
|
|
15
15
|
GeminaTokenManager,
|
package/dist/verification.cjs
CHANGED
|
@@ -2341,7 +2341,7 @@ function VerificationForm(props) {
|
|
|
2341
2341
|
}
|
|
2342
2342
|
|
|
2343
2343
|
// src/version.ts
|
|
2344
|
-
var VERSION = "0.
|
|
2344
|
+
var VERSION = "0.12.0";
|
|
2345
2345
|
|
|
2346
2346
|
// src/verification/styles.ts
|
|
2347
2347
|
var DARK_VARS = `
|
|
@@ -2398,6 +2398,27 @@ var VERIFICATION_CSS = `
|
|
|
2398
2398
|
.gemina-verification--auto { ${DARK_VARS} }
|
|
2399
2399
|
}
|
|
2400
2400
|
.gemina-verification--rtl { direction: rtl; }
|
|
2401
|
+
/* Content is not chrome: the document pane never mirrors (industry rule \u2014
|
|
2402
|
+
images/players/clocks keep their physical position under RTL), and dir="auto"
|
|
2403
|
+
flips per DOCUMENT, so mirroring would make the image jump side per row.
|
|
2404
|
+
Forcing the grid container LTR pins physical order (image inline-left, form
|
|
2405
|
+
right, every language); the form pane alone restores RTL so Hebrew labels
|
|
2406
|
+
and values keep their natural direction (per-input dir="auto" still handles
|
|
2407
|
+
mixed-language values). The viewer subtree deliberately stays LTR: it is
|
|
2408
|
+
pure geometry (scroll math, loupe projection, absolute positioning) and none
|
|
2409
|
+
of that math may be direction-dependent.
|
|
2410
|
+
|
|
2411
|
+
That last point is not theoretical \u2014 it IS the magnifier bug. The loupe's
|
|
2412
|
+
magnified inner layer is absolutely positioned with no inset (viewer.tsx
|
|
2413
|
+
gives it only a transform), so its static position is wherever the inherited
|
|
2414
|
+
direction puts the inline start. Under RTL that flips to the right edge and
|
|
2415
|
+
the layer lands (layerWidth - loupeWidth) away \u2014 measured as a constant
|
|
2416
|
+
-704px skew in BOTH chromium and firefox, at every pointer position, leaving
|
|
2417
|
+
the user an empty circle rather than a shifted one. Pinning this subtree LTR
|
|
2418
|
+
restores the skew to (0, 0), matching the LTR baseline exactly. Do not
|
|
2419
|
+
"simplify" this by mirroring the panes again. */
|
|
2420
|
+
.gemina-verification--rtl .gemina-verification__panes { direction: ltr; }
|
|
2421
|
+
.gemina-verification--rtl .gemina-verification__form { direction: rtl; }
|
|
2401
2422
|
|
|
2402
2423
|
/* --- Two-pane layout ------------------------------------------------------ */
|
|
2403
2424
|
.gemina-verification__panes {
|
|
@@ -2571,6 +2592,15 @@ var VERIFICATION_CSS = `
|
|
|
2571
2592
|
gap: 12px;
|
|
2572
2593
|
min-width: 0;
|
|
2573
2594
|
margin: 0;
|
|
2595
|
+
/* Every z-index inside the form is form-internal business, and nothing in
|
|
2596
|
+
here may ever paint over the document. Without a stacking context of its
|
|
2597
|
+
own, the form's descendants resolve against the SAME context as the
|
|
2598
|
+
stacked-mode viewer (position: sticky, z-index: 2) \u2014 so the sticky header
|
|
2599
|
+
row (z-index: 3) painted straight over the document image as the form
|
|
2600
|
+
scrolled under the floating viewer. Confirmed in chromium and firefox
|
|
2601
|
+
before this line existed. Isolating caps the whole subtree beneath the
|
|
2602
|
+
viewer no matter what numbers it uses later. */
|
|
2603
|
+
isolation: isolate;
|
|
2574
2604
|
}
|
|
2575
2605
|
.gemina-verification__confidence-summary {
|
|
2576
2606
|
display: flex;
|
|
@@ -2733,14 +2763,32 @@ var VERIFICATION_CSS = `
|
|
|
2733
2763
|
padding: 0;
|
|
2734
2764
|
list-style: none;
|
|
2735
2765
|
}
|
|
2736
|
-
.gemina-verification__table-wrap {
|
|
2766
|
+
.gemina-verification__table-wrap {
|
|
2767
|
+
overflow-x: auto;
|
|
2768
|
+
/* Sticky binds to the nearest scrollport, and in an embedded widget that
|
|
2769
|
+
must be THIS wrapper (no per-host offset math). Bounding the block size
|
|
2770
|
+
turns it into a vertical scrollport too: long tables scroll internally
|
|
2771
|
+
with the header row pinned; short tables never reach the cap and are
|
|
2772
|
+
unchanged. */
|
|
2773
|
+
overflow-y: auto;
|
|
2774
|
+
max-block-size: min(56vh, 520px);
|
|
2775
|
+
}
|
|
2737
2776
|
.gemina-verification__table {
|
|
2738
2777
|
width: 100%;
|
|
2739
|
-
|
|
2778
|
+
/* separate, not collapse: collapsed borders belong to the row grid, so a
|
|
2779
|
+
stuck header sheds its underline mid-scroll. With separate borders the
|
|
2780
|
+
border-block-end travels with the th. */
|
|
2781
|
+
border-collapse: separate;
|
|
2782
|
+
border-spacing: 0;
|
|
2740
2783
|
font-size: 13px;
|
|
2741
2784
|
font-variant-numeric: tabular-nums;
|
|
2742
2785
|
}
|
|
2743
2786
|
.gemina-verification__table th {
|
|
2787
|
+
position: sticky;
|
|
2788
|
+
inset-block-start: 0;
|
|
2789
|
+
/* Above cell content and focus rings; below the viewer toolbar (5) and the
|
|
2790
|
+
confirm scrim. */
|
|
2791
|
+
z-index: 3;
|
|
2744
2792
|
text-align: start;
|
|
2745
2793
|
padding: 6px 10px;
|
|
2746
2794
|
font-size: 12px;
|