@edifice.io/react 2.3.2-develop-wl.20250925113622 → 2.3.2-develop.20250929154231

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 (70) hide show
  1. package/dist/components/Avatar/Avatar.d.ts +5 -0
  2. package/dist/components/Avatar/Avatar.js +8 -2
  3. package/dist/components/AvatarGroup/AvatarGroup.d.ts +10 -0
  4. package/dist/components/AvatarGroup/AvatarGroup.js +5 -5
  5. package/dist/components/Dropdown/Dropdown.d.ts +10 -4
  6. package/dist/components/Dropdown/Dropdown.js +24 -8
  7. package/dist/components/Flex/Flex.d.ts +2 -1
  8. package/dist/components/Flex/Flex.js +8 -6
  9. package/dist/components/Layout/Layout.d.ts +5 -1
  10. package/dist/components/Layout/Layout.js +5 -2
  11. package/dist/components/RadioCard/RadioCard.d.ts +37 -0
  12. package/dist/components/RadioCard/index.d.ts +2 -0
  13. package/dist/components/StackedGroup/StackedGroup.d.ts +5 -0
  14. package/dist/components/StackedGroup/StackedGroup.js +10 -8
  15. package/dist/components/Stepper/Stepper.d.ts +18 -0
  16. package/dist/components/Stepper/Stepper.js +15 -0
  17. package/dist/components/Stepper/index.d.ts +1 -0
  18. package/dist/components/Tabs/components/Tabs.d.ts +27 -3
  19. package/dist/components/Tabs/components/Tabs.js +9 -3
  20. package/dist/components/Tabs/components/TabsList.d.ts +15 -1
  21. package/dist/components/Tabs/components/TabsList.js +15 -5
  22. package/dist/components/Tabs/components/TabsPanel.d.ts +9 -1
  23. package/dist/components/Tabs/components/TabsPanel.js +8 -3
  24. package/dist/components/index.d.ts +1 -0
  25. package/dist/editor.js +18 -16
  26. package/dist/hooks/useDropdown/useDropdown.d.ts +2 -0
  27. package/dist/hooks/useDropdown/useDropdown.js +2 -0
  28. package/dist/icons-nav.js +28 -26
  29. package/dist/icons.js +190 -184
  30. package/dist/index.js +124 -120
  31. package/dist/modules/editor/components/NodeView/IframeNodeView.d.ts +2 -0
  32. package/dist/modules/editor/components/NodeView/IframeNodeView.js +10 -0
  33. package/dist/modules/editor/components/NodeView/index.d.ts +1 -0
  34. package/dist/modules/editor/components/Renderer/MediaRenderer.js +20 -6
  35. package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +1 -1
  36. package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +1 -1
  37. package/dist/modules/editor/hooks/useResizeMedia.d.ts +4 -1
  38. package/dist/modules/editor/hooks/useResizeMedia.js +33 -21
  39. package/dist/modules/editor/hooks/useTipTapEditor.js +3 -3
  40. package/dist/modules/icons/components/IconMegaphone.d.ts +7 -0
  41. package/dist/modules/icons/components/IconMegaphone.js +12 -0
  42. package/dist/modules/icons/components/IconNotes.d.ts +7 -0
  43. package/dist/modules/icons/components/IconNotes.js +13 -0
  44. package/dist/modules/icons/components/IconUnion.d.ts +7 -0
  45. package/dist/modules/icons/components/IconUnion.js +15 -0
  46. package/dist/modules/icons/components/apps/IconCommunities.js +2 -2
  47. package/dist/modules/icons/components/index.d.ts +3 -0
  48. package/dist/modules/icons/components/nav/IconCommunities.d.ts +7 -0
  49. package/dist/modules/icons/components/nav/IconCommunities.js +12 -0
  50. package/dist/modules/icons/components/nav/index.d.ts +1 -0
  51. package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +57 -2
  52. package/dist/modules/modals/ResourceModal/ResourceModal.js +20 -16
  53. package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +1 -1
  54. package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +12 -6
  55. package/dist/modules/modals/ShareModal/ShareModal.js +2 -0
  56. package/dist/modules/modals/ShareModal/hooks/useShareRightDisabled.d.ts +8 -0
  57. package/dist/modules/modals/ShareModal/hooks/useShareRightDisabled.js +11 -0
  58. package/dist/modules/modals/ShareModal/hooks/useShareRightVisible.d.ts +11 -0
  59. package/dist/modules/modals/ShareModal/hooks/useShareRightVisible.js +11 -0
  60. package/dist/modules/multimedia/FileCard/FileCard.d.ts +13 -2
  61. package/dist/modules/multimedia/FileCard/FileCard.js +15 -5
  62. package/dist/modules/multimedia/FileCard/FileIcon.d.ts +5 -1
  63. package/dist/modules/multimedia/FileCard/FileIcon.js +2 -2
  64. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +3 -1
  65. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +7 -6
  66. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +3 -1
  67. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +7 -2
  68. package/dist/modules/multimedia/index.d.ts +1 -0
  69. package/dist/multimedia.js +12 -10
  70. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -36,67 +36,69 @@ import { default as default36 } from "./components/Select/Select.js";
36
36
  import { default as default37 } from "./components/Skeleton/ButtonSkeleton.js";
