testomatio-editor-blocks 0.4.58 → 0.4.60

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.
@@ -260,6 +260,26 @@ html.dark .bn-step-image-preview__content {
260
260
  background: #262626;
261
261
  }
262
262
 
263
+ html.dark [data-file-block] .bn-add-file-button {
264
+ background-color: #262626;
265
+ color: #a3a3a3;
266
+ }
267
+
268
+ html.dark .bn-editor[contenteditable="true"] [data-file-block] .bn-add-file-button:hover,
269
+ html.dark [data-file-block] .bn-file-name-with-icon:hover,
270
+ html.dark .ProseMirror-selectednode .bn-file-name-with-icon {
271
+ background-color: #333333;
272
+ }
273
+
274
+ html.dark .bn-step-editor .overtype-wrapper .overtype-preview code.step-preview-code {
275
+ color: rgba(251, 191, 36, 1) !important;
276
+ }
277
+
278
+ html.dark .bn-step-editor .overtype-wrapper .overtype-preview a.step-preview-link,
279
+ html.dark .bn-step-editor .overtype-wrapper .overtype-preview a.step-preview-link::selection {
280
+ color: rgba(129, 140, 248, 1) !important;
281
+ }
282
+
263
283
  .testomatio-editor {
264
284
  font-family: "Inter", system-ui, -apple-system, sans-serif;
265
285
  }
@@ -951,11 +971,6 @@ html.dark .bn-step-image-preview__content {
951
971
  overflow-x: clip;
952
972
  }
953
973
 
954
- .bn-container .bn-suggestion-menu {
955
- max-height: none !important;
956
- overflow: visible !important;
957
- }
958
-
959
974
  [data-tooltip] {
960
975
  position: relative;
961
976
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testomatio-editor-blocks",
3
- "version": "0.4.58",
3
+ "version": "0.4.60",
4
4
  "description": "Custom BlockNote schema, markdown conversion helpers, and UI for Testomatio-style test cases and steps.",
5
5
  "type": "module",
6
6
  "main": "./package/index.js",
package/src/App.tsx CHANGED
@@ -362,38 +362,20 @@ function CustomSlashMenu() {
362
362
  floatingOptions={{
363
363
  middleware: [
364
364
  offset(10),
365
- size({
366
- apply({ elements }) {
367
- Object.assign(elements.floating.style, { maxHeight: "", overflowY: "" });
368
- },
369
- }),
370
365
  flip({
371
366
  padding: 10,
372
367
  fallbackPlacements: ["top-start"],
373
368
  }),
374
369
  shift({ padding: 10 }),
375
- {
376
- name: "fitToViewport",
377
- fn({ y, rects, elements }) {
378
- const padding = 10;
379
- if (y < padding) {
380
- const bottomEdge = rects.reference.y - 10;
381
- const maxHeight = Math.max(bottomEdge - padding, 100);
382
- Object.assign(elements.floating.style, {
383
- maxHeight: `${maxHeight}px`,
384
- overflowY: "auto",
385
- });
386
- return { y: padding };
387
- }
388
- const viewportHeight = window.innerHeight;
389
- const available = viewportHeight - y - padding;
370
+ size({
371
+ padding: 10,
372
+ apply({ availableHeight, elements }) {
390
373
  Object.assign(elements.floating.style, {
391
- maxHeight: `${Math.max(available, 100)}px`,
374
+ maxHeight: `${Math.max(availableHeight - 10, 120)}px`,
392
375
  overflowY: "auto",
393
376
  });
394
- return {};
395
377
  },
396
- },
378
+ }),
397
379
  ],
398
380
  }}
399
381
  />
@@ -260,6 +260,26 @@ html.dark .bn-step-image-preview__content {
260
260
  background: #262626;
261
261
  }
262
262
 
263
+ html.dark [data-file-block] .bn-add-file-button {
264
+ background-color: #262626;
265
+ color: #a3a3a3;
266
+ }
267
+
268
+ html.dark .bn-editor[contenteditable="true"] [data-file-block] .bn-add-file-button:hover,
269
+ html.dark [data-file-block] .bn-file-name-with-icon:hover,
270
+ html.dark .ProseMirror-selectednode .bn-file-name-with-icon {
271
+ background-color: #333333;
272
+ }
273
+
274
+ html.dark .bn-step-editor .overtype-wrapper .overtype-preview code.step-preview-code {
275
+ color: rgba(251, 191, 36, 1) !important;
276
+ }
277
+
278
+ html.dark .bn-step-editor .overtype-wrapper .overtype-preview a.step-preview-link,
279
+ html.dark .bn-step-editor .overtype-wrapper .overtype-preview a.step-preview-link::selection {
280
+ color: rgba(129, 140, 248, 1) !important;
281
+ }
282
+
263
283
  .testomatio-editor {
264
284
  font-family: "Inter", system-ui, -apple-system, sans-serif;
265
285
  }
@@ -951,11 +971,6 @@ html.dark .bn-step-image-preview__content {
951
971
  overflow-x: clip;
952
972
  }
953
973
 
954
- .bn-container .bn-suggestion-menu {
955
- max-height: none !important;
956
- overflow: visible !important;
957
- }
958
-
959
974
  [data-tooltip] {
960
975
  position: relative;
961
976
  }