@vizel/core 0.0.1-alpha.5 → 0.0.1-alpha.6
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/index10.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index14.js +1 -1
- package/dist/index20.js +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.js +3 -3
- package/dist/index26.js +1 -1
- package/dist/index3.js +1 -1
- package/dist/index31.js +2 -2
- package/dist/index34.js +16 -63
- package/dist/index35.js +58 -4
- package/dist/index36.js +15 -123
- package/dist/index37.js +42 -305
- package/dist/index38.js +4 -487
- package/dist/index39.js +112 -37
- package/dist/index4.js +1 -1
- package/dist/index40.js +301 -653
- package/dist/index41.js +487 -4
- package/dist/index42.js +48 -4
- package/dist/index43.js +647 -206
- package/dist/index44.js +4 -82
- package/dist/index45.js +4 -17
- package/dist/index46.js +237 -57
- package/dist/index47.js +82 -15
- package/dist/index48.js +5 -5
- package/dist/index49.js +1458 -158
- package/dist/index5.js +1 -1
- package/dist/index50.js +5 -1502
- package/dist/index51.js +202 -5
- package/dist/index54.js +21 -84
- package/dist/index55.js +10 -246
- package/dist/index56.js +7 -3
- package/dist/index57.js +7 -1231
- package/dist/index58.js +11 -731
- package/dist/index59.js +19 -21
- package/dist/index6.js +1 -1
- package/dist/index60.js +25 -10
- package/dist/index61.js +83 -6
- package/dist/index62.js +245 -7
- package/dist/index63.js +3 -14
- package/dist/index64.js +1230 -17
- package/dist/index65.js +733 -24
- package/dist/index66.js +1059 -53
- package/dist/index67.js +53 -1059
- package/dist/index68.js +3 -90
- package/dist/index70.js +90 -3
- package/dist/index8.js +1 -1
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index10.js
CHANGED
package/dist/index11.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Extension as p } from "@tiptap/core";
|
|
2
|
-
import { FileHandler as V } from "./
|
|
2
|
+
import { FileHandler as V } from "./index42.js";
|
|
3
3
|
import W from "@tiptap/extension-image";
|
|
4
4
|
import { default as k } from "@tiptap/extension-image";
|
|
5
|
-
import { Plugin as U } from "./
|
|
5
|
+
import { Plugin as U } from "./index41.js";
|
|
6
6
|
import { createVizelImageUploader as M, createVizelImageUploadPlugin as v, handleVizelImageDrop as T, handleVizelImagePaste as y, validateVizelImageFile as E } from "./index31.js";
|
|
7
7
|
import { getVizelImageUploadPluginKey as C } from "./index31.js";
|
|
8
8
|
import { VizelResizableImage as P } from "./index12.js";
|
package/dist/index14.js
CHANGED
package/dist/index20.js
CHANGED
package/dist/index21.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextStyle as t, Color as l } from "./
|
|
2
|
-
import { Highlight as i } from "./
|
|
1
|
+
import { TextStyle as t, Color as l } from "./index46.js";
|
|
2
|
+
import { Highlight as i } from "./index47.js";
|
|
3
3
|
const h = [
|
|
4
4
|
// Row 1: Grayscale
|
|
5
5
|
{ name: "Default", color: "inherit" },
|
package/dist/index22.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getIconData as g } from "./
|
|
2
|
-
import { iconToSVG as h } from "./
|
|
3
|
-
import s from "./
|
|
1
|
+
import { getIconData as g } from "./index34.js";
|
|
2
|
+
import { iconToSVG as h } from "./index35.js";
|
|
3
|
+
import s from "./index36.js";
|
|
4
4
|
const u = {
|
|
5
5
|
// Text/Headings
|
|
6
6
|
heading1: "lucide:heading-1",
|
package/dist/index26.js
CHANGED
package/dist/index3.js
CHANGED
|
@@ -17,7 +17,7 @@ import y from "@tiptap/extension-paragraph";
|
|
|
17
17
|
import C from "@tiptap/extension-placeholder";
|
|
18
18
|
import V from "@tiptap/extension-strike";
|
|
19
19
|
import O from "@tiptap/extension-text";
|
|
20
|
-
import j from "./
|
|
20
|
+
import j from "./index37.js";
|
|
21
21
|
import { createVizelCharacterCountExtension as B } from "./index4.js";
|
|
22
22
|
import { createVizelCodeBlockExtension as a } from "./index5.js";
|
|
23
23
|
import { createVizelDetailsExtensions as L } from "./index6.js";
|
package/dist/index31.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PluginKey as S, Plugin as A } from "./
|
|
2
|
-
import { DecorationSet as E, Decoration as M } from "./
|
|
1
|
+
import { PluginKey as S, Plugin as A } from "./index41.js";
|
|
2
|
+
import { DecorationSet as E, Decoration as M } from "./index49.js";
|
|
3
3
|
import { VIZEL_DEFAULT_IMAGE_MAX_FILE_SIZE as _, VIZEL_DEFAULT_FILE_MIME_TYPES as P } from "./index10.js";
|
|
4
4
|
const d = new S("vizel-image-upload"), U = (e) => typeof e == "object" && e !== null && "type" in e && (e.type === "add" || e.type === "remove");
|
|
5
5
|
function T(e) {
|
package/dist/index34.js
CHANGED
|
@@ -1,66 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
parseHTML() {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
tag: "u"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
style: "text-decoration",
|
|
16
|
-
consuming: !1,
|
|
17
|
-
getAttrs: (e) => e.includes("underline") ? {} : !1
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
},
|
|
21
|
-
renderHTML({ HTMLAttributes: e }) {
|
|
22
|
-
return ["u", a(this.options.HTMLAttributes, e), 0];
|
|
23
|
-
},
|
|
24
|
-
parseMarkdown(e, n) {
|
|
25
|
-
return n.applyMark(this.name || "underline", n.parseInline(e.tokens || []));
|
|
26
|
-
},
|
|
27
|
-
renderMarkdown(e, n) {
|
|
28
|
-
return `++${n.renderChildren(e)}++`;
|
|
29
|
-
},
|
|
30
|
-
markdownTokenizer: {
|
|
31
|
-
name: "underline",
|
|
32
|
-
level: "inline",
|
|
33
|
-
start(e) {
|
|
34
|
-
return e.indexOf("++");
|
|
35
|
-
},
|
|
36
|
-
tokenize(e, n, i) {
|
|
37
|
-
const r = /^(\+\+)([\s\S]+?)(\+\+)/.exec(e);
|
|
38
|
-
if (!r)
|
|
39
|
-
return;
|
|
40
|
-
const t = r[2].trim();
|
|
41
|
-
return {
|
|
42
|
-
type: "underline",
|
|
43
|
-
raw: r[0],
|
|
44
|
-
text: t,
|
|
45
|
-
tokens: i.inlineTokens(t)
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
addCommands() {
|
|
50
|
-
return {
|
|
51
|
-
setUnderline: () => ({ commands: e }) => e.setMark(this.name),
|
|
52
|
-
toggleUnderline: () => ({ commands: e }) => e.toggleMark(this.name),
|
|
53
|
-
unsetUnderline: () => ({ commands: e }) => e.unsetMark(this.name)
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
addKeyboardShortcuts() {
|
|
57
|
-
return {
|
|
58
|
-
"Mod-u": () => this.editor.commands.toggleUnderline(),
|
|
59
|
-
"Mod-U": () => this.editor.commands.toggleUnderline()
|
|
60
|
-
};
|
|
1
|
+
import { mergeIconData as s } from "./index57.js";
|
|
2
|
+
import { getIconsTree as f } from "./index58.js";
|
|
3
|
+
function i(r, o, n) {
|
|
4
|
+
const u = r.icons, l = r.aliases || /* @__PURE__ */ Object.create(null);
|
|
5
|
+
let t = {};
|
|
6
|
+
function c(e) {
|
|
7
|
+
t = s(u[e] || l[e], t);
|
|
61
8
|
}
|
|
62
|
-
|
|
9
|
+
return c(o), n.forEach(c), s(r, t);
|
|
10
|
+
}
|
|
11
|
+
function g(r, o) {
|
|
12
|
+
if (r.icons[o]) return i(r, o, []);
|
|
13
|
+
const n = f(r, [o])[o];
|
|
14
|
+
return n ? i(r, o, n) : null;
|
|
15
|
+
}
|
|
63
16
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
17
|
+
g as getIconData,
|
|
18
|
+
i as internalGetIconData
|
|
66
19
|
};
|
package/dist/index35.js
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { defaultIconProps as k } from "./index54.js";
|
|
2
|
+
import { defaultIconCustomisations as y } from "./index55.js";
|
|
3
|
+
import { calculateSize as b } from "./index59.js";
|
|
4
|
+
import { wrapSVGContent as C } from "./index60.js";
|
|
5
|
+
const I = (s) => s === "unset" || s === "undefined" || s === "none";
|
|
6
|
+
function H(s, x) {
|
|
7
|
+
const n = {
|
|
8
|
+
...k,
|
|
9
|
+
...s
|
|
10
|
+
}, g = {
|
|
11
|
+
...y,
|
|
12
|
+
...x
|
|
13
|
+
}, t = {
|
|
14
|
+
left: n.left,
|
|
15
|
+
top: n.top,
|
|
16
|
+
width: n.width,
|
|
17
|
+
height: n.height
|
|
18
|
+
};
|
|
19
|
+
let u = n.body;
|
|
20
|
+
[n, g].forEach((r) => {
|
|
21
|
+
const o = [], F = r.hFlip, S = r.vFlip;
|
|
22
|
+
let e = r.rotate;
|
|
23
|
+
F ? S ? e += 2 : (o.push("translate(" + (t.width + t.left).toString() + " " + (0 - t.top).toString() + ")"), o.push("scale(-1 1)"), t.top = t.left = 0) : S && (o.push("translate(" + (0 - t.left).toString() + " " + (t.height + t.top).toString() + ")"), o.push("scale(1 -1)"), t.top = t.left = 0);
|
|
24
|
+
let i;
|
|
25
|
+
switch (e < 0 && (e -= Math.floor(e / 4) * 4), e = e % 4, e) {
|
|
26
|
+
case 1:
|
|
27
|
+
i = t.height / 2 + t.top, o.unshift("rotate(90 " + i.toString() + " " + i.toString() + ")");
|
|
28
|
+
break;
|
|
29
|
+
case 2:
|
|
30
|
+
o.unshift("rotate(180 " + (t.width / 2 + t.left).toString() + " " + (t.height / 2 + t.top).toString() + ")");
|
|
31
|
+
break;
|
|
32
|
+
case 3:
|
|
33
|
+
i = t.width / 2 + t.left, o.unshift("rotate(-90 " + i.toString() + " " + i.toString() + ")");
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
e % 2 === 1 && (t.left !== t.top && (i = t.left, t.left = t.top, t.top = i), t.width !== t.height && (i = t.width, t.width = t.height, t.height = i)), o.length && (u = C(u, '<g transform="' + o.join(" ") + '">', "</g>"));
|
|
37
|
+
});
|
|
38
|
+
const p = g.width, h = g.height, f = t.width, l = t.height;
|
|
39
|
+
let a, c;
|
|
40
|
+
p === null ? (c = h === null ? "1em" : h === "auto" ? l : h, a = b(c, f / l)) : (a = p === "auto" ? f : p, c = h === null ? b(a, l / f) : h === "auto" ? l : h);
|
|
41
|
+
const d = {}, w = (r, o) => {
|
|
42
|
+
I(o) || (d[r] = o.toString());
|
|
43
|
+
};
|
|
44
|
+
w("width", a), w("height", c);
|
|
45
|
+
const m = [
|
|
46
|
+
t.left,
|
|
47
|
+
t.top,
|
|
48
|
+
f,
|
|
49
|
+
l
|
|
50
|
+
];
|
|
51
|
+
return d.viewBox = m.join(" "), {
|
|
52
|
+
attributes: d,
|
|
53
|
+
viewBox: m,
|
|
54
|
+
body: u
|
|
55
|
+
};
|
|
56
|
+
}
|
|
3
57
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
58
|
+
H as iconToSVG,
|
|
59
|
+
I as isUnsetKeyword
|
|
6
60
|
};
|