rme 0.0.62 → 0.0.63
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/index.mjs +103 -6
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -7459,10 +7459,6 @@ var WysiwygThemeWrapper = styled.div.attrs((p) => p)`
|
|
|
7459
7459
|
border-radius: 6px;
|
|
7460
7460
|
}
|
|
7461
7461
|
|
|
7462
|
-
& pre {
|
|
7463
|
-
background-color: ${(props) => props.theme.preBgColor};
|
|
7464
|
-
}
|
|
7465
|
-
|
|
7466
7462
|
& code,
|
|
7467
7463
|
& kbd,
|
|
7468
7464
|
& pre,
|
|
@@ -7831,7 +7827,7 @@ var WysiwygThemeWrapper = styled.div.attrs((p) => p)`
|
|
|
7831
7827
|
overflow: auto;
|
|
7832
7828
|
font-size: 85%;
|
|
7833
7829
|
line-height: 1.45;
|
|
7834
|
-
background-color:
|
|
7830
|
+
background-color: ${(props) => props.theme.preBgColor};
|
|
7835
7831
|
border-radius: 6px;
|
|
7836
7832
|
}
|
|
7837
7833
|
|
|
@@ -8202,6 +8198,108 @@ var WysiwygThemeWrapper = styled.div.attrs((p) => p)`
|
|
|
8202
8198
|
}
|
|
8203
8199
|
}
|
|
8204
8200
|
|
|
8201
|
+
.prosemirror-flat-list {
|
|
8202
|
+
padding: 0;
|
|
8203
|
+
margin-top: 0;
|
|
8204
|
+
margin-bottom: 0;
|
|
8205
|
+
margin-left: 32px;
|
|
8206
|
+
margin-bottom: 0;
|
|
8207
|
+
position: relative;
|
|
8208
|
+
display: list-item;
|
|
8209
|
+
list-style: none;
|
|
8210
|
+
}
|
|
8211
|
+
.prosemirror-flat-list.ProseMirror-selectednode {
|
|
8212
|
+
outline: none;
|
|
8213
|
+
}
|
|
8214
|
+
.prosemirror-flat-list.ProseMirror-selectednode:after {
|
|
8215
|
+
content: '';
|
|
8216
|
+
position: absolute;
|
|
8217
|
+
left: -32px;
|
|
8218
|
+
right: -2px;
|
|
8219
|
+
top: -2px;
|
|
8220
|
+
bottom: -2px;
|
|
8221
|
+
border: 2px solid #8cf;
|
|
8222
|
+
pointer-events: none;
|
|
8223
|
+
}
|
|
8224
|
+
.prosemirror-flat-list[data-list-kind='bullet'] {
|
|
8225
|
+
list-style: disc;
|
|
8226
|
+
}
|
|
8227
|
+
.prosemirror-flat-list[data-list-kind='ordered'] {
|
|
8228
|
+
counter-increment: prosemirror-flat-list-counter;
|
|
8229
|
+
}
|
|
8230
|
+
.prosemirror-flat-list[data-list-kind='ordered'] > * {
|
|
8231
|
+
contain: style;
|
|
8232
|
+
}
|
|
8233
|
+
.prosemirror-flat-list[data-list-kind='ordered']::before {
|
|
8234
|
+
position: absolute;
|
|
8235
|
+
right: 100%;
|
|
8236
|
+
font-variant-numeric: tabular-nums;
|
|
8237
|
+
content: counter(prosemirror-flat-list-counter, decimal) '. ';
|
|
8238
|
+
}
|
|
8239
|
+
.prosemirror-flat-list[data-list-kind='ordered']:first-child,
|
|
8240
|
+
:not(.prosemirror-flat-list[data-list-kind='ordered'])
|
|
8241
|
+
+ .prosemirror-flat-list[data-list-kind='ordered'] {
|
|
8242
|
+
counter-reset: prosemirror-flat-list-counter;
|
|
8243
|
+
}
|
|
8244
|
+
|
|
8245
|
+
@supports (counter-set: prosemirror-flat-list-counter 1) {
|
|
8246
|
+
[data-list-order]:is(
|
|
8247
|
+
.prosemirror-flat-list[data-list-kind='ordered']:first-child,
|
|
8248
|
+
:not(.prosemirror-flat-list[data-list-kind='ordered'])
|
|
8249
|
+
+ .prosemirror-flat-list[data-list-kind='ordered']
|
|
8250
|
+
) {
|
|
8251
|
+
counter-set: prosemirror-flat-list-counter var(--prosemirror-flat-list-order);
|
|
8252
|
+
}
|
|
8253
|
+
}
|
|
8254
|
+
@supports not (counter-set: prosemirror-flat-list-counter 1) {
|
|
8255
|
+
[data-list-order]:is(
|
|
8256
|
+
.prosemirror-flat-list[data-list-kind='ordered']:first-child,
|
|
8257
|
+
:not(.prosemirror-flat-list[data-list-kind='ordered'])
|
|
8258
|
+
+ .prosemirror-flat-list[data-list-kind='ordered']
|
|
8259
|
+
) {
|
|
8260
|
+
counter-increment: prosemirror-flat-list-counter var(--prosemirror-flat-list-order);
|
|
8261
|
+
}
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8264
|
+
.prosemirror-flat-list[data-list-kind='task'] > .list-marker {
|
|
8265
|
+
position: absolute;
|
|
8266
|
+
right: 100%;
|
|
8267
|
+
text-align: center;
|
|
8268
|
+
width: 1.5em;
|
|
8269
|
+
width: 1lh;
|
|
8270
|
+
}
|
|
8271
|
+
.prosemirror-flat-list[data-list-kind='task'] > .list-marker,
|
|
8272
|
+
.prosemirror-flat-list[data-list-kind='task'] > .list-marker * {
|
|
8273
|
+
cursor: pointer;
|
|
8274
|
+
}
|
|
8275
|
+
.prosemirror-flat-list[data-list-kind='toggle'] > .list-marker {
|
|
8276
|
+
position: absolute;
|
|
8277
|
+
right: 100%;
|
|
8278
|
+
text-align: center;
|
|
8279
|
+
width: 1.5em;
|
|
8280
|
+
width: 1lh;
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8283
|
+
.prosemirror-flat-list[data-list-kind='toggle'] > .list-marker::before {
|
|
8284
|
+
content: '\\23f7';
|
|
8285
|
+
}
|
|
8286
|
+
.prosemirror-flat-list[data-list-kind='toggle'][data-list-collapsable][data-list-collapsed]
|
|
8287
|
+
> .list-marker::before {
|
|
8288
|
+
content: '\\23f5';
|
|
8289
|
+
}
|
|
8290
|
+
.prosemirror-flat-list[data-list-kind='toggle'][data-list-collapsable] > .list-marker {
|
|
8291
|
+
cursor: pointer;
|
|
8292
|
+
}
|
|
8293
|
+
.prosemirror-flat-list[data-list-kind='toggle']:not([data-list-collapsable]) > .list-marker {
|
|
8294
|
+
opacity: 40%;
|
|
8295
|
+
pointer-events: none;
|
|
8296
|
+
}
|
|
8297
|
+
.prosemirror-flat-list[data-list-kind='toggle'][data-list-collapsable][data-list-collapsed]
|
|
8298
|
+
> .list-content
|
|
8299
|
+
> *:nth-child(n + 2) {
|
|
8300
|
+
display: none;
|
|
8301
|
+
}
|
|
8302
|
+
|
|
8205
8303
|
${(props) => props.dark && css`
|
|
8206
8304
|
color-scheme: dark;
|
|
8207
8305
|
`}
|
|
@@ -19136,7 +19234,6 @@ var useContextMounted = (onContextMounted) => {
|
|
|
19136
19234
|
};
|
|
19137
19235
|
|
|
19138
19236
|
// src/editor/components/Editor.tsx
|
|
19139
|
-
import "prosemirror-flat-list/dist/style.css";
|
|
19140
19237
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
19141
19238
|
var Editor = memo6(
|
|
19142
19239
|
forwardRef2((props, ref) => {
|