@vscode/markdown-editor 0.0.2-24 → 0.0.2-26

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-24",
3
+ "version": "0.0.2-26",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,6 +17,13 @@
17
17
  "sideEffects": [
18
18
  "**/*.css"
19
19
  ],
20
+ "typesVersions": {
21
+ "*": {
22
+ "config": [
23
+ "./dist/config.d.ts"
24
+ ]
25
+ }
26
+ },
20
27
  "files": [
21
28
  "dist",
22
29
  "src/view/editor.css",
@@ -37,6 +44,10 @@
37
44
  "types": "./dist/observables.d.ts",
38
45
  "import": "./dist/observables.js"
39
46
  },
47
+ "./config": {
48
+ "types": "./dist/config.d.ts",
49
+ "import": "./dist/config.js"
50
+ },
40
51
  "./web-editors": {
41
52
  "types": "./dist/web-editors.d.ts",
42
53
  "import": "./dist/web-editors.js"
@@ -26,7 +26,10 @@
26
26
  }
27
27
 
28
28
  .vscode-comments-dark {
29
- --vscode-icon-foreground: #cccccc;
29
+ --vscode-editorWidget-background: #202122;
30
+ --vscode-editorHoverWidget-border: #2a2b2c;
31
+ --vscode-foreground: #bfbfbf;
32
+ --vscode-icon-foreground: #8c8c8c;
30
33
  --vscode-textLink-foreground: #4daafc;
31
34
  }
32
35
 
@@ -39,10 +42,12 @@
39
42
  padding: 8px;
40
43
  /* size80 */
41
44
  background: var(--vscode-editorWidget-background, #202122);
42
- border: 1px solid var(--vscode-editorHoverWidget-border, var(--vscode-editorWidget-border, #2a2b2c));
45
+ border: none;
43
46
  border-radius: var(--vscode-cornerRadius-large, 8px);
44
47
  /* Outer radius */
45
- box-shadow: 0 8px 8px rgba(0, 0, 0, 0.25);
48
+ box-shadow:
49
+ inset 0 0 0 1px var(--vscode-editorHoverWidget-border, var(--vscode-editorWidget-border, #2a2b2c)),
50
+ 0 8px 8px rgba(0, 0, 0, 0.25);
46
51
  font-family: var(--vscode-font-family, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
47
52
  }
48
53
 
@@ -78,7 +83,7 @@
78
83
  /* Font ramp/Heading 3: SF Pro Text Semibold 13 */
79
84
  font-size: 13px;
80
85
  font-weight: 600;
81
- line-height: normal;
86
+ line-height: 16px;
82
87
  color: var(--vscode-foreground, #bfbfbf);
83
88
  }
84
89
 
@@ -129,7 +134,7 @@
129
134
  /* Font ramp/Body 1: SF Pro Text Regular 13 */
130
135
  font-size: 13px;
131
136
  font-weight: 400;
132
- line-height: normal;
137
+ line-height: 16px;
133
138
  color: var(--vscode-foreground, #bfbfbf);
134
139
  opacity: 0.9;
135
140
  white-space: pre-wrap;
@@ -774,6 +774,16 @@ pre.md-unhandled-scroll.md-code-block {
774
774
  visibility: hidden;
775
775
  }
776
776
 
777
+ .md-editor.md-readonly-editing-attempt {
778
+ animation: md-readonly-editing-attempt 300ms ease-out;
779
+ }
780
+
781
+ @keyframes md-readonly-editing-attempt {
782
+ 50% {
783
+ box-shadow: inset 0 0 0 2px var(--md-readonly-shine-glow, rgba(255, 255, 255, 0.58));
784
+ }
785
+ }
786
+
777
787
  @keyframes md-cursor-blink {
778
788
 
779
789
  0%,
@@ -934,6 +944,7 @@ pre.md-unhandled-scroll.md-code-block {
934
944
 
935
945
  @media (prefers-reduced-motion: reduce) {
936
946
 
947
+ .md-editor.md-readonly-editing-attempt,
937
948
  .md-readonly-toggle,
938
949
  .md-readonly-toggle .md-readonly-toggle-indicator,
939
950
  .md-readonly-toggle .md-readonly-toggle-icon,