@vizel/vue 0.0.1-alpha.1 → 0.0.1-alpha.5

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.
Files changed (59) hide show
  1. package/dist/index.d.ts +7 -7
  2. package/dist/index.js +69 -61
  3. package/dist/index10.js +80 -127
  4. package/dist/index11.js +55 -24
  5. package/dist/index12.js +28 -8
  6. package/dist/index13.js +60 -75
  7. package/dist/index14.js +98 -124
  8. package/dist/index15.js +9 -31
  9. package/dist/index16.js +184 -14
  10. package/dist/index17.js +14 -77
  11. package/dist/index18.js +28 -113
  12. package/dist/index19.js +128 -14
  13. package/dist/index2.js +73 -82
  14. package/dist/index20.js +24 -46
  15. package/dist/index21.js +10 -41
  16. package/dist/index22.js +12 -10
  17. package/dist/index23.js +89 -14
  18. package/dist/index24.js +130 -33
  19. package/dist/index25.js +34 -45
  20. package/dist/index26.js +19 -22
  21. package/dist/index27.js +77 -8
  22. package/dist/index28.js +118 -44
  23. package/dist/index29.js +18 -20
  24. package/dist/index3.js +49 -56
  25. package/dist/index30.js +50 -13
  26. package/dist/index31.js +41 -2
  27. package/dist/index32.js +36 -2
  28. package/dist/index33.js +46 -2
  29. package/dist/index34.js +22 -2
  30. package/dist/index35.js +8 -2
  31. package/dist/index36.js +44 -2
  32. package/dist/index37.js +21 -2
  33. package/dist/index38.js +13 -2
  34. package/dist/index39.js +15 -2
  35. package/dist/index4.js +236 -30
  36. package/dist/index40.js +2 -2
  37. package/dist/index41.js +1 -1
  38. package/dist/index42.js +1 -1
  39. package/dist/index43.js +1 -1
  40. package/dist/index44.js +1 -1
  41. package/dist/index45.js +1 -1
  42. package/dist/index46.js +1 -1
  43. package/dist/index47.js +1 -1
  44. package/dist/index5.js +78 -70
  45. package/dist/index51.js +1 -1
  46. package/dist/index52.js +4 -0
  47. package/dist/index53.js +4 -0
  48. package/dist/index54.js +4 -0
  49. package/dist/index55.js +4 -0
  50. package/dist/index56.js +4 -0
  51. package/dist/index57.js +4 -0
  52. package/dist/index58.js +4 -0
  53. package/dist/index59.js +4 -0
  54. package/dist/index6.js +72 -103
  55. package/dist/index60.js +4 -0
  56. package/dist/index7.js +62 -11
  57. package/dist/index8.js +57 -186
  58. package/dist/index9.js +2 -35
  59. package/package.json +25 -32
