@iblai/iblai-js 2.75.0 → 2.76.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web-containers/source/canvas/canvas-rich-text-editor.js +8 -8
- package/dist/web-containers/source/canvas/tiptap-math-extension.js +3 -3
- package/dist/web-containers/source/canvas/tiptap-math-extension.js.map +1 -1
- package/dist/web-containers/source/canvas-rich-text-editor.js +8 -8
- package/dist/web-containers/source/components/canvas/canvas-rich-text-editor.js +8 -8
- package/dist/web-containers/source/components/canvas/tiptap-math-extension.js +3 -3
- package/dist/web-containers/source/components/canvas/tiptap-math-extension.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/human-support-tab/use-support-tickets-with-pagination.js +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/tasks-tab/tasks-tab-content.js +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/tasks-tab/tasks-tab-toolbar.js +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/tasks-tab.js +1 -1
- package/dist/web-containers/source/components/modals/user-profile-modal.js +1 -1
- package/dist/web-containers/source/components/rich-text-editor.js +13 -13
- package/dist/web-containers/source/components/rich-text-editor.js.map +1 -1
- package/dist/web-containers/source/components/summernote-text-editor.js +2 -2
- package/dist/web-containers/source/components/summernote-text-editor.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/human-support-tab/use-support-tickets-with-pagination.js +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/tasks-tab/tasks-tab-content.js +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/tasks-tab/tasks-tab-toolbar.js +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/tasks-tab.js +1 -1
- package/dist/web-containers/source/human-support-tab/use-support-tickets-with-pagination.js +1 -1
- package/dist/web-containers/source/lib/sanitize-html.js +2 -2
- package/dist/web-containers/source/lib/sanitize-html.js.map +1 -1
- package/dist/web-containers/source/lib/utils.js +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/human-support-tab/use-support-tickets-with-pagination.js +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/tasks-tab/tasks-tab-content.js +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/tasks-tab/tasks-tab-toolbar.js +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/tasks-tab.js +1 -1
- package/dist/web-containers/source/modals/user-profile-modal.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js +6554 -0
- package/dist/web-containers/source/node_modules/.pnpm/@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js.map +1 -0
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/node_modules/.pnpm/@tiptap_starter-kit@3.14.0/node_modules/@tiptap/starter-kit/dist/index.js +17 -17
- package/dist/web-containers/source/node_modules/.pnpm/dompurify@3.4.18/node_modules/dompurify/dist/purify.es.js +2401 -0
- package/dist/web-containers/source/node_modules/.pnpm/dompurify@3.4.18/node_modules/dompurify/dist/purify.es.js.map +1 -0
- package/dist/web-containers/source/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.js +2 -2
- package/dist/web-containers/source/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.js +9 -1
- package/dist/web-containers/source/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.js.map +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.js +1 -1
- package/dist/web-containers/source/rich-text-editor.js +13 -13
- package/dist/web-containers/source/rich-text-editor.js.map +1 -1
- package/dist/web-containers/source/sanitize-html.js +2 -2
- package/dist/web-containers/source/sanitize-html.js.map +1 -1
- package/dist/web-containers/source/skills-tab/index.js +1 -1
- package/dist/web-containers/source/summernote-text-editor.js +2 -2
- package/dist/web-containers/source/summernote-text-editor.js.map +1 -1
- package/dist/web-containers/source/tabs/human-support-tab/use-support-tickets-with-pagination.js +1 -1
- package/dist/web-containers/source/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/tabs/tasks-tab/tasks-tab-content.js +1 -1
- package/dist/web-containers/source/tabs/tasks-tab/tasks-tab-toolbar.js +1 -1
- package/dist/web-containers/source/tabs/tasks-tab.js +1 -1
- package/dist/web-containers/source/tasks-tab/tasks-tab-content.js +1 -1
- package/dist/web-containers/source/tasks-tab/tasks-tab-toolbar.js +1 -1
- package/dist/web-containers/source/tasks-tab-content.js +1 -1
- package/dist/web-containers/source/tasks-tab-toolbar.js +1 -1
- package/dist/web-containers/source/tasks-tab.js +1 -1
- package/dist/web-containers/source/tiptap-math-extension.js +3 -3
- package/dist/web-containers/source/tiptap-math-extension.js.map +1 -1
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/use-support-tickets-with-pagination.js +1 -1
- package/dist/web-containers/source/user-profile-modal.js +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/web-containers/source/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js +0 -6130
- package/dist/web-containers/source/node_modules/.pnpm/@tiptap_core@3.20.4_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js.map +0 -1
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/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
- package/dist/web-containers/source/node_modules/.pnpm/dompurify@3.4.11/node_modules/dompurify/dist/purify.es.js +0 -2249
- package/dist/web-containers/source/node_modules/.pnpm/dompurify@3.4.11/node_modules/dompurify/dist/purify.es.js.map +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//#region src/jsx-runtime.ts
|
|
2
|
+
const jsxElements = /* @__PURE__ */ new WeakSet();
|
|
3
|
+
const jsxFragments = /* @__PURE__ */ new WeakSet();
|
|
4
|
+
/** Create a new JSX element from the given spec */
|
|
5
|
+
function createJSXElement(spec) {
|
|
6
|
+
const element = spec;
|
|
7
|
+
jsxElements.add(element);
|
|
8
|
+
return element;
|
|
9
|
+
}
|
|
10
|
+
/** Check if a spec is a JSX element */
|
|
11
|
+
function isJSXElement(value) {
|
|
12
|
+
return Array.isArray(value) && jsxElements.has(value);
|
|
13
|
+
}
|
|
14
|
+
function flattenFragmentChildren(children) {
|
|
15
|
+
return children.flatMap((child) => {
|
|
16
|
+
if (child == null) return [];
|
|
17
|
+
if (Array.isArray(child) && jsxFragments.has(child) && !isJSXElement(child)) return flattenFragmentChildren(child);
|
|
18
|
+
return [child];
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function render(tag, attributes) {
|
|
22
|
+
if (tag === "slot") return 0;
|
|
23
|
+
if (tag instanceof Function) {
|
|
24
|
+
const result = tag(attributes);
|
|
25
|
+
if (Array.isArray(result) && !isJSXElement(result) && !jsxFragments.has(result)) return createJSXElement(result);
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
const { children, ...rest } = attributes !== null && attributes !== void 0 ? attributes : {};
|
|
29
|
+
if (tag === "svg") throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
|
|
30
|
+
if (Array.isArray(children)) {
|
|
31
|
+
if (isJSXElement(children)) return createJSXElement([
|
|
32
|
+
tag,
|
|
33
|
+
rest,
|
|
34
|
+
children
|
|
35
|
+
]);
|
|
36
|
+
if (children.length === 0) return createJSXElement([tag, rest]);
|
|
37
|
+
const flattenedChildren = flattenFragmentChildren(children);
|
|
38
|
+
if (flattenedChildren.length === 0) return createJSXElement([tag, rest]);
|
|
39
|
+
return createJSXElement([
|
|
40
|
+
tag,
|
|
41
|
+
rest,
|
|
42
|
+
...flattenedChildren
|
|
43
|
+
]);
|
|
44
|
+
}
|
|
45
|
+
if (children !== void 0 && children !== null) return createJSXElement([
|
|
46
|
+
tag,
|
|
47
|
+
rest,
|
|
48
|
+
children
|
|
49
|
+
]);
|
|
50
|
+
return createJSXElement([tag, rest]);
|
|
51
|
+
}
|
|
52
|
+
const h = (tag, attributes) => render(tag, attributes);
|
|
53
|
+
|
|
54
|
+
export { h as createElement, h, h as jsx };
|
|
55
|
+
//# sourceMappingURL=jsx-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/@tiptap+core@3.34.0_@tiptap+pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js"],"sourcesContent":["//#region src/jsx-runtime.ts\nconst jsxElements = /* @__PURE__ */ new WeakSet();\nconst jsxFragments = /* @__PURE__ */ new WeakSet();\n/** Create a new JSX element from the given spec */\nfunction createJSXElement(spec) {\n\tconst element = spec;\n\tjsxElements.add(element);\n\treturn element;\n}\n/** Check if a spec is a JSX element */\nfunction isJSXElement(value) {\n\treturn Array.isArray(value) && jsxElements.has(value);\n}\nfunction flattenFragmentChildren(children) {\n\treturn children.flatMap((child) => {\n\t\tif (child == null) return [];\n\t\tif (Array.isArray(child) && jsxFragments.has(child) && !isJSXElement(child)) return flattenFragmentChildren(child);\n\t\treturn [child];\n\t});\n}\nfunction Fragment(props) {\n\tjsxFragments.add(props.children);\n\treturn props.children;\n}\nfunction render(tag, attributes) {\n\tif (tag === \"slot\") return 0;\n\tif (tag instanceof Function) {\n\t\tconst result = tag(attributes);\n\t\tif (Array.isArray(result) && !isJSXElement(result) && !jsxFragments.has(result)) return createJSXElement(result);\n\t\treturn result;\n\t}\n\tconst { children, ...rest } = attributes !== null && attributes !== void 0 ? attributes : {};\n\tif (tag === \"svg\") throw new Error(\"SVG elements are not supported in the JSX syntax, use the array syntax instead\");\n\tif (Array.isArray(children)) {\n\t\tif (isJSXElement(children)) return createJSXElement([\n\t\t\ttag,\n\t\t\trest,\n\t\t\tchildren\n\t\t]);\n\t\tif (children.length === 0) return createJSXElement([tag, rest]);\n\t\tconst flattenedChildren = flattenFragmentChildren(children);\n\t\tif (flattenedChildren.length === 0) return createJSXElement([tag, rest]);\n\t\treturn createJSXElement([\n\t\t\ttag,\n\t\t\trest,\n\t\t\t...flattenedChildren\n\t\t]);\n\t}\n\tif (children !== void 0 && children !== null) return createJSXElement([\n\t\ttag,\n\t\trest,\n\t\tchildren\n\t]);\n\treturn createJSXElement([tag, rest]);\n}\nconst h = (tag, attributes) => render(tag, attributes);\nconst jsxs = (tag, attributes) => render(tag, attributes);\nconst jsxDEV = (tag, attributes, _key, _isStaticChildren) => {\n\treturn render(tag, attributes);\n};\n//#endregion\nexport { Fragment, h as createElement, h, h as jsx, jsxDEV, jsxs };\n\n//# sourceMappingURL=jsx-runtime.js.map"],"names":[],"mappings":"AAAA;AACA,MAAM,WAAW,mBAAmB,IAAI,OAAO,EAAE;AACjD,MAAM,YAAY,mBAAmB,IAAI,OAAO,EAAE;AAClD;AACA,SAAS,gBAAgB,CAAC,IAAI,EAAE;AAChC,CAAC,MAAM,OAAO,GAAG,IAAI;AACrB,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;AACzB,CAAC,OAAO,OAAO;AACf;AACA;AACA,SAAS,YAAY,CAAC,KAAK,EAAE;AAC7B,CAAC,OAAO,KAAK,CAAC,OAAO,CAAC,KA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,IAAI;AACP,GAAG;AACH,GAAG,CAAC;AACJ,EAAE,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,OAAO,gBAAgB,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AACjE,EAAE,MAAM,iBAAiB,GAAG,uBAAuB,CAAC,QAAQ,CAAC;AAC7D,EAAE,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE,OAAO,gBAAgB,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAC1E,EAAE,OAAO,gBAAgB,CAAC;AAC1B,GAAG,GAAG;AACN,GAAG,IAAI;AACP,GAAG,GAAG;AACN,GAAG,CAAC;AACJ,CAAC;AACD,CAAC,IAAI,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,IAAI,EAAE,OAAO,gBAAgB,CAAC;AACvE,EAAE,GAAG;AACL,EAAE,IAAI;AACN,EAAE;AACF,EAAE,CAAC;AACH,CAAC,OAAO,gBAAgB,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AACrC;AACK,MAAC,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,KAAK,MAAM,CAAC,GAAG,EAAE,UAAU;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { __exportAll as t };
|
|
14
|
+
//# sourceMappingURL=rolldown-runtime-D7D4PA-g.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolldown-runtime-D7D4PA-g.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+core@3.34.0_@tiptap+pm@3.20.4/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js"],"sourcesContent":["//#region \\0rolldown/runtime.js\nvar __defProp = Object.defineProperty;\nvar __exportAll = (all, no_symbols) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\tif (!no_symbols) __defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\treturn target;\n};\n//#endregion\nexport { __exportAll as t };\n"],"names":[],"mappings":"AAAA;AACA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc;AAClC,IAAC,WAAW,GAAG,CAAC,GAAG,EAAE,UAAU,KAAK;AACvC,CAAC,IAAI,MAAM,GAAG,EAAE;AAChB,CAAC,KAAK,IAAI,IAAI,IAAI,GAAG,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE;AAC/C,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC;AAChB,EAAE,UAAU,EAAE;AACd,EAAE,CAAC;AACH,CAAkB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC5E,CAAC,OAAO,MAAM;AACd;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Node
|
|
2
|
-
import { createElement as h } from '../../../../../@tiptap_core@3.
|
|
1
|
+
import { Node, wrappingInputRule, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
|
+
import { createElement as h } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js';
|
|
3
3
|
|
|
4
4
|
// src/blockquote.tsx
|
|
5
5
|
var inputRegex = /^\s*>\s$/;
|
|
6
|
-
var Blockquote =
|
|
6
|
+
var Blockquote = Node.create({
|
|
7
7
|
name: "blockquote",
|
|
8
8
|
addOptions() {
|
|
9
9
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../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"],"sourcesContent":["// src/blockquote.tsx\nimport { mergeAttributes, Node, wrappingInputRule } from \"@tiptap/core\";\nimport { jsx } from \"@tiptap/core/jsx-runtime\";\nvar inputRegex = /^\\s*>\\s$/;\nvar Blockquote = Node.create({\n name: \"blockquote\",\n addOptions() {\n return {\n HTMLAttributes: {}\n };\n },\n content: \"block+\",\n group: \"block\",\n defining: true,\n parseHTML() {\n return [{ tag: \"blockquote\" }];\n },\n renderHTML({ HTMLAttributes }) {\n return /* @__PURE__ */ jsx(\"blockquote\", { ...mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), children: /* @__PURE__ */ jsx(\"slot\", {}) });\n },\n parseMarkdown: (token, helpers) => {\n var _a;\n const parseBlockChildren = (_a = helpers.parseBlockChildren) != null ? _a : helpers.parseChildren;\n return helpers.createNode(\"blockquote\", void 0, parseBlockChildren(token.tokens || []));\n },\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return \"\";\n }\n const prefix = \">\";\n const result = [];\n node.content.forEach((child, index) => {\n var _a, _b;\n const childContent = (_b = (_a = h.renderChild) == null ? void 0 : _a.call(h, child, index)) != null ? _b : h.renderChildren([child]);\n const lines = childContent.split(\"\\n\");\n const linesWithPrefix = lines.map((line) => {\n if (line.trim() === \"\") {\n return prefix;\n }\n return `${prefix} ${line}`;\n });\n result.push(linesWithPrefix.join(\"\\n\"));\n });\n return result.join(`\n${prefix}\n`);\n },\n addCommands() {\n return {\n setBlockquote: () => ({ commands }) => {\n return commands.wrapIn(this.name);\n },\n toggleBlockquote: () => ({ commands }) => {\n return commands.toggleWrap(this.name);\n },\n unsetBlockquote: () => ({ commands }) => {\n return commands.lift(this.name);\n }\n };\n },\n addKeyboardShortcuts() {\n return {\n \"Mod-Shift-b\": () => this.editor.commands.toggleBlockquote()\n };\n },\n addInputRules() {\n return [\n wrappingInputRule({\n find: inputRegex,\n type: this.type\n })\n ];\n }\n});\n\n// src/index.ts\nvar index_default = Blockquote;\nexport {\n Blockquote,\n index_default as default,\n inputRegex\n};\n//# sourceMappingURL=index.js.map"],"names":["jsx"],"mappings":";;;AAAA;AAGG,IAAC,UAAU,GAAG;AACd,IAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC;AAC7B,EAAE,IAAI,EAAE,YAAY;AACpB,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,cAAc,EAAE;AACtB,KAAK;AACL,EAAE,CAAC;AACH,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE,SAAS,GAAG;AACd,IAAI,OAAO,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;AAClC,EAAE,CAAC;AACH,EAAE,UAAU,CAAC,EAAE,cAAc,EAAE,EAAE;AACjC,IAAI,uBAAuBA,CAAG,CAAC,YAAY,EAAE,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,QAAQ,kBAAkBA,CAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;AAC5J,EAAE,CAAC;AACH,EAAE,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK;AACrC,IAAI,IAAI,EAAE;AACV,IAAI,MAAM,kBAAkB,GAAG,CAAC,EAAE,GAAG,OAAO,CAAC,kBAAkB,KAAK,IAAI,GAAG,EAAE,GAAG,OAAO,CAAC,aAAa;AACrG,IAAI,OAAO,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,kBAAkB,CAAC,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,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK;AAC7C,QAAQ,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;AACzC,MAAM,CAAC;AACP,MAAM,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK;AAChD,QAAQ,OAAO,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;AAC7C,MAAM,CAAC;AACP,MAAM,eAAe,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK;AAC/C,QAAQ,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACvC,MAAM;AACN,KAAK;AACL,EAAE,CAAC;AACH,EAAE,oBAAoB,GAAG;AACzB,IAAI,OAAO;AACX,MAAM,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB;AAChE,KAAK;AACL,EAAE,CAAC;AACH,EAAE,aAAa,GAAG;AAClB,IAAI,OAAO;AACX,MAAM,iBAAiB,CAAC;AACxB,QAAQ,IAAI,EAAE,UAAU;AACxB,QAAQ,IAAI,EAAE,IAAI,CAAC;AACnB,OAAO;AACP,KAAK;AACL,EAAE;AACF,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Mark, markPasteRule, markInputRule, mergeAttributes } from '../../../../../@tiptap_core@3.
|
|
2
|
-
import { createElement as h } from '../../../../../@tiptap_core@3.
|
|
1
|
+
import { Mark, markPasteRule, markInputRule, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
|
+
import { createElement as h } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js';
|
|
3
3
|
|
|
4
4
|
// src/bold.tsx
|
|
5
5
|
var starInputRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-bold@3.20.4_@tiptap+core@3.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-bold@3.20.4_@tiptap+core@3.34.0_@tiptap+pm@3.20.4_/node_modules/@tiptap/extension-bold/dist/index.js"],"sourcesContent":["// src/bold.tsx\nimport { Mark, markInputRule, markPasteRule, mergeAttributes } from \"@tiptap/core\";\nimport { jsx } from \"@tiptap/core/jsx-runtime\";\nvar starInputRegex = /(?:^|\\s)(\\*\\*(?!\\s+\\*\\*)((?:[^*]+))\\*\\*(?!\\s+\\*\\*))$/;\nvar starPasteRegex = /(?:^|\\s)(\\*\\*(?!\\s+\\*\\*)((?:[^*]+))\\*\\*(?!\\s+\\*\\*))/g;\nvar underscoreInputRegex = /(?:^|\\s)(__(?!\\s+__)((?:[^_]+))__(?!\\s+__))$/;\nvar underscorePasteRegex = /(?:^|\\s)(__(?!\\s+__)((?:[^_]+))__(?!\\s+__))/g;\nvar Bold = Mark.create({\n name: \"bold\",\n addOptions() {\n return {\n HTMLAttributes: {}\n };\n },\n parseHTML() {\n return [\n {\n tag: \"strong\"\n },\n {\n tag: \"b\",\n getAttrs: (node) => node.style.fontWeight !== \"normal\" && null\n },\n {\n style: \"font-weight=400\",\n clearMark: (mark) => mark.type.name === this.name\n },\n {\n style: \"font-weight\",\n getAttrs: (value) => /^(bold(er)?|[5-9]\\d{2,})$/.test(value) && null\n }\n ];\n },\n renderHTML({ HTMLAttributes }) {\n return /* @__PURE__ */ jsx(\"strong\", { ...mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), children: /* @__PURE__ */ jsx(\"slot\", {}) });\n },\n markdownTokenName: \"strong\",\n parseMarkdown: (token, helpers) => {\n return helpers.applyMark(\"bold\", helpers.parseInline(token.tokens || []));\n },\n markdownOptions: {\n htmlReopen: {\n open: \"<strong>\",\n close: \"</strong>\"\n }\n },\n renderMarkdown: (node, h) => {\n return `**${h.renderChildren(node)}**`;\n },\n addCommands() {\n return {\n setBold: () => ({ commands }) => {\n return commands.setMark(this.name);\n },\n toggleBold: () => ({ commands }) => {\n return commands.toggleMark(this.name);\n },\n unsetBold: () => ({ commands }) => {\n return commands.unsetMark(this.name);\n }\n };\n },\n addKeyboardShortcuts() {\n return {\n \"Mod-b\": () => this.editor.commands.toggleBold(),\n \"Mod-B\": () => this.editor.commands.toggleBold()\n };\n },\n addInputRules() {\n return [\n markInputRule({\n find: starInputRegex,\n type: this.type\n }),\n markInputRule({\n find: underscoreInputRegex,\n type: this.type\n })\n ];\n },\n addPasteRules() {\n return [\n markPasteRule({\n find: starPasteRegex,\n type: this.type\n }),\n markPasteRule({\n find: underscorePasteRegex,\n type: this.type\n })\n ];\n }\n});\n\n// src/index.ts\nvar index_default = Bold;\nexport {\n Bold,\n index_default as default,\n starInputRegex,\n starPasteRegex,\n underscoreInputRegex,\n underscorePasteRegex\n};\n//# sourceMappingURL=index.js.map"],"names":["jsx"],"mappings":";;;AAAA;AAGG,IAAC,cAAc,GAAG;AAClB,IAAC,cAAc,GAAG;AAClB,IAAC,oBAAoB,GAAG;AACxB,IAAC,oBAAoB,GAAG;AACxB,IAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;AACvB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,cAAc,EAAE;AACtB,KAAK;AACL,EAAE,CAAC;AACH,EAAE,SAAS,GAAG;AACd,IAAI,OAAO;AACX,MAAM;AACN,QAAQ,GAAG,EAAE;AACb,OAAO;AACP,MAAM;AACN,QAAQ,GAAG,EAAE,GAAG;AAChB,QAAQ,QAAQ,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,UAAU,KAAK,QAAQ,IAAI;AAClE,OAAO;AACP,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blockTypeInputRule, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
2
|
import { Plugin, PluginKey, TextSelection, Selection } from '../../../../../prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.js';
|
|
3
3
|
|
|
4
4
|
// src/code-block.ts
|
|
5
5
|
var DEFAULT_TAB_SIZE = 4;
|
|
6
6
|
var backtickInputRegex = /^```([a-z]+)?[\s\n]$/;
|
|
7
7
|
var tildeInputRegex = /^~~~([a-z]+)?[\s\n]$/;
|
|
8
|
-
var CodeBlock =
|
|
8
|
+
var CodeBlock = Node.create({
|
|
9
9
|
name: "codeBlock",
|
|
10
10
|
addOptions() {
|
|
11
11
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../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"],"sourcesContent":["// src/code-block.ts\nimport { mergeAttributes, Node, textblockTypeInputRule } from \"@tiptap/core\";\nimport { Plugin, PluginKey, Selection, TextSelection } from \"@tiptap/pm/state\";\nvar DEFAULT_TAB_SIZE = 4;\nvar backtickInputRegex = /^```([a-z]+)?[\\s\\n]$/;\nvar tildeInputRegex = /^~~~([a-z]+)?[\\s\\n]$/;\nvar CodeBlock = Node.create({\n name: \"codeBlock\",\n addOptions() {\n return {\n languageClassPrefix: \"language-\",\n exitOnTripleEnter: true,\n exitOnArrowDown: true,\n defaultLanguage: null,\n enableTabIndentation: false,\n tabSize: DEFAULT_TAB_SIZE,\n HTMLAttributes: {}\n };\n },\n content: \"text*\",\n marks: \"\",\n group: \"block\",\n code: true,\n defining: true,\n addAttributes() {\n return {\n language: {\n default: this.options.defaultLanguage,\n parseHTML: (element) => {\n var _a;\n const { languageClassPrefix } = this.options;\n if (!languageClassPrefix) {\n return null;\n }\n const classNames = [...((_a = element.firstElementChild) == null ? void 0 : _a.classList) || []];\n const languages = classNames.filter((className) => className.startsWith(languageClassPrefix)).map((className) => className.replace(languageClassPrefix, \"\"));\n const language = languages[0];\n if (!language) {\n return null;\n }\n return language;\n },\n rendered: false\n }\n };\n },\n parseHTML() {\n return [\n {\n tag: \"pre\",\n preserveWhitespace: \"full\"\n }\n ];\n },\n renderHTML({ node, HTMLAttributes }) {\n return [\n \"pre\",\n mergeAttributes(this.options.HTMLAttributes, HTMLAttributes),\n [\n \"code\",\n {\n class: node.attrs.language ? this.options.languageClassPrefix + node.attrs.language : null\n },\n 0\n ]\n ];\n },\n markdownTokenName: \"code\",\n parseMarkdown: (token, helpers) => {\n var _a, _b;\n if (((_a = token.raw) == null ? void 0 : _a.startsWith(\"```\")) === false && ((_b = token.raw) == null ? void 0 : _b.startsWith(\"~~~\")) === false && token.codeBlockStyle !== \"indented\") {\n return [];\n }\n return helpers.createNode(\n \"codeBlock\",\n { language: token.lang || null },\n token.text ? [helpers.createTextNode(token.text)] : []\n );\n },\n renderMarkdown: (node, h) => {\n var _a;\n let output = \"\";\n const language = ((_a = node.attrs) == null ? void 0 : _a.language) || \"\";\n if (!node.content) {\n output = `\\`\\`\\`${language}\n\n\\`\\`\\``;\n } else {\n const lines = [`\\`\\`\\`${language}`, h.renderChildren(node.content), \"```\"];\n output = lines.join(\"\\n\");\n }\n return output;\n },\n addCommands() {\n return {\n setCodeBlock: (attributes) => ({ commands }) => {\n return commands.setNode(this.name, attributes);\n },\n toggleCodeBlock: (attributes) => ({ commands }) => {\n return commands.toggleNode(this.name, \"paragraph\", attributes);\n }\n };\n },\n addKeyboardShortcuts() {\n return {\n \"Mod-Alt-c\": () => this.editor.commands.toggleCodeBlock(),\n // remove code block when at start of document or code block is empty\n Backspace: () => {\n const { empty, $anchor } = this.editor.state.selection;\n const isAtStart = $anchor.pos === 1;\n if (!empty || $anchor.parent.type.name !== this.name) {\n return false;\n }\n if (isAtStart || !$anchor.parent.textContent.length) {\n return this.editor.commands.clearNodes();\n }\n return false;\n },\n // handle tab indentation\n Tab: ({ editor }) => {\n var _a;\n if (!this.options.enableTabIndentation) {\n return false;\n }\n const tabSize = (_a = this.options.tabSize) != null ? _a : DEFAULT_TAB_SIZE;\n const { state } = editor;\n const { selection } = state;\n const { $from, empty } = selection;\n if ($from.parent.type !== this.type) {\n return false;\n }\n const indent = \" \".repeat(tabSize);\n if (empty) {\n return editor.commands.insertContent(indent);\n }\n return editor.commands.command(({ tr }) => {\n const { from, to } = selection;\n const text = state.doc.textBetween(from, to, \"\\n\", \"\\n\");\n const lines = text.split(\"\\n\");\n const indentedText = lines.map((line) => indent + line).join(\"\\n\");\n tr.replaceWith(from, to, state.schema.text(indentedText));\n return true;\n });\n },\n // handle shift+tab reverse indentation\n \"Shift-Tab\": ({ editor }) => {\n var _a;\n if (!this.options.enableTabIndentation) {\n return false;\n }\n const tabSize = (_a = this.options.tabSize) != null ? _a : DEFAULT_TAB_SIZE;\n const { state } = editor;\n const { selection } = state;\n const { $from, empty } = selection;\n if ($from.parent.type !== this.type) {\n return false;\n }\n if (empty) {\n return editor.commands.command(({ tr }) => {\n var _a2;\n const { pos } = $from;\n const codeBlockStart = $from.start();\n const codeBlockEnd = $from.end();\n const allText = state.doc.textBetween(codeBlockStart, codeBlockEnd, \"\\n\", \"\\n\");\n const lines = allText.split(\"\\n\");\n let currentLineIndex = 0;\n let charCount = 0;\n const relativeCursorPos = pos - codeBlockStart;\n for (let i = 0; i < lines.length; i += 1) {\n if (charCount + lines[i].length >= relativeCursorPos) {\n currentLineIndex = i;\n break;\n }\n charCount += lines[i].length + 1;\n }\n const currentLine = lines[currentLineIndex];\n const leadingSpaces = ((_a2 = currentLine.match(/^ */)) == null ? void 0 : _a2[0]) || \"\";\n const spacesToRemove = Math.min(leadingSpaces.length, tabSize);\n if (spacesToRemove === 0) {\n return true;\n }\n let lineStartPos = codeBlockStart;\n for (let i = 0; i < currentLineIndex; i += 1) {\n lineStartPos += lines[i].length + 1;\n }\n tr.delete(lineStartPos, lineStartPos + spacesToRemove);\n const cursorPosInLine = pos - lineStartPos;\n if (cursorPosInLine <= spacesToRemove) {\n tr.setSelection(TextSelection.create(tr.doc, lineStartPos));\n }\n return true;\n });\n }\n return editor.commands.command(({ tr }) => {\n const { from, to } = selection;\n const text = state.doc.textBetween(from, to, \"\\n\", \"\\n\");\n const lines = text.split(\"\\n\");\n const reverseIndentText = lines.map((line) => {\n var _a2;\n const leadingSpaces = ((_a2 = line.match(/^ */)) == null ? void 0 : _a2[0]) || \"\";\n const spacesToRemove = Math.min(leadingSpaces.length, tabSize);\n return line.slice(spacesToRemove);\n }).join(\"\\n\");\n tr.replaceWith(from, to, state.schema.text(reverseIndentText));\n return true;\n });\n },\n // exit node on triple enter\n Enter: ({ editor }) => {\n if (!this.options.exitOnTripleEnter) {\n return false;\n }\n const { state } = editor;\n const { selection } = state;\n const { $from, empty } = selection;\n if (!empty || $from.parent.type !== this.type) {\n return false;\n }\n const isAtEnd = $from.parentOffset === $from.parent.nodeSize - 2;\n const endsWithDoubleNewline = $from.parent.textContent.endsWith(\"\\n\\n\");\n if (!isAtEnd || !endsWithDoubleNewline) {\n return false;\n }\n return editor.chain().command(({ tr }) => {\n tr.delete($from.pos - 2, $from.pos);\n return true;\n }).exitCode().run();\n },\n // exit node on arrow down\n ArrowDown: ({ editor }) => {\n if (!this.options.exitOnArrowDown) {\n return false;\n }\n const { state } = editor;\n const { selection, doc } = state;\n const { $from, empty } = selection;\n if (!empty || $from.parent.type !== this.type) {\n return false;\n }\n const isAtEnd = $from.parentOffset === $from.parent.nodeSize - 2;\n if (!isAtEnd) {\n return false;\n }\n const after = $from.after();\n if (after === void 0) {\n return false;\n }\n const nodeAfter = doc.nodeAt(after);\n if (nodeAfter) {\n return editor.commands.command(({ tr }) => {\n tr.setSelection(Selection.near(doc.resolve(after)));\n return true;\n });\n }\n return editor.commands.exitCode();\n }\n };\n },\n addInputRules() {\n return [\n textblockTypeInputRule({\n find: backtickInputRegex,\n type: this.type,\n getAttributes: (match) => ({\n language: match[1]\n })\n }),\n textblockTypeInputRule({\n find: tildeInputRegex,\n type: this.type,\n getAttributes: (match) => ({\n language: match[1]\n })\n })\n ];\n },\n addProseMirrorPlugins() {\n return [\n // this plugin creates a code block for pasted content from VS Code\n // we can also detect the copied code language\n new Plugin({\n key: new PluginKey(\"codeBlockVSCodeHandler\"),\n props: {\n handlePaste: (view, event) => {\n if (!event.clipboardData) {\n return false;\n }\n if (this.editor.isActive(this.type.name)) {\n return false;\n }\n const text = event.clipboardData.getData(\"text/plain\");\n const vscode = event.clipboardData.getData(\"vscode-editor-data\");\n const vscodeData = vscode ? JSON.parse(vscode) : void 0;\n const language = vscodeData == null ? void 0 : vscodeData.mode;\n if (!text || !language) {\n return false;\n }\n const { tr, schema } = view.state;\n const textNode = schema.text(text.replace(/\\r\\n?/g, \"\\n\"));\n tr.replaceSelectionWith(this.type.create({ language }, textNode));\n if (tr.selection.$from.parent.type !== this.type) {\n tr.setSelection(TextSelection.near(tr.doc.resolve(Math.max(0, tr.selection.from - 2))));\n }\n tr.setMeta(\"paste\", true);\n view.dispatch(tr);\n return true;\n }\n }\n })\n ];\n }\n});\n\n// src/index.ts\nvar index_default = CodeBlock;\nexport {\n CodeBlock,\n backtickInputRegex,\n index_default as default,\n tildeInputRegex\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;AAAA;AAGA,IAAI,gBAAgB,GAAG,CAAC;AACrB,IAAC,kBAAkB,GAAG;AACtB,IAAC,eAAe,GAAG;AACnB,IAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC;AAC5B,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,mBAAmB,EAAE,WAAW;AACtC,MAAM,iBAAiB,EAAE,IAAI;AAC7B,MAAM,eAAe,EAAE,IAAI;AAC3B,MAAM,eAAe,EAAE,IAAI;AAC3B,MAAM,oBA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@tiptap_core@3.
|
|
1
|
+
import { Mark, markPasteRule, markInputRule, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
2
|
|
|
3
3
|
// src/code.ts
|
|
4
4
|
var inputRegex = /(^|[^`])`([^`]+)`(?!`)$/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-code@3.20.4_@tiptap+core@3.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-code@3.20.4_@tiptap+core@3.34.0_@tiptap+pm@3.20.4_/node_modules/@tiptap/extension-code/dist/index.js"],"sourcesContent":["// src/code.ts\nimport { Mark, markInputRule, markPasteRule, mergeAttributes } from \"@tiptap/core\";\nvar inputRegex = /(^|[^`])`([^`]+)`(?!`)$/;\nvar pasteRegex = /(^|[^`])`([^`]+)`(?!`)/g;\nvar Code = Mark.create({\n name: \"code\",\n addOptions() {\n return {\n HTMLAttributes: {}\n };\n },\n excludes: \"_\",\n code: true,\n exitable: true,\n parseHTML() {\n return [{ tag: \"code\" }];\n },\n renderHTML({ HTMLAttributes }) {\n return [\"code\", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];\n },\n markdownTokenName: \"codespan\",\n parseMarkdown: (token, helpers) => {\n return helpers.applyMark(\"code\", [{ type: \"text\", text: token.text || \"\" }]);\n },\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return \"\";\n }\n return `\\`${h.renderChildren(node.content)}\\``;\n },\n addCommands() {\n return {\n setCode: () => ({ commands }) => {\n return commands.setMark(this.name);\n },\n toggleCode: () => ({ commands }) => {\n return commands.toggleMark(this.name);\n },\n unsetCode: () => ({ commands }) => {\n return commands.unsetMark(this.name);\n }\n };\n },\n addKeyboardShortcuts() {\n return {\n \"Mod-e\": () => this.editor.commands.toggleCode()\n };\n },\n addInputRules() {\n return [\n markInputRule({\n find: inputRegex,\n type: this.type\n })\n ];\n },\n addPasteRules() {\n return [\n markPasteRule({\n find: pasteRegex,\n type: this.type\n })\n ];\n }\n});\n\n// src/index.ts\nvar index_default = Code;\nexport {\n Code,\n index_default as default,\n inputRegex,\n pasteRegex\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AAAA;AAEG,IAAC,UAAU,GAAG;AACd,IAAC,UAAU,GAAG;AACd,IAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;AACvB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,cAAc,EAAE;AACtB,KAAK;AACL,EAAE,CAAC;AACH,EAAE,QAAQ,EAAE,GAAG;AACf,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE,SAAS,GAAG;AACd,IAAI,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AAC5B,EAAE,CAAC;AACH,EAAE,UAAU,CAAC,EAAE,cAAc,EAAE,EAAE;AACjC,IAAI,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC;AACpF,EAAE,CAAC;AACH,EAAE,iBAAiB,EAAE,UAAU;AAC/B,EAAE,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK;AACrC,IAAI,OAAO,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;AAChF,EAAE,CAAC;AACH,EAAE,cAAc,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK;AAC/B,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;AACvB,MAAM,OAAO,EAAE;AACf,IAAI;AACJ,IAAI,OAAO,CAAC,EA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iptap/core/dist/index.js';
|
|
2
2
|
|
|
3
3
|
// src/document.ts
|
|
4
|
-
var Document =
|
|
4
|
+
var Document = Node.create({
|
|
5
5
|
name: "doc",
|
|
6
6
|
topNode: true,
|
|
7
7
|
content: "block+",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-document@3.20.4_@tiptap+core@3.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-document@3.20.4_@tiptap+core@3.34.0_@tiptap+pm@3.20.4_/node_modules/@tiptap/extension-document/dist/index.js"],"sourcesContent":["// src/document.ts\nimport { Node } from \"@tiptap/core\";\nvar Document = Node.create({\n name: \"doc\",\n topNode: true,\n content: \"block+\",\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return \"\";\n }\n return h.renderChildren(node.content, \"\\n\\n\");\n }\n});\n\n// src/index.ts\nvar index_default = Document;\nexport {\n Document,\n index_default as default\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AAAA;AAEG,IAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,EAAE,IAAI,EAAE,KAAK;AACb,EAAE,OAAO,EAAE,IAAI;AACf,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,cAAc,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK;AAC/B,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;AACvB,MAAM,OAAO,EAAE;AACf,IAAI;AACJ,IAAI,OAAO,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC;AACjD,EAAE;AACF,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Node
|
|
1
|
+
import { Node, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
2
|
|
|
3
3
|
// src/hard-break.ts
|
|
4
|
-
var HardBreak =
|
|
4
|
+
var HardBreak = Node.create({
|
|
5
5
|
name: "hardBreak",
|
|
6
6
|
markdownTokenName: "br",
|
|
7
7
|
addOptions() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-hard-break@3.20.4_@tiptap+core@3.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@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"],"sourcesContent":["// src/hard-break.ts\nimport { mergeAttributes, Node } from \"@tiptap/core\";\nvar HardBreak = Node.create({\n name: \"hardBreak\",\n markdownTokenName: \"br\",\n addOptions() {\n return {\n keepMarks: true,\n HTMLAttributes: {}\n };\n },\n inline: true,\n group: \"inline\",\n selectable: false,\n linebreakReplacement: true,\n parseHTML() {\n return [{ tag: \"br\" }];\n },\n renderHTML({ HTMLAttributes }) {\n return [\"br\", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];\n },\n renderText() {\n return \"\\n\";\n },\n renderMarkdown: () => ` \n`,\n parseMarkdown: () => {\n return {\n type: \"hardBreak\"\n };\n },\n addCommands() {\n return {\n setHardBreak: () => ({ commands, chain, state, editor }) => {\n return commands.first([\n () => commands.exitCode(),\n () => commands.command(() => {\n const { selection, storedMarks } = state;\n if (selection.$from.parent.type.spec.isolating) {\n return false;\n }\n const { keepMarks } = this.options;\n const { splittableMarks } = editor.extensionManager;\n const marks = storedMarks || selection.$to.parentOffset && selection.$from.marks();\n return chain().insertContent({ type: this.name }).command(({ tr, dispatch }) => {\n if (dispatch && marks && keepMarks) {\n const filteredMarks = marks.filter((mark) => splittableMarks.includes(mark.type.name));\n tr.ensureMarks(filteredMarks);\n }\n return true;\n }).run();\n })\n ]);\n }\n };\n },\n addKeyboardShortcuts() {\n return {\n \"Mod-Enter\": () => this.editor.commands.setHardBreak(),\n \"Shift-Enter\": () => this.editor.commands.setHardBreak()\n };\n }\n});\n\n// src/index.ts\nvar index_default = HardBreak;\nexport {\n HardBreak,\n index_default as default\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AAAA;AAEG,IAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC;AAC5B,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,iBAAiB,EAAE,IAAI;AACzB,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,SAAS,EAAE,IAAI;AACrB,MAAM,cAAc,EAAE;AACtB,KAAK;AACL,EAAE,CAAC;AACH,EAAE,MAAM,EAAE,IAAI;AACd,EAAE,KAAK,EAAE,QAAQ;AACjB,EAAE,UAAU,EAAE,KAAK;AACnB,EAAE,oBAAoB,EAAE,IAAI;AAC5B,EAAE,SAAS,GAAG;AACd,IAAI,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AAC1B,EAAE,CAAC;AACH,EAAE,UAAU,CAAC,EAAE,cAAc,EAAE,EAAE;AACjC,IAAI,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;AAC/E,EAAE,CAAC;AACH,EAAE,UAAU,GAAG;AACf,IAAI,OAAO,IAAI;AACf,EAAE,CAAC;AACH,EAAE,cAAc,EAAE,MAAM,CAAC;AACzB,CAAC;AACD,EAAE,aAAa,EAAE,MAAM;AACvB,IAAI,OAAO;AACX,MAAM,IAAI,EAAE;AACZ,KAAK;AACL,EAAE,CAAC;AACH,EAAE,WAAW,GAAG;AAChB,IAAI,OAAO;AACX,MAAM,YAAY,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK;AAClE,QAAQ,OAAO,QAAQ,CAAC,KAAK,CAAC;AAC9B,UAAU,MA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MAAM,CAAC,QAAQ,CAAC,YAAY;AAC5D,KAAK;AACL,EAAE;AACF,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Node
|
|
1
|
+
import { Node, textblockTypeInputRule, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
2
|
|
|
3
3
|
// src/heading.ts
|
|
4
|
-
var Heading =
|
|
4
|
+
var Heading = Node.create({
|
|
5
5
|
name: "heading",
|
|
6
6
|
addOptions() {
|
|
7
7
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../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"],"sourcesContent":["// src/heading.ts\nimport { mergeAttributes, Node, textblockTypeInputRule } from \"@tiptap/core\";\nvar Heading = Node.create({\n name: \"heading\",\n addOptions() {\n return {\n levels: [1, 2, 3, 4, 5, 6],\n HTMLAttributes: {}\n };\n },\n content: \"inline*\",\n group: \"block\",\n defining: true,\n addAttributes() {\n return {\n level: {\n default: 1,\n rendered: false\n }\n };\n },\n parseHTML() {\n return this.options.levels.map((level) => ({\n tag: `h${level}`,\n attrs: { level }\n }));\n },\n renderHTML({ node, HTMLAttributes }) {\n const hasLevel = this.options.levels.includes(node.attrs.level);\n const level = hasLevel ? node.attrs.level : this.options.levels[0];\n return [`h${level}`, mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];\n },\n parseMarkdown: (token, helpers) => {\n return helpers.createNode(\"heading\", { level: token.depth || 1 }, helpers.parseInline(token.tokens || []));\n },\n renderMarkdown: (node, h) => {\n var _a;\n const level = ((_a = node.attrs) == null ? void 0 : _a.level) ? parseInt(node.attrs.level, 10) : 1;\n const headingChars = \"#\".repeat(level);\n if (!node.content) {\n return \"\";\n }\n return `${headingChars} ${h.renderChildren(node.content)}`;\n },\n addCommands() {\n return {\n setHeading: (attributes) => ({ commands }) => {\n if (!this.options.levels.includes(attributes.level)) {\n return false;\n }\n return commands.setNode(this.name, attributes);\n },\n toggleHeading: (attributes) => ({ commands }) => {\n if (!this.options.levels.includes(attributes.level)) {\n return false;\n }\n return commands.toggleNode(this.name, \"paragraph\", attributes);\n }\n };\n },\n addKeyboardShortcuts() {\n return this.options.levels.reduce(\n (items, level) => ({\n ...items,\n ...{\n [`Mod-Alt-${level}`]: () => this.editor.commands.toggleHeading({ level })\n }\n }),\n {}\n );\n },\n addInputRules() {\n return this.options.levels.map((level) => {\n return textblockTypeInputRule({\n find: new RegExp(`^(#{${Math.min(...this.options.levels)},${level}})\\\\s$`),\n type: this.type,\n getAttributes: {\n level\n }\n });\n });\n }\n});\n\n// src/index.ts\nvar index_default = Heading;\nexport {\n Heading,\n index_default as default\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AAAA;AAEG,IAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;AAC1B,EAAE,IAAI,EAAE,SAAS;AACjB,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAChC,MAAM,cAAc,EAAE;AACtB,KAAK;AACL,EAAE,CAAC;AACH,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE,aAAa,GAAG;AAClB,IAAI,OAAO;AACX,MAAM,KAAK,EAAE;AACb,QAAQ,OAAO,EAAE,CAAC;AAClB,QAAQ,QAAQ,EAAE;AAClB;AACA,KAAK;AACL,EAAE,CAAC;AACH,EAAE,SAAS,GAAG;AACd,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,MA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,KAAK;AACL,EAAE,CAAC;AACH,EAAE,aAAa,GAAG;AAClB,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK;AAC9C,MAAM,OAAO,sBAAsB,CAAC;AACpC,QAAQ,IAAI,EAAE,IAAI,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AAClF,QAAQ,IAAI,EAAE,IAAI,CAAC,IAAI;AACvB,QAAQ,aAAa,EAAE;AACvB,UAAU;AACV;AACA,OAAO,CAAC;AACR,IAAI,CAAC,CAAC;AACN,EAAE;AACF,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Node
|
|
1
|
+
import { Node, nodeInputRule, canInsertNode, isNodeSelection, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
2
|
import { TextSelection, NodeSelection } from '../../../../../prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.js';
|
|
3
3
|
|
|
4
4
|
// src/horizontal-rule.ts
|
|
5
|
-
var HorizontalRule =
|
|
5
|
+
var HorizontalRule = Node.create({
|
|
6
6
|
name: "horizontalRule",
|
|
7
7
|
addOptions() {
|
|
8
8
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-horizontal-rule@3.20.4_@tiptap+core@3.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@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"],"sourcesContent":["// src/horizontal-rule.ts\nimport { canInsertNode, isNodeSelection, mergeAttributes, Node, nodeInputRule } from \"@tiptap/core\";\nimport { NodeSelection, TextSelection } from \"@tiptap/pm/state\";\nvar HorizontalRule = Node.create({\n name: \"horizontalRule\",\n addOptions() {\n return {\n HTMLAttributes: {},\n nextNodeType: \"paragraph\"\n };\n },\n group: \"block\",\n parseHTML() {\n return [{ tag: \"hr\" }];\n },\n renderHTML({ HTMLAttributes }) {\n return [\"hr\", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];\n },\n markdownTokenName: \"hr\",\n parseMarkdown: (token, helpers) => {\n return helpers.createNode(\"horizontalRule\");\n },\n renderMarkdown: () => {\n return \"---\";\n },\n addCommands() {\n return {\n setHorizontalRule: () => ({ chain, state }) => {\n if (!canInsertNode(state, state.schema.nodes[this.name])) {\n return false;\n }\n const { selection } = state;\n const { $to: $originTo } = selection;\n const currentChain = chain();\n if (isNodeSelection(selection)) {\n currentChain.insertContentAt($originTo.pos, {\n type: this.name\n });\n } else {\n currentChain.insertContent({ type: this.name });\n }\n return currentChain.command(({ state: chainState, tr, dispatch }) => {\n if (dispatch) {\n const { $to } = tr.selection;\n const posAfter = $to.end();\n if ($to.nodeAfter) {\n if ($to.nodeAfter.isTextblock) {\n tr.setSelection(TextSelection.create(tr.doc, $to.pos + 1));\n } else if ($to.nodeAfter.isBlock) {\n tr.setSelection(NodeSelection.create(tr.doc, $to.pos));\n } else {\n tr.setSelection(TextSelection.create(tr.doc, $to.pos));\n }\n } else {\n const nodeType = chainState.schema.nodes[this.options.nextNodeType] || $to.parent.type.contentMatch.defaultType;\n const node = nodeType == null ? void 0 : nodeType.create();\n if (node) {\n tr.insert(posAfter, node);\n tr.setSelection(TextSelection.create(tr.doc, posAfter + 1));\n }\n }\n tr.scrollIntoView();\n }\n return true;\n }).run();\n }\n };\n },\n addInputRules() {\n return [\n nodeInputRule({\n find: /^(?:---|—-|___\\s|\\*\\*\\*\\s)$/,\n type: this.type\n })\n ];\n }\n});\n\n// src/index.ts\nvar index_default = HorizontalRule;\nexport {\n HorizontalRule,\n index_default as default\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;AAAA;AAGG,IAAC,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC;AACjC,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,cAAc,EAAE,EAAE;AACxB,MAAM,YAAY,EAAE;AACpB,KAAK;AACL,EAAE,CAAC;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,SAAS,GAAG;AACd,IAAI,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AAC1B,EAAE,CAAC;AACH,EAAE,UAAU,CAAC,EAAE,cAAc,EAAE,EAAE;AACjC,IAAI,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;AAC/E,EAAE,CAAC;AACH,EAAE,iBAAiB,EAAE,IAAI;AACzB,EAAE,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK;AACrC,IAAI,OAAO,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;AAC/C,EAAE,CAAC;AACH,EAAE,cAAc,EAAE,MAAM;AACxB,IAAI,OAAO,KAAK;AAChB,EAAE,CAAC;AACH,EAAE,WAAW,GAAG;AAChB,IAAI,OAAO;AACX,MAAM,iBAAiB,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;AACrD,QAAQ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;AAClE,UAAU,OAAO,KAAK;AACtB,QAAQ;AACR,QAAQ,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK;AACnC,QAAQ,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,SAAS;AAC5C,Q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,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW;AAC7H,cAAc,MAAM,IAAI,GAAG,QAAQ,IAAI,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE;AACxE,cAAc,IAAI,IAAI,EAAE;AACxB,gBAAgB,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC;AACzC,gBAAgB,EAAE,CAAC,YAAY,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC;AAC3E,cAAc;AACd,YAAY;AACZ,YAAY,EAAE,CAAC,cAAc,EAAE;AAC/B,UAAU;AACV,UAAU,OAAO,IAAI;AACrB,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE;AAChB,MAAM;AACN,KAAK;AACL,EAAE,CAAC;AACH,EAAE,aAAa,GAAG;AAClB,IAAI,OAAO;AACX,MAAM,aAAa,CAAC;AACpB,QAAQ,IAAI,EAAE,6BAA6B;AAC3C,QAAQ,IAAI,EAAE,IAAI,CAAC;AACnB,OAAO;AACP,KAAK;AACL,EAAE;AACF,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Node
|
|
1
|
+
import { Node, nodeInputRule, ResizableNodeView, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
2
|
|
|
3
3
|
// src/image.ts
|
|
4
4
|
var inputRegex = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/;
|
|
5
|
-
var Image =
|
|
5
|
+
var Image = Node.create({
|
|
6
6
|
name: "image",
|
|
7
7
|
addOptions() {
|
|
8
8
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../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"],"sourcesContent":["// src/image.ts\nimport { mergeAttributes, Node, nodeInputRule, ResizableNodeView } from \"@tiptap/core\";\nvar inputRegex = /(?:^|\\s)(!\\[(.+|:?)]\\((\\S+)(?:(?:\\s+)[\"'](\\S+)[\"'])?\\))$/;\nvar Image = Node.create({\n name: \"image\",\n addOptions() {\n return {\n inline: false,\n allowBase64: false,\n HTMLAttributes: {},\n resize: false\n };\n },\n inline() {\n return this.options.inline;\n },\n group() {\n return this.options.inline ? \"inline\" : \"block\";\n },\n draggable: true,\n addAttributes() {\n return {\n src: {\n default: null\n },\n alt: {\n default: null\n },\n title: {\n default: null\n },\n width: {\n default: null\n },\n height: {\n default: null\n }\n };\n },\n parseHTML() {\n return [\n {\n tag: this.options.allowBase64 ? \"img[src]\" : 'img[src]:not([src^=\"data:\"])'\n }\n ];\n },\n renderHTML({ HTMLAttributes }) {\n return [\"img\", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];\n },\n parseMarkdown: (token, helpers) => {\n return helpers.createNode(\"image\", {\n src: token.href,\n title: token.title,\n alt: token.text\n });\n },\n renderMarkdown: (node) => {\n var _a, _b, _c, _d, _e, _f;\n const src = (_b = (_a = node.attrs) == null ? void 0 : _a.src) != null ? _b : \"\";\n const alt = (_d = (_c = node.attrs) == null ? void 0 : _c.alt) != null ? _d : \"\";\n const title = (_f = (_e = node.attrs) == null ? void 0 : _e.title) != null ? _f : \"\";\n return title ? `` : ``;\n },\n addNodeView() {\n if (!this.options.resize || !this.options.resize.enabled || typeof document === \"undefined\") {\n return null;\n }\n const { directions, minWidth, minHeight, alwaysPreserveAspectRatio } = this.options.resize;\n return ({ node, getPos, HTMLAttributes, editor }) => {\n const el = document.createElement(\"img\");\n Object.entries(HTMLAttributes).forEach(([key, value]) => {\n if (value != null) {\n switch (key) {\n case \"width\":\n case \"height\":\n break;\n default:\n el.setAttribute(key, value);\n break;\n }\n }\n });\n el.src = HTMLAttributes.src;\n const nodeView = new ResizableNodeView({\n element: el,\n editor,\n node,\n getPos,\n onResize: (width, height) => {\n el.style.width = `${width}px`;\n el.style.height = `${height}px`;\n },\n onCommit: (width, height) => {\n const pos = getPos();\n if (pos === void 0) {\n return;\n }\n this.editor.chain().setNodeSelection(pos).updateAttributes(this.name, {\n width,\n height\n }).run();\n },\n onUpdate: (updatedNode, _decorations, _innerDecorations) => {\n if (updatedNode.type !== node.type) {\n return false;\n }\n return true;\n },\n options: {\n directions,\n min: {\n width: minWidth,\n height: minHeight\n },\n preserveAspectRatio: alwaysPreserveAspectRatio === true\n }\n });\n const dom = nodeView.dom;\n dom.style.visibility = \"hidden\";\n dom.style.pointerEvents = \"none\";\n el.onload = () => {\n dom.style.visibility = \"\";\n dom.style.pointerEvents = \"\";\n };\n return nodeView;\n };\n },\n addCommands() {\n return {\n setImage: (options) => ({ commands }) => {\n return commands.insertContent({\n type: this.name,\n attrs: options\n });\n }\n };\n },\n addInputRules() {\n return [\n nodeInputRule({\n find: inputRegex,\n type: this.type,\n getAttributes: (match) => {\n const [, , alt, src, title] = match;\n return { src, alt, title };\n }\n })\n ];\n }\n});\n\n// src/index.ts\nvar index_default = Image;\nexport {\n Image,\n index_default as default,\n inputRegex\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AAAA;AAEG,IAAC,UAAU,GAAG;AACd,IAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;AACxB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,MAAM,EAAE,KAAK;AACnB,MAAM,WAAW,EAAE,KAAK;AACxB,MAAM,cAAc,EAAE,EAAE;AACxB,MAAM,MAAM,EAAE;AACd,KAAK;AACL,EAAE,CAAC;AACH,EAAE,MAAM,GAAG;AACX,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM;AAC9B,EA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C,UAAU,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE;AACpC,QAAQ;AACR,OAAO;AACP,KAAK;AACL,EAAE;AACF,CAAC;;AAED;AACG,IAAC,aAAa,GAAG;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mark, markPasteRule, markInputRule, mergeAttributes } from '../../../../../@tiptap_core@3.
|
|
1
|
+
import { Mark, markPasteRule, markInputRule, mergeAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
2
|
|
|
3
3
|
// src/italic.ts
|
|
4
4
|
var starInputRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-italic@3.20.4_@tiptap+core@3.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@tiptap+extension-italic@3.20.4_@tiptap+core@3.34.0_@tiptap+pm@3.20.4_/node_modules/@tiptap/extension-italic/dist/index.js"],"sourcesContent":["// src/italic.ts\nimport { Mark, markInputRule, markPasteRule, mergeAttributes } from \"@tiptap/core\";\nvar starInputRegex = /(?:^|\\s)(\\*(?!\\s+\\*)((?:[^*]+))\\*(?!\\s+\\*))$/;\nvar starPasteRegex = /(?:^|\\s)(\\*(?!\\s+\\*)((?:[^*]+))\\*(?!\\s+\\*))/g;\nvar underscoreInputRegex = /(?:^|\\s)(_(?!\\s+_)((?:[^_]+))_(?!\\s+_))$/;\nvar underscorePasteRegex = /(?:^|\\s)(_(?!\\s+_)((?:[^_]+))_(?!\\s+_))/g;\nvar Italic = Mark.create({\n name: \"italic\",\n addOptions() {\n return {\n HTMLAttributes: {}\n };\n },\n parseHTML() {\n return [\n {\n tag: \"em\"\n },\n {\n tag: \"i\",\n getAttrs: (node) => node.style.fontStyle !== \"normal\" && null\n },\n {\n style: \"font-style=normal\",\n clearMark: (mark) => mark.type.name === this.name\n },\n {\n style: \"font-style=italic\"\n }\n ];\n },\n renderHTML({ HTMLAttributes }) {\n return [\"em\", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];\n },\n addCommands() {\n return {\n setItalic: () => ({ commands }) => {\n return commands.setMark(this.name);\n },\n toggleItalic: () => ({ commands }) => {\n return commands.toggleMark(this.name);\n },\n unsetItalic: () => ({ commands }) => {\n return commands.unsetMark(this.name);\n }\n };\n },\n markdownTokenName: \"em\",\n parseMarkdown: (token, helpers) => {\n return helpers.applyMark(\"italic\", helpers.parseInline(token.tokens || []));\n },\n markdownOptions: {\n htmlReopen: {\n open: \"<em>\",\n close: \"</em>\"\n }\n },\n renderMarkdown: (node, h) => {\n return `*${h.renderChildren(node)}*`;\n },\n addKeyboardShortcuts() {\n return {\n \"Mod-i\": () => this.editor.commands.toggleItalic(),\n \"Mod-I\": () => this.editor.commands.toggleItalic()\n };\n },\n addInputRules() {\n return [\n markInputRule({\n find: starInputRegex,\n type: this.type\n }),\n markInputRule({\n find: underscoreInputRegex,\n type: this.type\n })\n ];\n },\n addPasteRules() {\n return [\n markPasteRule({\n find: starPasteRegex,\n type: this.type\n }),\n markPasteRule({\n find: underscorePasteRegex,\n type: this.type\n })\n ];\n }\n});\n\n// src/index.ts\nvar index_default = Italic;\nexport {\n Italic,\n index_default as default,\n starInputRegex,\n starPasteRegex,\n underscoreInputRegex,\n underscorePasteRegex\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AAAA;AAEG,IAAC,cAAc,GAAG;AAClB,IAAC,cAAc,GAAG;AAClB,IAAC,oBAAoB,GAAG;AACxB,IAAC,oBAAoB,GAAG;AACxB,IAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AACzB,EAAE,IAAI,EAAE,QAAQ;AAChB,EAAE,UAAU,GAAG;AACf,IAAI,OAAO;AACX,MAAM,cAAc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AACF,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mark, markPasteRule, mergeAttributes, combineTransactionSteps, getChangedRanges, findChildrenInRange, getMarksBetween, getAttributes } from '../../../../../@tiptap_core@3.
|
|
1
|
+
import { Mark, markPasteRule, mergeAttributes, combineTransactionSteps, getChangedRanges, findChildrenInRange, getMarksBetween, getAttributes } from '../../../../../@tiptap_core@3.34.0_@tiptap_pm@3.20.4/node_modules/@tiptap/core/dist/index.js';
|
|
2
2
|
import { find, registerCustomProtocol, tokenize, reset } from '../../../../../linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.js';
|
|
3
3
|
import { Plugin, PluginKey } from '../../../../../prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.js';
|
|
4
4
|
|