@jvs-milkdown/crepe 1.2.28 → 1.2.30
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/lib/cjs/builder.js +2 -1
- package/lib/cjs/builder.js.map +1 -1
- package/lib/cjs/feature/code-mirror/index.js.map +1 -1
- package/lib/cjs/feature/toolbar/index.js +84 -62
- package/lib/cjs/feature/toolbar/index.js.map +1 -1
- package/lib/cjs/index.js +1121 -988
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/builder.js +2 -1
- package/lib/esm/builder.js.map +1 -1
- package/lib/esm/feature/code-mirror/index.js.map +1 -1
- package/lib/esm/feature/toolbar/index.js +84 -62
- package/lib/esm/feature/toolbar/index.js.map +1 -1
- package/lib/esm/index.js +1143 -1010
- package/lib/esm/index.js.map +1 -1
- package/lib/theme/common/image-block.css +5 -1
- package/lib/theme/common/reset.css +1 -1
- package/lib/theme/common/table.css +5 -0
- package/lib/theme/common/toolbar.css +23 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/feature/code-mirror/index.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/component.d.ts +2 -2
- package/lib/types/feature/fixed-toolbar/component.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/index.d.ts +2 -0
- package/lib/types/feature/fixed-toolbar/index.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/outline-panel.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/view-menu-state.d.ts +3 -0
- package/lib/types/feature/fixed-toolbar/view-menu-state.d.ts.map +1 -1
- package/lib/types/feature/toolbar/component.d.ts +2 -2
- package/lib/types/feature/toolbar/component.d.ts.map +1 -1
- package/lib/types/feature/toolbar/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/feature/code-mirror/index.ts +51 -46
- package/src/feature/fixed-toolbar/component.tsx +203 -110
- package/src/feature/fixed-toolbar/index.ts +30 -8
- package/src/feature/fixed-toolbar/outline-panel.tsx +1 -2
- package/src/feature/fixed-toolbar/view-menu-state.ts +2 -0
- package/src/feature/toolbar/component.tsx +57 -44
- package/src/feature/toolbar/index.ts +9 -13
- package/src/theme/common/image-block.css +6 -1
- package/src/theme/common/reset.css +1 -1
- package/src/theme/common/table.css +5 -0
- package/src/theme/common/toolbar.css +30 -0
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
position: relative;
|
|
164
164
|
}
|
|
165
165
|
.milkdown .milkdown-image-block:hover {
|
|
166
|
-
z-index:
|
|
166
|
+
z-index: 210;
|
|
167
167
|
}
|
|
168
168
|
.milkdown .milkdown-image-block > .image-wrapper {
|
|
169
169
|
position: relative;
|
|
@@ -313,6 +313,10 @@
|
|
|
313
313
|
.milkdown .milkdown-image-block .image-toolbar-item:hover {
|
|
314
314
|
background: var(--crepe-color-hover);
|
|
315
315
|
}
|
|
316
|
+
.milkdown .milkdown-image-block .image-toolbar-item.active {
|
|
317
|
+
background: var(--crepe-color-selected);
|
|
318
|
+
color: var(--crepe-color-primary);
|
|
319
|
+
}
|
|
316
320
|
.milkdown .milkdown-image-block .image-wrapper .image-resize-handle {
|
|
317
321
|
position: absolute;
|
|
318
322
|
width: 8px;
|
|
@@ -81,7 +81,30 @@
|
|
|
81
81
|
min-width: 0;
|
|
82
82
|
max-width: 100%;
|
|
83
83
|
box-sizing: border-box;
|
|
84
|
+
transition: all 0.2s ease-in-out;
|
|
84
85
|
}
|
|
86
|
+
.milkdown .milkdown-fixed-toolbar.collapsed {
|
|
87
|
+
background: transparent !important;
|
|
88
|
+
border-bottom: none !important;
|
|
89
|
+
height: 0 !important;
|
|
90
|
+
min-height: 0 !important;
|
|
91
|
+
padding: 0 !important;
|
|
92
|
+
overflow: visible !important;
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
}
|
|
95
|
+
.milkdown .milkdown-fixed-toolbar .fixed-toolbar-expand-btn svg {
|
|
96
|
+
width: 20px !important;
|
|
97
|
+
height: 20px !important;
|
|
98
|
+
}
|
|
99
|
+
.milkdown .milkdown-fixed-toolbar .fixed-toolbar-expand-btn svg path {
|
|
100
|
+
fill: var(--crepe-color-on-surface, #363b4c);
|
|
101
|
+
}
|
|
102
|
+
.milkdown .milkdown-fixed-toolbar .toolbar-item.collapse-btn {
|
|
103
|
+
--toolbar-icon-color: #363b4c;
|
|
104
|
+
}
|
|
105
|
+
.milkdown .milkdown-fixed-toolbar .toolbar-item.collapse-btn svg path {
|
|
106
|
+
fill: currentColor !important;
|
|
107
|
+
}
|
|
85
108
|
.milkdown .milkdown-fixed-toolbar .toolbar-shortcut-btn {
|
|
86
109
|
display: flex;
|
|
87
110
|
align-items: center;
|