@burdenoff/microfe-support 2026.1031.1 → 2026.1109.1
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/_virtual/_rolldown/runtime.js +6 -0
- package/dist/dev/main.d.ts +0 -0
- package/dist/generated/global-operations.d.ts +60 -60
- package/dist/node_modules/@tiptap/core/dist/index.js +949 -674
- package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +14 -3
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +1 -3
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +4 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +76 -51
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +143 -127
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +3 -2
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +21 -11
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extensions/dist/index.js +8 -9
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +70 -49
- package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +108 -76
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/node_modules/linkifyjs/dist/linkify.js +127 -113
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +21 -14
- package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +98 -105
- package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +37 -34
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +153 -101
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +742 -693
- package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +96 -17
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +55 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +53 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +53 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +45 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +11 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +11 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -0
- package/dist/support/SupportAdminRoot.d.ts +2 -2
- package/dist/support/SupportAdminRoutes.d.ts +1 -1
- package/dist/support/SupportUserRoot.d.ts +2 -2
- package/dist/support/SupportUserRoutes.d.ts +1 -1
- package/dist/support/components/NotificationToast.d.ts +2 -2
- package/dist/support/components/PageLayout.d.ts +4 -4
- package/dist/support/components/RouteHelpers.d.ts +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.d.ts +1 -1
- package/dist/support/components/analytics/MetricCard.d.ts +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.d.ts +1 -1
- package/dist/support/components/analytics/SLAReport.d.ts +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.d.ts +1 -1
- package/dist/support/components/analytics/TopAgents.d.ts +1 -1
- package/dist/support/components/analytics/TrendChart.d.ts +1 -1
- package/dist/support/components/careers/BulkCandidateActionGuidance.d.ts +1 -1
- package/dist/support/components/careers/BulkCandidateDialogs.d.ts +7 -7
- package/dist/support/components/careers/BulkOperationFeedback.d.ts +8 -8
- package/dist/support/components/careers/BulkSelectionSummary.d.ts +2 -2
- package/dist/support/components/careers/RichTextEditor.d.ts +1 -2
- package/dist/support/components/careers/RichTextEditor.js.map +1 -1
- package/dist/support/components/kb/ArticleForm.d.ts +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.d.ts +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.d.ts +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.d.ts +1 -1
- package/dist/support/components/tickets/AttachmentList.d.ts +1 -1
- package/dist/support/components/tickets/MarkdownContent.d.ts +1 -1
- package/dist/support/components/tickets/MessageComposer.d.ts +1 -1
- package/dist/support/components/tickets/MessageThread.d.ts +2 -2
- package/dist/support/components/tickets/TicketDetailHeader.d.ts +2 -2
- package/dist/support/components/tickets/TicketHeader.d.ts +2 -2
- package/dist/support/components/tickets/TicketSidebar.d.ts +2 -2
- package/dist/support/components/tickets/TriagePanel.d.ts +2 -2
- package/dist/support/constants/pipeline.d.ts +0 -6
- package/dist/support/events/rybbit.d.ts +1 -1
- package/dist/support/hooks/useAnalyticsOperations.d.ts +10 -25
- package/dist/support/hooks/useAnalyticsOperations.js +40 -39
- package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
- package/dist/support/hooks/useAttachmentsFailedToast.d.ts +1 -1
- package/dist/support/hooks/useChatOperations.d.ts +2 -2
- package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +7 -13
- package/dist/support/hooks/useKnowledgeBaseOperations.js +84 -83
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useRegisterFooter.d.ts +1 -1
- package/dist/support/hooks/useSettingsOperations.d.ts +7 -16
- package/dist/support/hooks/useSupportAttachments.d.ts +1 -1
- package/dist/support/hooks/useTicketListOperations.d.ts +3 -6
- package/dist/support/hooks/useTicketOperations.d.ts +5 -11
- package/dist/support/hooks/useTicketOperations.js +80 -79
- package/dist/support/hooks/useTicketOperations.js.map +1 -1
- package/dist/support/pages/AnalyticsPage.d.ts +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.d.ts +1 -1
- package/dist/support/pages/ArticleDetailUserPage.d.ts +1 -1
- package/dist/support/pages/ContactInquiriesPage.d.ts +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.d.ts +1 -1
- package/dist/support/pages/CreateArticlePage.d.ts +1 -1
- package/dist/support/pages/CreateTicketPage.d.ts +1 -1
- package/dist/support/pages/EditArticlePage.d.ts +1 -1
- package/dist/support/pages/InterviewersPage.d.ts +1 -1
- package/dist/support/pages/JobApplicationDetailPage.d.ts +1 -2
- package/dist/support/pages/JobApplicationsPage.d.ts +1 -1
- package/dist/support/pages/JobPostingDetailPage.d.ts +1 -1
- package/dist/support/pages/JobPostingsPage.d.ts +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.d.ts +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.d.ts +1 -1
- package/dist/support/pages/SettingsPage.d.ts +1 -1
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.d.ts +1 -1
- package/dist/support/pages/TicketDetailUserPage.d.ts +1 -1
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.d.ts +1 -1
- package/dist/support/providers/SupportProvider.d.ts +2 -2
- package/dist/support/store/supportStore.d.ts +2 -2
- package/dist/support/utils/bulkCandidateTargetQuery.d.ts +1 -1
- package/dist/support/utils/cn.d.ts +1 -1
- package/dist/support/utils/index.d.ts +1 -1
- package/dist/support/utils/markdown.d.ts +0 -1
- package/dist/support/utils/refetch.d.ts +12 -0
- package/dist/support/utils/refetch.js +7 -0
- package/dist/support/utils/refetch.js.map +1 -0
- package/dist/support/utils/ticketFilters.d.ts +2 -2
- package/dist/support/utils/uiTokens.d.ts +1 -1
- package/dist/test/dom.d.ts +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/package.json +65 -54
|
@@ -245,8 +245,7 @@ var l = class e {
|
|
|
245
245
|
if (!t) throw RangeError("Invalid input for Mark.fromJSON");
|
|
246
246
|
let n = e.marks[t.type];
|
|
247
247
|
if (!n) throw RangeError(`There is no mark type ${t.type} in this schema`);
|
|
248
|
-
|
|
249
|
-
return n.checkAttrs(r.attrs), r;
|
|
248
|
+
return n.create(t.attrs);
|
|
250
249
|
}
|
|
251
250
|
static sameSet(e, t) {
|
|
252
251
|
if (e == t) return !0;
|
|
@@ -672,11 +671,11 @@ var S = class e {
|
|
|
672
671
|
return e.content.size ? this.canReplace(this.childCount, this.childCount, e.content) : this.type.compatibleContent(e.type);
|
|
673
672
|
}
|
|
674
673
|
check() {
|
|
675
|
-
this.type.checkContent(this.content), this.type.
|
|
674
|
+
this.type.checkContent(this.content), D(this.type.attrs, this.attrs, "node", this.type.name);
|
|
676
675
|
let e = l.none;
|
|
677
676
|
for (let t = 0; t < this.marks.length; t++) {
|
|
678
677
|
let n = this.marks[t];
|
|
679
|
-
n.type.
|
|
678
|
+
D(n.type.attrs, n.attrs, "mark", n.type.name), e = n.addToSet(e);
|
|
680
679
|
}
|
|
681
680
|
if (!l.sameSet(e, this.marks)) throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e) => e.type.name)}`);
|
|
682
681
|
this.content.forEach((e) => e.check());
|
|
@@ -700,8 +699,8 @@ var S = class e {
|
|
|
700
699
|
if (typeof t.text != "string") throw RangeError("Invalid text node in JSON");
|
|
701
700
|
return e.text(t.text, n);
|
|
702
701
|
}
|
|
703
|
-
let r = a.fromJSON(e, t.content)
|
|
704
|
-
return
|
|
702
|
+
let r = a.fromJSON(e, t.content);
|
|
703
|
+
return e.nodeType(t.type).create(t.attrs, r, n);
|
|
705
704
|
}
|
|
706
705
|
};
|
|
707
706
|
T.prototype.text = void 0;
|
|
@@ -743,14 +742,18 @@ function E(e, t) {
|
|
|
743
742
|
for (let n = e.length - 1; n >= 0; n--) t = e[n].type.name + "(" + t + ")";
|
|
744
743
|
return t;
|
|
745
744
|
}
|
|
746
|
-
|
|
745
|
+
function D(e, t, n, r) {
|
|
746
|
+
for (let i in t) if (!(i in e)) throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);
|
|
747
|
+
for (let n in e) e[n].validate && e[n].validate(t[n]);
|
|
748
|
+
}
|
|
749
|
+
var O = class e {
|
|
747
750
|
constructor(e) {
|
|
748
751
|
this.validEnd = e, this.next = [], this.wrapCache = [];
|
|
749
752
|
}
|
|
750
753
|
static parse(t, n) {
|
|
751
754
|
let r = new oe(t, n);
|
|
752
755
|
if (r.next == null) return e.empty;
|
|
753
|
-
let i =
|
|
756
|
+
let i = k(r);
|
|
754
757
|
r.next && r.err("Unexpected trailing text");
|
|
755
758
|
let a = pe(fe(i));
|
|
756
759
|
return me(a, r), a;
|
|
@@ -844,7 +847,7 @@ var D = class e {
|
|
|
844
847
|
}).join("\n");
|
|
845
848
|
}
|
|
846
849
|
};
|
|
847
|
-
|
|
850
|
+
O.empty = new O(!0);
|
|
848
851
|
var oe = class {
|
|
849
852
|
constructor(e, t) {
|
|
850
853
|
this.string = e, this.nodeTypes = t, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
@@ -859,7 +862,7 @@ var oe = class {
|
|
|
859
862
|
throw SyntaxError(e + " (in content expression '" + this.string + "')");
|
|
860
863
|
}
|
|
861
864
|
};
|
|
862
|
-
function
|
|
865
|
+
function k(e) {
|
|
863
866
|
let t = [];
|
|
864
867
|
do
|
|
865
868
|
t.push(se(e));
|
|
@@ -897,14 +900,14 @@ function ce(e) {
|
|
|
897
900
|
else break;
|
|
898
901
|
return t;
|
|
899
902
|
}
|
|
900
|
-
function
|
|
903
|
+
function A(e) {
|
|
901
904
|
/\D/.test(e.next) && e.err("Expected number, got '" + e.next + "'");
|
|
902
905
|
let t = Number(e.next);
|
|
903
906
|
return e.pos++, t;
|
|
904
907
|
}
|
|
905
908
|
function le(e, t) {
|
|
906
|
-
let n =
|
|
907
|
-
return e.eat(",") && (r = e.next == "}" ? -1 :
|
|
909
|
+
let n = A(e), r = n;
|
|
910
|
+
return e.eat(",") && (r = e.next == "}" ? -1 : A(e)), e.eat("}") || e.err("Unclosed braced range"), {
|
|
908
911
|
type: "range",
|
|
909
912
|
min: n,
|
|
910
913
|
max: r,
|
|
@@ -923,7 +926,7 @@ function ue(e, t) {
|
|
|
923
926
|
}
|
|
924
927
|
function de(e) {
|
|
925
928
|
if (e.eat("(")) {
|
|
926
|
-
let t =
|
|
929
|
+
let t = k(e);
|
|
927
930
|
return e.eat(")") || e.err("Missing closing paren"), t;
|
|
928
931
|
}
|
|
929
932
|
if (/\W/.test(e.next)) e.err("Unexpected token '" + e.next + "'");
|
|
@@ -984,12 +987,12 @@ function fe(e) {
|
|
|
984
987
|
else throw Error("Unknown expr type");
|
|
985
988
|
}
|
|
986
989
|
}
|
|
987
|
-
function
|
|
990
|
+
function j(e, t) {
|
|
988
991
|
return t - e;
|
|
989
992
|
}
|
|
990
|
-
function
|
|
993
|
+
function M(e, t) {
|
|
991
994
|
let n = [];
|
|
992
|
-
return r(t), n.sort(
|
|
995
|
+
return r(t), n.sort(j);
|
|
993
996
|
function r(t) {
|
|
994
997
|
let i = e[t];
|
|
995
998
|
if (i.length == 1 && !i[0].term) return r(i[0].to);
|
|
@@ -1002,7 +1005,7 @@ function j(e, t) {
|
|
|
1002
1005
|
}
|
|
1003
1006
|
function pe(e) {
|
|
1004
1007
|
let t = Object.create(null);
|
|
1005
|
-
return n(
|
|
1008
|
+
return n(M(e, 0));
|
|
1006
1009
|
function n(r) {
|
|
1007
1010
|
let i = [];
|
|
1008
1011
|
r.forEach((t) => {
|
|
@@ -1010,14 +1013,14 @@ function pe(e) {
|
|
|
1010
1013
|
if (!t) return;
|
|
1011
1014
|
let r;
|
|
1012
1015
|
for (let e = 0; e < i.length; e++) i[e][0] == t && (r = i[e][1]);
|
|
1013
|
-
|
|
1016
|
+
M(e, n).forEach((e) => {
|
|
1014
1017
|
r || i.push([t, r = []]), r.indexOf(e) == -1 && r.push(e);
|
|
1015
1018
|
});
|
|
1016
1019
|
});
|
|
1017
1020
|
});
|
|
1018
|
-
let a = t[r.join(",")] = new
|
|
1021
|
+
let a = t[r.join(",")] = new O(r.indexOf(e.length - 1) > -1);
|
|
1019
1022
|
for (let e = 0; e < i.length; e++) {
|
|
1020
|
-
let r = i[e][1].sort(
|
|
1023
|
+
let r = i[e][1].sort(j);
|
|
1021
1024
|
a.next.push({
|
|
1022
1025
|
type: i[e][0],
|
|
1023
1026
|
next: t[r.join(",")] || n(r)
|
|
@@ -1036,7 +1039,7 @@ function me(e, t) {
|
|
|
1036
1039
|
i && t.err("Only non-generatable nodes (" + a.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
|
|
1037
1040
|
}
|
|
1038
1041
|
}
|
|
1039
|
-
function
|
|
1042
|
+
function N(e) {
|
|
1040
1043
|
let t = Object.create(null);
|
|
1041
1044
|
for (let n in e) {
|
|
1042
1045
|
let r = e[n];
|
|
@@ -1045,31 +1048,26 @@ function M(e) {
|
|
|
1045
1048
|
}
|
|
1046
1049
|
return t;
|
|
1047
1050
|
}
|
|
1048
|
-
function
|
|
1051
|
+
function P(e, t) {
|
|
1049
1052
|
let n = Object.create(null);
|
|
1050
1053
|
for (let r in e) {
|
|
1051
|
-
let i = t && t[r];
|
|
1052
|
-
if (
|
|
1053
|
-
|
|
1054
|
-
if (t.hasDefault) i = t.default;
|
|
1054
|
+
let i = e[r], a = t && t[r];
|
|
1055
|
+
if (a === void 0) {
|
|
1056
|
+
if (i.hasDefault) a = i.default;
|
|
1055
1057
|
else throw RangeError("No value supplied for attribute " + r);
|
|
1056
|
-
}
|
|
1057
|
-
n[r] =
|
|
1058
|
+
} else i.validate && i.validate(a);
|
|
1059
|
+
n[r] = a;
|
|
1058
1060
|
}
|
|
1059
1061
|
return n;
|
|
1060
1062
|
}
|
|
1061
|
-
function P(e, t, n, r) {
|
|
1062
|
-
for (let i in t) if (!(i in e)) throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);
|
|
1063
|
-
for (let n in e) e[n].validate && e[n].validate(t[n]);
|
|
1064
|
-
}
|
|
1065
1063
|
function F(e, t) {
|
|
1066
1064
|
let n = Object.create(null);
|
|
1067
|
-
if (t) for (let r in t) n[r] = new
|
|
1065
|
+
if (t) for (let r in t) n[r] = new ge(e, r, t[r]);
|
|
1068
1066
|
return n;
|
|
1069
1067
|
}
|
|
1070
1068
|
var I = class e {
|
|
1071
1069
|
constructor(e, t, n) {
|
|
1072
|
-
this.name = e, this.schema = t, this.spec = n, this.markSet = null, this.groups = n.group ? n.group.split(" ") : [], this.attrs = F(e, n.attrs), this.defaultAttrs =
|
|
1070
|
+
this.name = e, this.schema = t, this.spec = n, this.markSet = null, this.groups = n.group ? n.group.split(" ") : [], this.attrs = F(e, n.attrs), this.defaultAttrs = N(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(n.inline || e == "text"), this.isText = e == "text";
|
|
1073
1071
|
}
|
|
1074
1072
|
get isInline() {
|
|
1075
1073
|
return !this.isBlock;
|
|
@@ -1078,7 +1076,7 @@ var I = class e {
|
|
|
1078
1076
|
return this.isBlock && this.inlineContent;
|
|
1079
1077
|
}
|
|
1080
1078
|
get isLeaf() {
|
|
1081
|
-
return this.contentMatch ==
|
|
1079
|
+
return this.contentMatch == O.empty;
|
|
1082
1080
|
}
|
|
1083
1081
|
get isAtom() {
|
|
1084
1082
|
return this.isLeaf || !!this.spec.atom;
|
|
@@ -1097,7 +1095,7 @@ var I = class e {
|
|
|
1097
1095
|
return this == e || this.contentMatch.compatible(e.contentMatch);
|
|
1098
1096
|
}
|
|
1099
1097
|
computeAttrs(e) {
|
|
1100
|
-
return !e && this.defaultAttrs ? this.defaultAttrs :
|
|
1098
|
+
return !e && this.defaultAttrs ? this.defaultAttrs : P(this.attrs, e);
|
|
1101
1099
|
}
|
|
1102
1100
|
create(e = null, t, n) {
|
|
1103
1101
|
if (this.isText) throw Error("NodeType.create can't construct text nodes");
|
|
@@ -1124,9 +1122,7 @@ var I = class e {
|
|
|
1124
1122
|
checkContent(e) {
|
|
1125
1123
|
if (!this.validContent(e)) throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0, 50)}`);
|
|
1126
1124
|
}
|
|
1127
|
-
checkAttrs(e) {
|
|
1128
|
-
P(this.attrs, e, "node", this.name);
|
|
1129
|
-
}
|
|
1125
|
+
checkAttrs(e) {}
|
|
1130
1126
|
allowsMarkType(e) {
|
|
1131
1127
|
return this.markSet == null || this.markSet.indexOf(e) > -1;
|
|
1132
1128
|
}
|
|
@@ -1158,21 +1154,21 @@ function he(e, t, n) {
|
|
|
1158
1154
|
if (r.indexOf(i) < 0) throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`);
|
|
1159
1155
|
};
|
|
1160
1156
|
}
|
|
1161
|
-
var
|
|
1157
|
+
var ge = class {
|
|
1162
1158
|
constructor(e, t, n) {
|
|
1163
1159
|
this.hasDefault = Object.prototype.hasOwnProperty.call(n, "default"), this.default = n.default, this.validate = typeof n.validate == "string" ? he(e, t, n.validate) : n.validate;
|
|
1164
1160
|
}
|
|
1165
1161
|
get isRequired() {
|
|
1166
1162
|
return !this.hasDefault;
|
|
1167
1163
|
}
|
|
1168
|
-
},
|
|
1164
|
+
}, L = class e {
|
|
1169
1165
|
constructor(e, t, n, r) {
|
|
1170
1166
|
this.name = e, this.rank = t, this.schema = n, this.spec = r, this.attrs = F(e, r.attrs), this.excluded = null;
|
|
1171
|
-
let i =
|
|
1167
|
+
let i = N(this.attrs);
|
|
1172
1168
|
this.instance = i ? new l(this, i) : null;
|
|
1173
1169
|
}
|
|
1174
1170
|
create(e = null) {
|
|
1175
|
-
return !e && this.instance ? this.instance : new l(this,
|
|
1171
|
+
return !e && this.instance ? this.instance : new l(this, P(this.attrs, e));
|
|
1176
1172
|
}
|
|
1177
1173
|
static compile(t, n) {
|
|
1178
1174
|
let r = Object.create(null), i = 0;
|
|
@@ -1185,32 +1181,29 @@ var L = class {
|
|
|
1185
1181
|
isInSet(e) {
|
|
1186
1182
|
for (let t = 0; t < e.length; t++) if (e[t].type == this) return e[t];
|
|
1187
1183
|
}
|
|
1188
|
-
checkAttrs(e) {
|
|
1189
|
-
P(this.attrs, e, "mark", this.name);
|
|
1190
|
-
}
|
|
1191
1184
|
excludes(e) {
|
|
1192
1185
|
return this.excluded.indexOf(e) > -1;
|
|
1193
1186
|
}
|
|
1194
|
-
},
|
|
1187
|
+
}, _e = class {
|
|
1195
1188
|
constructor(t) {
|
|
1196
1189
|
this.linebreakReplacement = null, this.cached = Object.create(null);
|
|
1197
1190
|
let n = this.spec = {};
|
|
1198
1191
|
for (let e in t) n[e] = t[e];
|
|
1199
|
-
n.nodes = e.from(t.nodes), n.marks = e.from(t.marks || {}), this.nodes = I.compile(this.spec.nodes, this), this.marks =
|
|
1192
|
+
n.nodes = e.from(t.nodes), n.marks = e.from(t.marks || {}), this.nodes = I.compile(this.spec.nodes, this), this.marks = L.compile(this.spec.marks, this);
|
|
1200
1193
|
let r = Object.create(null);
|
|
1201
1194
|
for (let e in this.nodes) {
|
|
1202
1195
|
if (e in this.marks) throw RangeError(e + " can not be both a node and a mark");
|
|
1203
1196
|
let t = this.nodes[e], n = t.spec.content || "", i = t.spec.marks;
|
|
1204
|
-
if (t.contentMatch = r[n] || (r[n] =
|
|
1197
|
+
if (t.contentMatch = r[n] || (r[n] = O.parse(n, this.nodes)), t.inlineContent = t.contentMatch.inlineContent, t.spec.linebreakReplacement) {
|
|
1205
1198
|
if (this.linebreakReplacement) throw RangeError("Multiple linebreak nodes defined");
|
|
1206
1199
|
if (!t.isInline || !t.isLeaf) throw RangeError("Linebreak replacement nodes must be inline leaf nodes");
|
|
1207
1200
|
this.linebreakReplacement = t;
|
|
1208
1201
|
}
|
|
1209
|
-
t.markSet = i == "_" ? null : i ?
|
|
1202
|
+
t.markSet = i == "_" ? null : i ? R(this, i.split(" ")) : i == "" || !t.inlineContent ? [] : null;
|
|
1210
1203
|
}
|
|
1211
1204
|
for (let e in this.marks) {
|
|
1212
1205
|
let t = this.marks[e], n = t.spec.excludes;
|
|
1213
|
-
t.excluded = n == null ? [t] : n == "" ? [] :
|
|
1206
|
+
t.excluded = n == null ? [t] : n == "" ? [] : R(this, n.split(" "));
|
|
1214
1207
|
}
|
|
1215
1208
|
this.nodeFromJSON = (e) => T.fromJSON(this, e), this.markFromJSON = (e) => l.fromJSON(this, e), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = Object.create(null);
|
|
1216
1209
|
}
|
|
@@ -1233,7 +1226,7 @@ var L = class {
|
|
|
1233
1226
|
return t;
|
|
1234
1227
|
}
|
|
1235
1228
|
};
|
|
1236
|
-
function
|
|
1229
|
+
function R(e, t) {
|
|
1237
1230
|
let n = [];
|
|
1238
1231
|
for (let r = 0; r < t.length; r++) {
|
|
1239
1232
|
let i = t[r], a = e.marks[i], o = a;
|
|
@@ -1246,19 +1239,19 @@ function z(e, t) {
|
|
|
1246
1239
|
}
|
|
1247
1240
|
return n;
|
|
1248
1241
|
}
|
|
1249
|
-
function
|
|
1242
|
+
function ve(e) {
|
|
1250
1243
|
return e.tag != null;
|
|
1251
1244
|
}
|
|
1252
|
-
function
|
|
1245
|
+
function ye(e) {
|
|
1253
1246
|
return e.style != null;
|
|
1254
1247
|
}
|
|
1255
|
-
var
|
|
1248
|
+
var be = class e {
|
|
1256
1249
|
constructor(e, t) {
|
|
1257
1250
|
this.schema = e, this.rules = t, this.tags = [], this.styles = [];
|
|
1258
1251
|
let n = this.matchedStyles = [];
|
|
1259
1252
|
t.forEach((e) => {
|
|
1260
|
-
if (
|
|
1261
|
-
else if (
|
|
1253
|
+
if (ve(e)) this.tags.push(e);
|
|
1254
|
+
else if (ye(e)) {
|
|
1262
1255
|
let t = /[^=]*/.exec(e.style)[0];
|
|
1263
1256
|
n.indexOf(t) < 0 && n.push(t), this.styles.push(e);
|
|
1264
1257
|
}
|
|
@@ -1269,17 +1262,17 @@ var ye = class e {
|
|
|
1269
1262
|
});
|
|
1270
1263
|
}
|
|
1271
1264
|
parse(e, t = {}) {
|
|
1272
|
-
let n = new
|
|
1265
|
+
let n = new K(this, t, !1);
|
|
1273
1266
|
return n.addAll(e, l.none, t.from, t.to), n.finish();
|
|
1274
1267
|
}
|
|
1275
1268
|
parseSlice(e, t = {}) {
|
|
1276
|
-
let n = new
|
|
1269
|
+
let n = new K(this, t, !0);
|
|
1277
1270
|
return n.addAll(e, l.none, t.from, t.to), d.maxOpen(n.finish());
|
|
1278
1271
|
}
|
|
1279
1272
|
matchTag(e, t, n) {
|
|
1280
1273
|
for (let r = n ? this.tags.indexOf(n) + 1 : 0; r < this.tags.length; r++) {
|
|
1281
1274
|
let n = this.tags[r];
|
|
1282
|
-
if (
|
|
1275
|
+
if (Ce(e, n.tag) && (n.namespace === void 0 || e.namespaceURI == n.namespace) && (!n.context || t.matchesContext(n.context))) {
|
|
1283
1276
|
if (n.getAttrs) {
|
|
1284
1277
|
let t = n.getAttrs(e);
|
|
1285
1278
|
if (t === !1) continue;
|
|
@@ -1315,13 +1308,13 @@ var ye = class e {
|
|
|
1315
1308
|
for (let t in e.marks) {
|
|
1316
1309
|
let r = e.marks[t].spec.parseDOM;
|
|
1317
1310
|
r && r.forEach((e) => {
|
|
1318
|
-
n(e =
|
|
1311
|
+
n(e = q(e)), e.mark || e.ignore || e.clearMark || (e.mark = t);
|
|
1319
1312
|
});
|
|
1320
1313
|
}
|
|
1321
1314
|
for (let t in e.nodes) {
|
|
1322
1315
|
let r = e.nodes[t].spec.parseDOM;
|
|
1323
1316
|
r && r.forEach((e) => {
|
|
1324
|
-
n(e =
|
|
1317
|
+
n(e = q(e)), e.node || e.ignore || e.mark || (e.node = t);
|
|
1325
1318
|
});
|
|
1326
1319
|
}
|
|
1327
1320
|
return t;
|
|
@@ -1329,7 +1322,7 @@ var ye = class e {
|
|
|
1329
1322
|
static fromSchema(t) {
|
|
1330
1323
|
return t.cached.domParser || (t.cached.domParser = new e(t, e.schemaRules(t)));
|
|
1331
1324
|
}
|
|
1332
|
-
},
|
|
1325
|
+
}, z = {
|
|
1333
1326
|
address: !0,
|
|
1334
1327
|
article: !0,
|
|
1335
1328
|
aside: !0,
|
|
@@ -1363,23 +1356,23 @@ var ye = class e {
|
|
|
1363
1356
|
table: !0,
|
|
1364
1357
|
tfoot: !0,
|
|
1365
1358
|
ul: !0
|
|
1366
|
-
},
|
|
1359
|
+
}, xe = {
|
|
1367
1360
|
head: !0,
|
|
1368
1361
|
noscript: !0,
|
|
1369
1362
|
object: !0,
|
|
1370
1363
|
script: !0,
|
|
1371
1364
|
style: !0,
|
|
1372
1365
|
title: !0
|
|
1373
|
-
},
|
|
1366
|
+
}, B = {
|
|
1374
1367
|
ol: !0,
|
|
1375
1368
|
ul: !0
|
|
1376
|
-
},
|
|
1377
|
-
function
|
|
1378
|
-
return t == null ? e && e.whitespace == "pre" ? 3 : n & -5 : (t ?
|
|
1369
|
+
}, V = 1, H = 2, U = 4;
|
|
1370
|
+
function W(e, t, n) {
|
|
1371
|
+
return t == null ? e && e.whitespace == "pre" ? 3 : n & -5 : (t ? V : 0) | (t === "full" ? H : 0);
|
|
1379
1372
|
}
|
|
1380
|
-
var
|
|
1373
|
+
var G = class {
|
|
1381
1374
|
constructor(e, t, n, r, i, a) {
|
|
1382
|
-
this.type = e, this.attrs = t, this.marks = n, this.solid = r, this.options = a, this.content = [], this.activeMarks = l.none, this.match = i || (a &
|
|
1375
|
+
this.type = e, this.attrs = t, this.marks = n, this.solid = r, this.options = a, this.content = [], this.activeMarks = l.none, this.match = i || (a & U ? null : e.contentMatch);
|
|
1383
1376
|
}
|
|
1384
1377
|
findWrapping(e) {
|
|
1385
1378
|
if (!this.match) {
|
|
@@ -1394,7 +1387,7 @@ var K = class {
|
|
|
1394
1387
|
return this.match.findWrapping(e.type);
|
|
1395
1388
|
}
|
|
1396
1389
|
finish(e) {
|
|
1397
|
-
if (!(this.options &
|
|
1390
|
+
if (!(this.options & V)) {
|
|
1398
1391
|
let e = this.content[this.content.length - 1], t;
|
|
1399
1392
|
if (e && e.isText && (t = /[ \t\r\n\u000c]+$/.exec(e.text))) {
|
|
1400
1393
|
let n = e;
|
|
@@ -1405,13 +1398,13 @@ var K = class {
|
|
|
1405
1398
|
return !e && this.match && (t = t.append(this.match.fillBefore(a.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
|
|
1406
1399
|
}
|
|
1407
1400
|
inlineContext(e) {
|
|
1408
|
-
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !
|
|
1401
|
+
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !z.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
1409
1402
|
}
|
|
1410
|
-
},
|
|
1403
|
+
}, K = class {
|
|
1411
1404
|
constructor(e, t, n) {
|
|
1412
1405
|
this.parser = e, this.options = t, this.isOpen = n, this.open = 0, this.localPreserveWS = !1;
|
|
1413
|
-
let r = t.topNode, i, a =
|
|
1414
|
-
i = r ? new
|
|
1406
|
+
let r = t.topNode, i, a = W(null, t.preserveWhitespace, 0) | (n ? U : 0);
|
|
1407
|
+
i = r ? new G(r.type, r.attrs, l.none, !0, t.topMatch || r.type.contentMatch, a) : n ? new G(null, null, l.none, !0, null, a) : new G(e.schema.topNodeType, null, l.none, !0, null, a), this.nodes = [i], this.find = t.findPositions, this.needsBlock = !1;
|
|
1415
1408
|
}
|
|
1416
1409
|
get top() {
|
|
1417
1410
|
return this.nodes[this.open];
|
|
@@ -1420,7 +1413,7 @@ var K = class {
|
|
|
1420
1413
|
e.nodeType == 3 ? this.addTextNode(e, t) : e.nodeType == 1 && this.addElement(e, t);
|
|
1421
1414
|
}
|
|
1422
1415
|
addTextNode(e, t) {
|
|
1423
|
-
let n = e.nodeValue, r = this.top, i = r.options &
|
|
1416
|
+
let n = e.nodeValue, r = this.top, i = r.options & H ? "full" : this.localPreserveWS || (r.options & V) > 0, { schema: a } = this.parser;
|
|
1424
1417
|
if (i === "full" || r.inlineContext(e) || /[^ \t\r\n\u000c]/.test(n)) {
|
|
1425
1418
|
if (!i) {
|
|
1426
1419
|
if (n = n.replace(/[ \t\r\n\u000c]+/g, " "), /^[ \t\r\n\u000c]/.test(n) && this.open == this.nodes.length - 1) {
|
|
@@ -1440,13 +1433,13 @@ var K = class {
|
|
|
1440
1433
|
let r = this.localPreserveWS, i = this.top;
|
|
1441
1434
|
(e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
|
|
1442
1435
|
let a = e.nodeName.toLowerCase(), o;
|
|
1443
|
-
|
|
1436
|
+
B.hasOwnProperty(a) && this.parser.normalizeLists && Se(e);
|
|
1444
1437
|
let s = this.options.ruleFromNode && this.options.ruleFromNode(e) || (o = this.parser.matchTag(e, this, n));
|
|
1445
|
-
out: if (s ? s.ignore :
|
|
1438
|
+
out: if (s ? s.ignore : xe.hasOwnProperty(a)) this.findInside(e), this.ignoreFallback(e, t);
|
|
1446
1439
|
else if (!s || s.skip || s.closeParent) {
|
|
1447
1440
|
s && s.closeParent ? this.open = Math.max(0, this.open - 1) : s && s.skip.nodeType && (e = s.skip);
|
|
1448
1441
|
let n, r = this.needsBlock;
|
|
1449
|
-
if (
|
|
1442
|
+
if (z.hasOwnProperty(a)) i.content.length && i.content[0].isInline && this.open && (this.open--, i = this.top), n = !0, i.type || (this.needsBlock = !0);
|
|
1450
1443
|
else if (!e.firstChild) {
|
|
1451
1444
|
this.leafFallback(e, t);
|
|
1452
1445
|
break out;
|
|
@@ -1532,7 +1525,7 @@ var K = class {
|
|
|
1532
1525
|
let t = this.top;
|
|
1533
1526
|
t.match &&= t.match.matchType(e.type);
|
|
1534
1527
|
let n = l.none;
|
|
1535
|
-
for (let i of r.concat(e.marks)) (t.type ? t.type.allowsMarkType(i.type) :
|
|
1528
|
+
for (let i of r.concat(e.marks)) (t.type ? t.type.allowsMarkType(i.type) : J(i.type, e.type)) && (n = i.addToSet(n));
|
|
1536
1529
|
return t.content.push(e.mark(n)), !0;
|
|
1537
1530
|
}
|
|
1538
1531
|
return !1;
|
|
@@ -1545,10 +1538,10 @@ var K = class {
|
|
|
1545
1538
|
this.closeExtra();
|
|
1546
1539
|
let a = this.top;
|
|
1547
1540
|
a.match = a.match && a.match.matchType(e);
|
|
1548
|
-
let o =
|
|
1549
|
-
a.options &
|
|
1541
|
+
let o = W(e, i, a.options);
|
|
1542
|
+
a.options & U && a.content.length == 0 && (o |= U);
|
|
1550
1543
|
let s = l.none;
|
|
1551
|
-
return n = n.filter((t) => !(a.type ? a.type.allowsMarkType(t.type) :
|
|
1544
|
+
return n = n.filter((t) => !(a.type ? a.type.allowsMarkType(t.type) : J(t.type, e)) || (s = t.addToSet(s), !1)), this.nodes.push(new G(e, t, s, r, null, o)), this.open++, n;
|
|
1552
1545
|
}
|
|
1553
1546
|
closeExtra(e = !1) {
|
|
1554
1547
|
let t = this.nodes.length - 1;
|
|
@@ -1562,7 +1555,7 @@ var K = class {
|
|
|
1562
1555
|
}
|
|
1563
1556
|
sync(e) {
|
|
1564
1557
|
for (let t = this.open; t >= 0; t--) if (this.nodes[t] == e) return this.open = t, !0;
|
|
1565
|
-
else this.localPreserveWS && (this.nodes[t].options |=
|
|
1558
|
+
else this.localPreserveWS && (this.nodes[t].options |= V);
|
|
1566
1559
|
return !1;
|
|
1567
1560
|
}
|
|
1568
1561
|
get currentPos() {
|
|
@@ -1619,21 +1612,21 @@ var K = class {
|
|
|
1619
1612
|
}
|
|
1620
1613
|
}
|
|
1621
1614
|
};
|
|
1622
|
-
function
|
|
1615
|
+
function Se(e) {
|
|
1623
1616
|
for (let t = e.firstChild, n = null; t; t = t.nextSibling) {
|
|
1624
1617
|
let e = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
|
|
1625
|
-
e &&
|
|
1618
|
+
e && B.hasOwnProperty(e) && n ? (n.appendChild(t), t = n) : e == "li" ? n = t : e && (n = null);
|
|
1626
1619
|
}
|
|
1627
1620
|
}
|
|
1628
|
-
function
|
|
1621
|
+
function Ce(e, t) {
|
|
1629
1622
|
return (e.matches || e.msMatchesSelector || e.webkitMatchesSelector || e.mozMatchesSelector).call(e, t);
|
|
1630
1623
|
}
|
|
1631
|
-
function
|
|
1624
|
+
function q(e) {
|
|
1632
1625
|
let t = {};
|
|
1633
1626
|
for (let n in e) t[n] = e[n];
|
|
1634
1627
|
return t;
|
|
1635
1628
|
}
|
|
1636
|
-
function
|
|
1629
|
+
function J(e, t) {
|
|
1637
1630
|
let n = t.schema.nodes;
|
|
1638
1631
|
for (let r in n) {
|
|
1639
1632
|
let i = n[r];
|
|
@@ -1648,12 +1641,12 @@ function Y(e, t) {
|
|
|
1648
1641
|
if (o(i.contentMatch)) return !0;
|
|
1649
1642
|
}
|
|
1650
1643
|
}
|
|
1651
|
-
var
|
|
1644
|
+
var we = class e {
|
|
1652
1645
|
constructor(e, t) {
|
|
1653
1646
|
this.nodes = e, this.marks = t;
|
|
1654
1647
|
}
|
|
1655
1648
|
serializeFragment(e, t = {}, n) {
|
|
1656
|
-
n ||=
|
|
1649
|
+
n ||= X(t).createDocumentFragment();
|
|
1657
1650
|
let r = n, i = [];
|
|
1658
1651
|
return e.forEach((e) => {
|
|
1659
1652
|
if (i.length || e.marks.length) {
|
|
@@ -1676,8 +1669,8 @@ var Ce = class e {
|
|
|
1676
1669
|
}), n;
|
|
1677
1670
|
}
|
|
1678
1671
|
serializeNodeInner(e, t) {
|
|
1679
|
-
if (e.isText) return
|
|
1680
|
-
let { dom: n, contentDOM: r } = $(
|
|
1672
|
+
if (e.isText) return X(t).createTextNode(e.text);
|
|
1673
|
+
let { dom: n, contentDOM: r } = $(X(t), this.nodes[e.type.name](e), null, e.attrs);
|
|
1681
1674
|
if (r) {
|
|
1682
1675
|
if (e.isLeaf) throw RangeError("Content hole not allowed in a leaf node spec");
|
|
1683
1676
|
this.serializeFragment(e.content, t, r);
|
|
@@ -1694,7 +1687,7 @@ var Ce = class e {
|
|
|
1694
1687
|
}
|
|
1695
1688
|
serializeMark(e, t, n = {}) {
|
|
1696
1689
|
let r = this.marks[e.type.name];
|
|
1697
|
-
return r && $(
|
|
1690
|
+
return r && $(X(n), r(e, t), null, e.attrs);
|
|
1698
1691
|
}
|
|
1699
1692
|
static renderSpec(e, t, n = null, r) {
|
|
1700
1693
|
return typeof t == "string" ? { dom: e.createTextNode(t) } : $(e, t, n, r);
|
|
@@ -1703,14 +1696,14 @@ var Ce = class e {
|
|
|
1703
1696
|
return t.cached.domSerializer || (t.cached.domSerializer = new e(this.nodesFromSchema(t), this.marksFromSchema(t)));
|
|
1704
1697
|
}
|
|
1705
1698
|
static nodesFromSchema(e) {
|
|
1706
|
-
let t =
|
|
1699
|
+
let t = Y(e.nodes);
|
|
1707
1700
|
return t.text ||= (e) => e.text, t;
|
|
1708
1701
|
}
|
|
1709
1702
|
static marksFromSchema(e) {
|
|
1710
|
-
return
|
|
1703
|
+
return Y(e.marks);
|
|
1711
1704
|
}
|
|
1712
1705
|
};
|
|
1713
|
-
function
|
|
1706
|
+
function Y(e) {
|
|
1714
1707
|
let t = {};
|
|
1715
1708
|
for (let n in e) {
|
|
1716
1709
|
let r = e[n].spec.toDOM;
|
|
@@ -1718,13 +1711,13 @@ function X(e) {
|
|
|
1718
1711
|
}
|
|
1719
1712
|
return t;
|
|
1720
1713
|
}
|
|
1721
|
-
function
|
|
1714
|
+
function X(e) {
|
|
1722
1715
|
return e.document || window.document;
|
|
1723
1716
|
}
|
|
1724
|
-
var
|
|
1725
|
-
function
|
|
1726
|
-
let t =
|
|
1727
|
-
return t === void 0 &&
|
|
1717
|
+
var Z = /* @__PURE__ */ new WeakMap();
|
|
1718
|
+
function Q(e) {
|
|
1719
|
+
let t = Z.get(e);
|
|
1720
|
+
return t === void 0 && Z.set(e, t = Te(e)), t;
|
|
1728
1721
|
}
|
|
1729
1722
|
function Te(e) {
|
|
1730
1723
|
let t = null;
|
|
@@ -1743,7 +1736,7 @@ function $(e, t, n, r) {
|
|
|
1743
1736
|
if (t.dom && t.dom.nodeType == 1) return t;
|
|
1744
1737
|
let i = t[0], a;
|
|
1745
1738
|
if (typeof i != "string") throw RangeError("Invalid array passed to renderSpec");
|
|
1746
|
-
if (r && (a =
|
|
1739
|
+
if (r && (a = Q(r)) && a.indexOf(t) > -1) throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
|
|
1747
1740
|
let o = i.indexOf(" ");
|
|
1748
1741
|
o > 0 && (n = i.slice(0, o), i = i.slice(o + 1));
|
|
1749
1742
|
let s, c = n ? e.createElementNS(n, i) : e.createElement(i), l = t[1], u = 1;
|
|
@@ -1777,6 +1770,6 @@ function $(e, t, n, r) {
|
|
|
1777
1770
|
contentDOM: s
|
|
1778
1771
|
};
|
|
1779
1772
|
}
|
|
1780
|
-
export {
|
|
1773
|
+
export { O as ContentMatch, be as DOMParser, we as DOMSerializer, a as Fragment, l as Mark, L as MarkType, T as Node, w as NodeRange, I as NodeType, u as ReplaceError, S as ResolvedPos, _e as Schema, d as Slice };
|
|
1781
1774
|
|
|
1782
1775
|
//# sourceMappingURL=index.js.map
|