@clevertask/scribe 0.1.28 → 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 (40) hide show
  1. package/dist/{BarMenu-BGWT4Oyk.js → BarMenu-BC8XoC6e.js} +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/Menu/BarMenu.js +1 -1
  4. package/dist/components/Menu/BubbleMenu.js +2 -2
  5. package/dist/components/Menu/CalloutBubbleMenu.js +2 -2
  6. package/dist/components/Menu/LinkBubbleMenu.js +2 -2
  7. package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
  8. package/dist/components/Menu/TableBubbleMenu.js +3 -3
  9. package/dist/components/Menu/TableHeightSettings.js +1 -1
  10. package/dist/components/Menu/linkBubbleMenuPlugin.js +1 -1
  11. package/dist/components/Scribe/extension/callout.js +7 -7
  12. package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
  13. package/dist/components/Scribe/extension/extension-link.js +1 -1
  14. package/dist/components/Scribe/extension/extension-markdown-paste.js +1 -1
  15. package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
  16. package/dist/components/Scribe/extension/external-link-preview/commands.js +1 -1
  17. package/dist/components/Scribe/extension/external-link-preview/index.js +1 -1
  18. package/dist/components/Scribe/extension/external-link-preview/node-view.js +1 -1
  19. package/dist/components/Scribe/extension/external-link-preview/render-html.js +1 -1
  20. package/dist/components/Scribe/extension/external-link-preview/schema.js +1 -1
  21. package/dist/components/Scribe/extension/index.js +1 -1
  22. package/dist/components/Scribe/extension/resizable-table.js +2 -2
  23. package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
  24. package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
  25. package/dist/components/Scribe/extension/table-layout.js +1 -1
  26. package/dist/components/Scribe/extension/tableOfContents.js +1 -1
  27. package/dist/components/Scribe/index.js +3 -3
  28. package/dist/{dist-BiognBi4.js → dist-B0xwy1Q5.js} +175 -154
  29. package/dist/{dist-Dk0fXvrc.js → dist-CDJRm4fL.js} +2 -2
  30. package/dist/{dist-xjmWZ-oh.js → dist-DnVcys79.js} +632 -571
  31. package/dist/document-node-capabilities.js +1 -1
  32. package/dist/{extension-BU2USLV1.js → extension-BPeoqfHR.js} +2 -2
  33. package/dist/{extension-link-DmM_EJTn.js → extension-link-RvaqaDqr.js} +319 -294
  34. package/dist/{menus-BDXjZsFU.js → menus-scgppp2C.js} +25 -25
  35. package/dist/{schema-extensions-DyCk1Goa.js → schema-extensions-ITR9LEgX.js} +2025 -1898
  36. package/dist/schema-extensions.js +1 -1
  37. package/dist/schema.js +1 -1
  38. package/dist/{table-layout-BoDS50DR.js → table-layout-iVolql5p.js} +179 -128
  39. package/dist/utils/index.js +2 -2
  40. package/package.json +51 -51
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../BarMenu-BGWT4Oyk.js";
1
+ import { t as e } from "../../BarMenu-BC8XoC6e.js";
2
2
  export { e as default };
@@ -1,6 +1,6 @@
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 "../Scribe/extension/getPopupMountTarget.js";
3
- import { t as n } from "../../menus-BDXjZsFU.js";
3
+ import { t as n } from "../../menus-scgppp2C.js";
4
4
  import { Flex as r, IconButton as i } from "@radix-ui/themes";
5
5
  import { useCallback as a } from "react";
6
6
  import { jsx as o } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { CALLOUT_VARIANTS as e, CALLOUT_VARIANT_LABELS as t, isCalloutVariant as n } from "../Scribe/extension/callout.js";
2
- import { s as r } from "../../dist-BiognBi4.js";
2
+ import { s as r } from "../../dist-B0xwy1Q5.js";
3
3
  import { getPopupMountTarget as i } from "../Scribe/extension/getPopupMountTarget.js";
4
- import { t as a } from "../../menus-BDXjZsFU.js";
4
+ import { t as a } from "../../menus-scgppp2C.js";
5
5
  import { CalloutIcon as o, RemoveCalloutIcon as s } from "../../icons/CalloutIcon.js";
6
6
  import { calloutBubbleMenuPluginKey as c, getSelectionCalloutContext as l } from "./calloutBubbleMenuPlugin.js";
7
7
  import { getSelectionContextualMenuOwner as u } from "./contextualMenuOwner.js";
@@ -1,9 +1,9 @@
1
1
  import { getExternalLinkPreviewHostname as e } from "../Scribe/extension/external-link-preview/attributes.js";
2
- import { s as t } from "../../dist-BiognBi4.js";
2
+ import { s as t } from "../../dist-B0xwy1Q5.js";
3
3
  import { getPopupMountTarget as n } from "../Scribe/extension/getPopupMountTarget.js";
4
4
  import r from "./LinkEditor.js";
5
5
  import { consumeLinkBubbleMenuFocusTarget as i, getPlainLinkContextAtPosition as a, getSelectionLinkContext as o, hideLinkBubbleMenu as s, linkBubbleMenuPluginKey as c, showLinkBubbleMenu as l } from "./linkBubbleMenuPlugin.js";
