@vscode/markdown-editor 0.0.2-13 → 0.0.2-131
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 +659 -0
- package/dist/commands.d.ts +67 -0
- package/dist/commands.js +185 -0
- package/dist/commands.js.map +1 -0
- package/dist/config-BGeaJqWk.js +286 -0
- package/dist/config-BGeaJqWk.js.map +1 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.js +6 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +1611 -270
- package/dist/index.js +7839 -3291
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.css +1 -1
- package/dist/scrolling-C4GW1cCQ.js +391 -0
- package/dist/scrolling-C4GW1cCQ.js.map +1 -0
- package/dist/web-editors.d.ts +354 -0
- package/dist/web-editors.js +7528 -0
- package/dist/web-editors.js.map +1 -0
- package/package.json +59 -19
- package/src/contrib/comments/commentInput.css +38 -80
- package/src/contrib/comments/commentWidget.css +60 -0
- package/src/contrib/find/find.css +347 -0
- package/src/contrib/rename/rename.css +73 -0
- package/src/contrib/suggest/suggest.css +109 -0
- package/src/view/editor.css +1702 -111
- package/src/view/themes/default.css +21 -4
- package/src/view/themes/github.css +25 -13
- package/src/view/themes/vscode-default.css +98 -23
- package/src/view/themes/vscode-github.css +84 -15
- package/dist/_observables/assert.d.ts +0 -2
- package/dist/_observables/deps.d.ts +0 -28
- package/dist/_observables/disposables.d.ts +0 -19
- package/dist/_observables/equals.d.ts +0 -32
- package/dist/_observables/index.d.ts +0 -2
- package/dist/_observables/observableInternal/base.d.ts +0 -172
- package/dist/_observables/observableInternal/changeTracker.d.ts +0 -44
- package/dist/_observables/observableInternal/commonFacade/cancellation.d.ts +0 -24
- package/dist/_observables/observableInternal/commonFacade/deps.d.ts +0 -24
- package/dist/_observables/observableInternal/debugLocation.d.ts +0 -21
- package/dist/_observables/observableInternal/debugName.d.ts +0 -33
- package/dist/_observables/observableInternal/experimental/deferUnobserve.d.ts +0 -16
- package/dist/_observables/observableInternal/experimental/reducer.d.ts +0 -37
- package/dist/_observables/observableInternal/experimental/utils.d.ts +0 -15
- package/dist/_observables/observableInternal/index.d.ts +0 -25
- package/dist/_observables/observableInternal/logging/consoleObservableLogger.d.ts +0 -40
- package/dist/_observables/observableInternal/logging/debugGetDependencyGraph.d.ts +0 -4
- package/dist/_observables/observableInternal/logging/debugger/debuggerRpc.d.ts +0 -4
- package/dist/_observables/observableInternal/logging/debugger/devToolsLogger.d.ts +0 -43
- package/dist/_observables/observableInternal/logging/debugger/rpc.d.ts +0 -41
- package/dist/_observables/observableInternal/logging/debugger/utils.d.ts +0 -13
- package/dist/_observables/observableInternal/logging/logging.d.ts +0 -30
- package/dist/_observables/observableInternal/map.d.ts +0 -18
- package/dist/_observables/observableInternal/observables/baseObservable.d.ts +0 -58
- package/dist/_observables/observableInternal/observables/constObservable.d.ts +0 -5
- package/dist/_observables/observableInternal/observables/derived.d.ts +0 -46
- package/dist/_observables/observableInternal/observables/derivedImpl.d.ts +0 -83
- package/dist/_observables/observableInternal/observables/lazyObservableValue.d.ts +0 -27
- package/dist/_observables/observableInternal/observables/observableFromEvent.d.ts +0 -37
- package/dist/_observables/observableInternal/observables/observableSignal.d.ts +0 -11
- package/dist/_observables/observableInternal/observables/observableSignalFromEvent.d.ts +0 -5
- package/dist/_observables/observableInternal/observables/observableValue.d.ts +0 -37
- package/dist/_observables/observableInternal/observables/observableValueOpts.d.ts +0 -8
- package/dist/_observables/observableInternal/reactions/autorun.d.ts +0 -56
- package/dist/_observables/observableInternal/reactions/autorunImpl.d.ts +0 -53
- package/dist/_observables/observableInternal/set.d.ts +0 -17
- package/dist/_observables/observableInternal/transaction.d.ts +0 -27
- package/dist/_observables/observableInternal/utils/promise.d.ts +0 -75
- package/dist/_observables/observableInternal/utils/runOnChange.d.ts +0 -7
- package/dist/_observables/observableInternal/utils/utils.d.ts +0 -43
- package/dist/_observables/observableInternal/utils/utilsCancellation.d.ts +0 -10
- package/dist/_observables/observableInternal/utils/valueWithChangeEvent.d.ts +0 -10
- package/dist/_observables/utils.d.ts +0 -15
- package/dist/observables.d.ts +0 -4
- package/dist/observables.js +0 -439
- package/dist/observables.js.map +0 -1
- package/dist/runOnChange-C00UIwqQ.js +0 -1538
- package/dist/runOnChange-C00UIwqQ.js.map +0 -1
- package/src/contrib/comments/comments.css +0 -129
- package/src/contrib/commentsVscode/vscodeCommentWidgetV2.css +0 -166
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* Styling for VsCodeCommentWidgetV2 — a replica of the Figma "Markdown comment"
|
|
8
|
-
* frames. It is theme-aware: every colour is driven by a VS Code `--vscode-*`
|
|
9
|
-
* design token, with the original Figma dark values kept only as literal
|
|
10
|
-
* fallbacks (so the card still renders when no theme provider is present). Wrap
|
|
11
|
-
* the widget in `.vscode-comments-light` / `.vscode-comments-dark` (from
|
|
12
|
-
* vscodeCommentTokens.css) to supply those tokens.
|
|
13
|
-
*
|
|
14
|
-
* Figma token -> VS Code token (fallback)
|
|
15
|
-
* editorWidget/background --vscode-editorWidget-background (#202122)
|
|
16
|
-
* editorHoverWidget/border --vscode-editorHoverWidget-border (#2a2b2c)
|
|
17
|
-
* foreground --vscode-foreground (#bfbfbf)
|
|
18
|
-
* icon/foreground --vscode-icon-foreground (#8c8c8c)
|
|
19
|
-
* textLink/foreground --vscode-textLink-foreground (#48a0c7)
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/* Supplemental tokens not provided by vscodeCommentTokens.css. */
|
|
23
|
-
.vscode-comments-light {
|
|
24
|
-
--vscode-icon-foreground: #616161;
|
|
25
|
-
--vscode-textLink-foreground: #005fb8;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.vscode-comments-dark {
|
|
29
|
-
--vscode-icon-foreground: #cccccc;
|
|
30
|
-
--vscode-textLink-foreground: #4daafc;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.vscode-comment-widget-v2 {
|
|
34
|
-
box-sizing: border-box;
|
|
35
|
-
width: 320px;
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
gap: 12px;
|
|
39
|
-
padding: 8px;
|
|
40
|
-
/* size80 */
|
|
41
|
-
background: var(--vscode-editorWidget-background, #202122);
|
|
42
|
-
border: 1px solid var(--vscode-editorHoverWidget-border, var(--vscode-editorWidget-border, #2a2b2c));
|
|
43
|
-
border-radius: var(--vscode-cornerRadius-large, 8px);
|
|
44
|
-
/* Outer radius */
|
|
45
|
-
box-shadow: 0 8px 8px rgba(0, 0, 0, 0.25);
|
|
46
|
-
font-family: var(--vscode-font-family, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.vscode-comment-widget-v2 *,
|
|
50
|
-
.vscode-comment-widget-v2 *::before,
|
|
51
|
-
.vscode-comment-widget-v2 *::after {
|
|
52
|
-
box-sizing: border-box;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Header row: username on the left, edit/trash actions on the right. */
|
|
56
|
-
.vscode-comment-widget-v2-header {
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: space-between;
|
|
60
|
-
width: 100%;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.vscode-comment-widget-v2-title-group {
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
gap: 6px;
|
|
67
|
-
/* size60 */
|
|
68
|
-
flex: 1 0 0;
|
|
69
|
-
min-width: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.vscode-comment-widget-v2-username {
|
|
73
|
-
flex: 1 0 0;
|
|
74
|
-
min-width: 0;
|
|
75
|
-
overflow: hidden;
|
|
76
|
-
text-overflow: ellipsis;
|
|
77
|
-
white-space: nowrap;
|
|
78
|
-
/* Font ramp/Heading 3: SF Pro Text Semibold 13 */
|
|
79
|
-
font-size: 13px;
|
|
80
|
-
font-weight: 600;
|
|
81
|
-
line-height: normal;
|
|
82
|
-
color: var(--vscode-foreground, #bfbfbf);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.vscode-comment-widget-v2-actions {
|
|
86
|
-
display: flex;
|
|
87
|
-
align-items: center;
|
|
88
|
-
gap: 4px;
|
|
89
|
-
/* size40 */
|
|
90
|
-
flex-shrink: 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.vscode-comment-widget-v2-action {
|
|
94
|
-
display: inline-flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
width: 16px;
|
|
98
|
-
height: 16px;
|
|
99
|
-
padding: 0;
|
|
100
|
-
margin: 0;
|
|
101
|
-
border: none;
|
|
102
|
-
background: transparent;
|
|
103
|
-
color: var(--vscode-icon-foreground, #8c8c8c);
|
|
104
|
-
cursor: pointer;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.vscode-comment-widget-v2-action:hover {
|
|
108
|
-
color: var(--vscode-foreground, #bfbfbf);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.vscode-comment-widget-v2-action svg {
|
|
112
|
-
display: block;
|
|
113
|
-
width: 16px;
|
|
114
|
-
height: 16px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/* Body: comment text + optional "See more" / "See less" toggle. */
|
|
118
|
-
.vscode-comment-widget-v2-body {
|
|
119
|
-
display: flex;
|
|
120
|
-
flex-direction: column;
|
|
121
|
-
gap: 6px;
|
|
122
|
-
/* size60 */
|
|
123
|
-
width: 100%;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.vscode-comment-widget-v2-text {
|
|
127
|
-
margin: 0;
|
|
128
|
-
width: 100%;
|
|
129
|
-
/* Font ramp/Body 1: SF Pro Text Regular 13 */
|
|
130
|
-
font-size: 13px;
|
|
131
|
-
font-weight: 400;
|
|
132
|
-
line-height: normal;
|
|
133
|
-
color: var(--vscode-foreground, #bfbfbf);
|
|
134
|
-
opacity: 0.9;
|
|
135
|
-
white-space: pre-wrap;
|
|
136
|
-
word-break: break-word;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* Collapsed bodies clamp to three lines (matches the Figma "See more" frame). */
|
|
140
|
-
.vscode-comment-widget-v2--collapsed .vscode-comment-widget-v2-text {
|
|
141
|
-
display: -webkit-box;
|
|
142
|
-
-webkit-box-orient: vertical;
|
|
143
|
-
-webkit-line-clamp: 3;
|
|
144
|
-
line-clamp: 3;
|
|
145
|
-
overflow: hidden;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.vscode-comment-widget-v2-toggle {
|
|
149
|
-
align-self: flex-start;
|
|
150
|
-
padding: 0;
|
|
151
|
-
margin: 0;
|
|
152
|
-
border: none;
|
|
153
|
-
background: none;
|
|
154
|
-
cursor: pointer;
|
|
155
|
-
text-align: left;
|
|
156
|
-
/* Font ramp/Label 1: SF Pro Text Regular 12 */
|
|
157
|
-
font-family: inherit;
|
|
158
|
-
font-size: 12px;
|
|
159
|
-
font-weight: 400;
|
|
160
|
-
line-height: normal;
|
|
161
|
-
color: var(--vscode-textLink-foreground, #48a0c7);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.vscode-comment-widget-v2-toggle:hover {
|
|
165
|
-
text-decoration: underline;
|
|
166
|
-
}
|