@nevuto/editors 0.2.23 → 0.2.24
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/index.js +21 -21
- package/dist/index.mjs +57 -57
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -24022,27 +24022,27 @@ var wf = kw, Sw = V((t, e) => /* @__PURE__ */ g(
|
|
|
24022
24022
|
J,
|
|
24023
24023
|
{
|
|
24024
24024
|
ref: e,
|
|
24025
|
-
innerSvg: `<path d="
|
|
24026
|
-
<path d="M14 11v6" />
|
|
24027
|
-
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" />
|
|
24025
|
+
innerSvg: `<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" />
|
|
24028
24026
|
<path d="M3 6h18" />
|
|
24029
24027
|
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />`,
|
|
24030
24028
|
...t
|
|
24031
24029
|
}
|
|
24032
24030
|
));
|
|
24033
|
-
Sw.displayName = "
|
|
24034
|
-
var
|
|
24031
|
+
Sw.displayName = "TrashIcon";
|
|
24032
|
+
var OD = Sw, xw = V((t, e) => /* @__PURE__ */ g(
|
|
24035
24033
|
J,
|
|
24036
24034
|
{
|
|
24037
24035
|
ref: e,
|
|
24038
|
-
innerSvg: `<path d="
|
|
24036
|
+
innerSvg: `<path d="M10 11v6" />
|
|
24037
|
+
<path d="M14 11v6" />
|
|
24038
|
+
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" />
|
|
24039
24039
|
<path d="M3 6h18" />
|
|
24040
24040
|
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />`,
|
|
24041
24041
|
...t
|
|
24042
24042
|
}
|
|
24043
24043
|
));
|
|
24044
|
-
xw.displayName = "
|
|
24045
|
-
var
|
|
24044
|
+
xw.displayName = "Trash2Icon";
|
|
24045
|
+
var It = xw, Cw = V((t, e) => /* @__PURE__ */ g(
|
|
24046
24046
|
J,
|
|
24047
24047
|
{
|
|
24048
24048
|
ref: e,
|
|
@@ -24059,71 +24059,71 @@ var Ew = Cw, Tw = V((t, e) => /* @__PURE__ */ g(
|
|
|
24059
24059
|
{
|
|
24060
24060
|
ref: e,
|
|
24061
24061
|
innerSvg: `<path d="M21 5H3" />
|
|
24062
|
-
<path d="
|
|
24063
|
-
<path d="
|
|
24062
|
+
<path d="M15 12H3" />
|
|
24063
|
+
<path d="M17 19H3" />`,
|
|
24064
24064
|
...t
|
|
24065
24065
|
}
|
|
24066
24066
|
));
|
|
24067
|
-
Tw.displayName = "
|
|
24067
|
+
Tw.displayName = "TextAlignStartIcon";
|
|
24068
24068
|
var ID = Tw, Mw = V((t, e) => /* @__PURE__ */ g(
|
|
24069
24069
|
J,
|
|
24070
24070
|
{
|
|
24071
24071
|
ref: e,
|
|
24072
24072
|
innerSvg: `<path d="M21 5H3" />
|
|
24073
|
-
<path d="
|
|
24074
|
-
<path d="
|
|
24073
|
+
<path d="M17 12H7" />
|
|
24074
|
+
<path d="M19 19H5" />`,
|
|
24075
24075
|
...t
|
|
24076
24076
|
}
|
|
24077
24077
|
));
|
|
24078
|
-
Mw.displayName = "
|
|
24078
|
+
Mw.displayName = "TextAlignCenterIcon";
|
|
24079
24079
|
var DD = Mw, Aw = V((t, e) => /* @__PURE__ */ g(
|
|
24080
24080
|
J,
|
|
24081
24081
|
{
|
|
24082
24082
|
ref: e,
|
|
24083
24083
|
innerSvg: `<path d="M21 5H3" />
|
|
24084
|
-
<path d="
|
|
24085
|
-
<path d="
|
|
24084
|
+
<path d="M21 12H9" />
|
|
24085
|
+
<path d="M21 19H7" />`,
|
|
24086
24086
|
...t
|
|
24087
24087
|
}
|
|
24088
24088
|
));
|
|
24089
|
-
Aw.displayName = "
|
|
24089
|
+
Aw.displayName = "TextAlignEndIcon";
|
|
24090
24090
|
var RD = Aw, _w = V((t, e) => /* @__PURE__ */ g(
|
|
24091
24091
|
J,
|
|
24092
24092
|
{
|
|
24093
24093
|
ref: e,
|
|
24094
|
-
innerSvg: `<path d="M12
|
|
24095
|
-
<
|
|
24094
|
+
innerSvg: `<path d="M12 15V9" />
|
|
24095
|
+
<path d="M3 15h18" />
|
|
24096
24096
|
<path d="M3 9h18" />
|
|
24097
|
-
<
|
|
24097
|
+
<rect width="18" height="18" x="3" y="3" rx="2" />`,
|
|
24098
24098
|
...t
|
|
24099
24099
|
}
|
|
24100
24100
|
));
|
|
24101
|
-
_w.displayName = "
|
|
24102
|
-
var
|
|
24101
|
+
_w.displayName = "TableCellsSplitIcon";
|
|
24102
|
+
var LD = _w, Nw = V((t, e) => /* @__PURE__ */ g(
|
|
24103
24103
|
J,
|
|
24104
24104
|
{
|
|
24105
24105
|
ref: e,
|
|
24106
|
-
innerSvg: `<path d="M12
|
|
24107
|
-
<
|
|
24108
|
-
<path d="M3 15h18" />
|
|
24106
|
+
innerSvg: `<path d="M12 3v18" />
|
|
24107
|
+
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
24109
24108
|
<path d="M3 9h18" />
|
|
24110
|
-
<
|
|
24109
|
+
<path d="M3 15h18" />`,
|
|
24111
24110
|
...t
|
|
24112
24111
|
}
|
|
24113
24112
|
));
|
|
24114
|
-
|
|
24115
|
-
var
|
|
24113
|
+
Nw.displayName = "TableIcon";
|
|
24114
|
+
var Ow = Nw, Iw = V((t, e) => /* @__PURE__ */ g(
|
|
24116
24115
|
J,
|
|
24117
24116
|
{
|
|
24118
24117
|
ref: e,
|
|
24119
|
-
innerSvg: `<path d="M12
|
|
24118
|
+
innerSvg: `<path d="M12 21v-6" />
|
|
24119
|
+
<path d="M12 9V3" />
|
|
24120
24120
|
<path d="M3 15h18" />
|
|
24121
24121
|
<path d="M3 9h18" />
|
|
24122
24122
|
<rect width="18" height="18" x="3" y="3" rx="2" />`,
|
|
24123
24123
|
...t
|
|
24124
24124
|
}
|
|
24125
24125
|
));
|
|
24126
|
-
Iw.displayName = "
|
|
24126
|
+
Iw.displayName = "TableCellsMergeIcon";
|
|
24127
24127
|
var PD = Iw, Dw = V((t, e) => /* @__PURE__ */ g(
|
|
24128
24128
|
J,
|
|
24129
24129
|
{
|
|
@@ -24633,17 +24633,6 @@ var Jd = Ov, Iv = V((t, e) => /* @__PURE__ */ g(
|
|
|
24633
24633
|
));
|
|
24634
24634
|
Iv.displayName = "BlockquoteIcon";
|
|
24635
24635
|
var gg = Iv, Dv = V((t, e) => /* @__PURE__ */ g(
|
|
24636
|
-
J,
|
|
24637
|
-
{
|
|
24638
|
-
ref: e,
|
|
24639
|
-
innerSvg: `<rect width="13" height="7" x="3" y="3" rx="1" />
|
|
24640
|
-
<path d="m22 15-3-3 3-3" />
|
|
24641
|
-
<rect width="13" height="7" x="3" y="14" rx="1" />`,
|
|
24642
|
-
...t
|
|
24643
|
-
}
|
|
24644
|
-
));
|
|
24645
|
-
Dv.displayName = "BetweenHorizontalEndIcon";
|
|
24646
|
-
var sR = Dv, Rv = V((t, e) => /* @__PURE__ */ g(
|
|
24647
24636
|
J,
|
|
24648
24637
|
{
|
|
24649
24638
|
ref: e,
|
|
@@ -24653,8 +24642,8 @@ var sR = Dv, Rv = V((t, e) => /* @__PURE__ */ g(
|
|
|
24653
24642
|
...t
|
|
24654
24643
|
}
|
|
24655
24644
|
));
|
|
24656
|
-
|
|
24657
|
-
var
|
|
24645
|
+
Dv.displayName = "BetweenHorizontalStartIcon";
|
|
24646
|
+
var sR = Dv, Rv = V((t, e) => /* @__PURE__ */ g(
|
|
24658
24647
|
J,
|
|
24659
24648
|
{
|
|
24660
24649
|
ref: e,
|
|
@@ -24664,8 +24653,8 @@ var oR = Rv, Lv = V((t, e) => /* @__PURE__ */ g(
|
|
|
24664
24653
|
...t
|
|
24665
24654
|
}
|
|
24666
24655
|
));
|
|
24667
|
-
|
|
24668
|
-
var
|
|
24656
|
+
Rv.displayName = "BetweenVerticalEndIcon";
|
|
24657
|
+
var oR = Rv, Lv = V((t, e) => /* @__PURE__ */ g(
|
|
24669
24658
|
J,
|
|
24670
24659
|
{
|
|
24671
24660
|
ref: e,
|
|
@@ -24675,7 +24664,18 @@ var lR = Lv, Pv = V((t, e) => /* @__PURE__ */ g(
|
|
|
24675
24664
|
...t
|
|
24676
24665
|
}
|
|
24677
24666
|
));
|
|
24678
|
-
|
|
24667
|
+
Lv.displayName = "BetweenVerticalStartIcon";
|
|
24668
|
+
var lR = Lv, Pv = V((t, e) => /* @__PURE__ */ g(
|
|
24669
|
+
J,
|
|
24670
|
+
{
|
|
24671
|
+
ref: e,
|
|
24672
|
+
innerSvg: `<rect width="13" height="7" x="3" y="3" rx="1" />
|
|
24673
|
+
<path d="m22 15-3-3 3-3" />
|
|
24674
|
+
<rect width="13" height="7" x="3" y="14" rx="1" />`,
|
|
24675
|
+
...t
|
|
24676
|
+
}
|
|
24677
|
+
));
|
|
24678
|
+
Pv.displayName = "BetweenHorizontalEndIcon";
|
|
24679
24679
|
var aR = Pv, Bv = V((t, e) => /* @__PURE__ */ g(
|
|
24680
24680
|
J,
|
|
24681
24681
|
{
|
|
@@ -25533,7 +25533,7 @@ const kR = "_menubar_x0rrp_1", SR = "_group_x0rrp_11", xR = "_divider_x0rrp_17",
|
|
|
25533
25533
|
e.isActive("tableCell") || e.isActive("tableHeader") ? L((Tt) => !Tt) : e.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
|
|
25534
25534
|
},
|
|
25535
25535
|
"aria-label": "Table",
|
|
25536
|
-
children: /* @__PURE__ */ g(
|
|
25536
|
+
children: /* @__PURE__ */ g(Ow, { size: 14 })
|
|
25537
25537
|
}
|
|
25538
25538
|
) }),
|
|
25539
25539
|
O && /* @__PURE__ */ g("div", { className: Y.blockDropdown, children: /* @__PURE__ */ R(vn, { children: [
|
|
@@ -26217,7 +26217,7 @@ const oL = [
|
|
|
26217
26217
|
{
|
|
26218
26218
|
id: "table",
|
|
26219
26219
|
label: "Table",
|
|
26220
|
-
icon: /* @__PURE__ */ g(
|
|
26220
|
+
icon: /* @__PURE__ */ g(Ow, { size: nt }),
|
|
26221
26221
|
group: "Basic",
|
|
26222
26222
|
shortcut: "/table",
|
|
26223
26223
|
keywords: ["grid", "rows", "columns", "spreadsheet"],
|
|
@@ -27161,9 +27161,9 @@ const b2 = "callout", w2 = Ae.create({
|
|
|
27161
27161
|
styleOptionActive: I2,
|
|
27162
27162
|
alignGroup: D2
|
|
27163
27163
|
}, R2 = [
|
|
27164
|
-
{ value: "left", label: "Align left", icon:
|
|
27165
|
-
{ value: "center", label: "Align centre", icon:
|
|
27166
|
-
{ value: "right", label: "Align right", icon:
|
|
27164
|
+
{ value: "left", label: "Align left", icon: ID },
|
|
27165
|
+
{ value: "center", label: "Align centre", icon: DD },
|
|
27166
|
+
{ value: "right", label: "Align right", icon: RD }
|
|
27167
27167
|
], L2 = [
|
|
27168
27168
|
{ value: "fill", label: "Fill" },
|
|
27169
27169
|
{ value: "outline", label: "Outline" }
|
|
@@ -30160,7 +30160,7 @@ function o$({ editor: t }) {
|
|
|
30160
30160
|
className: ee.button,
|
|
30161
30161
|
onClick: () => t.chain().focus().addColumnBefore().run(),
|
|
30162
30162
|
"aria-label": "Insert column before",
|
|
30163
|
-
children: /* @__PURE__ */ g(
|
|
30163
|
+
children: /* @__PURE__ */ g(lR, { size: 15 })
|
|
30164
30164
|
}
|
|
30165
30165
|
) }),
|
|
30166
30166
|
/* @__PURE__ */ g(te, { content: "Insert column after", children: /* @__PURE__ */ g(
|
|
@@ -30170,7 +30170,7 @@ function o$({ editor: t }) {
|
|
|
30170
30170
|
className: ee.button,
|
|
30171
30171
|
onClick: () => t.chain().focus().addColumnAfter().run(),
|
|
30172
30172
|
"aria-label": "Insert column after",
|
|
30173
|
-
children: /* @__PURE__ */ g(
|
|
30173
|
+
children: /* @__PURE__ */ g(oR, { size: 15 })
|
|
30174
30174
|
}
|
|
30175
30175
|
) }),
|
|
30176
30176
|
/* @__PURE__ */ g(te, { content: "Delete column", children: /* @__PURE__ */ g(
|
|
@@ -30191,7 +30191,7 @@ function o$({ editor: t }) {
|
|
|
30191
30191
|
className: ee.button,
|
|
30192
30192
|
onClick: () => t.chain().focus().addRowBefore().run(),
|
|
30193
30193
|
"aria-label": "Insert row above",
|
|
30194
|
-
children: /* @__PURE__ */ g(
|
|
30194
|
+
children: /* @__PURE__ */ g(sR, { size: 15 })
|
|
30195
30195
|
}
|
|
30196
30196
|
) }),
|
|
30197
30197
|
/* @__PURE__ */ g(te, { content: "Insert row below", children: /* @__PURE__ */ g(
|
|
@@ -30201,7 +30201,7 @@ function o$({ editor: t }) {
|
|
|
30201
30201
|
className: ee.button,
|
|
30202
30202
|
onClick: () => t.chain().focus().addRowAfter().run(),
|
|
30203
30203
|
"aria-label": "Insert row below",
|
|
30204
|
-
children: /* @__PURE__ */ g(
|
|
30204
|
+
children: /* @__PURE__ */ g(aR, { size: 15 })
|
|
30205
30205
|
}
|
|
30206
30206
|
) }),
|
|
30207
30207
|
/* @__PURE__ */ g(te, { content: "Delete row", children: /* @__PURE__ */ g(
|
|
@@ -30232,7 +30232,7 @@ function o$({ editor: t }) {
|
|
|
30232
30232
|
className: ee.button,
|
|
30233
30233
|
onClick: () => t.chain().focus().splitCell().run(),
|
|
30234
30234
|
"aria-label": "Split cell",
|
|
30235
|
-
children: /* @__PURE__ */ g(
|
|
30235
|
+
children: /* @__PURE__ */ g(LD, { size: 15 })
|
|
30236
30236
|
}
|
|
30237
30237
|
) }) : /* @__PURE__ */ g(te, { content: "Merge cells", children: /* @__PURE__ */ g(
|
|
30238
30238
|
"button",
|
|
@@ -30242,7 +30242,7 @@ function o$({ editor: t }) {
|
|
|
30242
30242
|
disabled: !e.canMerge,
|
|
30243
30243
|
onClick: () => t.chain().focus().mergeCells().run(),
|
|
30244
30244
|
"aria-label": "Merge cells",
|
|
30245
|
-
children: /* @__PURE__ */ g(
|
|
30245
|
+
children: /* @__PURE__ */ g(PD, { size: 15 })
|
|
30246
30246
|
}
|
|
30247
30247
|
) }),
|
|
30248
30248
|
/* @__PURE__ */ g("span", { className: ee.divider }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nevuto/editors",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24",
|
|
4
4
|
"description": "Rich text and block editors for Nevuto UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@tiptap/suggestion": "3.26.1",
|
|
38
38
|
"prismjs": "^1.30.0",
|
|
39
39
|
"react-simple-code-editor": "^0.14.1",
|
|
40
|
-
"@nevuto/components": "^0.
|
|
41
|
-
"@nevuto/
|
|
42
|
-
"@nevuto/
|
|
40
|
+
"@nevuto/components": "^0.20.0",
|
|
41
|
+
"@nevuto/icons": "^0.1.4",
|
|
42
|
+
"@nevuto/tokens": "0.0.12"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=18.0.0",
|