Files
huly-platform/models/text-editor/src/plugin.ts
T
Artyom SavchenkoandGitHub 144b0acfe1 Support documents table diff and refresh (#10411)
* Add metadata for markdown tables

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Support table diff and refresh

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Fix warnings and icons

Signed-off-by: Artem Savchenko <armisav@gmail.com>

---------

Signed-off-by: Artem Savchenko <armisav@gmail.com>
2026-01-17 12:17:20 +07:00

66 lines
2.9 KiB
TypeScript

//
// Copyright © 2020, 2021 Anticrm Platform Contributors.
// Copyright © 2022, 2023, 2024 Hardcore Engineering Inc.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
import { mergeIds, type Resource } from '@hcengineering/platform'
import textEditor, {
type TextActionActiveFunction,
type TextActionFunction,
type TextActionVisibleFunction,
textEditorId
} from '@hcengineering/text-editor'
export default mergeIds(textEditorId, textEditor, {
function: {
FormatLink: '' as Resource<TextActionFunction>,
OpenTableOptions: '' as Resource<TextActionFunction>,
SelectTable: '' as Resource<TextActionFunction>,
RefreshTable: '' as Resource<TextActionFunction>,
ShowTableDiff: '' as Resource<TextActionFunction>,
SeeOriginalTableData: '' as Resource<TextActionFunction>,
OpenImage: '' as Resource<TextActionFunction>,
ExpandImage: '' as Resource<TextActionFunction>,
MoreImageActions: '' as Resource<TextActionFunction>,
ConfigureNote: '' as Resource<TextActionFunction>,
DownloadImage: '' as Resource<TextActionFunction>,
IsEditableTableActive: '' as Resource<TextActionVisibleFunction>,
IsTableToolbarContext: '' as Resource<TextActionVisibleFunction>,
IsRefreshableTableActive: '' as Resource<TextActionVisibleFunction>,
IsEditableNote: '' as Resource<TextActionVisibleFunction>,
IsEditable: '' as Resource<TextActionVisibleFunction>,
IsTextStylingEnabled: '' as Resource<TextActionVisibleFunction>,
IsHeadingVisible: '' as Resource<TextActionVisibleFunction>,
CreateInlineComment: '' as Resource<TextActionFunction>,
ShouldShowCreateInlineCommentAction: '' as Resource<TextActionVisibleFunction>,
ShouldShowConvertToLinkPreviewAction: '' as Resource<TextActionVisibleFunction>,
ConvertToLinkPreviewActionIsActive: '' as Resource<TextActionActiveFunction>,
ConvertToLinkPreviewAction: '' as Resource<TextActionFunction>,
ShouldShowConvertToEmbedPreviewAction: '' as Resource<TextActionVisibleFunction>,
ConvertToEmbedPreviewActionIsActive: '' as Resource<TextActionActiveFunction>,
ConvertToEmbedPreviewAction: '' as Resource<TextActionFunction>,
ShouldShowCopyPreviewLinkAction: '' as Resource<TextActionVisibleFunction>,
CopyPreviewLinkAction: '' as Resource<TextActionFunction>,
SetBackgroundColor: '' as Resource<TextActionFunction>,
SetTextColor: '' as Resource<TextActionFunction>
}
})