@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
@@ -0,0 +1,156 @@
1
+ import { c as e, n as t } from "../../table-layout-iVolql5p.js";
2
+ import { getPopupMountTarget as n } from "../Scribe/extension/getPopupMountTarget.js";
3
+ import { getSelectionTableContext as r } from "./tableBubbleMenuPlugin.js";
4
+ import { NodeSelection as i } from "@tiptap/pm/state";
5
+ import { Button as a, Dialog as o, Flex as s, Text as c, TextField as l } from "@radix-ui/themes";
6
+ import { useEffect as u, useId as d, useMemo as f, useRef as p, useState as m } from "react";
7
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
8
+ //#region lib/components/Menu/TableHeightSettings.tsx
9
+ var _ = ({ editor: _, maxHeight: v, canSetMaxHeight: y, onClose: b }) => {
10
+ let [x, S] = m(() => v === null ? "" : String(v)), [C, w] = m(null), T = p(null), E = f(() => n(_), [_]), D = p(_.state.selection.getBookmark()), O = r(_.state)?.position ?? null, k = p(O), A = p(O === null ? null : O + 2), j = p(!0), M = p(_.state.selection instanceof i && _.state.selection.node.type.name === "table"), N = p(!0), P = d(), F = d(), I = d(), L = () => !j.current || _.isDestroyed || !_.isEditable ? !1 : r(_.state)?.position === k.current && D.current.resolve(_.state.doc).eq(_.state.selection);
11
+ u(() => {
12
+ let e = () => {
13
+ j.current = !1, N.current = !1, b();
14
+ }, t = () => {
15
+ _.isEditable || e();
16
+ }, n = ({ transaction: t }) => {
17
+ if (D.current = D.current.map(t.mapping), k.current !== null && (k.current = t.mapping.map(k.current)), A.current !== null) {
18
+ let n = t.mapping.mapResult(A.current);
19
+ if (A.current = n.pos, n.deleted) {
20
+ e();
21
+ return;
22
+ }
23
+ }
24
+ M.current && _.state.selection instanceof i && _.state.selection.from === k.current && (D.current = _.state.selection.getBookmark()), (!_.isEditable || r(_.state)?.position !== k.current || !D.current.resolve(_.state.doc).eq(_.state.selection)) && e();
25
+ };
26
+ return _.on("transaction", n), _.on("update", t), _.on("destroy", e), () => {
27
+ _.off("transaction", n), _.off("update", t), _.off("destroy", e);
28
+ };
29
+ }, [_, b]);
30
+ let R = (e) => {
31
+ if (!L()) {
32
+ N.current = !1, b();
33
+ return;
34
+ }
35
+ y && _.commands.setTableMaxHeight(e) && (D.current = _.state.selection.getBookmark(), N.current = !0, b());
36
+ };
37
+ return /* @__PURE__ */ h(o.Root, {
38
+ open: !0,
39
+ onOpenChange: (e) => !e && b(),
40
+ children: /* @__PURE__ */ g(o.Content, {
41
+ container: E,
42
+ size: "2",
43
+ style: {
44
+ width: "calc(100vw - 32px)",
45
+ maxWidth: 360
46
+ },
47
+ onOpenAutoFocus: (e) => {
48
+ e.preventDefault(), L() ? (T.current?.focus(), T.current?.select()) : (N.current = !1, b());
49
+ },
50
+ onCloseAutoFocus: (e) => {
51
+ e.preventDefault(), N.current && L() && _.chain().focus().run();
52
+ },
53
+ onKeyDown: (e) => e.stopPropagation(),
54
+ children: [
55
+ /* @__PURE__ */ h(o.Title, { children: "Table height" }),
56
+ /* @__PURE__ */ h(o.Description, {
57
+ size: "2",
58
+ mb: "4",
59
+ children: "Set a maximum height. Limit height controls whether this cap is used."
60
+ }),
61
+ /* @__PURE__ */ g("form", {
62
+ noValidate: !0,
63
+ onKeyDown: (e) => {
64
+ e.key === "Enter" && e.target instanceof HTMLInputElement && (e.preventDefault(), e.currentTarget.requestSubmit());
65
+ },
66
+ onSubmit: (n) => {
67
+ if (n.preventDefault(), !L()) {
68
+ N.current = !1, b();
69
+ return;
70
+ }
71
+ let r = e(x.trim());
72
+ if (r === null) {
73
+ w(`Enter a whole number from 120 to ${t}.`), T.current?.focus();
74
+ return;
75
+ }
76
+ R(r);
77
+ },
78
+ children: [/* @__PURE__ */ g(s, {
79
+ direction: "column",
80
+ gap: "2",
81
+ children: [
82
+ /* @__PURE__ */ h("label", {
83
+ htmlFor: P,
84
+ children: /* @__PURE__ */ h(c, {
85
+ size: "2",
86
+ weight: "medium",
87
+ children: "Maximum height (px)"
88
+ })
89
+ }),
90
+ /* @__PURE__ */ h(l.Root, {
91
+ ref: T,
92
+ id: P,
93
+ type: "text",
94
+ inputMode: "numeric",
95
+ autoComplete: "off",
96
+ placeholder: "Editor default",
97
+ value: x,
98
+ "aria-invalid": C ? !0 : void 0,
99
+ "aria-describedby": C ? `${F} ${I}` : F,
100
+ onChange: (e) => {
101
+ S(e.target.value), w(null);
102
+ }
103
+ }),
104
+ /* @__PURE__ */ g(c, {
105
+ id: F,
106
+ size: "1",
107
+ color: "gray",
108
+ children: [
109
+ 120,
110
+ "–",
111
+ t,
112
+ " pixels. Use default follows the editor's configured height."
113
+ ]
114
+ }),
115
+ C ? /* @__PURE__ */ h(c, {
116
+ id: I,
117
+ size: "1",
118
+ color: "red",
119
+ role: "alert",
120
+ children: C
121
+ }) : null
122
+ ]
123
+ }), /* @__PURE__ */ g(s, {
124
+ mt: "4",
125
+ gap: "2",
126
+ justify: "between",
127
+ wrap: "wrap",
128
+ children: [/* @__PURE__ */ h(a, {
129
+ type: "button",
130
+ variant: "soft",
131
+ color: "gray",
132
+ disabled: !y,
133
+ onClick: () => R(null),
134
+ children: "Use default"
135
+ }), /* @__PURE__ */ g(s, {
136
+ gap: "2",
137
+ children: [/* @__PURE__ */ h(a, {
138
+ type: "button",
139
+ variant: "soft",
140
+ color: "gray",
141
+ onClick: b,
142
+ children: "Cancel"
143
+ }), /* @__PURE__ */ h(a, {
144
+ type: "submit",
145
+ disabled: !y,
146
+ children: "Apply"
147
+ })]
148
+ })]
149
+ })]
150
+ })
151
+ ]
152
+ })
153
+ });
154
+ };
155
+ //#endregion
156
+ export { _ as default };
@@ -5,14 +5,19 @@ interface TableLayoutOptionsProps {
5
5
  editor: Editor;
6
6
  layout: ScribeTableLayout;
7
7
  limitHeight: boolean;
8
+ maxHeight: number | null;
8
9
  stickyHeaderRow: boolean;
9
10
  hasHeaderRow: boolean;
10
11
  canSetLayout: boolean;
11
12
  canSetHeightLimit: boolean;
13
+ hasMaxHeightCommand: boolean;
14
+ canSetMaxHeight: boolean;
12
15
  hasStickyHeaderCommand: boolean;
13
16
  canSetStickyHeaderRow: boolean;
14
17
  open: boolean;
15
18
  onOpenChange: (open: boolean) => void;
19
+ heightSettingsOpen: boolean;
20
+ onHeightSettingsOpenChange: (open: boolean) => void;
16
21
  }
