@vscode/markdown-editor 0.0.2-113 → 0.0.2-115

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/markdown-editor",
3
- "version": "0.0.2-113",
3
+ "version": "0.0.2-115",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,7 +36,9 @@
36
36
  "src/view/themes/vscode-default.css",
37
37
  "src/contrib/comments/commentInput.css",
38
38
  "src/contrib/comments/commentWidget.css",
39
- "src/contrib/find/find.css"
39
+ "src/contrib/find/find.css",
40
+ "src/contrib/rename/rename.css",
41
+ "src/contrib/suggest/suggest.css"
40
42
  ],
41
43
  "exports": {
42
44
  ".": {
@@ -61,13 +63,18 @@
61
63
  "./themes/vscode-github.css": "./src/view/themes/vscode-github.css",
62
64
  "./themes/vscode-default.css": "./src/view/themes/vscode-default.css",
63
65
  "./commentInput.css": "./src/contrib/comments/commentInput.css",
64
- "./commentWidget.css": "./src/contrib/comments/commentWidget.css"
66
+ "./commentWidget.css": "./src/contrib/comments/commentWidget.css",
67
+ "./rename.css": "./src/contrib/rename/rename.css",
68
+ "./suggest.css": "./src/contrib/suggest/suggest.css"
65
69
  },
66
70
  "scripts": {
67
71
  "build": "pnpm run build:dependencies && vite build",
68
72
  "build:dependencies": "pnpm --filter @vscode/hubrpc build && pnpm --filter @vscode/web-editors build",
69
- "build:fixture-dependencies": "pnpm run build:dependencies && pnpm --filter @vscode/component-explorer-vite-plugin... build && pnpm --filter @vscode/sample-web-editor build",
70
- "build:fixtures": "vite build --config vite.fixture.config.ts --outDir dist-explorer --emptyOutDir",
73
+ "build:fixture-dependencies": "pnpm run build:dependencies && pnpm --filter @vscode/cmark-gfm-wasm build && pnpm --filter @vscode/component-explorer-vite-plugin... build && pnpm --filter @vscode/sample-web-editor build",
74
+ "typecheck:fixtures": "tsc --project tsconfig.fixtures.json",
75
+ "screenshots": "node scripts/screenshots.mjs render",
76
+ "test:screenshots": "node --test scripts/screenshots.test.mjs",
77
+ "build:fixtures": "pnpm run typecheck:fixtures && vite build --config vite.fixture.config.ts --outDir dist-explorer --emptyOutDir",
71
78
  "build:explorer": "pnpm run build:fixture-dependencies && pnpm run build:fixtures",
72
79
  "serve:e2e-fixtures": "vite preview --config vite.fixture.config.ts --outDir dist-explorer",
73
80
  "dev": "vite build --watch",
@@ -85,15 +92,17 @@
85
92
  "micromark": "^4.0.1",
86
93
  "micromark-extension-frontmatter": "^2.0.0",
87
94
  "micromark-extension-gfm": "^3.0.0",
95
+ "micromark-extension-gfm-autolink-literal": "^2.1.0",
88
96
  "micromark-extension-gfm-strikethrough": "^2.1.0",
89
97
  "micromark-extension-gfm-table": "^2.1.1",
90
98
  "micromark-extension-gfm-task-list-item": "^2.1.0",
91
99
  "micromark-extension-math": "^3.1.0"
92
100
  },
93
101
  "devDependencies": {
94
- "@playwright/test": "^1.58.2",
102
+ "@playwright/test": "1.56.1",
95
103
  "@types/katex": "^0.16.8",
96
104
  "@types/markdown-it": "^14.1.2",
105
+ "@vscode/cmark-gfm-wasm": "workspace:*",
97
106
  "@vscode/component-explorer": "workspace:*",
98
107
  "@vscode/component-explorer-cli": "workspace:*",
99
108
  "@vscode/component-explorer-vite-plugin": "workspace:*",
@@ -110,5 +119,5 @@
110
119
  "vitest": "^4.1.0",
111
120
  "zod": "^4.3.6"
112
121
  },
113
- "gitHead": "4445737237dc9e9f9e6a5ef7f28ed84c049478cf"
122
+ "gitHead": "80b9f58ae02c6bc7030d54db4b77cdb8ad263645"
114
123
  }
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ * Visual design adapted from VS Code src/vs/editor/contrib/rename/browser/renameWidget.css.
5
+ */
6
+
7
+ .md-rename-widget {
8
+ box-sizing: border-box;
9
+ width: 280px;
10
+ max-width: 100%;
11
+ max-height: 100%;
12
+ overflow: auto;
13
+ padding: 4px 4px 0;
14
+ border: 1px solid var(--vscode-widget-border, transparent);
15
+ border-radius: 4px;
16
+ box-shadow: var(--vscode-shadow-lg, 0 2px 8px var(--vscode-widget-shadow, #0003));
17
+ color: var(--vscode-editorWidget-foreground, #333);
18
+ background: var(--vscode-editorWidget-background, #f3f3f3);
19
+ font-family: var(--vscode-font-family, sans-serif);
20
+ font-size: var(--vscode-font-size, 13px);
21
+ }
22
+
23
+ .md-rename-widget[hidden] {
24
+ display: none;
25
+ }
26
+
27
+ .md-rename-widget.md-rename-overlay {
28
+ position: absolute;
29
+ z-index: 100;
30
+ }
31
+
32
+ .md-rename-widget .md-rename-input-shell {
33
+ display: flex;
34
+ padding: 3px;
35
+ border: 1px solid var(--vscode-input-border, transparent);
36
+ border-radius: 4px;
37
+ background: var(--vscode-input-background, #fff);
38
+ }
39
+
40
+ .md-rename-widget .md-rename-input-shell:focus-within {
41
+ border-color: var(--vscode-focusBorder, #007acc);
42
+ }
43
+
44
+ .md-rename-widget .md-rename-input {
45
+ box-sizing: border-box;
46
+ width: 100%;
47
+ min-width: 0;
48
+ padding: 0;
49
+ border: 0;
50
+ outline: none;
51
+ color: var(--vscode-input-foreground, #333);
52
+ caret-color: var(--vscode-editorCursor-foreground, currentColor);
53
+ background: transparent;
54
+ font-family: var(--vscode-editor-font-family, monospace);
55
+ font-size: var(--vscode-editor-font-size, 14px);
56
+ line-height: 20px;
57
+ }
58
+
59
+ .md-rename-widget .md-rename-message {
60
+ padding: 3px 0;
61
+ font-size: 11px;
62
+ line-height: 16px;
63
+ overflow-wrap: anywhere;
64
+ }
65
+
66
+ .md-rename-widget.md-rename-invalid .md-rename-input-shell {
67
+ border-color: var(--vscode-inputValidation-errorBorder, #be1100);
68
+ }
69
+
70
+ .md-rename-widget.md-rename-invalid .md-rename-message {
71
+ color: var(--vscode-inputValidation-errorForeground, var(--vscode-errorForeground, #be1100));
72
+ background: var(--vscode-inputValidation-errorBackground, transparent);
73
+ }
@@ -0,0 +1,109 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See LICENSE in the repository root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ /* Adapted from VS Code's src/vs/editor/contrib/suggest/browser/media/suggest.css. */
7
+ @import '@vscode/codicons/dist/codicon.css';
8
+
9
+ .md-suggest-widget {
10
+ box-sizing: border-box;
11
+ width: 432px;
12
+ padding-bottom: 2px;
13
+ max-width: 100%;
14
+ overflow: hidden;
15
+ border: 1px solid var(--vscode-editorSuggestWidget-border, var(--vscode-editorWidget-border, #454545));
16
+ border-radius: var(--vscode-cornerRadius-large, 4px);
17
+ background: var(--vscode-editorSuggestWidget-background, var(--vscode-editorWidget-background, #252526));
18
+ color: var(--vscode-editorSuggestWidget-foreground, var(--vscode-editor-foreground, #cccccc));
19
+ box-shadow: 0 2px 8px var(--vscode-widget-shadow, #00000036);
20
+ font-family: var(--vscode-editor-font-family, monospace);
21
+ font-size: var(--vscode-editor-font-size, 14px);
22
+ line-height: var(--md-suggest-line-height, 19px);
23
+ }
24
+
25
+ .md-suggest-widget[hidden],
26
+ .md-suggest-widget [hidden] {
27
+ display: none;
28
+ }
29
+
30
+ .md-suggest-widget .md-suggest-list {
31
+ position: relative;
32
+ max-height: min(calc(var(--md-suggest-line-height, 19px) * 12), var(--md-suggest-max-height, 100vh));
33
+ overflow-y: auto;
34
+ overscroll-behavior: contain;
35
+ scrollbar-width: thin;
36
+ scrollbar-color: var(--vscode-scrollbarSlider-background, #79797966) transparent;
37
+ user-select: none;
38
+ }
39
+
40
+ .md-suggest-widget .md-suggest-row {
41
+ box-sizing: border-box;
42
+ display: flex;
43
+ height: var(--md-suggest-line-height, 19px);
44
+ align-items: center;
45
+ padding: 0 10px 0 2px;
46
+ white-space: pre;
47
+ cursor: pointer;
48
+ }
49
+
50
+ .md-suggest-widget .md-suggest-row[aria-selected="true"] {
51
+ background: var(--vscode-editorSuggestWidget-selectedBackground, var(--vscode-list-activeSelectionBackground, #04395e));
52
+ color: var(--vscode-editorSuggestWidget-selectedForeground, var(--vscode-list-activeSelectionForeground, #ffffff));
53
+ outline: 1px solid var(--vscode-editorSuggestWidget-focusOutline, var(--vscode-contrastActiveBorder, transparent));
54
+ outline-offset: -1px;
55
+ }
56
+
57
+ .md-suggest-widget .md-suggest-label,
58
+ .md-suggest-widget .md-suggest-detail,
59
+ .md-suggest-widget .md-suggest-icon {
60
+ min-width: 0;
61
+ overflow: hidden;
62
+ text-overflow: ellipsis;
63
+ }
64
+
65
+ .md-suggest-widget .md-suggest-label {
66
+ flex: 0 1 auto;
67
+ }
68
+
69
+ .md-suggest-widget .md-suggest-detail {
70
+ display: none;
71
+ flex: 0 1 auto;
72
+ margin-left: auto;
73
+ padding-left: 1.1em;
74
+ font-size: 85%;
75
+ }
76
+
77
+ .md-suggest-widget .md-suggest-row[aria-selected="true"] .md-suggest-detail {
78
+ display: inline;
79
+ }
80
+
81
+ .md-suggest-widget .md-suggest-icon {
82
+ flex: 0 0 16px;
83
+ width: 16px;
84
+ margin-right: 4px;
85
+ font-size: 16px;
86
+ }
87
+
88
+ .md-suggest-widget .md-suggest-row[aria-selected="true"] .md-suggest-icon {
89
+ color: var(--vscode-editorSuggestWidget-selectedIconForeground, inherit);
90
+ }
91
+
92
+ .md-suggest-widget .md-suggest-match {
93
+ font-weight: bold;
94
+ color: var(--vscode-editorSuggestWidget-highlightForeground, inherit);
95
+ }
96
+
97
+ .md-suggest-widget .md-suggest-row[aria-selected="true"] .md-suggest-match {
98
+ color: var(--vscode-editorSuggestWidget-focusHighlightForeground, inherit);
99
+ }
100
+
101
+ .md-suggest-widget .md-suggest-message {
102
+ padding: 4px 10px 4px 22px;
103
+ white-space: pre-wrap;
104
+ overflow-wrap: anywhere;
105
+ }
106
+
107
+ .md-suggest-widget[data-state="error"] .md-suggest-message {
108
+ color: var(--vscode-errorForeground, #f48771);
109
+ }