@vscode/markdown-editor 0.0.2-71 → 0.0.2-73
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.d.ts +30 -2
- package/dist/index.js +921 -882
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/view/editor.css +86 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/markdown-editor",
|
|
3
|
-
"version": "0.0.2-
|
|
3
|
+
"version": "0.0.2-73",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"vitest": "^4.1.0",
|
|
112
112
|
"zod": "^4.3.6"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "199d6b94a718b97284c49caf62ed5c348743629a"
|
|
115
115
|
}
|
package/src/view/editor.css
CHANGED
|
@@ -847,14 +847,20 @@ ol.md-list>.md-list-item-active>.md-list-gutter>.md-marker-listItemMarker {
|
|
|
847
847
|
}
|
|
848
848
|
|
|
849
849
|
/*
|
|
850
|
-
* Reserve the marker column
|
|
851
|
-
*
|
|
852
|
-
*
|
|
853
|
-
*
|
|
854
|
-
*
|
|
850
|
+
* Reserve the marker column on the paragraph rather than only on its first
|
|
851
|
+
* inline child. This gives every wrapped line the same content edge. The
|
|
852
|
+
* source marker glue is positioned over that reserved column, as is the
|
|
853
|
+
* rendered checkbox, so activating the item does not shift its text (see the
|
|
854
|
+
* compare fixture's `checkMarkedTextX` assertion).
|
|
855
855
|
*/
|
|
856
|
-
.md-task-list-item
|
|
857
|
-
|
|
856
|
+
.md-task-list-item>.md-paragraph {
|
|
857
|
+
padding-left: var(--md-task-marker-width);
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.md-task-list-item>.md-paragraph>.md-glue:first-child {
|
|
861
|
+
position: absolute;
|
|
862
|
+
top: 0;
|
|
863
|
+
left: 0;
|
|
858
864
|
width: var(--md-task-marker-width);
|
|
859
865
|
}
|
|
860
866
|
|
|
@@ -905,6 +911,59 @@ ol.md-list>.md-list-item-active>.md-list-gutter>.md-marker-listItemMarker {
|
|
|
905
911
|
border-color: #888;
|
|
906
912
|
}
|
|
907
913
|
|
|
914
|
+
/*
|
|
915
|
+
* The rotating "broken rounded-square" progress ring for an inactive task item
|
|
916
|
+
* whose text begins with the hidden `:running:` marker (see
|
|
917
|
+
* `ListItemViewData.isRunning`). Rendered as a conic-gradient ring — masked so
|
|
918
|
+
* only the ring (not its center) paints — with a transparent gap that spins via
|
|
919
|
+
* an animated `@property` angle, reading as a segmented spinner rather than a
|
|
920
|
+
* checked/unchecked box. The base checkbox border/background are hidden so
|
|
921
|
+
* only the ring shows.
|
|
922
|
+
*/
|
|
923
|
+
.md-checkbox-running,
|
|
924
|
+
.md-checkbox-running:checked {
|
|
925
|
+
background: transparent;
|
|
926
|
+
border-color: transparent;
|
|
927
|
+
opacity: 1;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
@property --md-checkbox-spinner-angle {
|
|
931
|
+
syntax: '<angle>';
|
|
932
|
+
inherits: false;
|
|
933
|
+
initial-value: 0deg;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.md-checkbox-running::after,
|
|
937
|
+
.md-checkbox-running:checked::after {
|
|
938
|
+
content: '';
|
|
939
|
+
position: absolute;
|
|
940
|
+
inset: -1px;
|
|
941
|
+
padding: 2px;
|
|
942
|
+
width: auto;
|
|
943
|
+
height: auto;
|
|
944
|
+
border: 0;
|
|
945
|
+
border-radius: 4px;
|
|
946
|
+
background: conic-gradient(
|
|
947
|
+
from var(--md-checkbox-spinner-angle),
|
|
948
|
+
transparent 0deg 42deg,
|
|
949
|
+
#bbb 62deg 360deg
|
|
950
|
+
);
|
|
951
|
+
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
952
|
+
-webkit-mask-composite: xor;
|
|
953
|
+
mask-composite: exclude;
|
|
954
|
+
animation: md-checkbox-spin 0.8s linear infinite !important;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
@keyframes md-checkbox-spin {
|
|
958
|
+
to {
|
|
959
|
+
--md-checkbox-spinner-angle: 360deg;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.md-checkbox-running:hover {
|
|
964
|
+
border-color: transparent;
|
|
965
|
+
}
|
|
966
|
+
|
|
908
967
|
.md-checkbox:checked:hover {
|
|
909
968
|
background-color: #3a73d4;
|
|
910
969
|
border-color: #3a73d4;
|
|
@@ -915,6 +974,26 @@ ol.md-list>.md-list-item-active>.md-list-gutter>.md-marker-listItemMarker {
|
|
|
915
974
|
opacity: 0.6;
|
|
916
975
|
}
|
|
917
976
|
|
|
977
|
+
.md-checkbox-running:disabled {
|
|
978
|
+
opacity: 1;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
@media (prefers-reduced-motion: reduce) {
|
|
982
|
+
.md-checkbox-running::after {
|
|
983
|
+
animation: none !important;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/*
|
|
988
|
+
* The `:running:` marker hidden from an inactive task item's rendered text
|
|
989
|
+
* (see `TextViewData.hiddenPrefixLength`). It stays real, selectable source —
|
|
990
|
+
* only visually hidden, per "Hidden markers remain real source" — so it takes
|
|
991
|
+
* no layout space in either state.
|
|
992
|
+
*/
|
|
993
|
+
.md-runner-marker {
|
|
994
|
+
display: none;
|
|
995
|
+
}
|
|
996
|
+
|
|
918
997
|
.md-cursor {
|
|
919
998
|
position: absolute;
|
|
920
999
|
width: 2px;
|