@bgx4k3p/huly-mcp-server 2.2.4 → 2.2.5
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/README.md +186 -56
- package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js +249 -0
- package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js.map +7 -0
- package/node_modules/@hcengineering/account-client/lib/client.js +88 -3
- package/node_modules/@hcengineering/account-client/lib/client.js.map +2 -2
- package/node_modules/@hcengineering/account-client/lib/types.js.map +2 -2
- package/node_modules/@hcengineering/account-client/lib/utils.js +50 -0
- package/node_modules/@hcengineering/account-client/lib/utils.js.map +2 -2
- package/node_modules/@hcengineering/account-client/package.json +22 -19
- package/node_modules/@hcengineering/account-client/src/__tests__/utils.test.ts +304 -0
- package/node_modules/@hcengineering/account-client/src/client.ts +127 -6
- package/node_modules/@hcengineering/account-client/src/types.ts +7 -0
- package/node_modules/@hcengineering/account-client/src/utils.ts +65 -1
- package/node_modules/@hcengineering/analytics/lib/index.js +1 -1
- package/node_modules/@hcengineering/analytics/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/analytics/package.json +19 -16
- package/node_modules/@hcengineering/analytics/src/index.ts +2 -1
- package/node_modules/@hcengineering/api-client/lib/client.js +9 -4
- package/node_modules/@hcengineering/api-client/lib/client.js.map +2 -2
- package/node_modules/@hcengineering/api-client/lib/rest/adapter.js +64 -0
- package/node_modules/@hcengineering/api-client/lib/rest/adapter.js.map +7 -0
- package/node_modules/@hcengineering/api-client/lib/rest/index.js +2 -0
- package/node_modules/@hcengineering/api-client/lib/rest/index.js.map +2 -2
- package/node_modules/@hcengineering/api-client/lib/socket/node.js +5 -1
- package/node_modules/@hcengineering/api-client/lib/socket/node.js.map +2 -2
- package/node_modules/@hcengineering/api-client/package.json +28 -25
- package/node_modules/@hcengineering/api-client/src/client.ts +10 -1
- package/node_modules/@hcengineering/api-client/src/rest/adapter.ts +96 -0
- package/node_modules/@hcengineering/api-client/src/rest/index.ts +1 -0
- package/node_modules/@hcengineering/api-client/src/socket/node.ts +6 -1
- package/node_modules/@hcengineering/chunter/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/chunter/package.json +13 -10
- package/node_modules/@hcengineering/client/package.json +21 -18
- package/node_modules/@hcengineering/client-resources/package.json +24 -21
- package/node_modules/@hcengineering/collaborator-client/package.json +21 -18
- package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js +38 -0
- package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js.map +7 -0
- package/node_modules/@hcengineering/contact/lib/index.js +13 -4
- package/node_modules/@hcengineering/contact/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/contact/lib/types.js.map +1 -1
- package/node_modules/@hcengineering/contact/lib/utils.js +132 -108
- package/node_modules/@hcengineering/contact/lib/utils.js.map +3 -3
- package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js +79 -0
- package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js.map +7 -0
- package/node_modules/@hcengineering/contact/package.json +12 -9
- package/node_modules/@hcengineering/core/CHANGELOG.md +9 -1
- package/node_modules/@hcengineering/core/lang/cs.json +6 -1
- package/node_modules/@hcengineering/core/lang/de.json +6 -1
- package/node_modules/@hcengineering/core/lang/en.json +6 -1
- package/node_modules/@hcengineering/core/lang/es.json +6 -1
- package/node_modules/@hcengineering/core/lang/fr.json +6 -1
- package/node_modules/@hcengineering/core/lang/it.json +6 -1
- package/node_modules/@hcengineering/core/lang/ja.json +6 -1
- package/node_modules/@hcengineering/core/lang/pt-br.json +70 -0
- package/node_modules/@hcengineering/core/lang/pt.json +6 -1
- package/node_modules/@hcengineering/core/lang/ru.json +6 -1
- package/node_modules/@hcengineering/core/lang/tr.json +6 -1
- package/node_modules/@hcengineering/core/lang/zh.json +6 -1
- package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js +13 -0
- package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js +133 -0
- package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js +25 -0
- package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/__tests__/query.test.js +43 -0
- package/node_modules/@hcengineering/core/lib/__tests__/query.test.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/autoJoinRoles.js +36 -0
- package/node_modules/@hcengineering/core/lib/autoJoinRoles.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/classes.js +5 -0
- package/node_modules/@hcengineering/core/lib/classes.js.map +3 -3
- package/node_modules/@hcengineering/core/lib/clone.js +13 -2
- package/node_modules/@hcengineering/core/lib/clone.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/component.js +14 -3
- package/node_modules/@hcengineering/core/lib/component.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/index.js +2 -0
- package/node_modules/@hcengineering/core/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/memdb.js +6 -2
- package/node_modules/@hcengineering/core/lib/memdb.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/operations.js +11 -0
- package/node_modules/@hcengineering/core/lib/operations.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/predicate.js +3 -0
- package/node_modules/@hcengineering/core/lib/predicate.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/storage.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/tx.js +3 -1
- package/node_modules/@hcengineering/core/lib/tx.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/utils.js +1 -1
- package/node_modules/@hcengineering/core/lib/utils.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/versioning.js +17 -0
- package/node_modules/@hcengineering/core/lib/versioning.js.map +7 -0
- package/node_modules/@hcengineering/core/package.json +22 -19
- package/node_modules/@hcengineering/core/src/__tests__/autoJoinRoles.test.ts +27 -0
- package/node_modules/@hcengineering/core/src/__tests__/memdb.test.ts +150 -1
- package/node_modules/@hcengineering/core/src/__tests__/minmodel.ts +29 -1
- package/node_modules/@hcengineering/core/src/__tests__/query.test.ts +66 -0
- package/node_modules/@hcengineering/core/src/autoJoinRoles.ts +33 -0
- package/node_modules/@hcengineering/core/src/classes.ts +61 -1
- package/node_modules/@hcengineering/core/src/clone.ts +13 -2
- package/node_modules/@hcengineering/core/src/component.ts +25 -9
- package/node_modules/@hcengineering/core/src/index.ts +2 -0
- package/node_modules/@hcengineering/core/src/memdb.ts +7 -3
- package/node_modules/@hcengineering/core/src/operations.ts +11 -0
- package/node_modules/@hcengineering/core/src/predicate.ts +3 -0
- package/node_modules/@hcengineering/core/src/storage.ts +6 -3
- package/node_modules/@hcengineering/core/src/tx.ts +4 -1
- package/node_modules/@hcengineering/core/src/utils.ts +1 -1
- package/node_modules/@hcengineering/core/src/versioning.ts +13 -0
- package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js +3 -3
- package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js.map +2 -2
- package/node_modules/@hcengineering/measurements/package.json +17 -14
- package/node_modules/@hcengineering/measurements/src/__tests__/performance.test.ts +3 -3
- package/node_modules/@hcengineering/platform/lang/pt-br.json +31 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js +100 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js.map +2 -2
- package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js +78 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js.map +7 -0
- package/node_modules/@hcengineering/platform/lib/i18n.js +78 -69
- package/node_modules/@hcengineering/platform/lib/i18n.js.map +3 -3
- package/node_modules/@hcengineering/platform/lib/status.js +25 -0
- package/node_modules/@hcengineering/platform/lib/status.js.map +2 -2
- package/node_modules/@hcengineering/platform/package.json +18 -15
- package/node_modules/@hcengineering/platform/src/__tests__/i18n.test.ts +114 -2
- package/node_modules/@hcengineering/platform/src/__tests__/status.test.ts +77 -0
- package/node_modules/@hcengineering/platform/src/i18n.ts +99 -71
- package/node_modules/@hcengineering/platform/src/status.ts +30 -0
- package/node_modules/@hcengineering/rank/package.json +19 -16
- package/node_modules/@hcengineering/rpc/package.json +21 -18
- package/node_modules/@hcengineering/tags/package.json +12 -9
- package/node_modules/@hcengineering/task/package.json +14 -11
- package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js +25 -0
- package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js.map +2 -2
- package/node_modules/@hcengineering/text/lib/tiptapExtensions.js +6 -0
- package/node_modules/@hcengineering/text/lib/tiptapExtensions.js.map +2 -2
- package/node_modules/@hcengineering/text/package.json +23 -18
- package/node_modules/@hcengineering/text/src/markup/__tests__/utils.test.ts +27 -0
- package/node_modules/@hcengineering/text/src/tiptapExtensions.ts +3 -0
- package/node_modules/@hcengineering/text-core/lib/markup/model.js +1 -0
- package/node_modules/@hcengineering/text-core/lib/markup/model.js.map +2 -2
- package/node_modules/@hcengineering/text-core/package.json +20 -17
- package/node_modules/@hcengineering/text-core/src/markup/model.ts +2 -1
- package/node_modules/@hcengineering/text-html/package.json +19 -16
- package/node_modules/@hcengineering/text-markdown/lib/serializer.js +14 -0
- package/node_modules/@hcengineering/text-markdown/lib/serializer.js.map +2 -2
- package/node_modules/@hcengineering/text-markdown/package.json +20 -17
- package/node_modules/@hcengineering/text-markdown/src/serializer.ts +14 -0
- package/node_modules/@hcengineering/tracker/lib/index.js +1 -0
- package/node_modules/@hcengineering/tracker/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/tracker/package.json +16 -13
- package/node_modules/@tiptap/core/dist/commands/focus.d.ts.map +1 -1
- package/node_modules/@tiptap/core/dist/index.cjs +19 -2
- package/node_modules/@tiptap/core/dist/index.cjs.map +1 -1
- package/node_modules/@tiptap/core/dist/index.js +19 -3
- package/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/node_modules/@tiptap/core/dist/index.umd.js +19 -2
- package/node_modules/@tiptap/core/dist/index.umd.js.map +1 -1
- package/node_modules/@tiptap/core/dist/utilities/index.d.ts +1 -0
- package/node_modules/@tiptap/core/dist/utilities/index.d.ts.map +1 -1
- package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts +10 -0
- package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts.map +1 -0
- package/node_modules/@tiptap/core/package.json +2 -2
- package/node_modules/@tiptap/core/src/commands/focus.ts +7 -2
- package/node_modules/@tiptap/core/src/utilities/index.ts +1 -0
- package/node_modules/@tiptap/core/src/utilities/isSafari.ts +11 -0
- package/node_modules/@tiptap/extension-blockquote/package.json +2 -2
- package/node_modules/@tiptap/extension-bold/package.json +2 -2
- package/node_modules/@tiptap/extension-bullet-list/package.json +2 -2
- package/node_modules/@tiptap/extension-code/package.json +2 -2
- package/node_modules/@tiptap/extension-code-block/package.json +3 -3
- package/node_modules/@tiptap/extension-document/package.json +2 -2
- package/node_modules/@tiptap/extension-dropcursor/package.json +3 -3
- package/node_modules/@tiptap/extension-gapcursor/package.json +3 -3
- package/node_modules/@tiptap/extension-hard-break/package.json +2 -2
- package/node_modules/@tiptap/extension-heading/package.json +2 -2
- package/node_modules/@tiptap/extension-highlight/package.json +2 -2
- package/node_modules/@tiptap/extension-history/package.json +3 -3
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +3 -3
- package/node_modules/@tiptap/extension-italic/package.json +2 -2
- package/node_modules/@tiptap/extension-link/package.json +3 -3
- package/node_modules/@tiptap/extension-list-item/package.json +2 -2
- package/node_modules/@tiptap/extension-mention/package.json +4 -4
- package/node_modules/@tiptap/extension-ordered-list/package.json +2 -2
- package/node_modules/@tiptap/extension-paragraph/package.json +2 -2
- package/node_modules/@tiptap/extension-strike/package.json +2 -2
- package/node_modules/@tiptap/extension-subscript/README.md +14 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +61 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +4 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js +56 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.umd.js +65 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.umd.js.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts +36 -0
- package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-subscript/package.json +49 -0
- package/node_modules/@tiptap/extension-subscript/src/index.ts +5 -0
- package/node_modules/@tiptap/extension-subscript/src/subscript.ts +91 -0
- package/node_modules/@tiptap/extension-superscript/README.md +14 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +61 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +4 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js +56 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.umd.js +65 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.umd.js.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts +36 -0
- package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-superscript/package.json +49 -0
- package/node_modules/@tiptap/extension-superscript/src/index.ts +5 -0
- package/node_modules/@tiptap/extension-superscript/src/superscript.ts +91 -0
- package/node_modules/@tiptap/extension-table/package.json +3 -3
- package/node_modules/@tiptap/extension-table-cell/package.json +2 -2
- package/node_modules/@tiptap/extension-table-header/package.json +2 -2
- package/node_modules/@tiptap/extension-table-row/package.json +2 -2
- package/node_modules/@tiptap/extension-task-item/package.json +3 -3
- package/node_modules/@tiptap/extension-task-list/package.json +2 -2
- package/node_modules/@tiptap/extension-text/package.json +2 -2
- package/node_modules/@tiptap/extension-typography/package.json +2 -2
- package/node_modules/@tiptap/extension-underline/package.json +2 -2
- package/node_modules/@tiptap/html/package.json +3 -3
- package/node_modules/@tiptap/pm/package.json +1 -1
- package/node_modules/@tiptap/starter-kit/node_modules/@tiptap/extension-text-style/package.json +2 -2
- package/node_modules/@tiptap/starter-kit/package.json +22 -22
- package/node_modules/@tiptap/suggestion/package.json +3 -3
- package/node_modules/linkify-it/build/index.cjs.js +99 -94
- package/node_modules/linkify-it/index.mjs +99 -94
- package/node_modules/linkify-it/package.json +11 -1
- package/node_modules/linkifyjs/README.md +4 -2
- package/node_modules/linkifyjs/dist/linkify.cjs +8 -11
- package/node_modules/linkifyjs/dist/linkify.d.cts +14 -14
- package/node_modules/linkifyjs/dist/linkify.d.mts +14 -14
- package/node_modules/linkifyjs/dist/linkify.js +8 -11
- package/node_modules/linkifyjs/dist/linkify.min.js +1 -1
- package/node_modules/linkifyjs/dist/linkify.mjs +8 -11
- package/node_modules/linkifyjs/package.json +1 -1
- package/node_modules/markdown-it/README.md +13 -17
- package/node_modules/markdown-it/dist/index.cjs.js +111 -31
- package/node_modules/markdown-it/dist/markdown-it.js +117 -31
- package/node_modules/markdown-it/dist/markdown-it.min.js +2 -2
- package/node_modules/markdown-it/lib/common/utils.mjs +30 -1
- package/node_modules/markdown-it/lib/index.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +12 -1
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +4 -1
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +3 -1
- package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +37 -21
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +37 -6
- package/node_modules/markdown-it/package.json +14 -3
- package/node_modules/msgpackr/README.md +1 -3
- package/node_modules/msgpackr/benchmark.md +26 -16
- package/node_modules/msgpackr/dist/index-no-eval.cjs +35 -16
- package/node_modules/msgpackr/dist/index-no-eval.cjs.map +1 -1
- package/node_modules/msgpackr/dist/index-no-eval.min.js +1 -1
- package/node_modules/msgpackr/dist/index-no-eval.min.js.map +1 -1
- package/node_modules/msgpackr/dist/index.js +35 -16
- package/node_modules/msgpackr/dist/index.js.map +1 -1
- package/node_modules/msgpackr/dist/index.min.js +1 -1
- package/node_modules/msgpackr/dist/index.min.js.map +1 -1
- package/node_modules/msgpackr/dist/node.cjs +50 -26
- package/node_modules/msgpackr/dist/node.cjs.map +1 -1
- package/node_modules/msgpackr/dist/test.js +44 -16
- package/node_modules/msgpackr/dist/test.js.map +1 -1
- package/node_modules/msgpackr/dist/unpack-no-eval.cjs +35 -16
- package/node_modules/msgpackr/dist/unpack-no-eval.cjs.map +1 -1
- package/node_modules/msgpackr/index.d.cts +2 -0
- package/node_modules/msgpackr/index.d.ts +2 -0
- package/node_modules/msgpackr/package.json +1 -1
- package/node_modules/msgpackr/stream.js +15 -10
- package/node_modules/msgpackr/unpack.js +35 -16
- package/node_modules/prosemirror-changeset/CHANGELOG.md +12 -0
- package/node_modules/prosemirror-changeset/README.md +31 -2
- package/node_modules/prosemirror-changeset/dist/index.cjs +17 -2
- package/node_modules/prosemirror-changeset/dist/index.d.cts +32 -2
- package/node_modules/prosemirror-changeset/dist/index.d.ts +32 -2
- package/node_modules/prosemirror-changeset/dist/index.js +18 -3
- package/node_modules/prosemirror-changeset/package.json +2 -2
- package/node_modules/prosemirror-changeset/src/README.md +4 -2
- package/node_modules/prosemirror-changeset/src/change.ts +18 -0
- package/node_modules/prosemirror-changeset/src/changeset.ts +10 -4
- package/node_modules/prosemirror-changeset/src/simplify.ts +1 -1
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +3 -0
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +6 -0
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +1 -1
- package/node_modules/prosemirror-gapcursor/dist/index.js +1 -1
- package/node_modules/prosemirror-gapcursor/package.json +3 -2
- package/node_modules/prosemirror-gapcursor/src/gapcursor.ts +1 -1
- package/node_modules/prosemirror-markdown/CHANGELOG.md +12 -0
- package/node_modules/prosemirror-markdown/dist/index.cjs +11 -1
- package/node_modules/prosemirror-markdown/dist/index.js +14 -2
- package/node_modules/prosemirror-markdown/package.json +1 -1
- package/node_modules/prosemirror-markdown/src/to_markdown.ts +12 -3
- package/node_modules/prosemirror-menu/CHANGELOG.md +18 -0
- package/node_modules/prosemirror-menu/CONTRIBUTING.md +22 -18
- package/node_modules/prosemirror-menu/README.md +69 -29
- package/node_modules/prosemirror-menu/dist/index.cjs +232 -48
- package/node_modules/prosemirror-menu/dist/index.d.cts +29 -14
- package/node_modules/prosemirror-menu/dist/index.d.ts +29 -14
- package/node_modules/prosemirror-menu/dist/index.js +229 -36
- package/node_modules/prosemirror-menu/package.json +2 -2
- package/node_modules/prosemirror-menu/src/README.md +30 -1
- package/node_modules/prosemirror-menu/src/icons.ts +3 -2
- package/node_modules/prosemirror-menu/src/menu.ts +193 -40
- package/node_modules/prosemirror-menu/src/menubar.ts +50 -5
- package/node_modules/prosemirror-menu/style/menu.css +28 -7
- package/node_modules/prosemirror-model/CHANGELOG.md +20 -0
- package/node_modules/prosemirror-model/CONTRIBUTING.md +19 -19
- package/node_modules/prosemirror-model/README.md +3 -3
- package/node_modules/prosemirror-model/dist/index.cjs +13 -10
- package/node_modules/prosemirror-model/dist/index.d.cts +25 -21
- package/node_modules/prosemirror-model/dist/index.d.ts +25 -21
- package/node_modules/prosemirror-model/dist/index.js +19 -23
- package/node_modules/prosemirror-model/package.json +2 -2
- package/node_modules/prosemirror-model/src/fragment.ts +1 -1
- package/node_modules/prosemirror-model/src/from_dom.ts +4 -1
- package/node_modules/prosemirror-model/src/node.ts +5 -4
- package/node_modules/prosemirror-model/src/replace.ts +6 -15
- package/node_modules/prosemirror-model/src/schema.ts +1 -1
- package/node_modules/prosemirror-model/src/to_dom.ts +24 -20
- package/node_modules/prosemirror-transform/CHANGELOG.md +16 -0
- package/node_modules/prosemirror-transform/dist/index.cjs +38 -4
- package/node_modules/prosemirror-transform/dist/index.d.cts +19 -0
- package/node_modules/prosemirror-transform/dist/index.d.ts +19 -0
- package/node_modules/prosemirror-transform/dist/index.js +52 -1
- package/node_modules/prosemirror-transform/package.json +1 -1
- package/node_modules/prosemirror-transform/src/replace.ts +16 -0
- package/node_modules/prosemirror-transform/src/replace_step.ts +10 -1
- package/node_modules/prosemirror-transform/src/transform.ts +21 -2
- package/node_modules/prosemirror-view/CHANGELOG.md +34 -2
- package/node_modules/prosemirror-view/CONTRIBUTING.md +19 -19
- package/node_modules/prosemirror-view/README.md +3 -3
- package/node_modules/prosemirror-view/dist/index.cjs +96 -40
- package/node_modules/prosemirror-view/dist/index.d.cts +2 -2
- package/node_modules/prosemirror-view/dist/index.d.ts +2 -2
- package/node_modules/prosemirror-view/dist/index.js +90 -39
- package/node_modules/prosemirror-view/package.json +2 -2
- package/node_modules/prosemirror-view/src/domchange.ts +1 -1
- package/node_modules/prosemirror-view/src/domobserver.ts +59 -16
- package/node_modules/prosemirror-view/src/index.ts +4 -4
- package/node_modules/prosemirror-view/src/input.ts +9 -6
- package/node_modules/prosemirror-view/src/viewdesc.ts +26 -22
- package/node_modules/prosemirror-view/style/prosemirror.css +1 -1
- package/package.json +5 -4
- package/src/client.mjs +2 -2
- package/src/config.mjs +1 -0
- package/src/helpers.mjs +2 -2
- package/src/index.mjs +31 -1
- package/src/initCodex.mjs +281 -0
- package/src/mcp.mjs +1 -1
- package/src/mcpShared.mjs +95 -5
- package/node_modules/@hcengineering/account-client/types/client.d.ts +0 -140
- package/node_modules/@hcengineering/account-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/index.d.ts +0 -4
- package/node_modules/@hcengineering/account-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/types.d.ts +0 -177
- package/node_modules/@hcengineering/account-client/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/utils.d.ts +0 -5
- package/node_modules/@hcengineering/account-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/analytics/types/index.d.ts +0 -25
- package/node_modules/@hcengineering/analytics/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/client.d.ts +0 -6
- package/node_modules/@hcengineering/api-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/config.d.ts +0 -8
- package/node_modules/@hcengineering/api-client/types/config.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/index.d.ts +0 -9
- package/node_modules/@hcengineering/api-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/client.d.ts +0 -5
- package/node_modules/@hcengineering/api-client/types/markup/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/index.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/markup/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/types.d.ts +0 -41
- package/node_modules/@hcengineering/api-client/types/markup/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/index.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/rest/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts +0 -39
- package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/types.d.ts +0 -16
- package/node_modules/@hcengineering/api-client/types/rest/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/index.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/socket/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/node.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/socket/node.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/client.d.ts +0 -21
- package/node_modules/@hcengineering/api-client/types/storage/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/error.d.ts +0 -10
- package/node_modules/@hcengineering/api-client/types/storage/error.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/index.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/storage/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/types.d.ts +0 -10
- package/node_modules/@hcengineering/api-client/types/storage/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/types.d.ts +0 -101
- package/node_modules/@hcengineering/api-client/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/utils.d.ts +0 -12
- package/node_modules/@hcengineering/api-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/analytics.d.ts +0 -5
- package/node_modules/@hcengineering/chunter/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/index.d.ts +0 -211
- package/node_modules/@hcengineering/chunter/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/utils.d.ts +0 -7
- package/node_modules/@hcengineering/chunter/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts +0 -2
- package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client/types/index.d.ts +0 -69
- package/node_modules/@hcengineering/client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts +0 -2
- package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts +0 -45
- package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/connection.d.ts +0 -7
- package/node_modules/@hcengineering/client-resources/types/connection.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/index.d.ts +0 -11
- package/node_modules/@hcengineering/client-resources/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/client.d.ts +0 -34
- package/node_modules/@hcengineering/collaborator-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/collaborator-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts +0 -9
- package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts +0 -2
- package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/analytics.d.ts +0 -6
- package/node_modules/@hcengineering/contact/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/avatar.d.ts +0 -12
- package/node_modules/@hcengineering/contact/types/avatar.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/cache.d.ts +0 -49
- package/node_modules/@hcengineering/contact/types/cache.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/index.d.ts +0 -367
- package/node_modules/@hcengineering/contact/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/types.d.ts +0 -25
- package/node_modules/@hcengineering/contact/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/utils.d.ts +0 -110
- package/node_modules/@hcengineering/contact/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts +0 -4
- package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts +0 -50
- package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/backup.d.ts +0 -26
- package/node_modules/@hcengineering/core/types/backup.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/benchmark.d.ts +0 -19
- package/node_modules/@hcengineering/core/types/benchmark.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/classes.d.ts +0 -716
- package/node_modules/@hcengineering/core/types/classes.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/client.d.ts +0 -69
- package/node_modules/@hcengineering/core/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/clone.d.ts +0 -3
- package/node_modules/@hcengineering/core/types/clone.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/collaboration.d.ts +0 -16
- package/node_modules/@hcengineering/core/types/collaboration.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/collaborators.d.ts +0 -3
- package/node_modules/@hcengineering/core/types/collaborators.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/common.d.ts +0 -4
- package/node_modules/@hcengineering/core/types/common.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/component.d.ts +0 -229
- package/node_modules/@hcengineering/core/types/component.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/hierarchy.d.ts +0 -84
- package/node_modules/@hcengineering/core/types/hierarchy.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/index.d.ts +0 -25
- package/node_modules/@hcengineering/core/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/memdb.d.ts +0 -60
- package/node_modules/@hcengineering/core/types/memdb.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/objvalue.d.ts +0 -10
- package/node_modules/@hcengineering/core/types/objvalue.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/operations.d.ts +0 -87
- package/node_modules/@hcengineering/core/types/operations.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/operator.d.ts +0 -16
- package/node_modules/@hcengineering/core/types/operator.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/predicate.d.ts +0 -6
- package/node_modules/@hcengineering/core/types/predicate.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/proxy.d.ts +0 -21
- package/node_modules/@hcengineering/core/types/proxy.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/query.d.ts +0 -21
- package/node_modules/@hcengineering/core/types/query.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/server.d.ts +0 -82
- package/node_modules/@hcengineering/core/types/server.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/status.d.ts +0 -30
- package/node_modules/@hcengineering/core/types/status.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/storage.d.ts +0 -233
- package/node_modules/@hcengineering/core/types/storage.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/time.d.ts +0 -8
- package/node_modules/@hcengineering/core/types/time.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/tx.d.ts +0 -261
- package/node_modules/@hcengineering/core/types/tx.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/utils.d.ts +0 -207
- package/node_modules/@hcengineering/core/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/context.d.ts +0 -64
- package/node_modules/@hcengineering/measurements/types/context.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/index.d.ts +0 -12
- package/node_modules/@hcengineering/measurements/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/metrics.d.ts +0 -34
- package/node_modules/@hcengineering/measurements/types/metrics.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/types.d.ts +0 -88
- package/node_modules/@hcengineering/measurements/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts +0 -7
- package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/event.d.ts +0 -39
- package/node_modules/@hcengineering/platform/types/event.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/i18n.d.ts +0 -28
- package/node_modules/@hcengineering/platform/types/i18n.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/ident.d.ts +0 -14
- package/node_modules/@hcengineering/platform/types/ident.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/index.d.ts +0 -19
- package/node_modules/@hcengineering/platform/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/metadata.d.ts +0 -38
- package/node_modules/@hcengineering/platform/types/metadata.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/platform.d.ts +0 -218
- package/node_modules/@hcengineering/platform/types/platform.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/resource.d.ts +0 -49
- package/node_modules/@hcengineering/platform/types/resource.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/status.d.ts +0 -60
- package/node_modules/@hcengineering/platform/types/status.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/testUtils.d.ts +0 -8
- package/node_modules/@hcengineering/platform/types/testUtils.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/rank/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/types.d.ts +0 -2
- package/node_modules/@hcengineering/rank/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/utils.d.ts +0 -6
- package/node_modules/@hcengineering/rank/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/rpc/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/rpc.d.ts +0 -96
- package/node_modules/@hcengineering/rpc/types/rpc.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/sliding.d.ts +0 -11
- package/node_modules/@hcengineering/rpc/types/sliding.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts +0 -2
- package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts.map +0 -1
- package/node_modules/@hcengineering/tags/types/analytics.d.ts +0 -5
- package/node_modules/@hcengineering/tags/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/tags/types/index.d.ts +0 -105
- package/node_modules/@hcengineering/tags/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/task/types/index.d.ts +0 -227
- package/node_modules/@hcengineering/task/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/task/types/utils.d.ts +0 -61
- package/node_modules/@hcengineering/task/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/extensions.d.ts +0 -53
- package/node_modules/@hcengineering/text/types/extensions.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/index.d.ts +0 -13
- package/node_modules/@hcengineering/text/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kit.d.ts +0 -12
- package/node_modules/@hcengineering/text/types/kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts +0 -72
- package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts +0 -106
- package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/code.d.ts +0 -8
- package/node_modules/@hcengineering/text/types/marks/code.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/colors.d.ts +0 -21
- package/node_modules/@hcengineering/text/types/marks/colors.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts +0 -5
- package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts +0 -23
- package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts +0 -2
- package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts +0 -5
- package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/utils.d.ts +0 -19
- package/node_modules/@hcengineering/text/types/markup/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts +0 -12
- package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/comment.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/nodes/comment.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/embed.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/embed.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts +0 -17
- package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/file.d.ts +0 -13
- package/node_modules/@hcengineering/text/types/nodes/file.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/image.d.ts +0 -52
- package/node_modules/@hcengineering/text/types/nodes/image.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/index.d.ts +0 -11
- package/node_modules/@hcengineering/text/types/nodes/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts +0 -4
- package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/reference.d.ts +0 -18
- package/node_modules/@hcengineering/text/types/nodes/reference.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/todo.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/todo.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/utils.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/nodes/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts +0 -28
- package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/index.d.ts +0 -6
- package/node_modules/@hcengineering/text-core/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts +0 -25
- package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/model.d.ts +0 -74
- package/node_modules/@hcengineering/text-core/types/markup/model.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts +0 -15
- package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts +0 -6
- package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts +0 -25
- package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/index.d.ts +0 -6
- package/node_modules/@hcengineering/text-html/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/parser.d.ts +0 -10
- package/node_modules/@hcengineering/text-html/types/parser.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/serializer.d.ts +0 -9
- package/node_modules/@hcengineering/text-html/types/serializer.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts +0 -9
- package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/compare.d.ts +0 -10
- package/node_modules/@hcengineering/text-markdown/types/compare.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/index.d.ts +0 -14
- package/node_modules/@hcengineering/text-markdown/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/marks.d.ts +0 -8
- package/node_modules/@hcengineering/text-markdown/types/marks.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/node.d.ts +0 -4
- package/node_modules/@hcengineering/text-markdown/types/node.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/parser.d.ts +0 -50
- package/node_modules/@hcengineering/text-markdown/types/parser.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts +0 -102
- package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts.map +0 -1
- package/node_modules/@hcengineering/tracker/types/analytics.d.ts +0 -24
- package/node_modules/@hcengineering/tracker/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/tracker/types/index.d.ts +0 -431
- package/node_modules/@hcengineering/tracker/types/index.d.ts.map +0 -1
|
@@ -1338,17 +1338,17 @@ var NodeViewDesc = function (_ViewDesc4) {
|
|
|
1338
1338
|
var compositionInChild = composition && composition.pos < 0;
|
|
1339
1339
|
var updater = new ViewTreeUpdater(this, localComposition && localComposition.node, view);
|
|
1340
1340
|
iterDeco(this.node, this.innerDeco, function (widget, i, insideNode) {
|
|
1341
|
-
if (widget.spec.marks) updater.syncToMarks(widget.spec.marks, inline, view);else if (widget.type.side >= 0 && !insideNode) updater.syncToMarks(i == _this6.node.childCount ? prosemirrorModel.Mark.none : _this6.node.child(i).marks, inline, view);
|
|
1341
|
+
if (widget.spec.marks) updater.syncToMarks(widget.spec.marks, inline, view, i);else if (widget.type.side >= 0 && !insideNode) updater.syncToMarks(i == _this6.node.childCount ? prosemirrorModel.Mark.none : _this6.node.child(i).marks, inline, view, i);
|
|
1342
1342
|
updater.placeWidget(widget, view, off);
|
|
1343
1343
|
}, function (child, outerDeco, innerDeco, i) {
|
|
1344
|
-
updater.syncToMarks(child.marks, inline, view);
|
|
1344
|
+
updater.syncToMarks(child.marks, inline, view, i);
|
|
1345
1345
|
var compIndex;
|
|
1346
1346
|
if (updater.findNodeMatch(child, outerDeco, innerDeco, i)) ;else if (compositionInChild && view.state.selection.from > off && view.state.selection.to < off + child.nodeSize && (compIndex = updater.findIndexWithChild(composition.node)) > -1 && updater.updateNodeAt(child, outerDeco, innerDeco, compIndex, view)) ;else if (updater.updateNextNode(child, outerDeco, innerDeco, view, i, off)) ;else {
|
|
1347
1347
|
updater.addNode(child, outerDeco, innerDeco, view, off);
|
|
1348
1348
|
}
|
|
1349
1349
|
off += child.nodeSize;
|
|
1350
1350
|
});
|
|
1351
|
-
updater.syncToMarks([], inline, view);
|
|
1351
|
+
updater.syncToMarks([], inline, view, 0);
|
|
1352
1352
|
if (this.node.isTextblock) updater.addTextblockHacks();
|
|
1353
1353
|
updater.destroyRest();
|
|
1354
1354
|
if (updater.changed || this.dirty == CONTENT_DIRTY) {
|
|
@@ -1786,7 +1786,7 @@ var ViewTreeUpdater = function () {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
}, {
|
|
1788
1788
|
key: "syncToMarks",
|
|
1789
|
-
value: function syncToMarks(marks, inline, view) {
|
|
1789
|
+
value: function syncToMarks(marks, inline, view, parentIndex) {
|
|
1790
1790
|
var keep = 0,
|
|
1791
1791
|
depth = this.stack.length >> 1;
|
|
1792
1792
|
var maxKeep = Math.min(depth, marks.length);
|
|
@@ -1800,8 +1800,10 @@ var ViewTreeUpdater = function () {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
while (depth < marks.length) {
|
|
1802
1802
|
this.stack.push(this.top, this.index + 1);
|
|
1803
|
-
var found = -1
|
|
1804
|
-
|
|
1803
|
+
var found = -1,
|
|
1804
|
+
scanTo = this.top.children.length;
|
|
1805
|
+
if (parentIndex < this.preMatch.index) scanTo = Math.min(this.index + 3, scanTo);
|
|
1806
|
+
for (var i = this.index; i < scanTo; i++) {
|
|
1805
1807
|
var next = this.top.children[i];
|
|
1806
1808
|
if (next.matchesMark(marks[depth]) && !this.isLocked(next.dom)) {
|
|
1807
1809
|
found = i;
|
|
@@ -2919,6 +2921,7 @@ var InputState = _createClass(function InputState() {
|
|
|
2919
2921
|
this.compositionNodes = [];
|
|
2920
2922
|
this.compositionEndedAt = -2e8;
|
|
2921
2923
|
this.compositionID = 1;
|
|
2924
|
+
this.badSafariComposition = false;
|
|
2922
2925
|
this.compositionPendingChanges = 0;
|
|
2923
2926
|
this.domChangeCount = 0;
|
|
2924
2927
|
this.eventHandlers = Object.create(null);
|
|
@@ -3180,7 +3183,7 @@ var MouseDown = function () {
|
|
|
3180
3183
|
var targetDesc = target ? view.docView.nearestDesc(target, true) : null;
|
|
3181
3184
|
this.target = targetDesc && targetDesc.nodeDOM.nodeType == 1 ? targetDesc.nodeDOM : null;
|
|
3182
3185
|
var selection = view.state.selection;
|
|
3183
|
-
if (event.button == 0 && targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false || selection instanceof prosemirrorState.NodeSelection && selection.from <= targetPos && selection.to > targetPos) this.mightDrag = {
|
|
3186
|
+
if (event.button == 0 && (targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false || selection instanceof prosemirrorState.NodeSelection && selection.from <= targetPos && selection.to > targetPos)) this.mightDrag = {
|
|
3184
3187
|
node: targetNode,
|
|
3185
3188
|
pos: targetPos,
|
|
3186
3189
|
addAttr: !!(this.target && !this.target.draggable),
|
|
@@ -3317,7 +3320,7 @@ editHandlers.compositionend = function (view, event) {
|
|
|
3317
3320
|
view.input.compositionEndedAt = event.timeStamp;
|
|
3318
3321
|
view.input.compositionPendingChanges = view.domObserver.pendingRecords().length ? view.input.compositionID : 0;
|
|
3319
3322
|
view.input.compositionNode = null;
|
|
3320
|
-
if (view.input.compositionPendingChanges) Promise.resolve().then(function () {
|
|
3323
|
+
if (view.input.badSafariComposition) view.domObserver.forceFlush();else if (view.input.compositionPendingChanges) Promise.resolve().then(function () {
|
|
3321
3324
|
return view.domObserver.flush();
|
|
3322
3325
|
});
|
|
3323
3326
|
view.input.compositionID++;
|
|
@@ -3459,10 +3462,11 @@ var Dragging = _createClass(function Dragging(slice, move, node) {
|
|
|
3459
3462
|
});
|
|
3460
3463
|
var dragCopyModifier = mac ? "altKey" : "ctrlKey";
|
|
3461
3464
|
function dragMoves(view, event) {
|
|
3462
|
-
var
|
|
3463
|
-
|
|
3465
|
+
var copy;
|
|
3466
|
+
view.someProp("dragCopies", function (test) {
|
|
3467
|
+
copy = copy || test(event);
|
|
3464
3468
|
});
|
|
3465
|
-
return
|
|
3469
|
+
return copy != null ? !copy : !event[dragCopyModifier];
|
|
3466
3470
|
}
|
|
3467
3471
|
handlers.dragstart = function (view, _event) {
|
|
3468
3472
|
var event = _event;
|
|
@@ -4235,7 +4239,16 @@ var DOMObserver = function () {
|
|
|
4235
4239
|
for (var i = 0; i < mutations.length; i++) _this11.queue.push(mutations[i]);
|
|
4236
4240
|
if (ie && ie_version <= 11 && mutations.some(function (m) {
|
|
4237
4241
|
return m.type == "childList" && m.removedNodes.length || m.type == "characterData" && m.oldValue.length > m.target.nodeValue.length;
|
|
4238
|
-
}))
|
|
4242
|
+
})) {
|
|
4243
|
+
_this11.flushSoon();
|
|
4244
|
+
} else if (safari && view.composing && mutations.some(function (m) {
|
|
4245
|
+
return m.type == "childList" && m.target.nodeName == "TR";
|
|
4246
|
+
})) {
|
|
4247
|
+
view.input.badSafariComposition = true;
|
|
4248
|
+
_this11.flushSoon();
|
|
4249
|
+
} else {
|
|
4250
|
+
_this11.flush();
|
|
4251
|
+
}
|
|
4239
4252
|
});
|
|
4240
4253
|
if (useCharData) {
|
|
4241
4254
|
this.onCharData = function (e) {
|
|
@@ -4391,7 +4404,31 @@ var DOMObserver = function () {
|
|
|
4391
4404
|
}
|
|
4392
4405
|
}
|
|
4393
4406
|
}
|
|
4394
|
-
if (
|
|
4407
|
+
if (added.some(function (n) {
|
|
4408
|
+
return n.nodeName == "BR";
|
|
4409
|
+
}) && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
4410
|
+
var _iterator3 = _createForOfIteratorHelper(added),
|
|
4411
|
+
_step3;
|
|
4412
|
+
try {
|
|
4413
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
4414
|
+
var node = _step3.value;
|
|
4415
|
+
if (node.nodeName == "BR" && node.parentNode) {
|
|
4416
|
+
var after = node.nextSibling;
|
|
4417
|
+
while (after && after.nodeType == 1) {
|
|
4418
|
+
if (after.contentEditable == "false") {
|
|
4419
|
+
node.parentNode.removeChild(node);
|
|
4420
|
+
break;
|
|
4421
|
+
}
|
|
4422
|
+
after = after.firstChild;
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
} catch (err) {
|
|
4427
|
+
_iterator3.e(err);
|
|
4428
|
+
} finally {
|
|
4429
|
+
_iterator3.f();
|
|
4430
|
+
}
|
|
4431
|
+
} else if (gecko && added.length) {
|
|
4395
4432
|
var brs = added.filter(function (n) {
|
|
4396
4433
|
return n.nodeName == "BR";
|
|
4397
4434
|
});
|
|
@@ -4402,37 +4439,19 @@ var DOMObserver = function () {
|
|
|
4402
4439
|
if (a.parentNode && a.parentNode.parentNode == b.parentNode) b.remove();else a.remove();
|
|
4403
4440
|
} else {
|
|
4404
4441
|
var focusNode = this.currentSelection.focusNode;
|
|
4405
|
-
var
|
|
4406
|
-
|
|
4442
|
+
var _iterator4 = _createForOfIteratorHelper(brs),
|
|
4443
|
+
_step4;
|
|
4407
4444
|
try {
|
|
4408
|
-
for (
|
|
4409
|
-
var br =
|
|
4445
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4446
|
+
var br = _step4.value;
|
|
4410
4447
|
var parent = br.parentNode;
|
|
4411
4448
|
if (parent && parent.nodeName == "LI" && (!focusNode || blockParent(view, focusNode) != parent)) br.remove();
|
|
4412
4449
|
}
|
|
4413
4450
|
} catch (err) {
|
|
4414
|
-
|
|
4451
|
+
_iterator4.e(err);
|
|
4415
4452
|
} finally {
|
|
4416
|
-
|
|
4417
|
-
}
|
|
4418
|
-
}
|
|
4419
|
-
} else if ((chrome || safari) && added.some(function (n) {
|
|
4420
|
-
return n.nodeName == "BR";
|
|
4421
|
-
}) && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
4422
|
-
var _iterator4 = _createForOfIteratorHelper(added),
|
|
4423
|
-
_step4;
|
|
4424
|
-
try {
|
|
4425
|
-
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4426
|
-
var node = _step4.value;
|
|
4427
|
-
if (node.nodeName == "BR" && node.parentNode) {
|
|
4428
|
-
var after = node.nextSibling;
|
|
4429
|
-
if (after && after.nodeType == 1 && after.contentEditable == "false") node.parentNode.removeChild(node);
|
|
4430
|
-
}
|
|
4453
|
+
_iterator4.f();
|
|
4431
4454
|
}
|
|
4432
|
-
} catch (err) {
|
|
4433
|
-
_iterator4.e(err);
|
|
4434
|
-
} finally {
|
|
4435
|
-
_iterator4.f();
|
|
4436
4455
|
}
|
|
4437
4456
|
}
|
|
4438
4457
|
var readSel = null;
|
|
@@ -4446,6 +4465,10 @@ var DOMObserver = function () {
|
|
|
4446
4465
|
view.docView.markDirty(from, to);
|
|
4447
4466
|
checkCSS(view);
|
|
4448
4467
|
}
|
|
4468
|
+
if (view.input.badSafariComposition) {
|
|
4469
|
+
view.input.badSafariComposition = false;
|
|
4470
|
+
fixUpBadSafariComposition(view, added);
|
|
4471
|
+
}
|
|
4449
4472
|
this.handleDOMChange(from, to, typeOver, added);
|
|
4450
4473
|
if (view.docView && view.docView.dirty) view.updateState(view.state);else if (!this.currentSelection.eq(sel)) selectionToDOM(view);
|
|
4451
4474
|
this.currentSelection.set(sel);
|
|
@@ -4559,6 +4582,39 @@ function blockParent(view, node) {
|
|
|
4559
4582
|
}
|
|
4560
4583
|
return null;
|
|
4561
4584
|
}
|
|
4585
|
+
function fixUpBadSafariComposition(view, addedNodes) {
|
|
4586
|
+
var _a;
|
|
4587
|
+
var _view$domSelectionRan5 = view.domSelectionRange(),
|
|
4588
|
+
focusNode = _view$domSelectionRan5.focusNode,
|
|
4589
|
+
focusOffset = _view$domSelectionRan5.focusOffset;
|
|
4590
|
+
var _iterator5 = _createForOfIteratorHelper(addedNodes),
|
|
4591
|
+
_step5;
|
|
4592
|
+
try {
|
|
4593
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
4594
|
+
var node = _step5.value;
|
|
4595
|
+
if (((_a = node.parentNode) === null || _a === void 0 ? void 0 : _a.nodeName) == "TR") {
|
|
4596
|
+
var nextCell = node.nextSibling;
|
|
4597
|
+
while (nextCell && nextCell.nodeName != "TD" && nextCell.nodeName != "TH") nextCell = nextCell.nextSibling;
|
|
4598
|
+
if (nextCell) {
|
|
4599
|
+
var parent = nextCell;
|
|
4600
|
+
for (;;) {
|
|
4601
|
+
var first = parent.firstChild;
|
|
4602
|
+
if (!first || first.nodeType != 1 || first.contentEditable == "false" || /^(BR|IMG)$/.test(first.nodeName)) break;
|
|
4603
|
+
parent = first;
|
|
4604
|
+
}
|
|
4605
|
+
parent.insertBefore(node, parent.firstChild);
|
|
4606
|
+
if (focusNode == node) view.domSelection().collapse(node, focusOffset);
|
|
4607
|
+
} else {
|
|
4608
|
+
node.parentNode.removeChild(node);
|
|
4609
|
+
}
|
|
4610
|
+
}
|
|
4611
|
+
}
|
|
4612
|
+
} catch (err) {
|
|
4613
|
+
_iterator5.e(err);
|
|
4614
|
+
} finally {
|
|
4615
|
+
_iterator5.f();
|
|
4616
|
+
}
|
|
4617
|
+
}
|
|
4562
4618
|
function parseBetween(view, from_, to_) {
|
|
4563
4619
|
var _view$docView$parseRa = view.docView.parseRange(from_, to_),
|
|
4564
4620
|
parent = _view$docView$parseRa.node,
|
|
@@ -5014,7 +5070,7 @@ var EditorView = function () {
|
|
|
5014
5070
|
this.docView.destroy();
|
|
5015
5071
|
this.docView = docViewDesc(state.doc, outerDeco, innerDeco, this.dom, this);
|
|
5016
5072
|
}
|
|
5017
|
-
if (chromeKludge && !this.trackWrites) forceSelUpdate = true;
|
|
5073
|
+
if (chromeKludge && (!this.trackWrites || !this.dom.contains(this.trackWrites))) forceSelUpdate = true;
|
|
5018
5074
|
}
|
|
5019
5075
|
if (forceSelUpdate || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && anchorInRightPlace(this))) {
|
|
5020
5076
|
selectionToDOM(this, forceSelUpdate);
|
|
@@ -5080,11 +5136,11 @@ var EditorView = function () {
|
|
|
5080
5136
|
value: function updateDraggedNode(dragging, prev) {
|
|
5081
5137
|
var sel = dragging.node,
|
|
5082
5138
|
found = -1;
|
|
5083
|
-
if (this.state.doc.nodeAt(sel.from) == sel.node) {
|
|
5139
|
+
if (sel.from < this.state.doc.content.size && this.state.doc.nodeAt(sel.from) == sel.node) {
|
|
5084
5140
|
found = sel.from;
|
|
5085
5141
|
} else {
|
|
5086
5142
|
var movedPos = sel.from + (this.state.doc.content.size - prev.doc.content.size);
|
|
5087
|
-
var moved = movedPos > 0 && this.state.doc.nodeAt(movedPos);
|
|
5143
|
+
var moved = movedPos > 0 && movedPos < this.state.doc.content.size && this.state.doc.nodeAt(movedPos);
|
|
5088
5144
|
if (moved == sel.node) found = movedPos;
|
|
5089
5145
|
}
|
|
5090
5146
|
this.dragging = new Dragging(dragging.slice, dragging.move, found < 0 ? undefined : prosemirrorState.NodeSelection.create(this.state.doc, found));
|
|
@@ -275,7 +275,7 @@ interface NodeView {
|
|
|
275
275
|
/**
|
|
276
276
|
The outer DOM node that represents the document node.
|
|
277
277
|
*/
|
|
278
|
-
dom:
|
|
278
|
+
dom: HTMLElement;
|
|
279
279
|
/**
|
|
280
280
|
The DOM node that should hold the node's content. Only meaningful
|
|
281
281
|
if the node view also defines a `dom` property and if its node
|
|
@@ -356,7 +356,7 @@ interface MarkView {
|
|
|
356
356
|
/**
|
|
357
357
|
The outer DOM node that represents the document node.
|
|
358
358
|
*/
|
|
359
|
-
dom:
|
|
359
|
+
dom: HTMLElement;
|
|
360
360
|
/**
|
|
361
361
|
The DOM node that should hold the mark's content. When this is not
|
|
362
362
|
present, the `dom` property is used as the content DOM.
|
|
@@ -275,7 +275,7 @@ interface NodeView {
|
|
|
275
275
|
/**
|
|
276
276
|
The outer DOM node that represents the document node.
|
|
277
277
|
*/
|
|
278
|
-
dom:
|
|
278
|
+
dom: HTMLElement;
|
|
279
279
|
/**
|
|
280
280
|
The DOM node that should hold the node's content. Only meaningful
|
|
281
281
|
if the node view also defines a `dom` property and if its node
|
|
@@ -356,7 +356,7 @@ interface MarkView {
|
|
|
356
356
|
/**
|
|
357
357
|
The outer DOM node that represents the document node.
|
|
358
358
|
*/
|
|
359
|
-
dom:
|
|
359
|
+
dom: HTMLElement;
|
|
360
360
|
/**
|
|
361
361
|
The DOM node that should hold the mark's content. When this is not
|
|
362
362
|
present, the `dom` property is used as the content DOM.
|
|
@@ -1376,15 +1376,15 @@ class NodeViewDesc extends ViewDesc {
|
|
|
1376
1376
|
let updater = new ViewTreeUpdater(this, localComposition && localComposition.node, view);
|
|
1377
1377
|
iterDeco(this.node, this.innerDeco, (widget, i, insideNode) => {
|
|
1378
1378
|
if (widget.spec.marks)
|
|
1379
|
-
updater.syncToMarks(widget.spec.marks, inline, view);
|
|
1379
|
+
updater.syncToMarks(widget.spec.marks, inline, view, i);
|
|
1380
1380
|
else if (widget.type.side >= 0 && !insideNode)
|
|
1381
|
-
updater.syncToMarks(i == this.node.childCount ? Mark.none : this.node.child(i).marks, inline, view);
|
|
1381
|
+
updater.syncToMarks(i == this.node.childCount ? Mark.none : this.node.child(i).marks, inline, view, i);
|
|
1382
1382
|
// If the next node is a desc matching this widget, reuse it,
|
|
1383
1383
|
// otherwise insert the widget as a new view desc.
|
|
1384
1384
|
updater.placeWidget(widget, view, off);
|
|
1385
1385
|
}, (child, outerDeco, innerDeco, i) => {
|
|
1386
1386
|
// Make sure the wrapping mark descs match the node's marks.
|
|
1387
|
-
updater.syncToMarks(child.marks, inline, view);
|
|
1387
|
+
updater.syncToMarks(child.marks, inline, view, i);
|
|
1388
1388
|
// Try several strategies for drawing this node
|
|
1389
1389
|
let compIndex;
|
|
1390
1390
|
if (updater.findNodeMatch(child, outerDeco, innerDeco, i)) ;
|
|
@@ -1400,7 +1400,7 @@ class NodeViewDesc extends ViewDesc {
|
|
|
1400
1400
|
off += child.nodeSize;
|
|
1401
1401
|
});
|
|
1402
1402
|
// Drop all remaining descs after the current position.
|
|
1403
|
-
updater.syncToMarks([], inline, view);
|
|
1403
|
+
updater.syncToMarks([], inline, view, 0);
|
|
1404
1404
|
if (this.node.isTextblock)
|
|
1405
1405
|
updater.addTextblockHacks();
|
|
1406
1406
|
updater.destroyRest();
|
|
@@ -1790,7 +1790,7 @@ class ViewTreeUpdater {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
// Sync the current stack of mark descs with the given array of
|
|
1792
1792
|
// marks, reusing existing mark descs when possible.
|
|
1793
|
-
syncToMarks(marks, inline, view) {
|
|
1793
|
+
syncToMarks(marks, inline, view, parentIndex) {
|
|
1794
1794
|
let keep = 0, depth = this.stack.length >> 1;
|
|
1795
1795
|
let maxKeep = Math.min(depth, marks.length);
|
|
1796
1796
|
while (keep < maxKeep &&
|
|
@@ -1806,8 +1806,10 @@ class ViewTreeUpdater {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
while (depth < marks.length) {
|
|
1808
1808
|
this.stack.push(this.top, this.index + 1);
|
|
1809
|
-
let found = -1;
|
|
1810
|
-
|
|
1809
|
+
let found = -1, scanTo = this.top.children.length;
|
|
1810
|
+
if (parentIndex < this.preMatch.index)
|
|
1811
|
+
scanTo = Math.min(this.index + 3, scanTo);
|
|
1812
|
+
for (let i = this.index; i < scanTo; i++) {
|
|
1811
1813
|
let next = this.top.children[i];
|
|
1812
1814
|
if (next.matchesMark(marks[depth]) && !this.isLocked(next.dom)) {
|
|
1813
1815
|
found = i;
|
|
@@ -2003,9 +2005,7 @@ class ViewTreeUpdater {
|
|
|
2003
2005
|
}
|
|
2004
2006
|
// Iterate from the end of the fragment and array of descs to find
|
|
2005
2007
|
// directly matching ones, in order to avoid overeagerly reusing those
|
|
2006
|
-
// for other nodes.
|
|
2007
|
-
// is part of the sequence of matched nodes at the end of the
|
|
2008
|
-
// fragment.
|
|
2008
|
+
// for other nodes.
|
|
2009
2009
|
function preMatch(frag, parentDesc) {
|
|
2010
2010
|
let curDesc = parentDesc, descI = curDesc.children.length;
|
|
2011
2011
|
let fI = frag.childCount, matched = new Map, matches = [];
|
|
@@ -2028,7 +2028,6 @@ function preMatch(frag, parentDesc) {
|
|
|
2028
2028
|
break outer;
|
|
2029
2029
|
}
|
|
2030
2030
|
else {
|
|
2031
|
-
// FIXME
|
|
2032
2031
|
descI = curDesc.parent.children.indexOf(curDesc);
|
|
2033
2032
|
curDesc = curDesc.parent;
|
|
2034
2033
|
}
|
|
@@ -3075,6 +3074,7 @@ class InputState {
|
|
|
3075
3074
|
this.compositionNodes = [];
|
|
3076
3075
|
this.compositionEndedAt = -2e8;
|
|
3077
3076
|
this.compositionID = 1;
|
|
3077
|
+
this.badSafariComposition = false;
|
|
3078
3078
|
// Set to a composition ID when there are pending changes at compositionend
|
|
3079
3079
|
this.compositionPendingChanges = 0;
|
|
3080
3080
|
this.domChangeCount = 0;
|
|
@@ -3353,8 +3353,8 @@ class MouseDown {
|
|
|
3353
3353
|
this.target = targetDesc && targetDesc.nodeDOM.nodeType == 1 ? targetDesc.nodeDOM : null;
|
|
3354
3354
|
let { selection } = view.state;
|
|
3355
3355
|
if (event.button == 0 &&
|
|
3356
|
-
targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false ||
|
|
3357
|
-
|
|
3356
|
+
(targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false ||
|
|
3357
|
+
selection instanceof NodeSelection && selection.from <= targetPos && selection.to > targetPos))
|
|
3358
3358
|
this.mightDrag = {
|
|
3359
3359
|
node: targetNode,
|
|
3360
3360
|
pos: targetPos,
|
|
@@ -3522,7 +3522,9 @@ editHandlers.compositionend = (view, event) => {
|
|
|
3522
3522
|
view.input.compositionEndedAt = event.timeStamp;
|
|
3523
3523
|
view.input.compositionPendingChanges = view.domObserver.pendingRecords().length ? view.input.compositionID : 0;
|
|
3524
3524
|
view.input.compositionNode = null;
|
|
3525
|
-
if (view.input.
|
|
3525
|
+
if (view.input.badSafariComposition)
|
|
3526
|
+
view.domObserver.forceFlush();
|
|
3527
|
+
else if (view.input.compositionPendingChanges)
|
|
3526
3528
|
Promise.resolve().then(() => view.domObserver.flush());
|
|
3527
3529
|
view.input.compositionID++;
|
|
3528
3530
|
scheduleComposeEnd(view, 20);
|
|
@@ -3701,8 +3703,9 @@ class Dragging {
|
|
|
3701
3703
|
}
|
|
3702
3704
|
const dragCopyModifier = mac ? "altKey" : "ctrlKey";
|
|
3703
3705
|
function dragMoves(view, event) {
|
|
3704
|
-
let
|
|
3705
|
-
|
|
3706
|
+
let copy;
|
|
3707
|
+
view.someProp("dragCopies", test => { copy = copy || test(event); });
|
|
3708
|
+
return copy != null ? !copy : !event[dragCopyModifier];
|
|
3706
3709
|
}
|
|
3707
3710
|
handlers.dragstart = (view, _event) => {
|
|
3708
3711
|
let event = _event;
|
|
@@ -3729,7 +3732,7 @@ handlers.dragstart = (view, _event) => {
|
|
|
3729
3732
|
if (!event.dataTransfer.files.length || !chrome || chrome_version > 120)
|
|
3730
3733
|
event.dataTransfer.clearData();
|
|
3731
3734
|
event.dataTransfer.setData(brokenClipboardAPI ? "Text" : "text/html", dom.innerHTML);
|
|
3732
|
-
// See https://
|
|
3735
|
+
// See https://code.haverbeke.berlin/prosemirror/prosemirror/issues/1156
|
|
3733
3736
|
event.dataTransfer.effectAllowed = "copyMove";
|
|
3734
3737
|
if (!brokenClipboardAPI)
|
|
3735
3738
|
event.dataTransfer.setData("text/plain", text);
|
|
@@ -4585,15 +4588,24 @@ class DOMObserver {
|
|
|
4585
4588
|
new window.MutationObserver(mutations => {
|
|
4586
4589
|
for (let i = 0; i < mutations.length; i++)
|
|
4587
4590
|
this.queue.push(mutations[i]);
|
|
4588
|
-
// IE11 will sometimes (on backspacing out a single character
|
|
4589
|
-
// text node after a BR node) call the observer callback
|
|
4590
|
-
// before actually updating the DOM, which will cause
|
|
4591
|
-
// ProseMirror to miss the change (see #930)
|
|
4592
4591
|
if (ie && ie_version <= 11 && mutations.some(m => m.type == "childList" && m.removedNodes.length ||
|
|
4593
|
-
m.type == "characterData" && m.oldValue.length > m.target.nodeValue.length))
|
|
4592
|
+
m.type == "characterData" && m.oldValue.length > m.target.nodeValue.length)) {
|
|
4593
|
+
// IE11 will sometimes (on backspacing out a single character
|
|
4594
|
+
// text node after a BR node) call the observer callback
|
|
4595
|
+
// before actually updating the DOM, which will cause
|
|
4596
|
+
// ProseMirror to miss the change (see #930)
|
|
4594
4597
|
this.flushSoon();
|
|
4595
|
-
|
|
4598
|
+
}
|
|
4599
|
+
else if (safari && view.composing && mutations.some(m => m.type == "childList" && m.target.nodeName == "TR")) {
|
|
4600
|
+
// Safari does weird stuff when finishing a composition in a
|
|
4601
|
+
// table cell, which tends to involve inserting inappropriate
|
|
4602
|
+
// nodes in the table row.
|
|
4603
|
+
view.input.badSafariComposition = true;
|
|
4604
|
+
this.flushSoon();
|
|
4605
|
+
}
|
|
4606
|
+
else {
|
|
4596
4607
|
this.flush();
|
|
4608
|
+
}
|
|
4597
4609
|
});
|
|
4598
4610
|
if (useCharData) {
|
|
4599
4611
|
this.onCharData = e => {
|
|
@@ -4713,7 +4725,22 @@ class DOMObserver {
|
|
|
4713
4725
|
}
|
|
4714
4726
|
}
|
|
4715
4727
|
}
|
|
4716
|
-
if (
|
|
4728
|
+
if (added.some(n => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
4729
|
+
// Browsers sometimes insert a bogus break node if you
|
|
4730
|
+
// backspace out the last bit of text before an inline-flex node (#1552)
|
|
4731
|
+
for (let node of added)
|
|
4732
|
+
if (node.nodeName == "BR" && node.parentNode) {
|
|
4733
|
+
let after = node.nextSibling;
|
|
4734
|
+
while (after && after.nodeType == 1) {
|
|
4735
|
+
if (after.contentEditable == "false") {
|
|
4736
|
+
node.parentNode.removeChild(node);
|
|
4737
|
+
break;
|
|
4738
|
+
}
|
|
4739
|
+
after = after.firstChild;
|
|
4740
|
+
}
|
|
4741
|
+
}
|
|
4742
|
+
}
|
|
4743
|
+
else if (gecko && added.length) {
|
|
4717
4744
|
let brs = added.filter(n => n.nodeName == "BR");
|
|
4718
4745
|
if (brs.length == 2) {
|
|
4719
4746
|
let [a, b] = brs;
|
|
@@ -4731,17 +4758,6 @@ class DOMObserver {
|
|
|
4731
4758
|
}
|
|
4732
4759
|
}
|
|
4733
4760
|
}
|
|
4734
|
-
else if ((chrome || safari) && added.some(n => n.nodeName == "BR") &&
|
|
4735
|
-
(view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
4736
|
-
// Chrome/Safari sometimes insert a bogus break node if you
|
|
4737
|
-
// backspace out the last bit of text before an inline-flex node (#1552)
|
|
4738
|
-
for (let node of added)
|
|
4739
|
-
if (node.nodeName == "BR" && node.parentNode) {
|
|
4740
|
-
let after = node.nextSibling;
|
|
4741
|
-
if (after && after.nodeType == 1 && after.contentEditable == "false")
|
|
4742
|
-
node.parentNode.removeChild(node);
|
|
4743
|
-
}
|
|
4744
|
-
}
|
|
4745
4761
|
let readSel = null;
|
|
4746
4762
|
// If it looks like the browser has reset the selection to the
|
|
4747
4763
|
// start of the document after focus, restore the selection from
|
|
@@ -4760,6 +4776,10 @@ class DOMObserver {
|
|
|
4760
4776
|
view.docView.markDirty(from, to);
|
|
4761
4777
|
checkCSS(view);
|
|
4762
4778
|
}
|
|
4779
|
+
if (view.input.badSafariComposition) {
|
|
4780
|
+
view.input.badSafariComposition = false;
|
|
4781
|
+
fixUpBadSafariComposition(view, added);
|
|
4782
|
+
}
|
|
4763
4783
|
this.handleDOMChange(from, to, typeOver, added);
|
|
4764
4784
|
if (view.docView && view.docView.dirty)
|
|
4765
4785
|
view.updateState(view.state);
|
|
@@ -4883,6 +4903,37 @@ function blockParent(view, node) {
|
|
|
4883
4903
|
}
|
|
4884
4904
|
return null;
|
|
4885
4905
|
}
|
|
4906
|
+
// Kludge for a Safari bug where, on ending a composition in an
|
|
4907
|
+
// otherwise empty table cell, it randomly moves the composed text
|
|
4908
|
+
// into the table row around that cell, greatly confusing everything
|
|
4909
|
+
// (#188).
|
|
4910
|
+
function fixUpBadSafariComposition(view, addedNodes) {
|
|
4911
|
+
var _a;
|
|
4912
|
+
let { focusNode, focusOffset } = view.domSelectionRange();
|
|
4913
|
+
for (let node of addedNodes) {
|
|
4914
|
+
if (((_a = node.parentNode) === null || _a === void 0 ? void 0 : _a.nodeName) == "TR") {
|
|
4915
|
+
let nextCell = node.nextSibling;
|
|
4916
|
+
while (nextCell && (nextCell.nodeName != "TD" && nextCell.nodeName != "TH"))
|
|
4917
|
+
nextCell = nextCell.nextSibling;
|
|
4918
|
+
if (nextCell) {
|
|
4919
|
+
let parent = nextCell;
|
|
4920
|
+
for (;;) {
|
|
4921
|
+
let first = parent.firstChild;
|
|
4922
|
+
if (!first || first.nodeType != 1 || first.contentEditable == "false" ||
|
|
4923
|
+
/^(BR|IMG)$/.test(first.nodeName))
|
|
4924
|
+
break;
|
|
4925
|
+
parent = first;
|
|
4926
|
+
}
|
|
4927
|
+
parent.insertBefore(node, parent.firstChild);
|
|
4928
|
+
if (focusNode == node)
|
|
4929
|
+
view.domSelection().collapse(node, focusOffset);
|
|
4930
|
+
}
|
|
4931
|
+
else {
|
|
4932
|
+
node.parentNode.removeChild(node);
|
|
4933
|
+
}
|
|
4934
|
+
}
|
|
4935
|
+
}
|
|
4936
|
+
}
|
|
4886
4937
|
|
|
4887
4938
|
// Note that all referencing and parsing is done with the
|
|
4888
4939
|
// start-of-operation selection and document, since that's the one
|
|
@@ -5315,7 +5366,7 @@ class EditorView {
|
|
|
5315
5366
|
this.pluginViews = [];
|
|
5316
5367
|
/**
|
|
5317
5368
|
Holds `true` when a hack node is needed in Firefox to prevent the
|
|
5318
|
-
[space is eaten issue](https://
|
|
5369
|
+
[space is eaten issue](https://code.haverbeke.berlin/prosemirror/prosemirror/issues/651)
|
|
5319
5370
|
@internal
|
|
5320
5371
|
*/
|
|
5321
5372
|
this.requiresGeckoHackNode = false;
|
|
@@ -5455,7 +5506,7 @@ class EditorView {
|
|
|
5455
5506
|
this.docView.destroy();
|
|
5456
5507
|
this.docView = docViewDesc(state.doc, outerDeco, innerDeco, this.dom, this);
|
|
5457
5508
|
}
|
|
5458
|
-
if (chromeKludge && !this.trackWrites)
|
|
5509
|
+
if (chromeKludge && (!this.trackWrites || !this.dom.contains(this.trackWrites)))
|
|
5459
5510
|
forceSelUpdate = true;
|
|
5460
5511
|
}
|
|
5461
5512
|
// Work around for an issue where an update arriving right between
|
|
@@ -5533,12 +5584,12 @@ class EditorView {
|
|
|
5533
5584
|
}
|
|
5534
5585
|
updateDraggedNode(dragging, prev) {
|
|
5535
5586
|
let sel = dragging.node, found = -1;
|
|
5536
|
-
if (this.state.doc.nodeAt(sel.from) == sel.node) {
|
|
5587
|
+
if (sel.from < this.state.doc.content.size && this.state.doc.nodeAt(sel.from) == sel.node) {
|
|
5537
5588
|
found = sel.from;
|
|
5538
5589
|
}
|
|
5539
5590
|
else {
|
|
5540
5591
|
let movedPos = sel.from + (this.state.doc.content.size - prev.doc.content.size);
|
|
5541
|
-
let moved = movedPos > 0 && this.state.doc.nodeAt(movedPos);
|
|
5592
|
+
let moved = movedPos > 0 && movedPos < this.state.doc.content.size && this.state.doc.nodeAt(movedPos);
|
|
5542
5593
|
if (moved == sel.node)
|
|
5543
5594
|
found = movedPos;
|
|
5544
5595
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosemirror-view",
|
|
3
|
-
"version": "1.41.
|
|
3
|
+
"version": "1.41.8",
|
|
4
4
|
"description": "ProseMirror's view component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "git://
|
|
28
|
+
"url": "git+https://code.haverbeke.berlin/prosemirror/prosemirror-view.git"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"prosemirror-model": "^1.20.0",
|
|
@@ -81,7 +81,7 @@ const isInline = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|
|
|
|
81
81
|
export function readDOMChange(view: EditorView, from: number, to: number, typeOver: boolean, addedNodes: readonly DOMNode[]) {
|
|
82
82
|
let compositionID = view.input.compositionPendingChanges || (view.composing ? view.input.compositionID : 0)
|
|
83
83
|
view.input.compositionPendingChanges = 0
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
if (from < 0) {
|
|
86
86
|
let origin = view.input.lastSelectionTime > Date.now() - 50 ? view.input.lastSelectionOrigin : null
|
|
87
87
|
let newSel = selectionFromDOM(view, origin)
|