oasis-editor 0.0.335 → 0.0.337

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.
@@ -1,6 +1,7 @@
1
1
  import { ToolbarDocumentStyle } from './schema/items.js';
2
2
  /** Shared geometry for the ribbon allocator and the rendered gallery. */
3
3
  export declare const STYLE_GALLERY_CARD_WIDTH = 106;
4
+ export declare const TABLE_STYLE_GALLERY_CARD_WIDTH = 72;
4
5
  export declare const STYLE_GALLERY_EXPAND_WIDTH = 24;
5
6
  export declare const STYLE_GALLERY_BORDER_WIDTH = 2;
6
7
  /** A mounted strip always keeps a real preview, even while temporarily hidden.
@@ -8,5 +9,7 @@ export declare const STYLE_GALLERY_BORDER_WIDTH = 2;
8
9
  * placeholder when the document has available styles.
9
10
  */
10
11
  export declare function styleGallerySlots(width: number): number;
12
+ /** Whole-card capacity shared by paragraph and table preview strips. */
13
+ export declare function gallerySlots(width: number, cardWidth: number): number;
11
14
  /** Follow the active style without changing the canonical quick-style order. */
12
15
  export declare function visibleGalleryStyles(quick: readonly ToolbarDocumentStyle[], all: readonly ToolbarDocumentStyle[], activeId: string, slots: number): ToolbarDocumentStyle[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.335",
3
+ "version": "0.0.337",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {