@templatical/editor 0.6.3 → 0.6.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.
- package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
- package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
- package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-uXTxJh06.js} +20 -20
- package/dist/{cdn/chunks/BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C0S6kPC4.js} +10 -9
- package/dist/{CloudEditor-BCz1ZTYC.js → CloudEditor-_GaYluN7.js} +446 -440
- package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-C4eXJkXW.js} +20 -20
- package/dist/CommentsSidebar-BQROg36f.js +441 -0
- package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
- package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
- package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
- package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
- package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-EDKHLJtb.js} +79 -79
- package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-MQxat34K.js} +29 -29
- package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
- package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-C8IP9HOZ.js} +218 -218
- package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
- package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-Bgu0FVr6.js} +34 -34
- package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-aSULEKUJ.js} +33 -33
- package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
- package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-wcbmmWCs.js} +30 -30
- package/dist/{TitleEditor-fStSADI-.js → TitleEditor-21D8_OUQ.js} +67 -67
- package/dist/{TplModal-BwSfxIHf.js → TplModal-CINtyB6Y.js} +14 -14
- package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
- package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-DKetBdJx.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BMSGhaNU.js} +34 -34
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BMSGhaNU.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-hNba-JqQ.js} +16 -16
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-hNba-JqQ.js.map} +1 -1
- package/dist/{BlockA11yBadge-CXDLqkcJ.js → cdn/chunks/BlockA11yBadge-BIR88CvN.js} +11 -12
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BIR88CvN.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-D2GsEC_n.js → CloudEditor-D2G2nNpQ.js} +429 -423
- package/dist/cdn/chunks/{CloudEditor-D2GsEC_n.js.map → CloudEditor-D2G2nNpQ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-Btzom8dY.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-Btzom8dY.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-BJSAJlJ1.js +93 -0
- package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BJSAJlJ1.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DbknNrIi.js +212 -0
- package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-DbknNrIi.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BvAuW8O5.js} +43 -43
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BvAuW8O5.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CYtt0boo.js} +23 -23
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CYtt0boo.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-CVfo9ztG.js} +108 -108
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-CVfo9ztG.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-DCo58JP8.js} +187 -187
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-DCo58JP8.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BzCThv84.js} +33 -33
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BzCThv84.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-S2Lix1LD.js} +27 -27
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-S2Lix1LD.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-CYzAMuUW.js} +66 -66
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-CYzAMuUW.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DOzUHoor.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DOzUHoor.js.map} +1 -1
- package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
- package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-wafZZ0-_.js} +95 -95
- package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-wafZZ0-_.js.map} +1 -1
- package/dist/cdn/chunks/{features-DEMb13KS.js → features-B4tNvoi4.js} +2260 -2267
- package/dist/cdn/chunks/features-B4tNvoi4.js.map +1 -0
- package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-B5nBFtvb.js} +2 -2
- package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-B5nBFtvb.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BLaoBxHe.js} +1397 -1397
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-BLaoBxHe.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-D920ZxXf.js} +3 -3
- package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-D920ZxXf.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-Yk30CckU.js} +3 -3
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-Yk30CckU.js.map} +1 -1
- package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
- package/dist/cdn/chunks/{src-CRaqN-p8.js → src-kLJg7Y0m.js} +171 -171
- package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-kLJg7Y0m.js.map} +1 -1
- package/dist/cdn/chunks/styles-DrVLif14.js +2944 -0
- package/dist/cdn/chunks/styles-DrVLif14.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +122 -122
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
- package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
- package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
- package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
- package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
- package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
- package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
- package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
- package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
- package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
- package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
- package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
- package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
- package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
- package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
- package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
- package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-CwJQsnSp.js +3173 -0
- package/dist/templatical-editor.js +99 -99
- package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
- package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
- package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
- package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
- package/dist/useEditorCore-DLd-5qMg.js +3784 -0
- package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
- package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
- package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
- package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
- package/package.json +8 -8
- package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
- package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
- package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
- package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
- package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
- package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
- package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
- package/dist/styles-DEXEkBvg.js +0 -3176
- package/dist/useEditorCore-C6ost42Q.js +0 -9342
- package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as t, A as n,
|
|
3
|
-
import "./features-DEMb13KS.js";
|
|
1
|
+
import { n as e } from "./rolldown-runtime-C266TIVP.js";
|
|
2
|
+
import { $ as t, A as n, B as r, C as i, N as a, O as o, S as s, W as c, Y as l, Z as u, et as d, i as f, k as p, q as m, rt as h, x as g } from "./draggable-CNhyCGIO.js";
|
|
4
3
|
//#region ../../node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.js
|
|
5
4
|
function _(e) {
|
|
6
5
|
this.content = e;
|
|
@@ -14073,7 +14072,7 @@ var c_ = K.create({
|
|
|
14073
14072
|
wrappingInputRule: () => Vd
|
|
14074
14073
|
});
|
|
14075
14074
|
function m_(e) {
|
|
14076
|
-
return
|
|
14075
|
+
return c((t, n) => ({
|
|
14077
14076
|
get() {
|
|
14078
14077
|
return t(), e;
|
|
14079
14078
|
},
|
|
@@ -14090,7 +14089,7 @@ var h_ = class extends Id {
|
|
|
14090
14089
|
constructor(e = {}) {
|
|
14091
14090
|
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = m_(this.view.state), this.reactiveExtensionStorage = m_(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
14092
14091
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
14093
|
-
}),
|
|
14092
|
+
}), m(this);
|
|
14094
14093
|
}
|
|
14095
14094
|
get state() {
|
|
14096
14095
|
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
@@ -14106,47 +14105,47 @@ var h_ = class extends Id {
|
|
|
14106
14105
|
let t = super.unregisterPlugin(e);
|
|
14107
14106
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
14108
14107
|
}
|
|
14109
|
-
}, g_ =
|
|
14108
|
+
}, g_ = g({
|
|
14110
14109
|
name: "EditorContent",
|
|
14111
14110
|
props: { editor: {
|
|
14112
14111
|
default: null,
|
|
14113
14112
|
type: Object
|
|
14114
14113
|
} },
|
|
14115
14114
|
setup(e) {
|
|
14116
|
-
let
|
|
14117
|
-
return
|
|
14118
|
-
let
|
|
14119
|
-
|
|
14120
|
-
if (!
|
|
14121
|
-
let e =
|
|
14122
|
-
|
|
14123
|
-
...
|
|
14124
|
-
provides:
|
|
14125
|
-
}),
|
|
14115
|
+
let t = u(), n = s();
|
|
14116
|
+
return r(() => {
|
|
14117
|
+
let r = e.editor;
|
|
14118
|
+
r && r.options.element && t.value && o(() => {
|
|
14119
|
+
if (!t.value || !r.view.dom?.parentNode) return;
|
|
14120
|
+
let e = h(t.value);
|
|
14121
|
+
t.value.append(...r.view.dom.parentNode.childNodes), r.contentComponent = n.ctx._, n && (r.appContext = {
|
|
14122
|
+
...n.appContext,
|
|
14123
|
+
provides: n.provides
|
|
14124
|
+
}), r.setOptions({ element: e }), r.createNodeViews();
|
|
14126
14125
|
});
|
|
14127
|
-
}),
|
|
14126
|
+
}), p(() => {
|
|
14128
14127
|
let t = e.editor;
|
|
14129
14128
|
t && (t.contentComponent = null, t.appContext = null);
|
|
14130
|
-
}), { rootEl:
|
|
14129
|
+
}), { rootEl: t };
|
|
14131
14130
|
},
|
|
14132
14131
|
render() {
|
|
14133
|
-
return
|
|
14132
|
+
return i("div", { ref: (e) => {
|
|
14134
14133
|
this.rootEl = e;
|
|
14135
14134
|
} });
|
|
14136
14135
|
}
|
|
14137
|
-
}), __ =
|
|
14136
|
+
}), __ = g({
|
|
14138
14137
|
name: "NodeViewContent",
|
|
14139
14138
|
props: { as: {
|
|
14140
14139
|
type: String,
|
|
14141
14140
|
default: "div"
|
|
14142
14141
|
} },
|
|
14143
14142
|
render() {
|
|
14144
|
-
return
|
|
14143
|
+
return i(this.as, {
|
|
14145
14144
|
style: { whiteSpace: "pre-wrap" },
|
|
14146
14145
|
"data-node-view-content": ""
|
|
14147
14146
|
});
|
|
14148
14147
|
}
|
|
14149
|
-
}), v_ =
|
|
14148
|
+
}), v_ = g({
|
|
14150
14149
|
name: "NodeViewWrapper",
|
|
14151
14150
|
props: { as: {
|
|
14152
14151
|
type: String,
|
|
@@ -14155,7 +14154,7 @@ var h_ = class extends Id {
|
|
|
14155
14154
|
inject: ["onDragStart", "decorationClasses"],
|
|
14156
14155
|
render() {
|
|
14157
14156
|
var e;
|
|
14158
|
-
return
|
|
14157
|
+
return i(this.as, {
|
|
14159
14158
|
class: this.decorationClasses,
|
|
14160
14159
|
style: { whiteSpace: "normal" },
|
|
14161
14160
|
"data-node-view-wrapper": "",
|
|
@@ -14163,17 +14162,17 @@ var h_ = class extends Id {
|
|
|
14163
14162
|
}, (e = this.$slots).default?.call(e));
|
|
14164
14163
|
}
|
|
14165
14164
|
}), y_ = (e = {}) => {
|
|
14166
|
-
let
|
|
14167
|
-
return
|
|
14168
|
-
|
|
14169
|
-
}),
|
|
14170
|
-
var e,
|
|
14171
|
-
let
|
|
14172
|
-
(e =
|
|
14173
|
-
}),
|
|
14165
|
+
let r = t();
|
|
14166
|
+
return n(() => {
|
|
14167
|
+
r.value = new h_(e);
|
|
14168
|
+
}), p(() => {
|
|
14169
|
+
var e, t;
|
|
14170
|
+
let n = r.value?.view.dom?.parentNode, i = n?.cloneNode(!0);
|
|
14171
|
+
(e = n?.parentNode) == null || e.replaceChild(i, n), (t = r.value) == null || t.destroy();
|
|
14172
|
+
}), r;
|
|
14174
14173
|
}, b_ = class {
|
|
14175
14174
|
constructor(e, { props: t = {}, editor: n }) {
|
|
14176
|
-
this.destroyed = !1, this.editor = n, this.component =
|
|
14175
|
+
this.destroyed = !1, this.editor = n, this.component = m(e), this.el = document.createElement("div"), this.props = l(t), this.renderedComponent = this.renderComponent();
|
|
14177
14176
|
}
|
|
14178
14177
|
get element() {
|
|
14179
14178
|
return this.renderedComponent.el;
|
|
@@ -14183,11 +14182,11 @@ var h_ = class extends Id {
|
|
|
14183
14182
|
}
|
|
14184
14183
|
renderComponent() {
|
|
14185
14184
|
if (this.destroyed) return this.renderedComponent;
|
|
14186
|
-
let e =
|
|
14187
|
-
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el &&
|
|
14185
|
+
let e = i(this.component, this.props);
|
|
14186
|
+
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && f(e, this.el), {
|
|
14188
14187
|
vNode: e,
|
|
14189
14188
|
destroy: () => {
|
|
14190
|
-
this.el &&
|
|
14189
|
+
this.el && f(null, this.el), this.el = null, e = null;
|
|
14191
14190
|
},
|
|
14192
14191
|
el: this.el ? this.el.firstElementChild : null
|
|
14193
14192
|
};
|
|
@@ -14229,14 +14228,14 @@ var h_ = class extends Id {
|
|
|
14229
14228
|
type: Object,
|
|
14230
14229
|
required: !0
|
|
14231
14230
|
}
|
|
14232
|
-
}, S_ =
|
|
14231
|
+
}, S_ = g({
|
|
14233
14232
|
name: "MarkViewContent",
|
|
14234
14233
|
props: { as: {
|
|
14235
14234
|
type: String,
|
|
14236
14235
|
default: "span"
|
|
14237
14236
|
} },
|
|
14238
14237
|
render() {
|
|
14239
|
-
return
|
|
14238
|
+
return i(this.as, {
|
|
14240
14239
|
style: { whiteSpace: "inherit" },
|
|
14241
14240
|
"data-mark-view-content": ""
|
|
14242
14241
|
});
|
|
@@ -14247,7 +14246,7 @@ var h_ = class extends Id {
|
|
|
14247
14246
|
let r = {
|
|
14248
14247
|
...t,
|
|
14249
14248
|
updateAttributes: this.updateAttributes.bind(this)
|
|
14250
|
-
}, i =
|
|
14249
|
+
}, i = g({
|
|
14251
14250
|
extends: { ...e },
|
|
14252
14251
|
props: Object.keys(r),
|
|
14253
14252
|
template: this.component.template,
|
|
@@ -14269,7 +14268,7 @@ var h_ = class extends Id {
|
|
|
14269
14268
|
return this.dom.querySelector("[data-mark-view-content]");
|
|
14270
14269
|
}
|
|
14271
14270
|
updateAttributes(e) {
|
|
14272
|
-
let t =
|
|
14271
|
+
let t = d(this.mark);
|
|
14273
14272
|
super.updateAttributes(e, t);
|
|
14274
14273
|
}
|
|
14275
14274
|
destroy() {
|
|
@@ -14350,15 +14349,15 @@ var T_ = {
|
|
|
14350
14349
|
getPos: () => this.getPos(),
|
|
14351
14350
|
updateAttributes: (e = {}) => this.updateAttributes(e),
|
|
14352
14351
|
deleteNode: () => this.deleteNode()
|
|
14353
|
-
},
|
|
14354
|
-
this.decorationClasses =
|
|
14355
|
-
let
|
|
14352
|
+
}, t = this.onDragStart.bind(this);
|
|
14353
|
+
this.decorationClasses = u(this.getDecorationClasses());
|
|
14354
|
+
let n = g({
|
|
14356
14355
|
extends: { ...this.component },
|
|
14357
14356
|
props: Object.keys(e),
|
|
14358
14357
|
template: this.component.template,
|
|
14359
14358
|
setup: (e) => {
|
|
14360
|
-
var
|
|
14361
|
-
return a("onDragStart",
|
|
14359
|
+
var n;
|
|
14360
|
+
return a("onDragStart", t), a("decorationClasses", this.decorationClasses), (n = this.component).setup?.call(n, e, { expose: () => void 0 });
|
|
14362
14361
|
},
|
|
14363
14362
|
__scopeId: this.component.__scopeId,
|
|
14364
14363
|
__cssModules: this.component.__cssModules,
|
|
@@ -14369,7 +14368,7 @@ var T_ = {
|
|
|
14369
14368
|
if (!this.renderer) return;
|
|
14370
14369
|
let e = this.getPos();
|
|
14371
14370
|
typeof e != "number" || e === this.currentPos || (this.currentPos = e, this.renderer.updateProps({ getPos: () => this.getPos() }));
|
|
14372
|
-
}, df(this.editor, this.positionCheckCallback), this.renderer = new b_(
|
|
14371
|
+
}, df(this.editor, this.positionCheckCallback), this.renderer = new b_(n, {
|
|
14373
14372
|
editor: this.editor,
|
|
14374
14373
|
props: e
|
|
14375
14374
|
});
|
|
@@ -14651,4 +14650,4 @@ var M_ = j_;
|
|
|
14651
14650
|
//#endregion
|
|
14652
14651
|
export { q as _, u_ as a, rh as c, Ff as d, Nf as f, id as g, K as h, p_ as i, eh as l, bf as m, v_ as n, lh as o, jf as p, D_ as r, oh as s, M_ as t, Vm as u, md as v, G as y };
|
|
14653
14652
|
|
|
14654
|
-
//# sourceMappingURL=tiptap-
|
|
14653
|
+
//# sourceMappingURL=tiptap-IyIsncxY.js.map
|