@edifice.io/react 2.1.1-develop-integration.20250218194811 → 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.
Files changed (47) hide show
  1. package/dist/components/Dropdown/DropdownTrigger.js +5 -1
  2. package/dist/components/List/List.d.ts +9 -1
  3. package/dist/components/List/List.js +9 -9
  4. package/dist/components/SearchBar/SearchBar.d.ts +1 -1
  5. package/dist/components/SearchBar/SearchBar.js +3 -1
  6. package/dist/editor.js +24 -24
  7. package/dist/hooks/useCheckable/useCheckable.js +1 -1
  8. package/dist/hooks/useConversation/useConversation.d.ts +1 -1
  9. package/dist/hooks/useConversation/useConversation.js +13 -17
  10. package/dist/icons.js +136 -134
  11. package/dist/modules/editor/components/Editor/Editor.d.ts +3 -1
  12. package/dist/modules/editor/components/Editor/Editor.js +7 -8
  13. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +1 -4
  14. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +4 -19
  15. package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.d.ts +2 -0
  16. package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.js +10 -0
  17. package/dist/modules/editor/components/NodeView/index.d.ts +2 -1
  18. package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.d.ts +8 -0
  19. package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.js +28 -0
  20. package/dist/modules/editor/components/Renderer/index.d.ts +2 -1
  21. package/dist/modules/editor/hooks/index.d.ts +0 -2
  22. package/dist/modules/editor/hooks/useTipTapEditor.d.ts +6 -2
  23. package/dist/modules/editor/hooks/useTipTapEditor.js +2 -2
  24. package/dist/modules/icons/components/IconFolderAdd.d.ts +7 -0
  25. package/dist/modules/icons/components/IconFolderAdd.js +13 -0
  26. package/dist/modules/icons/components/IconReadMail.d.ts +7 -0
  27. package/dist/modules/icons/components/IconReadMail.js +16 -0
  28. package/dist/modules/icons/components/IconUndoAll.d.ts +7 -0
  29. package/dist/modules/icons/components/IconUndoAll.js +14 -0
  30. package/dist/modules/icons/components/IconUnreadMail.d.ts +7 -0
  31. package/dist/modules/icons/components/IconUnreadMail.js +16 -0
  32. package/dist/modules/icons/components/index.d.ts +4 -3
  33. package/package.json +6 -6
  34. package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.d.ts +0 -2
  35. package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.js +0 -13
  36. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.d.ts +0 -9
  37. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.js +0 -55
  38. package/dist/modules/editor/hooks/useCantooAdaptTextBox.d.ts +0 -14
  39. package/dist/modules/editor/hooks/useCantooAdaptTextBox.js +0 -14
  40. package/dist/modules/editor/hooks/useCantooEditor.d.ts +0 -8
  41. package/dist/modules/editor/hooks/useCantooEditor.js +0 -48
  42. package/dist/modules/icons/components/IconCantoo.d.ts +0 -7
  43. package/dist/modules/icons/components/IconCantoo.js +0 -23
  44. package/dist/modules/icons/components/IconMicOff.d.ts +0 -7
  45. package/dist/modules/icons/components/IconMicOff.js +0 -12
  46. package/dist/modules/icons/components/IconTextToSpeechOff.d.ts +0 -7
  47. 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("span", { className: "badge text-bg-secondary rounded-pill", children: badgeContent }) : !hideCarret && /* @__PURE__ */ jsx(SvgIconRafterUp, { width: 16, height: 16, className: "dropdown-toggle-caret" })
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
- "px-12": items
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 checkbox = /* @__PURE__ */ jsx(Checkbox, { checked: selectedItems.includes(node._id), onChange: () => handleOnSelectItem(node._id) }), checked = selectedItems.includes(node._id);
44
- return /* @__PURE__ */ jsx(Fragment$1, { children: renderNode(node, checkbox, checked) }, node._id);
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/AudioNodeView.js";
5
- import { default as default5 } from "./modules/editor/components/NodeView/AttachmentNodeView.js";
6
- import { default as default6 } from "./modules/editor/components/NodeView/ImageNodeView.js";
7
- import { default as default7 } from "./modules/editor/components/NodeView/LinkerNodeView.js";
8
- import { default as default8 } from "./modules/editor/components/NodeView/VideoNodeView.js";
9
- import { default as default9 } from "./modules/editor/components/Renderer/AudioRenderer.js";
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/LinkerRenderer.js";
12
- import { default as default12 } from "./modules/editor/components/Renderer/MediaRenderer.js";
13
- import { default as default13 } from "./modules/editor/components/Toolbar/TableToolbar.js";
14
- import { default as default14 } from "./modules/editor/components/Toolbar/LinkToolbar.js";
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
- default5 as AttachmentNodeView,
31
+ default4 as AttachmentNodeView,
32
32
  default10 as AttachmentRenderer,
