@quoreadmin/ui 1.10.30 → 1.10.31
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/index186.js +4 -4
- package/dist/index193.js +8 -8
- package/dist/index195.js +1 -1
- package/dist/index198.js +17 -17
- package/dist/index201.js +22 -22
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index206.js +2 -2
- package/dist/index208.js +14 -14
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +3 -3
- package/dist/index212.js +6 -6
- package/dist/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index219.js +4 -4
- package/dist/index221.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +4 -4
- package/dist/index226.js +1 -1
- package/dist/index227.js +2 -2
- package/dist/index228.js +2 -2
- package/dist/index229.js +1 -1
- package/dist/index230.js +159 -159
- package/dist/index231.js +20 -228
- package/dist/index232.js +19 -36
- package/dist/index233.js +22 -10
- package/dist/index234.js +167 -129
- package/dist/index235.js +69 -19
- package/dist/index236.js +34 -20
- package/dist/index237.js +39 -21
- package/dist/index238.js +156 -194
- package/dist/index239.js +224 -66
- package/dist/index240.js +37 -34
- package/dist/index241.js +9 -39
- package/dist/index242.js +1 -1
- package/dist/index244.js +1 -1
- package/dist/index245.js +1 -1
- package/dist/index246.js +1 -1
- package/dist/index247.js +1 -1
- package/dist/index248.js +1 -1
- package/dist/index249.js +217 -3673
- package/dist/index250.js +7 -59
- package/dist/index251.js +133 -78
- package/dist/index252.js +82 -51
- package/dist/index253.js +22 -215
- package/dist/index254.js +22 -10
- package/dist/index255.js +20 -57
- package/dist/index256.js +822 -47
- package/dist/index257.js +692 -44
- package/dist/index258.js +167 -72
- package/dist/index259.js +21 -727
- package/dist/index260.js +20 -47
- package/dist/index261.js +20 -64
- package/dist/index262.js +3 -11
- package/dist/index263.js +173 -691
- package/dist/index264.js +123 -810
- package/dist/index265.js +1223 -22
- package/dist/index266.js +11 -13
- package/dist/index267.js +13 -11
- package/dist/index268.js +22 -836
- package/dist/index269.js +28 -701
- package/dist/index270.js +20 -176
- package/dist/index271.js +12 -14
- package/dist/index272.js +2 -20
- package/dist/index273.js +2 -20
- package/dist/index274.js +54 -3
- package/dist/index275.js +65 -173
- package/dist/index276.js +25 -132
- package/dist/index277.js +22 -1223
- package/dist/index278.js +15 -13
- package/dist/index279.js +16 -22
- package/dist/index280.js +17 -22
- package/dist/index281.js +22 -28
- package/dist/index282.js +3709 -20
- package/dist/index283.js +60 -20
- package/dist/index284.js +83 -2
- package/dist/index285.js +52 -2
- package/dist/index286.js +198 -236
- package/dist/index287.js +9 -7
- package/dist/index288.js +54 -135
- package/dist/index289.js +60 -82
- package/dist/index290.js +54 -3
- package/dist/index291.js +79 -25
- package/dist/index292.js +724 -50
- package/dist/index293.js +44 -76
- package/dist/index294.js +64 -26
- package/dist/index295.js +11 -22
- package/dist/index296.js +705 -22
- package/dist/index297.js +819 -15
- package/dist/index298.js +3 -17
- package/dist/index299.js +27 -23
- package/dist/index301.js +221 -1520
- package/dist/index302.js +4 -384
- package/dist/index303.js +119 -2716
- package/dist/index304.js +65 -83
- package/dist/index305.js +85 -3796
- package/dist/index306.js +26 -57
- package/dist/index307.js +9 -15
- package/dist/index308.js +65 -74
- package/dist/index309.js +3 -201
- package/dist/index310.js +2 -246
- package/dist/index311.js +78 -74
- package/dist/index312.js +53 -21
- package/dist/index313.js +5 -934
- package/dist/index314.js +4 -21
- package/dist/index315.js +178 -19
- package/dist/index316.js +62 -19
- package/dist/index317.js +74 -68
- package/dist/index318.js +76 -16
- package/dist/index319.js +22 -19
- package/dist/index320.js +935 -22
- package/dist/index321.js +11 -11
- package/dist/index322.js +19 -62
- package/dist/index323.js +19 -234
- package/dist/index324.js +68 -5
- package/dist/index325.js +18 -133
- package/dist/index326.js +19 -68
- package/dist/index327.js +20 -85
- package/dist/index328.js +21 -28
- package/dist/index329.js +62 -8
- package/dist/index330.js +35 -73
- package/dist/index331.js +1533 -3
- package/dist/index332.js +386 -2
- package/dist/index333.js +2730 -82
- package/dist/index334.js +84 -52
- package/dist/index335.js +3796 -4
- package/dist/index336.js +59 -4
- package/dist/index337.js +15 -179
- package/dist/index338.js +78 -57
- package/dist/index339.js +201 -74
- package/dist/index340.js +245 -9
- package/dist/index341.js +9 -10
- package/dist/index342.js +13 -14
- package/dist/index343.js +55 -10
- package/dist/index344.js +11 -16
- package/dist/index345.js +13 -8
- package/dist/index346.js +57 -12
- package/dist/index347.js +48 -51
- package/dist/index348.js +28 -9
- package/dist/index349.js +2 -14
- package/dist/index350.js +5 -58
- package/dist/index351.js +2 -52
- package/dist/index352.js +22 -30
- package/dist/index353.js +41 -2
- package/dist/index354.js +2 -5
- package/dist/index355.js +11 -2
- package/dist/index356.js +19 -22
- package/dist/index357.js +9 -40
- package/dist/index358.js +10 -2
- package/dist/index359.js +16 -10
- package/dist/index360.js +2 -20
- package/dist/index361.js +9 -2
- package/dist/index362.js +10 -9
- package/dist/index363.js +14 -37
- package/dist/index364.js +20 -19
- package/dist/index365.js +55 -19
- package/dist/index366.js +28 -63
- package/dist/index367.js +7 -37
- package/dist/index368.js +49 -18
- package/dist/index369.js +6 -56
- package/dist/index370.js +10 -27
- package/dist/index371.js +7 -7
- package/dist/index372.js +27 -51
- package/dist/index373.js +2 -6
- package/dist/index374.js +69 -11
- package/dist/index375.js +166 -6
- package/dist/index376.js +20 -28
- package/dist/index377.js +20 -2
- package/dist/index378.js +61 -67
- package/dist/index379.js +36 -166
- package/dist/index380.js +28 -98
- package/dist/index381.js +10 -90
- package/dist/index382.js +4 -98
- package/dist/index383.js +4 -17
- package/dist/index384.js +12 -30
- package/dist/index385.js +7 -11
- package/dist/index386.js +11 -3
- package/dist/index387.js +4 -3
- package/dist/index388.js +33 -13
- package/dist/index389.js +31 -7
- package/dist/index390.js +28 -12
- package/dist/index391.js +61 -5
- package/dist/index392.js +17 -33
- package/dist/index393.js +99 -29
- package/dist/index394.js +91 -28
- package/dist/index395.js +96 -59
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/package.json +1 -1
package/dist/index289.js
CHANGED
|
@@ -1,85 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { Node as l, textblockTypeInputRule as i, mergeAttributes as a } from "./index282.js";
|
|
2
|
+
var d = l.create({
|
|
3
|
+
name: "heading",
|
|
4
|
+
addOptions() {
|
|
5
|
+
return {
|
|
6
|
+
levels: [1, 2, 3, 4, 5, 6],
|
|
7
|
+
HTMLAttributes: {}
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
content: "inline*",
|
|
11
|
+
group: "block",
|
|
12
|
+
defining: !0,
|
|
13
|
+
addAttributes() {
|
|
14
|
+
return {
|
|
15
|
+
level: {
|
|
16
|
+
default: 1,
|
|
17
|
+
rendered: !1
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
parseHTML() {
|
|
22
|
+
return this.options.levels.map((e) => ({
|
|
23
|
+
tag: `h${e}`,
|
|
24
|
+
attrs: { level: e }
|
|
25
|
+
}));
|
|
26
|
+
},
|
|
27
|
+
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
28
|
+
return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, a(this.options.HTMLAttributes, t), 0];
|
|
29
|
+
},
|
|
30
|
+
parseMarkdown: (e, t) => t.createNode("heading", { level: e.depth || 1 }, t.parseInline(e.tokens || [])),
|
|
31
|
+
renderMarkdown: (e, t) => {
|
|
32
|
+
var r;
|
|
33
|
+
const n = (r = e.attrs) != null && r.level ? parseInt(e.attrs.level, 10) : 1, s = "#".repeat(n);
|
|
34
|
+
return e.content ? `${s} ${t.renderChildren(e.content)}` : "";
|
|
35
|
+
},
|
|
36
|
+
addCommands() {
|
|
37
|
+
return {
|
|
38
|
+
setHeading: (e) => ({ commands: t }) => this.options.levels.includes(e.level) ? t.setNode(this.name, e) : !1,
|
|
39
|
+
toggleHeading: (e) => ({ commands: t }) => this.options.levels.includes(e.level) ? t.toggleNode(this.name, "paragraph", e) : !1
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
addKeyboardShortcuts() {
|
|
43
|
+
return this.options.levels.reduce(
|
|
44
|
+
(e, t) => ({
|
|
45
|
+
...e,
|
|
46
|
+
[`Mod-Alt-${t}`]: () => this.editor.commands.toggleHeading({ level: t })
|
|
47
|
+
}),
|
|
48
|
+
{}
|
|
49
|
+
);
|
|
50
|
+
},
|
|
51
|
+
addInputRules() {
|
|
52
|
+
return this.options.levels.map((e) => i({
|
|
53
|
+
find: new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
|
|
54
|
+
type: this.type,
|
|
55
|
+
getAttributes: {
|
|
56
|
+
level: e
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
18
59
|
}
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
function j(t) {
|
|
22
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
23
|
-
var n = arguments[e] != null ? arguments[e] : {};
|
|
24
|
-
e % 2 ? S(Object(n), !0).forEach(function(r) {
|
|
25
|
-
F(t, r, n[r]);
|
|
26
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : S(Object(n)).forEach(function(r) {
|
|
27
|
-
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return t;
|
|
31
|
-
}
|
|
32
|
-
function F(t, e, n) {
|
|
33
|
-
return e = G(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
34
|
-
}
|
|
35
|
-
function G(t) {
|
|
36
|
-
var e = J(t, "string");
|
|
37
|
-
return a(e) == "symbol" ? e : String(e);
|
|
38
|
-
}
|
|
39
|
-
function J(t, e) {
|
|
40
|
-
if (a(t) != "object" || !t) return t;
|
|
41
|
-
var n = t[Symbol.toPrimitive];
|
|
42
|
-
if (n !== void 0) {
|
|
43
|
-
var r = n.call(t, e);
|
|
44
|
-
if (a(r) != "object") return r;
|
|
45
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
46
|
-
}
|
|
47
|
-
return (e === "string" ? String : Number)(t);
|
|
48
|
-
}
|
|
49
|
-
function Q(t) {
|
|
50
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
51
|
-
B() ? H(t) : e ? t() : N(t);
|
|
52
|
-
}
|
|
53
|
-
var U = 0;
|
|
54
|
-
function X(t) {
|
|
55
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = d(!1), r = d(t), o = d(null), $ = u.isClient() ? window.document : void 0, c = e.document, i = c === void 0 ? $ : c, m = e.immediate, C = m === void 0 ? !0 : m, f = e.manual, D = f === void 0 ? !1 : f, p = e.name, l = p === void 0 ? "style_".concat(++U) : p, v = e.id, y = v === void 0 ? void 0 : v, b = e.media, E = b === void 0 ? void 0 : b, g = e.nonce, x = g === void 0 ? void 0 : g, _ = e.props, A = _ === void 0 ? {} : _, O = function() {
|
|
56
|
-
}, P = function(K) {
|
|
57
|
-
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
58
|
-
if (i) {
|
|
59
|
-
var s = j(j({}, A), L), M = s.name || l, w = s.id || y, R = s.nonce || x;
|
|
60
|
-
o.value = i.querySelector('style[data-primevue-style-id="'.concat(M, '"]')) || i.getElementById(w) || i.createElement("style"), o.value.isConnected || (r.value = K || t, u.setAttributes(o.value, {
|
|
61
|
-
type: "text/css",
|
|
62
|
-
id: w,
|
|
63
|
-
media: E,
|
|
64
|
-
nonce: R
|
|
65
|
-
}), i.head.appendChild(o.value), u.setAttribute(o.value, "data-primevue-style-id", l), u.setAttributes(o.value, s)), !n.value && (O = z(r, function(T) {
|
|
66
|
-
o.value.textContent = T;
|
|
67
|
-
}, {
|
|
68
|
-
immediate: !0
|
|
69
|
-
}), n.value = !0);
|
|
70
|
-
}
|
|
71
|
-
}, I = function() {
|
|
72
|
-
!i || !n.value || (O(), u.isExist(o.value) && i.head.removeChild(o.value), n.value = !1);
|
|
73
|
-
};
|
|
74
|
-
return C && !D && Q(P), {
|
|
75
|
-
id: y,
|
|
76
|
-
name: l,
|
|
77
|
-
css: r,
|
|
78
|
-
unload: I,
|
|
79
|
-
load: P,
|
|
80
|
-
isLoaded: q(n)
|
|
81
|
-
};
|
|
82
|
-
}
|
|
60
|
+
});
|
|
83
61
|
export {
|
|
84
|
-
|
|
62
|
+
d as Heading
|
|
85
63
|
};
|
package/dist/index290.js
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
import { Node as m, nodeInputRule as f, canInsertNode as h, isNodeSelection as T, mergeAttributes as y } from "./index282.js";
|
|
2
|
+
import { TextSelection as s, NodeSelection as N } from "./index297.js";
|
|
3
|
+
var M = m.create({
|
|
4
|
+
name: "horizontalRule",
|
|
5
|
+
addOptions() {
|
|
6
|
+
return {
|
|
7
|
+
HTMLAttributes: {},
|
|
8
|
+
nextNodeType: "paragraph"
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
group: "block",
|
|
12
|
+
parseHTML() {
|
|
13
|
+
return [{ tag: "hr" }];
|
|
14
|
+
},
|
|
15
|
+
renderHTML({ HTMLAttributes: n }) {
|
|
16
|
+
return ["hr", y(this.options.HTMLAttributes, n)];
|
|
17
|
+
},
|
|
18
|
+
markdownTokenName: "hr",
|
|
19
|
+
parseMarkdown: (n, o) => o.createNode("horizontalRule"),
|
|
20
|
+
renderMarkdown: () => "---",
|
|
21
|
+
addCommands() {
|
|
22
|
+
return {
|
|
23
|
+
setHorizontalRule: () => ({ chain: n, state: o }) => {
|
|
24
|
+
if (!h(o, o.schema.nodes[this.name]))
|
|
25
|
+
return !1;
|
|
26
|
+
const { selection: i } = o, { $to: l } = i, r = n();
|
|
27
|
+
return T(i) ? r.insertContentAt(l.pos, {
|
|
28
|
+
type: this.name
|
|
29
|
+
}) : r.insertContent({ type: this.name }), r.command(({ state: p, tr: e, dispatch: u }) => {
|
|
30
|
+
if (u) {
|
|
31
|
+
const { $to: t } = e.selection, a = t.end();
|
|
32
|
+
if (t.nodeAfter)
|
|
33
|
+
t.nodeAfter.isTextblock ? e.setSelection(s.create(e.doc, t.pos + 1)) : t.nodeAfter.isBlock ? e.setSelection(N.create(e.doc, t.pos)) : e.setSelection(s.create(e.doc, t.pos));
|
|
34
|
+
else {
|
|
35
|
+
const c = p.schema.nodes[this.options.nextNodeType] || t.parent.type.contentMatch.defaultType, d = c?.create();
|
|
36
|
+
d && (e.insert(a, d), e.setSelection(s.create(e.doc, a + 1)));
|
|
37
|
+
}
|
|
38
|
+
e.scrollIntoView();
|
|
39
|
+
}
|
|
40
|
+
return !0;
|
|
41
|
+
}).run();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
addInputRules() {
|
|
46
|
+
return [
|
|
47
|
+
f({
|
|
48
|
+
find: /^(?:---|—-|___\s|\*\*\*\s)$/,
|
|
49
|
+
type: this.type
|
|
50
|
+
})
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
2
54
|
export {
|
|
3
|
-
|
|
4
|
-
o as onNextFrame
|
|
55
|
+
M as HorizontalRule
|
|
5
56
|
};
|
package/dist/index291.js
CHANGED
|
@@ -1,29 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index282.js";
|
|
2
|
+
var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, o = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, d = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, m = s.create({
|
|
3
|
+
name: "italic",
|
|
4
|
+
addOptions() {
|
|
5
|
+
return {
|
|
6
|
+
HTMLAttributes: {}
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
parseHTML() {
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
tag: "em"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
tag: "i",
|
|
16
|
+
getAttrs: (e) => e.style.fontStyle !== "normal" && null
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
style: "font-style=normal",
|
|
20
|
+
clearMark: (e) => e.type.name === this.name
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
style: "font-style=italic"
|
|
16
24
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
];
|
|
26
|
+
},
|
|
27
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
28
|
+
return ["em", n(this.options.HTMLAttributes, e), 0];
|
|
29
|
+
},
|
|
30
|
+
addCommands() {
|
|
31
|
+
return {
|
|
32
|
+
setItalic: () => ({ commands: e }) => e.setMark(this.name),
|
|
33
|
+
toggleItalic: () => ({ commands: e }) => e.toggleMark(this.name),
|
|
34
|
+
unsetItalic: () => ({ commands: e }) => e.unsetMark(this.name)
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
markdownTokenName: "em",
|
|
38
|
+
parseMarkdown: (e, t) => t.applyMark("italic", t.parseInline(e.tokens || [])),
|
|
39
|
+
markdownOptions: {
|
|
40
|
+
htmlReopen: {
|
|
41
|
+
open: "<em>",
|
|
42
|
+
close: "</em>"
|
|
23
43
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
44
|
+
},
|
|
45
|
+
renderMarkdown: (e, t) => `*${t.renderChildren(e)}*`,
|
|
46
|
+
addKeyboardShortcuts() {
|
|
47
|
+
return {
|
|
48
|
+
"Mod-i": () => this.editor.commands.toggleItalic(),
|
|
49
|
+
"Mod-I": () => this.editor.commands.toggleItalic()
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
addInputRules() {
|
|
53
|
+
return [
|
|
54
|
+
a({
|
|
55
|
+
find: i,
|
|
56
|
+
type: this.type
|
|
57
|
+
}),
|
|
58
|
+
a({
|
|
59
|
+
find: d,
|
|
60
|
+
type: this.type
|
|
61
|
+
})
|
|
62
|
+
];
|
|
63
|
+
},
|
|
64
|
+
addPasteRules() {
|
|
65
|
+
return [
|
|
66
|
+
r({
|
|
67
|
+
find: o,
|
|
68
|
+
type: this.type
|
|
69
|
+
}),
|
|
70
|
+
r({
|
|
71
|
+
find: l,
|
|
72
|
+
type: this.type
|
|
73
|
+
})
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
27
77
|
export {
|
|
28
|
-
|
|
78
|
+
m as Italic,
|
|
79
|
+
i as starInputRegex,
|
|
80
|
+
o as starPasteRegex,
|
|
81
|
+
d as underscoreInputRegex,
|
|
82
|
+
l as underscorePasteRegex
|
|
29
83
|
};
|