@tnd028/strapi-plugin-tiptap-editor 0.0.5 → 0.0.7
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/_chunks/{Alignment-CAw7Pc3B.mjs → Alignment-BH5zjyJd.mjs} +1 -1
- package/dist/_chunks/{Alignment-CmVBcqHN.js → Alignment-n7EHHVIZ.js} +1 -1
- package/dist/_chunks/{Blockquote-DxmF6ps2.js → Blockquote-DYQwld3r.js} +1 -1
- package/dist/_chunks/{Blockquote-DkVCVIkO.mjs → Blockquote-HXHT9O3l.mjs} +1 -1
- package/dist/_chunks/{Bold-DPu1UXcX.js → Bold-CUv21uDr.js} +1 -1
- package/dist/_chunks/{Bold-CVkqXH0q.mjs → Bold-Cd_mbjQu.mjs} +1 -1
- package/dist/_chunks/{ColorAndHighlight-DlXNcYzs.js → ColorAndHighlight-BL4xNMx9.js} +10 -8
- package/dist/_chunks/{ColorAndHighlight-DVtwRV8D.mjs → ColorAndHighlight-D6cRD3NQ.mjs} +10 -8
- package/dist/_chunks/{Emoji-C2ZcOO4m.mjs → Emoji-DK4EzX49.mjs} +1 -1
- package/dist/_chunks/{Emoji-BLJLjbQp.js → Emoji-oaTIv3wp.js} +1 -1
- package/dist/_chunks/{Heading-DuIyZwT0.mjs → Heading-CeqMYOet.mjs} +1 -1
- package/dist/_chunks/{Heading-DdjKj4AU.js → Heading-S1RdY5-p.js} +1 -1
- package/dist/_chunks/{HorizontalRule-C37m4QFo.js → HorizontalRule-DHJLNzFF.js} +1 -1
- package/dist/_chunks/{HorizontalRule-esUe-37h.mjs → HorizontalRule-DOU3QXvX.mjs} +1 -1
- package/dist/_chunks/{Iframe-DNI2VyZJ.mjs → Iframe-C8oucAyo.mjs} +1 -1
- package/dist/_chunks/{Iframe-uBiTQzJk.js → Iframe-C9Dvzk82.js} +1 -1
- package/dist/_chunks/{ImagePlaceholder-B602ncX-.mjs → ImagePlaceholder-B8MvZDaK.mjs} +1 -2
- package/dist/_chunks/{ImagePlaceholder-C7tjrsPP.js → ImagePlaceholder-By1T0hK4.js} +1 -2
- package/dist/_chunks/{Italic-BKH8roOq.mjs → Italic-C8t__DnH.mjs} +1 -1
- package/dist/_chunks/{Italic-CyUAgaae.js → Italic-CqBxku58.js} +1 -1
- package/dist/_chunks/{Link-DCE9VP4m.js → Link-CwaxL95C.js} +1 -1
- package/dist/_chunks/{Link-DuoRXwJo.mjs → Link-ViPOBLsU.mjs} +1 -1
- package/dist/_chunks/{Lists-B_pvMYqp.js → Lists-CLC2ewrP.js} +1 -1
- package/dist/_chunks/{Lists-BIFqVaMa.mjs → Lists-Cy20UyYw.mjs} +1 -1
- package/dist/_chunks/{Redo-CWuDp8sF.mjs → Redo-CnT4SEO9.mjs} +1 -1
- package/dist/_chunks/{Redo-DN6-v1BZ.js → Redo-Con9FZrk.js} +1 -1
- package/dist/_chunks/{SearchAndReplace-DhdOu5Z5.mjs → SearchAndReplace-BNL1tvcA.mjs} +1 -1
- package/dist/_chunks/{SearchAndReplace-DHQGFhDE.js → SearchAndReplace-Ct4IIWYo.js} +1 -1
- package/dist/_chunks/{Strikethrough-DcF2qxrs.js → Strikethrough-BWbbwYoH.js} +1 -1
- package/dist/_chunks/{Strikethrough-DaH9xd2f.mjs → Strikethrough-DWoR_hmZ.mjs} +1 -1
- package/dist/_chunks/{Table-UamCvmgb.mjs → Table-BH8KG_4s.mjs} +1 -1
- package/dist/_chunks/{Table-BmvYgo7V.js → Table-_FRiHYqE.js} +1 -1
- package/dist/_chunks/{TiptapEditorInput-CBeJ6v-A.mjs → TiptapEditorInput-BnnNUWFQ.mjs} +45 -36
- package/dist/_chunks/{TiptapEditorInput-CCAUAYNp.js → TiptapEditorInput-BprabTYe.js} +45 -36
- package/dist/_chunks/{Undo-Cvo91hB2.js → Undo-BAz6judB.js} +1 -1
- package/dist/_chunks/{Undo-Bu-9t986.mjs → Undo-DCOjtWG4.mjs} +1 -1
- package/dist/_chunks/{index-BByh4zAS.js → index-C35lYuOU.js} +9 -23
- package/dist/_chunks/{index-DfMC-lJS.mjs → index-CQyoMMnJ.mjs} +9 -23
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/editor/partials/ToolbarButtons.d.ts +0 -1
- package/package.json +1 -1
- package/dist/_chunks/CustomCard-BwM3c5Ms.mjs +0 -151
- package/dist/_chunks/CustomCard-_ZFdffe6.js +0 -153
- package/dist/admin/src/components/editor/toolbars/CustomCard.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AlignLeft, AlignCenter, AlignRight, AlignJustify, Check } from "lucide-react";
|
|
3
|
-
import { u as useEditorContext, D as DropdownMenu, e as Tooltip, f as TooltipTrigger, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, g as TooltipContent, d as DropdownMenuItem } from "./TiptapEditorInput-
|
|
3
|
+
import { u as useEditorContext, D as DropdownMenu, e as Tooltip, f as TooltipTrigger, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, g as TooltipContent, d as DropdownMenuItem } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
const DropdownMenuItemStyled = styled(DropdownMenuItem)`
|
|
6
6
|
display: flex;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const lucideReact = require("lucide-react");
|
|
5
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
5
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
6
6
|
const styled = require("styled-components");
|
|
7
7
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
8
8
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
8
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
9
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { TextQuote } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
const QuoteIcon = styled(TextQuote)`
|
|
7
7
|
width: 16px;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
8
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
9
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, Fragment } from "react";
|
|
3
3
|
import { BoldIcon } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
const BoldIconStyled = styled(BoldIcon)`
|
|
7
7
|
width: 16px;
|
|
@@ -5,7 +5,7 @@ const designSystem = require("@strapi/design-system");
|
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
8
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
9
9
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
10
10
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
11
11
|
const TEXT_COLORS = [
|
|
@@ -19,6 +19,8 @@ const TEXT_COLORS = [
|
|
|
19
19
|
{ name: "Purple", color: "#9333EA" },
|
|
20
20
|
{ name: "Pink", color: "#DB2777" },
|
|
21
21
|
{ name: "Red", color: "#DC2626" },
|
|
22
|
+
{ name: "Black", color: "#000000" },
|
|
23
|
+
{ name: "White", color: "#FFFFFF" },
|
|
22
24
|
{ name: "Primary", color: "#1D2556" },
|
|
23
25
|
{ name: "Danger", color: "#e8222f" },
|
|
24
26
|
{ name: "Sky", color: "#0ea5e9" },
|
|
@@ -51,7 +53,7 @@ const CompactColorButton = styled__default.default.button`
|
|
|
51
53
|
justify-content: center;
|
|
52
54
|
border: 1px solid ${(props) => props.theme.colors.neutral200};
|
|
53
55
|
|
|
54
|
-
${(props) => props.$isHighlight ? `background-color: ${props.$color}; color: ${props.theme.colors.neutral800};` : `background-color: transparent; color: ${props.$color === "inherit" ? props.theme.colors.neutral800 : props.$color};`}
|
|
56
|
+
${(props) => props.$isHighlight ? `background-color: ${props.$color}; color: ${props.theme.colors.neutral800};` : props.$color.toLowerCase() === "#ffffff" ? `background-color: ${props.theme.colors.neutral800}; color: ${props.$color};` : `background-color: transparent; color: ${props.$color === "inherit" ? props.theme.colors.neutral800 : props.$color};`}
|
|
55
57
|
|
|
56
58
|
${(props) => props.$color === "inherit" && !props.$isHighlight && `
|
|
57
59
|
background: linear-gradient(to bottom right, transparent 48%, #ff0000 48%, #ff0000 52%, transparent 52%);
|
|
@@ -59,7 +61,7 @@ const CompactColorButton = styled__default.default.button`
|
|
|
59
61
|
color: ${props.theme.colors.neutral800};
|
|
60
62
|
`}
|
|
61
63
|
|
|
62
|
-
|
|
64
|
+
${(props) => props.$color === "transparent" && props.$isHighlight && `
|
|
63
65
|
background: linear-gradient(to bottom right, transparent 48%, #ff0000 48%, #ff0000 52%, transparent 52%);
|
|
64
66
|
background-color: ${props.theme.colors.neutral100};
|
|
65
67
|
`}
|
|
@@ -150,13 +152,13 @@ const ColorAndHighlightToolbar = () => {
|
|
|
150
152
|
});
|
|
151
153
|
};
|
|
152
154
|
const handleSetColor = (color) => {
|
|
153
|
-
editor?.chain().focus().setColor(color === currentColor ? "" : color).run();
|
|
155
|
+
editor?.chain().focus().setColor(color.toLowerCase() === currentColor?.toLowerCase() ? "" : color).run();
|
|
154
156
|
if (color !== currentColor) {
|
|
155
157
|
addToRecent(color, false);
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
160
|
const handleSetHighlight = (color) => {
|
|
159
|
-
editor?.chain().focus().setHighlight(color === currentHighlight ? { color: "" } : { color }).run();
|
|
161
|
+
editor?.chain().focus().setHighlight(color.toLowerCase() === currentHighlight?.toLowerCase() ? { color: "" } : { color }).run();
|
|
160
162
|
if (color !== currentHighlight) {
|
|
161
163
|
addToRecent(color, true);
|
|
162
164
|
}
|
|
@@ -183,7 +185,7 @@ const ColorAndHighlightToolbar = () => {
|
|
|
183
185
|
{
|
|
184
186
|
name: recent.color,
|
|
185
187
|
color: recent.color,
|
|
186
|
-
isActive: recent.isHighlight ? currentHighlight === recent.color : currentColor === recent.color,
|
|
188
|
+
isActive: recent.isHighlight ? currentHighlight?.toLowerCase() === recent.color.toLowerCase() : currentColor?.toLowerCase() === recent.color.toLowerCase(),
|
|
187
189
|
onClick: () => recent.isHighlight ? handleSetHighlight(recent.color) : handleSetColor(recent.color),
|
|
188
190
|
isHighlight: recent.isHighlight
|
|
189
191
|
},
|
|
@@ -197,7 +199,7 @@ const ColorAndHighlightToolbar = () => {
|
|
|
197
199
|
{
|
|
198
200
|
name,
|
|
199
201
|
color,
|
|
200
|
-
isActive: currentColor === color,
|
|
202
|
+
isActive: color === "inherit" ? !currentColor : currentColor?.toLowerCase() === color.toLowerCase(),
|
|
201
203
|
onClick: () => handleSetColor(color)
|
|
202
204
|
},
|
|
203
205
|
name
|
|
@@ -209,7 +211,7 @@ const ColorAndHighlightToolbar = () => {
|
|
|
209
211
|
{
|
|
210
212
|
name,
|
|
211
213
|
color,
|
|
212
|
-
isActive: currentHighlight === color,
|
|
214
|
+
isActive: color === "transparent" ? !currentHighlight : currentHighlight?.toLowerCase() === color.toLowerCase(),
|
|
213
215
|
onClick: () => handleSetHighlight(color),
|
|
214
216
|
isHighlight: true
|
|
215
217
|
},
|
|
@@ -3,7 +3,7 @@ import { Popover } from "@strapi/design-system";
|
|
|
3
3
|
import { HighlighterIcon, BaselineIcon, ChevronDown, Check } from "lucide-react";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import styled from "styled-components";
|
|
6
|
-
import { u as useEditorContext, T as ToolbarButton, S as Separator } from "./TiptapEditorInput-
|
|
6
|
+
import { u as useEditorContext, T as ToolbarButton, S as Separator } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
7
7
|
const TEXT_COLORS = [
|
|
8
8
|
{ name: "Default", color: "inherit" },
|
|
9
9
|
{ name: "Gray", color: "#6B7280" },
|
|
@@ -15,6 +15,8 @@ const TEXT_COLORS = [
|
|
|
15
15
|
{ name: "Purple", color: "#9333EA" },
|
|
16
16
|
{ name: "Pink", color: "#DB2777" },
|
|
17
17
|
{ name: "Red", color: "#DC2626" },
|
|
18
|
+
{ name: "Black", color: "#000000" },
|
|
19
|
+
{ name: "White", color: "#FFFFFF" },
|
|
18
20
|
{ name: "Primary", color: "#1D2556" },
|
|
19
21
|
{ name: "Danger", color: "#e8222f" },
|
|
20
22
|
{ name: "Sky", color: "#0ea5e9" },
|
|
@@ -47,7 +49,7 @@ const CompactColorButton = styled.button`
|
|
|
47
49
|
justify-content: center;
|
|
48
50
|
border: 1px solid ${(props) => props.theme.colors.neutral200};
|
|
49
51
|
|
|
50
|
-
${(props) => props.$isHighlight ? `background-color: ${props.$color}; color: ${props.theme.colors.neutral800};` : `background-color: transparent; color: ${props.$color === "inherit" ? props.theme.colors.neutral800 : props.$color};`}
|
|
52
|
+
${(props) => props.$isHighlight ? `background-color: ${props.$color}; color: ${props.theme.colors.neutral800};` : props.$color.toLowerCase() === "#ffffff" ? `background-color: ${props.theme.colors.neutral800}; color: ${props.$color};` : `background-color: transparent; color: ${props.$color === "inherit" ? props.theme.colors.neutral800 : props.$color};`}
|
|
51
53
|
|
|
52
54
|
${(props) => props.$color === "inherit" && !props.$isHighlight && `
|
|
53
55
|
background: linear-gradient(to bottom right, transparent 48%, #ff0000 48%, #ff0000 52%, transparent 52%);
|
|
@@ -55,7 +57,7 @@ const CompactColorButton = styled.button`
|
|
|
55
57
|
color: ${props.theme.colors.neutral800};
|
|
56
58
|
`}
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
${(props) => props.$color === "transparent" && props.$isHighlight && `
|
|
59
61
|
background: linear-gradient(to bottom right, transparent 48%, #ff0000 48%, #ff0000 52%, transparent 52%);
|
|
60
62
|
background-color: ${props.theme.colors.neutral100};
|
|
61
63
|
`}
|
|
@@ -146,13 +148,13 @@ const ColorAndHighlightToolbar = () => {
|
|
|
146
148
|
});
|
|
147
149
|
};
|
|
148
150
|
const handleSetColor = (color) => {
|
|
149
|
-
editor?.chain().focus().setColor(color === currentColor ? "" : color).run();
|
|
151
|
+
editor?.chain().focus().setColor(color.toLowerCase() === currentColor?.toLowerCase() ? "" : color).run();
|
|
150
152
|
if (color !== currentColor) {
|
|
151
153
|
addToRecent(color, false);
|
|
152
154
|
}
|
|
153
155
|
};
|
|
154
156
|
const handleSetHighlight = (color) => {
|
|
155
|
-
editor?.chain().focus().setHighlight(color === currentHighlight ? { color: "" } : { color }).run();
|
|
157
|
+
editor?.chain().focus().setHighlight(color.toLowerCase() === currentHighlight?.toLowerCase() ? { color: "" } : { color }).run();
|
|
156
158
|
if (color !== currentHighlight) {
|
|
157
159
|
addToRecent(color, true);
|
|
158
160
|
}
|
|
@@ -179,7 +181,7 @@ const ColorAndHighlightToolbar = () => {
|
|
|
179
181
|
{
|
|
180
182
|
name: recent.color,
|
|
181
183
|
color: recent.color,
|
|
182
|
-
isActive: recent.isHighlight ? currentHighlight === recent.color : currentColor === recent.color,
|
|
184
|
+
isActive: recent.isHighlight ? currentHighlight?.toLowerCase() === recent.color.toLowerCase() : currentColor?.toLowerCase() === recent.color.toLowerCase(),
|
|
183
185
|
onClick: () => recent.isHighlight ? handleSetHighlight(recent.color) : handleSetColor(recent.color),
|
|
184
186
|
isHighlight: recent.isHighlight
|
|
185
187
|
},
|
|
@@ -193,7 +195,7 @@ const ColorAndHighlightToolbar = () => {
|
|
|
193
195
|
{
|
|
194
196
|
name,
|
|
195
197
|
color,
|
|
196
|
-
isActive: currentColor === color,
|
|
198
|
+
isActive: color === "inherit" ? !currentColor : currentColor?.toLowerCase() === color.toLowerCase(),
|
|
197
199
|
onClick: () => handleSetColor(color)
|
|
198
200
|
},
|
|
199
201
|
name
|
|
@@ -205,7 +207,7 @@ const ColorAndHighlightToolbar = () => {
|
|
|
205
207
|
{
|
|
206
208
|
name,
|
|
207
209
|
color,
|
|
208
|
-
isActive: currentHighlight === color,
|
|
210
|
+
isActive: color === "transparent" ? !currentHighlight : currentHighlight?.toLowerCase() === color.toLowerCase(),
|
|
209
211
|
onClick: () => handleSetHighlight(color),
|
|
210
212
|
isHighlight: true
|
|
211
213
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useRef, useEffect, useMemo } from "react";
|
|
3
3
|
import { Clock, Smile, Cat, Coffee, Activity, Car, Lightbulb, Hash, Flag, Search } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import { Popover } from "@strapi/design-system";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import { gitHubEmojis } from "@tiptap/extension-emoji";
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const styled = require("styled-components");
|
|
9
9
|
const Emoji = require("@tiptap/extension-emoji");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Heading, Check } from "lucide-react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import { u as useEditorContext, D as DropdownMenu, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, d as DropdownMenuItem } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, D as DropdownMenu, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, d as DropdownMenuItem } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
const DropdownMenuItemStyled = styled(DropdownMenuItem)`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const lucideReact = require("lucide-react");
|
|
5
5
|
const styled = require("styled-components");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
8
8
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
9
9
|
const DropdownMenuItemStyled = styled__default.default(TiptapEditorInput.DropdownMenuItem)`
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
8
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
9
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { SeparatorHorizontal } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
const SeparatorHorizontalIcon = styled(SeparatorHorizontal)`
|
|
7
7
|
width: 16px;
|
|
@@ -3,7 +3,7 @@ import { Popover, Typography, Grid } from "@strapi/design-system";
|
|
|
3
3
|
import { Youtube } from "lucide-react";
|
|
4
4
|
import { forwardRef, useState, useCallback } from "react";
|
|
5
5
|
import styled from "styled-components";
|
|
6
|
-
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-
|
|
6
|
+
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
7
7
|
const IframeIcon = styled(Youtube)`
|
|
8
8
|
width: 20px;
|
|
9
9
|
height: 20px;
|
|
@@ -5,7 +5,7 @@ const designSystem = require("@strapi/design-system");
|
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
8
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
9
9
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
10
10
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
11
11
|
const IframeIcon = styled__default.default(lucideReact.Youtube)`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useCallback } from "react";
|
|
3
3
|
import { LucideImage } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, T as ToolbarButton, M as MediaLibraryModal } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, T as ToolbarButton, M as MediaLibraryModal } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
const ImageIcon = styled(LucideImage)`
|
|
7
7
|
width: 16px;
|
|
@@ -24,7 +24,6 @@ const ImagePlaceholderToolbar = forwardRef(({ className, onClick, children, ...p
|
|
|
24
24
|
editor.chain().focus().setImage({
|
|
25
25
|
src: file.url,
|
|
26
26
|
alt: file.alt,
|
|
27
|
-
caption: file.caption,
|
|
28
27
|
title: file.name,
|
|
29
28
|
pixelWidth: file.width,
|
|
30
29
|
pixelHeight: file.height,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
8
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
9
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -28,7 +28,6 @@ const ImagePlaceholderToolbar = React.forwardRef(({ className, onClick, children
|
|
|
28
28
|
editor.chain().focus().setImage({
|
|
29
29
|
src: file.url,
|
|
30
30
|
alt: file.alt,
|
|
31
|
-
caption: file.caption,
|
|
32
31
|
title: file.name,
|
|
33
32
|
pixelWidth: file.width,
|
|
34
33
|
pixelHeight: file.height,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { ItalicIcon } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
const ItalicIconStyled = styled(ItalicIcon)`
|
|
7
7
|
width: 16px;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
8
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
9
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const styled = require("styled-components");
|
|
9
9
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useCallback } from "react";
|
|
3
3
|
import { Link2 } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, T as ToolbarButton, L as LinkEditBlock } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, T as ToolbarButton, L as LinkEditBlock } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import { Popover } from "@strapi/design-system";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
const LinkIcon = styled(Link2)`
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const lucideReact = require("lucide-react");
|
|
5
5
|
const styled = require("styled-components");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
8
8
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
9
9
|
const DropdownMenuItemStyled = styled__default.default(TiptapEditorInput.DropdownMenuItem)`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { List, ListOrdered, ListTodo, Check } from "lucide-react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import { u as useEditorContext, D as DropdownMenu, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, d as DropdownMenuItem } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, D as DropdownMenu, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, d as DropdownMenuItem } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
const DropdownMenuItemStyled = styled(DropdownMenuItem)`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { Redo2 } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, T as ToolbarButton } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
const RedoIcon = styled(Redo2)`
|
|
7
7
|
width: 16px;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
8
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
9
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { ArrowLeft, ArrowRight, Repeat, X } from "lucide-react";
|
|
4
|
-
import { u as useEditorContext, I as Input, T as ToolbarButton, B as Button, S as Separator, h as Label } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, I as Input, T as ToolbarButton, B as Button, S as Separator, h as Label } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
import { Popover, Checkbox } from "@strapi/design-system";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
const RepeatIcon = styled(Repeat)`
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const styled = require("styled-components");
|
|
9
9
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const lucideReact = require("lucide-react");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const styled = require("styled-components");
|
|
7
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
7
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
8
8
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
9
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
10
10
|
const DropdownMenuItemStyled = styled__default.default(TiptapEditorInput.DropdownMenuItem)`
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Underline, Strikethrough, Check } from "lucide-react";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import { u as useEditorContext, D as DropdownMenu, e as Tooltip, f as TooltipTrigger, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, g as TooltipContent, d as DropdownMenuItem } from "./TiptapEditorInput-
|
|
5
|
+
import { u as useEditorContext, D as DropdownMenu, e as Tooltip, f as TooltipTrigger, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, g as TooltipContent, d as DropdownMenuItem } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
6
6
|
const DropdownMenuItemStyled = styled(DropdownMenuItem)`
|
|
7
7
|
display: flex;
|
|
8
8
|
align-items: center;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Table2, Table, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Rows3, Columns3, Trash2 } from "lucide-react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import { u as useEditorContext, D as DropdownMenu, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, d as DropdownMenuItem, g as TooltipContent } from "./TiptapEditorInput-
|
|
4
|
+
import { u as useEditorContext, D as DropdownMenu, a as DropdownMenuTrigger, T as ToolbarButton, b as DropdownMenuContent, c as DropdownMenuGroup, d as DropdownMenuItem, g as TooltipContent } from "./TiptapEditorInput-BnnNUWFQ.mjs";
|
|
5
5
|
const IconWrapper = styled.span`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const lucideReact = require("lucide-react");
|
|
5
5
|
const styled = require("styled-components");
|
|
6
|
-
const TiptapEditorInput = require("./TiptapEditorInput-
|
|
6
|
+
const TiptapEditorInput = require("./TiptapEditorInput-BprabTYe.js");
|
|
7
7
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
8
8
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
9
9
|
const IconWrapper = styled__default.default.span`
|