@rufous/ui 0.1.94 → 0.1.95
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/main.cjs +4 -21
- package/dist/main.css +43 -2
- package/dist/main.js +4 -21
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -49712,33 +49712,16 @@ function createSpellCheckPlugin() {
|
|
|
49712
49712
|
init() {
|
|
49713
49713
|
return DecorationSet.empty;
|
|
49714
49714
|
},
|
|
49715
|
-
apply(tr,
|
|
49715
|
+
apply(tr, _oldDecos) {
|
|
49716
49716
|
const meta = tr.getMeta(spellCheckPluginKey);
|
|
49717
49717
|
if (meta?.decorations) return meta.decorations;
|
|
49718
|
-
if (tr.docChanged)
|
|
49719
|
-
|
|
49720
|
-
if (oldDecos === DecorationSet.empty) return DecorationSet.empty;
|
|
49721
|
-
try {
|
|
49722
|
-
const mapped = oldDecos.map(tr.mapping, tr.doc);
|
|
49723
|
-
if (!mapped || typeof mapped.find !== "function") return DecorationSet.empty;
|
|
49724
|
-
return mapped;
|
|
49725
|
-
} catch {
|
|
49726
|
-
return DecorationSet.empty;
|
|
49727
|
-
}
|
|
49728
|
-
}
|
|
49729
|
-
return oldDecos;
|
|
49718
|
+
if (tr.docChanged) return DecorationSet.empty;
|
|
49719
|
+
return _oldDecos;
|
|
49730
49720
|
}
|
|
49731
49721
|
},
|
|
49732
49722
|
props: {
|
|
49733
49723
|
decorations(state) {
|
|
49734
|
-
|
|
49735
|
-
const decos = spellCheckPluginKey.getState(state);
|
|
49736
|
-
if (!decos || decos === DecorationSet.empty) return DecorationSet.empty;
|
|
49737
|
-
decos.find();
|
|
49738
|
-
return decos;
|
|
49739
|
-
} catch {
|
|
49740
|
-
return DecorationSet.empty;
|
|
49741
|
-
}
|
|
49724
|
+
return spellCheckPluginKey.getState(state) || DecorationSet.empty;
|
|
49742
49725
|
}
|
|
49743
49726
|
},
|
|
49744
49727
|
view(editorView) {
|
package/dist/main.css
CHANGED
|
@@ -16345,13 +16345,54 @@ svg.jodit-icon {
|
|
|
16345
16345
|
}
|
|
16346
16346
|
.rf-rte-content ul[data-type=taskList] {
|
|
16347
16347
|
list-style: none;
|
|
16348
|
-
padding-left:
|
|
16348
|
+
padding-left: 8px;
|
|
16349
16349
|
}
|
|
16350
16350
|
.rf-rte-content ul[data-type=taskList] li {
|
|
16351
16351
|
display: flex;
|
|
16352
16352
|
align-items: flex-start;
|
|
16353
16353
|
gap: 8px;
|
|
16354
|
-
margin:
|
|
16354
|
+
margin: 8px 0;
|
|
16355
|
+
list-style: none;
|
|
16356
|
+
}
|
|
16357
|
+
.rf-rte-content ul[data-type=taskList] li::before {
|
|
16358
|
+
content: "";
|
|
16359
|
+
flex-shrink: 0;
|
|
16360
|
+
display: inline-block;
|
|
16361
|
+
width: 18px;
|
|
16362
|
+
height: 18px;
|
|
16363
|
+
margin-top: 4px;
|
|
16364
|
+
border-radius: 3px;
|
|
16365
|
+
border: 2px solid #dc2626;
|
|
16366
|
+
background-repeat: no-repeat;
|
|
16367
|
+
background-position: center;
|
|
16368
|
+
background-size: contain;
|
|
16369
|
+
background-image: url(https://storage.googleapis.com/rufous-com-bucket-1/static/images/todo-blank.svg);
|
|
16370
|
+
}
|
|
16371
|
+
.rf-rte-content ul[data-type=taskList] li[data-status=todo]::before {
|
|
16372
|
+
border-color: #dc2626;
|
|
16373
|
+
background-image: url(https://storage.googleapis.com/rufous-com-bucket-1/static/images/todo-blank.svg);
|
|
16374
|
+
}
|
|
16375
|
+
.rf-rte-content ul[data-type=taskList] li[data-status=working]::before {
|
|
16376
|
+
border-color: #2563eb;
|
|
16377
|
+
background-image: url(https://storage.googleapis.com/rufous-com-bucket-1/static/images/working.svg);
|
|
16378
|
+
}
|
|
16379
|
+
.rf-rte-content ul[data-type=taskList] li[data-status=blocked]::before {
|
|
16380
|
+
border-color: #1f2937;
|
|
16381
|
+
background-image: url(https://storage.googleapis.com/rufous-com-bucket-1/static/images/blocked.svg);
|
|
16382
|
+
}
|
|
16383
|
+
.rf-rte-content ul[data-type=taskList] li[data-status=resolved]::before {
|
|
16384
|
+
border-color: #16a34a;
|
|
16385
|
+
background-image: url(https://storage.googleapis.com/rufous-com-bucket-1/static/images/closed.svg);
|
|
16386
|
+
}
|
|
16387
|
+
.rf-rte-content ul[data-type=taskList] li[data-status=resolved] > p {
|
|
16388
|
+
text-decoration: line-through;
|
|
16389
|
+
color: #9ca3af;
|
|
16390
|
+
}
|
|
16391
|
+
.rf-rte-content ul[data-type=taskList] li > label {
|
|
16392
|
+
display: none;
|
|
16393
|
+
}
|
|
16394
|
+
.rf-rte-content ul[data-type=taskList] li > input[type=checkbox] {
|
|
16395
|
+
display: none;
|
|
16355
16396
|
}
|
|
16356
16397
|
.rf-rte-content blockquote {
|
|
16357
16398
|
border-left: 3px solid #6366f1;
|
package/dist/main.js
CHANGED
|
@@ -21042,33 +21042,16 @@ function createSpellCheckPlugin() {
|
|
|
21042
21042
|
init() {
|
|
21043
21043
|
return DecorationSet.empty;
|
|
21044
21044
|
},
|
|
21045
|
-
apply(tr,
|
|
21045
|
+
apply(tr, _oldDecos) {
|
|
21046
21046
|
const meta = tr.getMeta(spellCheckPluginKey);
|
|
21047
21047
|
if (meta?.decorations) return meta.decorations;
|
|
21048
|
-
if (tr.docChanged)
|
|
21049
|
-
|
|
21050
|
-
if (oldDecos === DecorationSet.empty) return DecorationSet.empty;
|
|
21051
|
-
try {
|
|
21052
|
-
const mapped = oldDecos.map(tr.mapping, tr.doc);
|
|
21053
|
-
if (!mapped || typeof mapped.find !== "function") return DecorationSet.empty;
|
|
21054
|
-
return mapped;
|
|
21055
|
-
} catch {
|
|
21056
|
-
return DecorationSet.empty;
|
|
21057
|
-
}
|
|
21058
|
-
}
|
|
21059
|
-
return oldDecos;
|
|
21048
|
+
if (tr.docChanged) return DecorationSet.empty;
|
|
21049
|
+
return _oldDecos;
|
|
21060
21050
|
}
|
|
21061
21051
|
},
|
|
21062
21052
|
props: {
|
|
21063
21053
|
decorations(state) {
|
|
21064
|
-
|
|
21065
|
-
const decos = spellCheckPluginKey.getState(state);
|
|
21066
|
-
if (!decos || decos === DecorationSet.empty) return DecorationSet.empty;
|
|
21067
|
-
decos.find();
|
|
21068
|
-
return decos;
|
|
21069
|
-
} catch {
|
|
21070
|
-
return DecorationSet.empty;
|
|
21071
|
-
}
|
|
21054
|
+
return spellCheckPluginKey.getState(state) || DecorationSet.empty;
|
|
21072
21055
|
}
|
|
21073
21056
|
},
|
|
21074
21057
|
view(editorView) {
|