@dotit/editor 1.2.0 → 1.2.2
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/block-props.d.ts +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1520 -1400
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +85 -14
- package/package.json +2 -2
package/dist/style.css
CHANGED
|
@@ -790,28 +790,54 @@
|
|
|
790
790
|
color: #555;
|
|
791
791
|
}
|
|
792
792
|
|
|
793
|
-
/* sign → core .it-signature:
|
|
793
|
+
/* sign → core .it-signature: name + (role · date) above a signature rule, with
|
|
794
|
+
a "Signed" badge at the line end. Structure mirrors core's renderer exactly. */
|
|
794
795
|
.docs-page .tiptap .it-doc-trust--sign {
|
|
795
|
-
|
|
796
|
-
|
|
796
|
+
display: flex;
|
|
797
|
+
flex-wrap: nowrap;
|
|
798
|
+
gap: 14px;
|
|
799
|
+
align-items: flex-end;
|
|
800
|
+
justify-content: space-between;
|
|
801
|
+
margin: 16px 0 8px;
|
|
802
|
+
padding: 0;
|
|
803
|
+
border: 0;
|
|
804
|
+
}
|
|
805
|
+
.docs-page .tiptap .it-doc-trust__body {
|
|
806
|
+
flex: 1;
|
|
807
|
+
min-width: 0;
|
|
808
|
+
display: flex;
|
|
809
|
+
flex-direction: column;
|
|
810
|
+
}
|
|
811
|
+
.docs-page .tiptap .it-doc-trust__rule {
|
|
812
|
+
display: block;
|
|
813
|
+
order: 3;
|
|
814
|
+
margin-top: 6px;
|
|
797
815
|
border-top: 1px solid #111;
|
|
816
|
+
width: 100%;
|
|
817
|
+
height: 0;
|
|
798
818
|
}
|
|
799
819
|
.docs-page .tiptap .it-doc-trust__name {
|
|
820
|
+
order: 1;
|
|
800
821
|
font-weight: 600;
|
|
801
822
|
font-size: 0.95rem;
|
|
802
823
|
color: #111;
|
|
803
824
|
}
|
|
804
|
-
.docs-page .tiptap .it-doc-
|
|
805
|
-
|
|
806
|
-
|
|
825
|
+
.docs-page .tiptap .it-doc-trust__meta {
|
|
826
|
+
order: 2;
|
|
827
|
+
font-size: 0.82rem;
|
|
828
|
+
color: #666;
|
|
829
|
+
margin-top: 1px;
|
|
807
830
|
}
|
|
808
|
-
.docs-page .tiptap .it-doc-
|
|
831
|
+
.docs-page .tiptap .it-doc-trust__badge {
|
|
832
|
+
flex-shrink: 0;
|
|
809
833
|
font-size: 0.72rem;
|
|
810
834
|
font-weight: 600;
|
|
811
|
-
margin-inline-start: auto;
|
|
812
835
|
text-transform: uppercase;
|
|
813
|
-
letter-spacing: 0.
|
|
836
|
+
letter-spacing: 0.07em;
|
|
814
837
|
color: #2e7d32;
|
|
838
|
+
white-space: nowrap;
|
|
839
|
+
align-self: flex-end;
|
|
840
|
+
padding-bottom: 7px;
|
|
815
841
|
}
|
|
816
842
|
|
|
817
843
|
/* seal / freeze → core .it-sealed-banner: SEALED band, thin top+bottom rules. */
|
|
@@ -864,11 +890,6 @@
|
|
|
864
890
|
margin-inline-start: auto;
|
|
865
891
|
font-variant-numeric: tabular-nums;
|
|
866
892
|
}
|
|
867
|
-
/* sign rows: status sits at the end — date stays inline. */
|
|
868
|
-
.docs-page .tiptap .it-doc-trust--sign .it-doc-trust__date {
|
|
869
|
-
margin-inline-start: 0;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
893
|
/* ─── Template variables ({{path}}) ───────────────────────── */
|
|
873
894
|
.docs-page .tiptap .it-doc-var {
|
|
874
895
|
background: #eef2ff;
|
|
@@ -1291,6 +1312,16 @@
|
|
|
1291
1312
|
background: rgba(220, 38, 38, 0.12);
|
|
1292
1313
|
color: #dc2626;
|
|
1293
1314
|
}
|
|
1315
|
+
.docs-trust-banner__warn {
|
|
1316
|
+
margin-inline-start: auto;
|
|
1317
|
+
flex-shrink: 0;
|
|
1318
|
+
padding: 2px 9px;
|
|
1319
|
+
border-radius: 10px;
|
|
1320
|
+
font-size: 11.5px;
|
|
1321
|
+
font-weight: 600;
|
|
1322
|
+
background: rgba(217, 119, 6, 0.13);
|
|
1323
|
+
color: #b45309;
|
|
1324
|
+
}
|
|
1294
1325
|
|
|
1295
1326
|
.docs-props-bar {
|
|
1296
1327
|
flex-shrink: 0;
|
|
@@ -1557,6 +1588,46 @@
|
|
|
1557
1588
|
font-size: 12px;
|
|
1558
1589
|
line-height: 1.4;
|
|
1559
1590
|
}
|
|
1591
|
+
.trust-popover__warn {
|
|
1592
|
+
margin-top: 7px;
|
|
1593
|
+
padding: 6px 8px;
|
|
1594
|
+
border-radius: 6px;
|
|
1595
|
+
background: rgba(217, 119, 6, 0.1);
|
|
1596
|
+
color: #b45309;
|
|
1597
|
+
font-size: 11.5px;
|
|
1598
|
+
font-weight: 500;
|
|
1599
|
+
line-height: 1.35;
|
|
1600
|
+
}
|
|
1601
|
+
.trust-popover__help-toggle {
|
|
1602
|
+
display: block;
|
|
1603
|
+
width: 100%;
|
|
1604
|
+
margin-top: 8px;
|
|
1605
|
+
padding: 0;
|
|
1606
|
+
border: none;
|
|
1607
|
+
background: none;
|
|
1608
|
+
text-align: start;
|
|
1609
|
+
color: #1a73e8;
|
|
1610
|
+
font-size: 11.5px;
|
|
1611
|
+
cursor: pointer;
|
|
1612
|
+
}
|
|
1613
|
+
.trust-popover__help-toggle:hover {
|
|
1614
|
+
text-decoration: underline;
|
|
1615
|
+
}
|
|
1616
|
+
.trust-popover__help {
|
|
1617
|
+
margin-top: 6px;
|
|
1618
|
+
padding: 8px 10px;
|
|
1619
|
+
background: #f6f8fb;
|
|
1620
|
+
border-radius: 6px;
|
|
1621
|
+
font-size: 11.5px;
|
|
1622
|
+
line-height: 1.45;
|
|
1623
|
+
color: #3c4043;
|
|
1624
|
+
}
|
|
1625
|
+
.trust-popover__help p {
|
|
1626
|
+
margin: 0 0 6px;
|
|
1627
|
+
}
|
|
1628
|
+
.trust-popover__help p:last-child {
|
|
1629
|
+
margin-bottom: 0;
|
|
1630
|
+
}
|
|
1560
1631
|
.trust-popover__divider {
|
|
1561
1632
|
height: 1px;
|
|
1562
1633
|
background: #ececec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotit/editor",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Embeddable WYSIWYG visual editor for IntentText (.it) documents — Word-like pages, ribbon, trust banner, and WYSIWYG PDF/HTML export. Drop it into any React app (ERPs, portals, back offices).",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@tiptap/react": "^3.20.1",
|
|
64
64
|
"@tiptap/starter-kit": "^3.20.1",
|
|
65
65
|
"lucide-react": "^0.577.0",
|
|
66
|
-
"@dotit/core": "^1.2.
|
|
66
|
+
"@dotit/core": "^1.2.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/react": "^19.2.14",
|