@clevertask/scribe 0.1.27 → 0.1.29

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 (57) hide show
  1. package/README.md +4 -2
  2. package/dist/{BarMenu-BGWT4Oyk.js → BarMenu-BC8XoC6e.js} +1 -1
  3. package/dist/assets/index.css +1 -1
  4. package/dist/components/Menu/BarMenu.js +1 -1
  5. package/dist/components/Menu/BubbleMenu.js +2 -2
  6. package/dist/components/Menu/CalloutBubbleMenu.js +2 -2
  7. package/dist/components/Menu/LinkBubbleMenu.js +2 -2
  8. package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
  9. package/dist/components/Menu/TableBubbleMenu.d.ts.map +1 -1
  10. package/dist/components/Menu/TableBubbleMenu.js +145 -132
  11. package/dist/components/Menu/TableHeightSettings.d.ts +11 -0
  12. package/dist/components/Menu/TableHeightSettings.d.ts.map +1 -0
  13. package/dist/components/Menu/TableHeightSettings.js +156 -0
  14. package/dist/components/Menu/TableLayoutOptions.d.ts +5 -0
  15. package/dist/components/Menu/TableLayoutOptions.d.ts.map +1 -1
  16. package/dist/components/Menu/TableLayoutOptions.js +56 -39
  17. package/dist/components/Menu/linkBubbleMenuPlugin.js +1 -1
  18. package/dist/components/Scribe/extension/callout.js +7 -7
  19. package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
  20. package/dist/components/Scribe/extension/extension-link.js +1 -1
  21. package/dist/components/Scribe/extension/extension-markdown-paste.js +1 -1
  22. package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
  23. package/dist/components/Scribe/extension/external-link-preview/commands.js +1 -1
  24. package/dist/components/Scribe/extension/external-link-preview/index.js +1 -1
  25. package/dist/components/Scribe/extension/external-link-preview/node-view.js +1 -1
  26. package/dist/components/Scribe/extension/external-link-preview/render-html.js +1 -1
  27. package/dist/components/Scribe/extension/external-link-preview/schema.js +1 -1
  28. package/dist/components/Scribe/extension/index.js +1 -1
  29. package/dist/components/Scribe/extension/resizable-table.d.ts +1 -0
  30. package/dist/components/Scribe/extension/resizable-table.d.ts.map +1 -1
  31. package/dist/components/Scribe/extension/resizable-table.js +64 -43
  32. package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
  33. package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
  34. package/dist/components/Scribe/extension/table-layout.d.ts +5 -0
  35. package/dist/components/Scribe/extension/table-layout.d.ts.map +1 -1
  36. package/dist/components/Scribe/extension/table-layout.js +2 -2
  37. package/dist/components/Scribe/extension/tableOfContents.js +1 -1
  38. package/dist/components/Scribe/index.js +4 -4
  39. package/dist/{dist-BiognBi4.js → dist-B0xwy1Q5.js} +175 -154
  40. package/dist/{dist-Dk0fXvrc.js → dist-CDJRm4fL.js} +2 -2
  41. package/dist/{dist-xjmWZ-oh.js → dist-DnVcys79.js} +632 -571
  42. package/dist/document-node-capabilities.d.ts.map +1 -1
  43. package/dist/document-node-capabilities.js +5 -1
  44. package/dist/{extension-CBOxOV0e.js → extension-BPeoqfHR.js} +2 -2
  45. package/dist/{extension-link-DmM_EJTn.js → extension-link-RvaqaDqr.js} +319 -294
  46. package/dist/{html-to-markdown-DZ83bZ9I.js → html-to-markdown-DF93it73.js} +1 -1
  47. package/dist/main.css +2 -1
  48. package/dist/main.js +1 -1
  49. package/dist/{menus-BDXjZsFU.js → menus-scgppp2C.js} +25 -25
  50. package/dist/{schema-extensions-BXyGPwMf.js → schema-extensions-ITR9LEgX.js} +2025 -1898
  51. package/dist/schema-extensions.js +1 -1
  52. package/dist/schema.js +1 -1
  53. package/dist/{table-layout-B3sPDpEF.js → table-layout-iVolql5p.js} +180 -121
  54. package/dist/utils/html-to-markdown.d.ts.map +1 -1
  55. package/dist/utils/html-to-markdown.js +1 -1
  56. package/dist/utils/index.js +3 -3
  57. package/package.json +51 -51