17
22
  declare const TableLayoutOptions: FC<TableLayoutOptionsProps>;
18
23
  export default TableLayoutOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"TableLayoutOptions.d.ts","sourceRoot":"","sources":["../../../lib/components/Menu/TableLayoutOptions.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,iBAAiB,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,sBAAsB,EAAE,OAAO,CAAC;IAChC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAQD,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAiInD,CAAC;eAEa,kBAAkB"}
1
+ {"version":3,"file":"TableLayoutOptions.d.ts","sourceRoot":"","sources":["../../../lib/components/Menu/TableLayoutOptions.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAG7E,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,iBAAiB,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,sBAAsB,EAAE,OAAO,CAAC;IAChC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,0BAA0B,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD;AAQD,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAoKnD,CAAC;eAEa,kBAAkB"}
@@ -1,9 +1,10 @@
1
1
  import { getPopupMountTarget as e } from "../Scribe/extension/getPopupMountTarget.js";
2
- import { DropdownMenu as t, IconButton as n } from "@radix-ui/themes";
3
- import { useId as r, useRef as i } from "react";
4
- import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
2
+ import t from "./TableHeightSettings.js";
3
+ import { DropdownMenu as n, IconButton as r } from "@radix-ui/themes";
4
+ import { useId as i, useRef as a } from "react";
5
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
5
6
  //#region lib/components/Menu/TableLayoutOptions.tsx
6
- var c = [
7
+ var l = [
7
8
  {
8
9
  value: "auto",
9
10
  label: "Auto"
@@ -16,29 +17,29 @@ var c = [
16
17
  value: "scroll",
17
18
  label: "Scroll horizontally"
18
19
  }
19
- ], l = ({ editor: l, layout: u, limitHeight: d, stickyHeaderRow: f, hasHeaderRow: p, canSetLayout: m, canSetHeightLimit: h, hasStickyHeaderCommand: g, canSetStickyHeaderRow: _, open: v, onOpenChange: y }) => {
20
- let b = i(!1), x = r(), S = p ? void 0 : "Requires a header row.";
21
- return /* @__PURE__ */ s(t.Root, {
20
+ ], u = ({ editor: u, layout: d, limitHeight: f, maxHeight: p, stickyHeaderRow: m, hasHeaderRow: h, canSetLayout: g, canSetHeightLimit: _, hasMaxHeightCommand: v, canSetMaxHeight: y, hasStickyHeaderCommand: b, canSetStickyHeaderRow: x, open: S, onOpenChange: C, heightSettingsOpen: w, onHeightSettingsOpenChange: T }) => {
21
+ let E = a(!1), D = a(!1), O = u.isDestroyed ? void 0 : e(u), k = i(), A = h ? void 0 : "Requires a header row.";
22
+ return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ c(n.Root, {
22
23
  modal: !1,
23
- open: v,
24
+ open: S,
24
25
  onOpenChange: (e) => {
25
- e && (b.current = !1), y(e);
26
+ e && (E.current = !1), C(e);
26
27
  },
27
- children: [/* @__PURE__ */ o(t.Trigger, { children: /* @__PURE__ */ o(n, {
28
+ children: [/* @__PURE__ */ s(n.Trigger, { children: /* @__PURE__ */ s(r, {
28
29
  type: "button",
29
30
  size: "1",
30
31
  radius: "medium",
31
32
  color: "gray",
32
- variant: v ? "soft" : "ghost",
33
+ variant: S ? "soft" : "ghost",
33
34
  "aria-label": "Table layout",
34
35
  title: "Table layout",
35
- children: /* @__PURE__ */ o("svg", {
36
+ children: /* @__PURE__ */ s("svg", {
36
37
  "aria-hidden": "true",
37
38
  fill: "none",
38
39
  height: "18",
39
40
  viewBox: "0 0 20 20",
40
41
  width: "18",
41
- children: /* @__PURE__ */ o("path", {
42
+ children: /* @__PURE__ */ s("path", {
42
43
  d: "M3.5 3.5h13v8h-13zM3.5 7.5h13M8 3.5v8M12 3.5v8M3.5 16h13M5.5 14l-2 2 2 2M14.5 14l2 2-2 2",
43
44
  stroke: "currentColor",
44
45
  strokeLinecap: "round",
@@ -46,64 +47,80 @@ var c = [
46
47
  strokeWidth: "1.35"
47
48
  })
48
49
  })
49
- }) }), /* @__PURE__ */ s(t.Content, {
50
+ }) }), /* @__PURE__ */ c(n.Content, {
50
51
  "aria-label": "Table layout",
51
- container: e(l),
52
+ container: O,
52
53
  size: "2",
53
54
  side: "bottom",
54
55
  align: "start",
55
56
  collisionPadding: 8,
56
57
  onKeyDown: (e) => e.stopPropagation(),
57
58
  onEscapeKeyDown: (e) => {
58
- e.stopPropagation(), b.current = !0;
59
+ e.stopPropagation(), E.current = !0;
59
60
  },
60
61
  onCloseAutoFocus: (e) => {
61
- b.current && !l.isDestroyed && (e.preventDefault(), l.chain().focus().run());
62
+ if (D.current) {
63
+ e.preventDefault(), D.current = !1;
64
+ return;
65
+ }
66
+ E.current && !u.isDestroyed && (e.preventDefault(), u.chain().focus().run());
62
67
  },
63
68
  children: [
64
- /* @__PURE__ */ o(t.Label, { children: "Width" }),
65
- /* @__PURE__ */ o(t.RadioGroup, {
69
+ /* @__PURE__ */ s(n.Label, { children: "Width" }),
70
+ /* @__PURE__ */ s(n.RadioGroup, {
66
71
  "aria-label": "Table width",
67
- value: u,
72
+ value: d,
68
73
  onValueChange: (e) => {
69
- let t = c.find((t) => t.value === e)?.value;
70
- t && (b.current = !0, l.commands.setTableLayout(t));
74
+ let t = l.find((t) => t.value === e)?.value;
75
+ t && (E.current = !0, u.commands.setTableLayout(t));
71
76
  },
72
- children: c.map((e) => /* @__PURE__ */ o(t.RadioItem, {
77
+ children: l.map((e) => /* @__PURE__ */ s(n.RadioItem, {
73
78
  value: e.value,
74
- disabled: !m,
79
+ disabled: !g,
75
80
  children: e.label
76
81
  }, e.value))
77
82
  }),
78
- /* @__PURE__ */ o(t.Separator, {}),
79
- /* @__PURE__ */ o(t.CheckboxItem, {
80
- checked: d,
81
- disabled: !h,
83
+ /* @__PURE__ */ s(n.Separator, {}),
84
+ /* @__PURE__ */ s(n.CheckboxItem, {
85
+ checked: f,
86
+ disabled: !_,
82
87
  onCheckedChange: (e) => {
83
- b.current = !0, l.commands.setTableHeightLimit(e);
88
+ E.current = !0, u.commands.setTableHeightLimit(e);
84
89
  },
85
90
  children: "Limit height"
86
91
  }),
87
- g ? /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(t.CheckboxItem, {
88
- checked: f,
89
- disabled: !_,
90
- "aria-describedby": S ? x : void 0,
92
+ v ? /* @__PURE__ */ s(n.Item, {
93
+ disabled: !y,
94
+ onSelect: () => {
95
+ D.current = !0, T(!0);
96
+ },
97
+ children: "Maximum height…"
98
+ }) : null,
99
+ b ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(n.CheckboxItem, {
100
+ checked: m,
101
+ disabled: !x,
102
+ "aria-describedby": A ? k : void 0,
91
103
  onCheckedChange: (e) => {
92
- b.current = !0, l.commands.setTableStickyHeaderRow(e);
104
+ E.current = !0, u.commands.setTableStickyHeaderRow(e);
93
105
  },
94
106
  children: "Sticky header row"
95
- }), S ? /* @__PURE__ */ o(t.Label, {
96
- id: x,
107
+ }), A ? /* @__PURE__ */ s(n.Label, {
108
+ id: k,
97
109
  style: {
98
110
  height: "auto",
99
111
  maxWidth: 220,
100
112
  whiteSpace: "normal"
101
113
  },
102
- children: S
114
+ children: A
103
115
  }) : null] }) : null
104
116
  ]
105
117
  })]
106
- });
118
+ }), w ? /* @__PURE__ */ s(t, {
119
+ editor: u,
120
+ maxHeight: p,
121
+ canSetMaxHeight: y,
122
+ onClose: () => T(!1)
123
+ }) : null] });
107
124
  };
108
125
  //#endregion
109
- export { l as default };
126
+ export { u as default };
@@ -1,4 +1,4 @@
1
- import { v as e } from "../../dist-xjmWZ-oh.js";
1
+ import { v as e } from "../../dist-DnVcys79.js";
2
2
  import { normalizeExternalLinkPreviewAttributes as t } from "../Scribe/extension/external-link-preview/attributes.js";
3
3
  import { NodeSelection as n, PluginKey as r } from "@tiptap/pm/state";
4
4
  //#region lib/components/Menu/linkBubbleMenuPlugin.ts
@@ -1,4 +1,4 @@
1
- import { A as e, I as t, a as n } from "../../../dist-xjmWZ-oh.js";
1
+ import { a as e, j as t, z as n } from "../../../dist-DnVcys79.js";
2
2
  import { TextSelection as r } from "@tiptap/pm/state";
3
3
  //#region lib/components/Scribe/extension/callout.ts
4
4
  var i = [
@@ -42,7 +42,7 @@ var i = [
42
42
  if (p?.type !== o || p.content.size) return !1;
43
43
  let m = a.after(s) + 1;
44
44
  return i.delete(a.before(), a.after()), i.setSelection(r.create(i.doc, i.mapping.map(m))), e.view.dispatch(i.scrollIntoView()), !0;
45
- }, f = n.create({
45
+ }, f = e.create({
46
46
  name: "callout",
47
47
  group: "block",
48
48
  content: "block+",
@@ -65,12 +65,12 @@ var i = [
65
65
  }];
66
66
  },
67
67
  renderHTML({ HTMLAttributes: e }) {
68
- let n = c(e["data-variant"]);
68
+ let t = c(e["data-variant"]);
69
69
  return [
70
70
  "aside",
71
- t(this.options.HTMLAttributes, e, {
71
+ n(this.options.HTMLAttributes, e, {
72
72
  "data-type": this.name,
73
- "data-variant": n,
73
+ "data-variant": t,
74
74
  role: "note"
75
75
  }),
76
76
  [
@@ -86,7 +86,7 @@ var i = [
86
86
  [
87
87
  "span",
88
88
  { "data-callout-label": "" },
89
- o[n]
89
+ o[t]
90
90
  ]
91
91
  ],
92
92
  [
@@ -100,7 +100,7 @@ var i = [
100
100
  return {
101
101
  insertCallout: (e = a) => ({ commands: t }) => s(e) && t.wrapIn(this.name, { variant: e }),
102
102
  setCalloutVariant: (e) => ({ commands: t }) => s(e) && t.updateAttributes(this.name, { variant: e }),
103
- toggleCallout: (t = a) => ({ commands: n, state: r }) => s(t) ? e(r, this.type) ? n.lift(this.name) : n.wrapIn(this.name, { variant: t }) : !1,
103
+ toggleCallout: (e = a) => ({ commands: n, state: r }) => s(e) ? t(r, this.type) ? n.lift(this.name) : n.wrapIn(this.name, { variant: e }) : !1,
104
104
  unsetCallout: () => ({ commands: e }) => e.lift(this.name)
105
105
  };
106
106
  },
@@ -1,4 +1,4 @@
1
- import { i as e } from "../../../../dist-BiognBi4.js";
1
+ import { i as e } from "../../../../dist-B0xwy1Q5.js";
2
2
  import { getPopupMountTarget as t } from "../getPopupMountTarget.js";
3
3
  import { t as n } from "../../../../tippy.esm-MjWnmeEn.js";
4
4
  import { EmojiList as r } from "./EmojiList.js";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../extension-link-DmM_EJTn.js";
1
+ import { t as e } from "../../../extension-link-RvaqaDqr.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { n as e } from "../../../dist-xjmWZ-oh.js";
1
+ import { n as e } from "../../../dist-DnVcys79.js";
2
2
  import { n as t, t as n } from "../../../markdown-to-html-BoK5O_j-.js";
3
3
  import { Plugin as r, PluginKey as i } from "@tiptap/pm/state";
4
4
  //#region lib/components/Scribe/extension/extension-markdown-paste.ts
@@ -1,4 +1,4 @@
1
- import { n as e } from "../../../dist-xjmWZ-oh.js";
1
+ import { n as e } from "../../../dist-DnVcys79.js";
2
2
  //#region lib/components/Scribe/extension/extension-selectedText.ts
3
3
  var t = e.create({
4
4
  name: "SelectedText",
@@ -1,4 +1,4 @@
1
- import { v as e } from "../../../../dist-xjmWZ-oh.js";
1
+ import { v as e } from "../../../../dist-DnVcys79.js";
2
2
  import { EXTERNAL_LINK_PREVIEW_NODE_NAME as t, hasExternalLinkPreviewMetadata as n, normalizeExternalLinkPreviewAttributes as r, normalizeExternalLinkPreviewHref as i } from "./attributes.js";
3
3
  import { normalizeLinkUrl as a } from "../../../Menu/linkUrl.js";
4
4
  import { startExternalLinkPreviewResolution as o } from "./resolver.js";
@@ -1,7 +1,7 @@
1
1
  import { EXTERNAL_LINK_PREVIEW_DISPLAYS as e } from "./types.js";
2
2
  import { EXTERNAL_LINK_PREVIEW_NODE_NAME as t } from "./attributes.js";
3
3
  import { ExternalLinkPreviewSchema as n } from "./schema.js";
4
- import { r } from "../../../../dist-BiognBi4.js";
4
+ import { r } from "../../../../dist-B0xwy1Q5.js";
5
5
  import { createExternalLinkPreviewResolverPlugin as i } from "./resolver.js";
6
6
  import { createExternalLinkPreviewCommands as a } from "./commands.js";
7
7
  import { ExternalLinkPreviewNodeView as o } from "./node-view.js";
@@ -1,5 +1,5 @@
1
1
  import { getExternalLinkPreviewHostname as e, getExternalLinkPreviewTitle as t, normalizeExternalLinkPreviewAttributes as n } from "./attributes.js";
2
- import { n as r, s as i } from "../../../../dist-BiognBi4.js";
2
+ import { n as r, s as i } from "../../../../dist-B0xwy1Q5.js";
3
3
  import { showLinkBubbleMenu as a } from "../../../Menu/linkBubbleMenuPlugin.js";
4
4
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
5
  //#region lib/components/Scribe/extension/external-link-preview/node-view.tsx
@@ -1,4 +1,4 @@
1
- import { I as e } from "../../../../dist-xjmWZ-oh.js";
1
+ import { z as e } from "../../../../dist-DnVcys79.js";
2
2
  import { getExternalLinkPreviewHostname as t, getExternalLinkPreviewTitle as n } from "./attributes.js";
3
3
  import { getExternalLinkPreviewDataAttributes as r } from "./serialization.js";
4
4
  //#region lib/components/Scribe/extension/external-link-preview/render-html.ts
@@ -1,4 +1,4 @@
1
- import { a as e } from "../../../../dist-xjmWZ-oh.js";
1
+ import { a as e } from "../../../../dist-DnVcys79.js";
2
2
  import { EXTERNAL_LINK_PREVIEW_NODE_NAME as t, isExternalLinkPreviewDisplay as n, normalizeExternalLinkPreviewAttributes as r, normalizeExternalLinkPreviewHref as i, normalizeExternalLinkPreviewLinkText as a, normalizeExternalLinkPreviewMediaUrl as o, normalizeExternalLinkPreviewMetadata as s } from "./attributes.js";
3
3
  import { getExternalLinkPreviewAttributesFromElement as c } from "./serialization.js";
4
4
  import { renderExternalLinkPreviewHTML as l } from "./render-html.js";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../extension-CBOxOV0e.js";
1
+ import { t as e } from "../../../extension-BPeoqfHR.js";
2
2
  export { e as initExtensions };
@@ -6,6 +6,7 @@ declare module "@tiptap/core" {
6
6
  scribeTableLayout: {
7
7
  setTableLayout: (layout: ScribeTableLayout) => ReturnType;
8
8
  setTableHeightLimit: (limit: boolean) => ReturnType;
9
+ setTableMaxHeight: (height: number | null) => ReturnType;
9
10
  setTableStickyHeaderRow: (sticky: boolean) => ReturnType;
10
11
  };
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"resizable-table.d.ts","sourceRoot":"","sources":["../../../../lib/components/Scribe/extension/resizable-table.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmC,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEnF,OAAO,EAQL,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,iBAAiB,EAAE;YACjB,cAAc,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,UAAU,CAAC;YAC1D,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,UAAU,CAAC;YACpD,uBAAuB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,CAAC;SAC1D,CAAC;KACH;CACF;AAoCD,eAAO,MAAM,yBAAyB,cAAe,SAAS,YACwB,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,kFAyNtB,CAAC"}
1
+ {"version":3,"file":"resizable-table.d.ts","sourceRoot":"","sources":["../../../../lib/components/Scribe/extension/resizable-table.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmC,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEnF,OAAO,EASL,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,iBAAiB,EAAE;YACjB,cAAc,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,UAAU,CAAC;YAC1D,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,UAAU,CAAC;YACpD,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,UAAU,CAAC;YACzD,uBAAuB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,CAAC;SAC1D,CAAC;KACH;CACF;AAoCD,eAAO,MAAM,yBAAyB,cAAe,SAAS,YACwB,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,kFA0QtB,CAAC"}