UBERF-7495: Global editor kit extensions (#6057)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev
2024-07-12 15:42:13 +07:00
committed by GitHub
parent d2706ffed8
commit 0fc0115c99
270 changed files with 1275 additions and 1154 deletions
@@ -15,7 +15,8 @@
<script lang="ts">
import chunter from '@hcengineering/chunter'
import { getClient } from '@hcengineering/presentation'
import { Heading, isEmptyMarkup } from '@hcengineering/text-editor'
import { isEmptyMarkup } from '@hcengineering/text'
import { Heading } from '@hcengineering/text-editor'
import { Button, Component, EditBox } from '@hcengineering/ui'
import documents, { Document, DocumentSection, DocumentTemplateSection } from '@hcengineering/controlled-documents'
@@ -1,15 +1,14 @@
<script lang="ts">
import { getContext, onDestroy } from 'svelte'
import { Doc as Ydoc } from 'yjs'
import { getClient } from '@hcengineering/presentation'
import { type Doc } from '@hcengineering/core'
import { CollaborationIds, type Ydoc } from '@hcengineering/text-editor'
import {
CollaborationIds,
StringDiffViewer,
TiptapCollabProvider,
createTiptapCollaborationData,
formatCollaborativeDocumentId
} from '@hcengineering/text-editor'
} from '@hcengineering/text-editor-resources'
import { Dropdown, Label, ListItem, Loading, Scroller, themeStore } from '@hcengineering/ui'
import documents, {
ControlledDocument,
@@ -1,8 +1,9 @@
<script lang="ts">
import { Doc as Ydoc } from 'yjs'
import { getClient } from '@hcengineering/presentation'
import { CollaborationDiffViewer, StringDiffViewer } from '@hcengineering/text-editor'
import { type Ydoc } from '@hcengineering/text-editor'
import { CollaborationDiffViewer, StringDiffViewer } from '@hcengineering/text-editor-resources'
import documents, { DocumentSection, CollaborativeDocumentSection } from '@hcengineering/controlled-documents'
import plugin from '../../plugin'
import { ComparisonSectionPair } from '../../stores/editors/document'
import FieldSectionEditor from '../FieldSectionEditor.svelte'
@@ -15,7 +15,8 @@
<script lang="ts">
import { Ref } from '@hcengineering/core'
import { getClient } from '@hcengineering/presentation'
import { Heading, TableOfContents, TableOfContentsContent } from '@hcengineering/text-editor'
import { Heading } from '@hcengineering/text-editor'
import { TableOfContents, TableOfContentsContent } from '@hcengineering/text-editor-resources'
import { EditBox, IconCircles, Scroller } from '@hcengineering/ui'
import { showMenu } from '@hcengineering/view-resources'
import { DocumentSection, calcRank } from '@hcengineering/controlled-documents'
@@ -23,17 +23,16 @@
import view from '@hcengineering/view'
import { getResource, setPlatformStatus, unknownError } from '@hcengineering/platform'
import { getClient } from '@hcengineering/presentation'
import { Heading, TextNodeAction } from '@hcengineering/text-editor'
import {
CollaboratorEditor,
FocusExtension,
Heading,
HeadingsExtension,
IsEmptyContentExtension,
NodeHighlightExtension,
NodeHighlightType,
TextNodeAction,
highlightUpdateCommand
} from '@hcengineering/text-editor'
} from '@hcengineering/text-editor-resources'
import { getCollaborationUser, getObjectLinkFragment } from '@hcengineering/view-resources'
import {
@@ -275,6 +274,9 @@
{#key value._id}
<CollaboratorEditor
bind:this={textEditor}
objectId={value.attachedTo}
objectClass={value.attachedToClass}
objectSpace={value.space}
{collaborativeDoc}
{initialCollaborativeDoc}
{user}
@@ -17,7 +17,7 @@
import { getEmbeddedLabel } from '@hcengineering/platform'
import { DocumentSection } from '@hcengineering/controlled-documents'
import { ModernDialog, IconClose } from '@hcengineering/ui'
import { StyledTextArea } from '@hcengineering/text-editor'
import { StyledTextArea } from '@hcengineering/text-editor-resources'
import { MessageViewer, getClient } from '@hcengineering/presentation'
import documentsRes from '../../../plugin'
@@ -3,7 +3,7 @@
import chunter, { type ChatMessage } from '@hcengineering/chunter'
import { Ref, generateId } from '@hcengineering/core'
import { ReferenceInput } from '@hcengineering/text-editor'
import { ReferenceInput } from '@hcengineering/text-editor-resources'
import {
addDocumentCommentFx,