package/README.md CHANGED
@@ -223,13 +223,15 @@ Type `/table` to insert a 3 × 3 table with a header row. Selecting a table cell
223
223
 
224
224
  The **Table layout** menu stores each table's explicit layout choice. **Auto** keeps the existing sizing behavior. **Fit to width** wraps the table into the available editor width and temporarily disables column resizing. **Scroll horizontally** retains authored column widths, gives columns without a saved width a readable 128px minimum, and scrolls inside the editor when the table needs more room. Switching layouts retains the table's saved column widths.
225
225
 
226
- **Limit height** is an independent option that caps the table at 360px and enables vertical scrolling. Override `--scribe-table-max-height` on the editor's container to change the cap. Layout and height choices apply in both editing and read-only views, and remain intact when content is saved and loaded as JSON, HTML, or Markdown. Hosts can also use `editor.commands.setTableLayout("scroll")` (accepts `"auto"`, `"fit"`, or `"scroll"`) and `editor.commands.setTableHeightLimit(true)` (accepts a boolean) while the selection is inside the table.
226
+ **Limit height** caps the table and enables vertical scrolling; shorter tables stay compact. In **Table layout → Maximum height…**, enter a whole number from 120 to 2000 pixels and choose **Apply** to set that table's maximum. **Use default** clears its override and uses the host's `--scribe-table-max-height`, with a 360px fallback. Turning **Limit height** off retains the saved maximum for when it is enabled again. Changing the maximum leaves the limit toggle, width layout, and sticky header preference unchanged.
227
+
228
+ Layout and height choices apply in both editing and read-only views, and remain intact when content is saved and loaded as JSON, HTML, or Markdown. Hosts can use `editor.commands.setTableLayout("scroll")` (accepts `"auto"`, `"fit"`, or `"scroll"`), `editor.commands.setTableHeightLimit(true)` (accepts a boolean), and `editor.commands.setTableMaxHeight(600)` (accepts a whole number from 120 to 2000, or `null` to restore the default) while the selection is inside an editable table. The optional `maxHeight` table attribute is serialized as `data-table-max-height` in HTML; existing tables without it keep the host default.
227
229
 
228
230
  **Sticky header row** keeps the first row visible while scrolling, independently of **Limit height**. New tables created with `/table` or `insertTable` start with it enabled when their entire first row contains header cells. Existing and imported tables retain their saved setting; tables without a saved sticky preference stay off. Toggle it in **Table layout**. With **Limit height** on, the header stays at the top of the table's own scroll area. With it off, the header follows the document's vertical scroll area until the table ends. This also works with horizontal scrolling and retains saved column widths. The preference stays saved if the header row is removed and becomes active again when it is restored. It works in editing and read-only views. Hosts can use `editor.commands.setTableStickyHeaderRow(true)` to enable it or `false` to clear it while the selection is inside an editable table. For document scrolling, set `--scribe-table-sticky-header-offset` on the editor's container to leave room above the header for a document toolbar; the default is `0px`.
229
231
 
230
232
  Keyboard users can press `Alt + F10` while editing a table to focus its controls, use the arrow, Home, and End keys to move between actions, and press Escape to return to the active cell.
231
233
 
232
- Simple headed tables without layout, height, or sticky-header preferences serialize as GFM Markdown. Tables with those preferences (including an inactive sticky preference), merged cells, multiple blocks in a cell, resized columns, or other structures that GFM cannot represent are kept as sanitized raw HTML inside the Markdown output so their structure is not silently lost.
234
+ Simple headed tables without layout, height, or sticky-header preferences serialize as GFM Markdown. Tables with those preferences (including a saved maximum while **Limit height** is off or an inactive sticky preference), merged cells, multiple blocks in a cell, resized columns, or other structures that GFM cannot represent are kept as sanitized raw HTML inside the Markdown output so their structure is not silently lost.
233
235
 
234
236
  Scribe's `insertTable` command and `/table` action do not create a table while the selection is
235
237
  already inside another table. Existing documents containing nested tables remain loadable so old
@@ -1,4 +1,4 @@
1
- import { s as e } from "./dist-BiognBi4.js";
1
+ import { s as e } from "./dist-B0xwy1Q5.js";
2
2
  import { getPopupMountTarget as t } from "./components/Scribe/extension/getPopupMountTarget.js";
3
3
  import n from "./components/Menu/LinkEditor.js";
4
4
  import { hideLinkBubbleMenu as r } from "./components/Menu/linkBubbleMenuPlugin.js";