@burdenoff/microfe-support 2026.1029.3 → 2026.1031.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/generated/global-operations.js +1 -2
  2. package/dist/generated/global-operations.js.map +1 -1
  3. package/dist/generated/global-types.js +1 -2
  4. package/dist/generated/global-types.js.map +1 -1
  5. package/dist/node_modules/@tiptap/core/dist/index.js +701 -712
  6. package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
  7. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +1 -2
  8. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -1
  9. package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +1 -2
  10. package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js.map +1 -1
  11. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +15 -16
  12. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
  13. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +1 -2
  14. package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
  15. package/dist/node_modules/@tiptap/extension-code/dist/index.js +1 -2
  16. package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
  17. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +25 -26
  18. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
  19. package/dist/node_modules/@tiptap/extension-document/dist/index.js +1 -2
  20. package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
  21. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -2
  22. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
  23. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +1 -2
  24. package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
  25. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +16 -17
  26. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
  27. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +1 -2
  28. package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
  29. package/dist/node_modules/@tiptap/extension-link/dist/index.js +71 -80
  30. package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
  31. package/dist/node_modules/@tiptap/extension-list/dist/index.js +77 -90
  32. package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +1 -1
  33. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -2
  34. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
  35. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -2
  36. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
  37. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +1 -2
  38. package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
  39. package/dist/node_modules/@tiptap/extension-text/dist/index.js +1 -2
  40. package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
  41. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +1 -2
  42. package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -1
  43. package/dist/node_modules/@tiptap/extensions/dist/index.js +112 -113
  44. package/dist/node_modules/@tiptap/extensions/dist/index.js.map +1 -1
  45. package/dist/node_modules/@tiptap/react/dist/index.js +5 -10
  46. package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
  47. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +1 -2
  48. package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
  49. package/dist/node_modules/clsx/dist/clsx.js +1 -2
  50. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  51. package/dist/node_modules/dompurify/dist/purify.es.js +357 -347
  52. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  53. package/dist/node_modules/fast-equals/dist/es/index.js +1 -2
  54. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  55. package/dist/node_modules/linkifyjs/dist/linkify.js +1 -2
  56. package/dist/node_modules/linkifyjs/dist/linkify.js.map +1 -1
  57. package/dist/node_modules/marked/lib/marked.esm.js +10 -70
  58. package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
  59. package/dist/node_modules/orderedmap/dist/index.js +1 -2
  60. package/dist/node_modules/orderedmap/dist/index.js.map +1 -1
  61. package/dist/node_modules/prosemirror-commands/dist/index.js +107 -108
  62. package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -1
  63. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +12 -13
  64. package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
  65. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +42 -47
  66. package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -1
  67. package/dist/node_modules/prosemirror-history/dist/index.js +47 -49
  68. package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
  69. package/dist/node_modules/prosemirror-keymap/dist/index.js +15 -16
  70. package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -1
  71. package/dist/node_modules/prosemirror-model/dist/index.js +37 -41
  72. package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
  73. package/dist/node_modules/prosemirror-schema-list/dist/index.js +36 -37
  74. package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
  75. package/dist/node_modules/prosemirror-state/dist/index.js +1 -2
  76. package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -1
  77. package/dist/node_modules/prosemirror-transform/dist/index.js +1 -2
  78. package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
  79. package/dist/node_modules/prosemirror-view/dist/index.js +302 -304
  80. package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
  81. package/dist/node_modules/rope-sequence/dist/index.js +1 -2
  82. package/dist/node_modules/rope-sequence/dist/index.js.map +1 -1
  83. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
  84. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  85. package/dist/node_modules/w3c-keyname/index.js +0 -1
  86. package/dist/node_modules/w3c-keyname/index.js.map +1 -1
  87. package/dist/support/SupportAdminRoot.js +14 -15
  88. package/dist/support/SupportAdminRoot.js.map +1 -1
  89. package/dist/support/SupportAdminRoutes.js +5 -6
  90. package/dist/support/SupportAdminRoutes.js.map +1 -1
  91. package/dist/support/SupportUserRoot.js +10 -11
  92. package/dist/support/SupportUserRoot.js.map +1 -1
  93. package/dist/support/SupportUserRoutes.js +1 -2
  94. package/dist/support/SupportUserRoutes.js.map +1 -1
  95. package/dist/support/components/NotificationToast.js +1 -2
  96. package/dist/support/components/NotificationToast.js.map +1 -1
  97. package/dist/support/components/PageLayout.js +15 -16
  98. package/dist/support/components/PageLayout.js.map +1 -1
  99. package/dist/support/components/RouteHelpers.js +1 -2
  100. package/dist/support/components/RouteHelpers.js.map +1 -1
  101. package/dist/support/components/analytics/CategoryBreakdown.js +9 -10
  102. package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
  103. package/dist/support/components/analytics/MetricCard.js +1 -2
  104. package/dist/support/components/analytics/MetricCard.js.map +1 -1
  105. package/dist/support/components/analytics/PriorityBreakdown.js +9 -10
  106. package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
  107. package/dist/support/components/analytics/SLAReport.js +5 -6
  108. package/dist/support/components/analytics/SLAReport.js.map +1 -1
  109. package/dist/support/components/analytics/SatisfactionDistribution.js +5 -6
  110. package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
  111. package/dist/support/components/analytics/TopAgents.js +5 -6
  112. package/dist/support/components/analytics/TopAgents.js.map +1 -1
  113. package/dist/support/components/analytics/TrendChart.js +5 -6
  114. package/dist/support/components/analytics/TrendChart.js.map +1 -1
  115. package/dist/support/components/careers/BulkCandidateActionGuidance.js +1 -2
  116. package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -1
  117. package/dist/support/components/careers/BulkCandidateDialogs.js +321 -322
  118. package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -1
  119. package/dist/support/components/careers/BulkOperationFeedback.js +1 -2
  120. package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -1
  121. package/dist/support/components/careers/BulkSelectionSummary.js +1 -2
  122. package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -1
  123. package/dist/support/components/careers/JobApplicationFilterContextGuard.js +1 -2
  124. package/dist/support/components/careers/JobApplicationFilterContextGuard.js.map +1 -1
  125. package/dist/support/components/careers/RichTextEditor.js +17 -18
  126. package/dist/support/components/careers/RichTextEditor.js.map +1 -1
  127. package/dist/support/components/kb/ArticleForm.js +10 -11
  128. package/dist/support/components/kb/ArticleForm.js.map +1 -1
  129. package/dist/support/components/settings/CannedResponsesSettings.js +2 -3
  130. package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
  131. package/dist/support/components/settings/SLAPoliciesSettings.js +1 -2
  132. package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
  133. package/dist/support/components/settings/TicketCategoriesSettings.js +3 -8
  134. package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
  135. package/dist/support/components/tickets/AttachmentList.js +4 -5
  136. package/dist/support/components/tickets/AttachmentList.js.map +1 -1
  137. package/dist/support/components/tickets/MarkdownContent.js +1 -2
  138. package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
  139. package/dist/support/components/tickets/MessageComposer.js +1 -2
  140. package/dist/support/components/tickets/MessageComposer.js.map +1 -1
  141. package/dist/support/components/tickets/MessageThread.js +13 -14
  142. package/dist/support/components/tickets/MessageThread.js.map +1 -1
  143. package/dist/support/components/tickets/TicketDetailHeader.js +13 -14
  144. package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
  145. package/dist/support/components/tickets/TicketHeader.js +1 -2
  146. package/dist/support/components/tickets/TicketHeader.js.map +1 -1
  147. package/dist/support/components/tickets/TicketSidebar.js +6 -7
  148. package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
  149. package/dist/support/components/tickets/TriagePanel.js +25 -26
  150. package/dist/support/components/tickets/TriagePanel.js.map +1 -1
  151. package/dist/support/components/ui.js +1 -2
  152. package/dist/support/constants/pipeline.js +1 -2
  153. package/dist/support/constants/pipeline.js.map +1 -1
  154. package/dist/support/constants.js +1 -2
  155. package/dist/support/constants.js.map +1 -1
  156. package/dist/support/events/rybbit.js +1 -2
  157. package/dist/support/events/rybbit.js.map +1 -1
  158. package/dist/support/hooks/index.js +6 -6
  159. package/dist/support/hooks/useAnalyticsOperations.js +1 -2
  160. package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
  161. package/dist/support/hooks/useAttachmentsFailedToast.js +1 -2
  162. package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
  163. package/dist/support/hooks/useChatOperations.js +14 -15
  164. package/dist/support/hooks/useChatOperations.js.map +1 -1
  165. package/dist/support/hooks/useDebouncedUrlText.js +1 -2
  166. package/dist/support/hooks/useDebouncedUrlText.js.map +1 -1
  167. package/dist/support/hooks/useKnowledgeBaseOperations.js +62 -63
  168. package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
  169. package/dist/support/hooks/useNotification.js +1 -2
  170. package/dist/support/hooks/useNotification.js.map +1 -1
  171. package/dist/support/hooks/useRegisterFooter.js +1 -2
  172. package/dist/support/hooks/useRegisterFooter.js.map +1 -1
  173. package/dist/support/hooks/useSettingsOperations.js +1 -2
  174. package/dist/support/hooks/useSettingsOperations.js.map +1 -1
  175. package/dist/support/hooks/useSupportAttachments.js +1 -2
  176. package/dist/support/hooks/useSupportAttachments.js.map +1 -1
  177. package/dist/support/hooks/useTicketListOperations.js +9 -10
  178. package/dist/support/hooks/useTicketListOperations.js.map +1 -1
  179. package/dist/support/hooks/useTicketOperations.js +57 -58
  180. package/dist/support/hooks/useTicketOperations.js.map +1 -1
  181. package/dist/support/hooks/useTr.js +1 -2
  182. package/dist/support/hooks/useTr.js.map +1 -1
  183. package/dist/support/index.js +4 -4
  184. package/dist/support/pages/AnalyticsPage.js +34 -35
  185. package/dist/support/pages/AnalyticsPage.js.map +1 -1
  186. package/dist/support/pages/ArticleDetailAdminPage.js +33 -38
  187. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  188. package/dist/support/pages/ArticleDetailUserPage.js +22 -23
  189. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  190. package/dist/support/pages/ContactInquiriesPage.js +5 -6
  191. package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
  192. package/dist/support/pages/ContactInquiryDetailPage.js +13 -14
  193. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  194. package/dist/support/pages/CreateArticlePage.js +15 -16
  195. package/dist/support/pages/CreateArticlePage.js.map +1 -1
  196. package/dist/support/pages/CreateTicketPage.js +37 -44
  197. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  198. package/dist/support/pages/EditArticlePage.js +20 -21
  199. package/dist/support/pages/EditArticlePage.js.map +1 -1
  200. package/dist/support/pages/InterviewersPage.js +121 -122
  201. package/dist/support/pages/InterviewersPage.js.map +1 -1
  202. package/dist/support/pages/JobApplicationDetailPage.js +322 -332
  203. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  204. package/dist/support/pages/JobApplicationsPage.js +556 -561
  205. package/dist/support/pages/JobApplicationsPage.js.map +1 -1
  206. package/dist/support/pages/JobPostingDetailPage.js +489 -490
  207. package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
  208. package/dist/support/pages/JobPostingsPage.js +279 -280
  209. package/dist/support/pages/JobPostingsPage.js.map +1 -1
  210. package/dist/support/pages/KnowledgeBaseAdminPage.js +26 -27
  211. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
  212. package/dist/support/pages/KnowledgeBaseUserPage.js +23 -24
  213. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  214. package/dist/support/pages/SettingsPage.js +43 -44
  215. package/dist/support/pages/SettingsPage.js.map +1 -1
  216. package/dist/support/pages/TicketDetailAdminPage.js +54 -55
  217. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
  218. package/dist/support/pages/TicketDetailUserPage.js +61 -62
  219. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  220. package/dist/support/pages/TicketListPage.js +77 -78
  221. package/dist/support/pages/TicketListPage.js.map +1 -1
  222. package/dist/support/providers/SupportProvider.js +1 -2
  223. package/dist/support/providers/SupportProvider.js.map +1 -1
  224. package/dist/support/store/supportStore.js +1 -2
  225. package/dist/support/store/supportStore.js.map +1 -1
  226. package/dist/support/translations/en.js +1 -2
  227. package/dist/support/translations/en.js.map +1 -1
  228. package/dist/support/utils/attachments.js +1 -2
  229. package/dist/support/utils/attachments.js.map +1 -1
  230. package/dist/support/utils/breadcrumbRegistry.js +3 -4
  231. package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
  232. package/dist/support/utils/bulkCandidateOperations.js +0 -1
  233. package/dist/support/utils/bulkCandidateOperations.js.map +1 -1
  234. package/dist/support/utils/bulkCandidateTargetQuery.js +1 -2
  235. package/dist/support/utils/bulkCandidateTargetQuery.js.map +1 -1
  236. package/dist/support/utils/categoryColors.js +1 -2
  237. package/dist/support/utils/categoryColors.js.map +1 -1
  238. package/dist/support/utils/cn.js +1 -2
  239. package/dist/support/utils/cn.js.map +1 -1
  240. package/dist/support/utils/context.js +3 -4
  241. package/dist/support/utils/context.js.map +1 -1
  242. package/dist/support/utils/errors.js +1 -2
  243. package/dist/support/utils/errors.js.map +1 -1
  244. package/dist/support/utils/i18n.js +1 -2
  245. package/dist/support/utils/i18n.js.map +1 -1
  246. package/dist/support/utils/index.js +1 -2
  247. package/dist/support/utils/index.js.map +1 -1
  248. package/dist/support/utils/jobApplicationFilterParams.js +1 -2
  249. package/dist/support/utils/jobApplicationFilterParams.js.map +1 -1
  250. package/dist/support/utils/markdown.js +1 -2
  251. package/dist/support/utils/markdown.js.map +1 -1
  252. package/dist/support/utils/supportFiles.js +2 -11
  253. package/dist/support/utils/supportFiles.js.map +1 -1
  254. package/dist/support/utils/ticketFilters.js +1 -2
  255. package/dist/support/utils/ticketFilters.js.map +1 -1
  256. package/dist/support/utils/uiTokens.js +1 -2
  257. package/dist/support/utils/uiTokens.js.map +1 -1
  258. package/dist/utils/nativeBridge.js +1 -2
  259. package/package.json +21 -14
