@firecms/editor 3.0.0-canary.136 → 3.0.0-canary.138
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/extensions/index.d.ts +1 -1
- package/dist/index.es.js +16 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +24 -18
|
@@ -6,5 +6,5 @@ import { TaskList } from "@tiptap/extension-task-list";
|
|
|
6
6
|
import { InputRule } from "@tiptap/core";
|
|
7
7
|
declare const PlaceholderExtension: import("@tiptap/core").Extension<import("@tiptap/extension-placeholder").PlaceholderOptions, any>;
|
|
8
8
|
declare const Horizontal: import("@tiptap/core").Node<import("@tiptap/extension-horizontal-rule").HorizontalRuleOptions, any>;
|
|
9
|
-
export { PlaceholderExtension as Placeholder, StarterKit, Horizontal as HorizontalRule, TiptapLink, TiptapImage, TaskItem, TaskList, InputRule
|
|
9
|
+
export { PlaceholderExtension as Placeholder, StarterKit, Horizontal as HorizontalRule, TiptapLink, TiptapImage, TaskItem, TaskList, InputRule };
|
|
10
10
|
export { getPrevText } from "../utils/utils";
|
package/dist/index.es.js
CHANGED
|
@@ -5,6 +5,10 @@ import TextStyle from "@tiptap/extension-text-style";
|
|
|
5
5
|
import { Color } from "@tiptap/extension-color";
|
|
6
6
|
import BulletList from "@tiptap/extension-bullet-list";
|
|
7
7
|
import Highlight from "@tiptap/extension-highlight";
|
|
8
|
+
import Table from "@tiptap/extension-table";
|
|
9
|
+
import TableCell from "@tiptap/extension-table-cell";
|
|
10
|
+
import TableHeader from "@tiptap/extension-table-header";
|
|
11
|
+
import TableRow from "@tiptap/extension-table-row";
|
|
8
12
|
import { useCurrentEditor, BubbleMenu, isNodeSelection, Node, mergeAttributes, ReactRenderer, EditorProvider } from "@tiptap/react";
|
|
9
13
|
import { Slot } from "@radix-ui/react-slot";
|
|
10
14
|
import { Popover, Button, ExpandMoreIcon, CheckIcon, TextFieldsIcon, LooksOneIcon, LooksTwoIcon, Looks3Icon, CheckBoxIcon, FormatListBulletedIcon, FormatListNumberedIcon, FormatQuoteIcon, CodeIcon, cls, focusedDisabled, DeleteIcon, FormatBoldIcon, FormatItalicIcon, FormatUnderlinedIcon, FormatStrikethroughIcon, defaultBorderMixin, AutoAwesomeIcon, ImageIcon, useInjectStyles, Separator } from "@firecms/ui";
|
|
@@ -488,7 +492,7 @@ const placeholder = PlaceholderExtension;
|
|
|
488
492
|
const tiptapLink = TiptapLink.configure({
|
|
489
493
|
HTMLAttributes: {
|
|
490
494
|
class: cls(
|
|
491
|
-
"text-gray-
|
|
495
|
+
"text-gray-700 dark:text-slate-200 underline underline-offset-[3px] hover:text-primary transition-colors cursor-pointer"
|
|
492
496
|
)
|
|
493
497
|
}
|
|
494
498
|
});
|
|
@@ -1571,7 +1575,13 @@ const FireCMSEditor = ({
|
|
|
1571
1575
|
aiController,
|
|
1572
1576
|
onDisabledAutocompleteClick
|
|
1573
1577
|
})
|
|
1574
|
-
})
|
|
1578
|
+
}),
|
|
1579
|
+
Table.configure({
|
|
1580
|
+
resizable: false
|
|
1581
|
+
}),
|
|
1582
|
+
TableRow,
|
|
1583
|
+
TableHeader,
|
|
1584
|
+
TableCell
|
|
1575
1585
|
], []);
|
|
1576
1586
|
return /* @__PURE__ */ jsx(
|
|
1577
1587
|
"div",
|
|
@@ -1768,6 +1778,10 @@ ul[data-type="taskList"] li[data-checked="true"] > div > p {
|
|
|
1768
1778
|
background-color: rgb(51 65 85); // 700
|
|
1769
1779
|
}
|
|
1770
1780
|
|
|
1781
|
+
.prose-base table p {
|
|
1782
|
+
margin: 0;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1771
1785
|
.drag-handle {
|
|
1772
1786
|
position: absolute;
|
|
1773
1787
|
opacity: 1;
|