@bgx4k3p/huly-mcp-server 2.2.4 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +186 -56
- package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js +249 -0
- package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js.map +7 -0
- package/node_modules/@hcengineering/account-client/lib/client.js +88 -3
- package/node_modules/@hcengineering/account-client/lib/client.js.map +2 -2
- package/node_modules/@hcengineering/account-client/lib/types.js.map +2 -2
- package/node_modules/@hcengineering/account-client/lib/utils.js +50 -0
- package/node_modules/@hcengineering/account-client/lib/utils.js.map +2 -2
- package/node_modules/@hcengineering/account-client/package.json +22 -19
- package/node_modules/@hcengineering/account-client/src/__tests__/utils.test.ts +304 -0
- package/node_modules/@hcengineering/account-client/src/client.ts +127 -6
- package/node_modules/@hcengineering/account-client/src/types.ts +7 -0
- package/node_modules/@hcengineering/account-client/src/utils.ts +65 -1
- package/node_modules/@hcengineering/analytics/lib/index.js +1 -1
- package/node_modules/@hcengineering/analytics/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/analytics/package.json +19 -16
- package/node_modules/@hcengineering/analytics/src/index.ts +2 -1
- package/node_modules/@hcengineering/api-client/lib/client.js +9 -4
- package/node_modules/@hcengineering/api-client/lib/client.js.map +2 -2
- package/node_modules/@hcengineering/api-client/lib/rest/adapter.js +64 -0
- package/node_modules/@hcengineering/api-client/lib/rest/adapter.js.map +7 -0
- package/node_modules/@hcengineering/api-client/lib/rest/index.js +2 -0
- package/node_modules/@hcengineering/api-client/lib/rest/index.js.map +2 -2
- package/node_modules/@hcengineering/api-client/lib/socket/node.js +5 -1
- package/node_modules/@hcengineering/api-client/lib/socket/node.js.map +2 -2
- package/node_modules/@hcengineering/api-client/package.json +28 -25
- package/node_modules/@hcengineering/api-client/src/client.ts +10 -1
- package/node_modules/@hcengineering/api-client/src/rest/adapter.ts +96 -0
- package/node_modules/@hcengineering/api-client/src/rest/index.ts +1 -0
- package/node_modules/@hcengineering/api-client/src/socket/node.ts +6 -1
- package/node_modules/@hcengineering/chunter/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/chunter/package.json +13 -10
- package/node_modules/@hcengineering/client/package.json +21 -18
- package/node_modules/@hcengineering/client-resources/package.json +24 -21
- package/node_modules/@hcengineering/collaborator-client/package.json +21 -18
- package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js +38 -0
- package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js.map +7 -0
- package/node_modules/@hcengineering/contact/lib/index.js +13 -4
- package/node_modules/@hcengineering/contact/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/contact/lib/types.js.map +1 -1
- package/node_modules/@hcengineering/contact/lib/utils.js +132 -108
- package/node_modules/@hcengineering/contact/lib/utils.js.map +3 -3
- package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js +79 -0
- package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js.map +7 -0
- package/node_modules/@hcengineering/contact/package.json +12 -9
- package/node_modules/@hcengineering/core/CHANGELOG.md +9 -1
- package/node_modules/@hcengineering/core/lang/cs.json +6 -1
- package/node_modules/@hcengineering/core/lang/de.json +6 -1
- package/node_modules/@hcengineering/core/lang/en.json +6 -1
- package/node_modules/@hcengineering/core/lang/es.json +6 -1
- package/node_modules/@hcengineering/core/lang/fr.json +6 -1
- package/node_modules/@hcengineering/core/lang/it.json +6 -1
- package/node_modules/@hcengineering/core/lang/ja.json +6 -1
- package/node_modules/@hcengineering/core/lang/pt-br.json +70 -0
- package/node_modules/@hcengineering/core/lang/pt.json +6 -1
- package/node_modules/@hcengineering/core/lang/ru.json +6 -1
- package/node_modules/@hcengineering/core/lang/tr.json +6 -1
- package/node_modules/@hcengineering/core/lang/zh.json +6 -1
- package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js +13 -0
- package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js +133 -0
- package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js +25 -0
- package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/__tests__/query.test.js +43 -0
- package/node_modules/@hcengineering/core/lib/__tests__/query.test.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/autoJoinRoles.js +36 -0
- package/node_modules/@hcengineering/core/lib/autoJoinRoles.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/classes.js +5 -0
- package/node_modules/@hcengineering/core/lib/classes.js.map +3 -3
- package/node_modules/@hcengineering/core/lib/clone.js +13 -2
- package/node_modules/@hcengineering/core/lib/clone.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/component.js +14 -3
- package/node_modules/@hcengineering/core/lib/component.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/index.js +2 -0
- package/node_modules/@hcengineering/core/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/memdb.js +6 -2
- package/node_modules/@hcengineering/core/lib/memdb.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/operations.js +11 -0
- package/node_modules/@hcengineering/core/lib/operations.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/predicate.js +3 -0
- package/node_modules/@hcengineering/core/lib/predicate.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/storage.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/tx.js +3 -1
- package/node_modules/@hcengineering/core/lib/tx.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/utils.js +1 -1
- package/node_modules/@hcengineering/core/lib/utils.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/versioning.js +17 -0
- package/node_modules/@hcengineering/core/lib/versioning.js.map +7 -0
- package/node_modules/@hcengineering/core/package.json +22 -19
- package/node_modules/@hcengineering/core/src/__tests__/autoJoinRoles.test.ts +27 -0
- package/node_modules/@hcengineering/core/src/__tests__/memdb.test.ts +150 -1
- package/node_modules/@hcengineering/core/src/__tests__/minmodel.ts +29 -1
- package/node_modules/@hcengineering/core/src/__tests__/query.test.ts +66 -0
- package/node_modules/@hcengineering/core/src/autoJoinRoles.ts +33 -0
- package/node_modules/@hcengineering/core/src/classes.ts +61 -1
- package/node_modules/@hcengineering/core/src/clone.ts +13 -2
- package/node_modules/@hcengineering/core/src/component.ts +25 -9
- package/node_modules/@hcengineering/core/src/index.ts +2 -0
- package/node_modules/@hcengineering/core/src/memdb.ts +7 -3
- package/node_modules/@hcengineering/core/src/operations.ts +11 -0
- package/node_modules/@hcengineering/core/src/predicate.ts +3 -0
- package/node_modules/@hcengineering/core/src/storage.ts +6 -3
- package/node_modules/@hcengineering/core/src/tx.ts +4 -1
- package/node_modules/@hcengineering/core/src/utils.ts +1 -1
- package/node_modules/@hcengineering/core/src/versioning.ts +13 -0
- package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js +3 -3
- package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js.map +2 -2
- package/node_modules/@hcengineering/measurements/package.json +17 -14
- package/node_modules/@hcengineering/measurements/src/__tests__/performance.test.ts +3 -3
- package/node_modules/@hcengineering/platform/lang/pt-br.json +31 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js +100 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js.map +2 -2
- package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js +78 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js.map +7 -0
- package/node_modules/@hcengineering/platform/lib/i18n.js +78 -69
- package/node_modules/@hcengineering/platform/lib/i18n.js.map +3 -3
- package/node_modules/@hcengineering/platform/lib/status.js +25 -0
- package/node_modules/@hcengineering/platform/lib/status.js.map +2 -2
- package/node_modules/@hcengineering/platform/package.json +18 -15
- package/node_modules/@hcengineering/platform/src/__tests__/i18n.test.ts +114 -2
- package/node_modules/@hcengineering/platform/src/__tests__/status.test.ts +77 -0
- package/node_modules/@hcengineering/platform/src/i18n.ts +99 -71
- package/node_modules/@hcengineering/platform/src/status.ts +30 -0
- package/node_modules/@hcengineering/rank/package.json +19 -16
- package/node_modules/@hcengineering/rpc/package.json +21 -18
- package/node_modules/@hcengineering/tags/package.json +12 -9
- package/node_modules/@hcengineering/task/package.json +14 -11
- package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js +25 -0
- package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js.map +2 -2
- package/node_modules/@hcengineering/text/lib/tiptapExtensions.js +6 -0
- package/node_modules/@hcengineering/text/lib/tiptapExtensions.js.map +2 -2
- package/node_modules/@hcengineering/text/package.json +23 -18
- package/node_modules/@hcengineering/text/src/markup/__tests__/utils.test.ts +27 -0
- package/node_modules/@hcengineering/text/src/tiptapExtensions.ts +3 -0
- package/node_modules/@hcengineering/text-core/lib/markup/model.js +1 -0
- package/node_modules/@hcengineering/text-core/lib/markup/model.js.map +2 -2
- package/node_modules/@hcengineering/text-core/package.json +20 -17
- package/node_modules/@hcengineering/text-core/src/markup/model.ts +2 -1
- package/node_modules/@hcengineering/text-html/package.json +19 -16
- package/node_modules/@hcengineering/text-markdown/lib/serializer.js +14 -0
- package/node_modules/@hcengineering/text-markdown/lib/serializer.js.map +2 -2
- package/node_modules/@hcengineering/text-markdown/package.json +20 -17
- package/node_modules/@hcengineering/text-markdown/src/serializer.ts +14 -0
- package/node_modules/@hcengineering/tracker/lib/index.js +1 -0
- package/node_modules/@hcengineering/tracker/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/tracker/package.json +16 -13
- package/node_modules/@tiptap/core/dist/commands/focus.d.ts.map +1 -1
- package/node_modules/@tiptap/core/dist/index.cjs +19 -2
- package/node_modules/@tiptap/core/dist/index.cjs.map +1 -1
- package/node_modules/@tiptap/core/dist/index.js +19 -3
- package/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/node_modules/@tiptap/core/dist/index.umd.js +19 -2
- package/node_modules/@tiptap/core/dist/index.umd.js.map +1 -1
- package/node_modules/@tiptap/core/dist/utilities/index.d.ts +1 -0
- package/node_modules/@tiptap/core/dist/utilities/index.d.ts.map +1 -1
- package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts +10 -0
- package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts.map +1 -0
- package/node_modules/@tiptap/core/package.json +2 -2
- package/node_modules/@tiptap/core/src/commands/focus.ts +7 -2
- package/node_modules/@tiptap/core/src/utilities/index.ts +1 -0
- package/node_modules/@tiptap/core/src/utilities/isSafari.ts +11 -0
- package/node_modules/@tiptap/extension-blockquote/package.json +2 -2
- package/node_modules/@tiptap/extension-bold/package.json +2 -2
- package/node_modules/@tiptap/extension-bullet-list/package.json +2 -2
- package/node_modules/@tiptap/extension-code/package.json +2 -2
- package/node_modules/@tiptap/extension-code-block/package.json +3 -3
- package/node_modules/@tiptap/extension-document/package.json +2 -2
- package/node_modules/@tiptap/extension-dropcursor/package.json +3 -3
- package/node_modules/@tiptap/extension-gapcursor/package.json +3 -3
- package/node_modules/@tiptap/extension-hard-break/package.json +2 -2
- package/node_modules/@tiptap/extension-heading/package.json +2 -2
- package/node_modules/@tiptap/extension-highlight/package.json +2 -2
- package/node_modules/@tiptap/extension-history/package.json +3 -3
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +3 -3
- package/node_modules/@tiptap/extension-italic/package.json +2 -2
- package/node_modules/@tiptap/extension-link/package.json +3 -3
- package/node_modules/@tiptap/extension-list-item/package.json +2 -2
- package/node_modules/@tiptap/extension-mention/package.json +4 -4
- package/node_modules/@tiptap/extension-ordered-list/package.json +2 -2
- package/node_modules/@tiptap/extension-paragraph/package.json +2 -2
- package/node_modules/@tiptap/extension-strike/package.json +2 -2
- package/node_modules/@tiptap/extension-subscript/README.md +14 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +61 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +4 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js +56 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.umd.js +65 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.umd.js.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts +36 -0
- package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-subscript/package.json +49 -0
- package/node_modules/@tiptap/extension-subscript/src/index.ts +5 -0
- package/node_modules/@tiptap/extension-subscript/src/subscript.ts +91 -0
- package/node_modules/@tiptap/extension-superscript/README.md +14 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +61 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +4 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js +56 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.umd.js +65 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.umd.js.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts +36 -0
- package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-superscript/package.json +49 -0
- package/node_modules/@tiptap/extension-superscript/src/index.ts +5 -0
- package/node_modules/@tiptap/extension-superscript/src/superscript.ts +91 -0
- package/node_modules/@tiptap/extension-table/package.json +3 -3
- package/node_modules/@tiptap/extension-table-cell/package.json +2 -2
- package/node_modules/@tiptap/extension-table-header/package.json +2 -2
- package/node_modules/@tiptap/extension-table-row/package.json +2 -2
- package/node_modules/@tiptap/extension-task-item/package.json +3 -3
- package/node_modules/@tiptap/extension-task-list/package.json +2 -2
- package/node_modules/@tiptap/extension-text/package.json +2 -2
- package/node_modules/@tiptap/extension-typography/package.json +2 -2
- package/node_modules/@tiptap/extension-underline/package.json +2 -2
- package/node_modules/@tiptap/html/package.json +3 -3
- package/node_modules/@tiptap/pm/package.json +1 -1
- package/node_modules/@tiptap/starter-kit/node_modules/@tiptap/extension-text-style/package.json +2 -2
- package/node_modules/@tiptap/starter-kit/package.json +22 -22
- package/node_modules/@tiptap/suggestion/package.json +3 -3
- package/node_modules/linkify-it/build/index.cjs.js +99 -94
- package/node_modules/linkify-it/index.mjs +99 -94
- package/node_modules/linkify-it/package.json +11 -1
- package/node_modules/linkifyjs/README.md +4 -2
- package/node_modules/linkifyjs/dist/linkify.cjs +8 -11
- package/node_modules/linkifyjs/dist/linkify.d.cts +14 -14
- package/node_modules/linkifyjs/dist/linkify.d.mts +14 -14
- package/node_modules/linkifyjs/dist/linkify.js +8 -11
- package/node_modules/linkifyjs/dist/linkify.min.js +1 -1
- package/node_modules/linkifyjs/dist/linkify.mjs +8 -11
- package/node_modules/linkifyjs/package.json +1 -1
- package/node_modules/markdown-it/README.md +13 -17
- package/node_modules/markdown-it/dist/index.cjs.js +111 -31
- package/node_modules/markdown-it/dist/markdown-it.js +117 -31
- package/node_modules/markdown-it/dist/markdown-it.min.js +2 -2
- package/node_modules/markdown-it/lib/common/utils.mjs +30 -1
- package/node_modules/markdown-it/lib/index.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +12 -1
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +4 -1
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +3 -1
- package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +37 -21
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +37 -6
- package/node_modules/markdown-it/package.json +14 -3
- package/node_modules/msgpackr/README.md +1 -3
- package/node_modules/msgpackr/benchmark.md +26 -16
- package/node_modules/msgpackr/dist/index-no-eval.cjs +35 -16
- package/node_modules/msgpackr/dist/index-no-eval.cjs.map +1 -1
- package/node_modules/msgpackr/dist/index-no-eval.min.js +1 -1
- package/node_modules/msgpackr/dist/index-no-eval.min.js.map +1 -1
- package/node_modules/msgpackr/dist/index.js +35 -16
- package/node_modules/msgpackr/dist/index.js.map +1 -1
- package/node_modules/msgpackr/dist/index.min.js +1 -1
- package/node_modules/msgpackr/dist/index.min.js.map +1 -1
- package/node_modules/msgpackr/dist/node.cjs +50 -26
- package/node_modules/msgpackr/dist/node.cjs.map +1 -1
- package/node_modules/msgpackr/dist/test.js +44 -16
- package/node_modules/msgpackr/dist/test.js.map +1 -1
- package/node_modules/msgpackr/dist/unpack-no-eval.cjs +35 -16
- package/node_modules/msgpackr/dist/unpack-no-eval.cjs.map +1 -1
- package/node_modules/msgpackr/index.d.cts +2 -0
- package/node_modules/msgpackr/index.d.ts +2 -0
- package/node_modules/msgpackr/package.json +1 -1
- package/node_modules/msgpackr/stream.js +15 -10
- package/node_modules/msgpackr/unpack.js +35 -16
- package/node_modules/prosemirror-changeset/CHANGELOG.md +12 -0
- package/node_modules/prosemirror-changeset/README.md +31 -2
- package/node_modules/prosemirror-changeset/dist/index.cjs +17 -2
- package/node_modules/prosemirror-changeset/dist/index.d.cts +32 -2
- package/node_modules/prosemirror-changeset/dist/index.d.ts +32 -2
- package/node_modules/prosemirror-changeset/dist/index.js +18 -3
- package/node_modules/prosemirror-changeset/package.json +2 -2
- package/node_modules/prosemirror-changeset/src/README.md +4 -2
- package/node_modules/prosemirror-changeset/src/change.ts +18 -0
- package/node_modules/prosemirror-changeset/src/changeset.ts +10 -4
- package/node_modules/prosemirror-changeset/src/simplify.ts +1 -1
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +3 -0
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +6 -0
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +1 -1
- package/node_modules/prosemirror-gapcursor/dist/index.js +1 -1
- package/node_modules/prosemirror-gapcursor/package.json +3 -2
- package/node_modules/prosemirror-gapcursor/src/gapcursor.ts +1 -1
- package/node_modules/prosemirror-markdown/CHANGELOG.md +12 -0
- package/node_modules/prosemirror-markdown/dist/index.cjs +11 -1
- package/node_modules/prosemirror-markdown/dist/index.js +14 -2
- package/node_modules/prosemirror-markdown/package.json +1 -1
- package/node_modules/prosemirror-markdown/src/to_markdown.ts +12 -3
- package/node_modules/prosemirror-menu/CHANGELOG.md +18 -0
- package/node_modules/prosemirror-menu/CONTRIBUTING.md +22 -18
- package/node_modules/prosemirror-menu/README.md +69 -29
- package/node_modules/prosemirror-menu/dist/index.cjs +232 -48
- package/node_modules/prosemirror-menu/dist/index.d.cts +29 -14
- package/node_modules/prosemirror-menu/dist/index.d.ts +29 -14
- package/node_modules/prosemirror-menu/dist/index.js +229 -36
- package/node_modules/prosemirror-menu/package.json +2 -2
- package/node_modules/prosemirror-menu/src/README.md +30 -1
- package/node_modules/prosemirror-menu/src/icons.ts +3 -2
- package/node_modules/prosemirror-menu/src/menu.ts +193 -40
- package/node_modules/prosemirror-menu/src/menubar.ts +50 -5
- package/node_modules/prosemirror-menu/style/menu.css +28 -7
- package/node_modules/prosemirror-model/CHANGELOG.md +20 -0
- package/node_modules/prosemirror-model/CONTRIBUTING.md +19 -19
- package/node_modules/prosemirror-model/README.md +3 -3
- package/node_modules/prosemirror-model/dist/index.cjs +13 -10
- package/node_modules/prosemirror-model/dist/index.d.cts +25 -21
- package/node_modules/prosemirror-model/dist/index.d.ts +25 -21
- package/node_modules/prosemirror-model/dist/index.js +19 -23
- package/node_modules/prosemirror-model/package.json +2 -2
- package/node_modules/prosemirror-model/src/fragment.ts +1 -1
- package/node_modules/prosemirror-model/src/from_dom.ts +4 -1
- package/node_modules/prosemirror-model/src/node.ts +5 -4
- package/node_modules/prosemirror-model/src/replace.ts +6 -15
- package/node_modules/prosemirror-model/src/schema.ts +1 -1
- package/node_modules/prosemirror-model/src/to_dom.ts +24 -20
- package/node_modules/prosemirror-transform/CHANGELOG.md +16 -0
- package/node_modules/prosemirror-transform/dist/index.cjs +38 -4
- package/node_modules/prosemirror-transform/dist/index.d.cts +19 -0
- package/node_modules/prosemirror-transform/dist/index.d.ts +19 -0
- package/node_modules/prosemirror-transform/dist/index.js +52 -1
- package/node_modules/prosemirror-transform/package.json +1 -1
- package/node_modules/prosemirror-transform/src/replace.ts +16 -0
- package/node_modules/prosemirror-transform/src/replace_step.ts +10 -1
- package/node_modules/prosemirror-transform/src/transform.ts +21 -2
- package/node_modules/prosemirror-view/CHANGELOG.md +34 -2
- package/node_modules/prosemirror-view/CONTRIBUTING.md +19 -19
- package/node_modules/prosemirror-view/README.md +3 -3
- package/node_modules/prosemirror-view/dist/index.cjs +96 -40
- package/node_modules/prosemirror-view/dist/index.d.cts +2 -2
- package/node_modules/prosemirror-view/dist/index.d.ts +2 -2
- package/node_modules/prosemirror-view/dist/index.js +90 -39
- package/node_modules/prosemirror-view/package.json +2 -2
- package/node_modules/prosemirror-view/src/domchange.ts +1 -1
- package/node_modules/prosemirror-view/src/domobserver.ts +59 -16
- package/node_modules/prosemirror-view/src/index.ts +4 -4
- package/node_modules/prosemirror-view/src/input.ts +9 -6
- package/node_modules/prosemirror-view/src/viewdesc.ts +26 -22
- package/node_modules/prosemirror-view/style/prosemirror.css +1 -1
- package/package.json +5 -4
- package/src/client.mjs +2 -2
- package/src/config.mjs +1 -0
- package/src/helpers.mjs +2 -2
- package/src/index.mjs +31 -1
- package/src/initCodex.mjs +281 -0
- package/src/mcp.mjs +1 -1
- package/src/mcpShared.mjs +95 -5
- package/node_modules/@hcengineering/account-client/types/client.d.ts +0 -140
- package/node_modules/@hcengineering/account-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/index.d.ts +0 -4
- package/node_modules/@hcengineering/account-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/types.d.ts +0 -177
- package/node_modules/@hcengineering/account-client/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/utils.d.ts +0 -5
- package/node_modules/@hcengineering/account-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/analytics/types/index.d.ts +0 -25
- package/node_modules/@hcengineering/analytics/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/client.d.ts +0 -6
- package/node_modules/@hcengineering/api-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/config.d.ts +0 -8
- package/node_modules/@hcengineering/api-client/types/config.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/index.d.ts +0 -9
- package/node_modules/@hcengineering/api-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/client.d.ts +0 -5
- package/node_modules/@hcengineering/api-client/types/markup/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/index.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/markup/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/types.d.ts +0 -41
- package/node_modules/@hcengineering/api-client/types/markup/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/index.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/rest/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts +0 -39
- package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/types.d.ts +0 -16
- package/node_modules/@hcengineering/api-client/types/rest/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/index.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/socket/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/node.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/socket/node.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/client.d.ts +0 -21
- package/node_modules/@hcengineering/api-client/types/storage/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/error.d.ts +0 -10
- package/node_modules/@hcengineering/api-client/types/storage/error.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/index.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/storage/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/types.d.ts +0 -10
- package/node_modules/@hcengineering/api-client/types/storage/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/types.d.ts +0 -101
- package/node_modules/@hcengineering/api-client/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/utils.d.ts +0 -12
- package/node_modules/@hcengineering/api-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/analytics.d.ts +0 -5
- package/node_modules/@hcengineering/chunter/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/index.d.ts +0 -211
- package/node_modules/@hcengineering/chunter/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/utils.d.ts +0 -7
- package/node_modules/@hcengineering/chunter/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts +0 -2
- package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client/types/index.d.ts +0 -69
- package/node_modules/@hcengineering/client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts +0 -2
- package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts +0 -45
- package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/connection.d.ts +0 -7
- package/node_modules/@hcengineering/client-resources/types/connection.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/index.d.ts +0 -11
- package/node_modules/@hcengineering/client-resources/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/client.d.ts +0 -34
- package/node_modules/@hcengineering/collaborator-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/collaborator-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts +0 -9
- package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts +0 -2
- package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/analytics.d.ts +0 -6
- package/node_modules/@hcengineering/contact/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/avatar.d.ts +0 -12
- package/node_modules/@hcengineering/contact/types/avatar.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/cache.d.ts +0 -49
- package/node_modules/@hcengineering/contact/types/cache.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/index.d.ts +0 -367
- package/node_modules/@hcengineering/contact/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/types.d.ts +0 -25
- package/node_modules/@hcengineering/contact/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/utils.d.ts +0 -110
- package/node_modules/@hcengineering/contact/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts +0 -4
- package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts +0 -50
- package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/backup.d.ts +0 -26
- package/node_modules/@hcengineering/core/types/backup.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/benchmark.d.ts +0 -19
- package/node_modules/@hcengineering/core/types/benchmark.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/classes.d.ts +0 -716
- package/node_modules/@hcengineering/core/types/classes.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/client.d.ts +0 -69
- package/node_modules/@hcengineering/core/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/clone.d.ts +0 -3
- package/node_modules/@hcengineering/core/types/clone.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/collaboration.d.ts +0 -16
- package/node_modules/@hcengineering/core/types/collaboration.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/collaborators.d.ts +0 -3
- package/node_modules/@hcengineering/core/types/collaborators.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/common.d.ts +0 -4
- package/node_modules/@hcengineering/core/types/common.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/component.d.ts +0 -229
- package/node_modules/@hcengineering/core/types/component.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/hierarchy.d.ts +0 -84
- package/node_modules/@hcengineering/core/types/hierarchy.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/index.d.ts +0 -25
- package/node_modules/@hcengineering/core/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/memdb.d.ts +0 -60
- package/node_modules/@hcengineering/core/types/memdb.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/objvalue.d.ts +0 -10
- package/node_modules/@hcengineering/core/types/objvalue.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/operations.d.ts +0 -87
- package/node_modules/@hcengineering/core/types/operations.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/operator.d.ts +0 -16
- package/node_modules/@hcengineering/core/types/operator.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/predicate.d.ts +0 -6
- package/node_modules/@hcengineering/core/types/predicate.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/proxy.d.ts +0 -21
- package/node_modules/@hcengineering/core/types/proxy.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/query.d.ts +0 -21
- package/node_modules/@hcengineering/core/types/query.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/server.d.ts +0 -82
- package/node_modules/@hcengineering/core/types/server.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/status.d.ts +0 -30
- package/node_modules/@hcengineering/core/types/status.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/storage.d.ts +0 -233
- package/node_modules/@hcengineering/core/types/storage.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/time.d.ts +0 -8
- package/node_modules/@hcengineering/core/types/time.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/tx.d.ts +0 -261
- package/node_modules/@hcengineering/core/types/tx.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/utils.d.ts +0 -207
- package/node_modules/@hcengineering/core/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/context.d.ts +0 -64
- package/node_modules/@hcengineering/measurements/types/context.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/index.d.ts +0 -12
- package/node_modules/@hcengineering/measurements/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/metrics.d.ts +0 -34
- package/node_modules/@hcengineering/measurements/types/metrics.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/types.d.ts +0 -88
- package/node_modules/@hcengineering/measurements/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts +0 -7
- package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/event.d.ts +0 -39
- package/node_modules/@hcengineering/platform/types/event.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/i18n.d.ts +0 -28
- package/node_modules/@hcengineering/platform/types/i18n.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/ident.d.ts +0 -14
- package/node_modules/@hcengineering/platform/types/ident.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/index.d.ts +0 -19
- package/node_modules/@hcengineering/platform/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/metadata.d.ts +0 -38
- package/node_modules/@hcengineering/platform/types/metadata.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/platform.d.ts +0 -218
- package/node_modules/@hcengineering/platform/types/platform.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/resource.d.ts +0 -49
- package/node_modules/@hcengineering/platform/types/resource.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/status.d.ts +0 -60
- package/node_modules/@hcengineering/platform/types/status.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/testUtils.d.ts +0 -8
- package/node_modules/@hcengineering/platform/types/testUtils.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/rank/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/types.d.ts +0 -2
- package/node_modules/@hcengineering/rank/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/utils.d.ts +0 -6
- package/node_modules/@hcengineering/rank/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/rpc/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/rpc.d.ts +0 -96
- package/node_modules/@hcengineering/rpc/types/rpc.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/sliding.d.ts +0 -11
- package/node_modules/@hcengineering/rpc/types/sliding.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts +0 -2
- package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts.map +0 -1
- package/node_modules/@hcengineering/tags/types/analytics.d.ts +0 -5
- package/node_modules/@hcengineering/tags/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/tags/types/index.d.ts +0 -105
- package/node_modules/@hcengineering/tags/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/task/types/index.d.ts +0 -227
- package/node_modules/@hcengineering/task/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/task/types/utils.d.ts +0 -61
- package/node_modules/@hcengineering/task/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/extensions.d.ts +0 -53
- package/node_modules/@hcengineering/text/types/extensions.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/index.d.ts +0 -13
- package/node_modules/@hcengineering/text/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kit.d.ts +0 -12
- package/node_modules/@hcengineering/text/types/kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts +0 -72
- package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts +0 -106
- package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/code.d.ts +0 -8
- package/node_modules/@hcengineering/text/types/marks/code.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/colors.d.ts +0 -21
- package/node_modules/@hcengineering/text/types/marks/colors.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts +0 -5
- package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts +0 -23
- package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts +0 -2
- package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts +0 -5
- package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/utils.d.ts +0 -19
- package/node_modules/@hcengineering/text/types/markup/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts +0 -12
- package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/comment.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/nodes/comment.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/embed.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/embed.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts +0 -17
- package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/file.d.ts +0 -13
- package/node_modules/@hcengineering/text/types/nodes/file.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/image.d.ts +0 -52
- package/node_modules/@hcengineering/text/types/nodes/image.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/index.d.ts +0 -11
- package/node_modules/@hcengineering/text/types/nodes/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts +0 -4
- package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/reference.d.ts +0 -18
- package/node_modules/@hcengineering/text/types/nodes/reference.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/todo.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/todo.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/utils.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/nodes/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts +0 -28
- package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/index.d.ts +0 -6
- package/node_modules/@hcengineering/text-core/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts +0 -25
- package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/model.d.ts +0 -74
- package/node_modules/@hcengineering/text-core/types/markup/model.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts +0 -15
- package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts +0 -6
- package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts +0 -25
- package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/index.d.ts +0 -6
- package/node_modules/@hcengineering/text-html/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/parser.d.ts +0 -10
- package/node_modules/@hcengineering/text-html/types/parser.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/serializer.d.ts +0 -9
- package/node_modules/@hcengineering/text-html/types/serializer.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts +0 -9
- package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/compare.d.ts +0 -10
- package/node_modules/@hcengineering/text-markdown/types/compare.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/index.d.ts +0 -14
- package/node_modules/@hcengineering/text-markdown/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/marks.d.ts +0 -8
- package/node_modules/@hcengineering/text-markdown/types/marks.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/node.d.ts +0 -4
- package/node_modules/@hcengineering/text-markdown/types/node.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/parser.d.ts +0 -50
- package/node_modules/@hcengineering/text-markdown/types/parser.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts +0 -102
- package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts.map +0 -1
- package/node_modules/@hcengineering/tracker/types/analytics.d.ts +0 -24
- package/node_modules/@hcengineering/tracker/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/tracker/types/index.d.ts +0 -431
- package/node_modules/@hcengineering/tracker/types/index.d.ts.map +0 -1
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { type ClientSocketFactory } from '@hcengineering/client';
|
|
2
|
-
import { CollaborativeDoc, type Account, type AttachedData, type AttachedDoc, type Class, type Data, type Doc, type DocumentQuery, type DocumentUpdate, type FindOptions, type FindResult, type Hierarchy, type Mixin, type MixinData, type MixinUpdate, type ModelDb, type Ref, type Space, type TxResult, type WithLookup } from '@hcengineering/core';
|
|
3
|
-
import { type MarkupContent, type MarkupOperations } from './markup';
|
|
4
|
-
type WithPropertyType<T, X, Y> = {
|
|
5
|
-
[P in keyof T]: T[P] extends X ? Y : T[P];
|
|
6
|
-
};
|
|
7
|
-
/** @public */
|
|
8
|
-
export type WithMarkup<T> = WithPropertyType<WithPropertyType<T, CollaborativeDoc | undefined, MarkupContent | undefined>, CollaborativeDoc, MarkupContent>;
|
|
9
|
-
/**
|
|
10
|
-
* Platform API client
|
|
11
|
-
* @public
|
|
12
|
-
* */
|
|
13
|
-
export type PlatformClient = {
|
|
14
|
-
getHierarchy: () => Hierarchy;
|
|
15
|
-
getModel: () => ModelDb;
|
|
16
|
-
getAccount: () => Promise<Account>;
|
|
17
|
-
close: () => Promise<void>;
|
|
18
|
-
} & FindOperations & DocOperations & CollectionOperations & MixinOperations & MarkupOperations & AsyncDisposable;
|
|
19
|
-
/**
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export interface FindOperations {
|
|
23
|
-
findAll: <T extends Doc>(_class: Ref<Class<T>>, query: DocumentQuery<T>, options?: FindOptions<T> | undefined) => Promise<FindResult<T>>;
|
|
24
|
-
findOne: <T extends Doc>(_class: Ref<Class<T>>, query: DocumentQuery<T>, options?: FindOptions<T> | undefined) => Promise<WithLookup<T> | undefined>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
export interface DocOperations {
|
|
30
|
-
createDoc: <T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, attributes: WithMarkup<Data<T>>, id?: Ref<T>) => Promise<Ref<T>>;
|
|
31
|
-
updateDoc: <T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>, operations: WithMarkup<DocumentUpdate<T>>, retrieve?: boolean) => Promise<TxResult>;
|
|
32
|
-
removeDoc: <T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>) => Promise<TxResult>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export interface CollectionOperations {
|
|
38
|
-
addCollection: <T extends Doc, P extends AttachedDoc>(_class: Ref<Class<P>>, space: Ref<Space>, attachedTo: Ref<T>, attachedToClass: Ref<Class<T>>, collection: Extract<keyof T, string> | string, attributes: WithMarkup<AttachedData<P>>, id?: Ref<P>) => Promise<Ref<P>>;
|
|
39
|
-
updateCollection: <T extends Doc, P extends AttachedDoc>(_class: Ref<Class<P>>, space: Ref<Space>, objectId: Ref<P>, attachedTo: Ref<T>, attachedToClass: Ref<Class<T>>, collection: Extract<keyof T, string> | string, operations: WithMarkup<DocumentUpdate<P>>, retrieve?: boolean) => Promise<Ref<T>>;
|
|
40
|
-
removeCollection: <T extends Doc, P extends AttachedDoc>(_class: Ref<Class<P>>, space: Ref<Space>, objectId: Ref<P>, attachedTo: Ref<T>, attachedToClass: Ref<Class<T>>, collection: Extract<keyof T, string> | string) => Promise<Ref<T>>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
45
|
-
export interface MixinOperations {
|
|
46
|
-
createMixin: <D extends Doc, M extends D>(objectId: Ref<D>, objectClass: Ref<Class<D>>, objectSpace: Ref<Space>, mixin: Ref<Mixin<M>>, attributes: WithMarkup<MixinData<D, M>>) => Promise<TxResult>;
|
|
47
|
-
updateMixin: <D extends Doc, M extends D>(objectId: Ref<D>, objectClass: Ref<Class<D>>, objectSpace: Ref<Space>, mixin: Ref<Mixin<M>>, attributes: WithMarkup<MixinUpdate<D, M>>) => Promise<TxResult>;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Configuration options for password-based authentication
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
export interface PasswordAuthOptions {
|
|
54
|
-
/** User's email address */
|
|
55
|
-
email: string;
|
|
56
|
-
/** User's password */
|
|
57
|
-
password: string;
|
|
58
|
-
/** Workspace URL name */
|
|
59
|
-
workspace: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Configuration options for token-based authentication
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
65
|
-
export interface TokenAuthOptions {
|
|
66
|
-
/** Authentication token */
|
|
67
|
-
token: string;
|
|
68
|
-
/** Workspace URL name */
|
|
69
|
-
workspace: string;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Union type representing all authentication options
|
|
73
|
-
* Can be either password-based or token-based authentication
|
|
74
|
-
* @public
|
|
75
|
-
*/
|
|
76
|
-
export type AuthOptions = PasswordAuthOptions | TokenAuthOptions;
|
|
77
|
-
/**
|
|
78
|
-
* Configuration options for socket connection
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
export interface ConnectSocketOptions {
|
|
82
|
-
/**
|
|
83
|
-
* Optional factory for creating custom WebSocket implementations
|
|
84
|
-
* Particularly useful in Node.js environments where you might need
|
|
85
|
-
* to provide a specific WebSocket client implementation
|
|
86
|
-
* If not provided, a default WebSocket implementation will be used
|
|
87
|
-
*/
|
|
88
|
-
socketFactory?: ClientSocketFactory;
|
|
89
|
-
/**
|
|
90
|
-
* Optional timeout duration for the connection attempt in milliseconds
|
|
91
|
-
* Specifies how long to wait for a connection before timing out
|
|
92
|
-
*/
|
|
93
|
-
connectionTimeout?: number;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* API connect options
|
|
97
|
-
* @public
|
|
98
|
-
*/
|
|
99
|
-
export type ConnectOptions = ConnectSocketOptions & AuthOptions;
|
|
100
|
-
export {};
|
|
101
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EACL,gBAAgB,EAChB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEpE,KAAK,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI;KAC9B,CAAC,IAAI,MAAM,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C,EAAE,MAAM,CAAA;CAC3B;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,WAAW,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type WorkspaceLoginInfo } from '@hcengineering/account-client';
|
|
2
|
-
import { WorkspaceUuid } from '@hcengineering/core';
|
|
3
|
-
import { AuthOptions } from './types';
|
|
4
|
-
import { ServerConfig } from './config';
|
|
5
|
-
export interface WorkspaceToken {
|
|
6
|
-
endpoint: string;
|
|
7
|
-
token: string;
|
|
8
|
-
workspaceId: WorkspaceUuid;
|
|
9
|
-
info: WorkspaceLoginInfo;
|
|
10
|
-
}
|
|
11
|
-
export declare function getWorkspaceToken(url: string, options: AuthOptions, config?: ServerConfig): Promise<WorkspaceToken>;
|
|
12
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,kBAAkB,EAAiC,MAAM,+BAA+B,CAAA;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAoB,YAAY,EAAE,MAAM,UAAU,CAAA;AAEzD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,aAAa,CAAA;IAC1B,IAAI,EAAE,kBAAkB,CAAA;CACzB;AAED,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC,cAAc,CAAC,CAuBzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,cAAc,2BAA2B;IACzC,aAAa,0BAA0B;CACxC"}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { ActivityMessage, ActivityMessageViewlet } from '@hcengineering/activity';
|
|
2
|
-
import type { Class, Doc, Markup, Mixin, Ref, Space, Timestamp } from '@hcengineering/core';
|
|
3
|
-
import { NotificationType } from '@hcengineering/notification';
|
|
4
|
-
import type { Asset, Plugin, Resource } from '@hcengineering/platform';
|
|
5
|
-
import { IntlString } from '@hcengineering/platform';
|
|
6
|
-
import { AnyComponent } from '@hcengineering/ui';
|
|
7
|
-
import { Action } from '@hcengineering/view';
|
|
8
|
-
import { Person, ChannelProvider as SocialChannelProvider } from '@hcengineering/contact';
|
|
9
|
-
import { Widget, WidgetTab } from '@hcengineering/workbench';
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export interface ChunterSpace extends Space {
|
|
14
|
-
messages?: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
export interface Channel extends ChunterSpace {
|
|
20
|
-
topic?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
25
|
-
export interface DirectMessage extends ChunterSpace {
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
export interface ObjectChatPanel extends Class<Doc> {
|
|
31
|
-
openByDefault?: boolean;
|
|
32
|
-
ignoreKeys: string[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export interface ChatMessage extends ActivityMessage {
|
|
38
|
-
message: Markup;
|
|
39
|
-
attachments?: number;
|
|
40
|
-
editedOn?: Timestamp;
|
|
41
|
-
provider?: Ref<SocialChannelProvider>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
export interface ThreadMessage extends ChatMessage {
|
|
47
|
-
attachedTo: Ref<ActivityMessage>;
|
|
48
|
-
attachedToClass: Ref<Class<ActivityMessage>>;
|
|
49
|
-
objectId: Ref<Doc>;
|
|
50
|
-
objectClass: Ref<Class<Doc>>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
export interface ChatMessageViewlet extends ActivityMessageViewlet {
|
|
56
|
-
messageClass: Ref<Class<Doc>>;
|
|
57
|
-
label?: IntlString;
|
|
58
|
-
}
|
|
59
|
-
export interface ChatSyncInfo extends Doc {
|
|
60
|
-
user: Ref<Person>;
|
|
61
|
-
timestamp: Timestamp;
|
|
62
|
-
}
|
|
63
|
-
export interface ChatWidgetTab extends WidgetTab {
|
|
64
|
-
data: {
|
|
65
|
-
_id?: Ref<Doc>;
|
|
66
|
-
_class?: Ref<Class<Doc>>;
|
|
67
|
-
thread?: Ref<ActivityMessage>;
|
|
68
|
-
channelName: string;
|
|
69
|
-
selectedMessageId?: Ref<ActivityMessage>;
|
|
70
|
-
props?: Record<string, any>;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* @public
|
|
75
|
-
*/
|
|
76
|
-
export declare const chunterId: Plugin;
|
|
77
|
-
export * from './utils';
|
|
78
|
-
export * from './analytics';
|
|
79
|
-
declare const _default: {
|
|
80
|
-
icon: {
|
|
81
|
-
Chunter: Asset;
|
|
82
|
-
Hashtag: Asset;
|
|
83
|
-
Thread: Asset;
|
|
84
|
-
Lock: Asset;
|
|
85
|
-
ChannelBrowser: Asset;
|
|
86
|
-
ChunterBrowser: Asset;
|
|
87
|
-
Copy: Asset;
|
|
88
|
-
Messages: Asset;
|
|
89
|
-
Bookmarks: Asset;
|
|
90
|
-
};
|
|
91
|
-
component: {
|
|
92
|
-
DmHeader: AnyComponent;
|
|
93
|
-
ThreadView: AnyComponent;
|
|
94
|
-
Thread: AnyComponent;
|
|
95
|
-
Reactions: AnyComponent;
|
|
96
|
-
ChatMessageInput: AnyComponent;
|
|
97
|
-
ChatMessagesPresenter: AnyComponent;
|
|
98
|
-
ChatMessagePresenter: AnyComponent;
|
|
99
|
-
ThreadMessagePresenter: AnyComponent;
|
|
100
|
-
ChatMessagePreview: AnyComponent;
|
|
101
|
-
ThreadMessagePreview: AnyComponent;
|
|
102
|
-
DirectIcon: AnyComponent;
|
|
103
|
-
InlineCommentThread: AnyComponent;
|
|
104
|
-
};
|
|
105
|
-
activity: {
|
|
106
|
-
MembersChangedMessage: AnyComponent;
|
|
107
|
-
};
|
|
108
|
-
class: {
|
|
109
|
-
ThreadMessage: Ref<Class<ThreadMessage>>;
|
|
110
|
-
ChunterSpace: Ref<Class<ChunterSpace>>;
|
|
111
|
-
Channel: Ref<Class<Channel>>;
|
|
112
|
-
DirectMessage: Ref<Class<DirectMessage>>;
|
|
113
|
-
ChatMessage: Ref<Class<ChatMessage>>;
|
|
114
|
-
ChatMessageViewlet: Ref<Class<ChatMessageViewlet>>;
|
|
115
|
-
ChatSyncInfo: Ref<Class<ChatSyncInfo>>;
|
|
116
|
-
};
|
|
117
|
-
mixin: {
|
|
118
|
-
ObjectChatPanel: Ref<Mixin<ObjectChatPanel>>;
|
|
119
|
-
};
|
|
120
|
-
string: {
|
|
121
|
-
Reactions: IntlString;
|
|
122
|
-
EditUpdate: IntlString;
|
|
123
|
-
EditCancel: IntlString;
|
|
124
|
-
Comments: IntlString;
|
|
125
|
-
Settings: IntlString;
|
|
126
|
-
ArchiveChannel: IntlString;
|
|
127
|
-
UnarchiveChannel: IntlString;
|
|
128
|
-
ArchiveConfirm: IntlString;
|
|
129
|
-
Message: IntlString;
|
|
130
|
-
MessageOn: IntlString;
|
|
131
|
-
UnarchiveConfirm: IntlString;
|
|
132
|
-
ConvertToPrivate: IntlString;
|
|
133
|
-
DirectNotificationTitle: IntlString;
|
|
134
|
-
DirectNotificationBody: IntlString;
|
|
135
|
-
MessageNotificationBody: IntlString;
|
|
136
|
-
AddCommentPlaceholder: IntlString;
|
|
137
|
-
LeftComment: IntlString;
|
|
138
|
-
Docs: IntlString;
|
|
139
|
-
Chat: IntlString;
|
|
140
|
-
Thread: IntlString;
|
|
141
|
-
ThreadMessage: IntlString;
|
|
142
|
-
ReplyToThread: IntlString;
|
|
143
|
-
Channels: IntlString;
|
|
144
|
-
Direct: IntlString;
|
|
145
|
-
RepliedTo: IntlString;
|
|
146
|
-
AllChannels: IntlString;
|
|
147
|
-
AllContacts: IntlString;
|
|
148
|
-
NewChannel: IntlString;
|
|
149
|
-
TopicOptional: IntlString;
|
|
150
|
-
Visibility: IntlString;
|
|
151
|
-
Public: IntlString;
|
|
152
|
-
Private: IntlString;
|
|
153
|
-
NewDirectChat: IntlString;
|
|
154
|
-
AddMembers: IntlString;
|
|
155
|
-
CloseConversation: IntlString;
|
|
156
|
-
Starred: IntlString;
|
|
157
|
-
DeleteStarred: IntlString;
|
|
158
|
-
StarChannel: IntlString;
|
|
159
|
-
StarConversation: IntlString;
|
|
160
|
-
UnstarChannel: IntlString;
|
|
161
|
-
UnstarConversation: IntlString;
|
|
162
|
-
NoMessagesInChannel: IntlString;
|
|
163
|
-
SendMessagesInChannel: IntlString;
|
|
164
|
-
Joined: IntlString;
|
|
165
|
-
Left: IntlString;
|
|
166
|
-
Added: IntlString;
|
|
167
|
-
Removed: IntlString;
|
|
168
|
-
CreatedChannelOn: IntlString;
|
|
169
|
-
YouJoinedChannel: IntlString;
|
|
170
|
-
AndMore: IntlString;
|
|
171
|
-
IsTyping: IntlString;
|
|
172
|
-
ThreadIn: IntlString;
|
|
173
|
-
TranslateMessage: IntlString;
|
|
174
|
-
Translate: IntlString;
|
|
175
|
-
ShowOriginal: IntlString;
|
|
176
|
-
Translating: IntlString;
|
|
177
|
-
StartConversation: IntlString;
|
|
178
|
-
ViewingThreadFromArchivedChannel: IntlString;
|
|
179
|
-
ViewingArchivedChannel: IntlString;
|
|
180
|
-
OpenChatInSidebar: IntlString;
|
|
181
|
-
SummarizeMessages: IntlString;
|
|
182
|
-
};
|
|
183
|
-
ids: {
|
|
184
|
-
DMNotification: Ref<NotificationType>;
|
|
185
|
-
ThreadNotification: Ref<NotificationType>;
|
|
186
|
-
ChannelNotification: Ref<NotificationType>;
|
|
187
|
-
JoinChannelNotification: Ref<NotificationType>;
|
|
188
|
-
ThreadMessageViewlet: Ref<ChatMessageViewlet>;
|
|
189
|
-
ChatWidget: Ref<Widget>;
|
|
190
|
-
};
|
|
191
|
-
app: {
|
|
192
|
-
Chunter: Ref<Doc>;
|
|
193
|
-
};
|
|
194
|
-
action: {
|
|
195
|
-
DeleteChatMessage: Ref<Action>;
|
|
196
|
-
LeaveChannel: Ref<Action>;
|
|
197
|
-
RemoveChannel: Ref<Action>;
|
|
198
|
-
TranslateMessage: Ref<Action>;
|
|
199
|
-
SummarizeMessages: Ref<Action>;
|
|
200
|
-
ShowOriginalMessage: Ref<Action>;
|
|
201
|
-
CloseConversation: Ref<Action>;
|
|
202
|
-
};
|
|
203
|
-
function: {
|
|
204
|
-
CanTranslateMessage: Resource<(doc?: Doc | Doc[]) => Promise<boolean>>;
|
|
205
|
-
CanSummarizeMessages: Resource<(doc?: Doc | Doc[]) => Promise<boolean>>;
|
|
206
|
-
OpenThreadInSidebar: Resource<(_id: Ref<ActivityMessage>, msg?: ActivityMessage, doc?: Doc, selectedId?: Ref<ActivityMessage>, props?: Record<string, any>, force?: boolean) => Promise<void>>;
|
|
207
|
-
OpenChannelInSidebar: Resource<(_id: Ref<Doc>, _class: Ref<Class<Doc>>, doc?: Doc, thread?: Ref<ActivityMessage>, newTab?: boolean, selectedMessageId?: Ref<ActivityMessage>) => Promise<void>>;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
export default _default;
|
|
211
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[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C,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,KACrC,OAAO,CAAC,IAAI,CAAC,CACjB;;;AAlJL,wBAoJE"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type AccountUuid, type Ref, TxOperations } from '@hcengineering/core';
|
|
2
|
-
import { DirectMessage } from '.';
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare function getDirectChannel(client: TxOperations, me: AccountUuid, employeeAccount: AccountUuid): Promise<Ref<DirectMessage>>;
|
|
7
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAa,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEpF,OAAgB,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAE1C;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,YAAY,EACpB,EAAE,EAAE,WAAW,EACf,eAAe,EAAE,WAAW,GAC3B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAgB7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/client.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { Client, ClientConnectEvent, MeasureContext, TxPersistenceStore } from '@hcengineering/core';
|
|
2
|
-
import { type Metadata, type Plugin, type Resource, type StatusCode } from '@hcengineering/platform';
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare const clientId: Plugin;
|
|
7
|
-
/**
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
export type ClientSocketFactory = (url: string) => ClientSocket;
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export interface ClientSocket {
|
|
15
|
-
onmessage?: ((this: ClientSocket, ev: MessageEvent) => any) | null;
|
|
16
|
-
onclose?: ((this: ClientSocket, ev: CloseEvent) => any) | null;
|
|
17
|
-
onopen?: ((this: ClientSocket, ev: Event) => any) | null;
|
|
18
|
-
onerror?: ((this: ClientSocket, ev: Event) => any) | null;
|
|
19
|
-
send: (data: string | ArrayBufferLike | Blob | ArrayBufferView) => void;
|
|
20
|
-
close: (code?: number) => void;
|
|
21
|
-
readyState: ClientSocketReadyState;
|
|
22
|
-
bufferedAmount?: number;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare enum ClientSocketReadyState {
|
|
28
|
-
CONNECTING = 0,
|
|
29
|
-
OPEN = 1,
|
|
30
|
-
CLOSING = 2,
|
|
31
|
-
CLOSED = 3
|
|
32
|
-
}
|
|
33
|
-
export interface ClientFactoryOptions {
|
|
34
|
-
socketFactory?: ClientSocketFactory;
|
|
35
|
-
useBinaryProtocol?: boolean;
|
|
36
|
-
useProtocolCompression?: boolean;
|
|
37
|
-
connectionTimeout?: number;
|
|
38
|
-
onHello?: (serverVersion?: string) => boolean;
|
|
39
|
-
onUpgrade?: () => void;
|
|
40
|
-
onError?: (err: StatusCode) => void;
|
|
41
|
-
onConnect?: (event: ClientConnectEvent, lastTx: string | undefined, data: any) => Promise<void>;
|
|
42
|
-
ctx?: MeasureContext;
|
|
43
|
-
onDialTimeout?: () => void | Promise<void>;
|
|
44
|
-
useGlobalRPCHandler?: boolean;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
export type ClientFactory = (token: string, endpoint: string, opt?: ClientFactoryOptions) => Promise<Client>;
|
|
50
|
-
export type FilterMode = 'none' | 'client' | 'ui';
|
|
51
|
-
export declare const pingConst = "ping";
|
|
52
|
-
export declare const pongConst = "pong!";
|
|
53
|
-
declare const _default: {
|
|
54
|
-
metadata: {
|
|
55
|
-
ClientSocketFactory: Metadata<ClientSocketFactory>;
|
|
56
|
-
FilterModel: Metadata<FilterMode>;
|
|
57
|
-
ExtraFilter: Metadata<string[]>;
|
|
58
|
-
ExtraPlugins: Metadata<Plugin[]>;
|
|
59
|
-
UseBinaryProtocol: Metadata<boolean>;
|
|
60
|
-
UseProtocolCompression: Metadata<boolean>;
|
|
61
|
-
ConnectionTimeout: Metadata<number>;
|
|
62
|
-
OverridePersistenceStore: Metadata<TxPersistenceStore>;
|
|
63
|
-
};
|
|
64
|
-
function: {
|
|
65
|
-
GetClient: Resource<ClientFactory>;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
export default _default;
|
|
69
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACzG,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAU,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAE5G;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAe,MAAM,CAAA;AAE1C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,YAAY,CAAA;AAE/D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,IAAI,CAAA;IAClE,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,UAAU,KAAK,GAAG,CAAC,GAAG,IA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,OAAO,CAAA;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,oBAAoB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAK5G,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAA;AAEjD,eAAO,MAAM,SAAS,SAAS,CAAA;AAC/B,eAAO,MAAM,SAAS,UAAU,CAAA;;;6BAID,QAAQ,CAAC,mBAAmB,CAAC;qBACrC,QAAQ,CAAC,UAAU,CAAC;qBACpB,QAAQ,CAAC,MAAM,EAAE,CAAC;sBACjB,QAAQ,CAAC,MAAM,EAAE,CAAC;2BACb,QAAQ,CAAC,OAAO,CAAC;gCACZ,QAAQ,CAAC,OAAO,CAAC;2BACtB,QAAQ,CAAC,MAAM,CAAC;kCACT,QAAQ,CAAC,kBAAkB,CAAC;;;mBAG3C,QAAQ,CAAC,aAAa,CAAC;;;AAZ5C,wBAcE"}
|
package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/connection.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { type Client, type Tx, TxCreateDoc, type Doc, type ClientConnection, type TxHandler, ClientConnectEvent, type LoadModelResponse, type Class, type Ref, type DocumentQuery, type FindOptions, type FindResult, type SearchQuery, type SearchOptions, type SearchResult, type TxResult, type Timestamp, type Domain, type DocChunk, type OperationDomain, type DomainParams, type DomainRequestOptions, type DomainResult } from '@hcengineering/core';
|
|
2
|
-
/**
|
|
3
|
-
* Mock ClientConnection for integration testing
|
|
4
|
-
*/
|
|
5
|
-
export declare class MockClientConnection implements ClientConnection {
|
|
6
|
-
private readonly handlers;
|
|
7
|
-
private _connected;
|
|
8
|
-
private readonly hierarchy;
|
|
9
|
-
private readonly model;
|
|
10
|
-
private readonly transactions;
|
|
11
|
-
onConnect?: (event: ClientConnectEvent, lastTx: string | undefined, data: any) => Promise<void>;
|
|
12
|
-
getLastHash?: () => Promise<string | undefined>;
|
|
13
|
-
constructor(txes?: Tx[]);
|
|
14
|
-
isConnected(): boolean;
|
|
15
|
-
setConnected(value: boolean): void;
|
|
16
|
-
pushHandler(handler: TxHandler): void;
|
|
17
|
-
findAll<T extends Doc>(_class: Ref<Class<T>>, query: DocumentQuery<T>, options?: FindOptions<T>): Promise<FindResult<T>>;
|
|
18
|
-
searchFulltext(query: SearchQuery, options: SearchOptions): Promise<SearchResult>;
|
|
19
|
-
tx(tx: Tx): Promise<TxResult>;
|
|
20
|
-
loadModel(last: Timestamp, hash?: string): Promise<Tx[] | LoadModelResponse>;
|
|
21
|
-
close(): Promise<void>;
|
|
22
|
-
loadChunk(domain: Domain, idx?: number): Promise<DocChunk>;
|
|
23
|
-
getDomainHash(domain: Domain): Promise<string>;
|
|
24
|
-
closeChunk(idx: number): Promise<void>;
|
|
25
|
-
loadDocs(domain: Domain, docs: Ref<Doc>[]): Promise<Doc[]>;
|
|
26
|
-
upload(domain: Domain, docs: Doc[]): Promise<void>;
|
|
27
|
-
clean(domain: Domain, docs: Ref<Doc>[]): Promise<void>;
|
|
28
|
-
sendForceClose(): Promise<void>;
|
|
29
|
-
domainRequest(ctx: OperationDomain, params: DomainParams, options?: DomainRequestOptions): Promise<DomainResult>;
|
|
30
|
-
simulateTransaction(tx: Tx): void;
|
|
31
|
-
simulateConnect(event?: ClientConnectEvent): Promise<void>;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Create a test client with mock connection
|
|
35
|
-
*/
|
|
36
|
-
export declare function createTestClient(initialTxes?: Tx[]): Promise<{
|
|
37
|
-
client: Client;
|
|
38
|
-
connection: MockClientConnection;
|
|
39
|
-
close: () => Promise<void>;
|
|
40
|
-
}>;
|
|
41
|
-
/**
|
|
42
|
-
* Helper to create a test transaction
|
|
43
|
-
*/
|
|
44
|
-
export declare function createTestTx(objectClass?: Ref<Class<Doc>>, attributes?: any): TxCreateDoc<Doc>;
|
|
45
|
-
//# sourceMappingURL=integration.test.d.ts.map
|
package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integration.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/integration.test.ts"],"names":[],"mappings":"AAeA,OAAa,EACX,KAAK,MAAM,EACX,KAAK,EAAE,EAEP,WAAW,EACX,KAAK,GAAG,EAER,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,iBAAiB,EAItB,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EAOlB,MAAM,qBAAqB,CAAA;AA4E5B;;GAEG;AACH,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkB;IAC3C,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAM;IAEnC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/F,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,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E,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAEvD,cAAc,IAAK,OAAO,CAAC,IAAI,CAAC;IAEhC,aAAa,CACjB,GAAG,EAAE,eAAe,EACpB,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,YAAY,CAAC;IAIxB,mBAAmB,CAAE,EAAE,EAAE,EAAE,GAAG,IAAI;IAM5B,eAAe,CAAE,KAAK,GAAE,kBAAiD,GAAG,OAAO,CAAC,IAAI,CAAC;CAKhG;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAE,WAAW,GAAE,EAAE,EAAO,GAAG,OAAO,CAAC;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,oBAAoB,CAAA;IAChC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B,CAAC,CAeD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAE,WAAW,GAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAoB,EAAE,UAAU,GAAE,GAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAiBrH"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ClientFactoryOptions } from '@hcengineering/client';
|
|
2
|
-
import { ClientConnection, type PersonUuid, TxHandler, type WorkspaceUuid } from '@hcengineering/core';
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare function connect(url: string, handler: TxHandler, workspace: WorkspaceUuid, user: PersonUuid, opt?: ClientFactoryOptions): ClientConnection;
|
|
7
|
-
//# sourceMappingURL=connection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AAiBA,OAAe,EACb,KAAK,oBAAoB,EAK1B,MAAM,uBAAuB,CAAA;AAC9B,OAAa,EAIX,gBAAgB,EAgBhB,KAAK,UAAU,EASf,SAAS,EAET,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAA;AA4zB5B;;GAEG;AACH,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,aAAa,EACxB,IAAI,EAAE,UAAU,EAChB,GAAG,CAAC,EAAE,oBAAoB,GACzB,gBAAgB,CASlB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ClientFactoryOptions } from '@hcengineering/client/src';
|
|
2
|
-
import { Client } from '@hcengineering/core';
|
|
3
|
-
import { connect } from './connection';
|
|
4
|
-
export { connect };
|
|
5
|
-
declare const _default: () => Promise<{
|
|
6
|
-
function: {
|
|
7
|
-
GetClient: (token: string, endpoint: string, opt?: ClientFactoryOptions) => Promise<Client>;
|
|
8
|
-
};
|
|
9
|
-
}>;
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAa,EACX,MAAM,EAsBP,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,CAAA;;;2BAsDa,MAAM,YAAY,MAAM,QAAQ,oBAAoB,KAAG,OAAO,CAAC,MAAM,CAAC;;;AAHrG,wBAwFC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Blob, CollaborativeDoc, Markup, MarkupBlobRef, Ref, WorkspaceUuid } from '@hcengineering/core';
|
|
2
|
-
/** @public */
|
|
3
|
-
export interface GetContentRequest {
|
|
4
|
-
source?: Ref<Blob>;
|
|
5
|
-
}
|
|
6
|
-
/** @public */
|
|
7
|
-
export interface GetContentResponse {
|
|
8
|
-
content: Record<string, Markup>;
|
|
9
|
-
}
|
|
10
|
-
/** @public */
|
|
11
|
-
export interface CreateContentRequest {
|
|
12
|
-
content: Record<string, Markup>;
|
|
13
|
-
}
|
|
14
|
-
/** @public */
|
|
15
|
-
export interface CreateContentResponse {
|
|
16
|
-
content: Record<string, MarkupBlobRef>;
|
|
17
|
-
}
|
|
18
|
-
/** @public */
|
|
19
|
-
export interface UpdateContentRequest {
|
|
20
|
-
content: Record<string, Markup>;
|
|
21
|
-
}
|
|
22
|
-
/** @public */
|
|
23
|
-
export interface UpdateContentResponse {
|
|
24
|
-
}
|
|
25
|
-
/** @public */
|
|
26
|
-
export interface CollaboratorClient {
|
|
27
|
-
getMarkup: (document: CollaborativeDoc, source?: Ref<Blob> | null) => Promise<Markup>;
|
|
28
|
-
createMarkup: (document: CollaborativeDoc, markup: Markup) => Promise<MarkupBlobRef>;
|
|
29
|
-
updateMarkup: (document: CollaborativeDoc, markup: Markup) => Promise<void>;
|
|
30
|
-
copyContent: (source: CollaborativeDoc, target: CollaborativeDoc) => Promise<void>;
|
|
31
|
-
}
|
|
32
|
-
/** @public */
|
|
33
|
-
export declare function getClient(workspaceId: WorkspaceUuid, token: string, collaboratorUrl: string): CollaboratorClient;
|
|
34
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,aAAa,EAAc,MAAM,qBAAqB,CAAA;AAGnH,cAAc;AACd,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,GAAG,CAAC,IAAI,C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c,SAAS,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CollaborativeDoc } from '@hcengineering/core';
|
|
2
|
-
/** @public */
|
|
3
|
-
export declare function encodeDocumentId(workspaceId: string, documentId: CollaborativeDoc): string;
|
|
4
|
-
/** @public */
|
|
5
|
-
export declare function decodeDocumentId(documentId: string): {
|
|
6
|
-
workspaceId: string;
|
|
7
|
-
documentId: CollaborativeDoc;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAeA,OAAO,EAAS,gBAAgB,EAAY,MAAM,qBAAqB,CAAA;AAEvE,cAAc;AACd,wBAAgB,gBAAgB,CAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,GAAG,MAAM,CAG3F;AAED,cAAc;AACd,wBAAgB,gBAAgB,CAAE,UAAU,EAAE,MAAM,GAAG;IACrD,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,gBAAgB,CAAA;CAC7B,CAUA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/cache.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,eAAe,6BAA6B;IAC5C,aAAa,2BAA2B;IACxC,cAAc,4BAA4B;CAC3C"}
|