@@ -1,6 +1,6 @@
1
- import { Plugin as e } from "../../prosemirror-state/dist/index.js";
2
- import { base as t, keyName as n } from "../../w3c-keyname/index.js";
3
- //#region node_modules/prosemirror-keymap/dist/index.js
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(t) {
29
- return new e({ props: { handleKeyDown: l(t) } });
28
+ function c(e) {
29
+ return new n({ props: { handleKeyDown: l(e) } });
30
30
  }
31
- function l(e) {
32
- let r = o(e);
33
- return function(e, a) {
34
- let o = n(a), c, l = r[s(o, a)];
35
- if (l && l(e.state, e.dispatch, e)) return !0;
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 t = r[s(o, a, !1)];
39
- if (t && t(e.state, e.dispatch, e)) return !0;
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 = t[a.keyCode]) && c != o) {
42
- let t = r[s(c, a)];
43
- if (t && t(e.state, e.dispatch, e)) return !0;
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"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAM,IAAM,OAAO,YAAa,OAAe,qBAAqB,KAAK,UAAU,QAAQ,GACrF,IAAU,OAAO,YAAa,OAAe,MAAM,KAAK,UAAU,QAAQ;AAChF,SAAS,EAAiB,GAAM;CAC5B,IAAI,IAAQ,EAAK,MAAM,QAAQ,GAAG,IAAS,EAAM,EAAM,SAAS;CAChE,AAAI,KAAU,YACV,IAAS;CACb,IAAI,GAAK,GAAM,GAAO;CACtB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAM,SAAS,GAAG,KAAK;EACvC,IAAI,IAAM,EAAM;EAChB,IAAI,kBAAkB,KAAK,CAAG,GAC1B,IAAO;OACN,IAAI,YAAY,KAAK,CAAG,GACzB,IAAM;OACL,IAAI,sBAAsB,KAAK,CAAG,GACnC,IAAO;OACN,IAAI,cAAc,KAAK,CAAG,GAC3B,IAAQ;OACP,IAAI,SAAS,KAAK,CAAG,GACtB,AAAI,IACA,IAAO,KAEP,IAAO;OAGX,MAAU,MAAM,iCAAiC,CAAG;CAC5D;CASA,OARI,MACA,IAAS,SAAS,IAClB,MACA,IAAS,UAAU,IACnB,MACA,IAAS,UAAU,IACnB,MACA,IAAS,WAAW,IACjB;AACX;AACA,SAAS,EAAU,GAAK;CACpB,IAAI,IAAO,OAAO,OAAO,IAAI;CAC7B,KAAK,IAAI,KAAQ,GACb,EAAK,EAAiB,CAAI,KAAK,EAAI;CACvC,OAAO;AACX;AACA,SAAS,EAAU,GAAM,GAAO,IAAQ,IAAM;CAS1C,OARI,EAAM,WACN,IAAO,SAAS,IAChB,EAAM,YACN,IAAO,UAAU,IACjB,EAAM,YACN,IAAO,UAAU,IACjB,KAAS,EAAM,aACf,IAAO,WAAW,IACf;AACX;AAgCA,SAAS,EAAO,GAAU;CACtB,OAAO,IAAI,EAAO,EAAE,OAAO,EAAE,eAAe,EAAe,CAAQ,EAAE,EAAE,CAAC;AAC5E;AAMA,SAAS,EAAe,GAAU;CAC9B,IAAI,IAAM,EAAU,CAAQ;CAC5B,OAAO,SAAU,GAAM,GAAO;EAC1B,IAAI,IAAO,EAAQ,CAAK,GAAG,GAAU,IAAS,EAAI,EAAU,GAAM,CAAK;EACvE,IAAI,KAAU,EAAO,EAAK,OAAO,EAAK,UAAU,CAAI,GAChD,OAAO;EAEX,IAAI,EAAK,UAAU,KAAK,KAAQ,KAAK;GACjC,IAAI,EAAM,UAAU;IAGhB,IAAI,IAAU,EAAI,EAAU,GAAM,GAAO,EAAK;IAC9C,IAAI,KAAW,EAAQ,EAAK,OAAO,EAAK,UAAU,CAAI,GAClD,OAAO;GACf;GACA,KAAK,EAAM,UAAU,EAAM,WAAW,EAAM,YAExC,EAAE,KAAW,EAAM,WAAW,EAAM,YACnC,IAAW,EAAK,EAAM,aAAa,KAAY,GAAM;IAKtD,IAAI,IAAW,EAAI,EAAU,GAAU,CAAK;IAC5C,IAAI,KAAY,EAAS,EAAK,OAAO,EAAK,UAAU,CAAI,GACpD,OAAO;GACf;EACJ;EACA,OAAO;CACX;AACJ"}
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
- //#region node_modules/prosemirror-model/dist/index.js
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
- a -= d, o -= d;
33
- continue;
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 === !1 && (!r || !i[a].isInSet(r.marks)) && (i = i[a--].removeFromSet(i));
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 === !1 && (!r || !n[i].isInSet(r.marks)) && (n = n[i--].removeFromSet(n));
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
- !a.isLeaf && !a.hasRequiredAttrs() && !(a.name in t) && (!r.type || o.validEnd) && (n.push({
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 == "BR" && (!this.top.type || !this.top.type.inlineContent) && this.findPlace(this.parser.schema.text("-"), t, !0);
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
- a++;
1667
- continue;
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