@datalayer/jupyter-lexical 1.0.11 → 1.0.13

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.
Files changed (133) hide show
  1. package/lib/appSettings.js +0 -7
  2. package/lib/appSettings.js.map +1 -1
  3. package/lib/components/Button.d.ts +0 -4
  4. package/lib/components/Button.js.map +1 -1
  5. package/lib/components/ContentEditable.d.ts +3 -1
  6. package/lib/components/ContentEditable.js +2 -7
  7. package/lib/components/ContentEditable.js.map +1 -1
  8. package/lib/components/Dialog.d.ts +0 -4
  9. package/lib/components/Dialog.js.map +1 -1
  10. package/lib/components/DropDown.d.ts +0 -10
  11. package/lib/components/DropDown.js.map +1 -1
  12. package/lib/components/InsertImageDialog.js +8 -5
  13. package/lib/components/InsertImageDialog.js.map +1 -1
  14. package/lib/components/Modal.js +1 -1
  15. package/lib/components/Modal.js.map +1 -1
  16. package/lib/components/TextInput.js +0 -4
  17. package/lib/components/TextInput.js.map +1 -1
  18. package/lib/context/SettingsContext.d.ts +0 -7
  19. package/lib/context/SettingsContext.js.map +1 -1
  20. package/lib/context/ToolbarContext.d.ts +0 -7
  21. package/lib/context/ToolbarContext.js.map +1 -1
  22. package/lib/editor/Editor.js +1 -2
  23. package/lib/editor/Editor.js.map +1 -1
  24. package/lib/examples/AppNbformat.d.ts +2 -2
  25. package/lib/examples/AppNbformat.js +8 -8
  26. package/lib/examples/AppNbformat.js.map +1 -1
  27. package/lib/examples/AppSimple.d.ts +2 -2
  28. package/lib/examples/AppSimple.js +57 -34
  29. package/lib/examples/AppSimple.js.map +1 -1
  30. package/lib/examples/components/ManualRuntimeControl.d.ts +18 -0
  31. package/lib/examples/{ManualKernelControl.js → components/ManualRuntimeControl.js} +19 -19
  32. package/lib/examples/components/ManualRuntimeControl.js.map +1 -0
  33. package/lib/examples/content/Example.lexical.json +2 -2
  34. package/lib/examples/index.js +1 -3
  35. package/lib/examples/index.js.map +1 -1
  36. package/lib/nodes/JupyterInputHighlightNode.d.ts +1 -1
  37. package/lib/nodes/JupyterInputHighlightNode.js +1 -1
  38. package/lib/nodes/JupyterInputHighlightNode.js.map +1 -1
  39. package/lib/plugins/AutoEmbedPlugin.js +24 -17
  40. package/lib/plugins/AutoEmbedPlugin.js.map +1 -1
  41. package/lib/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +0 -7
  42. package/lib/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -1
  43. package/lib/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +0 -7
  44. package/lib/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -1
  45. package/lib/plugins/CodeActionMenuPlugin/utils.js +0 -7
  46. package/lib/plugins/CodeActionMenuPlugin/utils.js.map +1 -1
  47. package/lib/plugins/CollapsiblePlugin/Collapsible.css +5 -5
  48. package/lib/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +3 -0
  49. package/lib/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -1
  50. package/lib/plugins/CollapsiblePlugin/CollapsibleContentNode.js +3 -0
  51. package/lib/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -1
  52. package/lib/plugins/CollapsiblePlugin/CollapsibleStyles.d.ts +13 -0
  53. package/lib/plugins/CollapsiblePlugin/CollapsibleStyles.js +142 -0
  54. package/lib/plugins/CollapsiblePlugin/CollapsibleStyles.js.map +1 -0
  55. package/lib/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +3 -0
  56. package/lib/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -1
  57. package/lib/plugins/CollapsiblePlugin/index.d.ts +0 -1
  58. package/lib/plugins/CollapsiblePlugin/index.js +0 -1
  59. package/lib/plugins/CollapsiblePlugin/index.js.map +1 -1
  60. package/lib/plugins/CommentPlugin.d.ts +1 -2
  61. package/lib/plugins/CommentPlugin.js +55 -23
  62. package/lib/plugins/CommentPlugin.js.map +1 -1
  63. package/lib/plugins/ComponentPickerMenuPlugin.js +31 -29
  64. package/lib/plugins/ComponentPickerMenuPlugin.js.map +1 -1
  65. package/lib/plugins/FloatingLinkEditorPlugin/index.d.ts +0 -7
  66. package/lib/plugins/FloatingLinkEditorPlugin/index.js.map +1 -1
  67. package/lib/plugins/FloatingTextFormatToolbarPlugin.js +7 -11
  68. package/lib/plugins/FloatingTextFormatToolbarPlugin.js.map +1 -1
  69. package/lib/plugins/ImagesPlugin.js +8 -10
  70. package/lib/plugins/ImagesPlugin.js.map +1 -1
  71. package/lib/plugins/ShortcutsPlugin/index.js +0 -7
  72. package/lib/plugins/ShortcutsPlugin/index.js.map +1 -1
  73. package/lib/plugins/ShortcutsPlugin/shortcuts.js +0 -7
  74. package/lib/plugins/ShortcutsPlugin/shortcuts.js.map +1 -1
  75. package/lib/plugins/TableActionMenuPlugin/index.js +17 -72
  76. package/lib/plugins/TableActionMenuPlugin/index.js.map +1 -1
  77. package/lib/plugins/TableCellResizer/index.css +0 -9
  78. package/lib/plugins/TableCellResizer/index.js.map +1 -1
  79. package/lib/plugins/TableHoverActionsV2Plugin/index.js.map +1 -1
  80. package/lib/plugins/TableScrollShadowPlugin/index.js +0 -7
  81. package/lib/plugins/TableScrollShadowPlugin/index.js.map +1 -1
  82. package/lib/plugins/ToolbarPlugin/fontSize.d.ts +0 -7
  83. package/lib/plugins/ToolbarPlugin/fontSize.js.map +1 -1
  84. package/lib/plugins/ToolbarPlugin/index.d.ts +0 -10
  85. package/lib/plugins/ToolbarPlugin/index.js +34 -5
  86. package/lib/plugins/ToolbarPlugin/index.js.map +1 -1
  87. package/lib/plugins/ToolbarPlugin/utils.js +0 -7
  88. package/lib/plugins/ToolbarPlugin/utils.js.map +1 -1
  89. package/lib/utils/giphy.d.ts +5 -0
  90. package/lib/utils/giphy.js +40 -0
  91. package/lib/utils/giphy.js.map +1 -0
  92. package/lib/utils/setFloatingElemPositionForLinkEditor.js +0 -7
  93. package/lib/utils/setFloatingElemPositionForLinkEditor.js.map +1 -1
  94. package/lib/utils/url.js +0 -7
  95. package/lib/utils/url.js.map +1 -1
  96. package/package.json +4 -3
  97. package/style/base.css +6 -1
  98. package/style/index.css +2 -11
  99. package/style/lexical/DraggableBlockPlugin.css +1 -1
  100. package/style/lexical/Editor.css +43 -55
  101. package/style/lexical/EquationEditor.css +2 -2
  102. package/style/lexical/ImageNode.css +2 -2
  103. package/style/lexical/Placeholder.css +1 -1
  104. package/style/lexical/Rich.css +49 -47
  105. package/style/lexical/TableNode.css +27 -24
  106. package/style/lexical/Theme.css +30 -29
  107. package/style/lexical/index.css +0 -19
  108. package/style/{tailwind.css → tailwind/custom.css} +6 -2
  109. package/lib/examples/ManualKernelControl.d.ts +0 -18
  110. package/lib/examples/ManualKernelControl.js.map +0 -1
  111. package/lib/images/icons/plus.svg +0 -1
  112. package/lib/images/yellow-flower-small.jpg +0 -0
  113. package/lib/plugins/FloatingLinkEditorPlugin/index.css +0 -7
  114. package/lib/plugins/TableHoverActionsV2Plugin/index.css +0 -7
  115. package/style/lexical/Button.css +0 -7
  116. package/style/lexical/CodeActionMenuPlugin.css +0 -7
  117. package/style/lexical/ColorPicker.css +0 -87
  118. package/style/lexical/CommentPlugin.css +0 -7
  119. package/style/lexical/Dialog.css +0 -7
  120. package/style/lexical/ExcalidrawModal.css +0 -7
  121. package/style/lexical/ExcalidrawNode.css +0 -137
  122. package/style/lexical/FloatingTextFormatToolbarPlugin.css +0 -7
  123. package/style/lexical/FontSize.css +0 -7
  124. package/style/lexical/Input.css +0 -7
  125. package/style/lexical/Jupyter.css +0 -9
  126. package/style/lexical/KatexEquationAlterer.css +0 -7
  127. package/style/lexical/Modal.css +0 -7
  128. package/style/lexical/PrettierButton.css +0 -7
  129. package/style/lexical/TableInsertModal.css +0 -112
  130. package/style/lexical/TableOfContentsPlugin.css +0 -7
  131. package/style/lexical/ToolbarPlugin.css +0 -7
  132. package/style/lexical/images/icons/pencil-fill.svg +0 -1
  133. package/style/modal-overrides.css +0 -261