package/dist/index6.js CHANGED
@@ -1,108 +1,77 @@
1
- import { defineComponent as $, computed as l, ref as A, createBlock as B, createElementBlock as _, openBlock as u, normalizeClass as y, createVNode as i, withCtx as r } from "vue";
2
- import { useVizelState as E } from "./index29.js";
3
- import a from "./index4.js";
4
- import c from "./index5.js";
5
- import d from "./index11.js";
6
- import S from "./index13.js";
7
- import z from "./index14.js";
8
- const D = /* @__PURE__ */ $({
9
- __name: "VizelBubbleMenuDefault",
10
- props: {
11
- editor: {},
12
- class: {},
13
- enableEmbed: { type: Boolean }
1
+ import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "@tiptap/core";
2
+ var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, d = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, o = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g;
3
+ s.create({
4
+ name: "italic",
5
+ addOptions() {
6
+ return {
7
+ HTMLAttributes: {}
8
+ };
14
9
  },
15
- setup(v) {
16
- const e = v, o = E(() => e.editor), m = l(() => (o.value, e.editor.isActive("bold"))), f = l(() => (o.value, e.editor.isActive("italic"))), k = l(() => (o.value, e.editor.isActive("strike"))), p = l(() => (o.value, e.editor.isActive("underline"))), C = l(() => (o.value, e.editor.isActive("code"))), b = l(() => (o.value, e.editor.isActive("link"))), s = A(!1);
17
- return (g, t) => s.value ? (u(), B(S, {
18
- key: 0,
19
- editor: e.editor,
20
- "enable-embed": e.enableEmbed,
21
- onClose: t[0] || (t[0] = (n) => s.value = !1)
22
- }, null, 8, ["editor", "enable-embed"])) : (u(), _("div", {
23
- key: 1,
24
- class: y(["vizel-bubble-menu-toolbar", g.$props.class])
25
- }, [
26
- i(z, {
27
- editor: e.editor
28
- }, null, 8, ["editor"]),
29
- i(a, {
30
- action: "bold",
31
- "is-active": m.value,
32
- title: "Bold (Cmd+B)",
33
- onClick: t[1] || (t[1] = (n) => e.editor.chain().focus().toggleBold().run())
34
- }, {
35
- default: r(() => [
36
- i(d, { name: "bold" })
37
- ]),
38
- _: 1
39
- }, 8, ["is-active"]),
40
- i(a, {
41
- action: "italic",
42
- "is-active": f.value,
43
- title: "Italic (Cmd+I)",
44
- onClick: t[2] || (t[2] = (n) => e.editor.chain().focus().toggleItalic().run())
45
- }, {
46
- default: r(() => [
47
- i(d, { name: "italic" })
48
- ]),
49
- _: 1
50
- }, 8, ["is-active"]),
51
- i(a, {
52
- action: "strike",
53
- "is-active": k.value,
54
- title: "Strikethrough",
55
- onClick: t[3] || (t[3] = (n) => e.editor.chain().focus().toggleStrike().run())
56
- }, {
57
- default: r(() => [
58
- i(d, { name: "strikethrough" })
59
- ]),
60
- _: 1
61
- }, 8, ["is-active"]),
62
- i(a, {
63
- action: "underline",
64
- "is-active": p.value,
65
- title: "Underline (Cmd+U)",
66
- onClick: t[4] || (t[4] = (n) => e.editor.chain().focus().toggleUnderline().run())
67
- }, {
68
- default: r(() => [
69
- i(d, { name: "underline" })
70
- ]),
71
- _: 1
72
- }, 8, ["is-active"]),
73
- i(a, {
74
- action: "code",
75
- "is-active": C.value,
76
- title: "Code (Cmd+E)",
77
- onClick: t[5] || (t[5] = (n) => e.editor.chain().focus().toggleCode().run())
78
- }, {
79
- default: r(() => [
80
- i(d, { name: "code" })
81
- ]),
82
- _: 1
83
- }, 8, ["is-active"]),
84
- i(a, {
85
- action: "link",
86
- "is-active": b.value,
87
- title: "Link (Cmd+K)",
88
- onClick: t[6] || (t[6] = (n) => s.value = !0)
89
- }, {
90
- default: r(() => [
91
- i(d, { name: "link" })
92
- ]),
93
- _: 1
94
- }, 8, ["is-active"]),
95
- i(c, {
96
- editor: e.editor,
97
- type: "textColor"
98
- }, null, 8, ["editor"]),
99
- i(c, {
100
- editor: e.editor,
101
- type: "highlight"
102
- }, null, 8, ["editor"])
103
- ], 2));
10
+ parseHTML() {
11
+ return [
12
+ {
13
+ tag: "em"
14
+ },
15
+ {
16
+ tag: "i",
17
+ getAttrs: (t) => t.style.fontStyle !== "normal" && null
18
+ },
19
+ {
20
+ style: "font-style=normal",
21
+ clearMark: (t) => t.type.name === this.name
22
+ },
23
+ {
24
+ style: "font-style=italic"
25
+ }
26
+ ];
27
+ },
28
+ renderHTML({ HTMLAttributes: t }) {
29
+ return ["em", n(this.options.HTMLAttributes, t), 0];
30
+ },
31
+ addCommands() {
32
+ return {
33
+ setItalic: () => ({ commands: t }) => t.setMark(this.name),
34
+ toggleItalic: () => ({ commands: t }) => t.toggleMark(this.name),
35
+ unsetItalic: () => ({ commands: t }) => t.unsetMark(this.name)
36
+ };
37
+ },
38
+ markdownTokenName: "em",
39
+ parseMarkdown: (t, e) => e.applyMark("italic", e.parseInline(t.tokens || [])),
40
+ renderMarkdown: (t, e) => `*${e.renderChildren(t)}*`,
41
+ addKeyboardShortcuts() {
42
+ return {
43
+ "Mod-i": () => this.editor.commands.toggleItalic(),
44
+ "Mod-I": () => this.editor.commands.toggleItalic()
45
+ };
46
+ },
47
+ addInputRules() {
48
+ return [
49
+ a({
50
+ find: i,
51
+ type: this.type
52
+ }),
53
+ a({
54
+ find: o,
55
+ type: this.type
56
+ })
57
+ ];
58
+ },
59
+ addPasteRules() {
60
+ return [
61
+ r({
62
+ find: d,
63
+ type: this.type
64
+ }),
65
+ r({
66
+ find: l,
67
+ type: this.type
68
+ })
69
+ ];
104
70
  }
105
71
  });
106
72
  export {
107
- D as default
73
+ i as starInputRegex,
74
+ d as starPasteRegex,
75
+ o as underscoreInputRegex,
76
+ l as underscorePasteRegex
108
77
  };
@@ -0,0 +1,4 @@
1
+ import f from "./index31.js";
2
+ export {
3
+ f as default
4
+ };
package/dist/index7.js CHANGED
@@ -1,15 +1,66 @@
1
- import { defineComponent as s, createElementBlock as l, openBlock as n, normalizeClass as r } from "vue";
2
- const c = /* @__PURE__ */ s({
3
- __name: "VizelBubbleMenuDivider",
4
- props: {
5
- class: {}
6
- },
7
- setup(o) {
8
- return (e, a) => (n(), l("span", {
9
- class: r(["vizel-bubble-menu-divider", e.$props.class])
10
- }, null, 2));
1
+ import { Mark as r, markPasteRule as s, markInputRule as n, mergeAttributes as a } from "@tiptap/core";
2
+ var i = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, d = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g;
3
+ r.create({
4
+ name: "strike",
5
+ addOptions() {
6
+ return {
7
+ HTMLAttributes: {}
8
+ };
9
+ },
10
+ parseHTML() {
11
+ return [
12
+ {
13
+ tag: "s"
14
+ },
15
+ {
16
+ tag: "del"
17
+ },
18
+ {
19
+ tag: "strike"
20
+ },
21
+ {
22
+ style: "text-decoration",
23
+ consuming: !1,
24
+ getAttrs: (e) => e.includes("line-through") ? {} : !1
25
+ }
26
+ ];
27
+ },
28
+ renderHTML({ HTMLAttributes: e }) {
29
+ return ["s", a(this.options.HTMLAttributes, e), 0];
30
+ },
31
+ markdownTokenName: "del",
32
+ parseMarkdown: (e, t) => t.applyMark("strike", t.parseInline(e.tokens || [])),
33
+ renderMarkdown: (e, t) => `~~${t.renderChildren(e)}~~`,
34
+ addCommands() {
35
+ return {
36
+ setStrike: () => ({ commands: e }) => e.setMark(this.name),
37
+ toggleStrike: () => ({ commands: e }) => e.toggleMark(this.name),
38
+ unsetStrike: () => ({ commands: e }) => e.unsetMark(this.name)
39
+ };
40
+ },
41
+ addKeyboardShortcuts() {
42
+ return {
43
+ "Mod-Shift-s": () => this.editor.commands.toggleStrike()
44
+ };
45
+ },
46
+ addInputRules() {
47
+ return [
48
+ n({
49
+ find: i,
50
+ type: this.type
51
+ })
52
+ ];
53
+ },
54
+ addPasteRules() {
55
+ return [
56
+ s({
57
+ find: d,
58
+ type: this.type
59
+ })
60
+ ];
11
61
  }
12
62
  });
13
63
  export {
14
- c as default
64
+ i as inputRegex,
65
+ d as pasteRegex
15
66
  };
package/dist/index8.js CHANGED
@@ -1,191 +1,62 @@
1
- import { defineComponent as U, computed as k, ref as C, watch as N, onMounted as F, createElementBlock as s, openBlock as i, normalizeClass as _, createCommentVNode as b, createElementVNode as u, Fragment as B, renderList as M, normalizeStyle as z, createVNode as V } from "vue";
2
- import { isVizelValidHexColor as S, normalizeVizelHexColor as g } from "@vizel/core";
3
- import x from "./index11.js";
4
- const G = ["aria-label"], P = {
5
- key: 0,
6
- class: "vizel-color-picker-section"
7
- }, j = { class: "vizel-color-picker-recent" }, q = ["aria-selected", "aria-label", "tabindex", "data-color", "onClick", "onKeydown"], J = {
8
- key: 0,
9
- class: "vizel-color-picker-none"
10
- }, Q = { class: "vizel-color-picker-section" }, T = { class: "vizel-color-picker-grid" }, W = ["aria-selected", "aria-label", "tabindex", "data-color", "onClick", "onKeydown"], X = {
11
- key: 0,
12
- class: "vizel-color-picker-none"
13
- }, Y = {
14
- key: 1,
15
- class: "vizel-color-picker-input-row"
16
- }, Z = ["value"], D = ["disabled"], $ = 4, te = /* @__PURE__ */ U({
17
- __name: "VizelColorPicker",
18
- props: {
19
- colors: {},
20
- value: {},
21
- modelValue: {},
22
- label: { default: "Color palette" },
23
- class: {},
24
- allowCustomColor: { type: Boolean, default: !0 },
25
- recentColors: { default: () => [] },
26
- showRecentColors: { type: Boolean, default: !0 },
27
- noneValues: { default: () => ["transparent", "inherit"] }
1
+ import { Mark as s, mergeAttributes as d } from "@tiptap/core";
2
+ s.create({
3
+ name: "underline",
4
+ addOptions() {
5
+ return {
6
+ HTMLAttributes: {}
7
+ };
28
8
  },
29
- emits: ["change", "update:modelValue"],
30
- setup(d, { emit: H }) {
31
- const a = d, f = H, c = k(() => a.modelValue ?? a.value), r = C(""), v = C(-1), p = C([]), I = C(null), m = k(() => [
32
- ...a.showRecentColors ? a.recentColors : [],
33
- ...a.colors.map((e) => e.color)
34
- ]);
35
- N(
36
- () => m.value.length,
37
- (e) => {
38
- p.value.length > e && (p.value.length = e);
39
- }
40
- );
41
- const y = k(() => a.showRecentColors ? a.recentColors.length : 0);
42
- function h(e) {
43
- return a.noneValues.includes(e);
44
- }
45
- function w(e) {
46
- f("change", e), f("update:modelValue", e), r.value = "";
47
- }
48
- function R() {
49
- const e = g(r.value);
50
- S(e) && (f("change", e), f("update:modelValue", e), r.value = "");
51
- }
52
- function O(e) {
53
- e.key === "Enter" && (e.preventDefault(), R());
54
- }
55
- function K(e, n) {
56
- const l = m.value.length;
57
- if (l === 0) return;
58
- let t = n, o = !1;
59
- switch (e.key) {
60
- case "ArrowRight":
61
- t = (n + 1) % l, o = !0;
62
- break;
63
- case "ArrowLeft":
64
- t = (n - 1 + l) % l, o = !0;
65
- break;
66
- case "ArrowDown":
67
- t = Math.min(n + $, l - 1), o = !0;
68
- break;
69
- case "ArrowUp":
70
- t = Math.max(n - $, 0), o = !0;
71
- break;
72
- case "Home":
73
- t = 0, o = !0;
74
- break;
75
- case "End":
76
- t = l - 1, o = !0;
77
- break;
78
- case "Enter":
79
- case " ": {
80
- e.preventDefault();
81
- const E = m.value[n];
82
- E && w(E);
83
- return;
84
- }
9
+ parseHTML() {
10
+ return [
11
+ {
12
+ tag: "u"
13
+ },
14
+ {
15
+ style: "text-decoration",
16
+ consuming: !1,
17
+ getAttrs: (e) => e.includes("underline") ? {} : !1
85
18
  }
86
- o && (e.preventDefault(), v.value = t, p.value[t]?.focus());
19
+ ];
20
+ },
21
+ renderHTML({ HTMLAttributes: e }) {
22
+ return ["u", d(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
+ };
87
47
  }
88
- N(
89
- c,
90
- (e) => {
91
- e && !h(e) ? r.value = e : r.value = "";
92
- },
93
- { immediate: !0 }
94
- ), F(() => {
95
- const e = c.value ? m.value.indexOf(c.value) : -1;
96
- e >= 0 ? v.value = e : m.value.length > 0 && (v.value = 0);
97
- });
98
- const A = k(() => S(g(r.value))), L = k(
99
- () => A.value ? g(r.value) : void 0
100
- );
101
- return (e, n) => (i(), s("div", {
102
- class: _(["vizel-color-picker-content", e.$props.class]),
103
- role: "listbox",
104
- "aria-label": a.label
105
- }, [
106
- d.showRecentColors && a.recentColors && a.recentColors.length > 0 ? (i(), s("div", P, [
107
- n[1] || (n[1] = u("div", { class: "vizel-color-picker-label" }, "Recent", -1)),
108
- u("div", j, [
109
- (i(!0), s(B, null, M(d.recentColors, (l, t) => (i(), s("button", {
110
- key: l,
111
- ref_for: !0,
112
- ref: (o) => {
113
- p.value[t] = o;
114
- },
115
- type: "button",
116
- role: "option",
117
- "aria-selected": c.value === l,
118
- "aria-label": l,
119
- tabindex: v.value === t ? 0 : -1,
120
- class: _(["vizel-color-picker-swatch", { "is-active": c.value === l }]),
121
- style: z({ backgroundColor: h(l) ? "transparent" : l }),
122
- "data-color": l,
123
- onClick: (o) => w(l),
124
- onKeydown: (o) => K(o, t)
125
- }, [
126
- h(l) ? (i(), s("span", J, [
127
- V(x, { name: "x" })
128
- ])) : b("", !0)
129
- ], 46, q))), 128))
130
- ])
131
- ])) : b("", !0),
132
- u("div", Q, [
133
- u("div", T, [
134
- (i(!0), s(B, null, M(d.colors, (l, t) => (i(), s("button", {
135
- key: l.color,
136
- ref_for: !0,
137
- ref: (o) => {
138
- p.value[y.value + t] = o;
139
- },
140
- type: "button",
141
- role: "option",
142
- "aria-selected": c.value === l.color,
143
- "aria-label": l.name,
144
- tabindex: v.value === y.value + t ? 0 : -1,
145
- class: _(["vizel-color-picker-swatch", { "is-active": c.value === l.color }]),
146
- style: z({ backgroundColor: h(l.color) ? "transparent" : l.color }),
147
- "data-color": l.color,
148
- onClick: (o) => w(l.color),
149
- onKeydown: (o) => K(o, y.value + t)
150
- }, [
151
- h(l.color) ? (i(), s("span", X, [
152
- V(x, { name: "x" })
153
- ])) : b("", !0)
154
- ], 46, W))), 128))
155
- ])
156
- ]),
157
- d.allowCustomColor ? (i(), s("div", Y, [
158
- u("span", {
159
- class: "vizel-color-picker-preview",
160
- style: z({ backgroundColor: L.value || "transparent" }),
161
- "aria-hidden": "true"
162
- }, null, 4),
163
- u("input", {
164
- ref_key: "inputRef",
165
- ref: I,
166
- type: "text",
167
- class: "vizel-color-picker-input",
168
- placeholder: "#000000",
169
- value: r.value,
170
- maxlength: "7",
171
- "aria-label": "Custom color hex value",
172
- onInput: n[0] || (n[0] = (l) => r.value = l.target.value),
173
- onKeydown: O
174
- }, null, 40, Z),
175
- u("button", {
176
- type: "button",
177
- class: "vizel-color-picker-apply",
178
- disabled: !A.value,
179
- title: "Apply",
180
- "aria-label": "Apply custom color",
181
- onClick: R
182
- }, [
183
- V(x, { name: "check" })
184
- ], 8, D)
185
- ])) : b("", !0)
186
- ], 10, G));
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
+ };
187
61
  }
188
62
  });
189
- export {
190
- te as default
191
- };
package/dist/index9.js CHANGED
@@ -1,35 +1,2 @@
1
- import { defineComponent as d, ref as m, computed as f, watch as v, createElementBlock as u, createCommentVNode as C, openBlock as _, normalizeClass as w } from "vue";
2
- import { useVizelContextSafe as E } from "./index23.js";
3
- const x = /* @__PURE__ */ d({
4
- __name: "VizelEditor",
5
- props: {
6
- editor: {},
7
- class: {}
8
- },
9
- setup(a, { expose: c }) {
10
- const l = a, t = m(null), p = E(), i = f(() => l.editor ?? p?.());
11
- return c({
12
- get container() {
13
- return t.value;
14
- }
15
- }), v(
16
- () => [i.value, t.value],
17
- ([e, o], s) => {
18
- const n = s?.[0], r = s?.[1];
19
- n && r && n.view.dom.parentNode === r && r.removeChild(n.view.dom), e && o && (o.appendChild(e.view.dom), e.view.setProps({
20
- editable: () => e?.isEditable ?? !1
21
- }));
22
- },
23
- { immediate: !0 }
24
- ), (e, o) => i.value ? (_(), u("div", {
25
- key: 0,
26
- ref_key: "containerRef",
27
- ref: t,
28
- class: w(e.$props.class),
29
- "data-vizel-content": ""
30
- }, null, 2)) : C("", !0);
31
- }
32
- });
33
- export {
34
- x as default
35
- };
1
+ import { initVizelIconRenderer as e } from "@vizel/core";
2
+ e();
package/package.json CHANGED
@@ -1,44 +1,29 @@
1
1
  {
2
2
  "name": "@vizel/vue",
3
- "version": "0.0.1-alpha.1",
4
- "description": "Vue 3 components for Vizel block-based Markdown editor",
5
- "keywords": [
6
- "vue",
7
- "vue3",
8
- "tiptap",
9
- "editor",
10
- "markdown",
11
- "wysiwyg",
12
- "rich-text",
13
- "block-editor"
14
- ],
15
- "license": "MIT",
16
- "author": "Seiji Kohara",
3
+ "version": "0.0.1-alpha.5",
4
+ "type": "module",
17
5
  "repository": {
18
6
  "type": "git",
19
- "url": "git+https://github.com/seijikohara/vizel.git",
7
+ "url": "https://github.com/seijikohara/vizel",
20
8
  "directory": "packages/vue"
21
9
  },
22
- "homepage": "https://github.com/seijikohara/vizel",
23
- "bugs": "https://github.com/seijikohara/vizel/issues",
24
- "type": "module",
25
- "sideEffects": false,
26
- "engines": {
27
- "node": ">=18"
28
- },
29
- "main": "./dist/index.js",
30
- "module": "./dist/index.js",
31
- "types": "./dist/index.d.ts",
10
+ "main": "./src/index.ts",
11
+ "types": "./src/index.ts",
32
12
  "exports": {
33
13
  ".": {
34
- "types": "./dist/index.d.ts",
35
- "import": "./dist/index.js",
36
- "default": "./dist/index.js"
37
- },
38
- "./package.json": "./package.json"
14
+ "types": "./src/index.ts",
15
+ "import": "./src/index.ts"
16
+ }
39
17
  },
40
18
  "publishConfig": {
41
- "access": "public"
19
+ "main": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js"
25
+ }
26
+ }
42
27
  },
43
28
  "files": [
44
29
  "dist"
@@ -49,12 +34,20 @@
49
34
  },
50
35
  "dependencies": {
51
36
  "@iconify/vue": "^5",
52
- "@vizel/core": "^0.0.1-alpha.1"
37
+ "@vizel/core": "^0.0.1-alpha.5"
53
38
  },
54
39
  "peerDependencies": {
55
40
  "vue": "^3.4"
56
41
  },
57
42
  "devDependencies": {
43
+ "@tiptap/extension-bold": "^3",
44
+ "@tiptap/extension-code": "^3",
45
+ "@tiptap/extension-color": "^3",
46
+ "@tiptap/extension-highlight": "^3",
47
+ "@tiptap/extension-italic": "^3",
48
+ "@tiptap/extension-strike": "^3",
49
+ "@tiptap/extension-text-style": "^3",
50
+ "@tiptap/extension-underline": "^3",
58
51
  "@vitejs/plugin-vue": "^6",
59
52
  "vite": "^7",
60
53
  "vite-plugin-dts": "^4",