testomatio-editor-blocks 0.4.58 → 0.4.59

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.
@@ -951,11 +951,6 @@ html.dark .bn-step-image-preview__content {
951
951
  overflow-x: clip;
952
952
  }
953
953
 
954
- .bn-container .bn-suggestion-menu {
955
- max-height: none !important;
956
- overflow: visible !important;
957
- }
958
-
959
954
  [data-tooltip] {
960
955
  position: relative;
961
956
  }
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.59",
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
  />
@@ -951,11 +951,6 @@ html.dark .bn-step-image-preview__content {
951
951
  overflow-x: clip;
952
952
  }
953
953
 
954
- .bn-container .bn-suggestion-menu {
955
- max-height: none !important;
956
- overflow: visible !important;
957
- }
958
-
959
954
  [data-tooltip] {
960
955
  position: relative;
961
956
  }