autumnnote 1.0.7 → 1.0.8
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/README.md +3 -3
- package/dist/autumnnote.css +40 -4
- package/dist/autumnnote.es.js +513 -107
- package/dist/autumnnote.es.js.map +1 -1
- package/dist/autumnnote.umd.js +513 -107
- package/dist/autumnnote.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/js/editing/Style.js +195 -44
- package/src/js/editing/Typing.js +2 -2
- package/src/js/module/Editor.js +14 -3
- package/src/js/module/EmojiDialog.js +11 -0
- package/src/js/module/IconDialog.js +11 -0
- package/src/js/module/ImageDialog.js +9 -5
- package/src/js/module/Placeholder.js +6 -1
- package/src/js/module/TableTooltip.js +393 -86
- package/src/styles/autumnnote.scss +50 -5
|
@@ -48,20 +48,34 @@
|
|
|
48
48
|
.an-editable {
|
|
49
49
|
cursor: text;
|
|
50
50
|
user-select: text;
|
|
51
|
-
//
|
|
52
|
-
|
|
51
|
+
// No background change — keep the same appearance as editable mode
|
|
52
|
+
// so read-only content looks identical to the live editor.
|
|
53
53
|
|
|
54
54
|
// Block checklist checkbox interaction in read-only mode.
|
|
55
|
+
// Keep opacity:1 so disabled checkboxes are still clearly visible.
|
|
55
56
|
ul.an-checklist input[type='checkbox'] {
|
|
56
57
|
pointer-events: none;
|
|
57
58
|
cursor: default;
|
|
59
|
+
opacity: 1;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
// Prevent images
|
|
61
|
-
img
|
|
62
|
+
// Prevent images from being dragged out.
|
|
63
|
+
img {
|
|
64
|
+
-webkit-user-drag: none;
|
|
65
|
+
user-drag: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Prevent video wrapper itself from being dragged, but keep pointer-events
|
|
69
|
+
// active so the video shield works and the iframe is visible/interactive.
|
|
62
70
|
.an-video-wrapper {
|
|
63
71
|
-webkit-user-drag: none;
|
|
64
72
|
user-drag: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// D-3: In read-only mode, disable the video shield so clicks reach the
|
|
76
|
+
// underlying <iframe> / <video> and users can play videos normally.
|
|
77
|
+
// The shield is only needed in edit mode to prevent accidental interaction.
|
|
78
|
+
.an-video-wrapper .an-video-shield {
|
|
65
79
|
pointer-events: none;
|
|
66
80
|
}
|
|
67
81
|
}
|
|
@@ -435,7 +449,7 @@
|
|
|
435
449
|
// Content styles
|
|
436
450
|
p { margin: 0 0 0.75em; }
|
|
437
451
|
h1, h2, h3, h4, h5, h6 { margin: 0.5em 0; line-height: 1.3; }
|
|
438
|
-
ul, ol { margin: 0 0 0.75em 1.5em;
|
|
452
|
+
ul, ol { margin: 0 0 0.75em 0; padding-left: 1.5em; list-style-position: inside; }
|
|
439
453
|
li { margin-bottom: 0.25em; }
|
|
440
454
|
blockquote {
|
|
441
455
|
margin: 0.5em 0 0.5em 1em;
|
|
@@ -638,6 +652,26 @@
|
|
|
638
652
|
letter-spacing: 0.02em;
|
|
639
653
|
}
|
|
640
654
|
|
|
655
|
+
// Active state for toggle buttons in tooltips (e.g. Select Cells)
|
|
656
|
+
.an-link-tooltip-btn--active {
|
|
657
|
+
background: rgba(#3b82f6, 0.12) !important;
|
|
658
|
+
color: #3b82f6 !important;
|
|
659
|
+
svg { stroke: #3b82f6; }
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
// Cells highlighted when select mode is active
|
|
663
|
+
.an-cell-selected {
|
|
664
|
+
background-color: rgba(#3b82f6, 0.18) !important;
|
|
665
|
+
outline: 2px solid #3b82f6;
|
|
666
|
+
outline-offset: -2px;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// Cursor hint for all cells when select mode is on
|
|
670
|
+
.an-table-select-mode td,
|
|
671
|
+
.an-table-select-mode th {
|
|
672
|
+
cursor: cell;
|
|
673
|
+
}
|
|
674
|
+
|
|
641
675
|
// Size popover (column width / row height)
|
|
642
676
|
.an-size-popover {
|
|
643
677
|
position: fixed;
|
|
@@ -1759,6 +1793,17 @@ $an-video-accent: #8b5cf6; // violet-500
|
|
|
1759
1793
|
color: #cdd6f4;
|
|
1760
1794
|
}
|
|
1761
1795
|
|
|
1796
|
+
.an-link-tooltip-btn--active {
|
|
1797
|
+
background: rgba(#6366f1, 0.2) !important;
|
|
1798
|
+
color: #818cf8 !important;
|
|
1799
|
+
svg { stroke: #818cf8; }
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.an-cell-selected {
|
|
1803
|
+
background-color: rgba(#6366f1, 0.25) !important;
|
|
1804
|
+
outline-color: #6366f1;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1762
1807
|
.an-table-cell {
|
|
1763
1808
|
background: #24273a;
|
|
1764
1809
|
border-color: #3f3f5f;
|