@dooherceg/tiptap-controlled-editor-with-table 0.0.7 → 0.0.8
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/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/assets/components/tiptap-node/blockquote-node/blockquote-node.css +1 -0
- package/dist/assets/components/tiptap-node/code-block-node/code-block-node.css +1 -0
- package/dist/assets/components/tiptap-node/heading-node/heading-node.css +1 -0
- package/dist/assets/components/tiptap-node/horizontal-rule-node/horizontal-rule-node.css +1 -0
- package/dist/assets/components/tiptap-node/image-node/image-node.css +1 -0
- package/dist/assets/components/tiptap-node/list-node/list-node.css +1 -0
- package/dist/assets/components/tiptap-node/paragraph-node/paragraph-node.css +1 -0
- package/dist/assets/components/tiptap-templates/simple/simple-editor.css +1 -0
- package/dist/assets/{badge.css → components/tiptap-ui-primitive/badge/badge-colors.css} +1 -1
- package/dist/assets/components/tiptap-ui-primitive/badge/badge-group.css +1 -0
- package/dist/assets/components/tiptap-ui-primitive/badge/badge.css +1 -0
- package/dist/assets/{button.css → components/tiptap-ui-primitive/button/button-colors.css} +1 -1
- package/dist/assets/components/tiptap-ui-primitive/button/button-group.css +1 -0
- package/dist/assets/components/tiptap-ui-primitive/button/button.css +1 -0
- package/dist/assets/styles/_keyframe-animations.css +1 -0
- package/dist/assets/styles/_variables.css +1 -0
- package/dist/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.js +6 -58
- package/dist/components/tiptap-node/image-upload-node/image-upload-node.js +4 -3
- package/dist/components/tiptap-templates/simple/simple-editor.js +159 -1898
- package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.js +6 -5
- package/dist/components/tiptap-ui/color-highlight-button/use-color-highlight.js +1 -1
- package/dist/components/tiptap-ui/image-upload-button/use-image-upload.js +16 -16
- package/dist/components/tiptap-ui-primitive/badge/badge.js +19 -16
- package/dist/components/tiptap-ui-primitive/button/button.js +18 -15
- package/dist/components/tiptap-ui-primitive/card/card.js +13 -12
- package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.js +39 -1012
- package/dist/components/tiptap-ui-primitive/input/input.js +7 -6
- package/dist/components/tiptap-ui-primitive/popover/popover.js +24 -233
- package/dist/components/tiptap-ui-primitive/separator/separator.js +9 -8
- package/dist/components/tiptap-ui-primitive/toolbar/toolbar.js +2 -1
- package/dist/components/tiptap-ui-primitive/tooltip/tooltip.js +84 -1330
- package/dist/hooks/use-throttled-callback.js +13 -108
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +932 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +185 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +221 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +239 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js +84 -0
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +57 -0
- package/dist/node_modules/@tiptap/extension-image/dist/index.js +128 -0
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +713 -0
- package/dist/node_modules/@tiptap/extension-subscript/dist/index.js +40 -0
- package/dist/node_modules/@tiptap/extension-superscript/dist/index.js +40 -0
- package/dist/node_modules/@tiptap/extension-table/dist/index.js +380 -0
- package/dist/node_modules/@tiptap/extension-text-align/dist/index.js +46 -0
- package/dist/node_modules/@tiptap/extension-typography/dist/index.js +125 -0
- package/dist/node_modules/@tiptap/extensions/dist/index.js +288 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/lodash.throttle/index.js +95 -0
- package/dist/{index-Bqw9S4qP.js → node_modules/react-hotkeys-hook/packages/react-hotkeys-hook/dist/index.js} +57 -55
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tabbable/dist/index.esm.js +197 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/package.json +1 -1
- package/dist/Combination-CO0ZtURs.js +0 -1333
- package/dist/assets/simple-editor.css +0 -1
- package/dist/floating-ui.react-dom-DgOuULHo.js +0 -1334
- /package/dist/assets/{image-upload-node.css → components/tiptap-node/image-upload-node/image-upload-node.css} +0 -0
- /package/dist/assets/{color-highlight-button.css → components/tiptap-ui/color-highlight-button/color-highlight-button.css} +0 -0
- /package/dist/assets/{card.css → components/tiptap-ui-primitive/card/card.css} +0 -0
- /package/dist/assets/{dropdown-menu.css → components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.css} +0 -0
- /package/dist/assets/{input.css → components/tiptap-ui-primitive/input/input.css} +0 -0
- /package/dist/assets/{popover.css → components/tiptap-ui-primitive/popover/popover.css} +0 -0
- /package/dist/assets/{separator.css → components/tiptap-ui-primitive/separator/separator.css} +0 -0
- /package/dist/assets/{toolbar.css → components/tiptap-ui-primitive/toolbar/toolbar.css} +0 -0
- /package/dist/assets/{tooltip.css → components/tiptap-ui-primitive/tooltip/tooltip.css} +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
3
|
-
import '../../../assets/input.css'
|
|
4
|
-
|
|
2
|
+
import { cn as i } from "../../../lib/tiptap-utils.js";
|
|
3
|
+
import '../../../assets/components/tiptap-ui-primitive/input/input.css';/* empty css */
|
|
4
|
+
function a({ className: t, type: p, ...n }) {
|
|
5
|
+
return /* @__PURE__ */ r("input", { type: p, className: i("tiptap-input", t), ...n });
|
|
5
6
|
}
|
|
6
|
-
function
|
|
7
|
+
function c({
|
|
7
8
|
className: t,
|
|
8
9
|
children: p,
|
|
9
10
|
...n
|
|
10
11
|
}) {
|
|
11
|
-
return /* @__PURE__ */ r("div", { className:
|
|
12
|
+
return /* @__PURE__ */ r("div", { className: i("tiptap-input-group", t), ...n, children: p });
|
|
12
13
|
}
|
|
13
14
|
export {
|
|
14
15
|
a as Input,
|
|
15
|
-
|
|
16
|
+
c as InputGroup
|
|
16
17
|
};
|
|
@@ -1,244 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
]), g = O(), [Q, u] = b(R), F = (e) => {
|
|
8
|
-
const {
|
|
9
|
-
__scopePopover: n,
|
|
10
|
-
children: o,
|
|
11
|
-
open: a,
|
|
12
|
-
defaultOpen: r,
|
|
13
|
-
onOpenChange: t,
|
|
14
|
-
modal: c = !1
|
|
15
|
-
} = e, i = g(n), f = p.useRef(null), [v, h] = p.useState(!1), [C, l] = $({
|
|
16
|
-
prop: a,
|
|
17
|
-
defaultProp: r ?? !1,
|
|
18
|
-
onChange: t,
|
|
19
|
-
caller: R
|
|
20
|
-
});
|
|
21
|
-
return /* @__PURE__ */ s(L, { ...i, children: /* @__PURE__ */ s(
|
|
22
|
-
Q,
|
|
23
|
-
{
|
|
24
|
-
scope: n,
|
|
25
|
-
contentId: H(),
|
|
26
|
-
triggerRef: f,
|
|
27
|
-
open: C,
|
|
28
|
-
onOpenChange: l,
|
|
29
|
-
onOpenToggle: p.useCallback(() => l((m) => !m), [l]),
|
|
30
|
-
hasCustomAnchor: v,
|
|
31
|
-
onCustomAnchorAdd: p.useCallback(() => h(!0), []),
|
|
32
|
-
onCustomAnchorRemove: p.useCallback(() => h(!1), []),
|
|
33
|
-
modal: c,
|
|
34
|
-
children: o
|
|
35
|
-
}
|
|
36
|
-
) });
|
|
37
|
-
};
|
|
38
|
-
F.displayName = R;
|
|
39
|
-
var N = "PopoverAnchor", X = p.forwardRef(
|
|
40
|
-
(e, n) => {
|
|
41
|
-
const { __scopePopover: o, ...a } = e, r = u(N, o), t = g(o), { onCustomAnchorAdd: c, onCustomAnchorRemove: i } = r;
|
|
42
|
-
return p.useEffect(() => (c(), () => i()), [c, i]), /* @__PURE__ */ s(w, { ...t, ...a, ref: n });
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
X.displayName = N;
|
|
46
|
-
var S = "PopoverTrigger", y = p.forwardRef(
|
|
47
|
-
(e, n) => {
|
|
48
|
-
const { __scopePopover: o, ...a } = e, r = u(S, o), t = g(o), c = _(n, r.triggerRef), i = /* @__PURE__ */ s(
|
|
49
|
-
x.button,
|
|
50
|
-
{
|
|
51
|
-
type: "button",
|
|
52
|
-
"aria-haspopup": "dialog",
|
|
53
|
-
"aria-expanded": r.open,
|
|
54
|
-
"aria-controls": r.contentId,
|
|
55
|
-
"data-state": I(r.open),
|
|
56
|
-
...a,
|
|
57
|
-
ref: c,
|
|
58
|
-
onClick: P(e.onClick, r.onOpenToggle)
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
return r.hasCustomAnchor ? i : /* @__PURE__ */ s(w, { asChild: !0, ...t, children: i });
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
y.displayName = S;
|
|
65
|
-
var A = "PopoverPortal", [Y, ee] = b(A, {
|
|
66
|
-
forceMount: void 0
|
|
67
|
-
}), D = (e) => {
|
|
68
|
-
const { __scopePopover: n, forceMount: o, children: a, container: r } = e, t = u(A, n);
|
|
69
|
-
return /* @__PURE__ */ s(Y, { scope: n, forceMount: o, children: /* @__PURE__ */ s(E, { present: o || t.open, children: /* @__PURE__ */ s(j, { asChild: !0, container: r, children: a }) }) });
|
|
70
|
-
};
|
|
71
|
-
D.displayName = A;
|
|
72
|
-
var d = "PopoverContent", M = p.forwardRef(
|
|
73
|
-
(e, n) => {
|
|
74
|
-
const o = ee(d, e.__scopePopover), { forceMount: a = o.forceMount, ...r } = e, t = u(d, e.__scopePopover);
|
|
75
|
-
return /* @__PURE__ */ s(E, { present: a || t.open, children: t.modal ? /* @__PURE__ */ s(re, { ...r, ref: n }) : /* @__PURE__ */ s(te, { ...r, ref: n }) });
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
M.displayName = d;
|
|
79
|
-
var oe = V("PopoverContent.RemoveScroll"), re = p.forwardRef(
|
|
80
|
-
(e, n) => {
|
|
81
|
-
const o = u(d, e.__scopePopover), a = p.useRef(null), r = _(n, a), t = p.useRef(!1);
|
|
82
|
-
return p.useEffect(() => {
|
|
83
|
-
const c = a.current;
|
|
84
|
-
if (c) return K(c);
|
|
85
|
-
}, []), /* @__PURE__ */ s(U, { as: oe, allowPinchZoom: !0, children: /* @__PURE__ */ s(
|
|
86
|
-
k,
|
|
87
|
-
{
|
|
88
|
-
...e,
|
|
89
|
-
ref: r,
|
|
90
|
-
trapFocus: o.open,
|
|
91
|
-
disableOutsidePointerEvents: !0,
|
|
92
|
-
onCloseAutoFocus: P(e.onCloseAutoFocus, (c) => {
|
|
93
|
-
c.preventDefault(), t.current || o.triggerRef.current?.focus();
|
|
94
|
-
}),
|
|
95
|
-
onPointerDownOutside: P(
|
|
96
|
-
e.onPointerDownOutside,
|
|
97
|
-
(c) => {
|
|
98
|
-
const i = c.detail.originalEvent, f = i.button === 0 && i.ctrlKey === !0, v = i.button === 2 || f;
|
|
99
|
-
t.current = v;
|
|
100
|
-
},
|
|
101
|
-
{ checkForDefaultPrevented: !1 }
|
|
102
|
-
),
|
|
103
|
-
onFocusOutside: P(
|
|
104
|
-
e.onFocusOutside,
|
|
105
|
-
(c) => c.preventDefault(),
|
|
106
|
-
{ checkForDefaultPrevented: !1 }
|
|
107
|
-
)
|
|
108
|
-
}
|
|
109
|
-
) });
|
|
110
|
-
}
|
|
111
|
-
), te = p.forwardRef(
|
|
112
|
-
(e, n) => {
|
|
113
|
-
const o = u(d, e.__scopePopover), a = p.useRef(!1), r = p.useRef(!1);
|
|
114
|
-
return /* @__PURE__ */ s(
|
|
115
|
-
k,
|
|
116
|
-
{
|
|
117
|
-
...e,
|
|
118
|
-
ref: n,
|
|
119
|
-
trapFocus: !1,
|
|
120
|
-
disableOutsidePointerEvents: !1,
|
|
121
|
-
onCloseAutoFocus: (t) => {
|
|
122
|
-
e.onCloseAutoFocus?.(t), t.defaultPrevented || (a.current || o.triggerRef.current?.focus(), t.preventDefault()), a.current = !1, r.current = !1;
|
|
123
|
-
},
|
|
124
|
-
onInteractOutside: (t) => {
|
|
125
|
-
e.onInteractOutside?.(t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
126
|
-
const c = t.target;
|
|
127
|
-
o.triggerRef.current?.contains(c) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && r.current && t.preventDefault();
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
), k = p.forwardRef(
|
|
133
|
-
(e, n) => {
|
|
134
|
-
const {
|
|
135
|
-
__scopePopover: o,
|
|
136
|
-
trapFocus: a,
|
|
137
|
-
onOpenAutoFocus: r,
|
|
138
|
-
onCloseAutoFocus: t,
|
|
139
|
-
disableOutsidePointerEvents: c,
|
|
140
|
-
onEscapeKeyDown: i,
|
|
141
|
-
onPointerDownOutside: f,
|
|
142
|
-
onFocusOutside: v,
|
|
143
|
-
onInteractOutside: h,
|
|
144
|
-
...C
|
|
145
|
-
} = e, l = u(d, o), m = g(o);
|
|
146
|
-
return W(), /* @__PURE__ */ s(
|
|
147
|
-
Z,
|
|
148
|
-
{
|
|
149
|
-
asChild: !0,
|
|
150
|
-
loop: !0,
|
|
151
|
-
trapped: a,
|
|
152
|
-
onMountAutoFocus: r,
|
|
153
|
-
onUnmountAutoFocus: t,
|
|
154
|
-
children: /* @__PURE__ */ s(
|
|
155
|
-
q,
|
|
156
|
-
{
|
|
157
|
-
asChild: !0,
|
|
158
|
-
disableOutsidePointerEvents: c,
|
|
159
|
-
onInteractOutside: h,
|
|
160
|
-
onEscapeKeyDown: i,
|
|
161
|
-
onPointerDownOutside: f,
|
|
162
|
-
onFocusOutside: v,
|
|
163
|
-
onDismiss: () => l.onOpenChange(!1),
|
|
164
|
-
children: /* @__PURE__ */ s(
|
|
165
|
-
z,
|
|
166
|
-
{
|
|
167
|
-
"data-state": I(l.open),
|
|
168
|
-
role: "dialog",
|
|
169
|
-
id: l.contentId,
|
|
170
|
-
...m,
|
|
171
|
-
...C,
|
|
172
|
-
ref: n,
|
|
173
|
-
style: {
|
|
174
|
-
...C.style,
|
|
175
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
176
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
177
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
178
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
179
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
)
|
|
183
|
-
}
|
|
184
|
-
)
|
|
185
|
-
}
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
), T = "PopoverClose", ne = p.forwardRef(
|
|
189
|
-
(e, n) => {
|
|
190
|
-
const { __scopePopover: o, ...a } = e, r = u(T, o);
|
|
191
|
-
return /* @__PURE__ */ s(
|
|
192
|
-
x.button,
|
|
193
|
-
{
|
|
194
|
-
type: "button",
|
|
195
|
-
...a,
|
|
196
|
-
ref: n,
|
|
197
|
-
onClick: P(e.onClick, () => r.onOpenChange(!1))
|
|
198
|
-
}
|
|
199
|
-
);
|
|
200
|
-
}
|
|
201
|
-
);
|
|
202
|
-
ne.displayName = T;
|
|
203
|
-
var ae = "PopoverArrow", se = p.forwardRef(
|
|
204
|
-
(e, n) => {
|
|
205
|
-
const { __scopePopover: o, ...a } = e, r = g(o);
|
|
206
|
-
return /* @__PURE__ */ s(B, { ...r, ...a, ref: n });
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
se.displayName = ae;
|
|
210
|
-
function I(e) {
|
|
211
|
-
return e ? "open" : "closed";
|
|
212
|
-
}
|
|
213
|
-
var ce = F, pe = y, ie = D, ue = M;
|
|
214
|
-
function ve({
|
|
215
|
-
...e
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Root as p, Trigger as i, Portal as m, Content as c } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
3
|
+
import { cn as a } from "../../../lib/tiptap-utils.js";
|
|
4
|
+
import '../../../assets/components/tiptap-ui-primitive/popover/popover.css';/* empty css */
|
|
5
|
+
function v({
|
|
6
|
+
...o
|
|
216
7
|
}) {
|
|
217
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ r(p, { ...o });
|
|
218
9
|
}
|
|
219
|
-
function
|
|
220
|
-
...
|
|
10
|
+
function P({
|
|
11
|
+
...o
|
|
221
12
|
}) {
|
|
222
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ r(i, { ...o });
|
|
223
14
|
}
|
|
224
|
-
function
|
|
225
|
-
className:
|
|
226
|
-
align:
|
|
227
|
-
sideOffset:
|
|
228
|
-
...
|
|
15
|
+
function l({
|
|
16
|
+
className: o,
|
|
17
|
+
align: t = "center",
|
|
18
|
+
sideOffset: n = 4,
|
|
19
|
+
...e
|
|
229
20
|
}) {
|
|
230
|
-
return /* @__PURE__ */
|
|
231
|
-
|
|
21
|
+
return /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(
|
|
22
|
+
c,
|
|
232
23
|
{
|
|
233
|
-
align:
|
|
234
|
-
sideOffset:
|
|
235
|
-
className:
|
|
236
|
-
...
|
|
24
|
+
align: t,
|
|
25
|
+
sideOffset: n,
|
|
26
|
+
className: a("tiptap-popover", o),
|
|
27
|
+
...e
|
|
237
28
|
}
|
|
238
29
|
) });
|
|
239
30
|
}
|
|
240
31
|
export {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
32
|
+
v as Popover,
|
|
33
|
+
l as PopoverContent,
|
|
34
|
+
P as PopoverTrigger
|
|
244
35
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import '../../../assets/components/tiptap-ui-primitive/separator/separator.css';/* empty css */
|
|
3
4
|
import { cn as s } from "../../../lib/tiptap-utils.js";
|
|
4
|
-
|
|
5
|
-
({ decorative: a, orientation: r = "vertical", className: o, ...t },
|
|
6
|
-
const
|
|
7
|
-
return /* @__PURE__ */
|
|
5
|
+
const m = n(
|
|
6
|
+
({ decorative: a, orientation: r = "vertical", className: o, ...t }, i) => {
|
|
7
|
+
const e = a ? { role: "none" } : { "aria-orientation": r === "vertical" ? r : void 0, role: "separator" };
|
|
8
|
+
return /* @__PURE__ */ p(
|
|
8
9
|
"div",
|
|
9
10
|
{
|
|
10
11
|
className: s("tiptap-separator", o),
|
|
11
12
|
"data-orientation": r,
|
|
12
|
-
...
|
|
13
|
+
...e,
|
|
13
14
|
...t,
|
|
14
|
-
ref:
|
|
15
|
+
ref: i
|
|
15
16
|
}
|
|
16
17
|
);
|
|
17
18
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m, useRef as p, useState as f, useCallback as v, useEffect as l } from "react";
|
|
3
|
+
import '../../../assets/components/tiptap-ui-primitive/toolbar/toolbar.css';/* empty css */
|
|
3
4
|
import { cn as b } from "../../../lib/tiptap-utils.js";
|
|
4
5
|
import { useMenuNavigation as g } from "../../../hooks/use-menu-navigation.js";
|
|
5
6
|
import { useComposedRef as N } from "../../../hooks/use-composed-ref.js";
|
|
6
7
|
import { Separator as S } from "../separator/separator.js";
|
|
7
|
-
|
|
8
|
+
const T = (e) => {
|
|
8
9
|
const [r, s] = f([]), a = v(() => e.current ? Array.from(
|
|
9
10
|
e.current.querySelectorAll(
|
|
10
11
|
'button:not([disabled]), [role="button"]:not([disabled]), [tabindex="0"]:not([disabled])'
|