@edifice.io/react 2.1.1-develop-integration.20250218194811 → 2.1.1-develop-b2school.20250304103025
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Dropdown/DropdownTrigger.js +5 -1
- package/dist/components/List/List.d.ts +9 -1
- package/dist/components/List/List.js +9 -9
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +3 -1
- package/dist/editor.js +24 -24
- package/dist/hooks/useCheckable/useCheckable.d.ts +5 -1
- package/dist/hooks/useCheckable/useCheckable.js +1 -1
- package/dist/hooks/useConversation/useConversation.d.ts +1 -1
- package/dist/hooks/useConversation/useConversation.js +13 -17
- package/dist/icons.js +196 -192
- package/dist/modules/comments/hooks/useAutosizeTextarea.d.ts +5 -1
- package/dist/modules/editor/components/Editor/Editor.d.ts +3 -1
- package/dist/modules/editor/components/Editor/Editor.js +7 -8
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +1 -4
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +4 -19
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/index.d.ts +2 -1
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.d.ts +8 -0
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.js +28 -0
- package/dist/modules/editor/components/Renderer/index.d.ts +2 -1
- package/dist/modules/editor/hooks/index.d.ts +0 -2
- package/dist/modules/editor/hooks/useTipTapEditor.d.ts +6 -2
- package/dist/modules/editor/hooks/useTipTapEditor.js +2 -2
- package/dist/modules/icons/components/IconFolderAdd.d.ts +7 -0
- package/dist/modules/icons/components/IconFolderAdd.js +13 -0
- package/dist/modules/icons/components/IconGroupAvatar.d.ts +7 -0
- package/dist/modules/icons/components/IconGroupAvatar.js +12 -0
- package/dist/modules/icons/components/IconReadMail.d.ts +7 -0
- package/dist/modules/icons/components/IconReadMail.js +16 -0
- package/dist/modules/icons/components/IconUndoAll.d.ts +7 -0
- package/dist/modules/icons/components/IconUndoAll.js +14 -0
- package/dist/modules/icons/components/IconUnreadMail.d.ts +7 -0
- package/dist/modules/icons/components/IconUnreadMail.js +16 -0
- package/dist/modules/icons/components/index.d.ts +5 -3
- package/package.json +6 -6
- package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.d.ts +0 -2
- package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.js +0 -13
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.d.ts +0 -9
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.js +0 -55
- package/dist/modules/editor/hooks/useCantooAdaptTextBox.d.ts +0 -14
- package/dist/modules/editor/hooks/useCantooAdaptTextBox.js +0 -14
- package/dist/modules/editor/hooks/useCantooEditor.d.ts +0 -8
- package/dist/modules/editor/hooks/useCantooEditor.js +0 -48
- package/dist/modules/icons/components/IconCantoo.d.ts +0 -7
- package/dist/modules/icons/components/IconCantoo.js +0 -23
- package/dist/modules/icons/components/IconMicOff.d.ts +0 -7
- package/dist/modules/icons/components/IconMicOff.js +0 -12
- package/dist/modules/icons/components/IconTextToSpeechOff.d.ts +0 -7
- package/dist/modules/icons/components/IconTextToSpeechOff.js +0 -12
package/dist/icons.js
CHANGED
|
@@ -20,56 +20,56 @@ import { default as default20 } from "./modules/icons/components/IconBurgerMenu.
|
|
|
20
20
|
import { default as default21 } from "./modules/icons/components/IconCalendarLight.js";
|
|
21
21
|
import { default as default22 } from "./modules/icons/components/IconCalendar.js";
|
|
22
22
|
import { default as default23 } from "./modules/icons/components/IconCamera.js";
|
|
23
|
-
import { default as default24 } from "./modules/icons/components/
|
|
24
|
-
import { default as default25 } from "./modules/icons/components/
|
|
25
|
-
import { default as default26 } from "./modules/icons/components/
|
|
26
|
-
import { default as default27 } from "./modules/icons/components/
|
|
27
|
-
import { default as default28 } from "./modules/icons/components/
|
|
28
|
-
import { default as default29 } from "./modules/icons/components/
|
|
29
|
-
import { default as default30 } from "./modules/icons/components/
|
|
30
|
-
import { default as default31 } from "./modules/icons/components/
|
|
31
|
-
import { default as default32 } from "./modules/icons/components/
|
|
32
|
-
import { default as default33 } from "./modules/icons/components/
|
|
33
|
-
import { default as default34 } from "./modules/icons/components/
|
|
34
|
-
import { default as default35 } from "./modules/icons/components/
|
|
35
|
-
import { default as default36 } from "./modules/icons/components/
|
|
36
|
-
import { default as default37 } from "./modules/icons/components/
|
|
37
|
-
import { default as default38 } from "./modules/icons/components/
|
|
38
|
-
import { default as default39 } from "./modules/icons/components/
|
|
39
|
-
import { default as default40 } from "./modules/icons/components/
|
|
40
|
-
import { default as default41 } from "./modules/icons/components/
|
|
41
|
-
import { default as default42 } from "./modules/icons/components/
|
|
42
|
-
import { default as default43 } from "./modules/icons/components/
|
|
43
|
-
import { default as default44 } from "./modules/icons/components/
|
|
44
|
-
import { default as default45 } from "./modules/icons/components/
|
|
45
|
-
import { default as default46 } from "./modules/icons/components/
|
|
46
|
-
import { default as default47 } from "./modules/icons/components/
|
|
47
|
-
import { default as default48 } from "./modules/icons/components/
|
|
23
|
+
import { default as default24 } from "./modules/icons/components/IconCenter.js";
|
|
24
|
+
import { default as default25 } from "./modules/icons/components/IconCheck.js";
|
|
25
|
+
import { default as default26 } from "./modules/icons/components/IconChecklist.js";
|
|
26
|
+
import { default as default27 } from "./modules/icons/components/IconClock.js";
|
|
27
|
+
import { default as default28 } from "./modules/icons/components/IconCloseFullScreen.js";
|
|
28
|
+
import { default as default29 } from "./modules/icons/components/IconClose.js";
|
|
29
|
+
import { default as default30 } from "./modules/icons/components/IconCode.js";
|
|
30
|
+
import { default as default31 } from "./modules/icons/components/IconCopy.js";
|
|
31
|
+
import { default as default32 } from "./modules/icons/components/IconCrop.js";
|
|
32
|
+
import { default as default33 } from "./modules/icons/components/IconCut.js";
|
|
33
|
+
import { default as default34 } from "./modules/icons/components/IconDeleteColor.js";
|
|
34
|
+
import { default as default35 } from "./modules/icons/components/IconDeleteColumnHighlight.js";
|
|
35
|
+
import { default as default36 } from "./modules/icons/components/IconDeleteColumn.js";
|
|
36
|
+
import { default as default37 } from "./modules/icons/components/IconDeleteRowHighlight.js";
|
|
37
|
+
import { default as default38 } from "./modules/icons/components/IconDeleteRow.js";
|
|
38
|
+
import { default as default39 } from "./modules/icons/components/IconDelete.js";
|
|
39
|
+
import { default as default40 } from "./modules/icons/components/IconDepositeInbox.js";
|
|
40
|
+
import { default as default41 } from "./modules/icons/components/IconDownload.js";
|
|
41
|
+
import { default as default42 } from "./modules/icons/components/IconEdit.js";
|
|
42
|
+
import { default as default43 } from "./modules/icons/components/IconError.js";
|
|
43
|
+
import { default as default44 } from "./modules/icons/components/IconExternalLink.js";
|
|
44
|
+
import { default as default45 } from "./modules/icons/components/IconFiles.js";
|
|
45
|
+
import { default as default46 } from "./modules/icons/components/IconFilter.js";
|
|
46
|
+
import { default as default47 } from "./modules/icons/components/IconFlag.js";
|
|
47
|
+
import { default as default48 } from "./modules/icons/components/IconFolderAdd.js";
|
|
48
48
|
import { default as default49 } from "./modules/icons/components/IconFolderMove.js";
|
|
49
49
|
import { default as default50 } from "./modules/icons/components/IconFolder.js";
|
|
50
50
|
import { default as default51 } from "./modules/icons/components/IconForgoing.js";
|
|
51
51
|
import { default as default52 } from "./modules/icons/components/IconFullScreen.js";
|
|
52
52
|
import { default as default53 } from "./modules/icons/components/IconGlobe.js";
|
|
53
|
-
import { default as default54 } from "./modules/icons/components/
|
|
54
|
-
import { default as default55 } from "./modules/icons/components/
|
|
55
|
-
import { default as default56 } from "./modules/icons/components/
|
|
56
|
-
import { default as default57 } from "./modules/icons/components/
|
|
57
|
-
import { default as default58 } from "./modules/icons/components/
|
|
58
|
-
import { default as default59 } from "./modules/icons/components/
|
|
59
|
-
import { default as default60 } from "./modules/icons/components/
|
|
60
|
-
import { default as default61 } from "./modules/icons/components/
|
|
61
|
-
import { default as default62 } from "./modules/icons/components/
|
|
62
|
-
import { default as default63 } from "./modules/icons/components/
|
|
63
|
-
import { default as default64 } from "./modules/icons/components/
|
|
64
|
-
import { default as default65 } from "./modules/icons/components/
|
|
65
|
-
import { default as default66 } from "./modules/icons/components/
|
|
66
|
-
import { default as default67 } from "./modules/icons/components/
|
|
67
|
-
import { default as default68 } from "./modules/icons/components/
|
|
68
|
-
import { default as default69 } from "./modules/icons/components/
|
|
69
|
-
import { default as default70 } from "./modules/icons/components/
|
|
70
|
-
import { default as default71 } from "./modules/icons/components/
|
|
71
|
-
import { default as default72 } from "./modules/icons/components/
|
|
72
|
-
import { default as default73 } from "./modules/icons/components/
|
|
53
|
+
import { default as default54 } from "./modules/icons/components/IconGroupAvatar.js";
|
|
54
|
+
import { default as default55 } from "./modules/icons/components/IconHeadphone.js";
|
|
55
|
+
import { default as default56 } from "./modules/icons/components/IconHide.js";
|
|
56
|
+
import { default as default57 } from "./modules/icons/components/IconHighlightColumn.js";
|
|
57
|
+
import { default as default58 } from "./modules/icons/components/IconHighlightRow.js";
|
|
58
|
+
import { default as default59 } from "./modules/icons/components/IconHome.js";
|
|
59
|
+
import { default as default60 } from "./modules/icons/components/IconHourglass.js";
|
|
60
|
+
import { default as default61 } from "./modules/icons/components/IconImageSizeLarge.js";
|
|
61
|
+
import { default as default62 } from "./modules/icons/components/IconImageSizeMedium.js";
|
|
62
|
+
import { default as default63 } from "./modules/icons/components/IconImageSizeSmall.js";
|
|
63
|
+
import { default as default64 } from "./modules/icons/components/IconInbox.js";
|
|
64
|
+
import { default as default65 } from "./modules/icons/components/IconInfoCircle.js";
|
|
65
|
+
import { default as default66 } from "./modules/icons/components/IconLandscape.js";
|
|
66
|
+
import { default as default67 } from "./modules/icons/components/IconLink.js";
|
|
67
|
+
import { default as default68 } from "./modules/icons/components/IconListOrder.js";
|
|
68
|
+
import { default as default69 } from "./modules/icons/components/IconLoader.js";
|
|
69
|
+
import { default as default70 } from "./modules/icons/components/IconLock.js";
|
|
70
|
+
import { default as default71 } from "./modules/icons/components/IconMail.js";
|
|
71
|
+
import { default as default72 } from "./modules/icons/components/IconMergeCells.js";
|
|
72
|
+
import { default as default73 } from "./modules/icons/components/IconMessageInfo.js";
|
|
73
73
|
import { default as default74 } from "./modules/icons/components/IconMic.js";
|
|
74
74
|
import { default as default75 } from "./modules/icons/components/IconMinus.js";
|
|
75
75
|
import { default as default76 } from "./modules/icons/components/IconMove.js";
|
|
@@ -93,63 +93,65 @@ import { default as default93 } from "./modules/icons/components/IconRafterLeft.
|
|
|
93
93
|
import { default as default94 } from "./modules/icons/components/IconRafterRight.js";
|
|
94
94
|
import { default as default95 } from "./modules/icons/components/IconRafterUp.js";
|
|
95
95
|
import { default as default96 } from "./modules/icons/components/IconReaction.js";
|
|
96
|
-
import { default as default97 } from "./modules/icons/components/
|
|
97
|
-
import { default as default98 } from "./modules/icons/components/
|
|
98
|
-
import { default as default99 } from "./modules/icons/components/
|
|
99
|
-
import { default as default100 } from "./modules/icons/components/
|
|
100
|
-
import { default as default101 } from "./modules/icons/components/
|
|
101
|
-
import { default as default102 } from "./modules/icons/components/
|
|
102
|
-
import { default as default103 } from "./modules/icons/components/
|
|
103
|
-
import { default as default104 } from "./modules/icons/components/
|
|
104
|
-
import { default as default105 } from "./modules/icons/components/
|
|
105
|
-
import { default as default106 } from "./modules/icons/components/
|
|
106
|
-
import { default as default107 } from "./modules/icons/components/
|
|
107
|
-
import { default as default108 } from "./modules/icons/components/
|
|
108
|
-
import { default as default109 } from "./modules/icons/components/
|
|
109
|
-
import { default as default110 } from "./modules/icons/components/
|
|
110
|
-
import { default as default111 } from "./modules/icons/components/
|
|
111
|
-
import { default as default112 } from "./modules/icons/components/
|
|
112
|
-
import { default as default113 } from "./modules/icons/components/
|
|
113
|
-
import { default as default114 } from "./modules/icons/components/
|
|
114
|
-
import { default as default115 } from "./modules/icons/components/
|
|
115
|
-
import { default as default116 } from "./modules/icons/components/
|
|
116
|
-
import { default as default117 } from "./modules/icons/components/
|
|
117
|
-
import { default as default118 } from "./modules/icons/components/
|
|
118
|
-
import { default as default119 } from "./modules/icons/components/
|
|
119
|
-
import { default as default120 } from "./modules/icons/components/
|
|
120
|
-
import { default as default121 } from "./modules/icons/components/
|
|
121
|
-
import { default as default122 } from "./modules/icons/components/
|
|
122
|
-
import { default as default123 } from "./modules/icons/components/
|
|
123
|
-
import { default as default124 } from "./modules/icons/components/
|
|
124
|
-
import { default as default125 } from "./modules/icons/components/
|
|
125
|
-
import { default as default126 } from "./modules/icons/components/
|
|
126
|
-
import { default as default127 } from "./modules/icons/components/
|
|
127
|
-
import { default as default128 } from "./modules/icons/components/
|
|
128
|
-
import { default as default129 } from "./modules/icons/components/
|
|
129
|
-
import { default as default130 } from "./modules/icons/components/
|
|
130
|
-
import { default as default131 } from "./modules/icons/components/
|
|
131
|
-
import { default as default132 } from "./modules/icons/components/
|
|
132
|
-
import { default as default133 } from "./modules/icons/components/
|
|
96
|
+
import { default as default97 } from "./modules/icons/components/IconReadMail.js";
|
|
97
|
+
import { default as default98 } from "./modules/icons/components/IconRecordPause.js";
|
|
98
|
+
import { default as default99 } from "./modules/icons/components/IconRecordStop.js";
|
|
99
|
+
import { default as default100 } from "./modules/icons/components/IconRecordVideo.js";
|
|
100
|
+
import { default as default101 } from "./modules/icons/components/IconRecord.js";
|
|
101
|
+
import { default as default102 } from "./modules/icons/components/IconRedo.js";
|
|
102
|
+
import { default as default103 } from "./modules/icons/components/IconRefresh.js";
|
|
103
|
+
import { default as default104 } from "./modules/icons/components/IconReset.js";
|
|
104
|
+
import { default as default105 } from "./modules/icons/components/IconRestart.js";
|
|
105
|
+
import { default as default106 } from "./modules/icons/components/IconRestore.js";
|
|
106
|
+
import { default as default107 } from "./modules/icons/components/IconSave.js";
|
|
107
|
+
import { default as default108 } from "./modules/icons/components/IconSearch.js";
|
|
108
|
+
import { default as default109 } from "./modules/icons/components/IconSee.js";
|
|
109
|
+
import { default as default110 } from "./modules/icons/components/IconSend.js";
|
|
110
|
+
import { default as default111 } from "./modules/icons/components/IconSetBackground.js";
|
|
111
|
+
import { default as default112 } from "./modules/icons/components/IconSettings.js";
|
|
112
|
+
import { default as default113 } from "./modules/icons/components/IconShare.js";
|
|
113
|
+
import { default as default114 } from "./modules/icons/components/IconSmartphone.js";
|
|
114
|
+
import { default as default115 } from "./modules/icons/components/IconSmiley.js";
|
|
115
|
+
import { default as default116 } from "./modules/icons/components/IconSortAscendingLetters.js";
|
|
116
|
+
import { default as default117 } from "./modules/icons/components/IconSortDescendingLetters.js";
|
|
117
|
+
import { default as default118 } from "./modules/icons/components/IconSortDescending.js";
|
|
118
|
+
import { default as default119 } from "./modules/icons/components/IconSortTime.js";
|
|
119
|
+
import { default as default120 } from "./modules/icons/components/IconSpeechToText.js";
|
|
120
|
+
import { default as default121 } from "./modules/icons/components/IconSplitCells.js";
|
|
121
|
+
import { default as default122 } from "./modules/icons/components/IconSquareRoot.js";
|
|
122
|
+
import { default as default123 } from "./modules/icons/components/IconSubscript.js";
|
|
123
|
+
import { default as default124 } from "./modules/icons/components/IconSuccessFill.js";
|
|
124
|
+
import { default as default125 } from "./modules/icons/components/IconSuccessOutline.js";
|
|
125
|
+
import { default as default126 } from "./modules/icons/components/IconSuperscript.js";
|
|
126
|
+
import { default as default127 } from "./modules/icons/components/IconTable.js";
|
|
127
|
+
import { default as default128 } from "./modules/icons/components/IconTextBold.js";
|
|
128
|
+
import { default as default129 } from "./modules/icons/components/IconTextColor.js";
|
|
129
|
+
import { default as default130 } from "./modules/icons/components/IconTextHighlight.js";
|
|
130
|
+
import { default as default131 } from "./modules/icons/components/IconTextItalic.js";
|
|
131
|
+
import { default as default132 } from "./modules/icons/components/IconTextPage.js";
|
|
132
|
+
import { default as default133 } from "./modules/icons/components/IconTextSize.js";
|
|
133
133
|
import { default as default134 } from "./modules/icons/components/IconTextToSpeech.js";
|
|
134
134
|
import { default as default135 } from "./modules/icons/components/IconTextTypo.js";
|
|
135
135
|
import { default as default136 } from "./modules/icons/components/IconTextUnderline.js";
|
|
136
136
|
import { default as default137 } from "./modules/icons/components/IconTextVanilla.js";
|
|
137
137
|
import { default as default138 } from "./modules/icons/components/IconTool.js";
|
|
138
138
|
import { default as default139 } from "./modules/icons/components/IconTrendingUp.js";
|
|
139
|
-
import { default as default140 } from "./modules/icons/components/
|
|
140
|
-
import { default as default141 } from "./modules/icons/components/
|
|
141
|
-
import { default as default142 } from "./modules/icons/components/
|
|
142
|
-
import { default as default143 } from "./modules/icons/components/
|
|
143
|
-
import { default as default144 } from "./modules/icons/components/
|
|
144
|
-
import { default as default145 } from "./modules/icons/components/
|
|
145
|
-
import { default as default146 } from "./modules/icons/components/
|
|
146
|
-
import { default as default147 } from "./modules/icons/components/
|
|
147
|
-
import { default as default148 } from "./modules/icons/components/
|
|
148
|
-
import { default as default149 } from "./modules/icons/components/
|
|
149
|
-
import { default as default150 } from "./modules/icons/components/
|
|
150
|
-
import { default as default151 } from "./modules/icons/components/
|
|
151
|
-
import { default as default152 } from "./modules/icons/components/
|
|
152
|
-
import { default as default153 } from "./modules/icons/components/
|
|
139
|
+
import { default as default140 } from "./modules/icons/components/IconUndoAll.js";
|
|
140
|
+
import { default as default141 } from "./modules/icons/components/IconUndo.js";
|
|
141
|
+
import { default as default142 } from "./modules/icons/components/IconUnlink.js";
|
|
142
|
+
import { default as default143 } from "./modules/icons/components/IconUnlock.js";
|
|
143
|
+
import { default as default144 } from "./modules/icons/components/IconUnreadMail.js";
|
|
144
|
+
import { default as default145 } from "./modules/icons/components/IconUpload.js";
|
|
145
|
+
import { default as default146 } from "./modules/icons/components/IconUserSearch.js";
|
|
146
|
+
import { default as default147 } from "./modules/icons/components/IconUser.js";
|
|
147
|
+
import { default as default148 } from "./modules/icons/components/IconUsers.js";
|
|
148
|
+
import { default as default149 } from "./modules/icons/components/IconVideo.js";
|
|
149
|
+
import { default as default150 } from "./modules/icons/components/IconViewCalendar.js";
|
|
150
|
+
import { default as default151 } from "./modules/icons/components/IconViewList.js";
|
|
151
|
+
import { default as default152 } from "./modules/icons/components/IconWand.js";
|
|
152
|
+
import { default as default153 } from "./modules/icons/components/IconWrite.js";
|
|
153
|
+
import { default as default154 } from "./modules/icons/components/IconZoomIn.js";
|
|
154
|
+
import { default as default155 } from "./modules/icons/components/IconZoomOut.js";
|
|
153
155
|
export {
|
|
154
156
|
default3 as IconAdd,
|
|
155
157
|
default2 as IconAddUser,
|
|
@@ -173,57 +175,57 @@ export {
|
|
|
173
175
|
default22 as IconCalendar,
|
|
174
176
|
default21 as IconCalendarLight,
|
|
175
177
|
default23 as IconCamera,
|
|
176
|
-
default24 as
|
|
177
|
-
default25 as
|
|
178
|
-
default26 as
|
|
179
|
-
default27 as
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
default31 as
|
|
184
|
-
default32 as
|
|
185
|
-
default33 as
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
default41 as
|
|
194
|
-
default42 as
|
|
195
|
-
default43 as
|
|
196
|
-
default44 as
|
|
197
|
-
default45 as
|
|
198
|
-
default46 as
|
|
199
|
-
default47 as
|
|
200
|
-
default48 as IconFlag,
|
|
178
|
+
default24 as IconCenter,
|
|
179
|
+
default25 as IconCheck,
|
|
180
|
+
default26 as IconChecklist,
|
|
181
|
+
default27 as IconClock,
|
|
182
|
+
default29 as IconClose,
|
|
183
|
+
default28 as IconCloseFullScreen,
|
|
184
|
+
default30 as IconCode,
|
|
185
|
+
default31 as IconCopy,
|
|
186
|
+
default32 as IconCrop,
|
|
187
|
+
default33 as IconCut,
|
|
188
|
+
default39 as IconDelete,
|
|
189
|
+
default34 as IconDeleteColor,
|
|
190
|
+
default36 as IconDeleteColumn,
|
|
191
|
+
default35 as IconDeleteColumnHighlight,
|
|
192
|
+
default38 as IconDeleteRow,
|
|
193
|
+
default37 as IconDeleteRowHighlight,
|
|
194
|
+
default40 as IconDepositeInbox,
|
|
195
|
+
default41 as IconDownload,
|
|
196
|
+
default42 as IconEdit,
|
|
197
|
+
default43 as IconError,
|
|
198
|
+
default44 as IconExternalLink,
|
|
199
|
+
default45 as IconFiles,
|
|
200
|
+
default46 as IconFilter,
|
|
201
|
+
default47 as IconFlag,
|
|
201
202
|
default50 as IconFolder,
|
|
203
|
+
default48 as IconFolderAdd,
|
|
202
204
|
default49 as IconFolderMove,
|
|
203
205
|
default51 as IconForgoing,
|
|
204
206
|
default52 as IconFullScreen,
|
|
205
207
|
default53 as IconGlobe,
|
|
206
|
-
default54 as
|
|
207
|
-
default55 as
|
|
208
|
-
default56 as
|
|
209
|
-
default57 as
|
|
210
|
-
default58 as
|
|
211
|
-
default59 as
|
|
212
|
-
default60 as
|
|
213
|
-
default61 as
|
|
214
|
-
default62 as
|
|
215
|
-
default63 as
|
|
216
|
-
default64 as
|
|
217
|
-
default65 as
|
|
218
|
-
default66 as
|
|
219
|
-
default67 as
|
|
220
|
-
default68 as
|
|
221
|
-
default69 as
|
|
222
|
-
default70 as
|
|
223
|
-
default71 as
|
|
224
|
-
default72 as
|
|
208
|
+
default54 as IconGroupAvatar,
|
|
209
|
+
default55 as IconHeadphone,
|
|
210
|
+
default56 as IconHide,
|
|
211
|
+
default57 as IconHighlightColumn,
|
|
212
|
+
default58 as IconHighlightRow,
|
|
213
|
+
default59 as IconHome,
|
|
214
|
+
default60 as IconHourglass,
|
|
215
|
+
default61 as IconImageSizeLarge,
|
|
216
|
+
default62 as IconImageSizeMedium,
|
|
217
|
+
default63 as IconImageSizeSmall,
|
|
218
|
+
default64 as IconInbox,
|
|
219
|
+
default65 as IconInfoCircle,
|
|
220
|
+
default66 as IconLandscape,
|
|
221
|
+
default67 as IconLink,
|
|
222
|
+
default68 as IconListOrder,
|
|
223
|
+
default69 as IconLoader,
|
|
224
|
+
default70 as IconLock,
|
|
225
|
+
default71 as IconMail,
|
|
226
|
+
default72 as IconMergeCells,
|
|
227
|
+
default73 as IconMessageInfo,
|
|
225
228
|
default74 as IconMic,
|
|
226
|
-
default73 as IconMicOff,
|
|
227
229
|
default75 as IconMinus,
|
|
228
230
|
default76 as IconMove,
|
|
229
231
|
default77 as IconNoColors,
|
|
@@ -246,61 +248,63 @@ export {
|
|
|
246
248
|
default94 as IconRafterRight,
|
|
247
249
|
default95 as IconRafterUp,
|
|
248
250
|
default96 as IconReaction,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
default98 as
|
|
252
|
-
default99 as
|
|
253
|
-
|
|
254
|
-
default102 as
|
|
255
|
-
default103 as
|
|
256
|
-
default104 as
|
|
257
|
-
default105 as
|
|
258
|
-
default106 as
|
|
259
|
-
default107 as
|
|
260
|
-
default108 as
|
|
261
|
-
default109 as
|
|
262
|
-
default110 as
|
|
263
|
-
default111 as
|
|
264
|
-
default112 as
|
|
265
|
-
default113 as
|
|
266
|
-
default114 as
|
|
267
|
-
default115 as
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
default119 as
|
|
272
|
-
default120 as
|
|
273
|
-
default121 as
|
|
274
|
-
default122 as
|
|
275
|
-
default123 as
|
|
276
|
-
default124 as
|
|
277
|
-
default125 as
|
|
278
|
-
default126 as
|
|
279
|
-
default127 as
|
|
280
|
-
default128 as
|
|
281
|
-
default129 as
|
|
282
|
-
default130 as
|
|
283
|
-
default131 as
|
|
284
|
-
default132 as
|
|
251
|
+
default97 as IconReadMail,
|
|
252
|
+
default101 as IconRecord,
|
|
253
|
+
default98 as IconRecordPause,
|
|
254
|
+
default99 as IconRecordStop,
|
|
255
|
+
default100 as IconRecordVideo,
|
|
256
|
+
default102 as IconRedo,
|
|
257
|
+
default103 as IconRefresh,
|
|
258
|
+
default104 as IconReset,
|
|
259
|
+
default105 as IconRestart,
|
|
260
|
+
default106 as IconRestore,
|
|
261
|
+
default107 as IconSave,
|
|
262
|
+
default108 as IconSearch,
|
|
263
|
+
default109 as IconSee,
|
|
264
|
+
default110 as IconSend,
|
|
265
|
+
default111 as IconSetBackground,
|
|
266
|
+
default112 as IconSettings,
|
|
267
|
+
default113 as IconShare,
|
|
268
|
+
default114 as IconSmartphone,
|
|
269
|
+
default115 as IconSmiley,
|
|
270
|
+
default116 as IconSortAscendingLetters,
|
|
271
|
+
default118 as IconSortDescending,
|
|
272
|
+
default117 as IconSortDescendingLetters,
|
|
273
|
+
default119 as IconSortTime,
|
|
274
|
+
default120 as IconSpeechToText,
|
|
275
|
+
default121 as IconSplitCells,
|
|
276
|
+
default122 as IconSquareRoot,
|
|
277
|
+
default123 as IconSubscript,
|
|
278
|
+
default124 as IconSuccessFill,
|
|
279
|
+
default125 as IconSuccessOutline,
|
|
280
|
+
default126 as IconSuperscript,
|
|
281
|
+
default127 as IconTable,
|
|
282
|
+
default128 as IconTextBold,
|
|
283
|
+
default129 as IconTextColor,
|
|
284
|
+
default130 as IconTextHighlight,
|
|
285
|
+
default131 as IconTextItalic,
|
|
286
|
+
default132 as IconTextPage,
|
|
287
|
+
default133 as IconTextSize,
|
|
285
288
|
default134 as IconTextToSpeech,
|
|
286
|
-
default133 as IconTextToSpeechOff,
|
|
287
289
|
default135 as IconTextTypo,
|
|
288
290
|
default136 as IconTextUnderline,
|
|
289
291
|
default137 as IconTextVanilla,
|
|
290
292
|
default138 as IconTool,
|
|
291
293
|
default139 as IconTrendingUp,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
default142 as
|
|
295
|
-
default143 as
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
default148 as
|
|
301
|
-
default149 as
|
|
302
|
-
default150 as
|
|
303
|
-
default151 as
|
|
304
|
-
default152 as
|
|
305
|
-
default153 as
|
|
294
|
+
default141 as IconUndo,
|
|
295
|
+
default140 as IconUndoAll,
|
|
296
|
+
default142 as IconUnlink,
|
|
297
|
+
default143 as IconUnlock,
|
|
298
|
+
default144 as IconUnreadMail,
|
|
299
|
+
default145 as IconUpload,
|
|
300
|
+
default147 as IconUser,
|
|
301
|
+
default146 as IconUserSearch,
|
|
302
|
+
default148 as IconUsers,
|
|
303
|
+
default149 as IconVideo,
|
|
304
|
+
default150 as IconViewCalendar,
|
|
305
|
+
default151 as IconViewList,
|
|
306
|
+
default152 as IconWand,
|
|
307
|
+
default153 as IconWrite,
|
|
308
|
+
default154 as IconZoomIn,
|
|
309
|
+
default155 as IconZoomOut
|
|
306
310
|
};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export declare const useAutosizeTextarea: (
|
|
1
|
+
export declare const useAutosizeTextarea: (
|
|
2
|
+
/**
|
|
3
|
+
* Set autofocus when editing content
|
|
4
|
+
*/
|
|
5
|
+
autoFocus?: boolean) => [React.RefObject<HTMLTextAreaElement>, (event: React.FocusEvent<HTMLTextAreaElement>) => void, () => void];
|
|
@@ -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;
|
|
@@ -3,7 +3,6 @@ import { forwardRef, useId, useImperativeHandle, Suspense, lazy } from "react";
|
|
|
3
3
|
import { EditorContent } from "@tiptap/react";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useEdificeClient } from "../../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
6
|
-
import { useCantooAdaptTextBox } from "../../hooks/useCantooAdaptTextBox.js";
|
|
7
6
|
import { useMathsStyles } from "../../hooks/useMathsStyles.js";
|
|
8
7
|
import { useTipTapEditor } from "../../hooks/useTipTapEditor.js";
|
|
9
8
|
import { useMediaLibraryEditor } from "../../hooks/useMediaLibraryEditor.js";
|
|
@@ -18,7 +17,7 @@ import TableToolbar from "../Toolbar/TableToolbar.js";
|
|
|
18
17
|
import BubbleMenuEditImage from "../BubbleMenuEditImage/BubbleMenuEditImage.js";
|
|
19
18
|
import MediaLibrary from "../../../multimedia/MediaLibrary/MediaLibrary.js";
|
|
20
19
|
import LoadingScreen from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
21
|
-
const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/MathsModal.js")), ImageEditor = /* @__PURE__ */ lazy(async () => await import("../../../multimedia/ImageEditor/components/ImageEditor.js")),
|
|
20
|
+
const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/MathsModal.js")), ImageEditor = /* @__PURE__ */ lazy(async () => await import("../../../multimedia/ImageEditor/components/ImageEditor.js")), Editor = /* @__PURE__ */ forwardRef(({
|
|
22
21
|
id,
|
|
23
22
|
content,
|
|
24
23
|
mode = "read",
|
|
@@ -27,20 +26,21 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
27
26
|
focus = "start",
|
|
28
27
|
placeholder = "",
|
|
29
28
|
visibility = "protected",
|
|
30
|
-
onContentChange
|
|
29
|
+
onContentChange,
|
|
30
|
+
extensions
|
|
31
31
|
}, ref) => {
|
|
32
32
|
const editorId = useId(), {
|
|
33
33
|
appCode
|
|
34
34
|
} = useEdificeClient(), {
|
|
35
35
|
editor,
|
|
36
36
|
editable
|
|
37
|
-
} = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility), {
|
|
37
|
+
} = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility, extensions), {
|
|
38
38
|
ref: mediaLibraryModalRef,
|
|
39
39
|
...mediaLibraryModalHandlers
|
|
40
40
|
} = useMediaLibraryEditor(editor), {
|
|
41
41
|
toggle: toggleMathsModal,
|
|
42
42
|
...mathsModalHandlers
|
|
43
|
-
} = useMathsModal(editor),
|
|
43
|
+
} = useMathsModal(editor), imageModal = useImageModal(editor, "media-library", visibility), linkToolbarHandlers = useLinkToolbar(editor, mediaLibraryModalRef), speechSynthetisis = useSpeechSynthetisis(editor);
|
|
44
44
|
if (useMathsStyles(), useImperativeHandle(ref, () => ({
|
|
45
45
|
getContent: (as) => {
|
|
46
46
|
switch (as) {
|
|
@@ -65,7 +65,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
65
65
|
editable
|
|
66
66
|
}, children: [
|
|
67
67
|
/* @__PURE__ */ jsxs("div", { className: borderClass, children: [
|
|
68
|
-
toolbar !== "none" && editable && /* @__PURE__ */ jsx(EditorToolbar, { mediaLibraryRef: mediaLibraryModalRef, toggleMathsModal
|
|
68
|
+
toolbar !== "none" && editable && /* @__PURE__ */ jsx(EditorToolbar, { mediaLibraryRef: mediaLibraryModalRef, toggleMathsModal }),
|
|
69
69
|
/* @__PURE__ */ jsx(EditorContent, { id: id ?? editorId, editor, className: contentClass })
|
|
70
70
|
] }),
|
|
71
71
|
/* @__PURE__ */ jsx(LinkToolbar, { editor, ...linkToolbarHandlers }),
|
|
@@ -74,8 +74,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
74
74
|
/* @__PURE__ */ jsxs(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingScreen, {}), children: [
|
|
75
75
|
editable && /* @__PURE__ */ jsx(MediaLibrary, { appCode, visibility, multiple: !0, ref: mediaLibraryModalRef, ...mediaLibraryModalHandlers }),
|
|
76
76
|
editable && mathsModalHandlers.isOpen && /* @__PURE__ */ jsx(MathsModal, { ...mathsModalHandlers }),
|
|
77
|
-
editable && (imageModal == null ? void 0 : imageModal.isOpen) && (imageModal == null ? void 0 : imageModal.currentImage) && /* @__PURE__ */ jsx(ImageEditor, { altText: imageModal == null ? void 0 : imageModal.currentImage.alt, legend: imageModal == null ? void 0 : imageModal.currentImage.title, image: imageModal == null ? void 0 : imageModal.currentImage.src, isOpen: imageModal.isOpen, onCancel: imageModal.handleCancel, onSave: imageModal.handleSave, onError: console.error })
|
|
78
|
-
editable && cantooAdaptTextBox.isOpen && /* @__PURE__ */ jsx(CantooAdaptTextBoxView, {})
|
|
77
|
+
editable && (imageModal == null ? void 0 : imageModal.isOpen) && (imageModal == null ? void 0 : imageModal.currentImage) && /* @__PURE__ */ jsx(ImageEditor, { altText: imageModal == null ? void 0 : imageModal.currentImage.alt, legend: imageModal == null ? void 0 : imageModal.currentImage.title, image: imageModal == null ? void 0 : imageModal.currentImage.src, isOpen: imageModal.isOpen, onCancel: imageModal.handleCancel, onSave: imageModal.handleSave, onError: console.error })
|
|
79
78
|
] })
|
|
80
79
|
] });
|
|
81
80
|
});
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { MediaLibraryRef } from '../../../multimedia';
|
|
3
|
-
import { CantooAdaptTextBox } from '../../hooks/useCantooAdaptTextBox.ts';
|
|
4
3
|
interface Props {
|
|
5
4
|
/** Ref to a MediaLibrary instance */
|
|
6
5
|
mediaLibraryRef: RefObject<MediaLibraryRef>;
|
|
7
6
|
/** API to open/close a Math modal. */
|
|
8
7
|
toggleMathsModal: () => void;
|
|
9
|
-
/** API to open/close a Cantoo modal. */
|
|
10
|
-
cantooAdaptTextBoxRef: CantooAdaptTextBox;
|
|
11
8
|
}
|
|
12
|
-
export declare const EditorToolbar: ({ mediaLibraryRef, toggleMathsModal
|
|
9
|
+
export declare const EditorToolbar: ({ mediaLibraryRef, toggleMathsModal }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
10
|
export {};
|
|
@@ -25,25 +25,20 @@ import { EditorToolbarPlusMenu } from "./EditorToolbar.PlusMenu.js";
|
|
|
25
25
|
import { EditorToolbarTextColor } from "./EditorToolbar.TextColor.js";
|
|
26
26
|
import { EditorToolbarTextSize } from "./EditorToolbar.TextSize.js";
|
|
27
27
|
import { EditorToolbarTypography } from "./EditorToolbar.Typography.js";
|
|
28
|
-
import {
|
|
29
|
-
import { useCantooEditor } from "../../hooks/useCantooEditor.js";
|
|
28
|
+
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
30
29
|
import { useActionOptions } from "../../hooks/useActionOptions.js";
|
|
31
30
|
import { useSpeechRecognition } from "../../hooks/useSpeechRecognition.js";
|
|
32
|
-
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
33
31
|
import { Toolbar } from "../../../../components/Toolbar/Toolbar.js";
|
|
34
32
|
const EditorToolbar = ({
|
|
35
33
|
mediaLibraryRef,
|
|
36
|
-
toggleMathsModal
|
|
37
|
-
cantooAdaptTextBoxRef
|
|
34
|
+
toggleMathsModal
|
|
38
35
|
}) => {
|
|
39
36
|
const {
|
|
40
37
|
t
|
|
41
38
|
} = useTranslation(), {
|
|
42
39
|
id,
|
|
43
40
|
editor
|
|
44
|
-
} = useEditorContext(), {
|
|
45
|
-
isAvailable: canUseCantoo
|
|
46
|
-
} = useCantooEditor(editor), [plusOptions, listOptions, alignmentOptions] = useActionOptions(editor, toggleMathsModal, mediaLibraryRef), {
|
|
41
|
+
} = useEditorContext(), [plusOptions, listOptions, alignmentOptions] = useActionOptions(editor, toggleMathsModal, mediaLibraryRef), {
|
|
47
42
|
isAvailable: canRecognizeSpeech,
|
|
48
43
|
isActive: speechRecognition,
|
|
49
44
|
toggle: toggleSpeechRecognition
|
|
@@ -170,21 +165,11 @@ const EditorToolbar = ({
|
|
|
170
165
|
name: "speechtotext",
|
|
171
166
|
tooltip: t("tiptap.toolbar.stt")
|
|
172
167
|
},
|
|
173
|
-
//------------- CANTOO ---------------//
|
|
174
|
-
{
|
|
175
|
-
type: "dropdown",
|
|
176
|
-
props: {
|
|
177
|
-
children: (triggerProps) => /* @__PURE__ */ jsx(EditorToolbarCantoo, { triggerProps, openCantooAdaptTextBox: cantooAdaptTextBoxRef.toggle, isCantooAdaptTextBoxOpen: cantooAdaptTextBoxRef.isOpen })
|
|
178
|
-
},
|
|
179
|
-
name: "cantoo",
|
|
180
|
-
visibility: canUseCantoo ? "show" : "hide",
|
|
181
|
-
tooltip: t("tiptap.toolbar.cantoo.choice")
|
|
182
|
-
},
|
|
183
168
|
//------------------------------------//
|
|
184
169
|
{
|
|
185
170
|
type: "divider",
|
|
186
171
|
name: "div-speech",
|
|
187
|
-
visibility: canRecognizeSpeech
|
|
172
|
+
visibility: canRecognizeSpeech ? "show" : "hide"
|
|
188
173
|
},
|
|
189
174
|
//--------------- TYPOGRAPHY ---------------//
|
|
190
175
|
{
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|