6
- import { t as u } from "../../menus-BDXjZsFU.js";
6
+ import { t as u } from "../../menus-scgppp2C.js";
7
7
  import { getSelectionContextualMenuOwner as d } from "./contextualMenuOwner.js";
8
8
  import { getExternalLinkPreviewResolutionStatus as f } from "../Scribe/extension/external-link-preview/resolver.js";
9
9
  import { Box as p } from "@radix-ui/themes";
@@ -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 { Button as t, Flex as n } from "@radix-ui/themes";
3
3
  import { useCallback as r } from "react";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
- import { c as e, u as t } from "../../table-layout-BoDS50DR.js";
2
- import { s as n } from "../../dist-BiognBi4.js";
1
+ import { c as e, u as t } from "../../table-layout-iVolql5p.js";
2
+ import { s as n } from "../../dist-B0xwy1Q5.js";
3
3
  import { getPopupMountTarget as r } from "../Scribe/extension/getPopupMountTarget.js";
4
- import { t as i } from "../../menus-BDXjZsFU.js";
4
+ import { t as i } from "../../menus-scgppp2C.js";
5
5
  import { getSelectionTableContext as a, tableBubbleMenuPluginKey as o } from "./tableBubbleMenuPlugin.js";
6
6
  import { getSelectionContextualMenuOwner as s } from "./contextualMenuOwner.js";
7
7
  import c from "./TableLayoutOptions.js";
@@ -1,4 +1,4 @@
1
- import { c as e, n as t } from "../../table-layout-BoDS50DR.js";
1
+ import { c as e, n as t } from "../../table-layout-iVolql5p.js";
2
2
  import { getPopupMountTarget as n } from "../Scribe/extension/getPopupMountTarget.js";
3
3
  import { getSelectionTableContext as r } from "./tableBubbleMenuPlugin.js";
4
4
  import { NodeSelection as i } from "@tiptap/pm/state";
@@ -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-BU2USLV1.js";
1
+ import { t as e } from "../../../extension-BPeoqfHR.js";
2
2
  export { e as initExtensions };
@@ -1,5 +1,5 @@
1
- import { I as e } from "../../../dist-xjmWZ-oh.js";
2
- import { c as t, f as n, i as r, l as i, o as a, p as o, s, u as c } from "../../../table-layout-BoDS50DR.js";
1
+ import { z as e } from "../../../dist-DnVcys79.js";
2
+ import { c as t, f as n, i as r, l as i, o as a, p as o, s, u as c } from "../../../table-layout-iVolql5p.js";
3
3
  import { createStickyTableHeaderPlugin as l } from "./table-sticky-header.js";
4
4
  import { NodeSelection as u } from "@tiptap/pm/state";
5
5
  import { columnResizing as d, columnResizingPluginKey as f, tableEditing as p } from "@tiptap/pm/tables";
@@ -1,5 +1,5 @@
1
- import { n as e } from "../../../../dist-xjmWZ-oh.js";
2
- import { n as t } from "../../../../dist-Dk0fXvrc.js";
1
+ import { n as e } from "../../../../dist-DnVcys79.js";
2
+ import { n as t } from "../../../../dist-CDJRm4fL.js";
3
3
  import { PluginKey as n } from "@tiptap/pm/state";
4
4
  //#region lib/components/Scribe/extension/slashCommand/index.ts
5
5
  var r = new n("slashSuggestion"), i = e.create({
@@ -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 { SlashCommandList as r } from "./SlashCommandList.js";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../../table-layout-BoDS50DR.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../../table-layout-iVolql5p.js";
2
2
  export { u as DEFAULT_TABLE_MAX_HEIGHT, o as MAX_TABLE_MAX_HEIGHT, c as MIN_TABLE_MAX_HEIGHT, i as SCRIBE_TABLE_LAYOUTS, e as SCROLL_TABLE_COLUMN_WIDTH, s as ScribeTableView, l as normalizeTableLayout, t as normalizeTableMaxHeight, a as scrollTablePresentation, d as tableHasHeaderRow, n as tableHasStickyHeader, r as tableLayoutAttributes };
@@ -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 { Plugin as t, PluginKey as n } from "@tiptap/pm/state";
3
3
  //#region lib/components/Scribe/extension/tableOfContents.ts
4
4
  var r = "scribeTableOfContents", i = new n("scribeTableOfContents"), a = 10, o = (e) => e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "heading", s = (e, t) => {
@@ -1,10 +1,10 @@
1
- import { n as e, t } from "../../BarMenu-BGWT4Oyk.js";
2
- import { o as n, t as r } from "../../dist-BiognBi4.js";
1
+ import { n as e, t } from "../../BarMenu-BC8XoC6e.js";
2
+ import { o as n, t as r } from "../../dist-B0xwy1Q5.js";
3
3
  import i from "../Menu/CalloutBubbleMenu.js";
4
4
  import a from "../Menu/LinkBubbleMenu.js";
5
5
  import o from "../Menu/TableBubbleMenu.js";
6
6
  import { t as s } from "../../html-to-markdown-DF93it73.js";
7
- import { t as c } from "../../extension-BU2USLV1.js";
7
+ import { t as c } from "../../extension-BPeoqfHR.js";
8
8
  import { SuggestionItemType as l } from "./extension/slashCommand/items.js";
9
9
  import "./extension/tableOfContents.js";
10
10
  import "../../utils/index.js";