@dooherceg/tiptap-controlled-editor-with-table 0.0.9 → 0.0.11
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/Combination-CO0ZtURs.js +1333 -0
- package/dist/assets/{components/tiptap-ui-primitive/badge/badge-colors.css → badge.css} +1 -1
- package/dist/assets/{components/tiptap-ui-primitive/button/button-colors.css → button.css} +1 -1
- package/dist/assets/simple-editor.css +1 -0
- package/dist/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.js +58 -6
- package/dist/components/tiptap-node/image-upload-node/image-upload-node.js +4 -5
- package/dist/components/tiptap-templates/simple/simple-editor.d.ts +3 -1
- package/dist/components/tiptap-templates/simple/simple-editor.js +1970 -201
- package/dist/components/tiptap-templates/simple/theme-toggle.js +7 -7
- package/dist/components/tiptap-ui/blockquote-button/blockquote-button.js +10 -10
- package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.js +5 -6
- package/dist/components/tiptap-ui/color-highlight-button/use-color-highlight.js +1 -1
- package/dist/components/tiptap-ui/color-highlight-popover/color-highlight-popover.js +16 -16
- package/dist/components/tiptap-ui/heading-button/heading-button.js +9 -9
- package/dist/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.js +37 -29
- package/dist/components/tiptap-ui/heading-dropdown-menu/use-heading-dropdown-menu.js +14 -13
- package/dist/components/tiptap-ui/image-upload-button/use-image-upload.js +16 -16
- package/dist/components/tiptap-ui/insert-table-button/insert-table-button.js +9 -9
- package/dist/components/tiptap-ui/link-popover/link-popover.js +13 -13
- package/dist/components/tiptap-ui/list-button/list-button.js +7 -7
- package/dist/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.js +24 -20
- package/dist/components/tiptap-ui/list-dropdown-menu/use-list-dropdown-menu.js +6 -5
- package/dist/components/tiptap-ui/table-actions-toolbar/table-actions-toolbar.js +28 -28
- package/dist/components/tiptap-ui-primitive/badge/badge.js +16 -19
- package/dist/components/tiptap-ui-primitive/button/button.js +19 -22
- package/dist/components/tiptap-ui-primitive/card/card.js +12 -13
- package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.js +1012 -39
- package/dist/components/tiptap-ui-primitive/input/input.js +6 -7
- package/dist/components/tiptap-ui-primitive/popover/popover.js +233 -24
- package/dist/components/tiptap-ui-primitive/separator/separator.js +8 -9
- package/dist/components/tiptap-ui-primitive/toolbar/toolbar.js +7 -8
- package/dist/components/tiptap-ui-primitive/tooltip/tooltip.js +1330 -84
- package/dist/floating-ui.react-dom-DgOuULHo.js +1334 -0
- package/dist/hooks/use-throttled-callback.js +108 -13
- package/dist/{node_modules/react-hotkeys-hook/packages/react-hotkeys-hook/dist/index.js → index-Bqw9S4qP.js} +55 -57
- package/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/index.js +0 -7
- package/dist/assets/components/tiptap-node/blockquote-node/blockquote-node.css +0 -1
- package/dist/assets/components/tiptap-node/code-block-node/code-block-node.css +0 -1
- package/dist/assets/components/tiptap-node/heading-node/heading-node.css +0 -1
- package/dist/assets/components/tiptap-node/horizontal-rule-node/horizontal-rule-node.css +0 -1
- package/dist/assets/components/tiptap-node/image-node/image-node.css +0 -1
- package/dist/assets/components/tiptap-node/list-node/list-node.css +0 -1
- package/dist/assets/components/tiptap-node/paragraph-node/paragraph-node.css +0 -1
- package/dist/assets/components/tiptap-templates/simple/simple-editor.css +0 -1
- package/dist/assets/components/tiptap-ui-primitive/badge/badge-group.css +0 -1
- package/dist/assets/components/tiptap-ui-primitive/badge/badge.css +0 -1
- package/dist/assets/components/tiptap-ui-primitive/button/button-group.css +0 -1
- package/dist/assets/components/tiptap-ui-primitive/button/button.css +0 -1
- package/dist/assets/styles/_keyframe-animations.css +0 -1
- package/dist/assets/styles/_variables.css +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -932
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -185
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -48
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -53
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -221
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -636
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -239
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js +0 -84
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -57
- package/dist/node_modules/@tiptap/extension-image/dist/index.js +0 -128
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +0 -713
- package/dist/node_modules/@tiptap/extension-subscript/dist/index.js +0 -40
- package/dist/node_modules/@tiptap/extension-superscript/dist/index.js +0 -40
- package/dist/node_modules/@tiptap/extension-table/dist/index.js +0 -380
- package/dist/node_modules/@tiptap/extension-text-align/dist/index.js +0 -46
- package/dist/node_modules/@tiptap/extension-typography/dist/index.js +0 -125
- package/dist/node_modules/@tiptap/extensions/dist/index.js +0 -288
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/lodash.throttle/index.js +0 -95
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/tabbable/dist/index.esm.js +0 -197
- package/dist/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
- /package/dist/assets/{components/tiptap-ui-primitive/card/card.css → card.css} +0 -0
- /package/dist/assets/{components/tiptap-ui/color-highlight-button/color-highlight-button.css → color-highlight-button.css} +0 -0
- /package/dist/assets/{components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.css → dropdown-menu.css} +0 -0
- /package/dist/assets/{components/tiptap-node/image-upload-node/image-upload-node.css → image-upload-node.css} +0 -0
- /package/dist/assets/{components/tiptap-ui-primitive/input/input.css → input.css} +0 -0
- /package/dist/assets/{components/tiptap-ui-primitive/popover/popover.css → popover.css} +0 -0
- /package/dist/assets/{components/tiptap-ui-primitive/separator/separator.css → separator.css} +0 -0
- /package/dist/assets/{components/tiptap-ui-primitive/toolbar/toolbar.css → toolbar.css} +0 -0
- /package/dist/assets/{components/tiptap-ui-primitive/tooltip/tooltip.css → tooltip.css} +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as d from "react";
|
|
2
|
-
import { styleSingleton as f } from "../../../react-style-singleton/dist/es2015/component.js";
|
|
3
|
-
import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./constants.js";
|
|
4
|
-
import { getGapWidth as m } from "./utils.js";
|
|
5
|
-
var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
|
6
|
-
var r = n.left, i = n.top, s = n.right, c = n.gap;
|
|
7
|
-
return o === void 0 && (o = "margin"), `
|
|
8
|
-
.`.concat(p, ` {
|
|
9
|
-
overflow: hidden `).concat(t, `;
|
|
10
|
-
padding-right: `).concat(c, "px ").concat(t, `;
|
|
11
|
-
}
|
|
12
|
-
body[`).concat(e, `] {
|
|
13
|
-
overflow: hidden `).concat(t, `;
|
|
14
|
-
overscroll-behavior: contain;
|
|
15
|
-
`).concat([
|
|
16
|
-
a && "position: relative ".concat(t, ";"),
|
|
17
|
-
o === "margin" && `
|
|
18
|
-
padding-left: `.concat(r, `px;
|
|
19
|
-
padding-top: `).concat(i, `px;
|
|
20
|
-
padding-right: `).concat(s, `px;
|
|
21
|
-
margin-left:0;
|
|
22
|
-
margin-top:0;
|
|
23
|
-
margin-right: `).concat(c, "px ").concat(t, `;
|
|
24
|
-
`),
|
|
25
|
-
o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
|
|
26
|
-
].filter(Boolean).join(""), `
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.`).concat(g, ` {
|
|
30
|
-
right: `).concat(c, "px ").concat(t, `;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.`).concat(l, ` {
|
|
34
|
-
margin-right: `).concat(c, "px ").concat(t, `;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.`).concat(g, " .").concat(g, ` {
|
|
38
|
-
right: 0 `).concat(t, `;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.`).concat(l, " .").concat(l, ` {
|
|
42
|
-
margin-right: 0 `).concat(t, `;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
body[`).concat(e, `] {
|
|
46
|
-
`).concat(v, ": ").concat(c, `px;
|
|
47
|
-
}
|
|
48
|
-
`);
|
|
49
|
-
}, u = function() {
|
|
50
|
-
var n = parseInt(document.body.getAttribute(e) || "0", 10);
|
|
51
|
-
return isFinite(n) ? n : 0;
|
|
52
|
-
}, x = function() {
|
|
53
|
-
d.useEffect(function() {
|
|
54
|
-
return document.body.setAttribute(e, (u() + 1).toString()), function() {
|
|
55
|
-
var n = u() - 1;
|
|
56
|
-
n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
|
|
57
|
-
};
|
|
58
|
-
}, []);
|
|
59
|
-
}, C = function(n) {
|
|
60
|
-
var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
|
|
61
|
-
x();
|
|
62
|
-
var i = d.useMemo(function() {
|
|
63
|
-
return m(r);
|
|
64
|
-
}, [r]);
|
|
65
|
-
return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
|
|
66
|
-
};
|
|
67
|
-
export {
|
|
68
|
-
C as RemoveScrollBar,
|
|
69
|
-
e as lockAttribute,
|
|
70
|
-
x as useLockAttribute
|
|
71
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var a = {
|
|
2
|
-
left: 0,
|
|
3
|
-
top: 0,
|
|
4
|
-
right: 0,
|
|
5
|
-
gap: 0
|
|
6
|
-
}, e = function(t) {
|
|
7
|
-
return parseInt(t || "", 10) || 0;
|
|
8
|
-
}, o = function(t) {
|
|
9
|
-
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
|
10
|
-
return [e(i), e(r), e(d)];
|
|
11
|
-
}, f = function(t) {
|
|
12
|
-
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
-
return a;
|
|
14
|
-
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
-
return {
|
|
16
|
-
left: n[0],
|
|
17
|
-
top: n[1],
|
|
18
|
-
right: n[2],
|
|
19
|
-
gap: Math.max(0, r - i + n[2] - n[0])
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
f as getGapWidth,
|
|
24
|
-
a as zeroGap
|
|
25
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
import { stylesheetSingleton as r } from "./singleton.js";
|
|
3
|
-
var i = function() {
|
|
4
|
-
var t = r();
|
|
5
|
-
return function(e, n) {
|
|
6
|
-
o.useEffect(function() {
|
|
7
|
-
return t.add(e), function() {
|
|
8
|
-
t.remove();
|
|
9
|
-
};
|
|
10
|
-
}, [e && n]);
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
i as styleHookSingleton
|
|
15
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { getNonce as o } from "../../../get-nonce/dist/es2015/index.js";
|
|
2
|
-
function r() {
|
|
3
|
-
if (!document)
|
|
4
|
-
return null;
|
|
5
|
-
var t = document.createElement("style");
|
|
6
|
-
t.type = "text/css";
|
|
7
|
-
var e = o();
|
|
8
|
-
return e && t.setAttribute("nonce", e), t;
|
|
9
|
-
}
|
|
10
|
-
function l(t, e) {
|
|
11
|
-
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
-
}
|
|
13
|
-
function a(t) {
|
|
14
|
-
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
-
e.appendChild(t);
|
|
16
|
-
}
|
|
17
|
-
var c = function() {
|
|
18
|
-
var t = 0, e = null;
|
|
19
|
-
return {
|
|
20
|
-
add: function(n) {
|
|
21
|
-
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
-
},
|
|
23
|
-
remove: function() {
|
|
24
|
-
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
c as stylesheetSingleton
|
|
30
|
-
};
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
var C = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], h = /* @__PURE__ */ C.join(","), I = typeof Element > "u", f = I ? function() {
|
|
2
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, b = !I && Element.prototype.getRootNode ? function(i) {
|
|
3
|
-
var t;
|
|
4
|
-
return i == null || (t = i.getRootNode) === null || t === void 0 ? void 0 : t.call(i);
|
|
5
|
-
} : function(i) {
|
|
6
|
-
return i?.ownerDocument;
|
|
7
|
-
}, v = function(t, e) {
|
|
8
|
-
var r;
|
|
9
|
-
e === void 0 && (e = !0);
|
|
10
|
-
var a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), l = a === "" || a === "true", n = l || e && t && v(t.parentNode);
|
|
11
|
-
return n;
|
|
12
|
-
}, E = function(t) {
|
|
13
|
-
var e, r = t == null || (e = t.getAttribute) === null || e === void 0 ? void 0 : e.call(t, "contenteditable");
|
|
14
|
-
return r === "" || r === "true";
|
|
15
|
-
}, R = function(t, e, r) {
|
|
16
|
-
if (v(t))
|
|
17
|
-
return [];
|
|
18
|
-
var a = Array.prototype.slice.apply(t.querySelectorAll(h));
|
|
19
|
-
return e && f.call(t, h) && a.unshift(t), a = a.filter(r), a;
|
|
20
|
-
}, g = function(t, e, r) {
|
|
21
|
-
for (var a = [], l = Array.from(t); l.length; ) {
|
|
22
|
-
var n = l.shift();
|
|
23
|
-
if (!v(n, !1))
|
|
24
|
-
if (n.tagName === "SLOT") {
|
|
25
|
-
var c = n.assignedElements(), s = c.length ? c : n.children, u = g(s, !0, r);
|
|
26
|
-
r.flatten ? a.push.apply(a, u) : a.push({
|
|
27
|
-
scopeParent: n,
|
|
28
|
-
candidates: u
|
|
29
|
-
});
|
|
30
|
-
} else {
|
|
31
|
-
var o = f.call(n, h);
|
|
32
|
-
o && r.filter(n) && (e || !t.includes(n)) && a.push(n);
|
|
33
|
-
var d = n.shadowRoot || // check for an undisclosed shadow
|
|
34
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(n), N = !v(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(n));
|
|
35
|
-
if (d && N) {
|
|
36
|
-
var y = g(d === !0 ? n.children : d.children, !0, r);
|
|
37
|
-
r.flatten ? a.push.apply(a, y) : a.push({
|
|
38
|
-
scopeParent: n,
|
|
39
|
-
candidates: y
|
|
40
|
-
});
|
|
41
|
-
} else
|
|
42
|
-
l.unshift.apply(l, n.children);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return a;
|
|
46
|
-
}, T = function(t) {
|
|
47
|
-
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
48
|
-
}, m = function(t) {
|
|
49
|
-
if (!t)
|
|
50
|
-
throw new Error("No node provided");
|
|
51
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || E(t)) && !T(t) ? 0 : t.tabIndex;
|
|
52
|
-
}, x = function(t, e) {
|
|
53
|
-
var r = m(t);
|
|
54
|
-
return r < 0 && e && !T(t) ? 0 : r;
|
|
55
|
-
}, O = function(t, e) {
|
|
56
|
-
return t.tabIndex === e.tabIndex ? t.documentOrder - e.documentOrder : t.tabIndex - e.tabIndex;
|
|
57
|
-
}, w = function(t) {
|
|
58
|
-
return t.tagName === "INPUT";
|
|
59
|
-
}, k = function(t) {
|
|
60
|
-
return w(t) && t.type === "hidden";
|
|
61
|
-
}, D = function(t) {
|
|
62
|
-
var e = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
63
|
-
return r.tagName === "SUMMARY";
|
|
64
|
-
});
|
|
65
|
-
return e;
|
|
66
|
-
}, F = function(t, e) {
|
|
67
|
-
for (var r = 0; r < t.length; r++)
|
|
68
|
-
if (t[r].checked && t[r].form === e)
|
|
69
|
-
return t[r];
|
|
70
|
-
}, M = function(t) {
|
|
71
|
-
if (!t.name)
|
|
72
|
-
return !0;
|
|
73
|
-
var e = t.form || b(t), r = function(c) {
|
|
74
|
-
return e.querySelectorAll('input[type="radio"][name="' + c + '"]');
|
|
75
|
-
}, a;
|
|
76
|
-
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
77
|
-
a = r(window.CSS.escape(t.name));
|
|
78
|
-
else
|
|
79
|
-
try {
|
|
80
|
-
a = r(t.name);
|
|
81
|
-
} catch (n) {
|
|
82
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", n.message), !1;
|
|
83
|
-
}
|
|
84
|
-
var l = F(a, t.form);
|
|
85
|
-
return !l || l === t;
|
|
86
|
-
}, P = function(t) {
|
|
87
|
-
return w(t) && t.type === "radio";
|
|
88
|
-
}, L = function(t) {
|
|
89
|
-
return P(t) && !M(t);
|
|
90
|
-
}, V = function(t) {
|
|
91
|
-
var e, r = t && b(t), a = (e = r) === null || e === void 0 ? void 0 : e.host, l = !1;
|
|
92
|
-
if (r && r !== t) {
|
|
93
|
-
var n, c, s;
|
|
94
|
-
for (l = !!((n = a) !== null && n !== void 0 && (c = n.ownerDocument) !== null && c !== void 0 && c.contains(a) || t != null && (s = t.ownerDocument) !== null && s !== void 0 && s.contains(t)); !l && a; ) {
|
|
95
|
-
var u, o, d;
|
|
96
|
-
r = b(a), a = (u = r) === null || u === void 0 ? void 0 : u.host, l = !!((o = a) !== null && o !== void 0 && (d = o.ownerDocument) !== null && d !== void 0 && d.contains(a));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return l;
|
|
100
|
-
}, p = function(t) {
|
|
101
|
-
var e = t.getBoundingClientRect(), r = e.width, a = e.height;
|
|
102
|
-
return r === 0 && a === 0;
|
|
103
|
-
}, B = function(t, e) {
|
|
104
|
-
var r = e.displayCheck, a = e.getShadowRoot;
|
|
105
|
-
if (r === "full-native" && "checkVisibility" in t) {
|
|
106
|
-
var l = t.checkVisibility({
|
|
107
|
-
// Checking opacity might be desirable for some use cases, but natively,
|
|
108
|
-
// opacity zero elements _are_ focusable and tabbable.
|
|
109
|
-
checkOpacity: !1,
|
|
110
|
-
opacityProperty: !1,
|
|
111
|
-
contentVisibilityAuto: !0,
|
|
112
|
-
visibilityProperty: !0,
|
|
113
|
-
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
114
|
-
// support both. However, this alias has wider browser support (Chrome
|
|
115
|
-
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
116
|
-
// we include it anyway.
|
|
117
|
-
checkVisibilityCSS: !0
|
|
118
|
-
});
|
|
119
|
-
return !l;
|
|
120
|
-
}
|
|
121
|
-
if (getComputedStyle(t).visibility === "hidden")
|
|
122
|
-
return !0;
|
|
123
|
-
var n = f.call(t, "details>summary:first-of-type"), c = n ? t.parentElement : t;
|
|
124
|
-
if (f.call(c, "details:not([open]) *"))
|
|
125
|
-
return !0;
|
|
126
|
-
if (!r || r === "full" || // full-native can run this branch when it falls through in case
|
|
127
|
-
// Element#checkVisibility is unsupported
|
|
128
|
-
r === "full-native" || r === "legacy-full") {
|
|
129
|
-
if (typeof a == "function") {
|
|
130
|
-
for (var s = t; t; ) {
|
|
131
|
-
var u = t.parentElement, o = b(t);
|
|
132
|
-
if (u && !u.shadowRoot && a(u) === !0)
|
|
133
|
-
return p(t);
|
|
134
|
-
t.assignedSlot ? t = t.assignedSlot : !u && o !== t.ownerDocument ? t = o.host : t = u;
|
|
135
|
-
}
|
|
136
|
-
t = s;
|
|
137
|
-
}
|
|
138
|
-
if (V(t))
|
|
139
|
-
return !t.getClientRects().length;
|
|
140
|
-
if (r !== "legacy-full")
|
|
141
|
-
return !0;
|
|
142
|
-
} else if (r === "non-zero-area")
|
|
143
|
-
return p(t);
|
|
144
|
-
return !1;
|
|
145
|
-
}, q = function(t) {
|
|
146
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
147
|
-
for (var e = t.parentElement; e; ) {
|
|
148
|
-
if (e.tagName === "FIELDSET" && e.disabled) {
|
|
149
|
-
for (var r = 0; r < e.children.length; r++) {
|
|
150
|
-
var a = e.children.item(r);
|
|
151
|
-
if (a.tagName === "LEGEND")
|
|
152
|
-
return f.call(e, "fieldset[disabled] *") ? !0 : !a.contains(t);
|
|
153
|
-
}
|
|
154
|
-
return !0;
|
|
155
|
-
}
|
|
156
|
-
e = e.parentElement;
|
|
157
|
-
}
|
|
158
|
-
return !1;
|
|
159
|
-
}, U = function(t, e) {
|
|
160
|
-
return !(e.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
161
|
-
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
162
|
-
// note related to `candidateSelectors`)
|
|
163
|
-
v(e) || k(e) || B(e, t) || // For a details element with a summary, the summary element gets the focus
|
|
164
|
-
D(e) || q(e));
|
|
165
|
-
}, S = function(t, e) {
|
|
166
|
-
return !(L(e) || m(e) < 0 || !U(t, e));
|
|
167
|
-
}, W = function(t) {
|
|
168
|
-
var e = parseInt(t.getAttribute("tabindex"), 10);
|
|
169
|
-
return !!(isNaN(e) || e >= 0);
|
|
170
|
-
}, A = function(t) {
|
|
171
|
-
var e = [], r = [];
|
|
172
|
-
return t.forEach(function(a, l) {
|
|
173
|
-
var n = !!a.scopeParent, c = n ? a.scopeParent : a, s = x(c, n), u = n ? A(a.candidates) : c;
|
|
174
|
-
s === 0 ? n ? e.push.apply(e, u) : e.push(c) : r.push({
|
|
175
|
-
documentOrder: l,
|
|
176
|
-
tabIndex: s,
|
|
177
|
-
item: a,
|
|
178
|
-
isScope: n,
|
|
179
|
-
content: u
|
|
180
|
-
});
|
|
181
|
-
}), r.sort(O).reduce(function(a, l) {
|
|
182
|
-
return l.isScope ? a.push.apply(a, l.content) : a.push(l.content), a;
|
|
183
|
-
}, []).concat(e);
|
|
184
|
-
}, Z = function(t, e) {
|
|
185
|
-
e = e || {};
|
|
186
|
-
var r;
|
|
187
|
-
return e.getShadowRoot ? r = g([t], e.includeContainer, {
|
|
188
|
-
filter: S.bind(null, e),
|
|
189
|
-
flatten: !1,
|
|
190
|
-
getShadowRoot: e.getShadowRoot,
|
|
191
|
-
shadowRootFilter: W
|
|
192
|
-
}) : r = R(t, e.includeContainer, S.bind(null, e)), A(r);
|
|
193
|
-
};
|
|
194
|
-
export {
|
|
195
|
-
m as getTabIndex,
|
|
196
|
-
Z as tabbable
|
|
197
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var p = function() {
|
|
2
|
-
return p = Object.assign || function(e) {
|
|
3
|
-
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
4
|
-
n = arguments[r];
|
|
5
|
-
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
6
|
-
}
|
|
7
|
-
return e;
|
|
8
|
-
}, p.apply(this, arguments);
|
|
9
|
-
};
|
|
10
|
-
function c(t, e) {
|
|
11
|
-
var n = {};
|
|
12
|
-
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
13
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
14
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
|
|
15
|
-
e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
|
|
16
|
-
return n;
|
|
17
|
-
}
|
|
18
|
-
function l(t, e, n) {
|
|
19
|
-
if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
|
|
20
|
-
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
21
|
-
return t.concat(a || Array.prototype.slice.call(e));
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
p as __assign,
|
|
25
|
-
c as __rest,
|
|
26
|
-
l as __spreadArray
|
|
27
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as f from "react";
|
|
2
|
-
import { assignRef as o } from "./assignRef.js";
|
|
3
|
-
import { useCallbackRef as l } from "./useRef.js";
|
|
4
|
-
var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
function v(e, m) {
|
|
6
|
-
var t = l(null, function(n) {
|
|
7
|
-
return e.forEach(function(u) {
|
|
8
|
-
return o(u, n);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
return s(function() {
|
|
12
|
-
var n = c.get(t);
|
|
13
|
-
if (n) {
|
|
14
|
-
var u = new Set(n), r = new Set(e), i = t.current;
|
|
15
|
-
u.forEach(function(a) {
|
|
16
|
-
r.has(a) || o(a, null);
|
|
17
|
-
}), r.forEach(function(a) {
|
|
18
|
-
u.has(a) || o(a, i);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
c.set(t, e);
|
|
22
|
-
}, [e]), t;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
v as useMergeRefs
|
|
26
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useState as u } from "react";
|
|
2
|
-
function n(c, r) {
|
|
3
|
-
var e = u(function() {
|
|
4
|
-
return {
|
|
5
|
-
// value
|
|
6
|
-
value: c,
|
|
7
|
-
// last callback
|
|
8
|
-
callback: r,
|
|
9
|
-
// "memoized" public interface
|
|
10
|
-
facade: {
|
|
11
|
-
get current() {
|
|
12
|
-
return e.value;
|
|
13
|
-
},
|
|
14
|
-
set current(a) {
|
|
15
|
-
var t = e.value;
|
|
16
|
-
t !== a && (e.value = a, e.callback(a, t));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
})[0];
|
|
21
|
-
return e.callback = r, e.facade;
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
n as useCallbackRef
|
|
25
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { __rest as o, __assign as d } from "../../../tslib/tslib.es6.js";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
var i = function(r) {
|
|
4
|
-
var e = r.sideCar, a = o(r, ["sideCar"]);
|
|
5
|
-
if (!e)
|
|
6
|
-
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
7
|
-
var t = e.read();
|
|
8
|
-
if (!t)
|
|
9
|
-
throw new Error("Sidecar medium not found");
|
|
10
|
-
return n.createElement(t, d({}, a));
|
|
11
|
-
};
|
|
12
|
-
i.isSideCarExport = !0;
|
|
13
|
-
function p(r, e) {
|
|
14
|
-
return r.useMedium(e), i;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
p as exportSidecar
|
|
18
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { __assign as d } from "../../../tslib/tslib.es6.js";
|
|
2
|
-
function l(r) {
|
|
3
|
-
return r;
|
|
4
|
-
}
|
|
5
|
-
function h(r, t) {
|
|
6
|
-
t === void 0 && (t = l);
|
|
7
|
-
var e = [], o = !1, c = {
|
|
8
|
-
read: function() {
|
|
9
|
-
if (o)
|
|
10
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
11
|
-
return e.length ? e[e.length - 1] : r;
|
|
12
|
-
},
|
|
13
|
-
useMedium: function(u) {
|
|
14
|
-
var n = t(u, o);
|
|
15
|
-
return e.push(n), function() {
|
|
16
|
-
e = e.filter(function(i) {
|
|
17
|
-
return i !== n;
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
assignSyncMedium: function(u) {
|
|
22
|
-
for (o = !0; e.length; ) {
|
|
23
|
-
var n = e;
|
|
24
|
-
e = [], n.forEach(u);
|
|
25
|
-
}
|
|
26
|
-
e = {
|
|
27
|
-
push: function(i) {
|
|
28
|
-
return u(i);
|
|
29
|
-
},
|
|
30
|
-
filter: function() {
|
|
31
|
-
return e;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
assignMedium: function(u) {
|
|
36
|
-
o = !0;
|
|
37
|
-
var n = [];
|
|
38
|
-
if (e.length) {
|
|
39
|
-
var i = e;
|
|
40
|
-
e = [], i.forEach(u), n = e;
|
|
41
|
-
}
|
|
42
|
-
var s = function() {
|
|
43
|
-
var f = n;
|
|
44
|
-
n = [], f.forEach(u);
|
|
45
|
-
}, a = function() {
|
|
46
|
-
return Promise.resolve().then(s);
|
|
47
|
-
};
|
|
48
|
-
a(), e = {
|
|
49
|
-
push: function(f) {
|
|
50
|
-
n.push(f), a();
|
|
51
|
-
},
|
|
52
|
-
filter: function(f) {
|
|
53
|
-
return n = n.filter(f), e;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
return c;
|
|
59
|
-
}
|
|
60
|
-
function v(r) {
|
|
61
|
-
r === void 0 && (r = {});
|
|
62
|
-
var t = h(null);
|
|
63
|
-
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
v as createSidecarMedium
|
|
67
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/assets/{components/tiptap-ui-primitive/separator/separator.css → separator.css}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|