@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.
- package/dist/{BarMenu-BGWT4Oyk.js → BarMenu-BC8XoC6e.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/Menu/BarMenu.js +1 -1
- package/dist/components/Menu/BubbleMenu.js +2 -2
- package/dist/components/Menu/CalloutBubbleMenu.js +2 -2
- package/dist/components/Menu/LinkBubbleMenu.js +2 -2
- package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
- package/dist/components/Menu/TableBubbleMenu.js +3 -3
- package/dist/components/Menu/TableHeightSettings.js +1 -1
- package/dist/components/Menu/linkBubbleMenuPlugin.js +1 -1
- package/dist/components/Scribe/extension/callout.js +7 -7
- package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
- package/dist/components/Scribe/extension/extension-link.js +1 -1
- package/dist/components/Scribe/extension/extension-markdown-paste.js +1 -1
- package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/commands.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/index.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/node-view.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/render-html.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/schema.js +1 -1
- package/dist/components/Scribe/extension/index.js +1 -1
- package/dist/components/Scribe/extension/resizable-table.js +2 -2
- package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
- package/dist/components/Scribe/extension/table-layout.js +1 -1
- package/dist/components/Scribe/extension/tableOfContents.js +1 -1
- package/dist/components/Scribe/index.js +3 -3
- package/dist/{dist-BiognBi4.js → dist-B0xwy1Q5.js} +175 -154
- package/dist/{dist-Dk0fXvrc.js → dist-CDJRm4fL.js} +2 -2
- package/dist/{dist-xjmWZ-oh.js → dist-DnVcys79.js} +632 -571
- package/dist/document-node-capabilities.js +1 -1
- package/dist/{extension-BU2USLV1.js → extension-BPeoqfHR.js} +2 -2
- package/dist/{extension-link-DmM_EJTn.js → extension-link-RvaqaDqr.js} +319 -294
- package/dist/{menus-BDXjZsFU.js → menus-scgppp2C.js} +25 -25
- package/dist/{schema-extensions-DyCk1Goa.js → schema-extensions-ITR9LEgX.js} +2025 -1898
- package/dist/schema-extensions.js +1 -1
- package/dist/schema.js +1 -1
- package/dist/{table-layout-BoDS50DR.js → table-layout-iVolql5p.js} +179 -128
- package/dist/utils/index.js +2 -2
- package/package.json +51 -51
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../BarMenu-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { c as e, u as t } from "../../table-layout-
|
|
2
|
-
import { s as n } from "../../dist-
|
|
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-
|
|
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-
|
|
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-
|
|
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 {
|
|
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 =
|
|
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
|
|
68
|
+
let t = c(e["data-variant"]);
|
|
69
69
|
return [
|
|
70
70
|
"aside",
|
|
71
|
-
|
|
71
|
+
n(this.options.HTMLAttributes, e, {
|
|
72
72
|
"data-type": this.name,
|
|
73
|
-
"data-variant":
|
|
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[
|
|
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: (
|
|
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-
|
|
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-
|
|
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-
|
|
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 { v as e } from "../../../../dist-
|
|
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-
|
|
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-
|
|
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 {
|
|
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-
|
|
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-
|
|
1
|
+
import { t as e } from "../../../extension-BPeoqfHR.js";
|
|
2
2
|
export { e as initExtensions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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-
|
|
2
|
-
import { n as t } from "../../../../dist-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { o as n, t as r } from "../../dist-
|
|
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-
|
|
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";
|