@edifice.io/react 2.5.8 → 2.5.9
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/DropdownContext.js +1 -1
- package/dist/components/Form/FormContext.js +1 -1
- package/dist/components/Layout/Layout.js +1 -2
- package/dist/components/Layout/components/Header.js +5 -2
- package/dist/components/Toolbar/Toolbar.js +1 -1
- package/dist/editor.js +40 -40
- package/dist/hooks/useDropdown/useDropdown.js +1 -1
- package/dist/icons-apps.js +234 -232
- package/dist/index.js +224 -224
- package/dist/modals.js +18 -18
- package/dist/modules/editor/hooks/useTipTapEditor.js +4 -4
- package/dist/modules/icons/components/apps/IconAssistancetic.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAssistancetic.js +14 -0
- package/dist/modules/icons/components/apps/index.d.ts +1 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -2
- package/dist/modules/multimedia/Linker/ExternalLinker/ExternalLinker.js +1 -2
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +1 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +1 -1
- package/dist/multimedia.js +10 -10
- package/dist/providers/AntThemeProvider/antThemeConfig.js +1 -2
- package/package.json +6 -6
|
@@ -93,7 +93,7 @@ const Header = ({
|
|
|
93
93
|
}, className: "position-absolute", children: messages }),
|
|
94
94
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("navbar.messages") })
|
|
95
95
|
] }) }),
|
|
96
|
-
hasCarbonioPreauthWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/carbonio/preauth", className: "nav-link", children: [
|
|
96
|
+
hasCarbonioPreauthWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/carbonio/preauth", target: "_blank", className: "nav-link", children: [
|
|
97
97
|
/* @__PURE__ */ jsx(SvgIconOneMessaging, { className: "icon notification" }),
|
|
98
98
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("navbar.messages") })
|
|
99
99
|
] }) }),
|
|
@@ -157,7 +157,10 @@ const Header = ({
|
|
|
157
157
|
level: "warning"
|
|
158
158
|
}, className: "position-absolute", children: messages })
|
|
159
159
|
] }) }),
|
|
160
|
-
hasCarbonioPreauthWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */
|
|
160
|
+
hasCarbonioPreauthWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { className: "nav-link position-relative", href: "/auth/carbonio/preauth", target: "_blank", children: [
|
|
161
|
+
/* @__PURE__ */ jsx(SvgIconNeoMessaging, { color: "#fff" }),
|
|
162
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("conversation") })
|
|
163
|
+
] }) }),
|
|
161
164
|
currentLanguage === "fr" && hasOldHelpEnableWorkflow ? /* @__PURE__ */ jsxs(NavItem, { children: [
|
|
162
165
|
/* @__PURE__ */ jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
|
|
163
166
|
setIsHelpOpen(!0);
|
|
@@ -2,11 +2,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useState, useRef, useEffect, createElement } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import useBreakpoint from "../../hooks/useBreakpoint/useBreakpoint.js";
|
|
5
|
-
import { mergeRefs } from "../../utilities/refs/ref.js";
|
|
6
5
|
import Tooltip from "../Tooltip/Tooltip.js";
|
|
7
6
|
import Button from "../Button/Button.js";
|
|
8
7
|
import Dropdown from "../Dropdown/Dropdown.js";
|
|
9
8
|
import IconButton from "../Button/IconButton.js";
|
|
9
|
+
import { mergeRefs } from "../../utilities/refs/ref.js";
|
|
10
10
|
const Toolbar = /* @__PURE__ */ forwardRef(({
|
|
11
11
|
items,
|
|
12
12
|
variant = "default",
|
package/dist/editor.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { EditorContent, Editor, useEditor } from "@tiptap/react";
|
|
2
2
|
import { default as default2 } from "@tiptap/starter-kit";
|
|
3
|
-
import { default as default3 } from "./modules/editor/components/
|
|
4
|
-
import { default as default4 } from "./modules/editor/components/
|
|
5
|
-
import { default as default5 } from "./modules/editor/components/
|
|
6
|
-
import { default as default6 } from "./modules/editor/components/
|
|
3
|
+
import { default as default3 } from "./modules/editor/components/NodeView/AttachmentNodeView.js";
|
|
4
|
+
import { default as default4 } from "./modules/editor/components/Renderer/AttachmentRenderer.js";
|
|
5
|
+
import { default as default5 } from "./modules/editor/components/NodeView/AudioNodeView.js";
|
|
6
|
+
import { default as default6 } from "./modules/editor/components/Renderer/AudioRenderer.js";
|
|
7
7
|
import { default as default7 } from "./modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js";
|
|
8
|
-
import { default as default8 } from "./modules/editor/components/NodeView/
|
|
9
|
-
import { default as default9 } from "./modules/editor/components/
|
|
10
|
-
import { default as default10 } from "./modules/editor/components/
|
|
11
|
-
import { default as default11 } from "./modules/editor/components/
|
|
12
|
-
import { default as default12 } from "./modules/editor/components/
|
|
13
|
-
import { default as default13 } from "./modules/editor/components/
|
|
14
|
-
import { default as default14 } from "./modules/editor/components/NodeView/
|
|
15
|
-
import { default as default15 } from "./modules/editor/components/NodeView/
|
|
16
|
-
import { default as default16 } from "./modules/editor/components/
|
|
17
|
-
import { default as default17 } from "./modules/editor/components/Renderer/
|
|
18
|
-
import { default as default18 } from "./modules/editor/components/
|
|
19
|
-
import { default as default19 } from "./modules/editor/components/
|
|
20
|
-
import { default as default20 } from "./modules/editor/components/Renderer/
|
|
21
|
-
import { default as default21 } from "./modules/editor/components/Renderer/
|
|
8
|
+
import { default as default8 } from "./modules/editor/components/NodeView/ConversationHistoryNodeView.js";
|
|
9
|
+
import { default as default9 } from "./modules/editor/components/Renderer/ConversationHistoryRenderer.js";
|
|
10
|
+
import { default as default10 } from "./modules/editor/components/Editor/Editor.js";
|
|
11
|
+
import { default as default11 } from "./modules/editor/components/Editor/EditorPreview.js";
|
|
12
|
+
import { default as default12 } from "./modules/editor/components/Editor/EditorPreviewSkeleton.js";
|
|
13
|
+
import { default as default13 } from "./modules/editor/components/Editor/EditorSkeleton.js";
|
|
14
|
+
import { default as default14 } from "./modules/editor/components/NodeView/IframeNodeView.js";
|
|
15
|
+
import { default as default15 } from "./modules/editor/components/NodeView/ImageNodeView.js";
|
|
16
|
+
import { default as default16 } from "./modules/editor/components/NodeView/InformationPaneNodeView.js";
|
|
17
|
+
import { default as default17 } from "./modules/editor/components/Renderer/InformationPaneRenderer.js";
|
|
18
|
+
import { default as default18 } from "./modules/editor/components/Toolbar/LinkToolbar.js";
|
|
19
|
+
import { default as default19 } from "./modules/editor/components/NodeView/LinkerNodeView.js";
|
|
20
|
+
import { default as default20 } from "./modules/editor/components/Renderer/LinkerRenderer.js";
|
|
21
|
+
import { default as default21 } from "./modules/editor/components/Renderer/MediaRenderer.js";
|
|
22
22
|
import { default as default22 } from "./modules/editor/components/Toolbar/TableToolbar.js";
|
|
23
|
-
import { default as default23 } from "./modules/editor/components/
|
|
23
|
+
import { default as default23 } from "./modules/editor/components/NodeView/VideoNodeView.js";
|
|
24
|
+
import { EditorContext, useEditorContext } from "./modules/editor/hooks/useEditorContext.js";
|
|
24
25
|
import { EditorToolbar } from "./modules/editor/components/EditorToolbar/EditorToolbar.js";
|
|
25
26
|
import { useActionOptions } from "./modules/editor/hooks/useActionOptions.js";
|
|
27
|
+
import { useCantooEditor } from "./modules/editor/hooks/useCantooEditor.js";
|
|
26
28
|
import { useCommentEditor } from "./modules/editor/hooks/useCommentEditor.js";
|
|
27
|
-
import { EditorContext, useEditorContext } from "./modules/editor/hooks/useEditorContext.js";
|
|
28
29
|
import { useImageModal } from "./modules/editor/hooks/useImageModal.js";
|
|
29
30
|
import { useImageSelection } from "./modules/editor/hooks/useImageSelection.js";
|
|
30
31
|
import { useLinkToolbar } from "./modules/editor/hooks/useLinkToolbar.js";
|
|
@@ -34,34 +35,33 @@ import { useResizeMedia } from "./modules/editor/hooks/useResizeMedia.js";
|
|
|
34
35
|
import { useSpeechRecognition } from "./modules/editor/hooks/useSpeechRecognition.js";
|
|
35
36
|
import { useSpeechSynthetisis } from "./modules/editor/hooks/useSpeechSynthetisis.js";
|
|
36
37
|
import { useTipTapEditor } from "./modules/editor/hooks/useTipTapEditor.js";
|
|
37
|
-
import { useCantooEditor } from "./modules/editor/hooks/useCantooEditor.js";
|
|
38
38
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
default3 as AttachmentNodeView,
|
|
40
|
+
default4 as AttachmentRenderer,
|
|
41
|
+
default5 as AudioNodeView,
|
|
42
|
+
default6 as AudioRenderer,
|
|
43
43
|
default7 as BubbleMenuEditImage,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
default8 as ConversationHistoryNodeView,
|
|
45
|
+
default9 as ConversationHistoryRenderer,
|
|
46
|
+
default10 as Editor,
|
|
47
47
|
EditorContent,
|
|
48
48
|
EditorContext,
|
|
49
49
|
Editor as EditorInstance,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
default11 as EditorPreview,
|
|
51
|
+
default12 as EditorPreviewSkeleton,
|
|
52
|
+
default13 as EditorSkeleton,
|
|
53
53
|
EditorToolbar,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
default14 as IframeNodeView,
|
|
55
|
+
default15 as ImageNodeView,
|
|
56
|
+
default16 as InformationPaneNodeView,
|
|
57
|
+
default17 as InformationPaneRenderer,
|
|
58
|
+
default18 as LinkToolbar,
|
|
59
|
+
default19 as LinkerNodeView,
|
|
60
|
+
default20 as LinkerRenderer,
|
|
61
|
+
default21 as MediaRenderer,
|
|
62
62
|
default2 as StarterKit,
|
|
63
63
|
default22 as TableToolbar,
|
|
64
|
-
|
|
64
|
+
default23 as VideoNodeView,
|
|
65
65
|
useActionOptions,
|
|
66
66
|
useCantooEditor,
|
|
67
67
|
useCommentEditor,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useId, useState, useRef, useEffect, useCallback } from "react";
|
|
2
|
-
import { useFloating, offset, size, flip,
|
|
2
|
+
import { useFloating, autoUpdate, offset, size, flip, useHover, safePolygon } from "@floating-ui/react";
|
|
3
3
|
import { mergeRefs } from "../../utilities/refs/ref.js";
|
|
4
4
|
const useDropdown = (placement, extraTriggerKeyDownHandler, isTriggerHovered = !1, focusOnVisible = !0, openOnSpace = !0, focusOnMouseEnter = !0) => {
|
|
5
5
|
const id = useId(), [visible, setVisible] = useState(!1), [activeIndex, setActiveIndex] = useState(-1), [isFocused, setIsFocused] = useState(null), {
|