@iblai/web-containers 1.73.0 → 1.74.0

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 (281) hide show
  1. package/dist/cjs/_virtual/index2.js +2 -2
  2. package/dist/cjs/_virtual/index3.js +2 -2
  3. package/dist/cjs/components/activity-tab/activity-empty-state.js +2 -2
  4. package/dist/cjs/components/activity-tab/activity-empty-state.js.map +1 -1
  5. package/dist/cjs/components/canvas/canvas-rich-text-editor.js +8 -8
  6. package/dist/cjs/components/canvas/tiptap-math-extension.js +1 -1
  7. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js +2 -2
  8. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js.map +1 -1
  9. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js +5 -5
  10. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js.map +1 -1
  11. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js +7 -6
  12. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js.map +1 -1
  13. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js +50 -42
  14. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js.map +1 -1
  15. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/index.js +64 -33
  16. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/index.js.map +1 -1
  17. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/labels.js +68 -46
  18. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/labels.js.map +1 -1
  19. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js +13 -6
  20. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js.map +1 -1
  21. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js +16 -7
  22. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js.map +1 -1
  23. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/utils.js +14 -0
  24. package/dist/cjs/components/modals/edit-mentor-modal/tabs/evaluation-tab/utils.js.map +1 -1
  25. package/dist/cjs/components/modals/edit-mentor-modal/tabs/human-support-tab/use-support-tickets-with-pagination.js +1 -1
  26. package/dist/cjs/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
  27. package/dist/cjs/components/modals/edit-mentor-modal/tabs/tasks-tab/tasks-tab-content.js +1 -1
  28. package/dist/cjs/components/modals/edit-mentor-modal/tabs/tasks-tab/tasks-tab-toolbar.js +1 -1
  29. package/dist/cjs/components/modals/edit-mentor-modal/tabs/tasks-tab.js +1 -1
  30. package/dist/cjs/components/modals/user-profile-modal.js +1 -1
  31. package/dist/cjs/components/platform-sidebar/index.js +2 -0
  32. package/dist/cjs/components/platform-sidebar/index.js.map +1 -1
  33. package/dist/cjs/components/profile/benchmarks/add-items-modal.js +25 -90
  34. package/dist/cjs/components/profile/benchmarks/add-items-modal.js.map +1 -1
  35. package/dist/cjs/components/profile/benchmarks/benchmark-items-modal.js +27 -6
  36. package/dist/cjs/components/profile/benchmarks/benchmark-items-modal.js.map +1 -1
  37. package/dist/cjs/components/profile/benchmarks/create-benchmark-modal.js +164 -18
  38. package/dist/cjs/components/profile/benchmarks/create-benchmark-modal.js.map +1 -1
  39. package/dist/cjs/components/profile/benchmarks/delete-item-confirm.js +9 -8
  40. package/dist/cjs/components/profile/benchmarks/delete-item-confirm.js.map +1 -1
  41. package/dist/cjs/components/profile/benchmarks/evals-ui.js +43 -0
  42. package/dist/cjs/components/profile/benchmarks/evals-ui.js.map +1 -0
  43. package/dist/cjs/components/profile/benchmarks/index.js +29 -10
  44. package/dist/cjs/components/profile/benchmarks/index.js.map +1 -1
  45. package/dist/cjs/components/profile/benchmarks/qa-form.js +236 -0
  46. package/dist/cjs/components/profile/benchmarks/qa-form.js.map +1 -0
  47. package/dist/cjs/components/rich-text-editor.js +33 -12
  48. package/dist/cjs/components/rich-text-editor.js.map +1 -1
  49. package/dist/cjs/components/summernote-text-editor.js +1 -1
  50. package/dist/cjs/components/workflows/workflow-editor.js +28 -8
  51. package/dist/cjs/components/workflows/workflow-editor.js.map +1 -1
  52. package/dist/cjs/i18n/messages/en.json.js +100 -74
  53. package/dist/cjs/i18n/messages/en.json.js.map +1 -1
  54. package/dist/cjs/i18n/messages/es.json.js +81 -55
  55. package/dist/cjs/i18n/messages/es.json.js.map +1 -1
  56. package/dist/cjs/i18n/messages/fr.json.js +82 -56
  57. package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
  58. package/dist/cjs/i18n/messages/zh.json.js +71 -45
  59. package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
  60. package/dist/cjs/index.js +1 -1
  61. package/dist/cjs/lib/sanitize-html.js +1 -1
  62. package/dist/cjs/lib/utils.js +1 -1
  63. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js +6650 -0
  64. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js.map +1 -0
  65. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +59 -0
  66. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -0
  67. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +16 -0
  68. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js.map +1 -0
  69. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-blockquote@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-blockquote@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-blockquote/dist/index.js +2 -2
  70. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-blockquote@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-blockquote@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
  71. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-bold@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-bold@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-bold/dist/index.js +2 -2
  72. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-bold@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-bold@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
  73. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-code-block@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-code-block@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-code-block/dist/index.js +1 -1
  74. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-code-block@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-code-block@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
  75. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-code@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-code@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-code/dist/index.js +1 -1
  76. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-code@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-code@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
  77. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-document@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-document@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-document/dist/index.js +1 -1
  78. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-document@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-document@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
  79. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-hard-break@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-hard-break@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -1
  80. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-hard-break@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-hard-break@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
  81. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-heading@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-heading@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-heading/dist/index.js +1 -1
  82. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-heading@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-heading@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
  83. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-horizontal-rule@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-horizontal-rule@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +1 -1
  84. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-horizontal-rule@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-horizontal-rule@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
  85. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-image@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-image@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-image/dist/index.js +1 -1
  86. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-image@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-image@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-image/dist/index.js.map +1 -1
  87. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-italic@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-italic@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-italic/dist/index.js +1 -1
  88. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-italic@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-italic@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
  89. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-link@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-link@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-link/dist/index.js +1 -1
  90. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-link@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-link@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
  91. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-list@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-list@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-list/dist/index.js +1 -1
  92. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-list@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-list@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-list/dist/index.js.map +1 -1
  93. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-paragraph@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-paragraph@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -1
  94. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-paragraph@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-paragraph@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
  95. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-placeholder@3.20.4_@tiptap_extensions@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4_ → @tiptap_extension-placeholder@3.20.4_@tiptap_extensions@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -1
  96. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-placeholder@3.20.4_@tiptap_extensions@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4_ → @tiptap_extension-placeholder@3.20.4_@tiptap_extensions@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
  97. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-strike@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-strike@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-strike/dist/index.js +1 -1
  98. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-strike@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-strike@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
  99. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-table-cell@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4__e5a3c3ff8b554aab527bcd6db879f930 → @tiptap_extension-table-cell@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34.0__9df690ad40c269aaedbdba7ccdf2b3c5}/node_modules/@tiptap/extension-table-cell/dist/index.js +1 -1
  100. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-table-cell@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4__e5a3c3ff8b554aab527bcd6db879f930 → @tiptap_extension-table-cell@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34.0__9df690ad40c269aaedbdba7ccdf2b3c5}/node_modules/@tiptap/extension-table-cell/dist/index.js.map +1 -1
  101. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-table-header@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20._c6a57e4e630f72502685143ac4e5ec96 → @tiptap_extension-table-header@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34._e738836bb39716a2c7e36c23583c8027}/node_modules/@tiptap/extension-table-header/dist/index.js +1 -1
  102. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-table-header@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20._c6a57e4e630f72502685143ac4e5ec96 → @tiptap_extension-table-header@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34._e738836bb39716a2c7e36c23583c8027}/node_modules/@tiptap/extension-table-header/dist/index.js.map +1 -1
  103. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-table-row@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4_@_65ee6090c5cc8114f0f28fc8fa71a1d1 → @tiptap_extension-table-row@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34.0_@_5ee469de7f353d0b0b7ac18cdf819cfe}/node_modules/@tiptap/extension-table-row/dist/index.js +1 -1
  104. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-table-row@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4_@_65ee6090c5cc8114f0f28fc8fa71a1d1 → @tiptap_extension-table-row@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34.0_@_5ee469de7f353d0b0b7ac18cdf819cfe}/node_modules/@tiptap/extension-table-row/dist/index.js.map +1 -1
  105. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-table@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-table/dist/index.js +1 -1
  106. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-table@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-table/dist/index.js.map +1 -1
  107. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-text-align@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text-align@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text-align/dist/index.js +1 -1
  108. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-text-align@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text-align@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text-align/dist/index.js.map +1 -1
  109. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-text-style@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text-style@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text-style/dist/index.js +1 -1
  110. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-text-style@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text-style@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text-style/dist/index.js.map +1 -1
  111. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-text@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text/dist/index.js +1 -1
  112. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-text@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
  113. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-underline@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-underline@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-underline/dist/index.js +1 -1
  114. package/dist/cjs/node_modules/.pnpm/{@tiptap_extension-underline@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-underline@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -1
  115. package/dist/cjs/node_modules/.pnpm/{@tiptap_extensions@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extensions@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extensions/dist/index.js +1 -1
  116. package/dist/cjs/node_modules/.pnpm/{@tiptap_extensions@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extensions@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extensions/dist/index.js.map +1 -1
  117. package/dist/cjs/node_modules/.pnpm/{@tiptap_react@3.14.0_@floating-ui_dom@1.7.6_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tip_17d91a0ec98b7b4802004f8a5d3f7d72 → @tiptap_react@3.14.0_@floating-ui_dom@1.7.6_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tip_3f15bb542eb86077efc89f6845872e48}/node_modules/@tiptap/react/dist/index.js +5 -8
  118. package/dist/cjs/node_modules/.pnpm/{@tiptap_react@3.14.0_@floating-ui_dom@1.7.6_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tip_17d91a0ec98b7b4802004f8a5d3f7d72 → @tiptap_react@3.14.0_@floating-ui_dom@1.7.6_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tip_3f15bb542eb86077efc89f6845872e48}/node_modules/@tiptap/react/dist/index.js.map +1 -1
  119. package/dist/cjs/node_modules/.pnpm/@tiptap_starter-kit@3.14.0/node_modules/@tiptap/starter-kit/dist/index.js +17 -17
  120. package/dist/cjs/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
  121. package/dist/cjs/node_modules/.pnpm/dompurify@3.4.18/node_modules/dompurify/dist/purify.es.js +2403 -0
  122. package/dist/cjs/node_modules/.pnpm/dompurify@3.4.18/node_modules/dompurify/dist/purify.es.js.map +1 -0
  123. package/dist/cjs/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
  124. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  125. package/dist/cjs/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.js +47 -47
  126. package/dist/cjs/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.js.map +1 -1
  127. package/dist/cjs/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.js +9 -0
  128. package/dist/cjs/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.js.map +1 -1
  129. package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
  130. package/dist/esm/_virtual/index2.js +2 -2
  131. package/dist/esm/_virtual/index3.js +2 -2
  132. package/dist/esm/components/activity-tab/activity-empty-state.js +2 -2
  133. package/dist/esm/components/activity-tab/activity-empty-state.js.map +1 -1
  134. package/dist/esm/components/canvas/canvas-rich-text-editor.js +8 -8
  135. package/dist/esm/components/canvas/tiptap-math-extension.js +3 -3
  136. package/dist/esm/components/canvas/tiptap-math-extension.js.map +1 -1
  137. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js +2 -2
  138. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js.map +1 -1
  139. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js +6 -6
  140. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js.map +1 -1
  141. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js +7 -6
  142. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js.map +1 -1
  143. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js +51 -43
  144. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js.map +1 -1
  145. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/index.js +68 -37
  146. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/index.js.map +1 -1
  147. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/labels.js +68 -46
  148. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/labels.js.map +1 -1
  149. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js +13 -6
  150. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js.map +1 -1
  151. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js +16 -7
  152. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js.map +1 -1
  153. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/utils.js +14 -1
  154. package/dist/esm/components/modals/edit-mentor-modal/tabs/evaluation-tab/utils.js.map +1 -1
  155. package/dist/esm/components/modals/edit-mentor-modal/tabs/human-support-tab/use-support-tickets-with-pagination.js +1 -1
  156. package/dist/esm/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
  157. package/dist/esm/components/modals/edit-mentor-modal/tabs/tasks-tab/tasks-tab-content.js +1 -1
  158. package/dist/esm/components/modals/edit-mentor-modal/tabs/tasks-tab/tasks-tab-toolbar.js +1 -1
  159. package/dist/esm/components/modals/edit-mentor-modal/tabs/tasks-tab.js +1 -1
  160. package/dist/esm/components/modals/user-profile-modal.js +1 -1
  161. package/dist/esm/components/platform-sidebar/index.js +2 -0
  162. package/dist/esm/components/platform-sidebar/index.js.map +1 -1
  163. package/dist/esm/components/profile/benchmarks/add-items-modal.js +26 -91
  164. package/dist/esm/components/profile/benchmarks/add-items-modal.js.map +1 -1
  165. package/dist/esm/components/profile/benchmarks/benchmark-items-modal.js +28 -7
  166. package/dist/esm/components/profile/benchmarks/benchmark-items-modal.js.map +1 -1
  167. package/dist/esm/components/profile/benchmarks/create-benchmark-modal.js +166 -20
  168. package/dist/esm/components/profile/benchmarks/create-benchmark-modal.js.map +1 -1
  169. package/dist/esm/components/profile/benchmarks/delete-item-confirm.js +10 -9
  170. package/dist/esm/components/profile/benchmarks/delete-item-confirm.js.map +1 -1
  171. package/dist/esm/components/profile/benchmarks/evals-ui.js +39 -0
  172. package/dist/esm/components/profile/benchmarks/evals-ui.js.map +1 -0
  173. package/dist/esm/components/profile/benchmarks/index.js +30 -11
  174. package/dist/esm/components/profile/benchmarks/index.js.map +1 -1
  175. package/dist/esm/components/profile/benchmarks/qa-form.js +233 -0
  176. package/dist/esm/components/profile/benchmarks/qa-form.js.map +1 -0
  177. package/dist/esm/components/rich-text-editor.js +37 -16
  178. package/dist/esm/components/rich-text-editor.js.map +1 -1
  179. package/dist/esm/components/summernote-text-editor.js +2 -2
  180. package/dist/esm/components/summernote-text-editor.js.map +1 -1
  181. package/dist/esm/components/workflows/workflow-editor.js +28 -8
  182. package/dist/esm/components/workflows/workflow-editor.js.map +1 -1
  183. package/dist/esm/i18n/messages/en.json.js +100 -74
  184. package/dist/esm/i18n/messages/en.json.js.map +1 -1
  185. package/dist/esm/i18n/messages/es.json.js +81 -55
  186. package/dist/esm/i18n/messages/es.json.js.map +1 -1
  187. package/dist/esm/i18n/messages/fr.json.js +82 -56
  188. package/dist/esm/i18n/messages/fr.json.js.map +1 -1
  189. package/dist/esm/i18n/messages/zh.json.js +71 -45
  190. package/dist/esm/i18n/messages/zh.json.js.map +1 -1
  191. package/dist/esm/index.js +1 -1
  192. package/dist/esm/lib/sanitize-html.js +2 -2
  193. package/dist/esm/lib/sanitize-html.js.map +1 -1
  194. package/dist/esm/lib/utils.js +1 -1
  195. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js +6554 -0
  196. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js.map +1 -0
  197. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +55 -0
  198. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -0
  199. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +14 -0
  200. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js.map +1 -0
  201. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-blockquote@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-blockquote@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-blockquote/dist/index.js +3 -3
  202. package/dist/esm/node_modules/.pnpm/@tiptap_extension-blockquote@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -0
  203. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-bold@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-bold@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-bold/dist/index.js +2 -2
  204. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-bold@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-bold@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
  205. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-code-block@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-code-block@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-code-block/dist/index.js +2 -2
  206. package/dist/esm/node_modules/.pnpm/@tiptap_extension-code-block@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -0
  207. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-code@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-code@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-code/dist/index.js +1 -1
  208. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-code@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-code@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
  209. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-document@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-document@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-document/dist/index.js +2 -2
  210. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-document@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-document@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
  211. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-hard-break@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-hard-break@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-hard-break/dist/index.js +2 -2
  212. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-hard-break@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-hard-break@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
  213. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-heading@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-heading@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-heading/dist/index.js +2 -2
  214. package/dist/esm/node_modules/.pnpm/@tiptap_extension-heading@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -0
  215. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-horizontal-rule@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-horizontal-rule@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +2 -2
  216. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-horizontal-rule@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-horizontal-rule@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
  217. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-image@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-image@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-image/dist/index.js +2 -2
  218. package/dist/esm/node_modules/.pnpm/@tiptap_extension-image@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_/node_modules/@tiptap/extension-image/dist/index.js.map +1 -0
  219. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-italic@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-italic@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-italic/dist/index.js +1 -1
  220. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-italic@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-italic@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
  221. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-link@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-link@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-link/dist/index.js +1 -1
  222. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-link@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-link@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
  223. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-list@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-list@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-list/dist/index.js +6 -6
  224. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-list@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-list@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-list/dist/index.js.map +1 -1
  225. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-paragraph@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-paragraph@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-paragraph/dist/index.js +2 -2
  226. package/dist/esm/node_modules/.pnpm/@tiptap_extension-paragraph@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -0
  227. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-placeholder@3.20.4_@tiptap_extensions@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4_ → @tiptap_extension-placeholder@3.20.4_@tiptap_extensions@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -1
  228. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-placeholder@3.20.4_@tiptap_extensions@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4_ → @tiptap_extension-placeholder@3.20.4_@tiptap_extensions@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
  229. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-strike@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-strike@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-strike/dist/index.js +1 -1
  230. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-strike@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-strike@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
  231. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-table-cell@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4__e5a3c3ff8b554aab527bcd6db879f930 → @tiptap_extension-table-cell@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34.0__9df690ad40c269aaedbdba7ccdf2b3c5}/node_modules/@tiptap/extension-table-cell/dist/index.js +1 -1
  232. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-table-cell@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4__e5a3c3ff8b554aab527bcd6db879f930 → @tiptap_extension-table-cell@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34.0__9df690ad40c269aaedbdba7ccdf2b3c5}/node_modules/@tiptap/extension-table-cell/dist/index.js.map +1 -1
  233. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-table-header@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20._c6a57e4e630f72502685143ac4e5ec96 → @tiptap_extension-table-header@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34._e738836bb39716a2c7e36c23583c8027}/node_modules/@tiptap/extension-table-header/dist/index.js +1 -1
  234. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-table-header@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20._c6a57e4e630f72502685143ac4e5ec96 → @tiptap_extension-table-header@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34._e738836bb39716a2c7e36c23583c8027}/node_modules/@tiptap/extension-table-header/dist/index.js.map +1 -1
  235. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-table-row@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4_@_65ee6090c5cc8114f0f28fc8fa71a1d1 → @tiptap_extension-table-row@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34.0_@_5ee469de7f353d0b0b7ac18cdf819cfe}/node_modules/@tiptap/extension-table-row/dist/index.js +1 -1
  236. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-table-row@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4_@_65ee6090c5cc8114f0f28fc8fa71a1d1 → @tiptap_extension-table-row@3.20.4_@tiptap_extension-table@3.20.4_@tiptap_core@3.34.0_@_5ee469de7f353d0b0b7ac18cdf819cfe}/node_modules/@tiptap/extension-table-row/dist/index.js.map +1 -1
  237. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-table@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-table/dist/index.js +5 -5
  238. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-table@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extension-table@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extension-table/dist/index.js.map +1 -1
  239. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-text-align@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text-align@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text-align/dist/index.js +1 -1
  240. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-text-align@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text-align@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text-align/dist/index.js.map +1 -1
  241. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-text-style@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text-style@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text-style/dist/index.js +1 -1
  242. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-text-style@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text-style@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text-style/dist/index.js.map +1 -1
  243. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-text@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text/dist/index.js +2 -2
  244. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-text@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-text@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
  245. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-underline@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-underline@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-underline/dist/index.js +1 -1
  246. package/dist/esm/node_modules/.pnpm/{@tiptap_extension-underline@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_ → @tiptap_extension-underline@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4_}/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -1
  247. package/dist/esm/node_modules/.pnpm/{@tiptap_extensions@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extensions@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extensions/dist/index.js +1 -1
  248. package/dist/esm/node_modules/.pnpm/{@tiptap_extensions@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4 → @tiptap_extensions@3.20.4_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4}/node_modules/@tiptap/extensions/dist/index.js.map +1 -1
  249. package/dist/esm/node_modules/.pnpm/{@tiptap_react@3.14.0_@floating-ui_dom@1.7.6_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tip_17d91a0ec98b7b4802004f8a5d3f7d72 → @tiptap_react@3.14.0_@floating-ui_dom@1.7.6_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tip_3f15bb542eb86077efc89f6845872e48}/node_modules/@tiptap/react/dist/index.js +2 -2
  250. package/dist/esm/node_modules/.pnpm/{@tiptap_react@3.14.0_@floating-ui_dom@1.7.6_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tip_17d91a0ec98b7b4802004f8a5d3f7d72 → @tiptap_react@3.14.0_@floating-ui_dom@1.7.6_@tiptap_core@3.34.0_@tiptap_pm@3.20.4__@tip_3f15bb542eb86077efc89f6845872e48}/node_modules/@tiptap/react/dist/index.js.map +1 -1
  251. package/dist/esm/node_modules/.pnpm/@tiptap_starter-kit@3.14.0/node_modules/@tiptap/starter-kit/dist/index.js +17 -17
  252. package/dist/esm/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
  253. package/dist/esm/node_modules/.pnpm/dompurify@3.4.18/node_modules/dompurify/dist/purify.es.js +2401 -0
  254. package/dist/esm/node_modules/.pnpm/dompurify@3.4.18/node_modules/dompurify/dist/purify.es.js.map +1 -0
  255. package/dist/esm/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
  256. package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  257. package/dist/esm/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.js +2 -2
  258. package/dist/esm/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.js +9 -1
  259. package/dist/esm/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.js.map +1 -1
  260. package/dist/esm/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.js +1 -1
  261. package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
  262. package/dist/next/index.d.ts +26 -11
  263. package/dist/package.json +1 -1
  264. package/package.json +4 -4
  265. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js +0 -6229
  266. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js.map +0 -1
  267. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -23
  268. package/dist/cjs/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
  269. package/dist/cjs/node_modules/.pnpm/dompurify@3.4.11/node_modules/dompurify/dist/purify.es.js +0 -2251
  270. package/dist/cjs/node_modules/.pnpm/dompurify@3.4.11/node_modules/dompurify/dist/purify.es.js.map +0 -1
  271. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js +0 -6130
  272. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js.map +0 -1
  273. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -17
  274. package/dist/esm/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
  275. package/dist/esm/node_modules/.pnpm/@tiptap_extension-blockquote@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_/node_modules/@tiptap/extension-blockquote/dist/index.js.map +0 -1
  276. package/dist/esm/node_modules/.pnpm/@tiptap_extension-code-block@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4__@tiptap_pm@3.20.4/node_modules/@tiptap/extension-code-block/dist/index.js.map +0 -1
  277. package/dist/esm/node_modules/.pnpm/@tiptap_extension-heading@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_/node_modules/@tiptap/extension-heading/dist/index.js.map +0 -1
  278. package/dist/esm/node_modules/.pnpm/@tiptap_extension-image@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_/node_modules/@tiptap/extension-image/dist/index.js.map +0 -1
  279. package/dist/esm/node_modules/.pnpm/@tiptap_extension-paragraph@3.20.4_@tiptap_core@3.20.4_@tiptap_pm@3.20.4_/node_modules/@tiptap/extension-paragraph/dist/index.js.map +0 -1
  280. package/dist/esm/node_modules/.pnpm/dompurify@3.4.11/node_modules/dompurify/dist/purify.es.js +0 -2249
  281. package/dist/esm/node_modules/.pnpm/dompurify@3.4.11/node_modules/dompurify/dist/purify.es.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index$1 = require('../../../../prosemirror-transform@1.11.0/node_modules/prosemirror-transform/dist/index.js');
3
+ var index = require('../../../../prosemirror-transform@1.11.0/node_modules/prosemirror-transform/dist/index.js');
4
4
  var index$2 = require('../../../../prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.js');
5
- var index = require('../../../../prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.js');
5
+ var index$1 = require('../../../../prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.js');
6
6
 
7
7
  /**
8
8
  Delete the selection, if there is one.
@@ -37,7 +37,7 @@ const joinBackward = (state, dispatch, view) => {
37
37
  let $cut = findCutBefore($cursor);
38
38
  // If there is no node before this, try to lift
39
39
  if (!$cut) {
40
- let range = $cursor.blockRange(), target = range && index$1.liftTarget(range);
40
+ let range = $cursor.blockRange(), target = range && index.liftTarget(range);
41
41
  if (target == null)
42
42
  return false;
43
43
  if (dispatch)
@@ -51,15 +51,15 @@ const joinBackward = (state, dispatch, view) => {
51
51
  // If the node below has no content and the node above is
52
52
  // selectable, delete the node below and select the one above.
53
53
  if ($cursor.parent.content.size == 0 &&
54
- (textblockAt(before, "end") || index.NodeSelection.isSelectable(before))) {
54
+ (textblockAt(before, "end") || index$1.NodeSelection.isSelectable(before))) {
55
55
  for (let depth = $cursor.depth;; depth--) {
56
- let delStep = index$1.replaceStep(state.doc, $cursor.before(depth), $cursor.after(depth), index$2.Slice.empty);
56
+ let delStep = index.replaceStep(state.doc, $cursor.before(depth), $cursor.after(depth), index$2.Slice.empty);
57
57
  if (delStep && delStep.slice.size < delStep.to - delStep.from) {
58
58
  if (dispatch) {
59
59
  let tr = state.tr.step(delStep);
60
60
  tr.setSelection(textblockAt(before, "end")
61
- ? index.Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos, -1)), -1)
62
- : index.NodeSelection.create(tr.doc, $cut.pos - before.nodeSize));
61
+ ? index$1.Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos, -1)), -1)
62
+ : index$1.NodeSelection.create(tr.doc, $cut.pos - before.nodeSize));
63
63
  dispatch(tr.scrollIntoView());
64
64
  }
65
65
  return true;
@@ -119,13 +119,13 @@ function joinTextblocksAround(state, $cut, dispatch) {
119
119
  return false;
120
120
  afterText = child;
121
121
  }
122
- let step = index$1.replaceStep(state.doc, beforePos, afterPos, index$2.Slice.empty);
122
+ let step = index.replaceStep(state.doc, beforePos, afterPos, index$2.Slice.empty);
123
123
  if (!step || step.from != beforePos ||
124
- step instanceof index$1.ReplaceStep && step.slice.size >= afterPos - beforePos)
124
+ step instanceof index.ReplaceStep && step.slice.size >= afterPos - beforePos)
125
125
  return false;
126
126
  if (dispatch) {
127
127
  let tr = state.tr.step(step);
128
- tr.setSelection(index.TextSelection.create(tr.doc, beforePos));
128
+ tr.setSelection(index$1.TextSelection.create(tr.doc, beforePos));
129
129
  dispatch(tr.scrollIntoView());
130
130
  }
131
131
  return true;
@@ -157,10 +157,10 @@ const selectNodeBackward = (state, dispatch, view) => {
157
157
  $cut = findCutBefore($head);
158
158
  }
159
159
  let node = $cut && $cut.nodeBefore;
160
- if (!node || !index.NodeSelection.isSelectable(node))
160
+ if (!node || !index$1.NodeSelection.isSelectable(node))
161
161
  return false;
162
162
  if (dispatch)
163
- dispatch(state.tr.setSelection(index.NodeSelection.create(state.doc, $cut.pos - node.nodeSize)).scrollIntoView());
163
+ dispatch(state.tr.setSelection(index$1.NodeSelection.create(state.doc, $cut.pos - node.nodeSize)).scrollIntoView());
164
164
  return true;
165
165
  };
166
166
  function findCutBefore($pos) {
@@ -202,13 +202,13 @@ const joinForward = (state, dispatch, view) => {
202
202
  // If the node above has no content and the node below is
203
203
  // selectable, delete the node above and select the one below.
204
204
  if ($cursor.parent.content.size == 0 &&
205
- (textblockAt(after, "start") || index.NodeSelection.isSelectable(after))) {
206
- let delStep = index$1.replaceStep(state.doc, $cursor.before(), $cursor.after(), index$2.Slice.empty);
205
+ (textblockAt(after, "start") || index$1.NodeSelection.isSelectable(after))) {
206
+ let delStep = index.replaceStep(state.doc, $cursor.before(), $cursor.after(), index$2.Slice.empty);
207
207
  if (delStep && delStep.slice.size < delStep.to - delStep.from) {
208
208
  if (dispatch) {
209
209
  let tr = state.tr.step(delStep);
210
- tr.setSelection(textblockAt(after, "start") ? index.Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos)), 1)
211
- : index.NodeSelection.create(tr.doc, tr.mapping.map($cut.pos)));
210
+ tr.setSelection(textblockAt(after, "start") ? index$1.Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos)), 1)
211
+ : index$1.NodeSelection.create(tr.doc, tr.mapping.map($cut.pos)));
212
212
  dispatch(tr.scrollIntoView());
213
213
  }
214
214
  return true;
@@ -240,10 +240,10 @@ const selectNodeForward = (state, dispatch, view) => {
240
240
  $cut = findCutAfter($head);
241
241
  }
242
242
  let node = $cut && $cut.nodeAfter;
243
- if (!node || !index.NodeSelection.isSelectable(node))
243
+ if (!node || !index$1.NodeSelection.isSelectable(node))
244
244
  return false;
245
245
  if (dispatch)
246
- dispatch(state.tr.setSelection(index.NodeSelection.create(state.doc, $cut.pos)).scrollIntoView());
246
+ dispatch(state.tr.setSelection(index$1.NodeSelection.create(state.doc, $cut.pos)).scrollIntoView());
247
247
  return true;
248
248
  };
249
249
  function findCutAfter($pos) {
@@ -263,21 +263,21 @@ closest ancestor block of the selection that can be joined, with
263
263
  the sibling above it.
264
264
  */
265
265
  const joinUp = (state, dispatch) => {
266
- let sel = state.selection, nodeSel = sel instanceof index.NodeSelection, point;
266
+ let sel = state.selection, nodeSel = sel instanceof index$1.NodeSelection, point;
267
267
  if (nodeSel) {
268
- if (sel.node.isTextblock || !index$1.canJoin(state.doc, sel.from))
268
+ if (sel.node.isTextblock || !index.canJoin(state.doc, sel.from))
269
269
  return false;
270
270
  point = sel.from;
271
271
  }
272
272
  else {
273
- point = index$1.joinPoint(state.doc, sel.from, -1);
273
+ point = index.joinPoint(state.doc, sel.from, -1);
274
274
  if (point == null)
275
275
  return false;
276
276
  }
277
277
  if (dispatch) {
278
278
  let tr = state.tr.join(point);
279
279
  if (nodeSel)
280
- tr.setSelection(index.NodeSelection.create(tr.doc, point - state.doc.resolve(point).nodeBefore.nodeSize));
280
+ tr.setSelection(index$1.NodeSelection.create(tr.doc, point - state.doc.resolve(point).nodeBefore.nodeSize));
281
281
  dispatch(tr.scrollIntoView());
282
282
  }
283
283
  return true;
@@ -288,13 +288,13 @@ that can be joined, with the sibling after it.
288
288
  */
289
289
  const joinDown = (state, dispatch) => {
290
290
  let sel = state.selection, point;
291
- if (sel instanceof index.NodeSelection) {
292
- if (sel.node.isTextblock || !index$1.canJoin(state.doc, sel.to))
291
+ if (sel instanceof index$1.NodeSelection) {
292
+ if (sel.node.isTextblock || !index.canJoin(state.doc, sel.to))
293
293
  return false;
294
294
  point = sel.to;
295
295
  }
296
296
  else {
297
- point = index$1.joinPoint(state.doc, sel.to, 1);
297
+ point = index.joinPoint(state.doc, sel.to, 1);
298
298
  if (point == null)
299
299
  return false;
300
300
  }
@@ -308,7 +308,7 @@ selection that can be lifted, out of its parent node.
308
308
  */
309
309
  const lift = (state, dispatch) => {
310
310
  let { $from, $to } = state.selection;
311
- let range = $from.blockRange($to), target = range && index$1.liftTarget(range);
311
+ let range = $from.blockRange($to), target = range && index.liftTarget(range);
312
312
  if (target == null)
313
313
  return false;
314
314
  if (dispatch)
@@ -350,7 +350,7 @@ const exitCode = (state, dispatch) => {
350
350
  return false;
351
351
  if (dispatch) {
352
352
  let pos = $head.after(), tr = state.tr.replaceWith(pos, pos, type.createAndFill());
353
- tr.setSelection(index.Selection.near(tr.doc.resolve(pos), 1));
353
+ tr.setSelection(index$1.Selection.near(tr.doc.resolve(pos), 1));
354
354
  dispatch(tr.scrollIntoView());
355
355
  }
356
356
  return true;
@@ -361,7 +361,7 @@ it is its parent's first child) or after it.
361
361
  */
362
362
  const createParagraphNear = (state, dispatch) => {
363
363
  let sel = state.selection, { $from, $to } = sel;
364
- if (sel instanceof index.AllSelection || $from.parent.inlineContent || $to.parent.inlineContent)
364
+ if (sel instanceof index$1.AllSelection || $from.parent.inlineContent || $to.parent.inlineContent)
365
365
  return false;
366
366
  let type = defaultBlockAt($to.parent.contentMatchAt($to.indexAfter()));
367
367
  if (!type || !type.isTextblock)
@@ -369,7 +369,7 @@ const createParagraphNear = (state, dispatch) => {
369
369
  if (dispatch) {
370
370
  let side = (!$from.parentOffset && $to.index() < $to.parent.childCount ? $from : $to).pos;
371
371
  let tr = state.tr.insert(side, type.createAndFill());
372
- tr.setSelection(index.TextSelection.create(tr.doc, side + 1));
372
+ tr.setSelection(index$1.TextSelection.create(tr.doc, side + 1));
373
373
  dispatch(tr.scrollIntoView());
374
374
  }
375
375
  return true;
@@ -384,13 +384,13 @@ const liftEmptyBlock = (state, dispatch) => {
384
384
  return false;
385
385
  if ($cursor.depth > 1 && $cursor.after() != $cursor.end(-1)) {
386
386
  let before = $cursor.before();
387
- if (index$1.canSplit(state.doc, before)) {
387
+ if (index.canSplit(state.doc, before)) {
388
388
  if (dispatch)
389
389
  dispatch(state.tr.split(before).scrollIntoView());
390
390
  return true;
391
391
  }
392
392
  }
393
- let range = $cursor.blockRange(), target = range && index$1.liftTarget(range);
393
+ let range = $cursor.blockRange(), target = range && index.liftTarget(range);
394
394
  if (target == null)
395
395
  return false;
396
396
  if (dispatch)
@@ -404,8 +404,8 @@ a custom function to determine the type of the newly split off block.
404
404
  function splitBlockAs(splitNode) {
405
405
  return (state, dispatch) => {
406
406
  let { $from, $to } = state.selection;
407
- if (state.selection instanceof index.NodeSelection && state.selection.node.isBlock) {
408
- if (!$from.parentOffset || !index$1.canSplit(state.doc, $from.pos))
407
+ if (state.selection instanceof index$1.NodeSelection && state.selection.node.isBlock) {
408
+ if (!$from.parentOffset || !index.canSplit(state.doc, $from.pos))
409
409
  return false;
410
410
  if (dispatch)
411
411
  dispatch(state.tr.split($from.pos).scrollIntoView());
@@ -432,13 +432,13 @@ function splitBlockAs(splitNode) {
432
432
  }
433
433
  }
434
434
  let tr = state.tr;
435
- if (state.selection instanceof index.TextSelection || state.selection instanceof index.AllSelection)
435
+ if (state.selection instanceof index$1.TextSelection || state.selection instanceof index$1.AllSelection)
436
436
  tr.deleteSelection();
437
437
  let splitPos = tr.mapping.map($from.pos);
438
- let can = index$1.canSplit(tr.doc, splitPos, types.length, types);
438
+ let can = index.canSplit(tr.doc, splitPos, types.length, types);
439
439
  if (!can) {
440
440
  types[0] = deflt ? { type: deflt } : null;
441
- can = index$1.canSplit(tr.doc, splitPos, types.length, types);
441
+ can = index.canSplit(tr.doc, splitPos, types.length, types);
442
442
  }
443
443
  if (!can)
444
444
  return false;
@@ -469,19 +469,19 @@ const selectParentNode = (state, dispatch) => {
469
469
  return false;
470
470
  pos = $from.before(same);
471
471
  if (dispatch)
472
- dispatch(state.tr.setSelection(index.NodeSelection.create(state.doc, pos)));
472
+ dispatch(state.tr.setSelection(index$1.NodeSelection.create(state.doc, pos)));
473
473
  return true;
474
474
  };
475
475
  function joinMaybeClear(state, $pos, dispatch) {
476
- let before = $pos.nodeBefore, after = $pos.nodeAfter, index = $pos.index();
476
+ let before = $pos.nodeBefore, after = $pos.nodeAfter, index$1 = $pos.index();
477
477
  if (!before || !after || !before.type.compatibleContent(after.type))
478
478
  return false;
479
- if (!before.content.size && $pos.parent.canReplace(index - 1, index)) {
479
+ if (!before.content.size && $pos.parent.canReplace(index$1 - 1, index$1)) {
480
480
  if (dispatch)
481
481
  dispatch(state.tr.delete($pos.pos - before.nodeSize, $pos.pos).scrollIntoView());
482
482
  return true;
483
483
  }
484
- if (!$pos.parent.canReplace(index, index + 1) || !(after.isTextblock || index$1.canJoin(state.doc, $pos.pos)))
484
+ if (!$pos.parent.canReplace(index$1, index$1 + 1) || !(after.isTextblock || index.canJoin(state.doc, $pos.pos)))
485
485
  return false;
486
486
  if (dispatch)
487
487
  dispatch(state.tr.join($pos.pos).scrollIntoView());
@@ -501,17 +501,17 @@ function deleteBarrier(state, $cut, dispatch, dir) {
501
501
  for (let i = conn.length - 1; i >= 0; i--)
502
502
  wrap = index$2.Fragment.from(conn[i].create(null, wrap));
503
503
  wrap = index$2.Fragment.from(before.copy(wrap));
504
- let tr = state.tr.step(new index$1.ReplaceAroundStep($cut.pos - 1, end, $cut.pos, end, new index$2.Slice(wrap, 1, 0), conn.length, true));
504
+ let tr = state.tr.step(new index.ReplaceAroundStep($cut.pos - 1, end, $cut.pos, end, new index$2.Slice(wrap, 1, 0), conn.length, true));
505
505
  let $joinAt = tr.doc.resolve(end + 2 * conn.length);
506
506
  if ($joinAt.nodeAfter && $joinAt.nodeAfter.type == before.type &&
507
- index$1.canJoin(tr.doc, $joinAt.pos))
507
+ index.canJoin(tr.doc, $joinAt.pos))
508
508
  tr.join($joinAt.pos);
509
509
  dispatch(tr.scrollIntoView());
510
510
  }
511
511
  return true;
512
512
  }
513
- let selAfter = after.type.spec.isolating || (dir > 0 && isolated) ? null : index.Selection.findFrom($cut, 1);
514
- let range = selAfter && selAfter.$from.blockRange(selAfter.$to), target = range && index$1.liftTarget(range);
513
+ let selAfter = after.type.spec.isolating || (dir > 0 && isolated) ? null : index$1.Selection.findFrom($cut, 1);
514
+ let range = selAfter && selAfter.$from.blockRange(selAfter.$to), target = range && index.liftTarget(range);
515
515
  if (target != null && target >= $cut.depth) {
516
516
  if (dispatch)
517
517
  dispatch(state.tr.lift(range, target).scrollIntoView());
@@ -533,7 +533,7 @@ function deleteBarrier(state, $cut, dispatch, dir) {
533
533
  let end = index$2.Fragment.empty;
534
534
  for (let i = wrap.length - 1; i >= 0; i--)
535
535
  end = index$2.Fragment.from(wrap[i].copy(end));
536
- let tr = state.tr.step(new index$1.ReplaceAroundStep($cut.pos - wrap.length, $cut.pos + after.nodeSize, $cut.pos + afterDepth, $cut.pos + after.nodeSize - afterDepth, new index$2.Slice(end, wrap.length, 0), 0, true));
536
+ let tr = state.tr.step(new index.ReplaceAroundStep($cut.pos - wrap.length, $cut.pos + after.nodeSize, $cut.pos + afterDepth, $cut.pos + after.nodeSize - afterDepth, new index$2.Slice(end, wrap.length, 0), 0, true));
537
537
  dispatch(tr.scrollIntoView());
538
538
  }
539
539
  return true;
@@ -553,7 +553,7 @@ function selectTextblockSide(side) {
553
553
  if (!$pos.node(depth).isTextblock)
554
554
  return false;
555
555
  if (dispatch)
556
- dispatch(state.tr.setSelection(index.TextSelection.create(state.doc, side < 0 ? $pos.start(depth) : $pos.end(depth))));
556
+ dispatch(state.tr.setSelection(index$1.TextSelection.create(state.doc, side < 0 ? $pos.start(depth) : $pos.end(depth))));
557
557
  return true;
558
558
  };
559
559
  }
@@ -573,7 +573,7 @@ attributes.
573
573
  function wrapIn(nodeType, attrs = null) {
574
574
  return function (state, dispatch) {
575
575
  let { $from, $to } = state.selection;
576
- let range = $from.blockRange($to), wrapping = range && index$1.findWrapping(range, nodeType, attrs);
576
+ let range = $from.blockRange($to), wrapping = range && index.findWrapping(range, nodeType, attrs);
577
577
  if (!wrapping)
578
578
  return false;
579
579
  if (dispatch)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.js"],"sourcesContent":["import { liftTarget, replaceStep, ReplaceStep, canJoin, joinPoint, canSplit, ReplaceAroundStep, findWrapping } from 'prosemirror-transform';\nimport { Slice, Fragment } from 'prosemirror-model';\nimport { NodeSelection, Selection, TextSelection, AllSelection, SelectionRange } from 'prosemirror-state';\n\n/**\nDelete the selection, if there is one.\n*/\nconst deleteSelection = (state, dispatch) => {\n if (state.selection.empty)\n return false;\n if (dispatch)\n dispatch(state.tr.deleteSelection().scrollIntoView());\n return true;\n};\nfunction atBlockStart(state, view) {\n let { $cursor } = state.selection;\n if (!$cursor || (view ? !view.endOfTextblock(\"backward\", state)\n : $cursor.parentOffset > 0))\n return null;\n return $cursor;\n}\n/**\nIf the selection is empty and at the start of a textblock, try to\nreduce the distance between that block and the one before it—if\nthere's a block directly before it that can be joined, join them.\nIf not, try to move the selected block closer to the next one in\nthe document structure by lifting it out of its parent or moving it\ninto a parent of the previous block. Will use the view for accurate\n(bidi-aware) start-of-textblock detection if given.\n*/\nconst joinBackward = (state, dispatch, view) => {\n let $cursor = atBlockStart(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutBefore($cursor);\n // If there is no node before this, try to lift\n if (!$cut) {\n let range = $cursor.blockRange(), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n }\n let before = $cut.nodeBefore;\n // Apply the joining algorithm\n if (deleteBarrier(state, $cut, dispatch, -1))\n return true;\n // If the node below has no content and the node above is\n // selectable, delete the node below and select the one above.\n if ($cursor.parent.content.size == 0 &&\n (textblockAt(before, \"end\") || NodeSelection.isSelectable(before))) {\n for (let depth = $cursor.depth;; depth--) {\n let delStep = replaceStep(state.doc, $cursor.before(depth), $cursor.after(depth), Slice.empty);\n if (delStep && delStep.slice.size < delStep.to - delStep.from) {\n if (dispatch) {\n let tr = state.tr.step(delStep);\n tr.setSelection(textblockAt(before, \"end\")\n ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos, -1)), -1)\n : NodeSelection.create(tr.doc, $cut.pos - before.nodeSize));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n if (depth == 1 || $cursor.node(depth - 1).childCount > 1)\n break;\n }\n }\n // If the node before is an atom, delete it\n if (before.isAtom && $cut.depth == $cursor.depth - 1) {\n if (dispatch)\n dispatch(state.tr.delete($cut.pos - before.nodeSize, $cut.pos).scrollIntoView());\n return true;\n }\n return false;\n};\n/**\nA more limited form of [`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward)\nthat only tries to join the current textblock to the one before\nit, if the cursor is at the start of a textblock.\n*/\nconst joinTextblockBackward = (state, dispatch, view) => {\n let $cursor = atBlockStart(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutBefore($cursor);\n return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;\n};\n/**\nA more limited form of [`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward)\nthat only tries to join the current textblock to the one after\nit, if the cursor is at the end of a textblock.\n*/\nconst joinTextblockForward = (state, dispatch, view) => {\n let $cursor = atBlockEnd(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutAfter($cursor);\n return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;\n};\nfunction joinTextblocksAround(state, $cut, dispatch) {\n let before = $cut.nodeBefore, beforeText = before, beforePos = $cut.pos - 1;\n for (; !beforeText.isTextblock; beforePos--) {\n if (beforeText.type.spec.isolating)\n return false;\n let child = beforeText.lastChild;\n if (!child)\n return false;\n beforeText = child;\n }\n let after = $cut.nodeAfter, afterText = after, afterPos = $cut.pos + 1;\n for (; !afterText.isTextblock; afterPos++) {\n if (afterText.type.spec.isolating)\n return false;\n let child = afterText.firstChild;\n if (!child)\n return false;\n afterText = child;\n }\n let step = replaceStep(state.doc, beforePos, afterPos, Slice.empty);\n if (!step || step.from != beforePos ||\n step instanceof ReplaceStep && step.slice.size >= afterPos - beforePos)\n return false;\n if (dispatch) {\n let tr = state.tr.step(step);\n tr.setSelection(TextSelection.create(tr.doc, beforePos));\n dispatch(tr.scrollIntoView());\n }\n return true;\n}\nfunction textblockAt(node, side, only = false) {\n for (let scan = node; scan; scan = (side == \"start\" ? scan.firstChild : scan.lastChild)) {\n if (scan.isTextblock)\n return true;\n if (only && scan.childCount != 1)\n return false;\n }\n return false;\n}\n/**\nWhen the selection is empty and at the start of a textblock, select\nthe node before that textblock, if possible. This is intended to be\nbound to keys like backspace, after\n[`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward) or other deleting\ncommands, as a fall-back behavior when the schema doesn't allow\ndeletion at the selected point.\n*/\nconst selectNodeBackward = (state, dispatch, view) => {\n let { $head, empty } = state.selection, $cut = $head;\n if (!empty)\n return false;\n if ($head.parent.isTextblock) {\n if (view ? !view.endOfTextblock(\"backward\", state) : $head.parentOffset > 0)\n return false;\n $cut = findCutBefore($head);\n }\n let node = $cut && $cut.nodeBefore;\n if (!node || !NodeSelection.isSelectable(node))\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos - node.nodeSize)).scrollIntoView());\n return true;\n};\nfunction findCutBefore($pos) {\n if (!$pos.parent.type.spec.isolating)\n for (let i = $pos.depth - 1; i >= 0; i--) {\n if ($pos.index(i) > 0)\n return $pos.doc.resolve($pos.before(i + 1));\n if ($pos.node(i).type.spec.isolating)\n break;\n }\n return null;\n}\nfunction atBlockEnd(state, view) {\n let { $cursor } = state.selection;\n if (!$cursor || (view ? !view.endOfTextblock(\"forward\", state)\n : $cursor.parentOffset < $cursor.parent.content.size))\n return null;\n return $cursor;\n}\n/**\nIf the selection is empty and the cursor is at the end of a\ntextblock, try to reduce or remove the boundary between that block\nand the one after it, either by joining them or by moving the other\nblock closer to this one in the tree structure. Will use the view\nfor accurate start-of-textblock detection if given.\n*/\nconst joinForward = (state, dispatch, view) => {\n let $cursor = atBlockEnd(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutAfter($cursor);\n // If there is no node after this, there's nothing to do\n if (!$cut)\n return false;\n let after = $cut.nodeAfter;\n // Try the joining algorithm\n if (deleteBarrier(state, $cut, dispatch, 1))\n return true;\n // If the node above has no content and the node below is\n // selectable, delete the node above and select the one below.\n if ($cursor.parent.content.size == 0 &&\n (textblockAt(after, \"start\") || NodeSelection.isSelectable(after))) {\n let delStep = replaceStep(state.doc, $cursor.before(), $cursor.after(), Slice.empty);\n if (delStep && delStep.slice.size < delStep.to - delStep.from) {\n if (dispatch) {\n let tr = state.tr.step(delStep);\n tr.setSelection(textblockAt(after, \"start\") ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos)), 1)\n : NodeSelection.create(tr.doc, tr.mapping.map($cut.pos)));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n }\n // If the next node is an atom, delete it\n if (after.isAtom && $cut.depth == $cursor.depth - 1) {\n if (dispatch)\n dispatch(state.tr.delete($cut.pos, $cut.pos + after.nodeSize).scrollIntoView());\n return true;\n }\n return false;\n};\n/**\nWhen the selection is empty and at the end of a textblock, select\nthe node coming after that textblock, if possible. This is intended\nto be bound to keys like delete, after\n[`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward) and similar deleting\ncommands, to provide a fall-back behavior when the schema doesn't\nallow deletion at the selected point.\n*/\nconst selectNodeForward = (state, dispatch, view) => {\n let { $head, empty } = state.selection, $cut = $head;\n if (!empty)\n return false;\n if ($head.parent.isTextblock) {\n if (view ? !view.endOfTextblock(\"forward\", state) : $head.parentOffset < $head.parent.content.size)\n return false;\n $cut = findCutAfter($head);\n }\n let node = $cut && $cut.nodeAfter;\n if (!node || !NodeSelection.isSelectable(node))\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos)).scrollIntoView());\n return true;\n};\nfunction findCutAfter($pos) {\n if (!$pos.parent.type.spec.isolating)\n for (let i = $pos.depth - 1; i >= 0; i--) {\n let parent = $pos.node(i);\n if ($pos.index(i) + 1 < parent.childCount)\n return $pos.doc.resolve($pos.after(i + 1));\n if (parent.type.spec.isolating)\n break;\n }\n return null;\n}\n/**\nJoin the selected block or, if there is a text selection, the\nclosest ancestor block of the selection that can be joined, with\nthe sibling above it.\n*/\nconst joinUp = (state, dispatch) => {\n let sel = state.selection, nodeSel = sel instanceof NodeSelection, point;\n if (nodeSel) {\n if (sel.node.isTextblock || !canJoin(state.doc, sel.from))\n return false;\n point = sel.from;\n }\n else {\n point = joinPoint(state.doc, sel.from, -1);\n if (point == null)\n return false;\n }\n if (dispatch) {\n let tr = state.tr.join(point);\n if (nodeSel)\n tr.setSelection(NodeSelection.create(tr.doc, point - state.doc.resolve(point).nodeBefore.nodeSize));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nJoin the selected block, or the closest ancestor of the selection\nthat can be joined, with the sibling after it.\n*/\nconst joinDown = (state, dispatch) => {\n let sel = state.selection, point;\n if (sel instanceof NodeSelection) {\n if (sel.node.isTextblock || !canJoin(state.doc, sel.to))\n return false;\n point = sel.to;\n }\n else {\n point = joinPoint(state.doc, sel.to, 1);\n if (point == null)\n return false;\n }\n if (dispatch)\n dispatch(state.tr.join(point).scrollIntoView());\n return true;\n};\n/**\nLift the selected block, or the closest ancestor block of the\nselection that can be lifted, out of its parent node.\n*/\nconst lift = (state, dispatch) => {\n let { $from, $to } = state.selection;\n let range = $from.blockRange($to), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n};\n/**\nIf the selection is in a node whose type has a truthy\n[`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, replace the\nselection with a newline character.\n*/\nconst newlineInCode = (state, dispatch) => {\n let { $head, $anchor } = state.selection;\n if (!$head.parent.type.spec.code || !$head.sameParent($anchor))\n return false;\n if (dispatch)\n dispatch(state.tr.insertText(\"\\n\").scrollIntoView());\n return true;\n};\nfunction defaultBlockAt(match) {\n for (let i = 0; i < match.edgeCount; i++) {\n let { type } = match.edge(i);\n if (type.isTextblock && !type.hasRequiredAttrs())\n return type;\n }\n return null;\n}\n/**\nWhen the selection is in a node with a truthy\n[`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, create a\ndefault block after the code block, and move the cursor there.\n*/\nconst exitCode = (state, dispatch) => {\n let { $head, $anchor } = state.selection;\n if (!$head.parent.type.spec.code || !$head.sameParent($anchor))\n return false;\n let above = $head.node(-1), after = $head.indexAfter(-1), type = defaultBlockAt(above.contentMatchAt(after));\n if (!type || !above.canReplaceWith(after, after, type))\n return false;\n if (dispatch) {\n let pos = $head.after(), tr = state.tr.replaceWith(pos, pos, type.createAndFill());\n tr.setSelection(Selection.near(tr.doc.resolve(pos), 1));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nIf a block node is selected, create an empty paragraph before (if\nit is its parent's first child) or after it.\n*/\nconst createParagraphNear = (state, dispatch) => {\n let sel = state.selection, { $from, $to } = sel;\n if (sel instanceof AllSelection || $from.parent.inlineContent || $to.parent.inlineContent)\n return false;\n let type = defaultBlockAt($to.parent.contentMatchAt($to.indexAfter()));\n if (!type || !type.isTextblock)\n return false;\n if (dispatch) {\n let side = (!$from.parentOffset && $to.index() < $to.parent.childCount ? $from : $to).pos;\n let tr = state.tr.insert(side, type.createAndFill());\n tr.setSelection(TextSelection.create(tr.doc, side + 1));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nIf the cursor is in an empty textblock that can be lifted, lift the\nblock.\n*/\nconst liftEmptyBlock = (state, dispatch) => {\n let { $cursor } = state.selection;\n if (!$cursor || $cursor.parent.content.size)\n return false;\n if ($cursor.depth > 1 && $cursor.after() != $cursor.end(-1)) {\n let before = $cursor.before();\n if (canSplit(state.doc, before)) {\n if (dispatch)\n dispatch(state.tr.split(before).scrollIntoView());\n return true;\n }\n }\n let range = $cursor.blockRange(), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n};\n/**\nCreate a variant of [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock) that uses\na custom function to determine the type of the newly split off block.\n*/\nfunction splitBlockAs(splitNode) {\n return (state, dispatch) => {\n let { $from, $to } = state.selection;\n if (state.selection instanceof NodeSelection && state.selection.node.isBlock) {\n if (!$from.parentOffset || !canSplit(state.doc, $from.pos))\n return false;\n if (dispatch)\n dispatch(state.tr.split($from.pos).scrollIntoView());\n return true;\n }\n if (!$from.depth)\n return false;\n let types = [];\n let splitDepth, deflt, atEnd = false, atStart = false;\n for (let d = $from.depth;; d--) {\n let node = $from.node(d);\n if (node.isBlock) {\n atEnd = $from.end(d) == $from.pos + ($from.depth - d);\n atStart = $from.start(d) == $from.pos - ($from.depth - d);\n deflt = defaultBlockAt($from.node(d - 1).contentMatchAt($from.indexAfter(d - 1)));\n let splitType = splitNode && splitNode($to.parent, atEnd, $from);\n types.unshift(splitType || (atEnd && deflt ? { type: deflt } : null));\n splitDepth = d;\n break;\n }\n else {\n if (d == 1)\n return false;\n types.unshift(null);\n }\n }\n let tr = state.tr;\n if (state.selection instanceof TextSelection || state.selection instanceof AllSelection)\n tr.deleteSelection();\n let splitPos = tr.mapping.map($from.pos);\n let can = canSplit(tr.doc, splitPos, types.length, types);\n if (!can) {\n types[0] = deflt ? { type: deflt } : null;\n can = canSplit(tr.doc, splitPos, types.length, types);\n }\n if (!can)\n return false;\n tr.split(splitPos, types.length, types);\n if (!atEnd && atStart && $from.node(splitDepth).type != deflt) {\n let first = tr.mapping.map($from.before(splitDepth)), $first = tr.doc.resolve(first);\n if (deflt && $from.node(splitDepth - 1).canReplaceWith($first.index(), $first.index() + 1, deflt))\n tr.setNodeMarkup(tr.mapping.map($from.before(splitDepth)), deflt);\n }\n if (dispatch)\n dispatch(tr.scrollIntoView());\n return true;\n };\n}\n/**\nSplit the parent block of the selection. If the selection is a text\nselection, also delete its content.\n*/\nconst splitBlock = splitBlockAs();\n/**\nActs like [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock), but without\nresetting the set of active marks at the cursor.\n*/\nconst splitBlockKeepMarks = (state, dispatch) => {\n return splitBlock(state, dispatch && (tr => {\n let marks = state.storedMarks || (state.selection.$to.parentOffset && state.selection.$from.marks());\n if (marks)\n tr.ensureMarks(marks);\n dispatch(tr);\n }));\n};\n/**\nMove the selection to the node wrapping the current selection, if\nany. (Will not select the document node.)\n*/\nconst selectParentNode = (state, dispatch) => {\n let { $from, to } = state.selection, pos;\n let same = $from.sharedDepth(to);\n if (same == 0)\n return false;\n pos = $from.before(same);\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, pos)));\n return true;\n};\n/**\nSelect the whole document.\n*/\nconst selectAll = (state, dispatch) => {\n if (dispatch)\n dispatch(state.tr.setSelection(new AllSelection(state.doc)));\n return true;\n};\nfunction joinMaybeClear(state, $pos, dispatch) {\n let before = $pos.nodeBefore, after = $pos.nodeAfter, index = $pos.index();\n if (!before || !after || !before.type.compatibleContent(after.type))\n return false;\n if (!before.content.size && $pos.parent.canReplace(index - 1, index)) {\n if (dispatch)\n dispatch(state.tr.delete($pos.pos - before.nodeSize, $pos.pos).scrollIntoView());\n return true;\n }\n if (!$pos.parent.canReplace(index, index + 1) || !(after.isTextblock || canJoin(state.doc, $pos.pos)))\n return false;\n if (dispatch)\n dispatch(state.tr.join($pos.pos).scrollIntoView());\n return true;\n}\nfunction deleteBarrier(state, $cut, dispatch, dir) {\n let before = $cut.nodeBefore, after = $cut.nodeAfter, conn, match;\n let isolated = before.type.spec.isolating || after.type.spec.isolating;\n if (!isolated && joinMaybeClear(state, $cut, dispatch))\n return true;\n let canDelAfter = !isolated && $cut.parent.canReplace($cut.index(), $cut.index() + 1);\n if (canDelAfter &&\n (conn = (match = before.contentMatchAt(before.childCount)).findWrapping(after.type)) &&\n match.matchType(conn[0] || after.type).validEnd) {\n if (dispatch) {\n let end = $cut.pos + after.nodeSize, wrap = Fragment.empty;\n for (let i = conn.length - 1; i >= 0; i--)\n wrap = Fragment.from(conn[i].create(null, wrap));\n wrap = Fragment.from(before.copy(wrap));\n let tr = state.tr.step(new ReplaceAroundStep($cut.pos - 1, end, $cut.pos, end, new Slice(wrap, 1, 0), conn.length, true));\n let $joinAt = tr.doc.resolve(end + 2 * conn.length);\n if ($joinAt.nodeAfter && $joinAt.nodeAfter.type == before.type &&\n canJoin(tr.doc, $joinAt.pos))\n tr.join($joinAt.pos);\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n let selAfter = after.type.spec.isolating || (dir > 0 && isolated) ? null : Selection.findFrom($cut, 1);\n let range = selAfter && selAfter.$from.blockRange(selAfter.$to), target = range && liftTarget(range);\n if (target != null && target >= $cut.depth) {\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n }\n if (canDelAfter && textblockAt(after, \"start\", true) && textblockAt(before, \"end\")) {\n let at = before, wrap = [];\n for (;;) {\n wrap.push(at);\n if (at.isTextblock)\n break;\n at = at.lastChild;\n }\n let afterText = after, afterDepth = 1;\n for (; !afterText.isTextblock; afterText = afterText.firstChild)\n afterDepth++;\n if (at.canReplace(at.childCount, at.childCount, afterText.content)) {\n if (dispatch) {\n let end = Fragment.empty;\n for (let i = wrap.length - 1; i >= 0; i--)\n end = Fragment.from(wrap[i].copy(end));\n let tr = state.tr.step(new ReplaceAroundStep($cut.pos - wrap.length, $cut.pos + after.nodeSize, $cut.pos + afterDepth, $cut.pos + after.nodeSize - afterDepth, new Slice(end, wrap.length, 0), 0, true));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n }\n return false;\n}\nfunction selectTextblockSide(side) {\n return function (state, dispatch) {\n let sel = state.selection, $pos = side < 0 ? sel.$from : sel.$to;\n let depth = $pos.depth;\n while ($pos.node(depth).isInline) {\n if (!depth)\n return false;\n depth--;\n }\n if (!$pos.node(depth).isTextblock)\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(TextSelection.create(state.doc, side < 0 ? $pos.start(depth) : $pos.end(depth))));\n return true;\n };\n}\n/**\nMoves the cursor to the start of current text block.\n*/\nconst selectTextblockStart = selectTextblockSide(-1);\n/**\nMoves the cursor to the end of current text block.\n*/\nconst selectTextblockEnd = selectTextblockSide(1);\n// Parameterized commands\n/**\nWrap the selection in a node of the given type with the given\nattributes.\n*/\nfunction wrapIn(nodeType, attrs = null) {\n return function (state, dispatch) {\n let { $from, $to } = state.selection;\n let range = $from.blockRange($to), wrapping = range && findWrapping(range, nodeType, attrs);\n if (!wrapping)\n return false;\n if (dispatch)\n dispatch(state.tr.wrap(range, wrapping).scrollIntoView());\n return true;\n };\n}\n/**\nReturns a command that tries to set the selected textblocks to the\ngiven node type with the given attributes.\n*/\nfunction setBlockType(nodeType, attrs = null) {\n return function (state, dispatch) {\n let applicable = false;\n for (let i = 0; i < state.selection.ranges.length && !applicable; i++) {\n let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];\n state.doc.nodesBetween(from, to, (node, pos) => {\n if (applicable)\n return false;\n if (!node.isTextblock || node.hasMarkup(nodeType, attrs))\n return;\n if (node.type == nodeType) {\n applicable = true;\n }\n else {\n let $pos = state.doc.resolve(pos), index = $pos.index();\n applicable = $pos.parent.canReplaceWith(index, index + 1, nodeType);\n }\n });\n }\n if (!applicable)\n return false;\n if (dispatch) {\n let tr = state.tr;\n for (let i = 0; i < state.selection.ranges.length; i++) {\n let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];\n tr.setBlockType(from, to, nodeType, attrs);\n }\n dispatch(tr.scrollIntoView());\n }\n return true;\n };\n}\nfunction markApplies(doc, ranges, type, enterAtoms) {\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false;\n doc.nodesBetween($from.pos, $to.pos, (node, pos) => {\n if (can || !enterAtoms && node.isAtom && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos)\n return false;\n can = node.inlineContent && node.type.allowsMarkType(type);\n });\n if (can)\n return true;\n }\n return false;\n}\nfunction removeInlineAtoms(ranges) {\n let result = [];\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n $from.doc.nodesBetween($from.pos, $to.pos, (node, pos) => {\n if (node.isAtom && node.content.size && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos) {\n if (pos + 1 > $from.pos)\n result.push(new SelectionRange($from, $from.doc.resolve(pos + 1)));\n $from = $from.doc.resolve(pos + 1 + node.content.size);\n return false;\n }\n });\n if ($from.pos < $to.pos)\n result.push(new SelectionRange($from, $to));\n }\n return result;\n}\n/**\nCreate a command function that toggles the given mark with the\ngiven attributes. Will return `false` when the current selection\ndoesn't support that mark. This will remove the mark if any marks\nof that type exist in the selection, or add it otherwise. If the\nselection is empty, this applies to the [stored\nmarks](https://prosemirror.net/docs/ref/#state.EditorState.storedMarks) instead of a range of the\ndocument.\n*/\nfunction toggleMark(markType, attrs = null, options) {\n let removeWhenPresent = (options && options.removeWhenPresent) !== false;\n let enterAtoms = (options && options.enterInlineAtoms) !== false;\n let dropSpace = !(options && options.includeWhitespace);\n return function (state, dispatch) {\n let { empty, $cursor, ranges } = state.selection;\n if ((empty && !$cursor) || !markApplies(state.doc, ranges, markType, enterAtoms))\n return false;\n if (dispatch) {\n if ($cursor) {\n if (markType.isInSet(state.storedMarks || $cursor.marks()))\n dispatch(state.tr.removeStoredMark(markType));\n else\n dispatch(state.tr.addStoredMark(markType.create(attrs)));\n }\n else {\n let add, tr = state.tr;\n if (!enterAtoms)\n ranges = removeInlineAtoms(ranges);\n if (removeWhenPresent) {\n add = !ranges.some(r => state.doc.rangeHasMark(r.$from.pos, r.$to.pos, markType));\n }\n else {\n add = !ranges.every(r => {\n let missing = false;\n tr.doc.nodesBetween(r.$from.pos, r.$to.pos, (node, pos, parent) => {\n if (missing)\n return false;\n missing = !markType.isInSet(node.marks) && !!parent && parent.type.allowsMarkType(markType) &&\n !(node.isText && /^\\s*$/.test(node.textBetween(Math.max(0, r.$from.pos - pos), Math.min(node.nodeSize, r.$to.pos - pos))));\n });\n return !missing;\n });\n }\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n if (!add) {\n tr.removeMark($from.pos, $to.pos, markType);\n }\n else {\n let from = $from.pos, to = $to.pos, start = $from.nodeAfter, end = $to.nodeBefore;\n let spaceStart = dropSpace && start && start.isText ? /^\\s*/.exec(start.text)[0].length : 0;\n let spaceEnd = dropSpace && end && end.isText ? /\\s*$/.exec(end.text)[0].length : 0;\n if (from + spaceStart < to) {\n from += spaceStart;\n to -= spaceEnd;\n }\n tr.addMark(from, to, markType.create(attrs));\n }\n }\n dispatch(tr.scrollIntoView());\n }\n }\n return true;\n };\n}\nfunction wrapDispatchForJoin(dispatch, isJoinable) {\n return (tr) => {\n if (!tr.isGeneric)\n return dispatch(tr);\n let ranges = [];\n for (let i = 0; i < tr.mapping.maps.length; i++) {\n let map = tr.mapping.maps[i];\n for (let j = 0; j < ranges.length; j++)\n ranges[j] = map.map(ranges[j]);\n map.forEach((_s, _e, from, to) => ranges.push(from, to));\n }\n // Figure out which joinable points exist inside those ranges,\n // by checking all node boundaries in their parent nodes.\n let joinable = [];\n for (let i = 0; i < ranges.length; i += 2) {\n let from = ranges[i], to = ranges[i + 1];\n let $from = tr.doc.resolve(from), depth = $from.sharedDepth(to), parent = $from.node(depth);\n for (let index = $from.indexAfter(depth), pos = $from.after(depth + 1); pos <= to; ++index) {\n let after = parent.maybeChild(index);\n if (!after)\n break;\n if (index && joinable.indexOf(pos) == -1) {\n let before = parent.child(index - 1);\n if (before.type == after.type && isJoinable(before, after))\n joinable.push(pos);\n }\n pos += after.nodeSize;\n }\n }\n // Join the joinable points\n joinable.sort((a, b) => a - b);\n for (let i = joinable.length - 1; i >= 0; i--) {\n if (canJoin(tr.doc, joinable[i]))\n tr.join(joinable[i]);\n }\n dispatch(tr);\n };\n}\n/**\nWrap a command so that, when it produces a transform that causes\ntwo joinable nodes to end up next to each other, those are joined.\nNodes are considered joinable when they are of the same type and\nwhen the `isJoinable` predicate returns true for them or, if an\narray of strings was passed, if their node type name is in that\narray.\n*/\nfunction autoJoin(command, isJoinable) {\n let canJoin = Array.isArray(isJoinable) ? (node) => isJoinable.indexOf(node.type.name) > -1\n : isJoinable;\n return (state, dispatch, view) => command(state, dispatch && wrapDispatchForJoin(dispatch, canJoin), view);\n}\n/**\nCombine a number of command functions into a single function (which\ncalls them one by one until one returns true).\n*/\nfunction chainCommands(...commands) {\n return function (state, dispatch, view) {\n for (let i = 0; i < commands.length; i++)\n if (commands[i](state, dispatch, view))\n return true;\n return false;\n };\n}\nlet backspace = chainCommands(deleteSelection, joinBackward, selectNodeBackward);\nlet del = chainCommands(deleteSelection, joinForward, selectNodeForward);\n/**\nA basic keymap containing bindings not specific to any schema.\nBinds the following keys (when multiple commands are listed, they\nare chained with [`chainCommands`](https://prosemirror.net/docs/ref/#commands.chainCommands)):\n\n* **Enter** to `newlineInCode`, `createParagraphNear`, `liftEmptyBlock`, `splitBlock`\n* **Mod-Enter** to `exitCode`\n* **Backspace** and **Mod-Backspace** to `deleteSelection`, `joinBackward`, `selectNodeBackward`\n* **Delete** and **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`\n* **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`\n* **Mod-a** to `selectAll`\n*/\nconst pcBaseKeymap = {\n \"Enter\": chainCommands(newlineInCode, createParagraphNear, liftEmptyBlock, splitBlock),\n \"Mod-Enter\": exitCode,\n \"Backspace\": backspace,\n \"Mod-Backspace\": backspace,\n \"Shift-Backspace\": backspace,\n \"Delete\": del,\n \"Mod-Delete\": del,\n \"Mod-a\": selectAll\n};\n/**\nA copy of `pcBaseKeymap` that also binds **Ctrl-h** like Backspace,\n**Ctrl-d** like Delete, **Alt-Backspace** like Ctrl-Backspace, and\n**Ctrl-Alt-Backspace**, **Alt-Delete**, and **Alt-d** like\nCtrl-Delete.\n*/\nconst macBaseKeymap = {\n \"Ctrl-h\": pcBaseKeymap[\"Backspace\"],\n \"Alt-Backspace\": pcBaseKeymap[\"Mod-Backspace\"],\n \"Ctrl-d\": pcBaseKeymap[\"Delete\"],\n \"Ctrl-Alt-Backspace\": pcBaseKeymap[\"Mod-Delete\"],\n \"Alt-Delete\": pcBaseKeymap[\"Mod-Delete\"],\n \"Alt-d\": pcBaseKeymap[\"Mod-Delete\"],\n \"Ctrl-a\": selectTextblockStart,\n \"Ctrl-e\": selectTextblockEnd\n};\nfor (let key in pcBaseKeymap)\n macBaseKeymap[key] = pcBaseKeymap[key];\nconst mac = typeof navigator != \"undefined\" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform)\n // @ts-ignore\n : typeof os != \"undefined\" && os.platform ? os.platform() == \"darwin\" : false;\n/**\nDepending on the detected platform, this will hold\n[`pcBasekeymap`](https://prosemirror.net/docs/ref/#commands.pcBaseKeymap) or\n[`macBaseKeymap`](https://prosemirror.net/docs/ref/#commands.macBaseKeymap).\n*/\nconst baseKeymap = mac ? macBaseKeymap : pcBaseKeymap;\n\nexport { autoJoin, baseKeymap, chainCommands, createParagraphNear, deleteSelection, exitCode, joinBackward, joinDown, joinForward, joinTextblockBackward, joinTextblockForward, joinUp, lift, liftEmptyBlock, macBaseKeymap, newlineInCode, pcBaseKeymap, selectAll, selectNodeBackward, selectNodeForward, selectParentNode, selectTextblockEnd, selectTextblockStart, setBlockType, splitBlock, splitBlockAs, splitBlockKeepMarks, toggleMark, wrapIn };\n"],"names":["liftTarget","NodeSelection","replaceStep","Slice","Selection","ReplaceStep","TextSelection","canJoin","joinPoint","AllSelection","canSplit","Fragment","ReplaceAroundStep","findWrapping"],"mappings":";;;;;;AAIA;AACA;AACA;AACK,MAAC,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK;AAC7C,IAAI,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK;AAC7B,QAAQ,OAAO,KAAK;AACpB,IAAI,IAAI,QAAQ;AAChB,QAAQ,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,EAAE,CAAC,cAAc,EAAE,CAAC;AAC7D,IAAI,OAAO,IAAI;AACf;AACA,SAAS,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE;AACnC,IAAI,IAAI,EAAE,OAAO,EA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CAAC,EAAE;AAChD,YAAY,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC;AAClD,gBAAgB,OAAO,IAAI;AAC3B,QAAQ,OAAO,KAAK;AACpB,IAAI,CAAC;AACL;AACgB,aAAa,CAAC,eAAe,EAAE,YAAY,EAAE,kBAAkB;AACrE,aAAa,CAAC,eAAe,EAAE,WAAW,EAAE,iBAAiB;AACvE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;CACqB;AACrB,IAAI,OAAO,EAAE,aAAa,CAAC,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,UAAU,CAQzF;AAmBY,OAAO,SAAS,IAAI,WAAW,GAAG,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ;AAC1F;AACA,MAAM,OAAO,EAAE,IAAI,WAAW,IAAI,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,EAAE,IAAI,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.js"],"sourcesContent":["import { liftTarget, replaceStep, ReplaceStep, canJoin, joinPoint, canSplit, ReplaceAroundStep, findWrapping } from 'prosemirror-transform';\nimport { Slice, Fragment } from 'prosemirror-model';\nimport { NodeSelection, Selection, TextSelection, AllSelection, SelectionRange } from 'prosemirror-state';\n\n/**\nDelete the selection, if there is one.\n*/\nconst deleteSelection = (state, dispatch) => {\n if (state.selection.empty)\n return false;\n if (dispatch)\n dispatch(state.tr.deleteSelection().scrollIntoView());\n return true;\n};\nfunction atBlockStart(state, view) {\n let { $cursor } = state.selection;\n if (!$cursor || (view ? !view.endOfTextblock(\"backward\", state)\n : $cursor.parentOffset > 0))\n return null;\n return $cursor;\n}\n/**\nIf the selection is empty and at the start of a textblock, try to\nreduce the distance between that block and the one before it—if\nthere's a block directly before it that can be joined, join them.\nIf not, try to move the selected block closer to the next one in\nthe document structure by lifting it out of its parent or moving it\ninto a parent of the previous block. Will use the view for accurate\n(bidi-aware) start-of-textblock detection if given.\n*/\nconst joinBackward = (state, dispatch, view) => {\n let $cursor = atBlockStart(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutBefore($cursor);\n // If there is no node before this, try to lift\n if (!$cut) {\n let range = $cursor.blockRange(), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n }\n let before = $cut.nodeBefore;\n // Apply the joining algorithm\n if (deleteBarrier(state, $cut, dispatch, -1))\n return true;\n // If the node below has no content and the node above is\n // selectable, delete the node below and select the one above.\n if ($cursor.parent.content.size == 0 &&\n (textblockAt(before, \"end\") || NodeSelection.isSelectable(before))) {\n for (let depth = $cursor.depth;; depth--) {\n let delStep = replaceStep(state.doc, $cursor.before(depth), $cursor.after(depth), Slice.empty);\n if (delStep && delStep.slice.size < delStep.to - delStep.from) {\n if (dispatch) {\n let tr = state.tr.step(delStep);\n tr.setSelection(textblockAt(before, \"end\")\n ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos, -1)), -1)\n : NodeSelection.create(tr.doc, $cut.pos - before.nodeSize));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n if (depth == 1 || $cursor.node(depth - 1).childCount > 1)\n break;\n }\n }\n // If the node before is an atom, delete it\n if (before.isAtom && $cut.depth == $cursor.depth - 1) {\n if (dispatch)\n dispatch(state.tr.delete($cut.pos - before.nodeSize, $cut.pos).scrollIntoView());\n return true;\n }\n return false;\n};\n/**\nA more limited form of [`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward)\nthat only tries to join the current textblock to the one before\nit, if the cursor is at the start of a textblock.\n*/\nconst joinTextblockBackward = (state, dispatch, view) => {\n let $cursor = atBlockStart(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutBefore($cursor);\n return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;\n};\n/**\nA more limited form of [`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward)\nthat only tries to join the current textblock to the one after\nit, if the cursor is at the end of a textblock.\n*/\nconst joinTextblockForward = (state, dispatch, view) => {\n let $cursor = atBlockEnd(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutAfter($cursor);\n return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;\n};\nfunction joinTextblocksAround(state, $cut, dispatch) {\n let before = $cut.nodeBefore, beforeText = before, beforePos = $cut.pos - 1;\n for (; !beforeText.isTextblock; beforePos--) {\n if (beforeText.type.spec.isolating)\n return false;\n let child = beforeText.lastChild;\n if (!child)\n return false;\n beforeText = child;\n }\n let after = $cut.nodeAfter, afterText = after, afterPos = $cut.pos + 1;\n for (; !afterText.isTextblock; afterPos++) {\n if (afterText.type.spec.isolating)\n return false;\n let child = afterText.firstChild;\n if (!child)\n return false;\n afterText = child;\n }\n let step = replaceStep(state.doc, beforePos, afterPos, Slice.empty);\n if (!step || step.from != beforePos ||\n step instanceof ReplaceStep && step.slice.size >= afterPos - beforePos)\n return false;\n if (dispatch) {\n let tr = state.tr.step(step);\n tr.setSelection(TextSelection.create(tr.doc, beforePos));\n dispatch(tr.scrollIntoView());\n }\n return true;\n}\nfunction textblockAt(node, side, only = false) {\n for (let scan = node; scan; scan = (side == \"start\" ? scan.firstChild : scan.lastChild)) {\n if (scan.isTextblock)\n return true;\n if (only && scan.childCount != 1)\n return false;\n }\n return false;\n}\n/**\nWhen the selection is empty and at the start of a textblock, select\nthe node before that textblock, if possible. This is intended to be\nbound to keys like backspace, after\n[`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward) or other deleting\ncommands, as a fall-back behavior when the schema doesn't allow\ndeletion at the selected point.\n*/\nconst selectNodeBackward = (state, dispatch, view) => {\n let { $head, empty } = state.selection, $cut = $head;\n if (!empty)\n return false;\n if ($head.parent.isTextblock) {\n if (view ? !view.endOfTextblock(\"backward\", state) : $head.parentOffset > 0)\n return false;\n $cut = findCutBefore($head);\n }\n let node = $cut && $cut.nodeBefore;\n if (!node || !NodeSelection.isSelectable(node))\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos - node.nodeSize)).scrollIntoView());\n return true;\n};\nfunction findCutBefore($pos) {\n if (!$pos.parent.type.spec.isolating)\n for (let i = $pos.depth - 1; i >= 0; i--) {\n if ($pos.index(i) > 0)\n return $pos.doc.resolve($pos.before(i + 1));\n if ($pos.node(i).type.spec.isolating)\n break;\n }\n return null;\n}\nfunction atBlockEnd(state, view) {\n let { $cursor } = state.selection;\n if (!$cursor || (view ? !view.endOfTextblock(\"forward\", state)\n : $cursor.parentOffset < $cursor.parent.content.size))\n return null;\n return $cursor;\n}\n/**\nIf the selection is empty and the cursor is at the end of a\ntextblock, try to reduce or remove the boundary between that block\nand the one after it, either by joining them or by moving the other\nblock closer to this one in the tree structure. Will use the view\nfor accurate start-of-textblock detection if given.\n*/\nconst joinForward = (state, dispatch, view) => {\n let $cursor = atBlockEnd(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutAfter($cursor);\n // If there is no node after this, there's nothing to do\n if (!$cut)\n return false;\n let after = $cut.nodeAfter;\n // Try the joining algorithm\n if (deleteBarrier(state, $cut, dispatch, 1))\n return true;\n // If the node above has no content and the node below is\n // selectable, delete the node above and select the one below.\n if ($cursor.parent.content.size == 0 &&\n (textblockAt(after, \"start\") || NodeSelection.isSelectable(after))) {\n let delStep = replaceStep(state.doc, $cursor.before(), $cursor.after(), Slice.empty);\n if (delStep && delStep.slice.size < delStep.to - delStep.from) {\n if (dispatch) {\n let tr = state.tr.step(delStep);\n tr.setSelection(textblockAt(after, \"start\") ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos)), 1)\n : NodeSelection.create(tr.doc, tr.mapping.map($cut.pos)));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n }\n // If the next node is an atom, delete it\n if (after.isAtom && $cut.depth == $cursor.depth - 1) {\n if (dispatch)\n dispatch(state.tr.delete($cut.pos, $cut.pos + after.nodeSize).scrollIntoView());\n return true;\n }\n return false;\n};\n/**\nWhen the selection is empty and at the end of a textblock, select\nthe node coming after that textblock, if possible. This is intended\nto be bound to keys like delete, after\n[`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward) and similar deleting\ncommands, to provide a fall-back behavior when the schema doesn't\nallow deletion at the selected point.\n*/\nconst selectNodeForward = (state, dispatch, view) => {\n let { $head, empty } = state.selection, $cut = $head;\n if (!empty)\n return false;\n if ($head.parent.isTextblock) {\n if (view ? !view.endOfTextblock(\"forward\", state) : $head.parentOffset < $head.parent.content.size)\n return false;\n $cut = findCutAfter($head);\n }\n let node = $cut && $cut.nodeAfter;\n if (!node || !NodeSelection.isSelectable(node))\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos)).scrollIntoView());\n return true;\n};\nfunction findCutAfter($pos) {\n if (!$pos.parent.type.spec.isolating)\n for (let i = $pos.depth - 1; i >= 0; i--) {\n let parent = $pos.node(i);\n if ($pos.index(i) + 1 < parent.childCount)\n return $pos.doc.resolve($pos.after(i + 1));\n if (parent.type.spec.isolating)\n break;\n }\n return null;\n}\n/**\nJoin the selected block or, if there is a text selection, the\nclosest ancestor block of the selection that can be joined, with\nthe sibling above it.\n*/\nconst joinUp = (state, dispatch) => {\n let sel = state.selection, nodeSel = sel instanceof NodeSelection, point;\n if (nodeSel) {\n if (sel.node.isTextblock || !canJoin(state.doc, sel.from))\n return false;\n point = sel.from;\n }\n else {\n point = joinPoint(state.doc, sel.from, -1);\n if (point == null)\n return false;\n }\n if (dispatch) {\n let tr = state.tr.join(point);\n if (nodeSel)\n tr.setSelection(NodeSelection.create(tr.doc, point - state.doc.resolve(point).nodeBefore.nodeSize));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nJoin the selected block, or the closest ancestor of the selection\nthat can be joined, with the sibling after it.\n*/\nconst joinDown = (state, dispatch) => {\n let sel = state.selection, point;\n if (sel instanceof NodeSelection) {\n if (sel.node.isTextblock || !canJoin(state.doc, sel.to))\n return false;\n point = sel.to;\n }\n else {\n point = joinPoint(state.doc, sel.to, 1);\n if (point == null)\n return false;\n }\n if (dispatch)\n dispatch(state.tr.join(point).scrollIntoView());\n return true;\n};\n/**\nLift the selected block, or the closest ancestor block of the\nselection that can be lifted, out of its parent node.\n*/\nconst lift = (state, dispatch) => {\n let { $from, $to } = state.selection;\n let range = $from.blockRange($to), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n};\n/**\nIf the selection is in a node whose type has a truthy\n[`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, replace the\nselection with a newline character.\n*/\nconst newlineInCode = (state, dispatch) => {\n let { $head, $anchor } = state.selection;\n if (!$head.parent.type.spec.code || !$head.sameParent($anchor))\n return false;\n if (dispatch)\n dispatch(state.tr.insertText(\"\\n\").scrollIntoView());\n return true;\n};\nfunction defaultBlockAt(match) {\n for (let i = 0; i < match.edgeCount; i++) {\n let { type } = match.edge(i);\n if (type.isTextblock && !type.hasRequiredAttrs())\n return type;\n }\n return null;\n}\n/**\nWhen the selection is in a node with a truthy\n[`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, create a\ndefault block after the code block, and move the cursor there.\n*/\nconst exitCode = (state, dispatch) => {\n let { $head, $anchor } = state.selection;\n if (!$head.parent.type.spec.code || !$head.sameParent($anchor))\n return false;\n let above = $head.node(-1), after = $head.indexAfter(-1), type = defaultBlockAt(above.contentMatchAt(after));\n if (!type || !above.canReplaceWith(after, after, type))\n return false;\n if (dispatch) {\n let pos = $head.after(), tr = state.tr.replaceWith(pos, pos, type.createAndFill());\n tr.setSelection(Selection.near(tr.doc.resolve(pos), 1));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nIf a block node is selected, create an empty paragraph before (if\nit is its parent's first child) or after it.\n*/\nconst createParagraphNear = (state, dispatch) => {\n let sel = state.selection, { $from, $to } = sel;\n if (sel instanceof AllSelection || $from.parent.inlineContent || $to.parent.inlineContent)\n return false;\n let type = defaultBlockAt($to.parent.contentMatchAt($to.indexAfter()));\n if (!type || !type.isTextblock)\n return false;\n if (dispatch) {\n let side = (!$from.parentOffset && $to.index() < $to.parent.childCount ? $from : $to).pos;\n let tr = state.tr.insert(side, type.createAndFill());\n tr.setSelection(TextSelection.create(tr.doc, side + 1));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nIf the cursor is in an empty textblock that can be lifted, lift the\nblock.\n*/\nconst liftEmptyBlock = (state, dispatch) => {\n let { $cursor } = state.selection;\n if (!$cursor || $cursor.parent.content.size)\n return false;\n if ($cursor.depth > 1 && $cursor.after() != $cursor.end(-1)) {\n let before = $cursor.before();\n if (canSplit(state.doc, before)) {\n if (dispatch)\n dispatch(state.tr.split(before).scrollIntoView());\n return true;\n }\n }\n let range = $cursor.blockRange(), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n};\n/**\nCreate a variant of [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock) that uses\na custom function to determine the type of the newly split off block.\n*/\nfunction splitBlockAs(splitNode) {\n return (state, dispatch) => {\n let { $from, $to } = state.selection;\n if (state.selection instanceof NodeSelection && state.selection.node.isBlock) {\n if (!$from.parentOffset || !canSplit(state.doc, $from.pos))\n return false;\n if (dispatch)\n dispatch(state.tr.split($from.pos).scrollIntoView());\n return true;\n }\n if (!$from.depth)\n return false;\n let types = [];\n let splitDepth, deflt, atEnd = false, atStart = false;\n for (let d = $from.depth;; d--) {\n let node = $from.node(d);\n if (node.isBlock) {\n atEnd = $from.end(d) == $from.pos + ($from.depth - d);\n atStart = $from.start(d) == $from.pos - ($from.depth - d);\n deflt = defaultBlockAt($from.node(d - 1).contentMatchAt($from.indexAfter(d - 1)));\n let splitType = splitNode && splitNode($to.parent, atEnd, $from);\n types.unshift(splitType || (atEnd && deflt ? { type: deflt } : null));\n splitDepth = d;\n break;\n }\n else {\n if (d == 1)\n return false;\n types.unshift(null);\n }\n }\n let tr = state.tr;\n if (state.selection instanceof TextSelection || state.selection instanceof AllSelection)\n tr.deleteSelection();\n let splitPos = tr.mapping.map($from.pos);\n let can = canSplit(tr.doc, splitPos, types.length, types);\n if (!can) {\n types[0] = deflt ? { type: deflt } : null;\n can = canSplit(tr.doc, splitPos, types.length, types);\n }\n if (!can)\n return false;\n tr.split(splitPos, types.length, types);\n if (!atEnd && atStart && $from.node(splitDepth).type != deflt) {\n let first = tr.mapping.map($from.before(splitDepth)), $first = tr.doc.resolve(first);\n if (deflt && $from.node(splitDepth - 1).canReplaceWith($first.index(), $first.index() + 1, deflt))\n tr.setNodeMarkup(tr.mapping.map($from.before(splitDepth)), deflt);\n }\n if (dispatch)\n dispatch(tr.scrollIntoView());\n return true;\n };\n}\n/**\nSplit the parent block of the selection. If the selection is a text\nselection, also delete its content.\n*/\nconst splitBlock = splitBlockAs();\n/**\nActs like [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock), but without\nresetting the set of active marks at the cursor.\n*/\nconst splitBlockKeepMarks = (state, dispatch) => {\n return splitBlock(state, dispatch && (tr => {\n let marks = state.storedMarks || (state.selection.$to.parentOffset && state.selection.$from.marks());\n if (marks)\n tr.ensureMarks(marks);\n dispatch(tr);\n }));\n};\n/**\nMove the selection to the node wrapping the current selection, if\nany. (Will not select the document node.)\n*/\nconst selectParentNode = (state, dispatch) => {\n let { $from, to } = state.selection, pos;\n let same = $from.sharedDepth(to);\n if (same == 0)\n return false;\n pos = $from.before(same);\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, pos)));\n return true;\n};\n/**\nSelect the whole document.\n*/\nconst selectAll = (state, dispatch) => {\n if (dispatch)\n dispatch(state.tr.setSelection(new AllSelection(state.doc)));\n return true;\n};\nfunction joinMaybeClear(state, $pos, dispatch) {\n let before = $pos.nodeBefore, after = $pos.nodeAfter, index = $pos.index();\n if (!before || !after || !before.type.compatibleContent(after.type))\n return false;\n if (!before.content.size && $pos.parent.canReplace(index - 1, index)) {\n if (dispatch)\n dispatch(state.tr.delete($pos.pos - before.nodeSize, $pos.pos).scrollIntoView());\n return true;\n }\n if (!$pos.parent.canReplace(index, index + 1) || !(after.isTextblock || canJoin(state.doc, $pos.pos)))\n return false;\n if (dispatch)\n dispatch(state.tr.join($pos.pos).scrollIntoView());\n return true;\n}\nfunction deleteBarrier(state, $cut, dispatch, dir) {\n let before = $cut.nodeBefore, after = $cut.nodeAfter, conn, match;\n let isolated = before.type.spec.isolating || after.type.spec.isolating;\n if (!isolated && joinMaybeClear(state, $cut, dispatch))\n return true;\n let canDelAfter = !isolated && $cut.parent.canReplace($cut.index(), $cut.index() + 1);\n if (canDelAfter &&\n (conn = (match = before.contentMatchAt(before.childCount)).findWrapping(after.type)) &&\n match.matchType(conn[0] || after.type).validEnd) {\n if (dispatch) {\n let end = $cut.pos + after.nodeSize, wrap = Fragment.empty;\n for (let i = conn.length - 1; i >= 0; i--)\n wrap = Fragment.from(conn[i].create(null, wrap));\n wrap = Fragment.from(before.copy(wrap));\n let tr = state.tr.step(new ReplaceAroundStep($cut.pos - 1, end, $cut.pos, end, new Slice(wrap, 1, 0), conn.length, true));\n let $joinAt = tr.doc.resolve(end + 2 * conn.length);\n if ($joinAt.nodeAfter && $joinAt.nodeAfter.type == before.type &&\n canJoin(tr.doc, $joinAt.pos))\n tr.join($joinAt.pos);\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n let selAfter = after.type.spec.isolating || (dir > 0 && isolated) ? null : Selection.findFrom($cut, 1);\n let range = selAfter && selAfter.$from.blockRange(selAfter.$to), target = range && liftTarget(range);\n if (target != null && target >= $cut.depth) {\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n }\n if (canDelAfter && textblockAt(after, \"start\", true) && textblockAt(before, \"end\")) {\n let at = before, wrap = [];\n for (;;) {\n wrap.push(at);\n if (at.isTextblock)\n break;\n at = at.lastChild;\n }\n let afterText = after, afterDepth = 1;\n for (; !afterText.isTextblock; afterText = afterText.firstChild)\n afterDepth++;\n if (at.canReplace(at.childCount, at.childCount, afterText.content)) {\n if (dispatch) {\n let end = Fragment.empty;\n for (let i = wrap.length - 1; i >= 0; i--)\n end = Fragment.from(wrap[i].copy(end));\n let tr = state.tr.step(new ReplaceAroundStep($cut.pos - wrap.length, $cut.pos + after.nodeSize, $cut.pos + afterDepth, $cut.pos + after.nodeSize - afterDepth, new Slice(end, wrap.length, 0), 0, true));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n }\n return false;\n}\nfunction selectTextblockSide(side) {\n return function (state, dispatch) {\n let sel = state.selection, $pos = side < 0 ? sel.$from : sel.$to;\n let depth = $pos.depth;\n while ($pos.node(depth).isInline) {\n if (!depth)\n return false;\n depth--;\n }\n if (!$pos.node(depth).isTextblock)\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(TextSelection.create(state.doc, side < 0 ? $pos.start(depth) : $pos.end(depth))));\n return true;\n };\n}\n/**\nMoves the cursor to the start of current text block.\n*/\nconst selectTextblockStart = selectTextblockSide(-1);\n/**\nMoves the cursor to the end of current text block.\n*/\nconst selectTextblockEnd = selectTextblockSide(1);\n// Parameterized commands\n/**\nWrap the selection in a node of the given type with the given\nattributes.\n*/\nfunction wrapIn(nodeType, attrs = null) {\n return function (state, dispatch) {\n let { $from, $to } = state.selection;\n let range = $from.blockRange($to), wrapping = range && findWrapping(range, nodeType, attrs);\n if (!wrapping)\n return false;\n if (dispatch)\n dispatch(state.tr.wrap(range, wrapping).scrollIntoView());\n return true;\n };\n}\n/**\nReturns a command that tries to set the selected textblocks to the\ngiven node type with the given attributes.\n*/\nfunction setBlockType(nodeType, attrs = null) {\n return function (state, dispatch) {\n let applicable = false;\n for (let i = 0; i < state.selection.ranges.length && !applicable; i++) {\n let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];\n state.doc.nodesBetween(from, to, (node, pos) => {\n if (applicable)\n return false;\n if (!node.isTextblock || node.hasMarkup(nodeType, attrs))\n return;\n if (node.type == nodeType) {\n applicable = true;\n }\n else {\n let $pos = state.doc.resolve(pos), index = $pos.index();\n applicable = $pos.parent.canReplaceWith(index, index + 1, nodeType);\n }\n });\n }\n if (!applicable)\n return false;\n if (dispatch) {\n let tr = state.tr;\n for (let i = 0; i < state.selection.ranges.length; i++) {\n let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];\n tr.setBlockType(from, to, nodeType, attrs);\n }\n dispatch(tr.scrollIntoView());\n }\n return true;\n };\n}\nfunction markApplies(doc, ranges, type, enterAtoms) {\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false;\n doc.nodesBetween($from.pos, $to.pos, (node, pos) => {\n if (can || !enterAtoms && node.isAtom && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos)\n return false;\n can = node.inlineContent && node.type.allowsMarkType(type);\n });\n if (can)\n return true;\n }\n return false;\n}\nfunction removeInlineAtoms(ranges) {\n let result = [];\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n $from.doc.nodesBetween($from.pos, $to.pos, (node, pos) => {\n if (node.isAtom && node.content.size && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos) {\n if (pos + 1 > $from.pos)\n result.push(new SelectionRange($from, $from.doc.resolve(pos + 1)));\n $from = $from.doc.resolve(pos + 1 + node.content.size);\n return false;\n }\n });\n if ($from.pos < $to.pos)\n result.push(new SelectionRange($from, $to));\n }\n return result;\n}\n/**\nCreate a command function that toggles the given mark with the\ngiven attributes. Will return `false` when the current selection\ndoesn't support that mark. This will remove the mark if any marks\nof that type exist in the selection, or add it otherwise. If the\nselection is empty, this applies to the [stored\nmarks](https://prosemirror.net/docs/ref/#state.EditorState.storedMarks) instead of a range of the\ndocument.\n*/\nfunction toggleMark(markType, attrs = null, options) {\n let removeWhenPresent = (options && options.removeWhenPresent) !== false;\n let enterAtoms = (options && options.enterInlineAtoms) !== false;\n let dropSpace = !(options && options.includeWhitespace);\n return function (state, dispatch) {\n let { empty, $cursor, ranges } = state.selection;\n if ((empty && !$cursor) || !markApplies(state.doc, ranges, markType, enterAtoms))\n return false;\n if (dispatch) {\n if ($cursor) {\n if (markType.isInSet(state.storedMarks || $cursor.marks()))\n dispatch(state.tr.removeStoredMark(markType));\n else\n dispatch(state.tr.addStoredMark(markType.create(attrs)));\n }\n else {\n let add, tr = state.tr;\n if (!enterAtoms)\n ranges = removeInlineAtoms(ranges);\n if (removeWhenPresent) {\n add = !ranges.some(r => state.doc.rangeHasMark(r.$from.pos, r.$to.pos, markType));\n }\n else {\n add = !ranges.every(r => {\n let missing = false;\n tr.doc.nodesBetween(r.$from.pos, r.$to.pos, (node, pos, parent) => {\n if (missing)\n return false;\n missing = !markType.isInSet(node.marks) && !!parent && parent.type.allowsMarkType(markType) &&\n !(node.isText && /^\\s*$/.test(node.textBetween(Math.max(0, r.$from.pos - pos), Math.min(node.nodeSize, r.$to.pos - pos))));\n });\n return !missing;\n });\n }\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n if (!add) {\n tr.removeMark($from.pos, $to.pos, markType);\n }\n else {\n let from = $from.pos, to = $to.pos, start = $from.nodeAfter, end = $to.nodeBefore;\n let spaceStart = dropSpace && start && start.isText ? /^\\s*/.exec(start.text)[0].length : 0;\n let spaceEnd = dropSpace && end && end.isText ? /\\s*$/.exec(end.text)[0].length : 0;\n if (from + spaceStart < to) {\n from += spaceStart;\n to -= spaceEnd;\n }\n tr.addMark(from, to, markType.create(attrs));\n }\n }\n dispatch(tr.scrollIntoView());\n }\n }\n return true;\n };\n}\nfunction wrapDispatchForJoin(dispatch, isJoinable) {\n return (tr) => {\n if (!tr.isGeneric)\n return dispatch(tr);\n let ranges = [];\n for (let i = 0; i < tr.mapping.maps.length; i++) {\n let map = tr.mapping.maps[i];\n for (let j = 0; j < ranges.length; j++)\n ranges[j] = map.map(ranges[j]);\n map.forEach((_s, _e, from, to) => ranges.push(from, to));\n }\n // Figure out which joinable points exist inside those ranges,\n // by checking all node boundaries in their parent nodes.\n let joinable = [];\n for (let i = 0; i < ranges.length; i += 2) {\n let from = ranges[i], to = ranges[i + 1];\n let $from = tr.doc.resolve(from), depth = $from.sharedDepth(to), parent = $from.node(depth);\n for (let index = $from.indexAfter(depth), pos = $from.after(depth + 1); pos <= to; ++index) {\n let after = parent.maybeChild(index);\n if (!after)\n break;\n if (index && joinable.indexOf(pos) == -1) {\n let before = parent.child(index - 1);\n if (before.type == after.type && isJoinable(before, after))\n joinable.push(pos);\n }\n pos += after.nodeSize;\n }\n }\n // Join the joinable points\n joinable.sort((a, b) => a - b);\n for (let i = joinable.length - 1; i >= 0; i--) {\n if (canJoin(tr.doc, joinable[i]))\n tr.join(joinable[i]);\n }\n dispatch(tr);\n };\n}\n/**\nWrap a command so that, when it produces a transform that causes\ntwo joinable nodes to end up next to each other, those are joined.\nNodes are considered joinable when they are of the same type and\nwhen the `isJoinable` predicate returns true for them or, if an\narray of strings was passed, if their node type name is in that\narray.\n*/\nfunction autoJoin(command, isJoinable) {\n let canJoin = Array.isArray(isJoinable) ? (node) => isJoinable.indexOf(node.type.name) > -1\n : isJoinable;\n return (state, dispatch, view) => command(state, dispatch && wrapDispatchForJoin(dispatch, canJoin), view);\n}\n/**\nCombine a number of command functions into a single function (which\ncalls them one by one until one returns true).\n*/\nfunction chainCommands(...commands) {\n return function (state, dispatch, view) {\n for (let i = 0; i < commands.length; i++)\n if (commands[i](state, dispatch, view))\n return true;\n return false;\n };\n}\nlet backspace = chainCommands(deleteSelection, joinBackward, selectNodeBackward);\nlet del = chainCommands(deleteSelection, joinForward, selectNodeForward);\n/**\nA basic keymap containing bindings not specific to any schema.\nBinds the following keys (when multiple commands are listed, they\nare chained with [`chainCommands`](https://prosemirror.net/docs/ref/#commands.chainCommands)):\n\n* **Enter** to `newlineInCode`, `createParagraphNear`, `liftEmptyBlock`, `splitBlock`\n* **Mod-Enter** to `exitCode`\n* **Backspace** and **Mod-Backspace** to `deleteSelection`, `joinBackward`, `selectNodeBackward`\n* **Delete** and **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`\n* **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`\n* **Mod-a** to `selectAll`\n*/\nconst pcBaseKeymap = {\n \"Enter\": chainCommands(newlineInCode, createParagraphNear, liftEmptyBlock, splitBlock),\n \"Mod-Enter\": exitCode,\n \"Backspace\": backspace,\n \"Mod-Backspace\": backspace,\n \"Shift-Backspace\": backspace,\n \"Delete\": del,\n \"Mod-Delete\": del,\n \"Mod-a\": selectAll\n};\n/**\nA copy of `pcBaseKeymap` that also binds **Ctrl-h** like Backspace,\n**Ctrl-d** like Delete, **Alt-Backspace** like Ctrl-Backspace, and\n**Ctrl-Alt-Backspace**, **Alt-Delete**, and **Alt-d** like\nCtrl-Delete.\n*/\nconst macBaseKeymap = {\n \"Ctrl-h\": pcBaseKeymap[\"Backspace\"],\n \"Alt-Backspace\": pcBaseKeymap[\"Mod-Backspace\"],\n \"Ctrl-d\": pcBaseKeymap[\"Delete\"],\n \"Ctrl-Alt-Backspace\": pcBaseKeymap[\"Mod-Delete\"],\n \"Alt-Delete\": pcBaseKeymap[\"Mod-Delete\"],\n \"Alt-d\": pcBaseKeymap[\"Mod-Delete\"],\n \"Ctrl-a\": selectTextblockStart,\n \"Ctrl-e\": selectTextblockEnd\n};\nfor (let key in pcBaseKeymap)\n macBaseKeymap[key] = pcBaseKeymap[key];\nconst mac = typeof navigator != \"undefined\" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform)\n // @ts-ignore\n : typeof os != \"undefined\" && os.platform ? os.platform() == \"darwin\" : false;\n/**\nDepending on the detected platform, this will hold\n[`pcBasekeymap`](https://prosemirror.net/docs/ref/#commands.pcBaseKeymap) or\n[`macBaseKeymap`](https://prosemirror.net/docs/ref/#commands.macBaseKeymap).\n*/\nconst baseKeymap = mac ? macBaseKeymap : pcBaseKeymap;\n\nexport { autoJoin, baseKeymap, chainCommands, createParagraphNear, deleteSelection, exitCode, joinBackward, joinDown, joinForward, joinTextblockBackward, joinTextblockForward, joinUp, lift, liftEmptyBlock, macBaseKeymap, newlineInCode, pcBaseKeymap, selectAll, selectNodeBackward, selectNodeForward, selectParentNode, selectTextblockEnd, selectTextblockStart, setBlockType, splitBlock, splitBlockAs, splitBlockKeepMarks, toggleMark, wrapIn };\n"],"names":["liftTarget","NodeSelection","replaceStep","Slice","Selection","ReplaceStep","TextSelection","canJoin","joinPoint","AllSelection","canSplit","index","Fragment","ReplaceAroundStep","findWrapping"],"mappings":";;;;;;AAIA;AACA;AACA;AACK,MAAC,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK;AAC7C,IAAI,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK;AAC7B,QAAQ,OAAO,KAAK;AACpB,IAAI,IAAI,QAAQ;AAChB,QAAQ,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,EAAE,CAAC,cAAc,EAAE,CAAC;AAC7D,IAAI,OAAO,IAAI;AACf;AACA,SAAS,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE;AACnC,IAAI,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,SAAS;AACrC,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK;AAClE,UAAU,OAAO,CAAC,YAAY,GAAG,CAAC,CAAC;AACnC,QAAQ,OAAO,IAAI;AACnB,IAAI,OAAO,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,YAAY,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,KAAK;AAChD,IA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B,IAAI,OAAO,EAAE,aAAa,CAAC,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,UAAU,CAQzF;AAmBY,OAAO,SAAS,IAAI,WAAW,GAAG,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ;AAC1F;AACA,MAAM,OAAO,EAAE,IAAI,WAAW,IAAI,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,EAAE,IAAI,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -352,6 +352,14 @@ function mustPreserveItems(state) {
352
352
  }
353
353
  return cachedPreserveItems;
354
354
  }
355
+ /**
356
+ Set a flag on the given transaction that will prevent further steps
357
+ from being appended to an existing history event (so that they
358
+ require a separate undo command to undo).
359
+ */
360
+ function closeHistory(tr) {
361
+ return tr.setMeta(closeHistoryKey, true);
362
+ }
355
363
  const historyKey = new index.PluginKey("history");
356
364
  const closeHistoryKey = new index.PluginKey("closeHistory");
357
365
  /**
@@ -413,6 +421,7 @@ A command function that redoes the last undone change, if any.
413
421
  */
414
422
  const redo = buildCommand(true, true);
415
423
 
424
+ exports.closeHistory = closeHistory;
416
425
  exports.history = history;
417
426
  exports.redo = redo;
418
427
  exports.undo = undo;