37
37
  import { default as default38 } from "./components/Skeleton/TextSkeleton.js";
38
38
  import { default as default39 } from "./components/StackedGroup/StackedGroup.js";
39
- import { default as default40 } from "./components/Switch/Switch.js";
40
- import { default as default41 } from "./components/Table/components/Table.js";
41
- import { default as default42 } from "./components/TextArea/TextArea.js";
42
- import { default as default43 } from "./components/Tooltip/Tooltip.js";
39
+ import { default as default40 } from "./components/Stepper/Stepper.js";
40
+ import { default as default41 } from "./components/Switch/Switch.js";
41
+ import { default as default42 } from "./components/Table/components/Table.js";
42
+ import { default as default43 } from "./components/TextArea/TextArea.js";
43
+ import { default as default44 } from "./components/Tooltip/Tooltip.js";
43
44
  import { DndTree } from "./components/Tree/components/DndTree.js";
44
- import { default as default44 } from "./components/Tree/components/SortableTree.js";
45
- import { default as default45 } from "./components/Tree/components/Tree.js";
46
- import { default as default46 } from "./components/TreeView/TreeView.js";
47
- import { default as default47 } from "./components/VisuallyHidden/VisuallyHidden.js";
48
- import { default as default48 } from "./hooks/useBookmark/useBookmark.js";
49
- import { default as default49 } from "./hooks/useBreakpoint/useBreakpoint.js";
50
- import { default as default50 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
51
- import { default as default51 } from "./hooks/useCantoo/useCantoo.js";
52
- import { default as default52 } from "./hooks/useClickOutside/useClickOutside.js";
53
- import { default as default53 } from "./hooks/useConversation/useConversation.js";
54
- import { default as default54 } from "./hooks/useDate/useDate.js";
55
- import { default as default55 } from "./hooks/useDebounce/useDebounce.js";
56
- import { default as default56 } from "./hooks/useDirectory/useDirectory.js";
57
- import { default as default57 } from "./hooks/useDropdown/useDropdown.js";
58
- import { default as default58 } from "./hooks/useDropzone/useDropzone.js";
59
- import { default as default59 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
60
- import { default as default60 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
61
- import { default as default61 } from "./hooks/useHover/useHover.js";
62
- import { default as default62 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
63
- import { default as default63 } from "./hooks/useImage/useImage.js";
64
- import { default as default64 } from "./hooks/useIsAdml/useIsAdml.js";
65
- import { default as default65 } from "./hooks/useKeyPress/useKeyPress.js";
66
- import { default as default66 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
67
- import { default as default67 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
68
- import { default as default68 } from "./hooks/useScrollToTop/useScrollToTop.js";
69
- import { default as default69 } from "./hooks/useTitle/useTitle.js";
70
- import { default as default70 } from "./hooks/useToast/useToast.js";
71
- import { default as default71 } from "./hooks/useToggle/useToggle.js";
72
- import { default as default72 } from "./hooks/useTrapFocus/useTrapFocus.js";
73
- import { default as default73 } from "./hooks/useTrashedResource/useTrashedResource.js";
74
- import { default as default74 } from "./hooks/useUpload/useUpload.js";
75
- import { default as default75 } from "./hooks/useUploadFiles/useUploadFiles.js";
76
- import { default as default76 } from "./hooks/useUser/useUser.js";
77
- import { default as default77 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
78
- import { default as default78 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
79
- import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default79 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
80
- import { default as default80 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
81
- import { default as default81 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
82
- import { default as default82 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
83
- import { default as default83 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
84
- import { default as default84 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
85
- import { default as default85 } from "./modules/modals/PublishModal/PublishModal.js";
86
- import { default as default86 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
87
- import { default as default87 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
88
- import { default as default88 } from "./modules/modals/ShareModal/ShareModal.js";
89
- import { default as default89 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
90
- import { default as default90 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
91
- import { default as default91 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
92
- import { default as default92 } from "./modules/multimedia/Embed/Embed.js";
93
- import { default as default93 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
94
- import { default as default94 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
95
- import { default as default95 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
96
- import { default as default96 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
97
- import { default as default97 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
98
- import { default as default98 } from "./modules/multimedia/Workspace/Workspace.js";
99
- import { default as default99 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
45
+ import { default as default45 } from "./components/Tree/components/SortableTree.js";
46
+ import { default as default46 } from "./components/Tree/components/Tree.js";
47
+ import { default as default47 } from "./components/TreeView/TreeView.js";
48
+ import { default as default48 } from "./components/VisuallyHidden/VisuallyHidden.js";
49
+ import { default as default49 } from "./hooks/useBookmark/useBookmark.js";
50
+ import { default as default50 } from "./hooks/useBreakpoint/useBreakpoint.js";
51
+ import { default as default51 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
52
+ import { default as default52 } from "./hooks/useCantoo/useCantoo.js";
53
+ import { default as default53 } from "./hooks/useClickOutside/useClickOutside.js";
54
+ import { default as default54 } from "./hooks/useConversation/useConversation.js";
55
+ import { default as default55 } from "./hooks/useDate/useDate.js";
56
+ import { default as default56 } from "./hooks/useDebounce/useDebounce.js";
57
+ import { default as default57 } from "./hooks/useDirectory/useDirectory.js";
58
+ import { default as default58 } from "./hooks/useDropdown/useDropdown.js";
59
+ import { default as default59 } from "./hooks/useDropzone/useDropzone.js";
60
+ import { default as default60 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
61
+ import { default as default61 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
62
+ import { default as default62 } from "./hooks/useHover/useHover.js";
63
+ import { default as default63 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
64
+ import { default as default64 } from "./hooks/useImage/useImage.js";
65
+ import { default as default65 } from "./hooks/useIsAdml/useIsAdml.js";
66
+ import { default as default66 } from "./hooks/useKeyPress/useKeyPress.js";
67
+ import { default as default67 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
68
+ import { default as default68 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
69
+ import { default as default69 } from "./hooks/useScrollToTop/useScrollToTop.js";
70
+ import { default as default70 } from "./hooks/useTitle/useTitle.js";
71
+ import { default as default71 } from "./hooks/useToast/useToast.js";
72
+ import { default as default72 } from "./hooks/useToggle/useToggle.js";
73
+ import { default as default73 } from "./hooks/useTrapFocus/useTrapFocus.js";
74
+ import { default as default74 } from "./hooks/useTrashedResource/useTrashedResource.js";
75
+ import { default as default75 } from "./hooks/useUpload/useUpload.js";
76
+ import { default as default76 } from "./hooks/useUploadFiles/useUploadFiles.js";
77
+ import { default as default77 } from "./hooks/useUser/useUser.js";
78
+ import { default as default78 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
79
+ import { default as default79 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
80
+ import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default80 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
81
+ import { default as default81 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
82
+ import { default as default82 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
83
+ import { default as default83 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
84
+ import { default as default84 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
85
+ import { default as default85 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
86
+ import { default as default86 } from "./modules/modals/PublishModal/PublishModal.js";
87
+ import { default as default87 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
88
+ import { default as default88 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
89
+ import { default as default89 } from "./modules/modals/ShareModal/ShareModal.js";
90
+ import { default as default90 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
91
+ import { default as default91 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
92
+ import { default as default92 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
93
+ import { default as default93 } from "./modules/multimedia/Embed/Embed.js";
94
+ import { default as default94 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
95
+ import { default as default95 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
96
+ import { default as default96 } from "./modules/multimedia/FileCard/FileCard.js";
97
+ import { default as default97 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
98
+ import { default as default98 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
99
+ import { default as default99 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
100
+ import { default as default100 } from "./modules/multimedia/Workspace/Workspace.js";
101
+ import { default as default101 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
100
102
  import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
101
103
  import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
102
104
  import { Column, Grid } from "./components/Grid/Grid.js";
@@ -132,11 +134,11 @@ export {
132
134
  default4 as AppHeader,
133
135
  default5 as AppIcon,
134
136
  default6 as Attachment,
135
- default91 as AudioRecorder,
137
+ default92 as AudioRecorder,
136
138
  default7 as Avatar,
137
139
  default8 as AvatarGroup,
138
140
  default9 as Badge,
139
- default86 as BlogPublic,
141
+ default87 as BlogPublic,
140
142
  default10 as Breadcrumb,
141
143
  default11 as Button,
142
144
  default37 as ButtonSkeleton,
@@ -146,7 +148,7 @@ export {
146
148
  default17 as ColorPickerItem,
147
149
  Column,
148
150
  default18 as Combobox,
149
- default83 as ConfirmModal,
151
+ default84 as ConfirmModal,
150
152
  DefaultPalette,
151
153
  DndTree,
152
154
  default19 as Dropdown,
@@ -156,9 +158,10 @@ export {
156
158
  EdificeClientProvider,
157
159
  EdificeThemeContext,
158
160
  EdificeThemeProvider,
159
- default92 as Embed,
161
+ default93 as Embed,
160
162
  default21 as EmptyScreen,
161
163
  ExternalLinker,
164
+ default96 as FileCard,
162
165
  default22 as Flex,
163
166
  default24 as FormControl,
164
167
  default23 as FormText,
@@ -166,8 +169,8 @@ export {
166
169
  default25 as Heading,
167
170
  default12 as IconButton,
168
171
  default26 as Image,
169
- default93 as ImageEditor,
170
- default94 as ImagePicker,
172
+ default94 as ImageEditor,
173
+ default95 as ImagePicker,
171
174
  default27 as Input,
172
175
  InternalLinker,
173
176
  default28 as Label,
@@ -176,44 +179,45 @@ export {
176
179
  default29 as Loading,
177
180
  default30 as LoadingScreen,
178
181
  default31 as Logo,
179
- default95 as MediaLibrary,
182
+ default97 as MediaLibrary,
180
183
  Menu,
181
184
  MockedProvider,
182
185
  default32 as Modal,
183
- default84 as OnboardingModal,
186
+ default85 as OnboardingModal,
184
187
  Popover,
185
188
  PopoverBody,
186
189
  PopoverFooter,
187
190
  PopoverHeader,
188
191
  default33 as PreventPropagation,
189
- default85 as PublishModal,
192
+ default86 as PublishModal,
190
193
  default34 as Radio,
191
194
  ResourceModal,
192
195
  default35 as SearchBar,
193
196
  default13 as SearchButton,
194
197
  default36 as Select,
195
- default89 as ShareBlog,
196
- default88 as ShareModal,
197
- default44 as SortableTree,
198
+ default90 as ShareBlog,
199
+ default89 as ShareModal,
200
+ default45 as SortableTree,
198
201
  default39 as StackedGroup,
199
- default40 as Switch,
200
- default41 as Table,
202
+ default40 as Stepper,
203
+ default41 as Switch,
204
+ default42 as Table,
201
205
  Tabs,
202
- default42 as TextArea,
206
+ default43 as TextArea,
203
207
  default38 as TextSkeleton,
204
208
  Toolbar,
205
- default43 as Tooltip,
206
- default45 as Tree,
209
+ default44 as Tooltip,
210
+ default46 as Tree,
207
211
  TreeNode,
208
212
  TreeNodeFolderWrapper,
209
- default46 as TreeView,
210
- default96 as VideoEmbed,
211
- default97 as VideoRecorder,
212
- default47 as VisuallyHidden,
213
+ default47 as TreeView,
214
+ default98 as VideoEmbed,
215
+ default99 as VideoRecorder,
216
+ default48 as VisuallyHidden,
213
217
  WORKSPACE_SHARED_FOLDER_ID,
214
218
  WORKSPACE_USER_FOLDER_ID,
215
- default98 as Workspace,
216
- default99 as WorkspaceFolders,
219
+ default100 as Workspace,
220
+ default101 as WorkspaceFolders,
217
221
  addNode,
218
222
  arrayUnique,
219
223
  buildTree,
@@ -241,48 +245,48 @@ export {
241
245
  setRef,
242
246
  updateNode,
243
247
  updateParentIds,
244
- default48 as useBookmark,
245
- default49 as useBreakpoint,
246
- default50 as useBrowserInfo,
247
- default51 as useCantoo,
248
+ default49 as useBookmark,
249
+ default50 as useBreakpoint,
250
+ default51 as useBrowserInfo,
251
+ default52 as useCantoo,
248
252
  useCheckable,
249
- default52 as useClickOutside,
250
- default53 as useConversation,
251
- default54 as useDate,
252
- default55 as useDebounce,
253
- default56 as useDirectory,
254
- default57 as useDropdown,
255
- default58 as useDropzone,
253
+ default53 as useClickOutside,
254
+ default54 as useConversation,
255
+ default55 as useDate,
256
+ default56 as useDebounce,
257
+ default57 as useDirectory,
258
+ default58 as useDropdown,
259
+ default59 as useDropzone,
256
260
  useDropzoneContext,
257
261
  useEdificeClient,
258
- default59 as useEdificeIcons,
262
+ default60 as useEdificeIcons,
259
263
  useEdificeTheme,
260
- default60 as useHasWorkflow,
261
- default61 as useHover,
262
- default62 as useHttpErrorToast,
263
- default63 as useImage,
264
- default64 as useIsAdml,
265
- default65 as useKeyPress,
266
- default66 as useLibraryUrl,
267
- default67 as useMediaLibrary,
268
- default68 as useScrollToTop,
269
- default90 as useShareMutation,
270
- default69 as useTitle,
271
- default70 as useToast,
272
- default71 as useToggle,
273
- default72 as useTrapFocus,
274
- default73 as useTrashedResource,
264
+ default61 as useHasWorkflow,
265
+ default62 as useHover,
266
+ default63 as useHttpErrorToast,
267
+ default64 as useImage,
268
+ default65 as useIsAdml,
269
+ default66 as useKeyPress,
270
+ default67 as useLibraryUrl,
271
+ default68 as useMediaLibrary,
272
+ default69 as useScrollToTop,
273
+ default91 as useShareMutation,
274
+ default70 as useTitle,
275
+ default71 as useToast,
276
+ default72 as useToggle,
277
+ default73 as useTrapFocus,
278
+ default74 as useTrashedResource,
275
279
  useTreeSortable,
276
280
  useTreeView,
277
- default87 as useUpdateMutation,
278
- default74 as useUpload,
279
- default75 as useUploadFiles,
280
- default76 as useUser,
281
- default77 as useWorkspaceFile,
282
- default78 as useWorkspaceFolders,
283
- default79 as useWorkspaceFoldersTree,
284
- default80 as useWorkspaceSearch,
285
- default81 as useXitiTrackPageLoad,
286
- default82 as useZendeskGuide,
281
+ default88 as useUpdateMutation,
282
+ default75 as useUpload,
283
+ default76 as useUploadFiles,
284
+ default77 as useUser,
285
+ default78 as useWorkspaceFile,
286
+ default79 as useWorkspaceFolders,
287
+ default80 as useWorkspaceFoldersTree,
288
+ default81 as useWorkspaceSearch,
289
+ default82 as useXitiTrackPageLoad,
290
+ default83 as useZendeskGuide,
287
291
  wrapTreeNode
288
292
  };
@@ -0,0 +1,2 @@
1
+ declare const IframeNodeView: (Component: any) => import('@tiptap/core').Node<import('@edifice.io/tiptap-extensions/iframe').IframeOptions, any>;
2
+ export default IframeNodeView;
@@ -0,0 +1,10 @@
1
+ import { Iframe } from "@edifice.io/tiptap-extensions/iframe";
2
+ import { ReactNodeViewRenderer } from "@tiptap/react";
3
+ const IframeNodeView = (Component) => Iframe.extend({
4
+ addNodeView() {
5
+ return ReactNodeViewRenderer(Component);
6
+ }
7
+ });
8
+ export {
9
+ IframeNodeView as default
10
+ };
@@ -5,3 +5,4 @@ export { default as ImageNodeView } from './ImageNodeView';
5
5
  export { default as LinkerNodeView } from './LinkerNodeView';
6
6
  export { default as VideoNodeView } from './VideoNodeView';
7
7
  export { default as InformationPaneNodeView } from './InformationPaneNodeView';
8
+ export { default as IframeNodeView } from './IframeNodeView';
@@ -18,7 +18,7 @@ const MediaRenderer = (props) => {
18
18
  startVerticalResize,
19
19
  stopVerticalResize,
20
20
  isVerticalResizeActive
21
- } = useResizeMedia(props, resizableMedia), alignContent = (textalign) => {
21
+ } = useResizeMedia(props, resizableMedia), width = node.attrs.width || 560, height = node.attrs.height || Math.round(width * 9 / 16), alignContent = (textalign) => {
22
22
  switch (textalign) {
23
23
  case "center":
24
24
  case "justify":
@@ -53,11 +53,25 @@ const MediaRenderer = (props) => {
53
53
  element.removeEventListener("play", onVideoPlay);
54
54
  };
55
55
  }, []), /* @__PURE__ */ jsx(NodeViewWrapper, { style: alignContent(node.attrs.textAlign), children: /* @__PURE__ */ jsxs("div", { className: "media-node-view", children: [
56
- /* @__PURE__ */ jsx("div", { "data-drag-handle": !0, children: node.type.name === "custom-image" ? /* @__PURE__ */ jsxs(Fragment, { children: [
57
- /* @__PURE__ */ jsx(Image, { src: node.attrs.src, alt: node.attrs.alt, title: node.attrs.title, width: node.attrs.width, style: node.attrs.style, height: node.attrs.height, className: "custom-image", ref: resizableMedia }),
58
- node.attrs.title && // Display legend (set in title attribute) if it exists
59
- /* @__PURE__ */ jsx("em", { className: "custom-image-legend caption text-align-left", children: node.attrs.title })
60
- ] }) : /* @__PURE__ */ jsx("video", { ref: resizableMedia, controls: node.attrs.controls === "true", src: node.attrs.src, width: node.attrs.width, height: node.attrs.height, "data-video-resolution": `${node.attrs.width}x${node.attrs.height}`, "data-document-id": node.attrs.documentId, "data-document-is-captation": node.attrs.isCaptation, children: /* @__PURE__ */ jsx("source", { src: node.attrs.src }) }) }),
56
+ /* @__PURE__ */ jsx("div", { "data-drag-handle": !0, children: (() => {
57
+ switch (node.type.name) {
58
+ case "custom-image":
59
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
60
+ /* @__PURE__ */ jsx(Image, { src: node.attrs.src, alt: node.attrs.alt, title: node.attrs.title, width: node.attrs.width, style: node.attrs.style, height: node.attrs.height, className: "custom-image", ref: resizableMedia }),
61
+ node.attrs.title && // Display legend (set in title attribute) if it exists
62
+ /* @__PURE__ */ jsx("em", { className: "custom-image-legend caption text-align-left", children: node.attrs.title })
63
+ ] });
64
+ case "video":
65
+ return /* @__PURE__ */ jsx("video", { ref: resizableMedia, controls: node.attrs.controls === "true", src: node.attrs.src, width: node.attrs.width, height: node.attrs.height, "data-video-resolution": `${node.attrs.width}x${node.attrs.height}`, "data-document-id": node.attrs.documentId, "data-document-is-captation": node.attrs.isCaptation, children: /* @__PURE__ */ jsx("source", { src: node.attrs.src }) });
66
+ case "iframe":
67
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
68
+ /* @__PURE__ */ jsx("div", { className: "iframe-node-view" }),
69
+ /* @__PURE__ */ jsx("iframe", { ref: resizableMedia, src: node.attrs.src, width, height, allowFullScreen: node.attrs.allowfullscreen ?? !0, style: node.attrs.style })
70
+ ] });
71
+ default:
72
+ return null;
73
+ }
74
+ })() }),
61
75
  /* @__PURE__ */ jsx("div", { className: `vertical-resize-handle ${isVerticalResizeActive ? "vertical-resize-active" : ""}`, title: t("tiptap.media.resize"), onMouseDown: (e) => {
62
76
  e.stopPropagation(), startVerticalResize(e);
63
77
  }, onMouseUp: (e) => {
@@ -46,7 +46,7 @@ const TableToolbarAddMenu = ({
46
46
  }];
47
47
  return /* @__PURE__ */ jsxs(Fragment, { children: [
48
48
  /* @__PURE__ */ jsx(Tooltip, { message: t("tiptap.table.toolbar.tooltip.add"), placement: "top", children: /* @__PURE__ */ jsx(Dropdown.Trigger, { variant: "ghost", label: t("tiptap.table.toolbar.add") }) }),
49
- /* @__PURE__ */ jsx(Dropdown.Menu, { children: addOptions.map((option) => /* @__PURE__ */ jsx("div", { onMouseDown: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: option.onClick, children: option.label }, option.key) })) })
49
+ /* @__PURE__ */ jsx(Dropdown.Menu, { children: addOptions.map((option) => /* @__PURE__ */ jsx("div", { onMouseDown: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: option.onClick, children: option.label }) }, option.key)) })
50
50
  ] });
51
51
  };
52
52
  export {
@@ -40,7 +40,7 @@ const TableToolbarDelMenu = ({
40
40
  }];
41
41
  return /* @__PURE__ */ jsxs(Fragment, { children: [
42
42
  /* @__PURE__ */ jsx(Tooltip, { message: t("tiptap.table.toolbar.tooltip.del"), placement: "top", children: /* @__PURE__ */ jsx(Dropdown.Trigger, { variant: "ghost", label: t("tiptap.table.toolbar.del") }) }),
43
- /* @__PURE__ */ jsx(Dropdown.Menu, { children: delOptions.map((option) => /* @__PURE__ */ jsx("div", { onMouseDown: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: option.onClick, children: option.label }, option.key) })) })
43
+ /* @__PURE__ */ jsx(Dropdown.Menu, { children: delOptions.map((option) => /* @__PURE__ */ jsx("div", { onMouseDown: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: option.onClick, children: option.label }) }, option.key)) })
44
44
  ] });
45
45
  };
46
46
  export {
@@ -1,10 +1,13 @@
1
1
  import { Editor } from '@tiptap/react';
2
2
  export interface MediaResizeProps {
3
3
  editor: Editor;
4
+ updateAttributes: (attrs: Record<string, any>) => void;
4
5
  [x: string]: any;
5
6
  }
6
- export declare const useResizeMedia: (props: MediaResizeProps, refResizable: React.RefObject<HTMLImageElement | HTMLVideoElement>) => {
7
+ type ResizableElt = HTMLImageElement | HTMLVideoElement | HTMLIFrameElement;
8
+ export declare const useResizeMedia: (props: MediaResizeProps, refResizable: React.RefObject<ResizableElt>, forcedAspectRatio?: number) => {
7
9
  startVerticalResize: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
8
10
  stopVerticalResize: () => void;
9
11
  isVerticalResizeActive: import('react').MutableRefObject<boolean>;
10
12
  };
13
+ export {};
@@ -1,27 +1,39 @@
1
1
  import { useRef, useEffect } from "react";
2
- const MIN_WIDTH = 80, useResizeMedia = (props, refResizable) => {
3
- const aspectRatio = useRef(0), lastCursorX = useRef(-1), isVerticalResizeActive = useRef(!1), proseMirrorContainerWidth = useRef(0), limitWidthOrHeight = (width) => width < MIN_WIDTH;
2
+ const MIN_WIDTH = 80, useResizeMedia = (props, refResizable, forcedAspectRatio) => {
3
+ const aspectRatio = useRef(0), lastCursorX = useRef(-1), isVerticalResizeActive = useRef(!1), proseMirrorContainerWidth = useRef(0), limitWidth = (width) => width < MIN_WIDTH, readCurrentPixelWidth = () => {
4
+ const el = refResizable.current;
5
+ if (!el) return 0;
6
+ const rect = el.getBoundingClientRect();
7
+ return Math.round(rect.width || el.width || 0);
8
+ }, readCurrentPixelHeight = () => {
9
+ const el = refResizable.current;
10
+ if (!el) return 0;
11
+ const rect = el.getBoundingClientRect();
12
+ return Math.round(rect.height || el.height || 0);
13
+ };
4
14
  useEffect(() => {
5
15
  const proseMirrorContainerDiv = document.querySelector(".ProseMirror");
6
- proseMirrorContainerDiv && (proseMirrorContainerWidth.current = proseMirrorContainerDiv == null ? void 0 : proseMirrorContainerDiv.clientWidth), refResizable && (aspectRatio.current = 1.5);
16
+ if (proseMirrorContainerDiv && (proseMirrorContainerWidth.current = proseMirrorContainerDiv.clientWidth), forcedAspectRatio && forcedAspectRatio > 0)
17
+ aspectRatio.current = forcedAspectRatio;
18
+ else {
19
+ const w = readCurrentPixelWidth(), h = readCurrentPixelHeight();
20
+ w > 0 && h > 0 ? aspectRatio.current = w / h : aspectRatio.current = 16 / 9;
21
+ }
7
22
  }, []);
8
- const onVerticalResize = (directionOfMouseMove, diff) => {
9
- var _a, _b;
10
- if (!refResizable) {
11
- console.error("Media ref is undefined|null", {
12
- refResizable
23
+ const clampWidth = (w) => {
24
+ let width = w;
25
+ return proseMirrorContainerWidth.current > 0 && width > proseMirrorContainerWidth.current && (width = proseMirrorContainerWidth.current), limitWidth(width) && (width = MIN_WIDTH), Math.round(width);
26
+ }, onVerticalResize = (direction, diff) => {
27
+ const currWidth = readCurrentPixelWidth();
28
+ if (!currWidth) return;
29
+ let newWidth = direction === "left" ? currWidth - Math.abs(diff) : currWidth + Math.abs(diff);
30
+ newWidth = clampWidth(newWidth);
31
+ const ratio = aspectRatio.current || 16 / 9, newHeight = Math.round(newWidth / ratio);
32
+ setTimeout(() => {
33
+ props.updateAttributes({
34
+ width: newWidth,
35
+ height: newHeight
13
36
  });
14
- return;
15
- }
16
- const currentMediaDimensions = {
17
- width: (_a = refResizable.current) == null ? void 0 : _a.width,
18
- height: (_b = refResizable.current) == null ? void 0 : _b.height
19
- }, newMediaDimensions = {
20
- width: -1,
21
- height: -1
22
- };
23
- currentMediaDimensions.width && (directionOfMouseMove === "left" ? newMediaDimensions.width = currentMediaDimensions.width - Math.abs(diff) : newMediaDimensions.width = currentMediaDimensions.width + Math.abs(diff)), newMediaDimensions.width > proseMirrorContainerWidth.current && (newMediaDimensions.width = proseMirrorContainerWidth.current), diff !== 0 && limitWidthOrHeight(newMediaDimensions.width) && (newMediaDimensions.width = MIN_WIDTH), newMediaDimensions.height = newMediaDimensions.width / aspectRatio.current, setTimeout(() => {
24
- props.updateAttributes(newMediaDimensions);
25
37
  });
26
38
  }, onVerticalMouseMove = (event) => {
27
39
  if (!isVerticalResizeActive.current) return;
@@ -29,8 +41,8 @@ const MIN_WIDTH = 80, useResizeMedia = (props, refResizable) => {
29
41
  clientX
30
42
  } = event, diff = lastCursorX.current - clientX;
31
43
  if (lastCursorX.current = clientX, diff === 0) return;
32
- const directionOfMouseMove = diff > 0 ? "left" : "right";
33
- onVerticalResize(directionOfMouseMove, Math.abs(diff));
44
+ const direction = diff > 0 ? "left" : "right";
45
+ onVerticalResize(direction, Math.abs(diff));
34
46
  }, startVerticalResize = (event) => {
35
47
  isVerticalResizeActive.current = !0, lastCursorX.current = event.clientX, document.addEventListener("mousemove", onVerticalMouseMove), document.addEventListener("mouseup", stopVerticalResize);
36
48
  }, stopVerticalResize = () => {
@@ -4,7 +4,6 @@ import { FontSize } from "@edifice.io/tiptap-extensions/font-size";
4
4
  import { CustomHeading } from "@edifice.io/tiptap-extensions/heading";
5
5
  import { CustomHighlight } from "@edifice.io/tiptap-extensions/highlight";
6
6
  import { Hyperlink } from "@edifice.io/tiptap-extensions/hyperlink";
7
- import { Iframe } from "@edifice.io/tiptap-extensions/iframe";
8
7
  import { SpeechRecognition } from "@edifice.io/tiptap-extensions/speech-recognition";
9
8
  import { SpeechSynthesis } from "@edifice.io/tiptap-extensions/speech-synthesis";
10
9
  import { TableCell } from "@edifice.io/tiptap-extensions/table-cell";
@@ -27,6 +26,7 @@ import StarterKit from "@tiptap/starter-kit";
27
26
  import { useTranslation } from "react-i18next";
28
27
  import { useEdificeClient } from "../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
29
28
  import useUpload from "../../../hooks/useUpload/useUpload.js";
29
+ import IframeNodeView from "../components/NodeView/IframeNodeView.js";
30
30
  import VideoNodeView from "../components/NodeView/VideoNodeView.js";
31
31
  import AudioNodeView from "../components/NodeView/AudioNodeView.js";
32
32
  import LinkerNodeView from "../components/NodeView/LinkerNodeView.js";
@@ -60,12 +60,12 @@ const useTipTapEditor = (editable, content, focus, placeholder, onContentChange,
60
60
  }), Underline, TextStyle, Color, Subscript, Superscript, Table.configure({
61
61
  resizable: !0
62
62
  }), TableRow, TableHeader, TableCell, TextAlign.configure({
63
- types: ["heading", "paragraph", "video", "audio"]
63
+ types: ["heading", "paragraph", "video", "audio", "iframe"]
64
64
  }), CustomHeading.configure({
65
65
  levels: [1, 2]
66
66
  }), Typography, FontSize, SpeechRecognition, SpeechSynthesis.configure({
67
67
  lang: (currentLanguage == null ? void 0 : currentLanguage.length) === 2 ? `${currentLanguage}-${currentLanguage.toUpperCase()}` : "fr-FR"
68
- }), Iframe, Hyperlink, FontFamily, Mathematics, Alert, VideoNodeView(MediaRenderer), AudioNodeView(AudioRenderer), LinkerNodeView(LinkerRenderer), ImageNodeView(MediaRenderer, uploadFile), AttachmentNodeView(AttachmentRenderer), InformationPaneNodeView(InformationPaneRenderer), ...extensions || []],
68
+ }), Hyperlink, FontFamily, Mathematics, Alert, IframeNodeView(MediaRenderer), VideoNodeView(MediaRenderer), AudioNodeView(AudioRenderer), LinkerNodeView(LinkerRenderer), ImageNodeView(MediaRenderer, uploadFile), AttachmentNodeView(AttachmentRenderer), InformationPaneNodeView(InformationPaneRenderer), ...extensions || []],
69
69
  content,
70
70
  // If the onContentChange callback is provided, we call it on every content change.
71
71
  ...onContentChange ? {
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+ interface SVGRProps {
3
+ title?: string;
4
+ titleId?: string;
5
+ }
6
+ declare const SvgIconMegaphone: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default SvgIconMegaphone;
@@ -0,0 +1,12 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ const SvgIconMegaphone = ({
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("path", { fill: "currentColor", fillRule: "evenodd", d: "M13.962 3.067c1.333-.809 3.038.15 3.038 1.71v13.446c0 1.56-1.705 2.519-3.038 1.71l-3.794-2.304a3.67 3.67 0 0 1-7.26-1.084A3 3 0 0 1 1 13.75v-4.5a3 3 0 0 1 3-3h4.44a1 1 0 0 0 .52-.145zM4.9 16.75h3.29a1.67 1.67 0 1 1-3.29 0M15 4.777 9.997 7.814a3 3 0 0 1-1.557.436H4a1 1 0 0 0-1 1v4.5a1 1 0 0 0 1 1h4.44a3 3 0 0 1 1.557.436L15 18.223zm6.055 3.055a1 1 0 0 0-1.11-1.664l-1.5 1a1 1 0 0 0 1.11 1.664zm-2.887 7.613a1 1 0 0 1 1.387-.277l1.5 1a1 1 0 1 1-1.11 1.664l-1.5-1a1 1 0 0 1-.277-1.387M19.5 11a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2z", clipRule: "evenodd" })
9
+ ] });
10
+ export {
11
+ SvgIconMegaphone as default
12
+ };
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+ interface SVGRProps {
3
+ title?: string;
4
+ titleId?: string;
5
+ }
6
+ declare const SvgIconNotes: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default SvgIconNotes;
@@ -0,0 +1,13 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ const SvgIconNotes = ({
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("path", { fill: "currentColor", fillRule: "evenodd", d: "M1 4a3 3 0 0 1 3-3h16a3 3 0 0 1 3 3v13a1 1 0 1 1-2 0V4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h13a1 1 0 1 1 0 2H4a3 3 0 0 1-3-3z", clipRule: "evenodd" }),
9
+ /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M18 18v1.586L19.586 18zm-2-1a1 1 0 0 1 1-1h5a1 1 0 0 1 .707 1.707l-5 5A1 1 0 0 1 16 22zM6 9a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1M6 14a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1", clipRule: "evenodd" })
10
+ ] });
11
+ export {
12
+ SvgIconNotes as default
13
+ };
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+ interface SVGRProps {
3
+ title?: string;
4
+ titleId?: string;
5
+ }
6
+ declare const SvgIconUnion: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default SvgIconUnion;
@@ -0,0 +1,15 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ const SvgIconUnion = ({
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 20 20", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
+ title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
+ /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.177 12.503C12.875 12.58 15 14.39 15 16.78c0 1.017-.948 1.553-1.724 1.553h-6.55c-.78 0-1.724-.54-1.724-1.553v-.031L5 16.7c0-2.532 2.516-4.275 5.177-4.197m-.048 1.666c-2.06-.06-3.433 1.235-3.462 2.49a.3.3 0 0 0 .06.008h6.55q.03 0 .052-.007c-.071-1.22-1.222-2.434-3.2-2.491", clipRule: "evenodd" }),
9
+ /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M3.884 9.17a4 4 0 0 1 1.446.318.833.833 0 0 1-.58 1.559l-.08-.03-.19-.071a2.4 2.4 0 0 0-.651-.11c-1.172-.04-2.041.755-2.15 1.664h2.488a.833.833 0 0 1 0 1.667h-2.71c-.743 0-1.457-.57-1.457-1.409v-.065C0 10.64 1.819 9.101 3.884 9.17M16.384 9.17C18.38 9.235 20 10.815 20 12.757c0 .842-.718 1.409-1.457 1.409h-2.71a.833.833 0 0 1 0-1.667h2.478c-.132-.873-.92-1.63-1.982-1.665a2.3 2.3 0 0 0-.995.188.834.834 0 0 1-.668-1.527 3.95 3.95 0 0 1 1.718-.327" }),
10
+ /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M10 4.167a3.333 3.333 0 1 1 0 6.667 3.333 3.333 0 0 1 0-6.667m0 1.667a1.667 1.667 0 1 0 0 3.333 1.667 1.667 0 0 0 0-3.333M3.75 1.667a2.917 2.917 0 1 1 0 5.833 2.917 2.917 0 0 1 0-5.833m0 1.667a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5", clipRule: "evenodd" }),
11
+ /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M16.25 1.667a2.917 2.917 0 1 1 0 5.833 2.917 2.917 0 0 1 0-5.833m0 1.667a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5", clipRule: "evenodd" })
12
+ ] });
13
+ export {
14
+ SvgIconUnion as default
15
+ };