@frontify/fondue 12.8.1 → 12.8.3
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/RichTextEditor/Plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js +8 -8
- package/dist/packages/components/style.css +1 -1
- package/dist/packages/tokens/style.css +1 -1
- package/dist/packages/tokens/tailwind.config.js +1 -1
- package/dist/packages/tokens/theme/themes.module.css +2 -2
- package/package.json +6 -6
package/dist/components/RichTextEditor/Plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { useLinkOpenButtonState as s } from "@udecode/plate-link";
|
|
3
|
-
import
|
|
4
|
-
import l from "../../../../../../foundation/Icon/Generated/
|
|
5
|
-
import m from "
|
|
6
|
-
import {
|
|
3
|
+
import d from "../../../../../../foundation/Icon/Generated/IconPen16.es.js";
|
|
4
|
+
import l from "../../../../../../foundation/Icon/Generated/IconTrashBin16.es.js";
|
|
5
|
+
import { LINK_PLUGIN as m } from "../../id.es.js";
|
|
6
|
+
import { getUrlFromLinkOrLegacyLink as p } from "../../utils/getUrl.es.js";
|
|
7
7
|
import { FloatingModalWrapper as c } from "../../../../components/FloatingModal/FloatingModal.es.js";
|
|
8
8
|
import { useRichTextEditorContext as w } from "../../../../context/RichTextEditorContext.es.js";
|
|
9
9
|
const I = ({ editButtonProps: o, unlinkButtonProps: r }) => {
|
|
10
|
-
const { element: e } = s(), { styles: i } = w(), a = e ?
|
|
10
|
+
const { element: e } = s(), { styles: i } = w(), a = e ? p(e) : "";
|
|
11
11
|
return /* @__PURE__ */ t(c, { "data-test-id": "floating-link-edit", padding: "16px", minWidth: "400px", children: /* @__PURE__ */ n("span", { "data-test-id": "preview-link-flyout", className: "tw-flex tw-justify-between", children: [
|
|
12
|
-
/* @__PURE__ */ t("span", { style: i[
|
|
12
|
+
/* @__PURE__ */ t("span", { style: i[m], className: "tw-pointer-events-none", children: a }),
|
|
13
13
|
/* @__PURE__ */ n("span", { className: "tw-flex tw-gap-2", children: [
|
|
14
14
|
/* @__PURE__ */ t(
|
|
15
15
|
"button",
|
|
@@ -18,7 +18,7 @@ const I = ({ editButtonProps: o, unlinkButtonProps: r }) => {
|
|
|
18
18
|
"data-test-id": "edit-link-button",
|
|
19
19
|
className: "tw-transition tw-cursor-pointer tw-rounded hover:tw-bg-black-10 tw-p-1",
|
|
20
20
|
...o,
|
|
21
|
-
children: /* @__PURE__ */ t(
|
|
21
|
+
children: /* @__PURE__ */ t(d, {})
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
24
|
/* @__PURE__ */ t(
|
|
@@ -28,7 +28,7 @@ const I = ({ editButtonProps: o, unlinkButtonProps: r }) => {
|
|
|
28
28
|
"data-test-id": "remove-link-button",
|
|
29
29
|
className: "tw-transition tw-cursor-pointer tw-rounded hover:tw-bg-black-10 tw-p-1",
|
|
30
30
|
...r,
|
|
31
|
-
children: /* @__PURE__ */ t(
|
|
31
|
+
children: /* @__PURE__ */ t(l, {})
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
] })
|