@edifice.io/react 2.1.0-develop-b2school.20250206155953 → 2.1.0-develop.20250204191813

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 (28) hide show
  1. package/dist/components/Dropdown/DropdownTrigger.js +1 -5
  2. package/dist/components/List/List.d.ts +1 -9
  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 +1 -3
  6. package/dist/editor.js +20 -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 +17 -13
  10. package/dist/icons.js +206 -212
  11. package/dist/modules/editor/components/Editor/Editor.d.ts +1 -3
  12. package/dist/modules/editor/components/Editor/Editor.js +2 -3
  13. package/dist/modules/editor/components/NodeView/index.d.ts +1 -2
  14. package/dist/modules/editor/components/Renderer/index.d.ts +1 -2
  15. package/dist/modules/editor/hooks/useTipTapEditor.d.ts +2 -6
  16. package/dist/modules/editor/hooks/useTipTapEditor.js +2 -2
  17. package/dist/modules/icons/components/index.d.ts +0 -3
  18. package/package.json +6 -6
  19. package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.d.ts +0 -2
  20. package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.js +0 -10
  21. package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.d.ts +0 -8
  22. package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.js +0 -28
  23. package/dist/modules/icons/components/IconFolderAdd.d.ts +0 -7
  24. package/dist/modules/icons/components/IconFolderAdd.js +0 -13
  25. package/dist/modules/icons/components/IconReadMail.d.ts +0 -7
  26. package/dist/modules/icons/components/IconReadMail.js +0 -16
  27. package/dist/modules/icons/components/IconUnreadMail.d.ts +0 -7
  28. package/dist/modules/icons/components/IconUnreadMail.js +0 -16
