@vc-shell/framework 2.0.0-alpha.23 → 2.0.0-alpha.25
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/CHANGELOG.md +46 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-DHLKAqm0.js +6523 -0
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-BBV3uTdi.js → VcTableAdapter.vue_vue_type_style_index_0_lang-TnE_L5Rp.js} +7458 -7484
- package/dist/chunks/{index-BfOiCZwO.js → index-BJbOVN0O.js} +2 -2
- package/dist/chunks/{index-BNE1zizw.js → index-Des1Cxbn.js} +2 -2
- package/dist/chunks/{vc-toast.vue_vue_type_style_index_0_lang-DHCQ1-ud.js → vc-toast.vue_vue_type_style_index_0_lang-D-kMIagL.js} +1 -1
- package/dist/chunks/{vendor-lodash-es-QnNVqiqU.js → vendor-lodash-es-BwHYzZ39.js} +3 -3
- package/dist/chunks/vendor-tiptap-extension-placeholder-D1_k7Sra.js +1 -0
- package/dist/chunks/{vendor-tiptap-extensions-CqOFzZAS.js → vendor-tiptap-extensions-pwHVUzkb.js} +55 -54
- package/dist/chunks/{vendor-tiptap-starter-kit-DcsDv0Wg.js → vendor-tiptap-starter-kit-BEsLVJ4Q.js} +1 -1
- package/dist/core/api/platform.d.ts +300 -954
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/blade-navigation/utils/bladeRouterGuard.d.ts +4 -3
- package/dist/core/blade-navigation/utils/bladeRouterGuard.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +1 -1
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useAssets/index.d.ts.map +1 -1
- package/dist/core/composables/useAssetsManager/index.d.ts +24 -0
- package/dist/core/composables/useAssetsManager/index.d.ts.map +1 -0
- package/dist/core/composables/useBladeWidgets.d.ts +16 -0
- package/dist/core/composables/useBladeWidgets.d.ts.map +1 -1
- package/dist/core/composables/usePermissions/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
- package/dist/core/services/app-bar-menu-service.d.ts.map +1 -1
- package/dist/core/services/settings-menu-service.d.ts.map +1 -1
- package/dist/core/services/widget-service.d.ts +5 -12
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +8 -16
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +2413 -2321
- package/dist/index.css +2 -2
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -1
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.d.ts +3 -0
- package/dist/locales/{de.json → de.js} +2 -1
- package/dist/locales/en.d.ts +3 -0
- package/dist/locales/en.js +432 -0
- package/dist/locales/types.d.ts +439 -0
- package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -29
- package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +1 -37
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/scripts/check-locales.cjs +3182 -0
- package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shell/components/index.d.ts +0 -1
- package/dist/shell/components/index.d.ts.map +1 -1
- package/dist/shell/components/logout-button/logout-button.vue.d.ts.map +1 -1
- package/dist/shell/components/notification-template/notification-template.vue.d.ts +2 -2
- package/dist/shell/components/notification-template/notification-template.vue.d.ts.map +1 -1
- package/dist/shell/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts +4 -0
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts +4 -0
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue.d.ts +4 -0
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +3 -0
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/{WidgetProvider.vue.d.ts → WidgetScope.vue.d.ts} +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetScope.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +9 -9
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryPreview.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryPreview.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts +4 -4
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +17 -36
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts +6 -5
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts.map +1 -1
- package/dist/ui/index.js +3 -3
- package/package.json +18 -6
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D8HSEumV.js +0 -8741
- package/dist/chunks/vendor-tiptap-extension-placeholder-WyhAnzy7.js +0 -1
- package/dist/core/composables/useWidget/index.d.ts +0 -18
- package/dist/core/composables/useWidget/index.d.ts.map +0 -1
- package/dist/shell/components/app-switcher/components/index.d.ts +0 -2
- package/dist/shell/components/app-switcher/components/index.d.ts.map +0 -1
- package/dist/shell/components/app-switcher/components/vc-app-switcher/index.d.ts +0 -2
- package/dist/shell/components/app-switcher/components/vc-app-switcher/index.d.ts.map +0 -1
- package/dist/shell/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +0 -14
- package/dist/shell/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +0 -1
- package/dist/shell/components/app-switcher/index.d.ts +0 -3
- package/dist/shell/components/app-switcher/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetProvider.vue.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ } from "./vc-toast.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { N as E, d as F } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ } from "./vc-toast.vue_vue_type_style_index_0_lang-D-kMIagL.js";
|
|
2
|
+
import { N as E, d as F } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-DHLKAqm0.js";
|
|
3
3
|
import { defineComponent as L, inject as G, computed as T, ref as w, reactive as K, h as a, toRaw as V } from "vue";
|
|
4
4
|
const f = 14, H = 3, Q = L({
|
|
5
5
|
name: "NotificationContainer",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject as A, computed as g, ref as y, watch as R, onUnmounted as j } from "vue";
|
|
2
|
-
import { j as D, k as S, l as C, D as T, A as F } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { m as N, i as m } from "./vendor-lodash-es-
|
|
2
|
+
import { j as D, k as S, l as C, D as T, A as F } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-DHLKAqm0.js";
|
|
3
|
+
import { m as N, i as m } from "./vendor-lodash-es-BwHYzZ39.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "./ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
|
|
6
6
|
function E(t, r) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as q, toRefs as K, ref as s, computed as g, watch as B, onMounted as L, onBeforeUnmount as j, openBlock as y, createElementBlock as b, normalizeClass as G, createElementVNode as C, createVNode as O, unref as S, normalizeStyle as J, toDisplayString as Q, createBlock as Z, resolveDynamicComponent as ee, withKeys as te, withModifiers as oe } from "vue";
|
|
2
|
-
import { d as k } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { d as k } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-DHLKAqm0.js";
|
|
3
3
|
const ne = ["id", "data-mounted", "data-removed", "data-y-position", "data-front", "data-expanded", "data-visible", "data-swiping", "data-swiped-out", "role"], ie = { class: "vc-notification__content-wrapper" }, ae = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "vc-notification__content"
|
|
@@ -1483,11 +1483,11 @@ var Vo = na(function(r, n, e) {
|
|
|
1483
1483
|
return r + (e ? "_" : "") + n.toLowerCase();
|
|
1484
1484
|
});
|
|
1485
1485
|
export {
|
|
1486
|
-
|
|
1487
|
-
|
|
1486
|
+
Qo as a,
|
|
1487
|
+
qo as b,
|
|
1488
1488
|
Zo as c,
|
|
1489
1489
|
Jo as d,
|
|
1490
|
-
|
|
1490
|
+
Yo as e,
|
|
1491
1491
|
Wo as f,
|
|
1492
1492
|
ji as g,
|
|
1493
1493
|
Rn as i,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./vendor-tiptap-extensions-pwHVUzkb.js";
|
package/dist/chunks/{vendor-tiptap-extensions-CqOFzZAS.js → vendor-tiptap-extensions-pwHVUzkb.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as l, x as P, y as
|
|
1
|
+
import { k as l, x as P, y as S, z, i as N } from "./vendor-tiptap-core-BWgKs47g.js";
|
|
2
2
|
import { P as p, a as m } from "./vendor-prosemirror-state-IeimrELV.js";
|
|
3
|
-
import { d as
|
|
3
|
+
import { d as T } from "./vendor-prosemirror-dropcursor-kF5UKNFM.js";
|
|
4
4
|
import { D as f, a as y } from "./vendor-prosemirror-view-Chu67Jpw.js";
|
|
5
|
-
import { g as
|
|
6
|
-
import { h as
|
|
5
|
+
import { g as E } from "./vendor-prosemirror-gapcursor-D3tpkzBp.js";
|
|
6
|
+
import { h as M, r as x, u as A } from "./vendor-prosemirror-history-CQYKHz3u.js";
|
|
7
7
|
l.create({
|
|
8
8
|
name: "characterCount",
|
|
9
9
|
addOptions() {
|
|
@@ -24,8 +24,8 @@ l.create({
|
|
|
24
24
|
this.storage.characters = (e) => {
|
|
25
25
|
const t = e?.node || this.editor.state.doc;
|
|
26
26
|
if ((e?.mode || this.options.mode) === "textSize") {
|
|
27
|
-
const
|
|
28
|
-
return this.options.textCounter(
|
|
27
|
+
const o = t.textBetween(0, t.content.size, void 0, " ");
|
|
28
|
+
return this.options.textCounter(o);
|
|
29
29
|
}
|
|
30
30
|
return t.nodeSize;
|
|
31
31
|
}, this.storage.words = (e) => {
|
|
@@ -38,42 +38,42 @@ l.create({
|
|
|
38
38
|
return [
|
|
39
39
|
new p({
|
|
40
40
|
key: new m("characterCount"),
|
|
41
|
-
appendTransaction: (t, s,
|
|
41
|
+
appendTransaction: (t, s, o) => {
|
|
42
42
|
if (e)
|
|
43
43
|
return;
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
44
|
+
const r = this.options.limit;
|
|
45
|
+
if (r == null || r === 0) {
|
|
46
46
|
e = !0;
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
const n = this.storage.characters({ node:
|
|
50
|
-
if (n >
|
|
51
|
-
const c = n -
|
|
49
|
+
const n = this.storage.characters({ node: o.doc });
|
|
50
|
+
if (n > r) {
|
|
51
|
+
const c = n - r, a = 0, i = c;
|
|
52
52
|
console.warn(
|
|
53
|
-
`[CharacterCount] Initial content exceeded limit of ${
|
|
53
|
+
`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`
|
|
54
54
|
);
|
|
55
|
-
const d =
|
|
55
|
+
const d = o.tr.deleteRange(a, i);
|
|
56
56
|
return e = !0, d;
|
|
57
57
|
}
|
|
58
58
|
e = !0;
|
|
59
59
|
},
|
|
60
60
|
filterTransaction: (t, s) => {
|
|
61
|
-
const
|
|
62
|
-
if (!t.docChanged ||
|
|
61
|
+
const o = this.options.limit;
|
|
62
|
+
if (!t.docChanged || o === 0 || o === null || o === void 0)
|
|
63
63
|
return !0;
|
|
64
|
-
const
|
|
65
|
-
if (n <=
|
|
64
|
+
const r = this.storage.characters({ node: s.doc }), n = this.storage.characters({ node: t.doc });
|
|
65
|
+
if (n <= o || r > o && n > o && n <= r)
|
|
66
66
|
return !0;
|
|
67
|
-
if (
|
|
67
|
+
if (r > o && n > o && n > r || !t.getMeta("paste"))
|
|
68
68
|
return !1;
|
|
69
|
-
const a = t.selection.$head.pos, i = n -
|
|
70
|
-
return t.deleteRange(d, u), !(this.storage.characters({ node: t.doc }) >
|
|
69
|
+
const a = t.selection.$head.pos, i = n - o, d = a - i, u = a;
|
|
70
|
+
return t.deleteRange(d, u), !(this.storage.characters({ node: t.doc }) > o);
|
|
71
71
|
}
|
|
72
72
|
})
|
|
73
73
|
];
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
var
|
|
76
|
+
var L = l.create({
|
|
77
77
|
name: "dropCursor",
|
|
78
78
|
addOptions() {
|
|
79
79
|
return {
|
|
@@ -83,7 +83,7 @@ var R = l.create({
|
|
|
83
83
|
};
|
|
84
84
|
},
|
|
85
85
|
addProseMirrorPlugins() {
|
|
86
|
-
return [
|
|
86
|
+
return [T(this.options)];
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
l.create({
|
|
@@ -100,20 +100,20 @@ l.create({
|
|
|
100
100
|
key: new m("focus"),
|
|
101
101
|
props: {
|
|
102
102
|
decorations: ({ doc: e, selection: t }) => {
|
|
103
|
-
const { isEditable: s, isFocused:
|
|
104
|
-
if (!s || !
|
|
103
|
+
const { isEditable: s, isFocused: o } = this.editor, { anchor: r } = t, n = [];
|
|
104
|
+
if (!s || !o)
|
|
105
105
|
return f.create(e, []);
|
|
106
106
|
let c = 0;
|
|
107
107
|
this.options.mode === "deepest" && e.descendants((i, d) => {
|
|
108
108
|
if (i.isText)
|
|
109
109
|
return;
|
|
110
|
-
if (!(
|
|
110
|
+
if (!(r >= d && r <= d + i.nodeSize - 1))
|
|
111
111
|
return !1;
|
|
112
112
|
c += 1;
|
|
113
113
|
});
|
|
114
114
|
let a = 0;
|
|
115
115
|
return e.descendants((i, d) => {
|
|
116
|
-
if (i.isText || !(
|
|
116
|
+
if (i.isText || !(r >= d && r <= d + i.nodeSize - 1))
|
|
117
117
|
return !1;
|
|
118
118
|
if (a += 1, this.options.mode === "deepest" && c - a > 0 || this.options.mode === "shallowest" && a > 1)
|
|
119
119
|
return this.options.mode === "deepest";
|
|
@@ -129,10 +129,10 @@ l.create({
|
|
|
129
129
|
];
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
var
|
|
132
|
+
var B = l.create({
|
|
133
133
|
name: "gapCursor",
|
|
134
134
|
addProseMirrorPlugins() {
|
|
135
|
-
return [
|
|
135
|
+
return [E()];
|
|
136
136
|
},
|
|
137
137
|
extendNodeSchema(e) {
|
|
138
138
|
var t;
|
|
@@ -142,14 +142,14 @@ var G = l.create({
|
|
|
142
142
|
storage: e.storage
|
|
143
143
|
};
|
|
144
144
|
return {
|
|
145
|
-
allowGapCursor: (t = P(
|
|
145
|
+
allowGapCursor: (t = P(S(e, "allowGapCursor", s))) != null ? t : null
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
}), C = "placeholder";
|
|
149
|
-
function
|
|
149
|
+
function O(e) {
|
|
150
150
|
return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
151
151
|
}
|
|
152
|
-
var
|
|
152
|
+
var I = l.create({
|
|
153
153
|
name: "placeholder",
|
|
154
154
|
addOptions() {
|
|
155
155
|
return {
|
|
@@ -163,18 +163,18 @@ var L = l.create({
|
|
|
163
163
|
};
|
|
164
164
|
},
|
|
165
165
|
addProseMirrorPlugins() {
|
|
166
|
-
const e = this.options.dataAttribute ? `data-${
|
|
166
|
+
const e = this.options.dataAttribute ? `data-${O(this.options.dataAttribute)}` : `data-${C}`;
|
|
167
167
|
return [
|
|
168
168
|
new p({
|
|
169
169
|
key: new m("placeholder"),
|
|
170
170
|
props: {
|
|
171
171
|
decorations: ({ doc: t, selection: s }) => {
|
|
172
|
-
const
|
|
173
|
-
if (!
|
|
172
|
+
const o = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = s, n = [];
|
|
173
|
+
if (!o)
|
|
174
174
|
return null;
|
|
175
175
|
const c = this.editor.isEmpty;
|
|
176
176
|
return t.descendants((a, i) => {
|
|
177
|
-
const d =
|
|
177
|
+
const d = r >= i && r <= i + a.nodeSize, u = !a.isLeaf && z(a);
|
|
178
178
|
if (!a.type.isTextblock)
|
|
179
179
|
return this.options.includeChildren;
|
|
180
180
|
if ((d || !this.options.showOnlyCurrent) && u) {
|
|
@@ -213,7 +213,7 @@ l.create({
|
|
|
213
213
|
key: new m("selection"),
|
|
214
214
|
props: {
|
|
215
215
|
decorations(s) {
|
|
216
|
-
return s.selection.empty || e.isFocused || !e.isEditable ||
|
|
216
|
+
return s.selection.empty || e.isFocused || !e.isEditable || N(s.selection) || e.view.dragging ? null : f.create(s.doc, [
|
|
217
217
|
y.inline(s.selection.from, s.selection.to, {
|
|
218
218
|
class: t.className
|
|
219
219
|
})
|
|
@@ -224,10 +224,11 @@ l.create({
|
|
|
224
224
|
];
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
|
+
var b = "skipTrailingNode";
|
|
227
228
|
function w({ types: e, node: t }) {
|
|
228
229
|
return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
|
|
229
230
|
}
|
|
230
|
-
var
|
|
231
|
+
var U = l.create({
|
|
231
232
|
name: "trailingNode",
|
|
232
233
|
addOptions() {
|
|
233
234
|
return {
|
|
@@ -237,31 +238,31 @@ var B = l.create({
|
|
|
237
238
|
},
|
|
238
239
|
addProseMirrorPlugins() {
|
|
239
240
|
var e;
|
|
240
|
-
const t = new m(this.name), s = this.options.node || ((e = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : e.name) || "paragraph",
|
|
241
|
+
const t = new m(this.name), s = this.options.node || ((e = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : e.name) || "paragraph", o = Object.entries(this.editor.schema.nodes).map(([, r]) => r).filter((r) => (this.options.notAfter || []).concat(s).includes(r.name));
|
|
241
242
|
return [
|
|
242
243
|
new p({
|
|
243
244
|
key: t,
|
|
244
|
-
appendTransaction: (
|
|
245
|
+
appendTransaction: (r, n, c) => {
|
|
245
246
|
const { doc: a, tr: i, schema: d } = c, u = t.getState(c), h = a.content.size, g = d.nodes[s];
|
|
246
|
-
if (u)
|
|
247
|
+
if (!r.some((v) => v.getMeta(b)) && u)
|
|
247
248
|
return i.insert(h, g.create());
|
|
248
249
|
},
|
|
249
250
|
state: {
|
|
250
|
-
init: (
|
|
251
|
+
init: (r, n) => {
|
|
251
252
|
const c = n.tr.doc.lastChild;
|
|
252
|
-
return !w({ node: c, types:
|
|
253
|
+
return !w({ node: c, types: o });
|
|
253
254
|
},
|
|
254
|
-
apply: (
|
|
255
|
-
if (!
|
|
255
|
+
apply: (r, n) => {
|
|
256
|
+
if (!r.docChanged || r.getMeta("__uniqueIDTransaction"))
|
|
256
257
|
return n;
|
|
257
|
-
const c =
|
|
258
|
-
return !w({ node: c, types:
|
|
258
|
+
const c = r.doc.lastChild;
|
|
259
|
+
return !w({ node: c, types: o });
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
262
|
})
|
|
262
263
|
];
|
|
263
264
|
}
|
|
264
|
-
}),
|
|
265
|
+
}), $ = l.create({
|
|
265
266
|
name: "undoRedo",
|
|
266
267
|
addOptions() {
|
|
267
268
|
return {
|
|
@@ -276,7 +277,7 @@ var B = l.create({
|
|
|
276
277
|
};
|
|
277
278
|
},
|
|
278
279
|
addProseMirrorPlugins() {
|
|
279
|
-
return [
|
|
280
|
+
return [M(this.options)];
|
|
280
281
|
},
|
|
281
282
|
addKeyboardShortcuts() {
|
|
282
283
|
return {
|
|
@@ -290,9 +291,9 @@ var B = l.create({
|
|
|
290
291
|
}
|
|
291
292
|
});
|
|
292
293
|
export {
|
|
293
|
-
|
|
294
|
-
G,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
L as D,
|
|
295
|
+
B as G,
|
|
296
|
+
I as P,
|
|
297
|
+
U as T,
|
|
298
|
+
$ as U
|
|
298
299
|
};
|
package/dist/chunks/{vendor-tiptap-starter-kit-DcsDv0Wg.js → vendor-tiptap-starter-kit-BEsLVJ4Q.js}
RENAMED
|
@@ -14,7 +14,7 @@ import { P as b } from "./vendor-tiptap-extension-paragraph-EwqudBl5.js";
|
|
|
14
14
|
import { S as x } from "./vendor-tiptap-extension-strike-Cqq1i9pe.js";
|
|
15
15
|
import { T as v } from "./vendor-tiptap-extension-text-BaLQc3hC.js";
|
|
16
16
|
import { U as H } from "./vendor-tiptap-extension-underline-CiUEdG6D.js";
|
|
17
|
-
import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-
|
|
17
|
+
import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-pwHVUzkb.js";
|
|
18
18
|
var J = e.create({
|
|
19
19
|
name: "starterKit",
|
|
20
20
|
addExtensions() {
|