@edifice.io/react 2.1.1-develop-integration.20250218112719 → 2.1.1-develop-b2school.20250219164321
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/components/Dropdown/DropdownTrigger.js +5 -1
- package/dist/components/List/List.d.ts +9 -1
- package/dist/components/List/List.js +9 -9
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +3 -1
- package/dist/editor.js +24 -24
- package/dist/hooks/useCheckable/useCheckable.js +1 -1
- package/dist/hooks/useConversation/useConversation.d.ts +1 -1
- package/dist/hooks/useConversation/useConversation.js +13 -17
- package/dist/icons.js +136 -134
- package/dist/modules/editor/components/Editor/Editor.d.ts +3 -1
- package/dist/modules/editor/components/Editor/Editor.js +7 -8
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +1 -4
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +4 -19
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/index.d.ts +2 -1
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.d.ts +8 -0
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.js +28 -0
- package/dist/modules/editor/components/Renderer/index.d.ts +2 -1
- package/dist/modules/editor/hooks/index.d.ts +0 -2
- package/dist/modules/editor/hooks/useTipTapEditor.d.ts +6 -2
- package/dist/modules/editor/hooks/useTipTapEditor.js +2 -2
- package/dist/modules/icons/components/IconFolderAdd.d.ts +7 -0
- package/dist/modules/icons/components/IconFolderAdd.js +13 -0
- package/dist/modules/icons/components/IconReadMail.d.ts +7 -0
- package/dist/modules/icons/components/IconReadMail.js +16 -0
- package/dist/modules/icons/components/IconUndoAll.d.ts +7 -0
- package/dist/modules/icons/components/IconUndoAll.js +14 -0
- package/dist/modules/icons/components/IconUnreadMail.d.ts +7 -0
- package/dist/modules/icons/components/IconUnreadMail.js +16 -0
- package/dist/modules/icons/components/index.d.ts +4 -3
- package/package.json +6 -6
- package/dist/modules/editor/components/Editor/CantooModal.d.ts +0 -2
- package/dist/modules/editor/components/Editor/CantooModal.js +0 -13
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.d.ts +0 -9
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.js +0 -56
- package/dist/modules/editor/hooks/useCantooAdaptTextBox.d.ts +0 -14
- package/dist/modules/editor/hooks/useCantooAdaptTextBox.js +0 -14
- package/dist/modules/editor/hooks/useCantooEditor.d.ts +0 -9
- package/dist/modules/editor/hooks/useCantooEditor.js +0 -51
- package/dist/modules/icons/components/IconCantoo.d.ts +0 -7
- package/dist/modules/icons/components/IconCantoo.js +0 -23
- package/dist/modules/icons/components/IconMicOff.d.ts +0 -7
- package/dist/modules/icons/components/IconMicOff.js +0 -12
- package/dist/modules/icons/components/IconTextToSpeechOff.d.ts +0 -7
- package/dist/modules/icons/components/IconTextToSpeechOff.js +0 -12
|
@@ -3,6 +3,7 @@ import { forwardRef } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import SvgIconRafterUp from "../../modules/icons/components/IconRafterUp.js";
|
|
5
5
|
import { useDropdownContext } from "./DropdownContext.js";
|
|
6
|
+
import Badge from "../Badge/Badge.js";
|
|
6
7
|
const DropdownTrigger = /* @__PURE__ */ forwardRef(({
|
|
7
8
|
label,
|
|
8
9
|
icon,
|
|
@@ -26,7 +27,10 @@ const DropdownTrigger = /* @__PURE__ */ forwardRef(({
|
|
|
26
27
|
return /* @__PURE__ */ jsxs("button", { ref: forwardRef2, type: "button", disabled, ...mergedProps, children: [
|
|
27
28
|
icon,
|
|
28
29
|
label,
|
|
29
|
-
badgeContent ? /* @__PURE__ */ jsx(
|
|
30
|
+
badgeContent ? /* @__PURE__ */ jsx(Badge, { variant: {
|
|
31
|
+
level: "info",
|
|
32
|
+
type: "notification"
|
|
33
|
+
}, children: badgeContent }) : !hideCarret && /* @__PURE__ */ jsx(SvgIconRafterUp, { width: 16, height: 16, className: "dropdown-toggle-caret" })
|
|
30
34
|
] });
|
|
31
35
|
});
|
|
32
36
|
export {
|
|
@@ -5,6 +5,10 @@ export type ListProps<T> = {
|
|
|
5
5
|
* Toolbar data items
|
|
6
6
|
*/
|
|
7
7
|
items?: ToolbarItem[];
|
|
8
|
+
/**
|
|
9
|
+
* Checkable list
|
|
10
|
+
*/
|
|
11
|
+
isCheckable?: boolean;
|
|
8
12
|
/**
|
|
9
13
|
* Generic data
|
|
10
14
|
*/
|
|
@@ -17,7 +21,11 @@ export type ListProps<T> = {
|
|
|
17
21
|
* Callback to get selected ids
|
|
18
22
|
*/
|
|
19
23
|
onSelectedItems?: (selectedIds: string[]) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Custom class name
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
20
28
|
};
|
|
21
29
|
export declare const List: <T extends {
|
|
22
30
|
_id: string;
|
|
23
|
-
}>({ items, data, renderNode, onSelectedItems, }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
}>({ items, isCheckable, data, renderNode, onSelectedItems, className, }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,9 +7,11 @@ import Checkbox from "../Checkbox/Checkbox.js";
|
|
|
7
7
|
import { Toolbar } from "../Toolbar/Toolbar.js";
|
|
8
8
|
const List = ({
|
|
9
9
|
items,
|
|
10
|
+
isCheckable = !1,
|
|
10
11
|
data,
|
|
11
12
|
renderNode,
|
|
12
|
-
onSelectedItems
|
|
13
|
+
onSelectedItems,
|
|
14
|
+
className
|
|
13
15
|
}) => {
|
|
14
16
|
const {
|
|
15
17
|
selectedItems,
|
|
@@ -21,11 +23,9 @@ const List = ({
|
|
|
21
23
|
return useEffect(() => {
|
|
22
24
|
selectedItems && (onSelectedItems == null || onSelectedItems(selectedItems));
|
|
23
25
|
}, [onSelectedItems, selectedItems]), /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24
|
-
items && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
25
|
-
/* @__PURE__ */ jsx("div", { className: clsx("d-flex align-items-center gap-8", {
|
|
26
|
-
"
|
|
27
|
-
}), children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
|
-
/* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center gap-8", children: [
|
|
26
|
+
(items || isCheckable) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
+
/* @__PURE__ */ jsx("div", { className: clsx("list-header d-flex align-items-center gap-8 px-12", className), children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center gap-8 py-12", children: [
|
|
29
29
|
/* @__PURE__ */ jsx(Checkbox, { checked: allItemsSelected, indeterminate: isIndeterminate, onChange: () => handleOnSelectAllItems(allItemsSelected) }),
|
|
30
30
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
31
31
|
"(",
|
|
@@ -33,15 +33,15 @@ const List = ({
|
|
|
33
33
|
")"
|
|
34
34
|
] })
|
|
35
35
|
] }),
|
|
36
|
-
/* @__PURE__ */ jsx(Toolbar, { items, isBlock: !0, align: "left", variant: "no-shadow", className: clsx("gap-4 py-4", {
|
|
36
|
+
items && /* @__PURE__ */ jsx(Toolbar, { items, isBlock: !0, align: "left", variant: "no-shadow", className: clsx("gap-4 py-4", {
|
|
37
37
|
"px-0 ms-auto": !isDesktopDevice
|
|
38
38
|
}) })
|
|
39
39
|
] }) }),
|
|
40
40
|
/* @__PURE__ */ jsx("div", { className: "border-top" })
|
|
41
41
|
] }),
|
|
42
42
|
/* @__PURE__ */ jsx("div", { className: "mt-8", children: data == null ? void 0 : data.map((node) => {
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: renderNode(node,
|
|
43
|
+
const checked = selectedItems.includes(node._id);
|
|
44
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: renderNode(node, /* @__PURE__ */ jsx(Checkbox, { checked, onChange: () => handleOnSelectItem(node._id), onClick: (event) => event.stopPropagation() }), checked) }, node._id);
|
|
45
45
|
}) })
|
|
46
46
|
] });
|
|
47
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { Size } from '../../types';
|
|
3
|
-
export interface BaseProps {
|
|
3
|
+
export interface BaseProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
4
4
|
/**
|
|
5
5
|
* String or Template literal with React i18next namespace
|
|
6
6
|
*/
|
|
@@ -24,10 +24,12 @@ const SearchBar = ({
|
|
|
24
24
|
"ps-48": isVariant
|
|
25
25
|
}), handleClick = () => {
|
|
26
26
|
onClick == null || onClick();
|
|
27
|
+
}, handleKeyDown = (e) => {
|
|
28
|
+
e.key === "Enter" && (e.preventDefault(), handleClick());
|
|
27
29
|
};
|
|
28
30
|
return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, children: [
|
|
29
31
|
isVariant && /* @__PURE__ */ jsx("div", { className: "position-absolute z-1 top-50 start-0 translate-middle-y border-0 ps-12 bg-transparent", children: /* @__PURE__ */ jsx(SvgIconSearch, {}) }),
|
|
30
|
-
/* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, disabled, ...restProps }),
|
|
32
|
+
/* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, disabled, onKeyDown: handleKeyDown, ...restProps }),
|
|
31
33
|
!isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(SvgIconSearch, {}), className: "border-start-0", onClick: handleClick })
|
|
32
34
|
] });
|
|
33
35
|
};
|
package/dist/editor.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
2
2
|
import { default as default2 } from "./modules/editor/components/Editor/Editor.js";
|
|
3
3
|
import { default as default3 } from "./modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js";
|
|
4
|
-
import { default as default4 } from "./modules/editor/components/NodeView/
|
|
5
|
-
import { default as default5 } from "./modules/editor/components/NodeView/
|
|
6
|
-
import { default as default6 } from "./modules/editor/components/NodeView/
|
|
7
|
-
import { default as default7 } from "./modules/editor/components/NodeView/
|
|
8
|
-
import { default as default8 } from "./modules/editor/components/NodeView/
|
|
9
|
-
import { default as default9 } from "./modules/editor/components/
|
|
4
|
+
import { default as default4 } from "./modules/editor/components/NodeView/AttachmentNodeView.js";
|
|
5
|
+
import { default as default5 } from "./modules/editor/components/NodeView/AudioNodeView.js";
|
|
6
|
+
import { default as default6 } from "./modules/editor/components/NodeView/ConversationHistoryNodeView.js";
|
|
7
|
+
import { default as default7 } from "./modules/editor/components/NodeView/ImageNodeView.js";
|
|
8
|
+
import { default as default8 } from "./modules/editor/components/NodeView/LinkerNodeView.js";
|
|
9
|
+
import { default as default9 } from "./modules/editor/components/NodeView/VideoNodeView.js";
|
|
10
10
|
import { default as default10 } from "./modules/editor/components/Renderer/AttachmentRenderer.js";
|
|
11
|
-
import { default as default11 } from "./modules/editor/components/Renderer/
|
|
12
|
-
import { default as default12 } from "./modules/editor/components/Renderer/
|
|
13
|
-
import { default as default13 } from "./modules/editor/components/
|
|
14
|
-
import { default as default14 } from "./modules/editor/components/
|
|
11
|
+
import { default as default11 } from "./modules/editor/components/Renderer/AudioRenderer.js";
|
|
12
|
+
import { default as default12 } from "./modules/editor/components/Renderer/ConversationHistoryRenderer.js";
|
|
13
|
+
import { default as default13 } from "./modules/editor/components/Renderer/LinkerRenderer.js";
|
|
14
|
+
import { default as default14 } from "./modules/editor/components/Renderer/MediaRenderer.js";
|
|
15
|
+
import { default as default15 } from "./modules/editor/components/Toolbar/TableToolbar.js";
|
|
16
|
+
import { default as default16 } from "./modules/editor/components/Toolbar/LinkToolbar.js";
|
|
15
17
|
import { EditorToolbar } from "./modules/editor/components/EditorToolbar/EditorToolbar.js";
|
|
16
18
|
import { useActionOptions } from "./modules/editor/hooks/useActionOptions.js";
|
|
17
19
|
import { useCommentEditor } from "./modules/editor/hooks/useCommentEditor.js";
|
|
@@ -25,28 +27,26 @@ import { useResizeMedia } from "./modules/editor/hooks/useResizeMedia.js";
|
|
|
25
27
|
import { useSpeechRecognition } from "./modules/editor/hooks/useSpeechRecognition.js";
|
|
26
28
|
import { useSpeechSynthetisis } from "./modules/editor/hooks/useSpeechSynthetisis.js";
|
|
27
29
|
import { useTipTapEditor } from "./modules/editor/hooks/useTipTapEditor.js";
|
|
28
|
-
import { useCantooEditor } from "./modules/editor/hooks/useCantooEditor.js";
|
|
29
|
-
import { useCantooAdaptTextBox } from "./modules/editor/hooks/useCantooAdaptTextBox.js";
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
default4 as AttachmentNodeView,
|
|
32
32
|
default10 as AttachmentRenderer,
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
default5 as AudioNodeView,
|
|
34
|
+
default11 as AudioRenderer,
|
|
35
35
|
default3 as BubbleMenuEditImage,
|
|
36
|
+
default6 as ConversationHistoryNodeView,
|
|
37
|
+
default12 as ConversationHistoryRenderer,
|
|
36
38
|
default2 as Editor,
|
|
37
39
|
EditorContent,
|
|
38
40
|
EditorContext,
|
|
39
41
|
EditorToolbar,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
default7 as ImageNodeView,
|
|
43
|
+
default16 as LinkToolbar,
|
|
44
|
+
default8 as LinkerNodeView,
|
|
45
|
+
default13 as LinkerRenderer,
|
|
46
|
+
default14 as MediaRenderer,
|
|
47
|
+
default15 as TableToolbar,
|
|
48
|
+
default9 as VideoNodeView,
|
|
47
49
|
useActionOptions,
|
|
48
|
-
useCantooAdaptTextBox,
|
|
49
|
-
useCantooEditor,
|
|
50
50
|
useCommentEditor,
|
|
51
51
|
useEditor,
|
|
52
52
|
useEditorContext,
|
|
@@ -7,7 +7,7 @@ const useCheckable = (data) => {
|
|
|
7
7
|
});
|
|
8
8
|
}, handleOnSelectAllItems = (deselect) => {
|
|
9
9
|
setSelectedItems(() => deselect ? [] : (data == null ? void 0 : data.map((item) => item._id)) ?? []);
|
|
10
|
-
}, allItemsSelected = (selectedItems == null ? void 0 : selectedItems.length) === (data == null ? void 0 : data.length), isIndeterminate = data ? (selectedItems == null ? void 0 : selectedItems.length) > 0 && (selectedItems == null ? void 0 : selectedItems.length) < (data == null ? void 0 : data.length) : !1;
|
|
10
|
+
}, allItemsSelected = (selectedItems == null ? void 0 : selectedItems.length) === (data == null ? void 0 : data.length) && (data == null ? void 0 : data.length) > 0, isIndeterminate = data ? (selectedItems == null ? void 0 : selectedItems.length) > 0 && (selectedItems == null ? void 0 : selectedItems.length) < (data == null ? void 0 : data.length) : !1;
|
|
11
11
|
return {
|
|
12
12
|
selectedItems,
|
|
13
13
|
allItemsSelected,
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { odeServices } from "@edifice.io/client";
|
|
3
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
4
|
import useHasWorkflow from "../useHasWorkflow/useHasWorkflow.js";
|
|
4
5
|
const useConversation = () => {
|
|
5
|
-
const zimbraWorkflow = useHasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view"), zimbraPreauth = useHasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth"), [
|
|
6
|
+
const zimbraWorkflow = useHasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view"), zimbraPreauth = useHasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth"), [msgLink, setMsgLink] = useState(""), queryParams = {
|
|
6
7
|
unread: !0,
|
|
7
8
|
_: (/* @__PURE__ */ new Date()).getTime()
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
console.error(error), setMessages(0);
|
|
19
|
-
}
|
|
20
|
-
}, goToMessagerie = async () => {
|
|
9
|
+
}, {
|
|
10
|
+
data: messages
|
|
11
|
+
} = useQuery({
|
|
12
|
+
queryKey: ["conversation-navbar-count"],
|
|
13
|
+
queryFn: async () => await odeServices.http().get(zimbraWorkflow ? "/zimbra/count/INBOX" : "/conversation/count/INBOX", {
|
|
14
|
+
queryParams
|
|
15
|
+
}),
|
|
16
|
+
staleTime: 5 * 60 * 1e3
|
|
17
|
+
// 5 minutes
|
|
18
|
+
}), goToMessagerie = async () => {
|
|
21
19
|
const defaultLink = "/zimbra/zimbra";
|
|
22
20
|
try {
|
|
23
21
|
const {
|
|
@@ -29,11 +27,9 @@ const useConversation = () => {
|
|
|
29
27
|
}
|
|
30
28
|
};
|
|
31
29
|
return useEffect(() => {
|
|
32
|
-
refreshMails();
|
|
33
|
-
}, []), useEffect(() => {
|
|
34
30
|
goToMessagerie();
|
|
35
31
|
}, []), {
|
|
36
|
-
messages,
|
|
32
|
+
messages: messages ? messages.count : 0,
|
|
37
33
|
msgLink,
|
|
38
34
|
zimbraWorkflow
|
|
39
35
|
};
|
package/dist/icons.js
CHANGED
|
@@ -20,31 +20,31 @@ import { default as default20 } from "./modules/icons/components/IconBurgerMenu.
|
|
|
20
20
|
import { default as default21 } from "./modules/icons/components/IconCalendarLight.js";
|
|
21
21
|
import { default as default22 } from "./modules/icons/components/IconCalendar.js";
|
|
22
22
|
import { default as default23 } from "./modules/icons/components/IconCamera.js";
|
|
23
|
-
import { default as default24 } from "./modules/icons/components/
|
|
24
|
-
import { default as default25 } from "./modules/icons/components/
|
|
25
|
-
import { default as default26 } from "./modules/icons/components/
|
|
26
|
-
import { default as default27 } from "./modules/icons/components/
|
|
27
|
-
import { default as default28 } from "./modules/icons/components/
|
|
28
|
-
import { default as default29 } from "./modules/icons/components/
|
|
29
|
-
import { default as default30 } from "./modules/icons/components/
|
|
30
|
-
import { default as default31 } from "./modules/icons/components/
|
|
31
|
-
import { default as default32 } from "./modules/icons/components/
|
|
32
|
-
import { default as default33 } from "./modules/icons/components/
|
|
33
|
-
import { default as default34 } from "./modules/icons/components/
|
|
34
|
-
import { default as default35 } from "./modules/icons/components/
|
|
35
|
-
import { default as default36 } from "./modules/icons/components/
|
|
36
|
-
import { default as default37 } from "./modules/icons/components/
|
|
37
|
-
import { default as default38 } from "./modules/icons/components/
|
|
38
|
-
import { default as default39 } from "./modules/icons/components/
|
|
39
|
-
import { default as default40 } from "./modules/icons/components/
|
|
40
|
-
import { default as default41 } from "./modules/icons/components/
|
|
41
|
-
import { default as default42 } from "./modules/icons/components/
|
|
42
|
-
import { default as default43 } from "./modules/icons/components/
|
|
43
|
-
import { default as default44 } from "./modules/icons/components/
|
|
44
|
-
import { default as default45 } from "./modules/icons/components/
|
|
45
|
-
import { default as default46 } from "./modules/icons/components/
|
|
46
|
-
import { default as default47 } from "./modules/icons/components/
|
|
47
|
-
import { default as default48 } from "./modules/icons/components/
|
|
23
|
+
import { default as default24 } from "./modules/icons/components/IconCenter.js";
|
|
24
|
+
import { default as default25 } from "./modules/icons/components/IconCheck.js";
|
|
25
|
+
import { default as default26 } from "./modules/icons/components/IconChecklist.js";
|
|
26
|
+
import { default as default27 } from "./modules/icons/components/IconClock.js";
|
|
27
|
+
import { default as default28 } from "./modules/icons/components/IconCloseFullScreen.js";
|
|
28
|
+
import { default as default29 } from "./modules/icons/components/IconClose.js";
|
|
29
|
+
import { default as default30 } from "./modules/icons/components/IconCode.js";
|
|
30
|
+
import { default as default31 } from "./modules/icons/components/IconCopy.js";
|
|
31
|
+
import { default as default32 } from "./modules/icons/components/IconCrop.js";
|
|
32
|
+
import { default as default33 } from "./modules/icons/components/IconCut.js";
|
|
33
|
+
import { default as default34 } from "./modules/icons/components/IconDeleteColor.js";
|
|
34
|
+
import { default as default35 } from "./modules/icons/components/IconDeleteColumnHighlight.js";
|
|
35
|
+
import { default as default36 } from "./modules/icons/components/IconDeleteColumn.js";
|
|
36
|
+
import { default as default37 } from "./modules/icons/components/IconDeleteRowHighlight.js";
|
|
37
|
+
import { default as default38 } from "./modules/icons/components/IconDeleteRow.js";
|
|
38
|
+
import { default as default39 } from "./modules/icons/components/IconDelete.js";
|
|
39
|
+
import { default as default40 } from "./modules/icons/components/IconDepositeInbox.js";
|
|
40
|
+
import { default as default41 } from "./modules/icons/components/IconDownload.js";
|
|
41
|
+
import { default as default42 } from "./modules/icons/components/IconEdit.js";
|
|
42
|
+
import { default as default43 } from "./modules/icons/components/IconError.js";
|
|
43
|
+
import { default as default44 } from "./modules/icons/components/IconExternalLink.js";
|
|
44
|
+
import { default as default45 } from "./modules/icons/components/IconFiles.js";
|
|
45
|
+
import { default as default46 } from "./modules/icons/components/IconFilter.js";
|
|
46
|
+
import { default as default47 } from "./modules/icons/components/IconFlag.js";
|
|
47
|
+
import { default as default48 } from "./modules/icons/components/IconFolderAdd.js";
|
|
48
48
|
import { default as default49 } from "./modules/icons/components/IconFolderMove.js";
|
|
49
49
|
import { default as default50 } from "./modules/icons/components/IconFolder.js";
|
|
50
50
|
import { default as default51 } from "./modules/icons/components/IconForgoing.js";
|
|
@@ -69,30 +69,30 @@ import { default as default69 } from "./modules/icons/components/IconLock.js";
|
|
|
69
69
|
import { default as default70 } from "./modules/icons/components/IconMail.js";
|
|
70
70
|
import { default as default71 } from "./modules/icons/components/IconMergeCells.js";
|
|
71
71
|
import { default as default72 } from "./modules/icons/components/IconMessageInfo.js";
|
|
72
|
-
import { default as default73 } from "./modules/icons/components/
|
|
73
|
-
import { default as default74 } from "./modules/icons/components/
|
|
74
|
-
import { default as default75 } from "./modules/icons/components/
|
|
75
|
-
import { default as default76 } from "./modules/icons/components/
|
|
76
|
-
import { default as default77 } from "./modules/icons/components/
|
|
77
|
-
import { default as default78 } from "./modules/icons/components/
|
|
78
|
-
import { default as default79 } from "./modules/icons/components/
|
|
79
|
-
import { default as default80 } from "./modules/icons/components/
|
|
80
|
-
import { default as default81 } from "./modules/icons/components/
|
|
81
|
-
import { default as default82 } from "./modules/icons/components/
|
|
82
|
-
import { default as default83 } from "./modules/icons/components/
|
|
83
|
-
import { default as default84 } from "./modules/icons/components/
|
|
84
|
-
import { default as default85 } from "./modules/icons/components/
|
|
85
|
-
import { default as default86 } from "./modules/icons/components/
|
|
86
|
-
import { default as default87 } from "./modules/icons/components/
|
|
87
|
-
import { default as default88 } from "./modules/icons/components/
|
|
88
|
-
import { default as default89 } from "./modules/icons/components/
|
|
89
|
-
import { default as default90 } from "./modules/icons/components/
|
|
90
|
-
import { default as default91 } from "./modules/icons/components/
|
|
91
|
-
import { default as default92 } from "./modules/icons/components/
|
|
92
|
-
import { default as default93 } from "./modules/icons/components/
|
|
93
|
-
import { default as default94 } from "./modules/icons/components/
|
|
94
|
-
import { default as default95 } from "./modules/icons/components/
|
|
95
|
-
import { default as default96 } from "./modules/icons/components/
|
|
72
|
+
import { default as default73 } from "./modules/icons/components/IconMic.js";
|
|
73
|
+
import { default as default74 } from "./modules/icons/components/IconMinus.js";
|
|
74
|
+
import { default as default75 } from "./modules/icons/components/IconMove.js";
|
|
75
|
+
import { default as default76 } from "./modules/icons/components/IconNoColors.js";
|
|
76
|
+
import { default as default77 } from "./modules/icons/components/IconOptions.js";
|
|
77
|
+
import { default as default78 } from "./modules/icons/components/IconOrderedList.js";
|
|
78
|
+
import { default as default79 } from "./modules/icons/components/IconPaperclip.js";
|
|
79
|
+
import { default as default80 } from "./modules/icons/components/IconPause.js";
|
|
80
|
+
import { default as default81 } from "./modules/icons/components/IconPinOff.js";
|
|
81
|
+
import { default as default82 } from "./modules/icons/components/IconPinOn.js";
|
|
82
|
+
import { default as default83 } from "./modules/icons/components/IconPlaceholder.js";
|
|
83
|
+
import { default as default84 } from "./modules/icons/components/IconPlayFilled.js";
|
|
84
|
+
import { default as default85 } from "./modules/icons/components/IconPlay.js";
|
|
85
|
+
import { default as default86 } from "./modules/icons/components/IconPlus.js";
|
|
86
|
+
import { default as default87 } from "./modules/icons/components/IconPointerDefault.js";
|
|
87
|
+
import { default as default88 } from "./modules/icons/components/IconPointerHand.js";
|
|
88
|
+
import { default as default89 } from "./modules/icons/components/IconPrint.js";
|
|
89
|
+
import { default as default90 } from "./modules/icons/components/IconQuestion.js";
|
|
90
|
+
import { default as default91 } from "./modules/icons/components/IconRafterDown.js";
|
|
91
|
+
import { default as default92 } from "./modules/icons/components/IconRafterLeft.js";
|
|
92
|
+
import { default as default93 } from "./modules/icons/components/IconRafterRight.js";
|
|
93
|
+
import { default as default94 } from "./modules/icons/components/IconRafterUp.js";
|
|
94
|
+
import { default as default95 } from "./modules/icons/components/IconReaction.js";
|
|
95
|
+
import { default as default96 } from "./modules/icons/components/IconReadMail.js";
|
|
96
96
|
import { default as default97 } from "./modules/icons/components/IconRecordPause.js";
|
|
97
97
|
import { default as default98 } from "./modules/icons/components/IconRecordStop.js";
|
|
98
98
|
import { default as default99 } from "./modules/icons/components/IconRecordVideo.js";
|
|
@@ -129,27 +129,28 @@ import { default as default129 } from "./modules/icons/components/IconTextHighli
|
|
|
129
129
|
import { default as default130 } from "./modules/icons/components/IconTextItalic.js";
|
|
130
130
|
import { default as default131 } from "./modules/icons/components/IconTextPage.js";
|
|
131
131
|
import { default as default132 } from "./modules/icons/components/IconTextSize.js";
|
|
132
|
-
import { default as default133 } from "./modules/icons/components/
|
|
133
|
-
import { default as default134 } from "./modules/icons/components/
|
|
134
|
-
import { default as default135 } from "./modules/icons/components/
|
|
135
|
-
import { default as default136 } from "./modules/icons/components/
|
|
136
|
-
import { default as default137 } from "./modules/icons/components/
|
|
137
|
-
import { default as default138 } from "./modules/icons/components/
|
|
138
|
-
import { default as default139 } from "./modules/icons/components/
|
|
132
|
+
import { default as default133 } from "./modules/icons/components/IconTextToSpeech.js";
|
|
133
|
+
import { default as default134 } from "./modules/icons/components/IconTextTypo.js";
|
|
134
|
+
import { default as default135 } from "./modules/icons/components/IconTextUnderline.js";
|
|
135
|
+
import { default as default136 } from "./modules/icons/components/IconTextVanilla.js";
|
|
136
|
+
import { default as default137 } from "./modules/icons/components/IconTool.js";
|
|
137
|
+
import { default as default138 } from "./modules/icons/components/IconTrendingUp.js";
|
|
138
|
+
import { default as default139 } from "./modules/icons/components/IconUndoAll.js";
|
|
139
139
|
import { default as default140 } from "./modules/icons/components/IconUndo.js";
|
|
140
140
|
import { default as default141 } from "./modules/icons/components/IconUnlink.js";
|
|
141
141
|
import { default as default142 } from "./modules/icons/components/IconUnlock.js";
|
|
142
|
-
import { default as default143 } from "./modules/icons/components/
|
|
143
|
-
import { default as default144 } from "./modules/icons/components/
|
|
144
|
-
import { default as default145 } from "./modules/icons/components/
|
|
145
|
-
import { default as default146 } from "./modules/icons/components/
|
|
146
|
-
import { default as default147 } from "./modules/icons/components/
|
|
147
|
-
import { default as default148 } from "./modules/icons/components/
|
|
148
|
-
import { default as default149 } from "./modules/icons/components/
|
|
149
|
-
import { default as default150 } from "./modules/icons/components/
|
|
150
|
-
import { default as default151 } from "./modules/icons/components/
|
|
151
|
-
import { default as default152 } from "./modules/icons/components/
|
|
152
|
-
import { default as default153 } from "./modules/icons/components/
|
|
142
|
+
import { default as default143 } from "./modules/icons/components/IconUnreadMail.js";
|
|
143
|
+
import { default as default144 } from "./modules/icons/components/IconUpload.js";
|
|
144
|
+
import { default as default145 } from "./modules/icons/components/IconUserSearch.js";
|
|
145
|
+
import { default as default146 } from "./modules/icons/components/IconUser.js";
|
|
146
|
+
import { default as default147 } from "./modules/icons/components/IconUsers.js";
|
|
147
|
+
import { default as default148 } from "./modules/icons/components/IconVideo.js";
|
|
148
|
+
import { default as default149 } from "./modules/icons/components/IconViewCalendar.js";
|
|
149
|
+
import { default as default150 } from "./modules/icons/components/IconViewList.js";
|
|
150
|
+
import { default as default151 } from "./modules/icons/components/IconWand.js";
|
|
151
|
+
import { default as default152 } from "./modules/icons/components/IconWrite.js";
|
|
152
|
+
import { default as default153 } from "./modules/icons/components/IconZoomIn.js";
|
|
153
|
+
import { default as default154 } from "./modules/icons/components/IconZoomOut.js";
|
|
153
154
|
export {
|
|
154
155
|
default3 as IconAdd,
|
|
155
156
|
default2 as IconAddUser,
|
|
@@ -173,32 +174,32 @@ export {
|
|
|
173
174
|
default22 as IconCalendar,
|
|
174
175
|
default21 as IconCalendarLight,
|
|
175
176
|
default23 as IconCamera,
|
|
176
|
-
default24 as
|
|
177
|
-
default25 as
|
|
178
|
-
default26 as
|
|
179
|
-
default27 as
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
default31 as
|
|
184
|
-
default32 as
|
|
185
|
-
default33 as
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
default41 as
|
|
194
|
-
default42 as
|
|
195
|
-
default43 as
|
|
196
|
-
default44 as
|
|
197
|
-
default45 as
|
|
198
|
-
default46 as
|
|
199
|
-
default47 as
|
|
200
|
-
default48 as IconFlag,
|
|
177
|
+
default24 as IconCenter,
|
|
178
|
+
default25 as IconCheck,
|
|
179
|
+
default26 as IconChecklist,
|
|
180
|
+
default27 as IconClock,
|
|
181
|
+
default29 as IconClose,
|
|
182
|
+
default28 as IconCloseFullScreen,
|
|
183
|
+
default30 as IconCode,
|
|
184
|
+
default31 as IconCopy,
|
|
185
|
+
default32 as IconCrop,
|
|
186
|
+
default33 as IconCut,
|
|
187
|
+
default39 as IconDelete,
|
|
188
|
+
default34 as IconDeleteColor,
|
|
189
|
+
default36 as IconDeleteColumn,
|
|
190
|
+
default35 as IconDeleteColumnHighlight,
|
|
191
|
+
default38 as IconDeleteRow,
|
|
192
|
+
default37 as IconDeleteRowHighlight,
|
|
193
|
+
default40 as IconDepositeInbox,
|
|
194
|
+
default41 as IconDownload,
|
|
195
|
+
default42 as IconEdit,
|
|
196
|
+
default43 as IconError,
|
|
197
|
+
default44 as IconExternalLink,
|
|
198
|
+
default45 as IconFiles,
|
|
199
|
+
default46 as IconFilter,
|
|
200
|
+
default47 as IconFlag,
|
|
201
201
|
default50 as IconFolder,
|
|
202
|
+
default48 as IconFolderAdd,
|
|
202
203
|
default49 as IconFolderMove,
|
|
203
204
|
default51 as IconForgoing,
|
|
204
205
|
default52 as IconFullScreen,
|
|
@@ -222,30 +223,30 @@ export {
|
|
|
222
223
|
default70 as IconMail,
|
|
223
224
|
default71 as IconMergeCells,
|
|
224
225
|
default72 as IconMessageInfo,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
default75 as
|
|
228
|
-
default76 as
|
|
229
|
-
default77 as
|
|
230
|
-
default78 as
|
|
231
|
-
default79 as
|
|
232
|
-
default80 as
|
|
233
|
-
default81 as
|
|
234
|
-
default82 as
|
|
235
|
-
default83 as
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
default87 as
|
|
240
|
-
default88 as
|
|
241
|
-
default89 as
|
|
242
|
-
default90 as
|
|
243
|
-
default91 as
|
|
244
|
-
default92 as
|
|
245
|
-
default93 as
|
|
246
|
-
default94 as
|
|
247
|
-
default95 as
|
|
248
|
-
default96 as
|
|
226
|
+
default73 as IconMic,
|
|
227
|
+
default74 as IconMinus,
|
|
228
|
+
default75 as IconMove,
|
|
229
|
+
default76 as IconNoColors,
|
|
230
|
+
default77 as IconOptions,
|
|
231
|
+
default78 as IconOrderedList,
|
|
232
|
+
default79 as IconPaperclip,
|
|
233
|
+
default80 as IconPause,
|
|
234
|
+
default81 as IconPinOff,
|
|
235
|
+
default82 as IconPinOn,
|
|
236
|
+
default83 as IconPlaceholder,
|
|
237
|
+
default85 as IconPlay,
|
|
238
|
+
default84 as IconPlayFilled,
|
|
239
|
+
default86 as IconPlus,
|
|
240
|
+
default87 as IconPointerDefault,
|
|
241
|
+
default88 as IconPointerHand,
|
|
242
|
+
default89 as IconPrint,
|
|
243
|
+
default90 as IconQuestion,
|
|
244
|
+
default91 as IconRafterDown,
|
|
245
|
+
default92 as IconRafterLeft,
|
|
246
|
+
default93 as IconRafterRight,
|
|
247
|
+
default94 as IconRafterUp,
|
|
248
|
+
default95 as IconReaction,
|
|
249
|
+
default96 as IconReadMail,
|
|
249
250
|
default100 as IconRecord,
|
|
250
251
|
default97 as IconRecordPause,
|
|
251
252
|
default98 as IconRecordStop,
|
|
@@ -282,25 +283,26 @@ export {
|
|
|
282
283
|
default130 as IconTextItalic,
|
|
283
284
|
default131 as IconTextPage,
|
|
284
285
|
default132 as IconTextSize,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
default135 as
|
|
288
|
-
default136 as
|
|
289
|
-
default137 as
|
|
290
|
-
default138 as
|
|
291
|
-
default139 as IconTrendingUp,
|
|
286
|
+
default133 as IconTextToSpeech,
|
|
287
|
+
default134 as IconTextTypo,
|
|
288
|
+
default135 as IconTextUnderline,
|
|
289
|
+
default136 as IconTextVanilla,
|
|
290
|
+
default137 as IconTool,
|
|
291
|
+
default138 as IconTrendingUp,
|
|
292
292
|
default140 as IconUndo,
|
|
293
|
+
default139 as IconUndoAll,
|
|
293
294
|
default141 as IconUnlink,
|
|
294
295
|
default142 as IconUnlock,
|
|
295
|
-
default143 as
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
default147 as
|
|
300
|
-
default148 as
|
|
301
|
-
default149 as
|
|
302
|
-
default150 as
|
|
303
|
-
default151 as
|
|
304
|
-
default152 as
|
|
305
|
-
default153 as
|
|
296
|
+
default143 as IconUnreadMail,
|
|
297
|
+
default144 as IconUpload,
|
|
298
|
+
default146 as IconUser,
|
|
299
|
+
default145 as IconUserSearch,
|
|
300
|
+
default147 as IconUsers,
|
|
301
|
+
default148 as IconVideo,
|
|
302
|
+
default149 as IconViewCalendar,
|
|
303
|
+
default150 as IconViewList,
|
|
304
|
+
default151 as IconWand,
|
|
305
|
+
default152 as IconWrite,
|
|
306
|
+
default153 as IconZoomIn,
|
|
307
|
+
default154 as IconZoomOut
|
|
306
308
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkspaceVisibility } from '@edifice.io/client';
|
|
2
|
-
import { Content, FocusPosition, JSONContent } from '@tiptap/react';
|
|
2
|
+
import { Content, Extensions, FocusPosition, JSONContent } from '@tiptap/react';
|
|
3
3
|
export interface EditorRef {
|
|
4
4
|
/** Get the current content. */
|
|
5
5
|
getContent: (as: 'html' | 'json' | 'plain') => undefined | string | JSONContent;
|
|
@@ -40,6 +40,8 @@ export interface EditorProps {
|
|
|
40
40
|
onContentChange?: ({ editor }: {
|
|
41
41
|
editor: any;
|
|
42
42
|
}) => void;
|
|
43
|
+
/** Extensions to add to the editor */
|
|
44
|
+
extensions?: Extensions;
|
|
43
45
|
}
|
|
44
46
|
declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<EditorRef>>;
|
|
45
47
|
export default Editor;
|