@aswin.dev/editor 0.7.0 → 0.7.2
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/LICENSE +56 -0
- package/README.md +3 -3
- package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-EmQ19wiS.js} +37 -37
- package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-DeB0w_32.js} +67 -81
- package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-DoLD5Cde.js} +22 -22
- package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-DkNbDvJA.js} +12 -12
- package/dist/CloudEditor-zo9PjjvY.js +1214 -0
- package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-BsXMY-8e.js} +21 -21
- package/dist/CommentsSidebar-DIWIa4rS.js +436 -0
- package/dist/CountdownBlock-BCi7-DAM.js +92 -0
- package/dist/CountdownToolbar-BuS8p5ju.js +210 -0
- package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-RDlnhL-6.js} +58 -58
- package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-BJ59h9ok.js} +2 -2
- package/dist/ModuleBrowserModal-b7HbpByz.js +206 -0
- package/dist/ModulePreviewCanvas-D__YlOLS.js +108 -0
- package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Ca3vNY84.js} +87 -87
- package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-B1aYPO-6.js} +182 -182
- package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-BmEVMrkJ.js} +38 -38
- package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-ClovqI6h.js} +28 -28
- package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-DoqtH0cw.js} +45 -50
- package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-DQv2ZAiL.js} +75 -75
- package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-iIeYJYsj.js} +28 -28
- package/dist/{TitleEditor-fStSADI-.js → TitleEditor-CTDIwRF_.js} +68 -68
- package/dist/{TplModal-BwSfxIHf.js → TplModal-CBq1J1pG.js} +14 -14
- package/dist/{accessibility-e8JYu_zd.js → accessibility-BU09xZrQ.js} +1 -1
- package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-QkC6f5UE.js} +19 -5
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BeU8nz7A.js} +28 -28
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BeU8nz7A.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-B2mhscyP.js} +21 -21
- package/dist/cdn/chunks/AiFeatureMenu-B2mhscyP.js.map +1 -0
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C4g77gF0.js} +11 -11
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-C4g77gF0.js.map} +1 -1
- package/dist/{CloudEditor-BCz1ZTYC.js → cdn/chunks/CloudEditor-Btyr0b0_.js} +486 -475
- package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-YBiIjiRh.js} +15 -15
- package/dist/cdn/chunks/CollaboratorBar-YBiIjiRh.js.map +1 -0
- package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +93 -0
- package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +1 -0
- package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js +212 -0
- package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js.map +1 -0
- package/dist/{ModuleBrowserModal-DrUFMTDx.js → cdn/chunks/ModuleBrowserModal-C2CDWKW6.js} +51 -62
- package/dist/cdn/chunks/ModuleBrowserModal-C2CDWKW6.js.map +1 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js +109 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +1 -0
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-Ty1bp9vB.js} +64 -64
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-Ty1bp9vB.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-BA1WbHI7.js} +188 -188
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-BA1WbHI7.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BtWCA_Oc.js} +30 -30
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BtWCA_Oc.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-AwL0tkCV.js} +21 -21
- package/dist/cdn/chunks/SaveModuleDialog-AwL0tkCV.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-DbSyeixS.js} +65 -65
- package/dist/cdn/chunks/TitleEditor-DbSyeixS.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +23 -0
- package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +1 -0
- package/dist/cdn/chunks/{de-D8CnZxV9.js → de-_tooy3Q8.js} +250 -2
- package/dist/cdn/chunks/de-_tooy3Q8.js.map +1 -0
- package/dist/cdn/chunks/{draggable-Bcb86AsV.js → draggable-C-1_gch3.js} +2 -2
- package/dist/cdn/chunks/{draggable-Bcb86AsV.js.map → draggable-C-1_gch3.js.map} +1 -1
- package/dist/cdn/chunks/{en-8FHaQv4V.js → en-CNqLoIm9.js} +250 -2
- package/dist/cdn/chunks/en-CNqLoIm9.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-BVKQw_sp.js} +107 -107
- package/dist/cdn/chunks/extensions-BVKQw_sp.js.map +1 -0
- package/dist/cdn/chunks/{features-DEMb13KS.js → features-DIBEo4xl.js} +3388 -2289
- package/dist/cdn/chunks/features-DIBEo4xl.js.map +1 -0
- package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-C1Gg-ov-.js} +346 -54
- package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +1 -0
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BTF_Ko70.js} +985 -985
- package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +1 -0
- package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-C5AmotmP.js} +312 -312
- package/dist/cdn/chunks/quality-C5AmotmP.js.map +1 -0
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-D0L44Vlp.js} +236 -142
- package/dist/cdn/chunks/renderer-D0L44Vlp.js.map +1 -0
- package/dist/cdn/chunks/{src-CRaqN-p8.js → src-RKexlYjA.js} +161 -161
- package/dist/cdn/chunks/src-RKexlYjA.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js +57 -0
- package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js.map +1 -0
- package/dist/cdn/chunks/styles-CQR6ed13.js +4976 -0
- package/dist/cdn/chunks/styles-CQR6ed13.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-CDzAbF2j.js} +43 -43
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-CDzAbF2j.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +211 -123
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Da05j8yl.js → check-DJrpDKO_.js} +1 -1
- package/dist/{chevron-down-R2uY34iD.js → chevron-down-C5oBUhT8.js} +1 -1
- package/dist/chevron-right-BqCptpdp.js +10 -0
- package/dist/{circle-alert-DZuGWPX-.js → circle-alert-ZQQc98HC.js} +1 -1
- package/dist/{clock-CRp2sIub.js → clock-ik2pRJKG.js} +1 -1
- package/dist/{cloud-DEk_b4CR.js → cloud-DJG4tb4_.js} +485 -427
- package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-ClREiSx3.js} +6 -6
- package/dist/{de-Brqvgr43.js → de-2LEvILeZ.js} +249 -1
- package/dist/{dist-Cp0zXPAD.js → dist-BHAeXaUY.js} +1 -1
- package/dist/{dist-BaQIYPsn.js → dist-BSJvAvH3.js} +1 -1
- package/dist/{dist-wzMIGj-D.js → dist-BeFnymxK.js} +1 -1
- package/dist/dist-Bmir0gYb.js +1167 -0
- package/dist/{dist-DDJIWTRY.js → dist-BvPgo-UK.js} +1 -1
- package/dist/{dist-BFawx6IS.js → dist-CPVBKMmd.js} +51 -51
- package/dist/dist-CivF9P8b.js +382 -0
- package/dist/{dist-D6uC2xhi.js → dist-Df4ie7vZ.js} +1 -1
- package/dist/{dist-us-RpCWN.js → dist-DxOoemkW.js} +1 -1
- package/dist/{dist-KoBJjK1G.js → dist-HEQ52gTJ.js} +1 -1
- package/dist/{dist-DjviJBCi.js → dist-b-XUqAoF.js} +1 -1
- package/dist/{dist-D90y8dvT.js → dist-kZfaVUpW.js} +3 -3
- package/dist/{dist-aRzjfSRN.js → dist-wfAedlzi.js} +1 -1
- package/dist/{en-WDVp87TE.js → en-D2RU2Poj.js} +249 -1
- package/dist/{extensions-CUcl9Ok4.js → extensions-BQ1xXx3d.js} +103 -103
- package/dist/{image-up-MBZKKg9p.js → image-up-DT7gcJLN.js} +1 -1
- package/dist/index.d.ts +102 -14
- package/dist/{info-CJEC7piy.js → info-BSPGcsSM.js} +1 -1
- package/dist/keys-CvX8D-8C.js +10 -0
- package/dist/{loader-circle-DsY5Yg33.js → loader-circle-Balo8p3d.js} +1 -1
- package/dist/{message-circle-yElBbR2C.js → message-circle-B39qAHxs.js} +1 -1
- package/dist/pencil-BZJPNYWR.js +10 -0
- package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-DwDqGUM0.js} +1 -1
- package/dist/{scan-line-D0vcUekt.js → scan-line-DlghmhNf.js} +1 -1
- package/dist/{send-DH4oDQqC.js → send-DDdhIRj8.js} +1 -1
- package/dist/{shield-check-CfJgs2Hd.js → shield-check-OSQ-JVTX.js} +1 -1
- package/dist/{sparkles-CvRXGqFs.js → sparkles-BN4a-CoF.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styleConstants-wWRbcuEK.js +55 -0
- package/dist/styles-CavWjvol.js +5487 -0
- package/dist/templatical-editor.js +211 -119
- package/dist/{text-align-start-BT9VUDxK.js → text-align-start-D1weisjS.js} +1 -1
- package/dist/{trash-2-DbP2Y6t2.js → trash-2-CMWvQ5KX.js} +1 -1
- package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DyidRNX_.js} +1 -1
- package/dist/undo-2-Cg8I7obC.js +16 -0
- package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-BTTNBk5i.js} +2 -2
- package/dist/{useEditorCore-C6ost42Q.js → useEditorCore-BGnzcT7p.js} +2424 -2249
- package/dist/{useI18n-lb2DHDiu.js → useI18n-C2xQZ6K9.js} +2 -2
- package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-CfuZq2fF.js} +4 -4
- package/dist/{vue.runtime.esm-bundler-DpvJL-nX.js → vue.runtime.esm-bundler-CjauPXjj.js} +1 -1
- package/dist/{x-u2oVmjN_.js → x-CgIhNcT9.js} +1 -1
- package/package.json +15 -15
- package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
- package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
- package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
- package/dist/ModulePreviewCanvas-CHdOwV_4.js +0 -106
- package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js +0 -1143
- package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js +0 -93
- package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js.map +0 -1
- package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js +0 -195
- package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js.map +0 -1
- package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js +0 -107
- package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js +0 -22
- package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js.map +0 -1
- package/dist/cdn/chunks/de-D8CnZxV9.js.map +0 -1
- package/dist/cdn/chunks/en-8FHaQv4V.js.map +0 -1
- package/dist/cdn/chunks/extensions-DIxF31tA.js.map +0 -1
- package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
- package/dist/cdn/chunks/icons-CsLTcirh.js.map +0 -1
- package/dist/cdn/chunks/media-library-CVaNvhpM.js.map +0 -1
- package/dist/cdn/chunks/quality-BaBfc54_.js.map +0 -1
- package/dist/cdn/chunks/renderer-CUxvx7ro.js.map +0 -1
- package/dist/cdn/chunks/src-CRaqN-p8.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-DP1VOca8.js +0 -57
- package/dist/cdn/chunks/styleConstants-DP1VOca8.js.map +0 -1
- package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
- package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
- package/dist/dist-B1IR0bpH.js +0 -326
- package/dist/dist-DJmnUmW9.js +0 -362
- package/dist/keys-ciNfSSGj.js +0 -10
- package/dist/styleConstants-fWzlIIwN.js +0 -55
- package/dist/styles-DEXEkBvg.js +0 -3176
- /package/dist/{_plugin-vue_export-helper-B0hnzhyu.js → _plugin-vue_export-helper-Bwh4ceeO.js} +0 -0
- /package/dist/{de-DCaaCE5s.js → de-D2npYjrZ.js} +0 -0
- /package/dist/{dist-iLBdeBDR.js → dist-DvHLtWVP.js} +0 -0
- /package/dist/{emojiData-PQyVa4bU.js → emojiData-DvQBBzmO.js} +0 -0
- /package/dist/{en-DXCyK4-X.js → en-ib-4h3_o.js} +0 -0
- /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-CFDZnEIs.js} +0 -0
- /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-7Rv0QDiO.js} +0 -0
- /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-C_9OpzBw.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-BNuo_Jkg.js";
|
|
2
|
-
import { $ as t, A as n, C as r,
|
|
3
|
-
import "./features-
|
|
2
|
+
import { $ as t, A as n, C as r, F as i, M as a, T as o, U as s, Z as c, a as l, ct as u, it as d, j as f, q as p, rt as m, tt as h, w as g } from "./draggable-C-1_gch3.js";
|
|
3
|
+
import "./features-DIBEo4xl.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.js
|
|
5
5
|
function _(e) {
|
|
6
6
|
this.content = e;
|
|
@@ -14073,7 +14073,7 @@ var c_ = K.create({
|
|
|
14073
14073
|
wrappingInputRule: () => Vd
|
|
14074
14074
|
});
|
|
14075
14075
|
function m_(e) {
|
|
14076
|
-
return
|
|
14076
|
+
return p((t, n) => ({
|
|
14077
14077
|
get() {
|
|
14078
14078
|
return t(), e;
|
|
14079
14079
|
},
|
|
@@ -14106,47 +14106,47 @@ var h_ = class extends Id {
|
|
|
14106
14106
|
let t = super.unregisterPlugin(e);
|
|
14107
14107
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
14108
14108
|
}
|
|
14109
|
-
}, g_ =
|
|
14109
|
+
}, g_ = r({
|
|
14110
14110
|
name: "EditorContent",
|
|
14111
14111
|
props: { editor: {
|
|
14112
14112
|
default: null,
|
|
14113
14113
|
type: Object
|
|
14114
14114
|
} },
|
|
14115
14115
|
setup(e) {
|
|
14116
|
-
let
|
|
14116
|
+
let t = h(), r = g();
|
|
14117
14117
|
return s(() => {
|
|
14118
|
-
let
|
|
14119
|
-
|
|
14120
|
-
if (!
|
|
14121
|
-
let e =
|
|
14122
|
-
|
|
14123
|
-
...
|
|
14124
|
-
provides:
|
|
14125
|
-
}),
|
|
14118
|
+
let i = e.editor;
|
|
14119
|
+
i && i.options.element && t.value && n(() => {
|
|
14120
|
+
if (!t.value || !i.view.dom?.parentNode) return;
|
|
14121
|
+
let e = u(t.value);
|
|
14122
|
+
t.value.append(...i.view.dom.parentNode.childNodes), i.contentComponent = r.ctx._, r && (i.appContext = {
|
|
14123
|
+
...r.appContext,
|
|
14124
|
+
provides: r.provides
|
|
14125
|
+
}), i.setOptions({ element: e }), i.createNodeViews();
|
|
14126
14126
|
});
|
|
14127
|
-
}),
|
|
14127
|
+
}), f(() => {
|
|
14128
14128
|
let t = e.editor;
|
|
14129
14129
|
t && (t.contentComponent = null, t.appContext = null);
|
|
14130
|
-
}), { rootEl:
|
|
14130
|
+
}), { rootEl: t };
|
|
14131
14131
|
},
|
|
14132
14132
|
render() {
|
|
14133
|
-
return
|
|
14133
|
+
return o("div", { ref: (e) => {
|
|
14134
14134
|
this.rootEl = e;
|
|
14135
14135
|
} });
|
|
14136
14136
|
}
|
|
14137
|
-
}), __ =
|
|
14137
|
+
}), __ = r({
|
|
14138
14138
|
name: "NodeViewContent",
|
|
14139
14139
|
props: { as: {
|
|
14140
14140
|
type: String,
|
|
14141
14141
|
default: "div"
|
|
14142
14142
|
} },
|
|
14143
14143
|
render() {
|
|
14144
|
-
return
|
|
14144
|
+
return o(this.as, {
|
|
14145
14145
|
style: { whiteSpace: "pre-wrap" },
|
|
14146
14146
|
"data-node-view-content": ""
|
|
14147
14147
|
});
|
|
14148
14148
|
}
|
|
14149
|
-
}), v_ =
|
|
14149
|
+
}), v_ = r({
|
|
14150
14150
|
name: "NodeViewWrapper",
|
|
14151
14151
|
props: { as: {
|
|
14152
14152
|
type: String,
|
|
@@ -14155,7 +14155,7 @@ var h_ = class extends Id {
|
|
|
14155
14155
|
inject: ["onDragStart", "decorationClasses"],
|
|
14156
14156
|
render() {
|
|
14157
14157
|
var e;
|
|
14158
|
-
return
|
|
14158
|
+
return o(this.as, {
|
|
14159
14159
|
class: this.decorationClasses,
|
|
14160
14160
|
style: { whiteSpace: "normal" },
|
|
14161
14161
|
"data-node-view-wrapper": "",
|
|
@@ -14163,17 +14163,17 @@ var h_ = class extends Id {
|
|
|
14163
14163
|
}, (e = this.$slots).default?.call(e));
|
|
14164
14164
|
}
|
|
14165
14165
|
}), y_ = (e = {}) => {
|
|
14166
|
-
let t =
|
|
14167
|
-
return
|
|
14166
|
+
let t = m();
|
|
14167
|
+
return a(() => {
|
|
14168
14168
|
t.value = new h_(e);
|
|
14169
|
-
}),
|
|
14169
|
+
}), f(() => {
|
|
14170
14170
|
var e, n;
|
|
14171
14171
|
let r = t.value?.view.dom?.parentNode, i = r?.cloneNode(!0);
|
|
14172
14172
|
(e = r?.parentNode) == null || e.replaceChild(i, r), (n = t.value) == null || n.destroy();
|
|
14173
14173
|
}), t;
|
|
14174
14174
|
}, b_ = class {
|
|
14175
|
-
constructor(e, { props:
|
|
14176
|
-
this.destroyed = !1, this.editor =
|
|
14175
|
+
constructor(e, { props: n = {}, editor: r }) {
|
|
14176
|
+
this.destroyed = !1, this.editor = r, this.component = c(e), this.el = document.createElement("div"), this.props = t(n), this.renderedComponent = this.renderComponent();
|
|
14177
14177
|
}
|
|
14178
14178
|
get element() {
|
|
14179
14179
|
return this.renderedComponent.el;
|
|
@@ -14183,11 +14183,11 @@ var h_ = class extends Id {
|
|
|
14183
14183
|
}
|
|
14184
14184
|
renderComponent() {
|
|
14185
14185
|
if (this.destroyed) return this.renderedComponent;
|
|
14186
|
-
let e =
|
|
14187
|
-
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el &&
|
|
14186
|
+
let e = o(this.component, this.props);
|
|
14187
|
+
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && l(e, this.el), {
|
|
14188
14188
|
vNode: e,
|
|
14189
14189
|
destroy: () => {
|
|
14190
|
-
this.el &&
|
|
14190
|
+
this.el && l(null, this.el), this.el = null, e = null;
|
|
14191
14191
|
},
|
|
14192
14192
|
el: this.el ? this.el.firstElementChild : null
|
|
14193
14193
|
};
|
|
@@ -14229,14 +14229,14 @@ var h_ = class extends Id {
|
|
|
14229
14229
|
type: Object,
|
|
14230
14230
|
required: !0
|
|
14231
14231
|
}
|
|
14232
|
-
}, S_ =
|
|
14232
|
+
}, S_ = r({
|
|
14233
14233
|
name: "MarkViewContent",
|
|
14234
14234
|
props: { as: {
|
|
14235
14235
|
type: String,
|
|
14236
14236
|
default: "span"
|
|
14237
14237
|
} },
|
|
14238
14238
|
render() {
|
|
14239
|
-
return
|
|
14239
|
+
return o(this.as, {
|
|
14240
14240
|
style: { whiteSpace: "inherit" },
|
|
14241
14241
|
"data-mark-view-content": ""
|
|
14242
14242
|
});
|
|
@@ -14244,12 +14244,12 @@ var h_ = class extends Id {
|
|
|
14244
14244
|
}), C_ = class extends mf {
|
|
14245
14245
|
constructor(e, t, n) {
|
|
14246
14246
|
super(e, t, n);
|
|
14247
|
-
let
|
|
14247
|
+
let i = {
|
|
14248
14248
|
...t,
|
|
14249
14249
|
updateAttributes: this.updateAttributes.bind(this)
|
|
14250
|
-
},
|
|
14250
|
+
}, a = r({
|
|
14251
14251
|
extends: { ...e },
|
|
14252
|
-
props: Object.keys(
|
|
14252
|
+
props: Object.keys(i),
|
|
14253
14253
|
template: this.component.template,
|
|
14254
14254
|
setup: (t) => e.setup?.call(e, t, { expose: () => void 0 }),
|
|
14255
14255
|
__scopeId: e.__scopeId,
|
|
@@ -14257,9 +14257,9 @@ var h_ = class extends Id {
|
|
|
14257
14257
|
__name: e.__name,
|
|
14258
14258
|
__file: e.__file
|
|
14259
14259
|
});
|
|
14260
|
-
this.renderer = new b_(
|
|
14260
|
+
this.renderer = new b_(a, {
|
|
14261
14261
|
editor: this.editor,
|
|
14262
|
-
props:
|
|
14262
|
+
props: i
|
|
14263
14263
|
});
|
|
14264
14264
|
}
|
|
14265
14265
|
get dom() {
|
|
@@ -14269,7 +14269,7 @@ var h_ = class extends Id {
|
|
|
14269
14269
|
return this.dom.querySelector("[data-mark-view-content]");
|
|
14270
14270
|
}
|
|
14271
14271
|
updateAttributes(e) {
|
|
14272
|
-
let t =
|
|
14272
|
+
let t = d(this.mark);
|
|
14273
14273
|
super.updateAttributes(e, t);
|
|
14274
14274
|
}
|
|
14275
14275
|
destroy() {
|
|
@@ -14350,15 +14350,15 @@ var T_ = {
|
|
|
14350
14350
|
getPos: () => this.getPos(),
|
|
14351
14351
|
updateAttributes: (e = {}) => this.updateAttributes(e),
|
|
14352
14352
|
deleteNode: () => this.deleteNode()
|
|
14353
|
-
},
|
|
14354
|
-
this.decorationClasses =
|
|
14355
|
-
let
|
|
14353
|
+
}, t = this.onDragStart.bind(this);
|
|
14354
|
+
this.decorationClasses = h(this.getDecorationClasses());
|
|
14355
|
+
let n = r({
|
|
14356
14356
|
extends: { ...this.component },
|
|
14357
14357
|
props: Object.keys(e),
|
|
14358
14358
|
template: this.component.template,
|
|
14359
14359
|
setup: (e) => {
|
|
14360
|
-
var
|
|
14361
|
-
return
|
|
14360
|
+
var n;
|
|
14361
|
+
return i("onDragStart", t), i("decorationClasses", this.decorationClasses), (n = this.component).setup?.call(n, e, { expose: () => void 0 });
|
|
14362
14362
|
},
|
|
14363
14363
|
__scopeId: this.component.__scopeId,
|
|
14364
14364
|
__cssModules: this.component.__cssModules,
|
|
@@ -14369,7 +14369,7 @@ var T_ = {
|
|
|
14369
14369
|
if (!this.renderer) return;
|
|
14370
14370
|
let e = this.getPos();
|
|
14371
14371
|
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_(
|
|
14372
|
+
}, df(this.editor, this.positionCheckCallback), this.renderer = new b_(n, {
|
|
14373
14373
|
editor: this.editor,
|
|
14374
14374
|
props: e
|
|
14375
14375
|
});
|
|
@@ -14651,4 +14651,4 @@ var M_ = j_;
|
|
|
14651
14651
|
//#endregion
|
|
14652
14652
|
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
14653
|
|
|
14654
|
-
//# sourceMappingURL=tiptap-
|
|
14654
|
+
//# sourceMappingURL=tiptap-CDzAbF2j.js.map
|