@@ -6,12 +6,12 @@
6
6
 
7
7
  .other h2 {
8
8
  font-size: 18px;
9
- color: #444;
9
+ color: var(--fgColor-muted, #444);
10
10
  margin-bottom: 7px;
11
11
  }
12
12
 
13
13
  .other a {
14
- color: #777;
14
+ color: var(--fgColor-muted, #777);
15
15
  text-decoration: underline;
16
16
  font-size: 14px;
17
17
  }
@@ -29,7 +29,7 @@
29
29
 
30
30
  h1 {
31
31
  font-size: 24px;
32
- color: #333;
32
+ color: var(--fgColor-default, #333);
33
33
  }
34
34
 
35
35
  .ltr {
@@ -44,7 +44,7 @@ h1 {
44
44
  margin: 20px auto 20px auto;
45
45
  border-radius: 2px;
46
46
  max-width: 100%;
47
- color: #000;
47
+ color: var(--fgColor-default, #000);
48
48
  position: relative;
49
49
  line-height: 20px;
50
50
  font-weight: 400;
@@ -54,7 +54,7 @@ h1 {
54
54
  }
55
55
 
56
56
  .editor-inner {
57
- background: #fff;
57
+ background: var(--bgColor-default, #fff);
58
58
  position: relative;
59
59
  }
60
60
 
@@ -62,16 +62,16 @@ h1 {
62
62
  min-height: 150px;
63
63
  resize: none;
64
64
  font-size: 15px;
65
- caret-color: rgb(5, 5, 5);
65
+ caret-color: var(--fgColor-default, rgb(5, 5, 5));
66
66
  position: relative;
67
67
  tab-size: 1;
68
68
  outline: 0;
69
69
  padding: 15px 10px;
70
- caret-color: #444;
70
+ caret-color: var(--fgColor-default, #444);
71
71
  }
72
72
 
73
73
  .editor-placeholder {
74
- color: #999;
74
+ color: var(--fgColor-muted, #999);
75
75
  overflow: hidden;
76
76
  position: absolute;
77
77
  text-overflow: ellipsis;
@@ -104,21 +104,21 @@ h1 {
104
104
  }
105
105
 
106
106
  .editor-text-code {
107
- background-color: rgb(240, 242, 245);
107
+ background-color: var(--bgColor-muted, rgb(240, 242, 245));
108
108
  padding: 1px 0.25rem;
109
109
  font-family: Menlo, Consolas, Monaco, monospace;
110
110
  font-size: 94%;
111
111
  }
112
112
 
113
113
  .editor-link {
114
- color: rgb(33, 111, 219);
114
+ color: var(--fgColor-accent, rgb(33, 111, 219));
115
115
  text-decoration: none;
116
116
  }
117
117
 
118
118
  .tree-view-output {
119
119
  display: block;
120
- background: #222;
121
- color: #fff;
120
+ background: var(--bgColor-emphasis, #222);
121
+ color: var(--fgColor-onEmphasis, #fff);
122
122
  padding: 5px;
123
123
  font-size: 12px;
124
124
  white-space: pre-wrap;
@@ -132,7 +132,7 @@ h1 {
132
132
  }
133
133
 
134
134
  .editor-code {
135
- background-color: rgb(240, 242, 245);
135
+ background-color: var(--bgColor-muted, rgb(240, 242, 245));
136
136
  font-family: Menlo, Consolas, Monaco, monospace;
137
137
  display: block;
138
138
  padding: 8px 8px 8px 52px;
@@ -150,12 +150,12 @@ h1 {
150
150
  .editor-code:before {
151
151
  content: attr(data-gutter);
152
152
  position: absolute;
153
- background-color: #eee;
153
+ background-color: var(--bgColor-muted, #eee);
154
154
  left: 0;
155
155
  top: 0;
156
- border-right: 1px solid #ccc;
156
+ border-right: 1px solid var(--borderColor-default, #ccc);
157
157
  padding: 8px;
158
- color: #777;
158
+ color: var(--fgColor-muted, #777);
159
159
  white-space: pre-wrap;
160
160
  text-align: right;
161
161
  min-width: 25px;
@@ -168,39 +168,39 @@ h1 {
168
168
  font-size: 10px;
169
169
  text-transform: uppercase;
170
170
  position: absolute;
171
- color: rgba(0, 0, 0, 0.5);
171
+ color: var(--fgColor-muted, rgba(0, 0, 0, 0.5));
172
172
  }
173
173
 
174
174
  .editor-tokenComment {
175
- color: slategray;
175
+ color: var(--codeMirror-syntax-fgColor-comment, slategray);
176
176
  }
177
177
 
178
178
  .editor-tokenPunctuation {
179
- color: #999;
179
+ color: var(--fgColor-muted, #999);
180
180
  }
181
181
 
182
182
  .editor-tokenProperty {
183
- color: #905;
183
+ color: var(--codeMirror-syntax-fgColor-constant, #905);
184
184
  }
185
185
 
186
186
  .editor-tokenSelector {
187
- color: #690;
187
+ color: var(--codeMirror-syntax-fgColor-string, #690);
188
188
  }
189
189
 
190
190
  .editor-tokenOperator {
191
- color: #9a6e3a;
191
+ color: var(--codeMirror-syntax-fgColor-variable, #9a6e3a);
192
192
  }
193
193
 
194
194
  .editor-tokenAttr {
195
- color: #07a;
195
+ color: var(--codeMirror-syntax-fgColor-keyword, #07a);
196
196
  }
197
197
 
198
198
  .editor-tokenVariable {
199
- color: #e90;
199
+ color: var(--codeMirror-syntax-fgColor-variable, #e90);
200
200
  }
201
201
 
202
202
  .editor-tokenFunction {
203
- color: #dd4a68;
203
+ color: var(--codeMirror-syntax-fgColor-entity, #dd4a68);
204
204
  }
205
205
 
206
206
  .editor-paragraph {
@@ -215,7 +215,7 @@ h1 {
215
215
 
216
216
  .editor-heading-h1 {
217
217
  font-size: 24px;
218
- color: rgb(5, 5, 5);
218
+ color: var(--fgColor-default, rgb(5, 5, 5));
219
219
  font-weight: 400;
220
220
  margin: 0;
221
221
  margin-bottom: 12px;
@@ -224,7 +224,7 @@ h1 {
224
224
 
225
225
  .editor-heading-h2 {
226
226
  font-size: 15px;
227
- color: rgb(101, 103, 107);
227
+ color: var(--fgColor-muted, rgb(101, 103, 107));
228
228
  font-weight: 700;
229
229
  margin: 0;
230
230
  margin-top: 10px;
@@ -236,8 +236,8 @@ h1 {
236
236
  margin: 0;
237
237
  margin-left: 20px;
238
238
  font-size: 15px;
239
- color: rgb(101, 103, 107);
240
- border-left-color: rgb(206, 208, 212);
239
+ color: var(--fgColor-muted, rgb(101, 103, 107));
240
+ border-left-color: var(--borderColor-default, rgb(206, 208, 212));
241
241
  border-left-width: 4px;
242
242
  border-left-style: solid;
243
243
  padding-left: 16px;
@@ -269,7 +269,7 @@ pre::-webkit-scrollbar {
269
269
  }
270
270
 
271
271
  pre::-webkit-scrollbar-thumb {
272
- background: #999;
272
+ background: var(--fgColor-muted, #999);
273
273
  }
274
274
 
275
275
  .debug-timetravel-panel {
@@ -289,7 +289,7 @@ pre::-webkit-scrollbar-thumb {
289
289
  border: 0;
290
290
  background: none;
291
291
  flex: 1;
292
- color: #fff;
292
+ color: var(--fgColor-onEmphasis, #fff);
293
293
  font-size: 12px;
294
294
  }
295
295
 
@@ -305,7 +305,7 @@ pre::-webkit-scrollbar-thumb {
305
305
  right: 15px;
306
306
  position: absolute;
307
307
  background: none;
308
- color: #fff;
308
+ color: var(--fgColor-onEmphasis, #fff);
309
309
  }
310
310
 
311
311
  .debug-timetravel-button:hover {
@@ -343,7 +343,7 @@ pre::-webkit-scrollbar-thumb {
343
343
  display: flex;
344
344
  box-sizing: content-box !important;
345
345
  margin-bottom: 1px;
346
- background: #fff;
346
+ background: var(--bgColor-default, #fff);
347
347
  padding: 4px;
348
348
  border-top-left-radius: 10px;
349
349
  border-top-right-radius: 10px;
@@ -384,7 +384,7 @@ pre::-webkit-scrollbar-thumb {
384
384
  }
385
385
 
386
386
  .toolbar button.toolbar-item.active {
387
- background-color: rgba(223, 232, 250, 0.3);
387
+ background-color: var(--bgColor-accent-muted, rgba(223, 232, 250, 0.3));
388
388
  }
389
389
 
390
390
  .toolbar button.toolbar-item.active i {
@@ -392,12 +392,12 @@ pre::-webkit-scrollbar-thumb {
392
392
  }
393
393
 
394
394
  .toolbar .toolbar-item:hover:not([disabled]) {
395
- background-color: #eee;
395
+ background-color: var(--bgColor-muted, #eee);
396
396
  }
397
397
 
398
398
  .toolbar .divider {
399
399
  width: 1px;
400
- background-color: #eee;
400
+ background-color: var(--borderColor-muted, #eee);
401
401
  margin: 0 4px;
402
402
  }
403
403
 
@@ -412,7 +412,7 @@ pre::-webkit-scrollbar-thumb {
412
412
  -moz-appearance: none;
413
413
  width: 70px;
414
414
  font-size: 14px;
415
- color: #777;
415
+ color: var(--fgColor-muted, #777);
416
416
  text-overflow: ellipsis;
417
417
  }
418
418
 
@@ -427,7 +427,7 @@ pre::-webkit-scrollbar-thumb {
427
427
  width: 200px;
428
428
  vertical-align: middle;
429
429
  font-size: 14px;
430
- color: #777;
430
+ color: var(--fgColor-muted, #777);
431
431
  text-overflow: ellipsis;
432
432
  width: 70px;
433
433
  overflow: hidden;
@@ -473,7 +473,7 @@ i.chevron-down {
473
473
  }
474
474
 
475
475
  #block-controls button:hover {
476
- background-color: #efefef;
476
+ background-color: var(--bgColor-muted, #efefef);
477
477
  }
478
478
 
479
479
  #block-controls button:focus-visible {
@@ -519,19 +519,21 @@ i.chevron-down {
519
519
  z-index: 100;
520
520
  display: block;
521
521
  position: fixed;
522
- box-shadow:
522
+ box-shadow: var(
523
+ --shadow-floating-medium,
523
524
  0 12px 28px 0 rgba(0, 0, 0, 0.2),
524
525
  0 2px 4px 0 rgba(0, 0, 0, 0.1),
525
- inset 0 0 0 1px rgba(255, 255, 255, 0.5);
526
+ inset 0 0 0 1px rgba(255, 255, 255, 0.5)
527
+ );
526
528
  border-radius: 8px;
527
529
  min-height: 40px;
528
- background-color: #fff;
530
+ background-color: var(--overlay-bgColor, #fff);
529
531
  }
530
532
 
531
533
  .dropdown .item {
532
534
  margin: 0 8px 0 8px;
533
535
  padding: 8px;
534
- color: #050505;
536
+ color: var(--fgColor-default, #050505);
535
537
  cursor: pointer;
536
538
  line-height: 16px;
537
539
  font-size: 15px;
@@ -540,7 +542,7 @@ i.chevron-down {
540
542
  flex-direction: row;
541
543
  flex-shrink: 0;
542
544
  justify-content: space-between;
543
- background-color: #fff;
545
+ background-color: var(--overlay-bgColor, #fff);
544
546
  border-radius: 8px;
545
547
  border: 0;
546
548
  max-width: 264px;
@@ -561,7 +563,7 @@ i.chevron-down {
561
563
  }
562
564
 
563
565
  .dropdown .item .shortcut {
564
- color: #939393;
566
+ color: var(--fgColor-muted, #939393);
565
567
  align-self: flex-end;
566
568
  }
567
569
 
@@ -581,7 +583,7 @@ i.chevron-down {
581
583
  }
582
584
 
583
585
  .dropdown .item:hover {
584
- background-color: #eee;
586
+ background-color: var(--bgColor-muted, #eee);
585
587
  }
586
588
 
587
589
  .dropdown .item .text {
@@ -605,7 +607,7 @@ i.chevron-down {
605
607
 
606
608
  .dropdown .divider {
607
609
  width: auto;
608
- background-color: #eee;
610
+ background-color: var(--borderColor-muted, #eee);
609
611
  margin: 4px 8px;
610
612
  height: 1px;
611
613
  }
@@ -13,12 +13,12 @@
13
13
  table-layout: fixed !important;
14
14
  width: max-content !important;
15
15
  margin: 20px 0 !important;
16
- border: 1px solid var(--vscode-editorGroup-border, rgba(128, 128, 128, 0.35)) !important;
16
+ border: 1px solid var(--borderColor-default, rgba(128, 128, 128, 0.35)) !important;
17
17
  }
18
18
 
19
19
  /* Table cell styles */
20
20
  .PlaygroundEditorTheme__tableCell {
21
- border: 1px solid var(--vscode-editorGroup-border, rgba(128, 128, 128, 0.35)) !important;
21
+ border: 1px solid var(--borderColor-default, rgba(128, 128, 128, 0.35)) !important;
22
22
  min-width: 75px !important;
23
23
  width: 75px !important;
24
24
  vertical-align: top !important;
@@ -26,13 +26,13 @@
26
26
  padding: 8px 10px !important;
27
27
  position: relative !important;
28
28
  outline: none !important;
29
- background-color: var(--vscode-editor-background, transparent) !important;
30
- color: var(--vscode-editor-foreground, inherit) !important;
29
+ background-color: var(--bgColor-default, transparent) !important;
30
+ color: var(--fgColor-default, inherit) !important;
31
31
  }
32
32
 
33
33
  /* Table header cell styles */
34
34
  .PlaygroundEditorTheme__tableCellHeader {
35
- border: 1px solid var(--vscode-editorGroup-border, rgba(128, 128, 128, 0.35)) !important;
35
+ border: 1px solid var(--borderColor-default, rgba(128, 128, 128, 0.35)) !important;
36
36
  min-width: 75px !important;
37
37
  width: 75px !important;
38
38
  vertical-align: top !important;
@@ -40,25 +40,22 @@
40
40
  padding: 8px 10px !important;
41
41
  position: relative !important;
42
42
  outline: none !important;
43
- background-color: var(
44
- --vscode-editorGroupHeader-tabsBackground,
45
- rgba(128, 128, 128, 0.1)
46
- ) !important;
47
- color: var(--vscode-editor-foreground, inherit) !important;
43
+ background-color: var(--bgColor-muted, rgba(128, 128, 128, 0.1)) !important;
44
+ color: var(--fgColor-default, inherit) !important;
48
45
  font-weight: bold !important;
49
46
  }
50
47
 
51
48
  /* Cell focus styles */
52
49
  .PlaygroundEditorTheme__tableCell:focus,
53
50
  .PlaygroundEditorTheme__tableCellHeader:focus {
54
- outline: 2px solid var(--vscode-focusBorder, rgb(60, 132, 244)) !important;
51
+ outline: 2px solid var(--borderColor-accent-emphasis, rgb(60, 132, 244)) !important;
55
52
  outline-offset: -2px;
56
53
  }
57
54
 
58
55
  /* Cell selection styles */
59
56
  .PlaygroundEditorTheme__tableCellSelected {
60
57
  background-color: var(
61
- --vscode-list-activeSelectionBackground,
58
+ --bgColor-accent-muted,
62
59
  rgba(60, 132, 244, 0.15)
63
60
  ) !important;
64
61
  }
@@ -94,7 +91,7 @@
94
91
 
95
92
  .PlaygroundEditorTheme__tableCellResizer:hover:after,
96
93
  .PlaygroundEditorTheme__tableCellResizer:active:after {
97
- background-color: var(--vscode-focusBorder, #3c84f4);
94
+ background-color: var(--borderColor-accent-emphasis, #3c84f4);
98
95
  }
99
96
 
100
97
  /* Table action menu - CHEVRON BUTTON */
@@ -110,16 +107,22 @@
110
107
  opacity: 1 !important;
111
108
  }
112
109
 
110
+ /* Ensure ActionMenu anchor wrapper doesn't add extra height */
111
+ .PlaygroundEditorTheme__tableCellActionButtonContainer > * {
112
+ display: flex !important;
113
+ align-items: center !important;
114
+ }
115
+
113
116
  .PlaygroundEditorTheme__tableCellActionButton {
114
117
  background-color: var(
115
- --vscode-button-secondaryBackground,
118
+ --control-bgColor-rest,
116
119
  rgba(128, 128, 128, 0.1)
117
120
  ) !important;
118
- color: var(--vscode-button-secondaryForeground, inherit) !important;
121
+ color: var(--fgColor-default, inherit) !important;
119
122
  display: flex !important;
120
123
  justify-content: center !important;
121
124
  align-items: center !important;
122
- border: 1px solid var(--vscode-editorGroup-border, rgba(128, 128, 128, 0.35)) !important;
125
+ border: 1px solid var(--borderColor-default, rgba(128, 128, 128, 0.35)) !important;
123
126
  position: relative !important;
124
127
  border-radius: 4px !important;
125
128
  cursor: pointer !important;
@@ -142,7 +145,7 @@
142
145
 
143
146
  .PlaygroundEditorTheme__tableCellActionButton:hover {
144
147
  background-color: var(
145
- --vscode-button-secondaryHoverBackground,
148
+ --control-bgColor-hover,
146
149
  rgba(128, 128, 128, 0.2)
147
150
  ) !important;
148
151
  }
@@ -200,7 +203,7 @@
200
203
 
201
204
  .PlaygroundEditorTheme__tableFrozenRow tr:nth-of-type(1) > td {
202
205
  overflow: clip;
203
- background-color: var(--vscode-editor-background, #ffffff);
206
+ background-color: var(--bgColor-default, #ffffff);
204
207
  position: sticky;
205
208
  z-index: 2;
206
209
  top: 44px;
@@ -209,7 +212,7 @@
209
212
  /* Table hover action buttons - Add Column */
210
213
  .PlaygroundEditorTheme__tableAddColumns {
211
214
  position: absolute !important;
212
- background-color: var(--vscode-button-secondaryBackground, #eee) !important;
215
+ background-color: var(--control-bgColor-rest, #eee) !important;
213
216
  /* Let plugin set dimensions, just constrain them */
214
217
  min-width: 15px !important;
215
218
  max-width: 20px !important;
@@ -230,13 +233,13 @@
230
233
  font-size: 14px !important;
231
234
  text-align: center !important;
232
235
  line-height: 20px !important;
233
- color: var(--vscode-editor-foreground, #666) !important;
236
+ color: var(--fgColor-default, #666) !important;
234
237
  opacity: 0.7 !important;
235
238
  }
236
239
 
237
240
  .PlaygroundEditorTheme__tableAddColumns:hover,
238
241
  .PlaygroundEditorTheme__tableAddRows:hover {
239
- background-color: var(--vscode-button-hoverBackground, #c9dbf0) !important;
242
+ background-color: var(--control-bgColor-hover, #c9dbf0) !important;
240
243
  }
241
244
 
242
245
  /* Table hover action buttons - Add Row */
@@ -246,7 +249,7 @@
246
249
  min-width: 50px !important;
247
250
  min-height: 15px !important;
248
251
  max-height: 20px !important;
249
- background-color: var(--vscode-button-secondaryBackground, #eee) !important;
252
+ background-color: var(--control-bgColor-rest, #eee) !important;
250
253
  animation: table-controls 0.2s ease !important;
251
254
  border: 0 !important;
252
255
  cursor: pointer !important;
@@ -263,7 +266,7 @@
263
266
  font-size: 14px !important;
264
267
  text-align: center !important;
265
268
  line-height: 20px !important;
266
- color: var(--vscode-editor-foreground, #666) !important;
269
+ color: var(--fgColor-default, #666) !important;
267
270
  opacity: 0.7 !important;
268
271
  }
269
272
 
@@ -281,7 +284,7 @@
281
284
  display: block;
282
285
  position: absolute;
283
286
  width: 1px;
284
- background-color: var(--vscode-focusBorder, rgb(60, 132, 244));
287
+ background-color: var(--borderColor-accent-emphasis, rgb(60, 132, 244));
285
288
  height: 100%;
286
289
  top: 0;
287
290
  }
@@ -23,15 +23,15 @@
23
23
  margin-left: 20px;
24
24
  margin-bottom: 10px;
25
25
  font-size: 15px;
26
- color: rgb(101, 103, 107);
27
- border-left-color: rgb(206, 208, 212);
26
+ color: var(--fgColor-muted, rgb(101, 103, 107));
27
+ border-left-color: var(--borderColor-default, rgb(206, 208, 212));
28
28
  border-left-width: 4px;
29
29
  border-left-style: solid;
30
30
  padding-left: 16px;
31
31
  }
32
32
  .PlaygroundEditorTheme__h1 {
33
33
  font-size: 24px;
34
- color: rgb(5, 5, 5);
34
+ color: var(--fgColor-default, rgb(5, 5, 5));
35
35
  font-weight: 400;
36
36
  margin: 0;
37
37
  margin-bottom: 12px;
@@ -39,7 +39,7 @@
39
39
  }
40
40
  .PlaygroundEditorTheme__h2 {
41
41
  font-size: 15px;
42
- color: rgb(101, 103, 107);
42
+ color: var(--fgColor-muted, rgb(101, 103, 107));
43
43
  font-weight: 700;
44
44
  margin: 0;
45
45
  margin-top: 10px;
@@ -77,24 +77,25 @@
77
77
  vertical-align: super;
78
78
  }
79
79
  .PlaygroundEditorTheme__textCode {
80
- background-color: rgb(240, 242, 245);
80
+ background-color: var(--bgColor-muted, rgb(240, 242, 245));
81
81
  padding: 1px 0.25rem;
82
82
  font-family: Menlo, Consolas, Monaco, monospace;
83
83
  font-size: 94%;
84
84
  }
85
85
  .PlaygroundEditorTheme__hashtag {
86
- background-color: rgba(88, 144, 255, 0.15);
87
- border-bottom: 1px solid rgba(88, 144, 255, 0.3);
86
+ background-color: var(--bgColor-accent-muted, rgba(88, 144, 255, 0.15));
87
+ border-bottom: 1px solid
88
+ var(--borderColor-accent-muted, rgba(88, 144, 255, 0.3));
88
89
  }
89
90
  .PlaygroundEditorTheme__link {
90
- color: rgb(33, 111, 219);
91
+ color: var(--fgColor-accent, rgb(33, 111, 219));
91
92
  text-decoration: none;
92
93
  }
93
94
  .PlaygroundEditorTheme__link:hover {
94
95
  text-decoration: underline;
95
96
  }
96
97
  .PlaygroundEditorTheme__code {
97
- background-color: rgb(240, 242, 245);
98
+ background-color: var(--bgColor-muted, rgb(240, 242, 245));
98
99
  font-family: Menlo, Consolas, Monaco, monospace;
99
100
  display: block;
100
101
  padding: 8px 8px 8px 52px;
@@ -111,12 +112,12 @@
111
112
  .PlaygroundEditorTheme__code:before {
112
113
  content: attr(data-gutter);
113
114
  position: absolute;
114
- background-color: #eee;
115
+ background-color: var(--bgColor-muted, #eee);
115
116
  left: 0;
116
117
  top: 0;
117
- border-right: 1px solid #ccc;
118
+ border-right: 1px solid var(--borderColor-default, #ccc);
118
119
  padding: 8px;
119
- color: #777;
120
+ color: var(--fgColor-muted, #777);
120
121
  white-space: pre-wrap;
121
122
  text-align: right;
122
123
  min-width: 25px;
@@ -130,19 +131,19 @@
130
131
  width: 100%;
131
132
  }
132
133
  .PlaygroundEditorTheme__tableCell {
133
- border: 1px solid black;
134
+ border: 1px solid var(--borderColor-default, black);
134
135
  padding: 6px 8px;
135
136
  min-width: 75px;
136
137
  vertical-align: top;
137
138
  text-align: start;
138
139
  }
139
140
  .PlaygroundEditorTheme__tableCellHeader {
140
- background-color: #f2f3f5;
141
+ background-color: var(--bgColor-muted, #f2f3f5);
141
142
  text-align: start;
142
143
  }
143
144
  .PlaygroundEditorTheme__characterLimit {
144
145
  display: inline;
145
- background-color: #ffbbbb !important;
146
+ background-color: var(--bgColor-danger-muted, #ffbbbb) !important;
146
147
  }
147
148
  .PlaygroundEditorTheme__ol1 {
148
149
  padding: 0;
@@ -221,23 +222,23 @@
221
222
  }
222
223
  .PlaygroundEditorTheme__listItemUnchecked:focus:before,
223
224
  .PlaygroundEditorTheme__listItemChecked:focus:before {
224
- box-shadow: 0 0 0 2px #a6cdfe;
225
+ box-shadow: 0 0 0 2px var(--focus-outlineColor, #a6cdfe);
225
226
  border-radius: 2px;
226
227
  }
227
228
  .PlaygroundEditorTheme__listItemUnchecked:before {
228
- border: 1px solid #999;
229
+ border: 1px solid var(--borderColor-default, #999);
229
230
  border-radius: 2px;
230
231
  }
231
232
  .PlaygroundEditorTheme__listItemChecked:before {
232
- border: 1px solid rgb(61, 135, 245);
233
+ border: 1px solid var(--bgColor-accent-emphasis, rgb(61, 135, 245));
233
234
  border-radius: 2px;
234
- background-color: #3d87f5;
235
+ background-color: var(--bgColor-accent-emphasis, #3d87f5);
235
236
  background-repeat: no-repeat;
236
237
  }
237
238
  .PlaygroundEditorTheme__listItemChecked:after {
238
239
  content: '';
239
240
  cursor: pointer;
240
- border-color: #fff;
241
+ border-color: var(--fgColor-onEmphasis, #fff);
241
242
  border-style: solid;
242
243
  position: absolute;
243
244
  display: block;
@@ -256,28 +257,28 @@
256
257
  display: none;
257
258
  }
258
259
  .PlaygroundEditorTheme__tokenComment {
259
- color: slategray;
260
+ color: var(--codeMirror-syntax-fgColor-comment, slategray);
260
261
  }
261
262
  .PlaygroundEditorTheme__tokenPunctuation {
262
- color: #999;
263
+ color: var(--fgColor-muted, #999);
263
264
  }
264
265
  .PlaygroundEditorTheme__tokenProperty {
265
- color: #905;
266
+ color: var(--codeMirror-syntax-fgColor-constant, #905);
266
267
  }
267
268
  .PlaygroundEditorTheme__tokenSelector {
268
- color: #690;
269
+ color: var(--codeMirror-syntax-fgColor-string, #690);
269
270
  }
270
271
  .PlaygroundEditorTheme__tokenOperator {
271
- color: #9a6e3a;
272
+ color: var(--codeMirror-syntax-fgColor-variable, #9a6e3a);
272
273
  }
273
274
  .PlaygroundEditorTheme__tokenAttr {
274
- color: #07a;
275
+ color: var(--codeMirror-syntax-fgColor-keyword, #07a);
275
276
  }
276
277
  .PlaygroundEditorTheme__tokenVariable {
277
- color: #e90;
278
+ color: var(--codeMirror-syntax-fgColor-variable, #e90);
278
279
  }
279
280
  .PlaygroundEditorTheme__tokenFunction {
280
- color: #dd4a68;
281
+ color: var(--codeMirror-syntax-fgColor-entity, #dd4a68);
281
282
  }
282
283
  .PlaygroundEditorTheme__mark {
283
284
  background: rgba(255, 212, 0, 0.14);
@@ -300,5 +301,5 @@
300
301
  user-select: none;
301
302
  }
302
303
  .PlaygroundEditorTheme__embedBlockFocus {
303
- outline: 2px solid rgb(60, 132, 244);
304
+ outline: 2px solid var(--borderColor-accent-emphasis, rgb(60, 132, 244));
304
305
  }
@@ -4,32 +4,13 @@
4
4
  * MIT License
5
5
  */
6
6
 
7
- @import url('Button.css');
8
- @import url('CodeActionMenuPlugin.css');
9
- /* Collapsible.css - now imported directly in src/plugins/CollapsiblePlugin/index.ts */
10
7
  @import url('CommentEditorTheme.css');
11
- @import url('CommentPlugin.css');
12
8
  @import url('ContentEditable.css');
13
- @import url('Dialog.css');
14
9
  @import url('DraggableBlockPlugin.css');
15
10
  @import url('Editor.css');
16
11
  @import url('EquationEditor.css');
17
- @import url('ExcalidrawModal.css');
18
- @import url('ExcalidrawNode.css');
19
- @import url('FloatingTextFormatToolbarPlugin.css');
20
12
  @import url('ImageNode.css');
21
- @import url('Input.css');
22
- @import url('Jupyter.css');
23
- @import url('KatexEquationAlterer.css');
24
- @import url('Modal.css');
25
- @import url('FontSize.css');
26
13
  @import url('Placeholder.css');
27
- @import url('PrettierButton.css');
28
14
  @import url('Rich.css');
29
15
  @import url('TableNode.css');
30
- @import url('TableInsertModal.css');
31
- /* TableCellResizer.css - now imported directly in src/plugins/TableCellResizer/index.tsx */
32
- @import url('ColorPicker.css');
33
- @import url('TableOfContentsPlugin.css');
34
16
  @import url('Theme.css');
35
- @import url('ToolbarPlugin.css');