@burdenoff/microfe-support 2026.1029.2 → 2026.1031.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/generated/global-operations.js +1 -2
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +701 -712
- package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +1 -2
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +1 -2
- package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +15 -16
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +25 -26
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +16 -17
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +71 -80
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +77 -90
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extensions/dist/index.js +112 -113
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +5 -10
- package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +1 -2
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +357 -347
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +1 -2
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/node_modules/linkifyjs/dist/linkify.js +1 -2
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js +10 -70
- package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
- package/dist/node_modules/orderedmap/dist/index.js +1 -2
- package/dist/node_modules/orderedmap/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +107 -108
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +12 -13
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +42 -47
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +47 -49
- package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +15 -16
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +37 -41
- package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +36 -37
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +1 -2
- package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +1 -2
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +302 -304
- package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
- package/dist/node_modules/rope-sequence/dist/index.js +1 -2
- package/dist/node_modules/rope-sequence/dist/index.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/w3c-keyname/index.js +0 -1
- package/dist/node_modules/w3c-keyname/index.js.map +1 -1
- package/dist/support/SupportAdminRoot.js +14 -15
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportAdminRoutes.js +5 -6
- package/dist/support/SupportAdminRoutes.js.map +1 -1
- package/dist/support/SupportUserRoot.js +10 -11
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.js +1 -2
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/NotificationToast.js +1 -2
- package/dist/support/components/NotificationToast.js.map +1 -1
- package/dist/support/components/PageLayout.js +15 -16
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/RouteHelpers.js +1 -2
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js +9 -10
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/MetricCard.js +1 -2
- package/dist/support/components/analytics/MetricCard.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js +9 -10
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js +5 -6
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js +5 -6
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js +5 -6
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +5 -6
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateActionGuidance.js +1 -2
- package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateDialogs.js +321 -322
- package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -1
- package/dist/support/components/careers/BulkOperationFeedback.js +1 -2
- package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -1
- package/dist/support/components/careers/BulkSelectionSummary.js +1 -2
- package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -1
- package/dist/support/components/careers/JobApplicationFilterContextGuard.js +1 -2
- package/dist/support/components/careers/JobApplicationFilterContextGuard.js.map +1 -1
- package/dist/support/components/careers/RichTextEditor.js +17 -18
- package/dist/support/components/careers/RichTextEditor.js.map +1 -1
- package/dist/support/components/kb/ArticleForm.js +10 -11
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js +2 -3
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js +1 -2
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js +3 -8
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js +4 -5
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MarkdownContent.js +1 -2
- package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +1 -2
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/MessageThread.js +13 -14
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +13 -14
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js +1 -2
- package/dist/support/components/tickets/TicketHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketSidebar.js +6 -7
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/components/tickets/TriagePanel.js +25 -26
- package/dist/support/components/tickets/TriagePanel.js.map +1 -1
- package/dist/support/components/ui.js +1 -2
- package/dist/support/constants/pipeline.js +1 -2
- package/dist/support/constants/pipeline.js.map +1 -1
- package/dist/support/constants.js +1 -2
- package/dist/support/constants.js.map +1 -1
- package/dist/support/events/rybbit.js +1 -2
- package/dist/support/events/rybbit.js.map +1 -1
- package/dist/support/hooks/index.js +6 -6
- package/dist/support/hooks/useAnalyticsOperations.js +1 -2
- package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
- package/dist/support/hooks/useAttachmentsFailedToast.js +1 -2
- package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
- package/dist/support/hooks/useChatOperations.js +14 -15
- package/dist/support/hooks/useChatOperations.js.map +1 -1
- package/dist/support/hooks/useDebouncedUrlText.js +1 -2
- package/dist/support/hooks/useDebouncedUrlText.js.map +1 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js +62 -63
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useNotification.js +1 -2
- package/dist/support/hooks/useNotification.js.map +1 -1
- package/dist/support/hooks/useRegisterFooter.js +1 -2
- package/dist/support/hooks/useRegisterFooter.js.map +1 -1
- package/dist/support/hooks/useSettingsOperations.js +1 -2
- package/dist/support/hooks/useSettingsOperations.js.map +1 -1
- package/dist/support/hooks/useSupportAttachments.js +1 -2
- package/dist/support/hooks/useSupportAttachments.js.map +1 -1
- package/dist/support/hooks/useTicketListOperations.js +9 -10
- package/dist/support/hooks/useTicketListOperations.js.map +1 -1
- package/dist/support/hooks/useTicketOperations.d.ts +8 -0
- package/dist/support/hooks/useTicketOperations.js +92 -93
- package/dist/support/hooks/useTicketOperations.js.map +1 -1
- package/dist/support/hooks/useTr.js +1 -2
- package/dist/support/hooks/useTr.js.map +1 -1
- package/dist/support/index.js +4 -4
- package/dist/support/pages/AnalyticsPage.js +34 -35
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +33 -38
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +22 -23
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +5 -6
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +13 -14
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js +15 -16
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +37 -44
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js +20 -21
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/InterviewersPage.js +121 -122
- package/dist/support/pages/InterviewersPage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +322 -332
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +556 -561
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/JobPostingDetailPage.js +489 -490
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/JobPostingsPage.js +279 -280
- package/dist/support/pages/JobPostingsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js +26 -27
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +23 -24
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js +43 -44
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +54 -55
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +61 -62
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +77 -78
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js +1 -2
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.js +1 -2
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/translations/en.js +1 -2
- package/dist/support/translations/en.js.map +1 -1
- package/dist/support/utils/attachments.js +1 -2
- package/dist/support/utils/attachments.js.map +1 -1
- package/dist/support/utils/breadcrumbRegistry.js +3 -4
- package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
- package/dist/support/utils/bulkCandidateOperations.js +0 -1
- package/dist/support/utils/bulkCandidateOperations.js.map +1 -1
- package/dist/support/utils/bulkCandidateTargetQuery.js +1 -2
- package/dist/support/utils/bulkCandidateTargetQuery.js.map +1 -1
- package/dist/support/utils/categoryColors.js +1 -2
- package/dist/support/utils/categoryColors.js.map +1 -1
- package/dist/support/utils/cn.js +1 -2
- package/dist/support/utils/cn.js.map +1 -1
- package/dist/support/utils/context.js +3 -4
- package/dist/support/utils/context.js.map +1 -1
- package/dist/support/utils/errors.js +1 -2
- package/dist/support/utils/errors.js.map +1 -1
- package/dist/support/utils/i18n.js +1 -2
- package/dist/support/utils/i18n.js.map +1 -1
- package/dist/support/utils/index.js +1 -2
- package/dist/support/utils/index.js.map +1 -1
- package/dist/support/utils/jobApplicationFilterParams.js +1 -2
- package/dist/support/utils/jobApplicationFilterParams.js.map +1 -1
- package/dist/support/utils/markdown.js +1 -2
- package/dist/support/utils/markdown.js.map +1 -1
- package/dist/support/utils/supportFiles.js +2 -11
- package/dist/support/utils/supportFiles.js.map +1 -1
- package/dist/support/utils/ticketFilters.js +1 -2
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/uiTokens.js +1 -2
- package/dist/support/utils/uiTokens.js.map +1 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +21 -14
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { Extension as e, Node as t, getNodeAtPosition as n, getNodeType as r, getPreviousBlockSibling as i, getRenderedAttributes as a, isAtEndOfNode as o, isAtStartOfNode as s, isNodeActive as c, mergeAttributes as l, parseIndentedBlocks as u, renderNestedMarkdownContent as d, wrappingInputRule as f } from "../../core/dist/index.js";
|
|
2
|
+
import { Fragment as p } from "../../../prosemirror-model/dist/index.js";
|
|
3
|
+
import { Plugin as m, TextSelection as h } from "../../../prosemirror-state/dist/index.js";
|
|
4
|
+
// node_modules/@tiptap/extension-list/dist/index.js
|
|
5
5
|
var g = Object.defineProperty, _ = (e, t) => {
|
|
6
6
|
for (var n in t) g(e, n, {
|
|
7
7
|
get: t[n],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
}, ee = "listItem", v = "textStyle", y = /^\s*([-+*])\s$/, b =
|
|
10
|
+
}, ee = "listItem", v = "textStyle", y = /^\s*([-+*])\s$/, b = t.create({
|
|
11
11
|
name: "bulletList",
|
|
12
12
|
addOptions() {
|
|
13
13
|
return {
|
|
@@ -27,7 +27,7 @@ var g = Object.defineProperty, _ = (e, t) => {
|
|
|
27
27
|
renderHTML({ HTMLAttributes: e }) {
|
|
28
28
|
return [
|
|
29
29
|
"ul",
|
|
30
|
-
|
|
30
|
+
l(this.options.HTMLAttributes, e),
|
|
31
31
|
0
|
|
32
32
|
];
|
|
33
33
|
},
|
|
@@ -45,11 +45,11 @@ var g = Object.defineProperty, _ = (e, t) => {
|
|
|
45
45
|
return { "Mod-Shift-8": () => this.editor.commands.toggleBulletList() };
|
|
46
46
|
},
|
|
47
47
|
addInputRules() {
|
|
48
|
-
let e =
|
|
48
|
+
let e = f({
|
|
49
49
|
find: y,
|
|
50
50
|
type: this.type
|
|
51
51
|
});
|
|
52
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (e =
|
|
52
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (e = f({
|
|
53
53
|
find: y,
|
|
54
54
|
type: this.type,
|
|
55
55
|
keepMarks: this.options.keepMarks,
|
|
@@ -89,21 +89,21 @@ var g = Object.defineProperty, _ = (e, t) => {
|
|
|
89
89
|
insertPos: i.after(a),
|
|
90
90
|
items: f
|
|
91
91
|
};
|
|
92
|
-
}, ne = (t, n, r
|
|
93
|
-
let
|
|
94
|
-
if (!
|
|
95
|
-
let { selection:
|
|
96
|
-
|
|
97
|
-
let
|
|
98
|
-
return
|
|
99
|
-
}, re = (e, t, n) => ne(e.state, e.view.dispatch, t, n), x = (
|
|
100
|
-
name: `${
|
|
92
|
+
}, ne = (e, t, n, r) => {
|
|
93
|
+
let i = te(e, n, r);
|
|
94
|
+
if (!i) return !1;
|
|
95
|
+
let { selection: a } = e, { nestedList: o, nestedListPos: s, insertPos: c, items: l } = i, u = e.tr;
|
|
96
|
+
u.delete(s, s + o.nodeSize);
|
|
97
|
+
let d = u.mapping.map(c);
|
|
98
|
+
return u.insert(d, p.from(l)), u.setSelection(a.map(u.doc, u.mapping)), t && t(u), !0;
|
|
99
|
+
}, re = (e, t, n) => ne(e.state, e.view.dispatch, t, n), x = (t, n) => e.create({
|
|
100
|
+
name: `${t}BranchingDeleteKeymap`,
|
|
101
101
|
priority: 101,
|
|
102
102
|
addKeyboardShortcuts() {
|
|
103
|
-
let
|
|
103
|
+
let e = () => re(this.editor, t, n);
|
|
104
104
|
return {
|
|
105
|
-
Delete:
|
|
106
|
-
"Mod-Delete":
|
|
105
|
+
Delete: e,
|
|
106
|
+
"Mod-Delete": e
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
}), S = [
|
|
@@ -161,7 +161,7 @@ function O(e) {
|
|
|
161
161
|
return t < 0 ? C[n] : C[t] + C[n];
|
|
162
162
|
}
|
|
163
163
|
function k(e) {
|
|
164
|
-
if (
|
|
164
|
+
if (e && !/^\d+$/.test(e)) {
|
|
165
165
|
if (ie(e)) return e === e.toLowerCase() ? "i" : "I";
|
|
166
166
|
if (/^[a-z]{1,2}$/.test(e)) return "a";
|
|
167
167
|
if (/^[A-Z]{1,2}$/.test(e)) return "A";
|
|
@@ -230,7 +230,7 @@ function ce(e, t) {
|
|
|
230
230
|
text: e
|
|
231
231
|
}]);
|
|
232
232
|
}
|
|
233
|
-
var F =
|
|
233
|
+
var F = t.create({
|
|
234
234
|
name: "listItem",
|
|
235
235
|
addOptions() {
|
|
236
236
|
return {
|
|
@@ -247,7 +247,7 @@ var F = i.create({
|
|
|
247
247
|
renderHTML({ HTMLAttributes: e }) {
|
|
248
248
|
return [
|
|
249
249
|
"li",
|
|
250
|
-
|
|
250
|
+
l(this.options.HTMLAttributes, e),
|
|
251
251
|
0
|
|
252
252
|
];
|
|
253
253
|
},
|
|
@@ -285,7 +285,7 @@ var F = i.create({
|
|
|
285
285
|
content: r
|
|
286
286
|
};
|
|
287
287
|
},
|
|
288
|
-
renderMarkdown: (e, t, n) =>
|
|
288
|
+
renderMarkdown: (e, t, n) => d(e, t, (e) => {
|
|
289
289
|
if (e.parentType === "bulletList") return "- ";
|
|
290
290
|
if (e.parentType === "orderedList") {
|
|
291
291
|
let t = e.meta?.parentAttrs?.start || 1;
|
|
@@ -318,24 +318,24 @@ _(I, {
|
|
|
318
318
|
nextListIsHigher: () => H
|
|
319
319
|
});
|
|
320
320
|
var L = (e, t) => {
|
|
321
|
-
let { $from: n } = t.selection,
|
|
322
|
-
for (;
|
|
321
|
+
let { $from: n } = t.selection, i = r(e, t.schema), a = null, o = n.depth, s = n.pos, c = null;
|
|
322
|
+
for (; o > 0 && c === null;) a = n.node(o), a.type === i ? c = o : (--o, --s);
|
|
323
323
|
return c === null ? null : {
|
|
324
324
|
$pos: t.doc.resolve(s),
|
|
325
325
|
depth: c
|
|
326
326
|
};
|
|
327
327
|
}, R = (e, t) => {
|
|
328
|
-
let
|
|
329
|
-
if (!
|
|
330
|
-
let [,
|
|
331
|
-
return
|
|
328
|
+
let r = L(e, t);
|
|
329
|
+
if (!r) return !1;
|
|
330
|
+
let [, i] = n(t, e, r.$pos.pos + 4);
|
|
331
|
+
return i;
|
|
332
332
|
}, z = (e, t, n) => {
|
|
333
333
|
let { $anchor: r } = e.selection, i = Math.max(0, r.pos - 2), a = e.doc.resolve(i).node();
|
|
334
334
|
return !(!a || !n.includes(a.type.name));
|
|
335
335
|
}, B = (e, t, n) => {
|
|
336
336
|
if (e.commands.undoInputRule()) return !0;
|
|
337
337
|
if (e.state.selection.from !== e.state.selection.to) return !1;
|
|
338
|
-
if (!
|
|
338
|
+
if (!c(e.state, t) && z(e.state, t, n)) {
|
|
339
339
|
let { $anchor: n } = e.state.selection, r = e.state.doc.resolve(n.before() - 1), i = [];
|
|
340
340
|
r.node().descendants((e, n) => {
|
|
341
341
|
e.type.name === t && i.push({
|
|
@@ -351,7 +351,7 @@ var L = (e, t) => {
|
|
|
351
351
|
to: n.end() + 1
|
|
352
352
|
}, o.end()).joinForward().run();
|
|
353
353
|
}
|
|
354
|
-
if (!
|
|
354
|
+
if (!c(e.state, t) || !s(e.state)) return !1;
|
|
355
355
|
let { $from: r } = e.state.selection, i = r.depth - 1;
|
|
356
356
|
return r.node(i).type !== e.schema.nodes[t] || r.index(i) !== 0 ? !1 : e.chain().liftListItem(t).run();
|
|
357
357
|
}, V = (e, t) => {
|
|
@@ -361,22 +361,22 @@ var L = (e, t) => {
|
|
|
361
361
|
let n = R(e, t), r = L(e, t);
|
|
362
362
|
return !r || !n ? !1 : n < r.depth;
|
|
363
363
|
}, U = (e, t) => {
|
|
364
|
-
if (!
|
|
364
|
+
if (!c(e.state, t) || !o(e.state, t)) return !1;
|
|
365
365
|
let { selection: n } = e.state, { $from: r, $to: i } = n;
|
|
366
366
|
return !n.empty && r.sameParent(i) ? !1 : V(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : H(t, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
|
|
367
|
-
}, W = (
|
|
368
|
-
let { state:
|
|
369
|
-
if (!
|
|
370
|
-
let { $from:
|
|
371
|
-
if (
|
|
372
|
-
let
|
|
373
|
-
if (!
|
|
374
|
-
let
|
|
375
|
-
if (!
|
|
376
|
-
let
|
|
377
|
-
if (!
|
|
378
|
-
let
|
|
379
|
-
return
|
|
367
|
+
}, W = (e, t, n) => {
|
|
368
|
+
let { state: r } = e, { selection: a } = r;
|
|
369
|
+
if (!a.empty) return !1;
|
|
370
|
+
let { $from: o } = a;
|
|
371
|
+
if (o.parentOffset !== 0 || !o.parent.isTextblock || c(r, t)) return !1;
|
|
372
|
+
let s = i(o);
|
|
373
|
+
if (!s || !n.includes(s.type.name)) return !1;
|
|
374
|
+
let l = s.lastChild;
|
|
375
|
+
if (!l || l.type.name !== t) return !1;
|
|
376
|
+
let u = o.parent;
|
|
377
|
+
if (!l.canReplace(l.childCount, l.childCount, p.from(u))) return !1;
|
|
378
|
+
let d = o.before(), f = o.after(), m = d - 2;
|
|
379
|
+
return e.commands.command(({ tr: e, dispatch: t }) => (t && (e.delete(d, f).insert(m, p.from(u)), e.setSelection(h.create(e.doc, m + 1)), e.scrollIntoView()), !0));
|
|
380
380
|
}, le = (e, t) => {
|
|
381
381
|
let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - n.parentOffset - 2);
|
|
382
382
|
return r.index() !== r.parent.childCount - 1 && r.nodeAfter?.type.name === e;
|
|
@@ -385,11 +385,11 @@ var L = (e, t) => {
|
|
|
385
385
|
return r.index() !== 0 && r.nodeBefore?.type.name === e;
|
|
386
386
|
}, de = (e, t, n) => {
|
|
387
387
|
if (!n) return !1;
|
|
388
|
-
let
|
|
388
|
+
let i = r(e, t.schema), a = !1;
|
|
389
389
|
return n.descendants((e) => {
|
|
390
|
-
e.type ===
|
|
391
|
-
}),
|
|
392
|
-
}, G =
|
|
390
|
+
e.type === i && (a = !0);
|
|
391
|
+
}), a;
|
|
392
|
+
}, G = e.create({
|
|
393
393
|
name: "listKeymap",
|
|
394
394
|
addOptions() {
|
|
395
395
|
return { listTypes: [{
|
|
@@ -452,19 +452,7 @@ function he(e) {
|
|
|
452
452
|
function ge(e) {
|
|
453
453
|
let t = [], n = [], r = !1;
|
|
454
454
|
return e.forEach((e) => {
|
|
455
|
-
|
|
456
|
-
n.push(e);
|
|
457
|
-
return;
|
|
458
|
-
}
|
|
459
|
-
if (e.trim() === "") {
|
|
460
|
-
r = !0, n.push(e);
|
|
461
|
-
return;
|
|
462
|
-
}
|
|
463
|
-
if (t.length > 0 && me(e)) {
|
|
464
|
-
r = !0, n.push(e);
|
|
465
|
-
return;
|
|
466
|
-
}
|
|
467
|
-
t.push(e);
|
|
455
|
+
r ? n.push(e) : e.trim() === "" || t.length > 0 && me(e) ? (r = !0, n.push(e)) : t.push(e);
|
|
468
456
|
}), {
|
|
469
457
|
paragraphLines: t,
|
|
470
458
|
blockLines: n
|
|
@@ -601,7 +589,7 @@ function Q(e) {
|
|
|
601
589
|
default: return null;
|
|
602
590
|
}
|
|
603
591
|
}
|
|
604
|
-
var xe =
|
|
592
|
+
var xe = t.create({
|
|
605
593
|
name: "orderedList",
|
|
606
594
|
addOptions() {
|
|
607
595
|
return {
|
|
@@ -648,7 +636,7 @@ var xe = i.create({
|
|
|
648
636
|
return [{ tag: "ol" }];
|
|
649
637
|
},
|
|
650
638
|
renderHTML({ HTMLAttributes: e }) {
|
|
651
|
-
let { start: t, type: n, ...r } = e, i =
|
|
639
|
+
let { start: t, type: n, ...r } = e, i = l(this.options.HTMLAttributes, r);
|
|
652
640
|
return t !== 1 && (i.start = t), n && n !== "1" && (i.type = n), [
|
|
653
641
|
"ol",
|
|
654
642
|
i,
|
|
@@ -695,7 +683,7 @@ var xe = i.create({
|
|
|
695
683
|
return { "Mod-Shift-7": () => this.editor.commands.toggleOrderedList() };
|
|
696
684
|
},
|
|
697
685
|
addProseMirrorPlugins() {
|
|
698
|
-
return [new
|
|
686
|
+
return [new m({ props: { handlePaste: (e, t) => {
|
|
699
687
|
if ((t.clipboardData?.getData("text/html"))?.trim()) return !1;
|
|
700
688
|
let n = t.clipboardData?.getData("text/plain");
|
|
701
689
|
if (!n) return !1;
|
|
@@ -710,13 +698,13 @@ var xe = i.create({
|
|
|
710
698
|
} } })];
|
|
711
699
|
},
|
|
712
700
|
addInputRules() {
|
|
713
|
-
let e = (e, t) => (!t.attrs.type || t.attrs.type === "1") && t.childCount + t.attrs.start === +e[1], t =
|
|
701
|
+
let e = (e, t) => (!t.attrs.type || t.attrs.type === "1") && t.childCount + t.attrs.start === +e[1], t = f({
|
|
714
702
|
find: Z,
|
|
715
703
|
type: this.type,
|
|
716
704
|
getAttributes: (e) => ({ start: +e[1] }),
|
|
717
705
|
joinPredicate: e
|
|
718
706
|
});
|
|
719
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t =
|
|
707
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (t = f({
|
|
720
708
|
find: Z,
|
|
721
709
|
type: this.type,
|
|
722
710
|
keepMarks: this.options.keepMarks,
|
|
@@ -729,7 +717,7 @@ var xe = i.create({
|
|
|
729
717
|
editor: this.editor
|
|
730
718
|
})), [t];
|
|
731
719
|
}
|
|
732
|
-
}), Se = /^\s*(\[([( |x])?\])\s$/, Ce = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", we = (e, t, n) => (n?.checkboxLabel)?.call(n, e, t) || `Task item checkbox for ${e.textContent || "empty task item"}`, Te =
|
|
720
|
+
}), Se = /^\s*(\[([( |x])?\])\s$/, Ce = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", we = (e, t, n) => (n?.checkboxLabel)?.call(n, e, t) || `Task item checkbox for ${e.textContent || "empty task item"}`, Te = t.create({
|
|
733
721
|
name: "taskItem",
|
|
734
722
|
addOptions() {
|
|
735
723
|
return {
|
|
@@ -764,7 +752,7 @@ var xe = i.create({
|
|
|
764
752
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
765
753
|
return [
|
|
766
754
|
"li",
|
|
767
|
-
|
|
755
|
+
l(this.options.HTMLAttributes, t, { "data-type": this.name }),
|
|
768
756
|
[
|
|
769
757
|
"label",
|
|
770
758
|
["input", {
|
|
@@ -786,7 +774,7 @@ var xe = i.create({
|
|
|
786
774
|
},
|
|
787
775
|
renderMarkdown: (e, t) => {
|
|
788
776
|
let n = `- [${e.attrs?.checked ? "x" : " "}] `;
|
|
789
|
-
return
|
|
777
|
+
return d(e, t, n);
|
|
790
778
|
},
|
|
791
779
|
addExtensions() {
|
|
792
780
|
return this.options.nested ? [x(this.name, [this.options.taskListTypeName])] : [];
|
|
@@ -803,15 +791,15 @@ var xe = i.create({
|
|
|
803
791
|
},
|
|
804
792
|
addNodeView() {
|
|
805
793
|
return ({ node: e, HTMLAttributes: t, getPos: n, editor: r }) => {
|
|
806
|
-
let i = document.createElement("li"),
|
|
807
|
-
|
|
794
|
+
let i = document.createElement("li"), o = document.createElement("label"), s = document.createElement("span"), c = document.createElement("input"), l = document.createElement("div");
|
|
795
|
+
s.style.cssText = Ce;
|
|
808
796
|
let u = (e) => {
|
|
809
797
|
let t = we(e, e.attrs.checked, this.options.a11y);
|
|
810
|
-
|
|
798
|
+
c.setAttribute("aria-label", t), s.textContent = t;
|
|
811
799
|
};
|
|
812
|
-
u(e),
|
|
800
|
+
u(e), o.contentEditable = "false", c.type = "checkbox", c.addEventListener("mousedown", (e) => e.preventDefault()), c.addEventListener("change", (t) => {
|
|
813
801
|
if (!r.isEditable && !this.options.onReadOnlyChecked) {
|
|
814
|
-
|
|
802
|
+
c.checked = !c.checked;
|
|
815
803
|
return;
|
|
816
804
|
}
|
|
817
805
|
let { checked: i } = t.target;
|
|
@@ -823,10 +811,10 @@ var xe = i.create({
|
|
|
823
811
|
...r?.attrs,
|
|
824
812
|
checked: i
|
|
825
813
|
}), !0;
|
|
826
|
-
}).run(), !r.isEditable && this.options.onReadOnlyChecked && (this.options.onReadOnlyChecked(e, i) || (
|
|
814
|
+
}).run(), !r.isEditable && this.options.onReadOnlyChecked && (this.options.onReadOnlyChecked(e, i) || (c.checked = !c.checked));
|
|
827
815
|
}), Object.entries(this.options.HTMLAttributes).forEach(([e, t]) => {
|
|
828
816
|
i.setAttribute(e, t);
|
|
829
|
-
}), i.dataset.checked = e.attrs.checked,
|
|
817
|
+
}), i.dataset.checked = e.attrs.checked, c.checked = e.attrs.checked, o.append(c, s), i.append(o, l), Object.entries(t).forEach(([e, t]) => {
|
|
830
818
|
i.setAttribute(e, t);
|
|
831
819
|
});
|
|
832
820
|
let d = new Set(Object.keys(t));
|
|
@@ -835,25 +823,25 @@ var xe = i.create({
|
|
|
835
823
|
contentDOM: l,
|
|
836
824
|
update: (e) => {
|
|
837
825
|
if (e.type !== this.type) return !1;
|
|
838
|
-
i.dataset.checked = e.attrs.checked,
|
|
839
|
-
let t = r.extensionManager.attributes, n =
|
|
826
|
+
i.dataset.checked = e.attrs.checked, c.checked = e.attrs.checked, u(e);
|
|
827
|
+
let t = r.extensionManager.attributes, n = a(e, t), o = new Set(Object.keys(n)), s = this.options.HTMLAttributes;
|
|
840
828
|
return d.forEach((e) => {
|
|
841
|
-
|
|
829
|
+
o.has(e) || (e in s ? i.setAttribute(e, s[e]) : i.removeAttribute(e));
|
|
842
830
|
}), Object.entries(n).forEach(([e, t]) => {
|
|
843
|
-
t == null ? e in
|
|
844
|
-
}), d =
|
|
831
|
+
t == null ? e in s ? i.setAttribute(e, s[e]) : i.removeAttribute(e) : i.setAttribute(e, t);
|
|
832
|
+
}), d = o, !0;
|
|
845
833
|
}
|
|
846
834
|
};
|
|
847
835
|
};
|
|
848
836
|
},
|
|
849
837
|
addInputRules() {
|
|
850
|
-
return [
|
|
838
|
+
return [f({
|
|
851
839
|
find: Se,
|
|
852
840
|
type: this.type,
|
|
853
841
|
getAttributes: (e) => ({ checked: e[e.length - 1] === "x" })
|
|
854
842
|
})];
|
|
855
843
|
}
|
|
856
|
-
}), $ =
|
|
844
|
+
}), $ = t.create({
|
|
857
845
|
name: "taskList",
|
|
858
846
|
addOptions() {
|
|
859
847
|
return {
|
|
@@ -874,7 +862,7 @@ var xe = i.create({
|
|
|
874
862
|
renderHTML({ HTMLAttributes: e }) {
|
|
875
863
|
return [
|
|
876
864
|
"ul",
|
|
877
|
-
|
|
865
|
+
l(this.options.HTMLAttributes, e, { "data-type": this.name }),
|
|
878
866
|
0
|
|
879
867
|
];
|
|
880
868
|
},
|
|
@@ -889,7 +877,7 @@ var xe = i.create({
|
|
|
889
877
|
},
|
|
890
878
|
tokenize(e, t, n) {
|
|
891
879
|
let r = (e) => {
|
|
892
|
-
let t =
|
|
880
|
+
let t = u(e, {
|
|
893
881
|
itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
|
|
894
882
|
extractItemData: (e) => ({
|
|
895
883
|
indentLevel: e[1].length,
|
|
@@ -917,7 +905,7 @@ var xe = i.create({
|
|
|
917
905
|
return i.trim() ? [r, ...n.blockTokens(i)] : [r];
|
|
918
906
|
}
|
|
919
907
|
return n.blockTokens(e);
|
|
920
|
-
}, i =
|
|
908
|
+
}, i = u(e, {
|
|
921
909
|
itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
|
|
922
910
|
extractItemData: (e) => ({
|
|
923
911
|
indentLevel: e[1].length,
|
|
@@ -951,14 +939,13 @@ var xe = i.create({
|
|
|
951
939
|
return { "Mod-Shift-9": () => this.editor.commands.toggleTaskList() };
|
|
952
940
|
}
|
|
953
941
|
});
|
|
954
|
-
|
|
942
|
+
e.create({
|
|
955
943
|
name: "listKit",
|
|
956
944
|
addExtensions() {
|
|
957
945
|
let e = [];
|
|
958
946
|
return this.options.bulletList !== !1 && e.push(b.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(F.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(G.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(xe.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Te.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push($.configure(this.options.taskList)), e;
|
|
959
947
|
}
|
|
960
948
|
});
|
|
961
|
-
//#endregion
|
|
962
949
|
export { b as BulletList, F as ListItem, G as ListKeymap, w as ORDERED_LIST_MARKER_PATTERN, xe as OrderedList, Te as TaskItem, $ as TaskList, j as areOrderedListMarkersSequential, N as buildOrderedListAttrsFromMarker, y as bulletListInputRegex, k as detectMarkerType, P as getListMarker, Se as inputRegex, I as listHelpers, A as markerToStart, Z as orderedListInputRegex, M as parseListMarker, J as parsePlainTextOrderedListPaste, T as toRoman, E as toRomanUpper };
|
|
963
950
|
|
|
964
951
|
//# sourceMappingURL=index.js.map
|