@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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { base as e, keyName as t } from "../../w3c-keyname/index.js";
|
|
2
|
+
import { Plugin as n } from "../../prosemirror-state/dist/index.js";
|
|
3
|
+
// node_modules/prosemirror-keymap/dist/index.js
|
|
4
4
|
var r = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), i = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
5
5
|
function a(e) {
|
|
6
6
|
let t = e.split(/-(?!$)/), n = t[t.length - 1];
|
|
@@ -25,28 +25,27 @@ function o(e) {
|
|
|
25
25
|
function s(e, t, n = !0) {
|
|
26
26
|
return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
|
|
27
27
|
}
|
|
28
|
-
function c(
|
|
29
|
-
return new
|
|
28
|
+
function c(e) {
|
|
29
|
+
return new n({ props: { handleKeyDown: l(e) } });
|
|
30
30
|
}
|
|
31
|
-
function l(
|
|
32
|
-
let r = o(
|
|
33
|
-
return function(
|
|
34
|
-
let o =
|
|
35
|
-
if (l && l(
|
|
31
|
+
function l(n) {
|
|
32
|
+
let r = o(n);
|
|
33
|
+
return function(n, a) {
|
|
34
|
+
let o = t(a), c, l = r[s(o, a)];
|
|
35
|
+
if (l && l(n.state, n.dispatch, n)) return !0;
|
|
36
36
|
if (o.length == 1 && o != " ") {
|
|
37
37
|
if (a.shiftKey) {
|
|
38
|
-
let
|
|
39
|
-
if (
|
|
38
|
+
let e = r[s(o, a, !1)];
|
|
39
|
+
if (e && e(n.state, n.dispatch, n)) return !0;
|
|
40
40
|
}
|
|
41
|
-
if ((a.altKey || a.metaKey || a.ctrlKey) && !(i && a.ctrlKey && a.altKey) && (c =
|
|
42
|
-
let
|
|
43
|
-
if (
|
|
41
|
+
if ((a.altKey || a.metaKey || a.ctrlKey) && !(i && a.ctrlKey && a.altKey) && (c = e[a.keyCode]) && c != o) {
|
|
42
|
+
let e = r[s(c, a)];
|
|
43
|
+
if (e && e(n.state, n.dispatch, n)) return !0;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
return !1;
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
export { l as keydownHandler, c as keymap };
|
|
51
50
|
|
|
52
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/prosemirror-keymap/dist/index.js"],"sourcesContent":["import { keyName, base } from 'w3c-keyname';\nimport { Plugin } from 'prosemirror-state';\n\nconst mac = typeof navigator != \"undefined\" && /Mac|iP(hone|[oa]d)/.test(navigator.platform);\nconst windows = typeof navigator != \"undefined\" && /Win/.test(navigator.platform);\nfunction normalizeKeyName(name) {\n let parts = name.split(/-(?!$)/), result = parts[parts.length - 1];\n if (result == \"Space\")\n result = \" \";\n let alt, ctrl, shift, meta;\n for (let i = 0; i < parts.length - 1; i++) {\n let mod = parts[i];\n if (/^(cmd|meta|m)$/i.test(mod))\n meta = true;\n else if (/^a(lt)?$/i.test(mod))\n alt = true;\n else if (/^(c|ctrl|control)$/i.test(mod))\n ctrl = true;\n else if (/^s(hift)?$/i.test(mod))\n shift = true;\n else if (/^mod$/i.test(mod)) {\n if (mac)\n meta = true;\n else\n ctrl = true;\n }\n else\n throw new Error(\"Unrecognized modifier name: \" + mod);\n }\n if (alt)\n result = \"Alt-\" + result;\n if (ctrl)\n result = \"Ctrl-\" + result;\n if (meta)\n result = \"Meta-\" + result;\n if (shift)\n result = \"Shift-\" + result;\n return result;\n}\nfunction normalize(map) {\n let copy = Object.create(null);\n for (let prop in map)\n copy[normalizeKeyName(prop)] = map[prop];\n return copy;\n}\nfunction modifiers(name, event, shift = true) {\n if (event.altKey)\n name = \"Alt-\" + name;\n if (event.ctrlKey)\n name = \"Ctrl-\" + name;\n if (event.metaKey)\n name = \"Meta-\" + name;\n if (shift && event.shiftKey)\n name = \"Shift-\" + name;\n return name;\n}\n/**\nCreate a keymap plugin for the given set of bindings.\n\nBindings should map key names to [command](https://prosemirror.net/docs/ref/#commands)-style\nfunctions, which will be called with `(EditorState, dispatch,\nEditorView)` arguments, and should return true when they've handled\nthe key. Note that the view argument isn't part of the command\nprotocol, but can be used as an escape hatch if a binding needs to\ndirectly interact with the UI.\n\nKey names may be strings like `\"Shift-Ctrl-Enter\"`—a key\nidentifier prefixed with zero or more modifiers. Key identifiers\nare based on the strings that can appear in\n[`KeyEvent.key`](https:developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key).\nUse lowercase letters to refer to letter keys (or uppercase letters\nif you want shift to be held). You may use `\"Space\"` as an alias\nfor the `\" \"` name.\n\nModifiers can be given in any order. `Shift-` (or `s-`), `Alt-` (or\n`a-`), `Ctrl-` (or `c-` or `Control-`) and `Cmd-` (or `m-` or\n`Meta-`) are recognized. For characters that are created by holding\nshift, the `Shift-` prefix is implied, and should not be added\nexplicitly.\n\nYou can use `Mod-` as a shorthand for `Cmd-` on Mac and `Ctrl-` on\nother platforms.\n\nYou can add multiple keymap plugins to an editor. The order in\nwhich they appear determines their precedence (the ones early in\nthe array get to dispatch first).\n*/\nfunction keymap(bindings) {\n return new Plugin({ props: { handleKeyDown: keydownHandler(bindings) } });\n}\n/**\nGiven a set of bindings (using the same format as\n[`keymap`](https://prosemirror.net/docs/ref/#keymap.keymap)), return a [keydown\nhandler](https://prosemirror.net/docs/ref/#view.EditorProps.handleKeyDown) that handles them.\n*/\nfunction keydownHandler(bindings) {\n let map = normalize(bindings);\n return function (view, event) {\n let name = keyName(event), baseName, direct = map[modifiers(name, event)];\n if (direct && direct(view.state, view.dispatch, view))\n return true;\n // A character key\n if (name.length == 1 && name != \" \") {\n if (event.shiftKey) {\n // In case the name was already modified by shift, try looking\n // it up without its shift modifier\n let noShift = map[modifiers(name, event, false)];\n if (noShift && noShift(view.state, view.dispatch, view))\n return true;\n }\n if ((event.altKey || event.metaKey || event.ctrlKey) &&\n // Ctrl-Alt may be used for AltGr on Windows\n !(windows && event.ctrlKey && event.altKey) &&\n (baseName = base[event.keyCode]) && baseName != name) {\n // Try falling back to the keyCode when there's a modifier\n // active or the character produced isn't ASCII, and our table\n // produces a different name from the the keyCode. See #668,\n // #1060, #1529.\n let fromCode = map[modifiers(baseName, event)];\n if (fromCode && fromCode(view.state, view.dispatch, view))\n return true;\n }\n }\n return false;\n };\n}\n\nexport { keydownHandler, keymap };\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":["mac","windows","normalizeKeyName","parts","name","result","alt","ctrl","shift","meta","i","mod","normalize","copy","prop","map","modifiers","event","keymap","Plugin","keydownHandler","bindings","keyName","baseName","direct","view","noShift","base","fromCode"],"sources":["../../../../node_modules/prosemirror-keymap/dist/index.js"],"sourcesContent":["import { keyName, base } from 'w3c-keyname';\nimport { Plugin } from 'prosemirror-state';\n\nconst mac = typeof navigator != \"undefined\" && /Mac|iP(hone|[oa]d)/.test(navigator.platform);\nconst windows = typeof navigator != \"undefined\" && /Win/.test(navigator.platform);\nfunction normalizeKeyName(name) {\n let parts = name.split(/-(?!$)/), result = parts[parts.length - 1];\n if (result == \"Space\")\n result = \" \";\n let alt, ctrl, shift, meta;\n for (let i = 0; i < parts.length - 1; i++) {\n let mod = parts[i];\n if (/^(cmd|meta|m)$/i.test(mod))\n meta = true;\n else if (/^a(lt)?$/i.test(mod))\n alt = true;\n else if (/^(c|ctrl|control)$/i.test(mod))\n ctrl = true;\n else if (/^s(hift)?$/i.test(mod))\n shift = true;\n else if (/^mod$/i.test(mod)) {\n if (mac)\n meta = true;\n else\n ctrl = true;\n }\n else\n throw new Error(\"Unrecognized modifier name: \" + mod);\n }\n if (alt)\n result = \"Alt-\" + result;\n if (ctrl)\n result = \"Ctrl-\" + result;\n if (meta)\n result = \"Meta-\" + result;\n if (shift)\n result = \"Shift-\" + result;\n return result;\n}\nfunction normalize(map) {\n let copy = Object.create(null);\n for (let prop in map)\n copy[normalizeKeyName(prop)] = map[prop];\n return copy;\n}\nfunction modifiers(name, event, shift = true) {\n if (event.altKey)\n name = \"Alt-\" + name;\n if (event.ctrlKey)\n name = \"Ctrl-\" + name;\n if (event.metaKey)\n name = \"Meta-\" + name;\n if (shift && event.shiftKey)\n name = \"Shift-\" + name;\n return name;\n}\n/**\nCreate a keymap plugin for the given set of bindings.\n\nBindings should map key names to [command](https://prosemirror.net/docs/ref/#commands)-style\nfunctions, which will be called with `(EditorState, dispatch,\nEditorView)` arguments, and should return true when they've handled\nthe key. Note that the view argument isn't part of the command\nprotocol, but can be used as an escape hatch if a binding needs to\ndirectly interact with the UI.\n\nKey names may be strings like `\"Shift-Ctrl-Enter\"`—a key\nidentifier prefixed with zero or more modifiers. Key identifiers\nare based on the strings that can appear in\n[`KeyEvent.key`](https:developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key).\nUse lowercase letters to refer to letter keys (or uppercase letters\nif you want shift to be held). You may use `\"Space\"` as an alias\nfor the `\" \"` name.\n\nModifiers can be given in any order. `Shift-` (or `s-`), `Alt-` (or\n`a-`), `Ctrl-` (or `c-` or `Control-`) and `Cmd-` (or `m-` or\n`Meta-`) are recognized. For characters that are created by holding\nshift, the `Shift-` prefix is implied, and should not be added\nexplicitly.\n\nYou can use `Mod-` as a shorthand for `Cmd-` on Mac and `Ctrl-` on\nother platforms.\n\nYou can add multiple keymap plugins to an editor. The order in\nwhich they appear determines their precedence (the ones early in\nthe array get to dispatch first).\n*/\nfunction keymap(bindings) {\n return new Plugin({ props: { handleKeyDown: keydownHandler(bindings) } });\n}\n/**\nGiven a set of bindings (using the same format as\n[`keymap`](https://prosemirror.net/docs/ref/#keymap.keymap)), return a [keydown\nhandler](https://prosemirror.net/docs/ref/#view.EditorProps.handleKeyDown) that handles them.\n*/\nfunction keydownHandler(bindings) {\n let map = normalize(bindings);\n return function (view, event) {\n let name = keyName(event), baseName, direct = map[modifiers(name, event)];\n if (direct && direct(view.state, view.dispatch, view))\n return true;\n // A character key\n if (name.length == 1 && name != \" \") {\n if (event.shiftKey) {\n // In case the name was already modified by shift, try looking\n // it up without its shift modifier\n let noShift = map[modifiers(name, event, false)];\n if (noShift && noShift(view.state, view.dispatch, view))\n return true;\n }\n if ((event.altKey || event.metaKey || event.ctrlKey) &&\n // Ctrl-Alt may be used for AltGr on Windows\n !(windows && event.ctrlKey && event.altKey) &&\n (baseName = base[event.keyCode]) && baseName != name) {\n // Try falling back to the keyCode when there's a modifier\n // active or the character produced isn't ASCII, and our table\n // produces a different name from the the keyCode. See #668,\n // #1060, #1529.\n let fromCode = map[modifiers(baseName, event)];\n if (fromCode && fromCode(view.state, view.dispatch, view))\n return true;\n }\n }\n return false;\n };\n}\n\nexport { keydownHandler, keymap };\n"],"ignoreList":[0],"mappings":";;;AAGA,IAAMA,IAAM,OAAO,YAAa,OAAe,qBAAqB,KAAK,UAAU,QAAQ,GACrFC,IAAU,OAAO,YAAa,OAAe,MAAM,KAAK,UAAU,QAAQ;AAChF,SAASC,EAAiB,GAAM;CAC5B,IAAIC,IAAQC,EAAK,MAAM,QAAQ,GAAGC,IAASF,EAAMA,EAAM,SAAS;CAChE,AAAIE,KAAU,YACV,IAAS;CACb,IAAIC,GAAKC,GAAMC,GAAOC;CACtB,KAAK,IAAIC,IAAI,GAAGA,IAAIP,EAAM,SAAS,GAAG,KAAK;EACvC,IAAIQ,IAAMR,EAAMO;EAChB,IAAI,kBAAkB,KAAKC,CAAG,GAC1B,IAAO;OACN,IAAI,YAAY,KAAKA,CAAG,GACzB,IAAM;OACL,IAAI,sBAAsB,KAAKA,CAAG,GACnC,IAAO;OACN,IAAI,cAAc,KAAKA,CAAG,GAC3B,IAAQ;OACP,IAAI,SAAS,KAAKA,CAAG,GACtB,AAAIX,IACA,IAAO,KAEP,IAAO;OAGX,MAAU,MAAM,iCAAiCW,CAAG;CAC5D;CASA,OARIL,MACA,IAAS,SAASD,IAClBE,MACA,IAAS,UAAUF,IACnBI,MACA,IAAS,UAAUJ,IACnBG,MACA,IAAS,WAAWH,IACjBA;AACX;AACA,SAASO,EAAU,GAAK;CACpB,IAAIC,IAAO,OAAO,OAAO,IAAI;CAC7B,KAAK,IAAIC,KAAQC,GACb,EAAKb,EAAiBY,CAAI,KAAKC,EAAID;CACvC,OAAOD;AACX;AACA,SAASG,EAAU,GAAM,GAAO,IAAQ,IAAM;CAS1C,OARIC,EAAM,WACN,IAAO,SAASb,IAChBa,EAAM,YACN,IAAO,UAAUb,IACjBa,EAAM,YACN,IAAO,UAAUb,IACjBI,KAASS,EAAM,aACf,IAAO,WAAWb,IACfA;AACX;AAgCA,SAASc,EAAO,GAAU;CACtB,OAAO,IAAIC,EAAO,EAAE,OAAO,EAAE,eAAeC,EAAeC,CAAQ,EAAE,EAAE,CAAC;AAC5E;AAMA,SAASD,EAAe,GAAU;CAC9B,IAAIL,IAAMH,EAAUS,CAAQ;CAC5B,OAAO,SAAU,GAAM,GAAO;EAC1B,IAAIjB,IAAOkB,EAAQL,CAAK,GAAGM,GAAUC,IAAST,EAAIC,EAAUZ,GAAMa,CAAK;EACvE,IAAIO,KAAUA,EAAOC,EAAK,OAAOA,EAAK,UAAUA,CAAI,GAChD,OAAO;EAEX,IAAIrB,EAAK,UAAU,KAAKA,KAAQ,KAAK;GACjC,IAAIa,EAAM,UAAU;IAGhB,IAAIS,IAAUX,EAAIC,EAAUZ,GAAMa,GAAO,EAAK;IAC9C,IAAIS,KAAWA,EAAQD,EAAK,OAAOA,EAAK,UAAUA,CAAI,GAClD,OAAO;GACf;GACA,KAAKR,EAAM,UAAUA,EAAM,WAAWA,EAAM,YAExC,EAAEhB,KAAWgB,EAAM,WAAWA,EAAM,YACnC,IAAWU,EAAKV,EAAM,aAAaM,KAAYnB,GAAM;IAKtD,IAAIwB,IAAWb,EAAIC,EAAUO,GAAUN,CAAK;IAC5C,IAAIW,KAAYA,EAASH,EAAK,OAAOA,EAAK,UAAUA,CAAI,GACpD,OAAO;GACf;EACJ;EACA,OAAO;CACX;AACJ"}
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import e from "../../orderedmap/dist/index.js";
|
|
2
|
-
|
|
2
|
+
// node_modules/prosemirror-model/dist/index.js
|
|
3
3
|
function t(e, n, a) {
|
|
4
4
|
for (let o = 0;; o++) {
|
|
5
5
|
if (o == e.childCount || o == n.childCount) return e.childCount == n.childCount ? null : a;
|
|
6
6
|
let s = e.child(o), c = n.child(o);
|
|
7
|
-
if (s == c)
|
|
7
|
+
if (s == c) a += s.nodeSize;
|
|
8
|
+
else {
|
|
9
|
+
if (!s.sameMarkup(c)) return a;
|
|
10
|
+
if (s.isText && s.text != c.text) {
|
|
11
|
+
let e = s.text, t = c.text, n = 0;
|
|
12
|
+
for (; e[n] == t[n]; n++) a++;
|
|
13
|
+
return n && n < e.length && n < t.length && i(e.charCodeAt(n - 1)) && r(e.charCodeAt(n)) && a--, a;
|
|
14
|
+
}
|
|
15
|
+
if (s.content.size || c.content.size) {
|
|
16
|
+
let e = t(s.content, c.content, a + 1);
|
|
17
|
+
if (e != null) return e;
|
|
18
|
+
}
|
|
8
19
|
a += s.nodeSize;
|
|
9
|
-
continue;
|
|
10
|
-
}
|
|
11
|
-
if (!s.sameMarkup(c)) return a;
|
|
12
|
-
if (s.isText && s.text != c.text) {
|
|
13
|
-
let e = s.text, t = c.text, n = 0;
|
|
14
|
-
for (; e[n] == t[n]; n++) a++;
|
|
15
|
-
return n && n < e.length && n < t.length && i(e.charCodeAt(n - 1)) && r(e.charCodeAt(n)) && a--, a;
|
|
16
20
|
}
|
|
17
|
-
if (s.content.size || c.content.size) {
|
|
18
|
-
let e = t(s.content, c.content, a + 1);
|
|
19
|
-
if (e != null) return e;
|
|
20
|
-
}
|
|
21
|
-
a += s.nodeSize;
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
function n(e, t, a, o) {
|
|
@@ -28,27 +27,26 @@ function n(e, t, a, o) {
|
|
|
28
27
|
b: o
|
|
29
28
|
};
|
|
30
29
|
let l = e.child(--s), u = t.child(--c), d = l.nodeSize;
|
|
31
|
-
if (l == u)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
if (!l.sameMarkup(u)) return {
|
|
36
|
-
a,
|
|
37
|
-
b: o
|
|
38
|
-
};
|
|
39
|
-
if (l.isText && l.text != u.text) {
|
|
40
|
-
let e = l.text, t = u.text, n = e.length, s = t.length;
|
|
41
|
-
for (; n > 0 && s > 0 && e[n - 1] == t[s - 1];) n--, s--, a--, o--;
|
|
42
|
-
return n && s && n < e.length && i(e.charCodeAt(n - 1)) && r(e.charCodeAt(n)) && (a++, o++), {
|
|
30
|
+
if (l == u) a -= d, o -= d;
|
|
31
|
+
else {
|
|
32
|
+
if (!l.sameMarkup(u)) return {
|
|
43
33
|
a,
|
|
44
34
|
b: o
|
|
45
35
|
};
|
|
36
|
+
if (l.isText && l.text != u.text) {
|
|
37
|
+
let e = l.text, t = u.text, n = e.length, s = t.length;
|
|
38
|
+
for (; n > 0 && s > 0 && e[n - 1] == t[s - 1];) n--, s--, a--, o--;
|
|
39
|
+
return n && s && n < e.length && i(e.charCodeAt(n - 1)) && r(e.charCodeAt(n)) && (a++, o++), {
|
|
40
|
+
a,
|
|
41
|
+
b: o
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
if (l.content.size || u.content.size) {
|
|
45
|
+
let e = n(l.content, u.content, a - 1, o - 1);
|
|
46
|
+
if (e) return e;
|
|
47
|
+
}
|
|
48
|
+
a -= d, o -= d;
|
|
46
49
|
}
|
|
47
|
-
if (l.content.size || u.content.size) {
|
|
48
|
-
let e = n(l.content, u.content, a - 1, o - 1);
|
|
49
|
-
if (e) return e;
|
|
50
|
-
}
|
|
51
|
-
a -= d, o -= d;
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
52
|
function r(e) {
|
|
@@ -441,14 +439,14 @@ var S = class e {
|
|
|
441
439
|
n = r, r = e;
|
|
442
440
|
}
|
|
443
441
|
let i = n.marks;
|
|
444
|
-
for (var a = 0; a < i.length; a++) i[a].type.spec.inclusive
|
|
442
|
+
for (var a = 0; a < i.length; a++) i[a].type.spec.inclusive !== !1 || r && i[a].isInSet(r.marks) || (i = i[a--].removeFromSet(i));
|
|
445
443
|
return i;
|
|
446
444
|
}
|
|
447
445
|
marksAcross(e) {
|
|
448
446
|
let t = this.parent.maybeChild(this.index());
|
|
449
447
|
if (!t || !t.isInline) return null;
|
|
450
448
|
let n = t.marks, r = e.parent.maybeChild(e.index());
|
|
451
|
-
for (var i = 0; i < n.length; i++) n[i].type.spec.inclusive
|
|
449
|
+
for (var i = 0; i < n.length; i++) n[i].type.spec.inclusive !== !1 || r && n[i].isInSet(r.marks) || (n = n[i--].removeFromSet(n));
|
|
452
450
|
return n;
|
|
453
451
|
}
|
|
454
452
|
sharedDepth(e) {
|
|
@@ -817,7 +815,7 @@ var D = class e {
|
|
|
817
815
|
}
|
|
818
816
|
for (let e = 0; e < i.next.length; e++) {
|
|
819
817
|
let { type: a, next: o } = i.next[e];
|
|
820
|
-
|
|
818
|
+
a.isLeaf || a.hasRequiredAttrs() || a.name in t || r.type && !o.validEnd || (n.push({
|
|
821
819
|
match: a.contentMatch,
|
|
822
820
|
type: a,
|
|
823
821
|
via: r
|
|
@@ -1465,7 +1463,7 @@ var K = class {
|
|
|
1465
1463
|
e.nodeName == "BR" && this.top.type && this.top.type.inlineContent && this.addTextNode(e.ownerDocument.createTextNode("\n"), t);
|
|
1466
1464
|
}
|
|
1467
1465
|
ignoreFallback(e, t) {
|
|
1468
|
-
e.nodeName
|
|
1466
|
+
e.nodeName != "BR" || this.top.type && this.top.type.inlineContent || this.findPlace(this.parser.schema.text("-"), t, !0);
|
|
1469
1467
|
}
|
|
1470
1468
|
readStyles(e, t) {
|
|
1471
1469
|
let n = e.style;
|
|
@@ -1662,12 +1660,11 @@ var Ce = class e {
|
|
|
1662
1660
|
let n = 0, a = 0;
|
|
1663
1661
|
for (; n < i.length && a < e.marks.length;) {
|
|
1664
1662
|
let t = e.marks[a];
|
|
1665
|
-
if (!this.marks[t.type.name])
|
|
1666
|
-
|
|
1667
|
-
|
|
1663
|
+
if (!this.marks[t.type.name]) a++;
|
|
1664
|
+
else {
|
|
1665
|
+
if (!t.eq(i[n][0]) || t.type.spec.spanning === !1) break;
|
|
1666
|
+
n++, a++;
|
|
1668
1667
|
}
|
|
1669
|
-
if (!t.eq(i[n][0]) || t.type.spec.spanning === !1) break;
|
|
1670
|
-
n++, a++;
|
|
1671
1668
|
}
|
|
1672
1669
|
for (; n < i.length;) r = i.pop()[1];
|
|
1673
1670
|
for (; a < e.marks.length;) {
|
|
@@ -1780,7 +1777,6 @@ function $(e, t, n, r) {
|
|
|
1780
1777
|
contentDOM: s
|
|
1781
1778
|
};
|
|
1782
1779
|
}
|
|
1783
|
-
//#endregion
|
|
1784
1780
|
export { D as ContentMatch, ye as DOMParser, Ce as DOMSerializer, a as Fragment, l as Mark, R as MarkType, T as Node, w as NodeRange, I as NodeType, u as ReplaceError, S as ResolvedPos, ge as Schema, d as Slice };
|
|
1785
1781
|
|
|
1786
1782
|
//# sourceMappingURL=index.js.map
|