33
- default4 as AudioNodeView,
34
- default9 as AudioRenderer,
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
- default6 as ImageNodeView,
41
- default14 as LinkToolbar,
42
- default7 as LinkerNodeView,
43
- default11 as LinkerRenderer,
44
- default12 as MediaRenderer,
45
- default13 as TableToolbar,
46
- default8 as VideoNodeView,
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,5 +1,5 @@
1
1
  declare const useConversation: () => {
2
- readonly messages: number;
2
+ readonly messages: any;
3
3
  readonly msgLink: string;
4
4
  readonly zimbraWorkflow: boolean | Record<string, boolean> | undefined;
5
5
  };
@@ -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"), [messages, setMessages] = useState(0), [msgLink, setMsgLink] = useState(""), queryParams = {
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
- }, refreshMails = async () => {
9
- const url = zimbraWorkflow ? "/zimbra/count/INBOX" : "/conversation/count/INBOX";
10
- try {
11
- const {
12
- count
13
- } = await odeServices.http().get(url, {
14
- queryParams
15
- });
16
- setMessages(count ?? 0);
17
- } catch (error) {
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/IconCantoo.js";
24
- import { default as default25 } from "./modules/icons/components/IconCenter.js";
25
- import { default as default26 } from "./modules/icons/components/IconCheck.js";
26
- import { default as default27 } from "./modules/icons/components/IconChecklist.js";
27
- import { default as default28 } from "./modules/icons/components/IconClock.js";
28
- import { default as default29 } from "./modules/icons/components/IconCloseFullScreen.js";
29
- import { default as default30 } from "./modules/icons/components/IconClose.js";
30
- import { default as default31 } from "./modules/icons/components/IconCode.js";
31
- import { default as default32 } from "./modules/icons/components/IconCopy.js";
32
- import { default as default33 } from "./modules/icons/components/IconCrop.js";
33
- import { default as default34 } from "./modules/icons/components/IconCut.js";
34
- import { default as default35 } from "./modules/icons/components/IconDeleteColor.js";
35
- import { default as default36 } from "./modules/icons/components/IconDeleteColumnHighlight.js";
36
- import { default as default37 } from "./modules/icons/components/IconDeleteColumn.js";
37
- import { default as default38 } from "./modules/icons/components/IconDeleteRowHighlight.js";
38
- import { default as default39 } from "./modules/icons/components/IconDeleteRow.js";
39
- import { default as default40 } from "./modules/icons/components/IconDelete.js";
40
- import { default as default41 } from "./modules/icons/components/IconDepositeInbox.js";
41
- import { default as default42 } from "./modules/icons/components/IconDownload.js";
42
- import { default as default43 } from "./modules/icons/components/IconEdit.js";
43
- import { default as default44 } from "./modules/icons/components/IconError.js";
44
- import { default as default45 } from "./modules/icons/components/IconExternalLink.js";
45
- import { default as default46 } from "./modules/icons/components/IconFiles.js";
46
- import { default as default47 } from "./modules/icons/components/IconFilter.js";
47
- import { default as default48 } from "./modules/icons/components/IconFlag.js";
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/IconMicOff.js";
73
- import { default as default74 } from "./modules/icons/components/IconMic.js";
74
- import { default as default75 } from "./modules/icons/components/IconMinus.js";
75
- import { default as default76 } from "./modules/icons/components/IconMove.js";
76
- import { default as default77 } from "./modules/icons/components/IconNoColors.js";
77
- import { default as default78 } from "./modules/icons/components/IconOptions.js";
78
- import { default as default79 } from "./modules/icons/components/IconOrderedList.js";
79
- import { default as default80 } from "./modules/icons/components/IconPaperclip.js";
80
- import { default as default81 } from "./modules/icons/components/IconPause.js";
81
- import { default as default82 } from "./modules/icons/components/IconPinOff.js";
82
- import { default as default83 } from "./modules/icons/components/IconPinOn.js";
83
- import { default as default84 } from "./modules/icons/components/IconPlaceholder.js";
84
- import { default as default85 } from "./modules/icons/components/IconPlayFilled.js";
85
- import { default as default86 } from "./modules/icons/components/IconPlay.js";
86
- import { default as default87 } from "./modules/icons/components/IconPlus.js";
87
- import { default as default88 } from "./modules/icons/components/IconPointerDefault.js";
88
- import { default as default89 } from "./modules/icons/components/IconPointerHand.js";
89
- import { default as default90 } from "./modules/icons/components/IconPrint.js";
90
- import { default as default91 } from "./modules/icons/components/IconQuestion.js";
91
- import { default as default92 } from "./modules/icons/components/IconRafterDown.js";
92
- import { default as default93 } from "./modules/icons/components/IconRafterLeft.js";
93
- import { default as default94 } from "./modules/icons/components/IconRafterRight.js";
94
- import { default as default95 } from "./modules/icons/components/IconRafterUp.js";
95
- import { default as default96 } from "./modules/icons/components/IconReaction.js";
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/IconTextToSpeechOff.js";
133
- import { default as default134 } from "./modules/icons/components/IconTextToSpeech.js";
134
- import { default as default135 } from "./modules/icons/components/IconTextTypo.js";
135
- import { default as default136 } from "./modules/icons/components/IconTextUnderline.js";
136
- import { default as default137 } from "./modules/icons/components/IconTextVanilla.js";
137
- import { default as default138 } from "./modules/icons/components/IconTool.js";
138
- import { default as default139 } from "./modules/icons/components/IconTrendingUp.js";
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/IconUpload.js";
143
- import { default as default144 } from "./modules/icons/components/IconUserSearch.js";
144
- import { default as default145 } from "./modules/icons/components/IconUser.js";
145
- import { default as default146 } from "./modules/icons/components/IconUsers.js";
146
- import { default as default147 } from "./modules/icons/components/IconVideo.js";
147
- import { default as default148 } from "./modules/icons/components/IconViewCalendar.js";
148
- import { default as default149 } from "./modules/icons/components/IconViewList.js";
149
- import { default as default150 } from "./modules/icons/components/IconWand.js";
150
- import { default as default151 } from "./modules/icons/components/IconWrite.js";
151
- import { default as default152 } from "./modules/icons/components/IconZoomIn.js";
152
- import { default as default153 } from "./modules/icons/components/IconZoomOut.js";
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 IconCantoo,
177
- default25 as IconCenter,
178
- default26 as IconCheck,
179
- default27 as IconChecklist,
180
- default28 as IconClock,
181
- default30 as IconClose,
182
- default29 as IconCloseFullScreen,
183
- default31 as IconCode,
184
- default32 as IconCopy,
185
- default33 as IconCrop,
186
- default34 as IconCut,
187
- default40 as IconDelete,
188
- default35 as IconDeleteColor,
189
- default37 as IconDeleteColumn,
190
- default36 as IconDeleteColumnHighlight,
191
- default39 as IconDeleteRow,
192
- default38 as IconDeleteRowHighlight,
193
- default41 as IconDepositeInbox,
194
- default42 as IconDownload,
195
- default43 as IconEdit,
196
- default44 as IconError,
197
- default45 as IconExternalLink,
198
- default46 as IconFiles,
199
- default47 as IconFilter,
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
- default74 as IconMic,
226
- default73 as IconMicOff,
227
- default75 as IconMinus,
228
- default76 as IconMove,
229
- default77 as IconNoColors,
230
- default78 as IconOptions,
231
- default79 as IconOrderedList,
232
- default80 as IconPaperclip,
233
- default81 as IconPause,
234
- default82 as IconPinOff,
235
- default83 as IconPinOn,
236
- default84 as IconPlaceholder,
237
- default86 as IconPlay,
238
- default85 as IconPlayFilled,
239
- default87 as IconPlus,
240
- default88 as IconPointerDefault,
241
- default89 as IconPointerHand,
242
- default90 as IconPrint,
243
- default91 as IconQuestion,
244
- default92 as IconRafterDown,
245
- default93 as IconRafterLeft,
246
- default94 as IconRafterRight,
247
- default95 as IconRafterUp,
248
- default96 as IconReaction,
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
- default134 as IconTextToSpeech,
286
- default133 as IconTextToSpeechOff,
287
- default135 as IconTextTypo,
288
- default136 as IconTextUnderline,
289
- default137 as IconTextVanilla,
290
- default138 as IconTool,
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 IconUpload,
296
- default145 as IconUser,
297
- default144 as IconUserSearch,
298
- default146 as IconUsers,
299
- default147 as IconVideo,
300
- default148 as IconViewCalendar,
301
- default149 as IconViewList,
302
- default150 as IconWand,
303
- default151 as IconWrite,
304
- default152 as IconZoomIn,
305
- default153 as IconZoomOut
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;