@bgx4k3p/huly-mcp-server 2.2.3 → 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 +11 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hcengineering/rpc",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.423",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -13,9 +13,19 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "Anticrm Platform Contributors",
|
|
15
15
|
"license": "EPL-2.0",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "compile",
|
|
18
|
+
"build:watch": "compile",
|
|
19
|
+
"format": "format src",
|
|
20
|
+
"test": "jest --passWithNoTests --silent --coverage",
|
|
21
|
+
"_phase:build": "compile transpile src",
|
|
22
|
+
"_phase:test": "jest --passWithNoTests --silent --coverage",
|
|
23
|
+
"_phase:format": "format src",
|
|
24
|
+
"_phase:validate": "compile validate"
|
|
25
|
+
},
|
|
16
26
|
"devDependencies": {
|
|
17
|
-
"@hcengineering/platform-rig": "^0.7.
|
|
18
|
-
"@types/node": "^22.
|
|
27
|
+
"@hcengineering/platform-rig": "^0.7.423",
|
|
28
|
+
"@types/node": "^22.18.1",
|
|
19
29
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
20
30
|
"eslint-plugin-import": "^2.26.0",
|
|
21
31
|
"eslint-plugin-promise": "^6.1.1",
|
|
@@ -23,7 +33,7 @@
|
|
|
23
33
|
"eslint": "^8.54.0",
|
|
24
34
|
"@typescript-eslint/parser": "^6.21.0",
|
|
25
35
|
"eslint-config-standard-with-typescript": "^40.0.0",
|
|
26
|
-
"prettier": "^3.
|
|
36
|
+
"prettier": "^3.6.2",
|
|
27
37
|
"typescript": "^5.9.3",
|
|
28
38
|
"jest": "^29.7.0",
|
|
29
39
|
"ts-jest": "^29.1.1",
|
|
@@ -31,11 +41,14 @@
|
|
|
31
41
|
"eslint-plugin-svelte": "^2.35.1"
|
|
32
42
|
},
|
|
33
43
|
"dependencies": {
|
|
34
|
-
"@hcengineering/core": "^0.7.
|
|
35
|
-
"@hcengineering/platform": "^0.7.
|
|
44
|
+
"@hcengineering/core": "^0.7.423",
|
|
45
|
+
"@hcengineering/platform": "^0.7.423",
|
|
36
46
|
"msgpackr": "^1.11.2"
|
|
37
47
|
},
|
|
38
|
-
"repository":
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/hcengineering/huly.core.git"
|
|
51
|
+
},
|
|
39
52
|
"publishConfig": {
|
|
40
53
|
"access": "public"
|
|
41
54
|
},
|
|
@@ -45,15 +58,5 @@
|
|
|
45
58
|
"require": "./lib/index.js",
|
|
46
59
|
"import": "./lib/index.js"
|
|
47
60
|
}
|
|
48
|
-
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"build": "compile",
|
|
51
|
-
"build:watch": "compile",
|
|
52
|
-
"format": "format src",
|
|
53
|
-
"test": "jest --passWithNoTests --silent --coverage",
|
|
54
|
-
"_phase:build": "compile transpile src",
|
|
55
|
-
"_phase:test": "jest --passWithNoTests --silent --coverage",
|
|
56
|
-
"_phase:format": "format src",
|
|
57
|
-
"_phase:validate": "compile validate"
|
|
58
61
|
}
|
|
59
|
-
}
|
|
62
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hcengineering/tags",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.423",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -23,25 +23,28 @@
|
|
|
23
23
|
"_phase:validate": "compile validate"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@hcengineering/platform-rig": "^0.7.
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
26
|
+
"@hcengineering/platform-rig": "^0.7.423",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
28
28
|
"eslint-plugin-import": "^2.26.0",
|
|
29
29
|
"eslint-plugin-promise": "^6.1.1",
|
|
30
30
|
"eslint-plugin-n": "^15.4.0",
|
|
31
31
|
"eslint": "^8.54.0",
|
|
32
|
-
"@typescript-eslint/parser": "^6.
|
|
32
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
33
33
|
"eslint-config-standard-with-typescript": "^40.0.0",
|
|
34
|
-
"prettier": "^3.
|
|
35
|
-
"typescript": "^5.
|
|
34
|
+
"prettier": "^3.6.2",
|
|
35
|
+
"typescript": "^5.9.3",
|
|
36
36
|
"jest": "^29.7.0",
|
|
37
37
|
"ts-jest": "^29.1.1",
|
|
38
38
|
"@types/jest": "^29.5.5"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@hcengineering/platform": "^0.7.
|
|
42
|
-
"@hcengineering/core": "^0.7.
|
|
41
|
+
"@hcengineering/platform": "^0.7.423",
|
|
42
|
+
"@hcengineering/core": "^0.7.423"
|
|
43
|
+
},
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/hcengineering/platform.git"
|
|
43
47
|
},
|
|
44
|
-
"repository": "https://github.com/hcengineering/platform",
|
|
45
48
|
"publishConfig": {
|
|
46
49
|
"access": "public"
|
|
47
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hcengineering/task",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.423",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -22,27 +22,30 @@
|
|
|
22
22
|
"_phase:validate": "compile validate"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@hcengineering/platform-rig": "^0.7.
|
|
26
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
25
|
+
"@hcengineering/platform-rig": "^0.7.423",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
27
27
|
"eslint-plugin-import": "^2.26.0",
|
|
28
28
|
"eslint-plugin-promise": "^6.1.1",
|
|
29
29
|
"eslint-plugin-n": "^15.4.0",
|
|
30
30
|
"eslint": "^8.54.0",
|
|
31
|
-
"@typescript-eslint/parser": "^6.
|
|
31
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
32
32
|
"eslint-config-standard-with-typescript": "^40.0.0",
|
|
33
|
-
"prettier": "^3.
|
|
34
|
-
"typescript": "^5.
|
|
33
|
+
"prettier": "^3.6.2",
|
|
34
|
+
"typescript": "^5.9.3",
|
|
35
35
|
"jest": "^29.7.0",
|
|
36
36
|
"ts-jest": "^29.1.1",
|
|
37
37
|
"@types/jest": "^29.5.5"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hcengineering/contact": "^0.7.
|
|
41
|
-
"@hcengineering/core": "^0.7.
|
|
42
|
-
"@hcengineering/platform": "^0.7.
|
|
43
|
-
"@hcengineering/rank": "^0.7.
|
|
40
|
+
"@hcengineering/contact": "^0.7.423",
|
|
41
|
+
"@hcengineering/core": "^0.7.423",
|
|
42
|
+
"@hcengineering/platform": "^0.7.423",
|
|
43
|
+
"@hcengineering/rank": "^0.7.423"
|
|
44
|
+
},
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/hcengineering/platform.git"
|
|
44
48
|
},
|
|
45
|
-
"repository": "https://github.com/hcengineering/platform",
|
|
46
49
|
"publishConfig": {
|
|
47
50
|
"access": "public"
|
|
48
51
|
}
|
|
@@ -251,6 +251,31 @@ describe("jsonToPmNode", () => {
|
|
|
251
251
|
expect(node.content.child(0).type.name).toEqual("text");
|
|
252
252
|
expect(node.content.child(0).text).toEqual("Hello, world!");
|
|
253
253
|
});
|
|
254
|
+
it("ServerKit schema includes node-uuid mark and parses text carrying it (QMS anchors)", () => {
|
|
255
|
+
const schema = (0, import_core.getSchema)(extensions);
|
|
256
|
+
expect(schema.marks["node-uuid"]).toBeDefined();
|
|
257
|
+
const json = {
|
|
258
|
+
type: import_text_core.MarkupNodeType.doc,
|
|
259
|
+
content: [
|
|
260
|
+
{
|
|
261
|
+
type: import_text_core.MarkupNodeType.paragraph,
|
|
262
|
+
attrs: { textAlign: null },
|
|
263
|
+
content: [
|
|
264
|
+
{
|
|
265
|
+
type: import_text_core.MarkupNodeType.text,
|
|
266
|
+
text: "hello",
|
|
267
|
+
marks: [{ type: "node-uuid" }]
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
};
|
|
273
|
+
const node = (0, import_utils.jsonToPmNode)(json, schema);
|
|
274
|
+
expect(node.type.name).toEqual("doc");
|
|
275
|
+
const para = node.content.child(0);
|
|
276
|
+
const text = para.content.child(0);
|
|
277
|
+
expect(text.marks.some((m) => m.type.name === "node-uuid")).toBeTruthy();
|
|
278
|
+
});
|
|
254
279
|
});
|
|
255
280
|
describe("htmlToMarkup", () => {
|
|
256
281
|
it("converts HTML to Markup", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/markup/__tests__/utils.test.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * @jest-environment jsdom\n */\n\n//\n// Copyright \u00A9 2024 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport {\n areEqualMarkups,\n isEmptyMarkup,\n isEmptyNode,\n jsonToMarkup,\n MarkupMarkType,\n MarkupNode,\n MarkupNodeType,\n markupToJSON,\n nodeDoc,\n nodeParagraph,\n nodeText\n} from '@hcengineering/text-core'\nimport { Editor, getSchema } from '@tiptap/core'\nimport { ServerKit } from '../../kits/server-kit'\nimport { getMarkup, htmlToJSON, htmlToMarkup, jsonToHTML, jsonToPmNode, jsonToText, pmNodeToJSON } from '../utils'\n\n// mock tiptap functions\njest.mock('@tiptap/html', () => ({\n generateHTML: jest.fn(() => '<p>hello</p>'),\n generateJSON: jest.fn(() => ({\n type: 'doc',\n content: [{ type: 'paragraph', content: [{ type: 'text', text: 'hello' }] }]\n }))\n}))\n\nconst extensions = [ServerKit]\n\ndescribe('EmptyMarkup', () => {\n it('is empty markup', async () => {\n const editor = new Editor({ extensions })\n expect(isEmptyMarkup(getMarkup(editor))).toBeTruthy()\n })\n})\n\ndescribe('getMarkup', () => {\n it('with empty content', async () => {\n const editor = new Editor({ extensions })\n expect(getMarkup(editor)).toEqual('{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null}}]}')\n })\n it('with some content', async () => {\n const editor = new Editor({ extensions, content: '<p>hello</p>' })\n expect(getMarkup(editor)).toEqual(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null},\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n )\n })\n it('with empty paragraphs as content', async () => {\n const editor = new Editor({ extensions, content: '<p></p><p></p>' })\n expect(getMarkup(editor)).toEqual(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null}},{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null}}]}'\n )\n })\n})\n\ndescribe('isEmptyMarkup', () => {\n it('returns true for undefined content', async () => {\n expect(isEmptyMarkup(undefined)).toBeTruthy()\n expect(isEmptyMarkup('')).toBeTruthy()\n })\n it('returns true for empty content', async () => {\n const editor = new Editor({ extensions })\n expect(isEmptyMarkup(getMarkup(editor))).toBeTruthy()\n })\n it('returns true for empty paragraphs content', async () => {\n const editor = new Editor({ extensions, content: '<p></p><p></p><p></p>' })\n expect(isEmptyMarkup(getMarkup(editor))).toBeTruthy()\n })\n it('returns true for empty paragraphs content with spaces', async () => {\n const editor = new Editor({ extensions, content: '<p> </p><p> </p><p> </p>' })\n expect(isEmptyMarkup(getMarkup(editor))).toBeTruthy()\n })\n it('returns false for not empty content', async () => {\n const editor = new Editor({ extensions, content: '<p>hello</p>' })\n expect(isEmptyMarkup(getMarkup(editor))).toBeFalsy()\n })\n it('returns true for various empty content', async () => {\n expect(isEmptyMarkup(jsonToMarkup({ type: MarkupNodeType.doc }))).toBeTruthy()\n expect(isEmptyMarkup(jsonToMarkup({ type: MarkupNodeType.doc, content: [] }))).toBeTruthy()\n expect(\n isEmptyMarkup(jsonToMarkup({ type: MarkupNodeType.doc, content: [{ type: MarkupNodeType.paragraph }] }))\n ).toBeTruthy()\n expect(\n isEmptyMarkup(\n jsonToMarkup({ type: MarkupNodeType.doc, content: [{ type: MarkupNodeType.paragraph, content: [] }] })\n )\n ).toBeTruthy()\n })\n})\n\ndescribe('areEqualMarkups', () => {\n it('returns true for the same content', async () => {\n const markup = '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n expect(areEqualMarkups(markup, markup)).toBeTruthy()\n })\n it('returns true for empty content', async () => {\n expect(\n areEqualMarkups('{\"type\":\"doc\",\"content\":[]}', '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}')\n ).toBeTruthy()\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[]}]}'\n )\n ).toBeTruthy()\n })\n it('returns true for same content but empty marks and attrs', async () => {\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\",\"content\":[],\"marks\":[],\"attrs\": {\"color\": null}}]}]}'\n )\n ).toBeTruthy()\n })\n it('returns false for same content but trailing hard breaks', async () => {\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\",\"marks\":[]}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"},{\"type\":\"hardBreak\"}]}]}'\n )\n ).toBeFalsy()\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"hardBreak\"},{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]},{\"type\":\"hardBreak\"}]}'\n )\n ).toBeFalsy()\n })\n it('returns false for different content', async () => {\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"world\"}]}]}'\n )\n ).toBeFalsy()\n })\n it('returns false for different marks', async () => {\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\",\"marks\":[{\"type\":\"bold\"}]}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\",\"marks\":[{\"type\":\"italic\"}]}]}]}'\n )\n ).toBeFalsy()\n })\n})\n\ndescribe('isEmptyNode', () => {\n it('returns true for empty doc node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.doc,\n content: []\n }\n expect(isEmptyNode(node)).toBeTruthy()\n })\n\n it('returns true for empty paragraph node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.doc,\n content: [\n {\n type: MarkupNodeType.paragraph,\n content: []\n }\n ]\n }\n expect(isEmptyNode(node)).toBeTruthy()\n })\n\n it('returns true for empty text node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.doc,\n content: [\n {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: ''\n }\n ]\n }\n ]\n }\n expect(isEmptyNode(node)).toBeTruthy()\n })\n\n it('returns false for non-empty text node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello, world!'\n }\n ]\n }\n expect(isEmptyNode(node)).toBeFalsy()\n })\n\n it('returns false for non-empty text node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.horizontal_rule\n }\n ]\n }\n expect(isEmptyNode(node)).toBeFalsy()\n })\n\n it('returns false for non-empty node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello, world!'\n }\n ]\n }\n expect(isEmptyNode(node)).toBeFalsy()\n })\n})\n\ndescribe('markupToJSON', () => {\n it('with empty content', async () => {\n expect(markupToJSON('')).toEqual({ type: 'doc', content: [{ type: 'paragraph', content: [] }] })\n })\n it('with some content', async () => {\n const markup = '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n expect(markupToJSON(markup)).toEqual({\n type: 'doc',\n content: [{ type: 'paragraph', content: [{ type: 'text', text: 'hello' }] }]\n })\n })\n})\n\ndescribe('jsonToMarkup', () => {\n it('with some content', async () => {\n const json: MarkupNode = {\n type: MarkupNodeType.doc,\n content: [\n {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'hello'\n }\n ]\n }\n ]\n }\n expect(jsonToMarkup(json)).toEqual(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n )\n })\n})\n\ndescribe('pmNodeToJSON', () => {\n it('converts ProseMirrorNode to Markup', () => {\n const schema = getSchema(extensions)\n const node = schema.node('paragraph', {}, [schema.text('Hello, world!')])\n\n const json: MarkupNode = {\n type: MarkupNodeType.paragraph,\n attrs: { textAlign: null as any },\n content: [nodeText('Hello, world!')]\n }\n expect(pmNodeToJSON(node)).toEqual(json)\n })\n})\n\ndescribe('jsonToPmNode', () => {\n it('converts json to ProseMirrorNode', () => {\n const markup = '{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"Hello, world!\"}]}'\n const node = jsonToPmNode(markupToJSON(markup))\n\n expect(node.type.name).toEqual('paragraph')\n expect(node.content.childCount).toEqual(1)\n expect(node.content.child(0).type.name).toEqual('text')\n expect(node.content.child(0).text).toEqual('Hello, world!')\n })\n})\n\ndescribe('htmlToMarkup', () => {\n it('converts HTML to Markup', () => {\n const html = '<p>hello</p>'\n const expectedMarkup = '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n expect(htmlToMarkup(html)).toEqual(expectedMarkup)\n })\n})\n\ndescribe('htmlToJSON', () => {\n it('converts HTML to JSON', () => {\n const html = '<p>hello</p>'\n const json = nodeDoc(nodeParagraph(nodeText('hello')))\n expect(htmlToJSON(html)).toEqual(json)\n })\n})\n\ndescribe('jsonToHTML', () => {\n it('converts JSON to HTML', () => {\n const json = nodeDoc(nodeParagraph(nodeText('hello')))\n const html = '<p>hello</p>'\n expect(jsonToHTML(json)).toEqual(html)\n })\n})\n\ndescribe('jsonToText', () => {\n it('returns text for text node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello, world!'\n }\n ]\n }\n expect(jsonToText(node)).toEqual('Hello, world!')\n })\n it('returns concatenated text for block node with multiple children', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello '\n },\n {\n type: MarkupNodeType.text,\n text: 'world!'\n }\n ]\n }\n expect(jsonToText(node)).toEqual('Hello world!')\n })\n it('returns text for node with link', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello! Check out '\n },\n {\n type: MarkupNodeType.text,\n text: 'this page',\n marks: [\n {\n type: MarkupMarkType.link,\n attrs: {\n href: 'http://example.com/'\n }\n }\n ]\n },\n {\n type: MarkupNodeType.text,\n text: '!'\n }\n ]\n }\n expect(jsonToText(node)).toEqual('Hello! Check out this page!')\n })\n it('returns empty string for block node with no children', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: []\n }\n expect(jsonToText(node)).toEqual('')\n })\n it('returns error for text node with no text', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.text,\n text: ''\n }\n expect(() => jsonToText(node)).toThrow('Empty text nodes are not allowed')\n })\n it('returns error for block node with empty children', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: ''\n },\n {\n type: MarkupNodeType.text,\n text: ''\n }\n ]\n }\n expect(() => jsonToText(node)).toThrow('Empty text nodes are not allowed')\n })\n})\n"],
|
|
5
|
-
"mappings": ";AAmBA,
|
|
4
|
+
"sourcesContent": ["/**\n * @jest-environment jsdom\n */\n\n//\n// Copyright \u00A9 2024 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport {\n areEqualMarkups,\n isEmptyMarkup,\n isEmptyNode,\n jsonToMarkup,\n type MarkupMark,\n MarkupMarkType,\n MarkupNode,\n MarkupNodeType,\n markupToJSON,\n nodeDoc,\n nodeParagraph,\n nodeText\n} from '@hcengineering/text-core'\nimport { Editor, getSchema } from '@tiptap/core'\nimport { ServerKit } from '../../kits/server-kit'\nimport { getMarkup, htmlToJSON, htmlToMarkup, jsonToHTML, jsonToPmNode, jsonToText, pmNodeToJSON } from '../utils'\n\n// mock tiptap functions\njest.mock('@tiptap/html', () => ({\n generateHTML: jest.fn(() => '<p>hello</p>'),\n generateJSON: jest.fn(() => ({\n type: 'doc',\n content: [{ type: 'paragraph', content: [{ type: 'text', text: 'hello' }] }]\n }))\n}))\n\nconst extensions = [ServerKit]\n\ndescribe('EmptyMarkup', () => {\n it('is empty markup', async () => {\n const editor = new Editor({ extensions })\n expect(isEmptyMarkup(getMarkup(editor))).toBeTruthy()\n })\n})\n\ndescribe('getMarkup', () => {\n it('with empty content', async () => {\n const editor = new Editor({ extensions })\n expect(getMarkup(editor)).toEqual('{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null}}]}')\n })\n it('with some content', async () => {\n const editor = new Editor({ extensions, content: '<p>hello</p>' })\n expect(getMarkup(editor)).toEqual(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null},\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n )\n })\n it('with empty paragraphs as content', async () => {\n const editor = new Editor({ extensions, content: '<p></p><p></p>' })\n expect(getMarkup(editor)).toEqual(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null}},{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null}}]}'\n )\n })\n})\n\ndescribe('isEmptyMarkup', () => {\n it('returns true for undefined content', async () => {\n expect(isEmptyMarkup(undefined)).toBeTruthy()\n expect(isEmptyMarkup('')).toBeTruthy()\n })\n it('returns true for empty content', async () => {\n const editor = new Editor({ extensions })\n expect(isEmptyMarkup(getMarkup(editor))).toBeTruthy()\n })\n it('returns true for empty paragraphs content', async () => {\n const editor = new Editor({ extensions, content: '<p></p><p></p><p></p>' })\n expect(isEmptyMarkup(getMarkup(editor))).toBeTruthy()\n })\n it('returns true for empty paragraphs content with spaces', async () => {\n const editor = new Editor({ extensions, content: '<p> </p><p> </p><p> </p>' })\n expect(isEmptyMarkup(getMarkup(editor))).toBeTruthy()\n })\n it('returns false for not empty content', async () => {\n const editor = new Editor({ extensions, content: '<p>hello</p>' })\n expect(isEmptyMarkup(getMarkup(editor))).toBeFalsy()\n })\n it('returns true for various empty content', async () => {\n expect(isEmptyMarkup(jsonToMarkup({ type: MarkupNodeType.doc }))).toBeTruthy()\n expect(isEmptyMarkup(jsonToMarkup({ type: MarkupNodeType.doc, content: [] }))).toBeTruthy()\n expect(\n isEmptyMarkup(jsonToMarkup({ type: MarkupNodeType.doc, content: [{ type: MarkupNodeType.paragraph }] }))\n ).toBeTruthy()\n expect(\n isEmptyMarkup(\n jsonToMarkup({ type: MarkupNodeType.doc, content: [{ type: MarkupNodeType.paragraph, content: [] }] })\n )\n ).toBeTruthy()\n })\n})\n\ndescribe('areEqualMarkups', () => {\n it('returns true for the same content', async () => {\n const markup = '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n expect(areEqualMarkups(markup, markup)).toBeTruthy()\n })\n it('returns true for empty content', async () => {\n expect(\n areEqualMarkups('{\"type\":\"doc\",\"content\":[]}', '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}')\n ).toBeTruthy()\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[]}]}'\n )\n ).toBeTruthy()\n })\n it('returns true for same content but empty marks and attrs', async () => {\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\",\"content\":[],\"marks\":[],\"attrs\": {\"color\": null}}]}]}'\n )\n ).toBeTruthy()\n })\n it('returns false for same content but trailing hard breaks', async () => {\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\",\"marks\":[]}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"},{\"type\":\"hardBreak\"}]}]}'\n )\n ).toBeFalsy()\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"hardBreak\"},{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]},{\"type\":\"hardBreak\"}]}'\n )\n ).toBeFalsy()\n })\n it('returns false for different content', async () => {\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"world\"}]}]}'\n )\n ).toBeFalsy()\n })\n it('returns false for different marks', async () => {\n expect(\n areEqualMarkups(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\",\"marks\":[{\"type\":\"bold\"}]}]}]}',\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\",\"marks\":[{\"type\":\"italic\"}]}]}]}'\n )\n ).toBeFalsy()\n })\n})\n\ndescribe('isEmptyNode', () => {\n it('returns true for empty doc node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.doc,\n content: []\n }\n expect(isEmptyNode(node)).toBeTruthy()\n })\n\n it('returns true for empty paragraph node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.doc,\n content: [\n {\n type: MarkupNodeType.paragraph,\n content: []\n }\n ]\n }\n expect(isEmptyNode(node)).toBeTruthy()\n })\n\n it('returns true for empty text node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.doc,\n content: [\n {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: ''\n }\n ]\n }\n ]\n }\n expect(isEmptyNode(node)).toBeTruthy()\n })\n\n it('returns false for non-empty text node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello, world!'\n }\n ]\n }\n expect(isEmptyNode(node)).toBeFalsy()\n })\n\n it('returns false for non-empty text node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.horizontal_rule\n }\n ]\n }\n expect(isEmptyNode(node)).toBeFalsy()\n })\n\n it('returns false for non-empty node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello, world!'\n }\n ]\n }\n expect(isEmptyNode(node)).toBeFalsy()\n })\n})\n\ndescribe('markupToJSON', () => {\n it('with empty content', async () => {\n expect(markupToJSON('')).toEqual({ type: 'doc', content: [{ type: 'paragraph', content: [] }] })\n })\n it('with some content', async () => {\n const markup = '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n expect(markupToJSON(markup)).toEqual({\n type: 'doc',\n content: [{ type: 'paragraph', content: [{ type: 'text', text: 'hello' }] }]\n })\n })\n})\n\ndescribe('jsonToMarkup', () => {\n it('with some content', async () => {\n const json: MarkupNode = {\n type: MarkupNodeType.doc,\n content: [\n {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'hello'\n }\n ]\n }\n ]\n }\n expect(jsonToMarkup(json)).toEqual(\n '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n )\n })\n})\n\ndescribe('pmNodeToJSON', () => {\n it('converts ProseMirrorNode to Markup', () => {\n const schema = getSchema(extensions)\n const node = schema.node('paragraph', {}, [schema.text('Hello, world!')])\n\n const json: MarkupNode = {\n type: MarkupNodeType.paragraph,\n attrs: { textAlign: null as any },\n content: [nodeText('Hello, world!')]\n }\n expect(pmNodeToJSON(node)).toEqual(json)\n })\n})\n\ndescribe('jsonToPmNode', () => {\n it('converts json to ProseMirrorNode', () => {\n const markup = '{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"Hello, world!\"}]}'\n const node = jsonToPmNode(markupToJSON(markup))\n\n expect(node.type.name).toEqual('paragraph')\n expect(node.content.childCount).toEqual(1)\n expect(node.content.child(0).type.name).toEqual('text')\n expect(node.content.child(0).text).toEqual('Hello, world!')\n })\n\n it('ServerKit schema includes node-uuid mark and parses text carrying it (QMS anchors)', () => {\n const schema = getSchema(extensions)\n expect(schema.marks['node-uuid']).toBeDefined()\n const json: MarkupNode = {\n type: MarkupNodeType.doc,\n content: [\n {\n type: MarkupNodeType.paragraph,\n attrs: { textAlign: null as any },\n content: [\n {\n type: MarkupNodeType.text,\n text: 'hello',\n marks: [{ type: 'node-uuid' } as unknown as MarkupMark]\n }\n ]\n }\n ]\n }\n const node = jsonToPmNode(json, schema)\n expect(node.type.name).toEqual('doc')\n const para = node.content.child(0)\n const text = para.content.child(0)\n expect(text.marks.some((m) => m.type.name === 'node-uuid')).toBeTruthy()\n })\n})\n\ndescribe('htmlToMarkup', () => {\n it('converts HTML to Markup', () => {\n const html = '<p>hello</p>'\n const expectedMarkup = '{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"hello\"}]}]}'\n expect(htmlToMarkup(html)).toEqual(expectedMarkup)\n })\n})\n\ndescribe('htmlToJSON', () => {\n it('converts HTML to JSON', () => {\n const html = '<p>hello</p>'\n const json = nodeDoc(nodeParagraph(nodeText('hello')))\n expect(htmlToJSON(html)).toEqual(json)\n })\n})\n\ndescribe('jsonToHTML', () => {\n it('converts JSON to HTML', () => {\n const json = nodeDoc(nodeParagraph(nodeText('hello')))\n const html = '<p>hello</p>'\n expect(jsonToHTML(json)).toEqual(html)\n })\n})\n\ndescribe('jsonToText', () => {\n it('returns text for text node', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello, world!'\n }\n ]\n }\n expect(jsonToText(node)).toEqual('Hello, world!')\n })\n it('returns concatenated text for block node with multiple children', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello '\n },\n {\n type: MarkupNodeType.text,\n text: 'world!'\n }\n ]\n }\n expect(jsonToText(node)).toEqual('Hello world!')\n })\n it('returns text for node with link', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: 'Hello! Check out '\n },\n {\n type: MarkupNodeType.text,\n text: 'this page',\n marks: [\n {\n type: MarkupMarkType.link,\n attrs: {\n href: 'http://example.com/'\n }\n }\n ]\n },\n {\n type: MarkupNodeType.text,\n text: '!'\n }\n ]\n }\n expect(jsonToText(node)).toEqual('Hello! Check out this page!')\n })\n it('returns empty string for block node with no children', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: []\n }\n expect(jsonToText(node)).toEqual('')\n })\n it('returns error for text node with no text', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.text,\n text: ''\n }\n expect(() => jsonToText(node)).toThrow('Empty text nodes are not allowed')\n })\n it('returns error for block node with empty children', () => {\n const node: MarkupNode = {\n type: MarkupNodeType.paragraph,\n content: [\n {\n type: MarkupNodeType.text,\n text: ''\n },\n {\n type: MarkupNodeType.text,\n text: ''\n }\n ]\n }\n expect(() => jsonToText(node)).toThrow('Empty text nodes are not allowed')\n })\n})\n"],
|
|
5
|
+
"mappings": ";AAmBA,uBAaO;AACP,kBAAkC;AAClC,wBAA0B;AAC1B,mBAAwG;AAGxG,KAAK,KAAK,gBAAgB,OAAO;AAAA,EAC/B,cAAc,KAAK,GAAG,MAAM,cAAc;AAAA,EAC1C,cAAc,KAAK,GAAG,OAAO;AAAA,IAC3B,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,MAAM,aAAa,SAAS,CAAC,EAAE,MAAM,QAAQ,MAAM,QAAQ,CAAC,EAAE,CAAC;AAAA,EAC7E,EAAE;AACJ,EAAE;AAEF,MAAM,aAAa,CAAC,2BAAS;AAE7B,SAAS,eAAe,MAAM;AAC5B,KAAG,mBAAmB,YAAY;AAChC,UAAM,SAAS,IAAI,mBAAO,EAAE,WAAW,CA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A,UACE,MAAM,gCAAe;AAAA,UACrB,MAAM;AAAA,QACR;AAAA,QACA;AAAA,UACE,MAAM,gCAAe;AAAA,UACrB,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AACA,WAAO,UAAM,yBAAW,IAAI,CAAC,EAAE,QAAQ,kCAAkC;AAAA,EAC3E,CAAC;AACH,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -26,6 +26,7 @@ __export(tiptapExtensions_exports, {
|
|
|
26
26
|
Gapcursor: () => import_extension_gapcursor.Gapcursor,
|
|
27
27
|
HardBreak: () => import_extension_hard_break.HardBreak,
|
|
28
28
|
Heading: () => import_extension_heading.Heading,
|
|
29
|
+
Highlight: () => import_extension_highlight.Highlight,
|
|
29
30
|
History: () => import_extension_history.History,
|
|
30
31
|
HorizontalRule: () => import_extension_horizontal_rule.HorizontalRule,
|
|
31
32
|
Italic: () => import_extension_italic.Italic,
|
|
@@ -34,6 +35,8 @@ __export(tiptapExtensions_exports, {
|
|
|
34
35
|
OrderedList: () => import_extension_ordered_list.OrderedList,
|
|
35
36
|
Paragraph: () => import_extension_paragraph.Paragraph,
|
|
36
37
|
Strike: () => import_extension_strike.Strike,
|
|
38
|
+
Subscript: () => import_extension_subscript.Subscript,
|
|
39
|
+
Superscript: () => import_extension_superscript.Superscript,
|
|
37
40
|
Table: () => import_extension_table.Table,
|
|
38
41
|
TableCell: () => import_extension_table_cell.TableCell,
|
|
39
42
|
TableHeader: () => import_extension_table_header.TableHeader,
|
|
@@ -69,6 +72,9 @@ var import_extension_list_item = require("@tiptap/extension-list-item");
|
|
|
69
72
|
var import_extension_ordered_list = require("@tiptap/extension-ordered-list");
|
|
70
73
|
var import_extension_text_align = require("@tiptap/extension-text-align");
|
|
71
74
|
var import_extension_task_list = require("@tiptap/extension-task-list");
|
|
75
|
+
var import_extension_highlight = require("@tiptap/extension-highlight");
|
|
76
|
+
var import_extension_subscript = require("@tiptap/extension-subscript");
|
|
77
|
+
var import_extension_superscript = require("@tiptap/extension-superscript");
|
|
72
78
|
var import_extension_table = require("@tiptap/extension-table");
|
|
73
79
|
var import_extension_table_cell = require("@tiptap/extension-table-cell");
|
|
74
80
|
var import_extension_table_header = require("@tiptap/extension-table-header");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/tiptapExtensions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright \u00A9 2025 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nexport { TextStyle, type TextStyleOptions } from '@tiptap/extension-text-style'\nexport { Blockquote, type BlockquoteOptions } from '@tiptap/extension-blockquote'\nexport { Bold, type BoldOptions } from '@tiptap/extension-bold'\nexport { Document } from '@tiptap/extension-document'\nexport { Dropcursor, type DropcursorOptions } from '@tiptap/extension-dropcursor'\nexport { Gapcursor } from '@tiptap/extension-gapcursor'\nexport { HardBreak, type HardBreakOptions } from '@tiptap/extension-hard-break'\nexport { Heading, type HeadingOptions } from '@tiptap/extension-heading'\nexport { History, type HistoryOptions } from '@tiptap/extension-history'\nexport { HorizontalRule, type HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nexport { Italic, type ItalicOptions } from '@tiptap/extension-italic'\nexport { Paragraph, type ParagraphOptions } from '@tiptap/extension-paragraph'\nexport { Strike, type StrikeOptions } from '@tiptap/extension-strike'\nexport { Text } from '@tiptap/extension-text'\nexport { Link, type LinkOptions } from '@tiptap/extension-link'\nexport { Typography, type TypographyOptions } from '@tiptap/extension-typography'\nexport { Underline, type UnderlineOptions } from '@tiptap/extension-underline'\nexport { BulletList, type BulletListOptions } from '@tiptap/extension-bullet-list'\nexport { ListItem, type ListItemOptions } from '@tiptap/extension-list-item'\nexport { OrderedList, type OrderedListOptions } from '@tiptap/extension-ordered-list'\nexport { TextAlign, type TextAlignOptions } from '@tiptap/extension-text-align'\nexport { TaskList, type TaskListOptions } from '@tiptap/extension-task-list'\n\nexport { Table, type TableOptions } from '@tiptap/extension-table'\nexport { TableCell, type TableCellOptions } from '@tiptap/extension-table-cell'\nexport { TableHeader, type TableHeaderOptions } from '@tiptap/extension-table-header'\nexport { TableRow, type TableRowOptions } from '@tiptap/extension-table-row'\nexport { TaskItem, type TaskItemOptions } from '@tiptap/extension-task-item'\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,kCAAiD;AACjD,kCAAmD;AACnD,4BAAuC;AACvC,gCAAyB;AACzB,kCAAmD;AACnD,iCAA0B;AAC1B,kCAAiD;AACjD,+BAA6C;AAC7C,+BAA6C;AAC7C,uCAA2D;AAC3D,8BAA2C;AAC3C,iCAAiD;AACjD,8BAA2C;AAC3C,4BAAqB;AACrB,4BAAuC;AACvC,kCAAmD;AACnD,iCAAiD;AACjD,mCAAmD;AACnD,iCAA+C;AAC/C,oCAAqD;AACrD,kCAAiD;AACjD,iCAA+C;
|
|
4
|
+
"sourcesContent": ["//\n// Copyright \u00A9 2025 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nexport { TextStyle, type TextStyleOptions } from '@tiptap/extension-text-style'\nexport { Blockquote, type BlockquoteOptions } from '@tiptap/extension-blockquote'\nexport { Bold, type BoldOptions } from '@tiptap/extension-bold'\nexport { Document } from '@tiptap/extension-document'\nexport { Dropcursor, type DropcursorOptions } from '@tiptap/extension-dropcursor'\nexport { Gapcursor } from '@tiptap/extension-gapcursor'\nexport { HardBreak, type HardBreakOptions } from '@tiptap/extension-hard-break'\nexport { Heading, type HeadingOptions } from '@tiptap/extension-heading'\nexport { History, type HistoryOptions } from '@tiptap/extension-history'\nexport { HorizontalRule, type HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nexport { Italic, type ItalicOptions } from '@tiptap/extension-italic'\nexport { Paragraph, type ParagraphOptions } from '@tiptap/extension-paragraph'\nexport { Strike, type StrikeOptions } from '@tiptap/extension-strike'\nexport { Text } from '@tiptap/extension-text'\nexport { Link, type LinkOptions } from '@tiptap/extension-link'\nexport { Typography, type TypographyOptions } from '@tiptap/extension-typography'\nexport { Underline, type UnderlineOptions } from '@tiptap/extension-underline'\nexport { BulletList, type BulletListOptions } from '@tiptap/extension-bullet-list'\nexport { ListItem, type ListItemOptions } from '@tiptap/extension-list-item'\nexport { OrderedList, type OrderedListOptions } from '@tiptap/extension-ordered-list'\nexport { TextAlign, type TextAlignOptions } from '@tiptap/extension-text-align'\nexport { TaskList, type TaskListOptions } from '@tiptap/extension-task-list'\nexport { Highlight, type HighlightOptions } from '@tiptap/extension-highlight'\nexport { Subscript } from '@tiptap/extension-subscript'\nexport { Superscript } from '@tiptap/extension-superscript'\n\nexport { Table, type TableOptions } from '@tiptap/extension-table'\nexport { TableCell, type TableCellOptions } from '@tiptap/extension-table-cell'\nexport { TableHeader, type TableHeaderOptions } from '@tiptap/extension-table-header'\nexport { TableRow, type TableRowOptions } from '@tiptap/extension-table-row'\nexport { TaskItem, type TaskItemOptions } from '@tiptap/extension-task-item'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,kCAAiD;AACjD,kCAAmD;AACnD,4BAAuC;AACvC,gCAAyB;AACzB,kCAAmD;AACnD,iCAA0B;AAC1B,kCAAiD;AACjD,+BAA6C;AAC7C,+BAA6C;AAC7C,uCAA2D;AAC3D,8BAA2C;AAC3C,iCAAiD;AACjD,8BAA2C;AAC3C,4BAAqB;AACrB,4BAAuC;AACvC,kCAAmD;AACnD,iCAAiD;AACjD,mCAAmD;AACnD,iCAA+C;AAC/C,oCAAqD;AACrD,kCAAiD;AACjD,iCAA+C;AAC/C,iCAAiD;AACjD,iCAA0B;AAC1B,mCAA4B;AAE5B,6BAAyC;AACzC,kCAAiD;AACjD,oCAAqD;AACrD,iCAA+C;AAC/C,iCAA+C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hcengineering/text",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.423",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -13,8 +13,18 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "Anticrm Platform Contributors",
|
|
15
15
|
"license": "EPL-2.0",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "compile",
|
|
18
|
+
"test": "jest --passWithNoTests --silent --coverage",
|
|
19
|
+
"build:watch": "compile",
|
|
20
|
+
"format": "format src",
|
|
21
|
+
"_phase:build": "compile transpile src",
|
|
22
|
+
"_phase:test": "jest --passWithNoTests --silent --coverage",
|
|
23
|
+
"_phase:format": "format src",
|
|
24
|
+
"_phase:validate": "compile validate"
|
|
25
|
+
},
|
|
16
26
|
"devDependencies": {
|
|
17
|
-
"@hcengineering/platform-rig": "^0.7.
|
|
27
|
+
"@hcengineering/platform-rig": "^0.7.423",
|
|
18
28
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
19
29
|
"eslint-plugin-import": "^2.26.0",
|
|
20
30
|
"eslint-plugin-promise": "^6.1.1",
|
|
@@ -22,7 +32,7 @@
|
|
|
22
32
|
"eslint": "^8.54.0",
|
|
23
33
|
"@typescript-eslint/parser": "^6.21.0",
|
|
24
34
|
"eslint-config-standard-with-typescript": "^40.0.0",
|
|
25
|
-
"prettier": "^3.
|
|
35
|
+
"prettier": "^3.6.2",
|
|
26
36
|
"typescript": "^5.9.3",
|
|
27
37
|
"jest": "^29.7.0",
|
|
28
38
|
"ts-jest": "^29.1.1",
|
|
@@ -31,8 +41,8 @@
|
|
|
31
41
|
"eslint-plugin-svelte": "^2.35.1"
|
|
32
42
|
},
|
|
33
43
|
"dependencies": {
|
|
34
|
-
"@hcengineering/core": "^0.7.
|
|
35
|
-
"@hcengineering/text-core": "^0.7.
|
|
44
|
+
"@hcengineering/core": "^0.7.423",
|
|
45
|
+
"@hcengineering/text-core": "^0.7.423",
|
|
36
46
|
"@tiptap/core": "^2.11.7",
|
|
37
47
|
"@tiptap/html": "^2.11.7",
|
|
38
48
|
"@tiptap/pm": "^2.11.7",
|
|
@@ -70,9 +80,14 @@
|
|
|
70
80
|
"prosemirror-codemark": "^0.4.2",
|
|
71
81
|
"fast-equals": "^5.2.2",
|
|
72
82
|
"@tiptap/extension-text-align": "~2.11.0",
|
|
73
|
-
"@tiptap/extension-text-style": "~2.11.0"
|
|
83
|
+
"@tiptap/extension-text-style": "~2.11.0",
|
|
84
|
+
"@tiptap/extension-subscript": "^2.11.7",
|
|
85
|
+
"@tiptap/extension-superscript": "^2.11.7"
|
|
86
|
+
},
|
|
87
|
+
"repository": {
|
|
88
|
+
"type": "git",
|
|
89
|
+
"url": "git+https://github.com/hcengineering/huly.core.git"
|
|
74
90
|
},
|
|
75
|
-
"repository": "https://github.com/hcengineering/huly.core",
|
|
76
91
|
"publishConfig": {
|
|
77
92
|
"access": "public"
|
|
78
93
|
},
|
|
@@ -82,15 +97,5 @@
|
|
|
82
97
|
"require": "./lib/index.js",
|
|
83
98
|
"import": "./lib/index.js"
|
|
84
99
|
}
|
|
85
|
-
},
|
|
86
|
-
"scripts": {
|
|
87
|
-
"build": "compile",
|
|
88
|
-
"test": "jest --passWithNoTests --silent --coverage",
|
|
89
|
-
"build:watch": "compile",
|
|
90
|
-
"format": "format src",
|
|
91
|
-
"_phase:build": "compile transpile src",
|
|
92
|
-
"_phase:test": "jest --passWithNoTests --silent --coverage",
|
|
93
|
-
"_phase:format": "format src",
|
|
94
|
-
"_phase:validate": "compile validate"
|
|
95
100
|
}
|
|
96
|
-
}
|
|
101
|
+
}
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
isEmptyMarkup,
|
|
23
23
|
isEmptyNode,
|
|
24
24
|
jsonToMarkup,
|
|
25
|
+
type MarkupMark,
|
|
25
26
|
MarkupMarkType,
|
|
26
27
|
MarkupNode,
|
|
27
28
|
MarkupNodeType,
|
|
@@ -300,6 +301,32 @@ describe('jsonToPmNode', () => {
|
|
|
300
301
|
expect(node.content.child(0).type.name).toEqual('text')
|
|
301
302
|
expect(node.content.child(0).text).toEqual('Hello, world!')
|
|
302
303
|
})
|
|
304
|
+
|
|
305
|
+
it('ServerKit schema includes node-uuid mark and parses text carrying it (QMS anchors)', () => {
|
|
306
|
+
const schema = getSchema(extensions)
|
|
307
|
+
expect(schema.marks['node-uuid']).toBeDefined()
|
|
308
|
+
const json: MarkupNode = {
|
|
309
|
+
type: MarkupNodeType.doc,
|
|
310
|
+
content: [
|
|
311
|
+
{
|
|
312
|
+
type: MarkupNodeType.paragraph,
|
|
313
|
+
attrs: { textAlign: null as any },
|
|
314
|
+
content: [
|
|
315
|
+
{
|
|
316
|
+
type: MarkupNodeType.text,
|
|
317
|
+
text: 'hello',
|
|
318
|
+
marks: [{ type: 'node-uuid' } as unknown as MarkupMark]
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
const node = jsonToPmNode(json, schema)
|
|
325
|
+
expect(node.type.name).toEqual('doc')
|
|
326
|
+
const para = node.content.child(0)
|
|
327
|
+
const text = para.content.child(0)
|
|
328
|
+
expect(text.marks.some((m) => m.type.name === 'node-uuid')).toBeTruthy()
|
|
329
|
+
})
|
|
303
330
|
})
|
|
304
331
|
|
|
305
332
|
describe('htmlToMarkup', () => {
|
|
@@ -35,6 +35,9 @@ export { ListItem, type ListItemOptions } from '@tiptap/extension-list-item'
|
|
|
35
35
|
export { OrderedList, type OrderedListOptions } from '@tiptap/extension-ordered-list'
|
|
36
36
|
export { TextAlign, type TextAlignOptions } from '@tiptap/extension-text-align'
|
|
37
37
|
export { TaskList, type TaskListOptions } from '@tiptap/extension-task-list'
|
|
38
|
+
export { Highlight, type HighlightOptions } from '@tiptap/extension-highlight'
|
|
39
|
+
export { Subscript } from '@tiptap/extension-subscript'
|
|
40
|
+
export { Superscript } from '@tiptap/extension-superscript'
|
|
38
41
|
|
|
39
42
|
export { Table, type TableOptions } from '@tiptap/extension-table'
|
|
40
43
|
export { TableCell, type TableCellOptions } from '@tiptap/extension-table-cell'
|
|
@@ -64,6 +64,7 @@ var MarkupMarkType = /* @__PURE__ */ ((MarkupMarkType2) => {
|
|
|
64
64
|
MarkupMarkType2["underline"] = "underline";
|
|
65
65
|
MarkupMarkType2["textColor"] = "textColor";
|
|
66
66
|
MarkupMarkType2["textStyle"] = "textStyle";
|
|
67
|
+
MarkupMarkType2["highlight"] = "highlight";
|
|
67
68
|
return MarkupMarkType2;
|
|
68
69
|
})(MarkupMarkType || {});
|
|
69
70
|
function emptyMarkupNode() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/markup/model.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright \u00A9 2024 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\n/** @public */\nexport enum MarkupNodeType {\n doc = 'doc',\n paragraph = 'paragraph',\n blockquote = 'blockquote',\n horizontal_rule = 'horizontalRule',\n heading = 'heading',\n code_block = 'codeBlock',\n text = 'text',\n image = 'image',\n file = 'file',\n reference = 'reference',\n emoji = 'emoji',\n hard_break = 'hardBreak',\n ordered_list = 'orderedList',\n bullet_list = 'bulletList',\n list_item = 'listItem',\n taskList = 'taskList',\n taskItem = 'taskItem',\n todoList = 'todoList',\n todoItem = 'todoItem',\n subLink = 'subLink',\n table = 'table',\n table_row = 'tableRow',\n table_cell = 'tableCell',\n table_header = 'tableHeader',\n mermaid = 'mermaid',\n comment = 'comment',\n markdown = 'markdown',\n embed = 'embed'\n}\n\n/** @public */\nexport enum MarkupMarkType {\n link = 'link',\n em = 'italic',\n bold = 'bold',\n code = 'code',\n strike = 'strike',\n underline = 'underline',\n textColor = 'textColor',\n textStyle = 'textStyle'\n}\n\n/** @public */\nexport interface MarkupMark {\n type: MarkupMarkType\n attrs?: Record<string, any> // A map of attributes\n}\n\nexport type AttrValue = string | number | boolean | null | undefined\nexport type Attrs = Record<string, AttrValue>\n\n/** @public */\nexport interface MarkupNode {\n type: MarkupNodeType\n content?: MarkupNode[] // A list of child nodes\n marks?: MarkupMark[]\n attrs?: Attrs\n text?: string\n}\n\n/** @public */\nexport function emptyMarkupNode (): MarkupNode {\n return {\n type: MarkupNodeType.doc,\n content: [{ type: MarkupNodeType.paragraph, content: [] }]\n }\n}\n\n/** @public */\nexport interface LinkMark extends MarkupMark {\n href: string\n title: string\n}\n\n/** @public */\nexport interface ReferenceMarkupNode extends MarkupNode {\n type: MarkupNodeType.reference\n attrs: { id: string, label: string, objectclass: string }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBO,IAAK,iBAAL,kBAAKA,oBAAL;AACL,EAAAA,gBAAA,SAAM;AACN,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,qBAAkB;AAClB,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,iBAAc;AACd,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,WAAQ;AA5BE,SAAAA;AAAA,GAAA;AAgCL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,QAAK;AACL,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,YAAS;AACT,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,eAAY;
|
|
4
|
+
"sourcesContent": ["//\n// Copyright \u00A9 2024 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\n/** @public */\nexport enum MarkupNodeType {\n doc = 'doc',\n paragraph = 'paragraph',\n blockquote = 'blockquote',\n horizontal_rule = 'horizontalRule',\n heading = 'heading',\n code_block = 'codeBlock',\n text = 'text',\n image = 'image',\n file = 'file',\n reference = 'reference',\n emoji = 'emoji',\n hard_break = 'hardBreak',\n ordered_list = 'orderedList',\n bullet_list = 'bulletList',\n list_item = 'listItem',\n taskList = 'taskList',\n taskItem = 'taskItem',\n todoList = 'todoList',\n todoItem = 'todoItem',\n subLink = 'subLink',\n table = 'table',\n table_row = 'tableRow',\n table_cell = 'tableCell',\n table_header = 'tableHeader',\n mermaid = 'mermaid',\n comment = 'comment',\n markdown = 'markdown',\n embed = 'embed'\n}\n\n/** @public */\nexport enum MarkupMarkType {\n link = 'link',\n em = 'italic',\n bold = 'bold',\n code = 'code',\n strike = 'strike',\n underline = 'underline',\n textColor = 'textColor',\n textStyle = 'textStyle',\n highlight = 'highlight'\n}\n\n/** @public */\nexport interface MarkupMark {\n type: MarkupMarkType\n attrs?: Record<string, any> // A map of attributes\n}\n\nexport type AttrValue = string | number | boolean | null | undefined\nexport type Attrs = Record<string, AttrValue>\n\n/** @public */\nexport interface MarkupNode {\n type: MarkupNodeType\n content?: MarkupNode[] // A list of child nodes\n marks?: MarkupMark[]\n attrs?: Attrs\n text?: string\n}\n\n/** @public */\nexport function emptyMarkupNode (): MarkupNode {\n return {\n type: MarkupNodeType.doc,\n content: [{ type: MarkupNodeType.paragraph, content: [] }]\n }\n}\n\n/** @public */\nexport interface LinkMark extends MarkupMark {\n href: string\n title: string\n}\n\n/** @public */\nexport interface ReferenceMarkupNode extends MarkupNode {\n type: MarkupNodeType.reference\n attrs: { id: string, label: string, objectclass: string }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBO,IAAK,iBAAL,kBAAKA,oBAAL;AACL,EAAAA,gBAAA,SAAM;AACN,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,qBAAkB;AAClB,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,iBAAc;AACd,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,WAAQ;AA5BE,SAAAA;AAAA,GAAA;AAgCL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,QAAK;AACL,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,YAAS;AACT,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,eAAY;AATF,SAAAA;AAAA,GAAA;AA+BL,SAAS,kBAA+B;AAC7C,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,MAAM,6BAA0B,SAAS,CAAC,EAAE,CAAC;AAAA,EAC3D;AACF;AALgB;",
|
|
6
6
|
"names": ["MarkupNodeType", "MarkupMarkType"]
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hcengineering/text-core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.423",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -13,8 +13,18 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "Anticrm Platform Contributors",
|
|
15
15
|
"license": "EPL-2.0",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "compile",
|
|
18
|
+
"test": "jest --passWithNoTests --silent --coverage",
|
|
19
|
+
"build:watch": "compile",
|
|
20
|
+
"format": "format src",
|
|
21
|
+
"_phase:build": "compile transpile src",
|
|
22
|
+
"_phase:test": "jest --passWithNoTests --silent --coverage",
|
|
23
|
+
"_phase:format": "format src",
|
|
24
|
+
"_phase:validate": "compile validate"
|
|
25
|
+
},
|
|
16
26
|
"devDependencies": {
|
|
17
|
-
"@hcengineering/platform-rig": "^0.7.
|
|
27
|
+
"@hcengineering/platform-rig": "^0.7.423",
|
|
18
28
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
19
29
|
"eslint-plugin-import": "^2.26.0",
|
|
20
30
|
"eslint-plugin-promise": "^6.1.1",
|
|
@@ -22,21 +32,24 @@
|
|
|
22
32
|
"eslint": "^8.54.0",
|
|
23
33
|
"@typescript-eslint/parser": "^6.21.0",
|
|
24
34
|
"eslint-config-standard-with-typescript": "^40.0.0",
|
|
25
|
-
"prettier": "^3.
|
|
35
|
+
"prettier": "^3.6.2",
|
|
26
36
|
"typescript": "^5.9.3",
|
|
27
37
|
"jest": "^29.7.0",
|
|
28
38
|
"ts-jest": "^29.1.1",
|
|
29
39
|
"@types/jest": "^29.5.5",
|
|
30
40
|
"@types/markdown-it": "~13.0.0",
|
|
31
|
-
"jest-environment-jsdom": "^
|
|
41
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
32
42
|
"eslint-plugin-svelte": "^2.35.1"
|
|
33
43
|
},
|
|
34
44
|
"dependencies": {
|
|
35
|
-
"@hcengineering/core": "^0.7.
|
|
45
|
+
"@hcengineering/core": "^0.7.423",
|
|
36
46
|
"fast-equals": "^5.2.2",
|
|
37
47
|
"hash-it": "^6.0.0"
|
|
38
48
|
},
|
|
39
|
-
"repository":
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git+https://github.com/hcengineering/huly.core.git"
|
|
52
|
+
},
|
|
40
53
|
"publishConfig": {
|
|
41
54
|
"access": "public"
|
|
42
55
|
},
|
|
@@ -46,15 +59,5 @@
|
|
|
46
59
|
"require": "./lib/index.js",
|
|
47
60
|
"import": "./lib/index.js"
|
|
48
61
|
}
|
|
49
|
-
},
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "compile",
|
|
52
|
-
"test": "jest --passWithNoTests --silent --coverage",
|
|
53
|
-
"build:watch": "compile",
|
|
54
|
-
"format": "format src",
|
|
55
|
-
"_phase:build": "compile transpile src",
|
|
56
|
-
"_phase:test": "jest --passWithNoTests --silent --coverage",
|
|
57
|
-
"_phase:format": "format src",
|
|
58
|
-
"_phase:validate": "compile validate"
|
|
59
62
|
}
|
|
60
|
-
}
|
|
63
|
+
}
|