@@ -3,7 +3,6 @@ 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";
7
6
  const DropdownTrigger = /* @__PURE__ */ forwardRef(({
8
7
  label,
9
8
  icon,
@@ -27,10 +26,7 @@ const DropdownTrigger = /* @__PURE__ */ forwardRef(({
27
26
  return /* @__PURE__ */ jsxs("button", { ref: forwardRef2, type: "button", disabled, ...mergedProps, children: [
28
27
  icon,
29
28
  label,
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" })
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" })
34
30
  ] });
35
31
  });
36
32
  export {
@@ -5,10 +5,6 @@ export type ListProps<T> = {
5
5
  * Toolbar data items
6
6
  */
7
7
  items?: ToolbarItem[];
8
- /**
9
- * Checkable list
10
- */
11
- isCheckable?: boolean;
12
8
  /**
13
9
  * Generic data
14
10
  */
@@ -21,11 +17,7 @@ export type ListProps<T> = {
21
17
  * Callback to get selected ids
22
18
  */
23
19
  onSelectedItems?: (selectedIds: string[]) => void;
24
- /**
25
- * Custom class name
26
- */
27
- className?: string;
28
20
  };
29
21
  export declare const List: <T extends {
30
22
  _id: string;
31
- }>({ items, isCheckable, data, renderNode, onSelectedItems, className, }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
23
+ }>({ items, data, renderNode, onSelectedItems, }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -7,11 +7,9 @@ import Checkbox from "../Checkbox/Checkbox.js";
7
7
  import { Toolbar } from "../Toolbar/Toolbar.js";
8
8
  const List = ({
9
9
  items,
10
- isCheckable = !1,
11
10
  data,
12
11
  renderNode,
13
- onSelectedItems,
14
- className
12
+ onSelectedItems
15
13
  }) => {
16
14
  const {
17
15
  selectedItems,
@@ -23,9 +21,11 @@ const List = ({
23
21
  return useEffect(() => {
24
22
  selectedItems && (onSelectedItems == null || onSelectedItems(selectedItems));
25
23
  }, [onSelectedItems, selectedItems]), /* @__PURE__ */ jsxs(Fragment, { 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: [
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: [
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
- items && /* @__PURE__ */ jsx(Toolbar, { items, isBlock: !0, align: "left", variant: "no-shadow", className: clsx("gap-4 py-4", {
36
+ /* @__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 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);
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);
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 extends Omit<React.ComponentPropsWithoutRef<'input'>, 'size'> {
3
+ export interface BaseProps {
4
4
  /**
5
5
  * String or Template literal with React i18next namespace
6
6
  */
@@ -24,12 +24,10 @@ 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());
29
27
  };
30
28
  return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, children: [
31
29
  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, {}) }),
32
- /* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, disabled, onKeyDown: handleKeyDown, ...restProps }),
30
+ /* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, disabled, ...restProps }),
33
31
  !isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(SvgIconSearch, {}), className: "border-start-0", onClick: handleClick })
34
32
  ] });
35
33
  };
package/dist/editor.js CHANGED
@@ -1,19 +1,17 @@
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/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";
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";
10
10
  import { default as default10 } from "./modules/editor/components/Renderer/AttachmentRenderer.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";
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";
17
15
  import { EditorToolbar } from "./modules/editor/components/EditorToolbar/EditorToolbar.js";
18
16
  import { useActionOptions } from "./modules/editor/hooks/useActionOptions.js";
19
17
  import { useCommentEditor } from "./modules/editor/hooks/useCommentEditor.js";
@@ -28,24 +26,22 @@ import { useSpeechRecognition } from "./modules/editor/hooks/useSpeechRecognitio
28
26
  import { useSpeechSynthetisis } from "./modules/editor/hooks/useSpeechSynthetisis.js";
29
27
  import { useTipTapEditor } from "./modules/editor/hooks/useTipTapEditor.js";
30
28
  export {
31
- default4 as AttachmentNodeView,
29
+ default5 as AttachmentNodeView,
32
30
  default10 as AttachmentRenderer,
33
- default5 as AudioNodeView,
34
- default11 as AudioRenderer,
31
+ default4 as AudioNodeView,
32
+ default9 as AudioRenderer,
35
33
  default3 as BubbleMenuEditImage,
36
- default6 as ConversationHistoryNodeView,
37
- default12 as ConversationHistoryRenderer,
38
34
  default2 as Editor,
39
35
  EditorContent,
40
36
  EditorContext,
41
37
  EditorToolbar,
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,
38
+ default6 as ImageNodeView,
39
+ default14 as LinkToolbar,
40
+ default7 as LinkerNodeView,
41
+ default11 as LinkerRenderer,
42
+ default12 as MediaRenderer,
43
+ default13 as TableToolbar,
44
+ default8 as VideoNodeView,
49
45
  useActionOptions,
50
46
  useCommentEditor,
51
47
  useEditor,
@@ -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) && (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;
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;
11
11
  return {
12
12
  selectedItems,
13
13
  allItemsSelected,
@@ -1,5 +1,5 @@
1
1
  declare const useConversation: () => {
2
- readonly messages: any;
2
+ readonly messages: number;
3
3
  readonly msgLink: string;
4
4
  readonly zimbraWorkflow: boolean | Record<string, boolean> | undefined;
5
5
  };
@@ -1,21 +1,23 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { odeServices } from "@edifice.io/client";
3
- import { useQuery } from "@tanstack/react-query";
4
3
  import useHasWorkflow from "../useHasWorkflow/useHasWorkflow.js";
5
4
  const useConversation = () => {
6
- const zimbraWorkflow = useHasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view"), zimbraPreauth = useHasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth"), [msgLink, setMsgLink] = useState(""), queryParams = {
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 = {
7
6
  unread: !0,
8
7
  _: (/* @__PURE__ */ new Date()).getTime()
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 () => {
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 () => {
19
21
  const defaultLink = "/zimbra/zimbra";
20
22
  try {
21
23
  const {
@@ -27,9 +29,11 @@ const useConversation = () => {
27
29
  }
28
30
  };
29
31
  return useEffect(() => {
32
+ refreshMails();
33
+ }, []), useEffect(() => {
30
34
  goToMessagerie();
31
35
  }, []), {
32
- messages: messages ? messages.count : 0,
36
+ messages,
33
37
  msgLink,
34
38
  zimbraWorkflow
35
39
  };
package/dist/icons.js CHANGED
@@ -44,112 +44,109 @@ import { default as default44 } from "./modules/icons/components/IconExternalLin
44
44
  import { default as default45 } from "./modules/icons/components/IconFiles.js";
45
45
  import { default as default46 } from "./modules/icons/components/IconFilter.js";
46
46
  import { default as default47 } from "./modules/icons/components/IconFlag.js";
47
- import { default as default48 } from "./modules/icons/components/IconFolderAdd.js";
48
- import { default as default49 } from "./modules/icons/components/IconFolderMove.js";
49
- import { default as default50 } from "./modules/icons/components/IconFolder.js";
50
- import { default as default51 } from "./modules/icons/components/IconForgoing.js";
51
- import { default as default52 } from "./modules/icons/components/IconFullScreen.js";
52
- import { default as default53 } from "./modules/icons/components/IconGlobe.js";
53
- import { default as default54 } from "./modules/icons/components/IconHeadphone.js";
54
- import { default as default55 } from "./modules/icons/components/IconHide.js";
55
- import { default as default56 } from "./modules/icons/components/IconHighlightColumn.js";
56
- import { default as default57 } from "./modules/icons/components/IconHighlightRow.js";
57
- import { default as default58 } from "./modules/icons/components/IconHome.js";
58
- import { default as default59 } from "./modules/icons/components/IconHourglass.js";
59
- import { default as default60 } from "./modules/icons/components/IconImageSizeLarge.js";
60
- import { default as default61 } from "./modules/icons/components/IconImageSizeMedium.js";
61
- import { default as default62 } from "./modules/icons/components/IconImageSizeSmall.js";
62
- import { default as default63 } from "./modules/icons/components/IconInbox.js";
63
- import { default as default64 } from "./modules/icons/components/IconInfoCircle.js";
64
- import { default as default65 } from "./modules/icons/components/IconLandscape.js";
65
- import { default as default66 } from "./modules/icons/components/IconLink.js";
66
- import { default as default67 } from "./modules/icons/components/IconListOrder.js";
67
- import { default as default68 } from "./modules/icons/components/IconLoader.js";
68
- import { default as default69 } from "./modules/icons/components/IconLock.js";
69
- import { default as default70 } from "./modules/icons/components/IconMail.js";
70
- import { default as default71 } from "./modules/icons/components/IconMergeCells.js";
71
- import { default as default72 } from "./modules/icons/components/IconMessageInfo.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
- import { default as default97 } from "./modules/icons/components/IconRecordPause.js";
97
- import { default as default98 } from "./modules/icons/components/IconRecordStop.js";
98
- import { default as default99 } from "./modules/icons/components/IconRecordVideo.js";
99
- import { default as default100 } from "./modules/icons/components/IconRecord.js";
100
- import { default as default101 } from "./modules/icons/components/IconRedo.js";
101
- import { default as default102 } from "./modules/icons/components/IconRefresh.js";
102
- import { default as default103 } from "./modules/icons/components/IconReset.js";
103
- import { default as default104 } from "./modules/icons/components/IconRestart.js";
104
- import { default as default105 } from "./modules/icons/components/IconRestore.js";
105
- import { default as default106 } from "./modules/icons/components/IconSave.js";
106
- import { default as default107 } from "./modules/icons/components/IconSearch.js";
107
- import { default as default108 } from "./modules/icons/components/IconSee.js";
108
- import { default as default109 } from "./modules/icons/components/IconSend.js";
109
- import { default as default110 } from "./modules/icons/components/IconSetBackground.js";
110
- import { default as default111 } from "./modules/icons/components/IconSettings.js";
111
- import { default as default112 } from "./modules/icons/components/IconShare.js";
112
- import { default as default113 } from "./modules/icons/components/IconSmartphone.js";
113
- import { default as default114 } from "./modules/icons/components/IconSmiley.js";
114
- import { default as default115 } from "./modules/icons/components/IconSortAscendingLetters.js";
115
- import { default as default116 } from "./modules/icons/components/IconSortDescendingLetters.js";
116
- import { default as default117 } from "./modules/icons/components/IconSortDescending.js";
117
- import { default as default118 } from "./modules/icons/components/IconSortTime.js";
118
- import { default as default119 } from "./modules/icons/components/IconSpeechToText.js";
119
- import { default as default120 } from "./modules/icons/components/IconSplitCells.js";
120
- import { default as default121 } from "./modules/icons/components/IconSquareRoot.js";
121
- import { default as default122 } from "./modules/icons/components/IconSubscript.js";
122
- import { default as default123 } from "./modules/icons/components/IconSuccessFill.js";
123
- import { default as default124 } from "./modules/icons/components/IconSuccessOutline.js";
124
- import { default as default125 } from "./modules/icons/components/IconSuperscript.js";
125
- import { default as default126 } from "./modules/icons/components/IconTable.js";
126
- import { default as default127 } from "./modules/icons/components/IconTextBold.js";
127
- import { default as default128 } from "./modules/icons/components/IconTextColor.js";
128
- import { default as default129 } from "./modules/icons/components/IconTextHighlight.js";
129
- import { default as default130 } from "./modules/icons/components/IconTextItalic.js";
130
- import { default as default131 } from "./modules/icons/components/IconTextPage.js";
131
- import { default as default132 } from "./modules/icons/components/IconTextSize.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/IconUndo.js";
139
- import { default as default140 } from "./modules/icons/components/IconUnlink.js";
140
- import { default as default141 } from "./modules/icons/components/IconUnlock.js";
141
- import { default as default142 } from "./modules/icons/components/IconUnreadMail.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";
47
+ import { default as default48 } from "./modules/icons/components/IconFolderMove.js";
48
+ import { default as default49 } from "./modules/icons/components/IconFolder.js";
49
+ import { default as default50 } from "./modules/icons/components/IconForgoing.js";
50
+ import { default as default51 } from "./modules/icons/components/IconFullScreen.js";
51
+ import { default as default52 } from "./modules/icons/components/IconGlobe.js";
52
+ import { default as default53 } from "./modules/icons/components/IconHeadphone.js";
53
+ import { default as default54 } from "./modules/icons/components/IconHide.js";
54
+ import { default as default55 } from "./modules/icons/components/IconHighlightColumn.js";
55
+ import { default as default56 } from "./modules/icons/components/IconHighlightRow.js";
56
+ import { default as default57 } from "./modules/icons/components/IconHome.js";
57
+ import { default as default58 } from "./modules/icons/components/IconHourglass.js";
58
+ import { default as default59 } from "./modules/icons/components/IconImageSizeLarge.js";
59
+ import { default as default60 } from "./modules/icons/components/IconImageSizeMedium.js";
60
+ import { default as default61 } from "./modules/icons/components/IconImageSizeSmall.js";
61
+ import { default as default62 } from "./modules/icons/components/IconInbox.js";
62
+ import { default as default63 } from "./modules/icons/components/IconInfoCircle.js";
63
+ import { default as default64 } from "./modules/icons/components/IconLandscape.js";
64
+ import { default as default65 } from "./modules/icons/components/IconLink.js";
65
+ import { default as default66 } from "./modules/icons/components/IconListOrder.js";
66
+ import { default as default67 } from "./modules/icons/components/IconLoader.js";
67
+ import { default as default68 } from "./modules/icons/components/IconLock.js";
68
+ import { default as default69 } from "./modules/icons/components/IconMail.js";
69
+ import { default as default70 } from "./modules/icons/components/IconMergeCells.js";
70
+ import { default as default71 } from "./modules/icons/components/IconMessageInfo.js";
71
+ import { default as default72 } from "./modules/icons/components/IconMic.js";
72
+ import { default as default73 } from "./modules/icons/components/IconMinus.js";
73
+ import { default as default74 } from "./modules/icons/components/IconMove.js";
74
+ import { default as default75 } from "./modules/icons/components/IconNoColors.js";
75
+ import { default as default76 } from "./modules/icons/components/IconOptions.js";
76
+ import { default as default77 } from "./modules/icons/components/IconOrderedList.js";
77
+ import { default as default78 } from "./modules/icons/components/IconPaperclip.js";
78
+ import { default as default79 } from "./modules/icons/components/IconPause.js";
79
+ import { default as default80 } from "./modules/icons/components/IconPinOff.js";
80
+ import { default as default81 } from "./modules/icons/components/IconPinOn.js";
81
+ import { default as default82 } from "./modules/icons/components/IconPlaceholder.js";
82
+ import { default as default83 } from "./modules/icons/components/IconPlayFilled.js";
83
+ import { default as default84 } from "./modules/icons/components/IconPlay.js";
84
+ import { default as default85 } from "./modules/icons/components/IconPlus.js";
85
+ import { default as default86 } from "./modules/icons/components/IconPointerDefault.js";
86
+ import { default as default87 } from "./modules/icons/components/IconPointerHand.js";
87
+ import { default as default88 } from "./modules/icons/components/IconPrint.js";
88
+ import { default as default89 } from "./modules/icons/components/IconQuestion.js";
89
+ import { default as default90 } from "./modules/icons/components/IconRafterDown.js";
90
+ import { default as default91 } from "./modules/icons/components/IconRafterLeft.js";
91
+ import { default as default92 } from "./modules/icons/components/IconRafterRight.js";
92
+ import { default as default93 } from "./modules/icons/components/IconRafterUp.js";
93
+ import { default as default94 } from "./modules/icons/components/IconReaction.js";
94
+ import { default as default95 } from "./modules/icons/components/IconRecordPause.js";
95
+ import { default as default96 } from "./modules/icons/components/IconRecordStop.js";
96
+ import { default as default97 } from "./modules/icons/components/IconRecordVideo.js";
97
+ import { default as default98 } from "./modules/icons/components/IconRecord.js";
98
+ import { default as default99 } from "./modules/icons/components/IconRedo.js";
99
+ import { default as default100 } from "./modules/icons/components/IconRefresh.js";
100
+ import { default as default101 } from "./modules/icons/components/IconReset.js";
101
+ import { default as default102 } from "./modules/icons/components/IconRestart.js";
102
+ import { default as default103 } from "./modules/icons/components/IconRestore.js";
103
+ import { default as default104 } from "./modules/icons/components/IconSave.js";
104
+ import { default as default105 } from "./modules/icons/components/IconSearch.js";
105
+ import { default as default106 } from "./modules/icons/components/IconSee.js";
106
+ import { default as default107 } from "./modules/icons/components/IconSend.js";
107
+ import { default as default108 } from "./modules/icons/components/IconSetBackground.js";
108
+ import { default as default109 } from "./modules/icons/components/IconSettings.js";
109
+ import { default as default110 } from "./modules/icons/components/IconShare.js";
110
+ import { default as default111 } from "./modules/icons/components/IconSmartphone.js";
111
+ import { default as default112 } from "./modules/icons/components/IconSmiley.js";
112
+ import { default as default113 } from "./modules/icons/components/IconSortAscendingLetters.js";
113
+ import { default as default114 } from "./modules/icons/components/IconSortDescendingLetters.js";
114
+ import { default as default115 } from "./modules/icons/components/IconSortDescending.js";
115
+ import { default as default116 } from "./modules/icons/components/IconSortTime.js";
116
+ import { default as default117 } from "./modules/icons/components/IconSpeechToText.js";
117
+ import { default as default118 } from "./modules/icons/components/IconSplitCells.js";
118
+ import { default as default119 } from "./modules/icons/components/IconSquareRoot.js";
119
+ import { default as default120 } from "./modules/icons/components/IconSubscript.js";
120
+ import { default as default121 } from "./modules/icons/components/IconSuccessFill.js";
121
+ import { default as default122 } from "./modules/icons/components/IconSuccessOutline.js";
122
+ import { default as default123 } from "./modules/icons/components/IconSuperscript.js";
123
+ import { default as default124 } from "./modules/icons/components/IconTable.js";
124
+ import { default as default125 } from "./modules/icons/components/IconTextBold.js";
125
+ import { default as default126 } from "./modules/icons/components/IconTextColor.js";
126
+ import { default as default127 } from "./modules/icons/components/IconTextHighlight.js";
127
+ import { default as default128 } from "./modules/icons/components/IconTextItalic.js";
128
+ import { default as default129 } from "./modules/icons/components/IconTextPage.js";
129
+ import { default as default130 } from "./modules/icons/components/IconTextSize.js";
130
+ import { default as default131 } from "./modules/icons/components/IconTextToSpeech.js";
131
+ import { default as default132 } from "./modules/icons/components/IconTextTypo.js";
132
+ import { default as default133 } from "./modules/icons/components/IconTextUnderline.js";
133
+ import { default as default134 } from "./modules/icons/components/IconTextVanilla.js";
134
+ import { default as default135 } from "./modules/icons/components/IconTool.js";
135
+ import { default as default136 } from "./modules/icons/components/IconTrendingUp.js";
136
+ import { default as default137 } from "./modules/icons/components/IconUndo.js";
137
+ import { default as default138 } from "./modules/icons/components/IconUnlink.js";
138
+ import { default as default139 } from "./modules/icons/components/IconUnlock.js";
139
+ import { default as default140 } from "./modules/icons/components/IconUpload.js";
140
+ import { default as default141 } from "./modules/icons/components/IconUserSearch.js";
141
+ import { default as default142 } from "./modules/icons/components/IconUser.js";
142
+ import { default as default143 } from "./modules/icons/components/IconUsers.js";
143
+ import { default as default144 } from "./modules/icons/components/IconVideo.js";
144
+ import { default as default145 } from "./modules/icons/components/IconViewCalendar.js";
145
+ import { default as default146 } from "./modules/icons/components/IconViewList.js";
146
+ import { default as default147 } from "./modules/icons/components/IconWand.js";
147
+ import { default as default148 } from "./modules/icons/components/IconWrite.js";
148
+ import { default as default149 } from "./modules/icons/components/IconZoomIn.js";
149
+ import { default as default150 } from "./modules/icons/components/IconZoomOut.js";
153
150
  export {
154
151
  default3 as IconAdd,
155
152
  default2 as IconAddUser,
@@ -197,110 +194,107 @@ export {
197
194
  default45 as IconFiles,
198
195
  default46 as IconFilter,
199
196
  default47 as IconFlag,
200
- default50 as IconFolder,
201
- default48 as IconFolderAdd,
202
- default49 as IconFolderMove,
203
- default51 as IconForgoing,
204
- default52 as IconFullScreen,
205
- default53 as IconGlobe,
206
- default54 as IconHeadphone,
207
- default55 as IconHide,
208
- default56 as IconHighlightColumn,
209
- default57 as IconHighlightRow,
210
- default58 as IconHome,
211
- default59 as IconHourglass,
212
- default60 as IconImageSizeLarge,
213
- default61 as IconImageSizeMedium,
214
- default62 as IconImageSizeSmall,
215
- default63 as IconInbox,
216
- default64 as IconInfoCircle,
217
- default65 as IconLandscape,
218
- default66 as IconLink,
219
- default67 as IconListOrder,
220
- default68 as IconLoader,
221
- default69 as IconLock,
222
- default70 as IconMail,
223
- default71 as IconMergeCells,
224
- default72 as IconMessageInfo,
225
- default73 as IconMic,
226
- default74 as IconMinus,
227
- default75 as IconMove,
228
- default76 as IconNoColors,
229
- default77 as IconOptions,
230
- default78 as IconOrderedList,
231
- default79 as IconPaperclip,
232
- default80 as IconPause,
233
- default81 as IconPinOff,
234
- default82 as IconPinOn,
235
- default83 as IconPlaceholder,
236
- default85 as IconPlay,
237
- default84 as IconPlayFilled,
238
- default86 as IconPlus,
239
- default87 as IconPointerDefault,
240
- default88 as IconPointerHand,
241
- default89 as IconPrint,
242
- default90 as IconQuestion,
243
- default91 as IconRafterDown,
244
- default92 as IconRafterLeft,
245
- default93 as IconRafterRight,
246
- default94 as IconRafterUp,
247
- default95 as IconReaction,
248
- default96 as IconReadMail,
249
- default100 as IconRecord,
250
- default97 as IconRecordPause,
251
- default98 as IconRecordStop,
252
- default99 as IconRecordVideo,
253
- default101 as IconRedo,
254
- default102 as IconRefresh,
255
- default103 as IconReset,
256
- default104 as IconRestart,
257
- default105 as IconRestore,
258
- default106 as IconSave,
259
- default107 as IconSearch,
260
- default108 as IconSee,
261
- default109 as IconSend,
262
- default110 as IconSetBackground,
263
- default111 as IconSettings,
264
- default112 as IconShare,
265
- default113 as IconSmartphone,
266
- default114 as IconSmiley,
267
- default115 as IconSortAscendingLetters,
268
- default117 as IconSortDescending,
269
- default116 as IconSortDescendingLetters,
270
- default118 as IconSortTime,
271
- default119 as IconSpeechToText,
272
- default120 as IconSplitCells,
273
- default121 as IconSquareRoot,
274
- default122 as IconSubscript,
275
- default123 as IconSuccessFill,
276
- default124 as IconSuccessOutline,
277
- default125 as IconSuperscript,
278
- default126 as IconTable,
279
- default127 as IconTextBold,
280
- default128 as IconTextColor,
281
- default129 as IconTextHighlight,
282
- default130 as IconTextItalic,
283
- default131 as IconTextPage,
284
- default132 as IconTextSize,
285
- default133 as IconTextToSpeech,
286
- default134 as IconTextTypo,
287
- default135 as IconTextUnderline,
288
- default136 as IconTextVanilla,
289
- default137 as IconTool,
290
- default138 as IconTrendingUp,
291
- default139 as IconUndo,
292
- default140 as IconUnlink,
293
- default141 as IconUnlock,
294
- default142 as IconUnreadMail,
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
197
+ default49 as IconFolder,
198
+ default48 as IconFolderMove,
199
+ default50 as IconForgoing,
200
+ default51 as IconFullScreen,
201
+ default52 as IconGlobe,
202
+ default53 as IconHeadphone,
203
+ default54 as IconHide,
204
+ default55 as IconHighlightColumn,
205
+ default56 as IconHighlightRow,
206
+ default57 as IconHome,
207
+ default58 as IconHourglass,
208
+ default59 as IconImageSizeLarge,
209
+ default60 as IconImageSizeMedium,
210
+ default61 as IconImageSizeSmall,
211
+ default62 as IconInbox,
212
+ default63 as IconInfoCircle,
213
+ default64 as IconLandscape,
214
+ default65 as IconLink,
215
+ default66 as IconListOrder,
216
+ default67 as IconLoader,
217
+ default68 as IconLock,
218
+ default69 as IconMail,
219
+ default70 as IconMergeCells,
220
+ default71 as IconMessageInfo,
221
+ default72 as IconMic,
222
+ default73 as IconMinus,
223
+ default74 as IconMove,
224
+ default75 as IconNoColors,
225
+ default76 as IconOptions,
226
+ default77 as IconOrderedList,
227
+ default78 as IconPaperclip,
228
+ default79 as IconPause,
229
+ default80 as IconPinOff,
230
+ default81 as IconPinOn,
231
+ default82 as IconPlaceholder,
232
+ default84 as IconPlay,
233
+ default83 as IconPlayFilled,
234
+ default85 as IconPlus,
235
+ default86 as IconPointerDefault,
236
+ default87 as IconPointerHand,
237
+ default88 as IconPrint,
238
+ default89 as IconQuestion,
239
+ default90 as IconRafterDown,
240
+ default91 as IconRafterLeft,
241
+ default92 as IconRafterRight,
242
+ default93 as IconRafterUp,
243
+ default94 as IconReaction,
244
+ default98 as IconRecord,
245
+ default95 as IconRecordPause,
246
+ default96 as IconRecordStop,
247
+ default97 as IconRecordVideo,
248
+ default99 as IconRedo,
249
+ default100 as IconRefresh,
250
+ default101 as IconReset,
251
+ default102 as IconRestart,
252
+ default103 as IconRestore,
253
+ default104 as IconSave,
254
+ default105 as IconSearch,
255
+ default106 as IconSee,
256
+ default107 as IconSend,
257
+ default108 as IconSetBackground,
258
+ default109 as IconSettings,
259
+ default110 as IconShare,
260
+ default111 as IconSmartphone,
261
+ default112 as IconSmiley,
262
+ default113 as IconSortAscendingLetters,
263
+ default115 as IconSortDescending,
264
+ default114 as IconSortDescendingLetters,
265
+ default116 as IconSortTime,
266
+ default117 as IconSpeechToText,
267
+ default118 as IconSplitCells,
268
+ default119 as IconSquareRoot,
269
+ default120 as IconSubscript,
270
+ default121 as IconSuccessFill,
271
+ default122 as IconSuccessOutline,
272
+ default123 as IconSuperscript,
273
+ default124 as IconTable,
274
+ default125 as IconTextBold,
275
+ default126 as IconTextColor,
276
+ default127 as IconTextHighlight,
277
+ default128 as IconTextItalic,
278
+ default129 as IconTextPage,
279
+ default130 as IconTextSize,
280
+ default131 as IconTextToSpeech,
281
+ default132 as IconTextTypo,
282
+ default133 as IconTextUnderline,
283
+ default134 as IconTextVanilla,
284
+ default135 as IconTool,
285
+ default136 as IconTrendingUp,
286
+ default137 as IconUndo,
287
+ default138 as IconUnlink,
288
+ default139 as IconUnlock,
289
+ default140 as IconUpload,
290
+ default142 as IconUser,
291
+ default141 as IconUserSearch,
292
+ default143 as IconUsers,
293
+ default144 as IconVideo,
294
+ default145 as IconViewCalendar,
295
+ default146 as IconViewList,
296
+ default147 as IconWand,
297
+ default148 as IconWrite,
298
+ default149 as IconZoomIn,
299
+ default150 as IconZoomOut
306
300
  };
@@ -1,5 +1,5 @@
1
1
  import { WorkspaceVisibility } from '@edifice.io/client';
2
- import { Content, Extensions, FocusPosition, JSONContent } from '@tiptap/react';
2
+ import { Content, 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,8 +40,6 @@ export interface EditorProps {
40
40
  onContentChange?: ({ editor }: {
41
41
  editor: any;
42
42
  }) => void;
43
- /** Extensions to add to the editor */
44
- extensions?: Extensions;
45
43
  }
46
44
  declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<EditorRef>>;
47
45
  export default Editor;
@@ -26,15 +26,14 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
26
26
  focus = "start",
27
27
  placeholder = "",
28
28
  visibility = "protected",
29
- onContentChange,
30
- extensions
29
+ onContentChange
31
30
  }, ref) => {
32
31
  const editorId = useId(), {
33
32
  appCode
34
33
  } = useEdificeClient(), {
35
34
  editor,
36
35
  editable
37
- } = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility, extensions), {
36
+ } = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility), {
38
37
  ref: mediaLibraryModalRef,
39
38
  ...mediaLibraryModalHandlers
40
39
  } = useMediaLibraryEditor(editor), {
@@ -1,6 +1,5 @@
1
- export { default as AttachmentNodeView } from './AttachmentNodeView';
2
1
  export { default as AudioNodeView } from './AudioNodeView';
3
- export { default as ConversationHistoryNodeView } from './ConversationHistoryNodeView';
2
+ export { default as AttachmentNodeView } from './AttachmentNodeView';
4
3
  export { default as ImageNodeView } from './ImageNodeView';
5
4
  export { default as LinkerNodeView } from './LinkerNodeView';
6
5
  export { default as VideoNodeView } from './VideoNodeView';
@@ -1,5 +1,4 @@
1
- export { default as AttachmentRenderer } from './AttachmentRenderer';
2
1
  export { default as AudioRenderer } from './AudioRenderer';
3
- export { default as ConversationHistoryRenderer } from './ConversationHistoryRenderer';
2
+ export { default as AttachmentRenderer } from './AttachmentRenderer';
4
3
  export { default as LinkerRenderer } from './LinkerRenderer';
5
4
  export { default as MediaRenderer } from './MediaRenderer';
@@ -1,4 +1,4 @@
1
- import { Content, Extensions, FocusPosition } from '@tiptap/react';
1
+ import { Content, FocusPosition } from '@tiptap/react';
2
2
  import { WorkspaceVisibility } from '@edifice.io/client';
3
3
  /**
4
4
  * Hook that creates a tiptap editor instance.
@@ -7,14 +7,10 @@ import { WorkspaceVisibility } from '@edifice.io/client';
7
7
  * @param content default rich content
8
8
  * @param focus set focus position to the editor
9
9
  * @param placeholder editor placeholder content
10
- * @param onContentChange callback to be called on content change
11
- * @param visibility workspace visibility
12
- * @param extensions extensions to add to the editor
13
- * @returns the editor instance and the editable state
14
10
  */
15
11
  export declare const useTipTapEditor: (editable: boolean, content: Content, focus?: FocusPosition, placeholder?: string, onContentChange?: ({ editor }: {
16
12
  editor: any;
17
- }) => void, visibility?: WorkspaceVisibility, extensions?: Extensions) => {
13
+ }) => void, visibility?: WorkspaceVisibility) => {
18
14
  editor: import('@tiptap/core').Editor | null;
19
15
  editable: boolean;
20
16
  };
@@ -36,7 +36,7 @@ import MediaRenderer from "../components/Renderer/MediaRenderer.js";
36
36
  import AudioRenderer from "../components/Renderer/AudioRenderer.js";
37
37
  import LinkerRenderer from "../components/Renderer/LinkerRenderer.js";
38
38
  import AttachmentRenderer from "../components/Renderer/AttachmentRenderer.js";
39
- const useTipTapEditor = (editable, content, focus, placeholder, onContentChange, visibility = "protected", extensions) => {
39
+ const useTipTapEditor = (editable, content, focus, placeholder, onContentChange, visibility = "protected") => {
40
40
  const {
41
41
  currentLanguage
42
42
  } = useEdificeClient(), {
@@ -63,7 +63,7 @@ const useTipTapEditor = (editable, content, focus, placeholder, onContentChange,
63
63
  levels: [1, 2]
64
64
  }), Typography, FontSize, SpeechRecognition, SpeechSynthesis.configure({
65
65
  lang: (currentLanguage == null ? void 0 : currentLanguage.length) === 2 ? `${currentLanguage}-${currentLanguage.toUpperCase()}` : "fr-FR"
66
- }), Iframe, Hyperlink, FontFamily, Mathematics, Alert, VideoNodeView(MediaRenderer), AudioNodeView(AudioRenderer), LinkerNodeView(LinkerRenderer), ImageNodeView(MediaRenderer, uploadFile), AttachmentNodeView(AttachmentRenderer), ...extensions || []],
66
+ }), Iframe, Hyperlink, FontFamily, Mathematics, Alert, VideoNodeView(MediaRenderer), AudioNodeView(AudioRenderer), LinkerNodeView(LinkerRenderer), ImageNodeView(MediaRenderer, uploadFile), AttachmentNodeView(AttachmentRenderer)],
67
67
  content,
68
68
  // If the onContentChange callback is provided, we call it on every content change.
69
69
  ...onContentChange ? {
@@ -44,7 +44,6 @@ export { default as IconExternalLink } from './IconExternalLink';
44
44
  export { default as IconFiles } from './IconFiles';
45
45
  export { default as IconFilter } from './IconFilter';
46
46
  export { default as IconFlag } from './IconFlag';
47
- export { default as IconFolderAdd } from './IconFolderAdd';
48
47
  export { default as IconFolderMove } from './IconFolderMove';
49
48
  export { default as IconFolder } from './IconFolder';
50
49
  export { default as IconForgoing } from './IconForgoing';
@@ -92,7 +91,6 @@ export { default as IconRafterLeft } from './IconRafterLeft';
92
91
  export { default as IconRafterRight } from './IconRafterRight';
93
92
  export { default as IconRafterUp } from './IconRafterUp';
94
93
  export { default as IconReaction } from './IconReaction';
95
- export { default as IconReadMail } from './IconReadMail';
96
94
  export { default as IconRecordPause } from './IconRecordPause';
97
95
  export { default as IconRecordStop } from './IconRecordStop';
98
96
  export { default as IconRecordVideo } from './IconRecordVideo';
@@ -138,7 +136,6 @@ export { default as IconTrendingUp } from './IconTrendingUp';
138
136
  export { default as IconUndo } from './IconUndo';
139
137
  export { default as IconUnlink } from './IconUnlink';
140
138
  export { default as IconUnlock } from './IconUnlock';
141
- export { default as IconUnreadMail } from './IconUnreadMail';
142
139
  export { default as IconUpload } from './IconUpload';
143
140
  export { default as IconUserSearch } from './IconUserSearch';
144
141
  export { default as IconUser } from './IconUser';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.1.0-develop-b2school.20250206155953",
3
+ "version": "2.1.0-develop.20250204191813",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -118,9 +118,9 @@
118
118
  "react-slugify": "^3.0.3",
119
119
  "swiper": "^10.1.0",
120
120
  "ua-parser-js": "^1.0.36",
121
- "@edifice.io/bootstrap": "2.1.0-develop-b2school.20250206155953",
122
- "@edifice.io/tiptap-extensions": "2.1.0-develop-b2school.20250206155953",
123
- "@edifice.io/utilities": "2.1.0-develop-b2school.20250206155953"
121
+ "@edifice.io/bootstrap": "2.1.0-develop.20250204191813",
122
+ "@edifice.io/utilities": "2.1.0-develop.20250204191813",
123
+ "@edifice.io/tiptap-extensions": "2.1.0-develop.20250204191813"
124
124
  },
125
125
  "devDependencies": {
126
126
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -148,8 +148,8 @@
148
148
  "vite": "^5.4.11",
149
149
  "vite-plugin-dts": "^4.1.0",
150
150
  "vite-tsconfig-paths": "^5.0.1",
151
- "@edifice.io/client": "2.1.0-develop-b2school.20250206155953",
152
- "@edifice.io/config": "2.1.0-develop-b2school.20250206155953"
151
+ "@edifice.io/client": "2.1.0-develop.20250204191813",
152
+ "@edifice.io/config": "2.1.0-develop.20250204191813"
153
153
  },
154
154
  "peerDependencies": {
155
155
  "@react-spring/web": "^9.7.5",
@@ -1,2 +0,0 @@
1
- declare const ConversationHistoryNodeView: (Component: any) => import('@tiptap/core').Node<any, any>;
2
- export default ConversationHistoryNodeView;
@@ -1,10 +0,0 @@
1
- import { ConversationHistory } from "@edifice.io/tiptap-extensions/conversation-history";
2
- import { ReactNodeViewRenderer } from "@tiptap/react";
3
- const ConversationHistoryNodeView = (Component) => ConversationHistory.extend({
4
- addNodeView() {
5
- return ReactNodeViewRenderer(Component);
6
- }
7
- });
8
- export {
9
- ConversationHistoryNodeView as default
10
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * `ConversationHistoryRenderer` is a React component that renders a button to toggle the visibility
3
- * of conversation history content. It uses the `@tiptap/react` library for rendering content and
4
- * `clsx` for conditional class names. The component also utilizes the `useTranslation` hook from
5
- * `react-i18next` for internationalization and a custom `useToggle` hook for managing the open state.
6
- */
7
- declare const ConversationHistoryRenderer: () => import("react/jsx-runtime").JSX.Element;
8
- export default ConversationHistoryRenderer;
@@ -1,28 +0,0 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { NodeViewWrapper, NodeViewContent } from "@tiptap/react";
3
- import clsx from "clsx";
4
- import { useTranslation } from "react-i18next";
5
- import SvgIconRafterDown from "../../../icons/components/IconRafterDown.js";
6
- import SvgIconRafterUp from "../../../icons/components/IconRafterUp.js";
7
- import useToggle from "../../../../hooks/useToggle/useToggle.js";
8
- import Button from "../../../../components/Button/Button.js";
9
- const ConversationHistoryRenderer = () => {
10
- const {
11
- t
12
- } = useTranslation("conversation"), [open, toggleOpen] = useToggle(!1), classes = clsx("conversation-history ps-16", {
13
- show: open
14
- });
15
- return /* @__PURE__ */ jsxs(NodeViewWrapper, { as: "div", contentEditable: !1, children: [
16
- /* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: toggleOpen, size: "sm", className: "d-flex align-items-center gap-4 text-gray-800 fs-6 mt-24", children: open ? /* @__PURE__ */ jsxs(Fragment, { children: [
17
- t("message.history.hide"),
18
- /* @__PURE__ */ jsx(SvgIconRafterUp, { width: 16, height: 16 })
19
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
20
- t("message.history.show"),
21
- /* @__PURE__ */ jsx(SvgIconRafterDown, { width: 16, height: 16 })
22
- ] }) }),
23
- /* @__PURE__ */ jsx("div", { className: classes, "data-testid": "conversation-history-content", children: /* @__PURE__ */ jsx(NodeViewContent, {}) })
24
- ] });
25
- };
26
- export {
27
- ConversationHistoryRenderer as default
28
- };
@@ -1,7 +0,0 @@
1
- import { SVGProps } from 'react';
2
- interface SVGRProps {
3
- title?: string;
4
- titleId?: string;
5
- }
6
- declare const SvgIconFolderAdd: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconFolderAdd;
@@ -1,13 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconFolderAdd = ({
3
- title,
4
- titleId,
5
- ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
- title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsx("g", { clipPath: "url(#icon-folder-add_svg__a)", children: /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.985 5.283A2 2 0 0 0 12.965 7H22v12H2V4h7.5a1.5 1.5 0 0 1 1.485 1.283M1.902 2C.852 2 0 2.852 0 3.902V19a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-9.035A3.5 3.5 0 0 0 9.5 2zM12 8a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V9a1 1 0 0 1 1-1", clipRule: "evenodd" }) }),
9
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-folder-add_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
10
- ] });
11
- export {
12
- SvgIconFolderAdd as default
13
- };
@@ -1,7 +0,0 @@
1
- import { SVGProps } from 'react';
2
- interface SVGRProps {
3
- title?: string;
4
- titleId?: string;
5
- }
6
- declare const SvgIconReadMail: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconReadMail;
@@ -1,16 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconReadMail = ({
3
- title,
4
- titleId,
5
- ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
- title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsxs("g", { fill: "currentColor", fillRule: "evenodd", clipPath: "url(#icon-read-mail_svg__a)", clipRule: "evenodd", children: [
9
- /* @__PURE__ */ jsx("path", { d: "M1.143 8.986a1 1 0 0 1 1.372-.343l8.97 5.382a1 1 0 0 0 1.03 0l8.97-5.382a1 1 0 1 1 1.03 1.714l-8.971 5.383a3 3 0 0 1-3.088 0l-8.97-5.382a1 1 0 0 1-.343-1.373" }),
10
- /* @__PURE__ */ jsx("path", { d: "M12.466 2.4a.95.95 0 0 0-.932 0c-1.333.74-3.83 2.146-5.99 3.465-1.083.662-2.063 1.29-2.764 1.797a8 8 0 0 0-.78.62v11.003H0V8c0-.38.191-.664.272-.776.107-.148.238-.285.364-.404.254-.24.594-.506.973-.78.765-.552 1.797-1.212 2.892-1.881C6.697 2.817 9.224 1.395 10.563.65a2.95 2.95 0 0 1 2.874 0c1.34.744 3.866 2.166 6.062 3.508 1.095.669 2.127 1.33 2.892 1.882.38.273.719.54.973.78.126.118.257.255.364.403.08.112.272.395.272.776v11.285h-2V8.284l-.009-.008a8 8 0 0 0-.77-.613c-.702-.506-1.682-1.135-2.765-1.797-2.16-1.32-4.657-2.725-5.99-3.466M2.321 19.802c.253.192.647.34 1.123.34h17.112c.476 0 .87-.148 1.123-.34.252-.192.321-.384.321-.517h2c0 .892-.479 1.629-1.111 2.11-.632.479-1.46.747-2.333.747H3.444c-.873 0-1.701-.268-2.333-.748S0 20.178 0 19.285h2c0 .133.069.326.32.518" })
11
- ] }),
12
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-read-mail_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
13
- ] });
14
- export {
15
- SvgIconReadMail as default
16
- };
@@ -1,7 +0,0 @@
1
- import { SVGProps } from 'react';
2
- interface SVGRProps {
3
- title?: string;
4
- titleId?: string;
5
- }
6
- declare const SvgIconUnreadMail: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconUnreadMail;
@@ -1,16 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconUnreadMail = ({
3
- title,
4
- titleId,
5
- ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
- title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsxs("g", { fill: "currentColor", fillRule: "evenodd", clipPath: "url(#icon-unread-mail_svg__a)", clipRule: "evenodd", children: [
9
- /* @__PURE__ */ jsx("path", { d: "M7.975 4.5a5.1 5.1 0 0 0-.204-2h12.785A3.437 3.437 0 0 1 24 5.948V18.07c0 1.9-1.548 3.429-3.444 3.429H3.444A3.437 3.437 0 0 1 0 18.071V8.001c.581.436 1.261.749 2 .899v9.171c0 .783.64 1.429 1.444 1.429h17.112c.803 0 1.444-.646 1.444-1.429V7.79l-9.448 6.257a1 1 0 0 1-1.104 0L3.744 8.945a5 5 0 0 0 2.228-.924L12 12.014l9.916-6.567c-.2-.55-.73-.947-1.36-.947z" }),
10
- /* @__PURE__ */ jsx("path", { d: "M3 7a3 3 0 1 0 0-6 3 3 0 0 0 0 6" })
11
- ] }),
12
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-unread-mail_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
13
- ] });
14
- export {
15
- SvgIconUnreadMail as default
16
- };