refactor(editor): move extension to store (#9552)
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { AttachmentBlockNotionHtmlAdapterExtension } from './adapters/notion-html.js';
|
import { AttachmentBlockNotionHtmlAdapterExtension } from './adapters/notion-html.js';
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import {
|
|||||||
transformModel,
|
transformModel,
|
||||||
withTempBlobData,
|
withTempBlobData,
|
||||||
} from '@blocksuite/affine-shared/utils';
|
} from '@blocksuite/affine-shared/utils';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { Extension } from '@blocksuite/block-std';
|
|
||||||
import type { Container } from '@blocksuite/global/di';
|
import type { Container } from '@blocksuite/global/di';
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
import { Extension } from '@blocksuite/store';
|
||||||
import type { TemplateResult } from 'lit';
|
import type { TemplateResult } from 'lit';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { BookmarkBlockHtmlAdapterExtension } from './html.js';
|
import { BookmarkBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { BookmarkBlockMarkdownAdapterExtension } from './markdown.js';
|
import { BookmarkBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { BookmarkBlockAdapterExtensions } from './adapters/extension.js';
|
import { BookmarkBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { CodeBlockHtmlAdapterExtension } from './html.js';
|
import { CodeBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { CodeBlockMarkdownAdapterExtension } from './markdown.js';
|
import { CodeBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
WidgetViewMapExtension,
|
WidgetViewMapExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal, unsafeStatic } from 'lit/static-html.js';
|
import { literal, unsafeStatic } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { CodeBlockAdapterExtensions } from './adapters/extension.js';
|
import { CodeBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
export const DataViewBlockSpec: ExtensionType[] = [
|
export const DataViewBlockSpec: ExtensionType[] = [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { DatabaseBlockHtmlAdapterExtension } from './html.js';
|
import { DatabaseBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { DatabaseBlockMarkdownAdapterExtension } from './markdown.js';
|
import { DatabaseBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
import { DatabaseSelectionExtension } from '@blocksuite/data-view';
|
import { DatabaseSelectionExtension } from '@blocksuite/data-view';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { DatabaseBlockAdapterExtensions } from './adapters/extension.js';
|
import { DatabaseBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { DividerBlockHtmlAdapterExtension } from './html.js';
|
import { DividerBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { DividerBlockMarkdownAdapterExtension } from './markdown.js';
|
import { DividerBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { BlockViewExtension, type ExtensionType } from '@blocksuite/block-std';
|
import { BlockViewExtension } from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { DividerBlockAdapterExtensions } from './adapters/extension.js';
|
import { DividerBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, CommandExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
CommandExtension,
|
|
||||||
type ExtensionType,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { commands } from './commands/index.js';
|
import { commands } from './commands/index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { EmbedFigmaBlockHtmlAdapterExtension } from './html.js';
|
import { EmbedFigmaBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { EmbedFigmaMarkdownAdapterExtension } from './markdown.js';
|
import { EmbedFigmaMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { EmbedFigmaBlockAdapterExtensions } from './adapters/extension.js';
|
import { EmbedFigmaBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { EmbedGithubBlockHtmlAdapterExtension } from './html.js';
|
import { EmbedGithubBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { EmbedGithubMarkdownAdapterExtension } from './markdown.js';
|
import { EmbedGithubMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { EmbedGithubBlockAdapterExtensions } from './adapters/extension.js';
|
import { EmbedGithubBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { BlockViewExtension, type ExtensionType } from '@blocksuite/block-std';
|
import { BlockViewExtension } from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
export const EmbedHtmlBlockSpec: ExtensionType[] = [
|
export const EmbedHtmlBlockSpec: ExtensionType[] = [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { EmbedLinkedDocHtmlAdapterExtension } from './html.js';
|
import { EmbedLinkedDocHtmlAdapterExtension } from './html.js';
|
||||||
import { EmbedLinkedDocMarkdownAdapterExtension } from './markdown.js';
|
import { EmbedLinkedDocMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { ReferenceInfo } from '@blocksuite/affine-model';
|
import type { ReferenceInfo } from '@blocksuite/affine-model';
|
||||||
import type { EditorHost, ExtensionType } from '@blocksuite/block-std';
|
import type { EditorHost } from '@blocksuite/block-std';
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
export interface EmbedLinkedDocBlockConfig {
|
export interface EmbedLinkedDocBlockConfig {
|
||||||
handleClick?: (
|
handleClick?: (
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, CommandExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
CommandExtension,
|
|
||||||
type ExtensionType,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { EmbedLinkedDocBlockAdapterExtensions } from './adapters/extension.js';
|
import { EmbedLinkedDocBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { EmbedLoomBlockHtmlAdapterExtension } from './html.js';
|
import { EmbedLoomBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { EmbedLoomMarkdownAdapterExtension } from './markdown.js';
|
import { EmbedLoomMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { EmbedLoomBlockAdapterExtensions } from './adapters/extension.js';
|
import { EmbedLoomBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { EmbedSyncedDocBlockHtmlAdapterExtension } from './html.js';
|
import { EmbedSyncedDocBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { EmbedSyncedDocMarkdownAdapterExtension } from './markdown.js';
|
import { EmbedSyncedDocMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { EmbedSyncedDocBlockAdapterExtensions } from './adapters/extension.js';
|
import { EmbedSyncedDocBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { EmbedYoutubeBlockHtmlAdapterExtension } from './html.js';
|
import { EmbedYoutubeBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { EmbedYoutubeMarkdownAdapterExtension } from './markdown.js';
|
import { EmbedYoutubeMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { EmbedYoutubeBlockAdapterExtensions } from './adapters/extension.js';
|
import { EmbedYoutubeBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { EmbedFigmaBlockSpec } from './embed-figma-block';
|
import { EmbedFigmaBlockSpec } from './embed-figma-block';
|
||||||
import { EmbedGithubBlockSpec } from './embed-github-block';
|
import { EmbedGithubBlockSpec } from './embed-github-block';
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { BlockViewExtension, type ExtensionType } from '@blocksuite/block-std';
|
import { BlockViewExtension } from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
export const FrameBlockSpec: ExtensionType[] = [
|
export const FrameBlockSpec: ExtensionType[] = [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { ImageBlockHtmlAdapterExtension } from './html.js';
|
import { ImageBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { ImageBlockMarkdownAdapterExtension } from './markdown.js';
|
import { ImageBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ import { ImageSelectionExtension } from '@blocksuite/affine-shared/selection';
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
WidgetViewMapExtension,
|
WidgetViewMapExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { ImageBlockAdapterExtensions } from './adapters/extension.js';
|
import { ImageBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { LatexBlockMarkdownAdapterExtension } from './markdown.js';
|
import { LatexBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
import { LatexBlockNotionHtmlAdapterExtension } from './notion-html.js';
|
import { LatexBlockNotionHtmlAdapterExtension } from './notion-html.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, CommandExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
CommandExtension,
|
|
||||||
type ExtensionType,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { LatexBlockAdapterExtensions } from './adapters/extension.js';
|
import { LatexBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { ListBlockHtmlAdapterExtension } from './html.js';
|
import { ListBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { ListBlockMarkdownAdapterExtension } from './markdown.js';
|
import { ListBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { ListBlockAdapterExtensions } from './adapters/extension.js';
|
import { ListBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
DocNoteBlockHtmlAdapterExtension,
|
DocNoteBlockHtmlAdapterExtension,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { ParagraphBlockHtmlAdapterExtension } from './html.js';
|
import { ParagraphBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { ParagraphBlockMarkdownAdapterExtension } from './markdown.js';
|
import { ParagraphBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { ParagraphBlockAdapterExtensions } from './adapters/extension.js';
|
import { ParagraphBlockAdapterExtensions } from './adapters/extension.js';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
WidgetViewMapExtension,
|
WidgetViewMapExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { commands } from './commands.js';
|
import { commands } from './commands.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { TextBuffer } from '@blocksuite/affine-shared/adapters';
|
import type { TextBuffer } from '@blocksuite/affine-shared/adapters';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { ElementModelMatcher } from '../../type.js';
|
import type { ElementModelMatcher } from '../../type.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
import { EditPropsStore } from '@blocksuite/affine-shared/services';
|
import { EditPropsStore } from '@blocksuite/affine-shared/services';
|
||||||
import {
|
import { type BlockStdScope, StdIdentifier } from '@blocksuite/block-std';
|
||||||
type BlockStdScope,
|
|
||||||
Extension,
|
|
||||||
StdIdentifier,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
|
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
|
||||||
import { type Container, createIdentifier } from '@blocksuite/global/di';
|
import { type Container, createIdentifier } from '@blocksuite/global/di';
|
||||||
import type { BlockModel } from '@blocksuite/store';
|
import { type BlockModel, Extension } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { SurfaceBlockModel } from '../surface-model';
|
import type { SurfaceBlockModel } from '../surface-model';
|
||||||
import { getLastPropsKey } from '../utils/get-last-props-key';
|
import { getLastPropsKey } from '../utils/get-last-props-key';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { FrameBlockModel } from '@blocksuite/affine-model';
|
import type { FrameBlockModel } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
import { Slot } from '@blocksuite/global/utils';
|
import { Slot } from '@blocksuite/global/utils';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
export const EdgelessLegacySlotIdentifier = createIdentifier<{
|
export const EdgelessLegacySlotIdentifier = createIdentifier<{
|
||||||
readonlyUpdated: Slot<boolean>;
|
readonlyUpdated: Slot<boolean>;
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Extension } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
type GfxController,
|
type GfxController,
|
||||||
GfxControllerIdentifier,
|
GfxControllerIdentifier,
|
||||||
} from '@blocksuite/block-std/gfx';
|
} from '@blocksuite/block-std/gfx';
|
||||||
import { type Container, createIdentifier } from '@blocksuite/global/di';
|
import { type Container, createIdentifier } from '@blocksuite/global/di';
|
||||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||||
|
import { Extension } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { RoughCanvas } from '../utils/rough/canvas.js';
|
import type { RoughCanvas } from '../utils/rough/canvas.js';
|
||||||
import type { CanvasRenderer } from './canvas-renderer.js';
|
import type { CanvasRenderer } from './canvas-renderer.js';
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import { HighlightSelectionExtension } from '@blocksuite/affine-shared/selection
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -8,13 +8,12 @@ import {
|
|||||||
import {
|
import {
|
||||||
type BlockStdScope,
|
type BlockStdScope,
|
||||||
type EditorHost,
|
type EditorHost,
|
||||||
type ExtensionType,
|
|
||||||
LifeCycleWatcher,
|
LifeCycleWatcher,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
import type { IVec } from '@blocksuite/global/utils';
|
import type { IVec } from '@blocksuite/global/utils';
|
||||||
import { Point } from '@blocksuite/global/utils';
|
import { Point } from '@blocksuite/global/utils';
|
||||||
import type { BlockModel } from '@blocksuite/store';
|
import type { BlockModel, ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { DragIndicator } from './index.js';
|
import type { DragIndicator } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { PeekViewService } from './type.js';
|
import type { PeekViewService } from './type.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { InlineManagerExtension } from './extension/index.js';
|
import { InlineManagerExtension } from './extension/index.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
import {
|
import { type BlockStdScope, StdIdentifier } from '@blocksuite/block-std';
|
||||||
type BlockStdScope,
|
|
||||||
type ExtensionType,
|
|
||||||
StdIdentifier,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
@@ -16,6 +12,7 @@ import {
|
|||||||
KEYBOARD_ALLOW_DEFAULT,
|
KEYBOARD_ALLOW_DEFAULT,
|
||||||
type KeyboardBindingContext,
|
type KeyboardBindingContext,
|
||||||
} from '@blocksuite/inline';
|
} from '@blocksuite/inline';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import type * as Y from 'yjs';
|
import type * as Y from 'yjs';
|
||||||
import { z, type ZodObject, type ZodTypeAny } from 'zod';
|
import { z, type ZodObject, type ZodTypeAny } from 'zod';
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
type ServiceProvider,
|
type ServiceProvider,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { InlineSpecs } from './type.js';
|
import type { InlineSpecs } from './type.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { InlineMarkdownMatch } from './type.js';
|
import type { InlineMarkdownMatch } from './type.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
import { Slot } from '@blocksuite/global/utils';
|
import { Slot } from '@blocksuite/global/utils';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { RefNodeSlots } from '../inline/index.js';
|
import type { RefNodeSlots } from '../inline/index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import type { BlockComponent, ExtensionType } from '@blocksuite/block-std';
|
import type { BlockComponent } from '@blocksuite/block-std';
|
||||||
import {
|
import {
|
||||||
KEYBOARD_ALLOW_DEFAULT,
|
KEYBOARD_ALLOW_DEFAULT,
|
||||||
KEYBOARD_PREVENT_DEFAULT,
|
KEYBOARD_PREVENT_DEFAULT,
|
||||||
} from '@blocksuite/inline';
|
} from '@blocksuite/inline';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { InlineMarkdownExtension } from '../../extension/markdown-matcher.js';
|
import { InlineMarkdownExtension } from '../../extension/markdown-matcher.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { BlockStdScope, ExtensionType } from '@blocksuite/block-std';
|
import type { BlockStdScope } from '@blocksuite/block-std';
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import type { TemplateResult } from 'lit';
|
import type { TemplateResult } from 'lit';
|
||||||
|
|
||||||
import type { AffineReference } from './reference-node.js';
|
import type { AffineReference } from './reference-node.js';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||||
import { sha } from '@blocksuite/global/utils';
|
import { sha } from '@blocksuite/global/utils';
|
||||||
import {
|
import {
|
||||||
@@ -6,6 +5,7 @@ import {
|
|||||||
BaseAdapter,
|
BaseAdapter,
|
||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
type DocSnapshot,
|
type DocSnapshot,
|
||||||
|
type ExtensionType,
|
||||||
type FromBlockSnapshotPayload,
|
type FromBlockSnapshotPayload,
|
||||||
type FromBlockSnapshotResult,
|
type FromBlockSnapshotResult,
|
||||||
type FromDocSnapshotPayload,
|
type FromDocSnapshotPayload,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { BlockAdapterMatcher } from '../types/adapter.js';
|
import type { BlockAdapterMatcher } from '../types/adapter.js';
|
||||||
import type { HtmlAST } from '../types/hast.js';
|
import type { HtmlAST } from '../types/hast.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
import type { DeltaInsert } from '@blocksuite/inline';
|
import type { DeltaInsert } from '@blocksuite/inline';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { AffineTextAttributes } from '../../types/index.js';
|
import type { AffineTextAttributes } from '../../types/index.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { DefaultTheme, NoteDisplayMode } from '@blocksuite/affine-model';
|
import { DefaultTheme, NoteDisplayMode } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import type { ServiceProvider } from '@blocksuite/global/di';
|
import type { ServiceProvider } from '@blocksuite/global/di';
|
||||||
import {
|
import {
|
||||||
type AssetsManager,
|
type AssetsManager,
|
||||||
@@ -8,6 +7,7 @@ import {
|
|||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
BlockSnapshotSchema,
|
BlockSnapshotSchema,
|
||||||
type DocSnapshot,
|
type DocSnapshot,
|
||||||
|
type ExtensionType,
|
||||||
type FromBlockSnapshotPayload,
|
type FromBlockSnapshotPayload,
|
||||||
type FromBlockSnapshotResult,
|
type FromBlockSnapshotResult,
|
||||||
type FromDocSnapshotPayload,
|
type FromDocSnapshotPayload,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||||
import { sha } from '@blocksuite/global/utils';
|
import { sha } from '@blocksuite/global/utils';
|
||||||
import {
|
import {
|
||||||
@@ -6,6 +5,7 @@ import {
|
|||||||
BaseAdapter,
|
BaseAdapter,
|
||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
type DocSnapshot,
|
type DocSnapshot,
|
||||||
|
type ExtensionType,
|
||||||
type FromBlockSnapshotPayload,
|
type FromBlockSnapshotPayload,
|
||||||
type FromBlockSnapshotResult,
|
type FromBlockSnapshotResult,
|
||||||
type FromDocSnapshotPayload,
|
type FromDocSnapshotPayload,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { BlockAdapterMatcher } from '../types/adapter.js';
|
import type { BlockAdapterMatcher } from '../types/adapter.js';
|
||||||
import type { MarkdownDeltaConverter } from './delta-converter.js';
|
import type { MarkdownDeltaConverter } from './delta-converter.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
import type { DeltaInsert } from '@blocksuite/inline/types';
|
import type { DeltaInsert } from '@blocksuite/inline/types';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import type { PhrasingContent } from 'mdast';
|
import type { PhrasingContent } from 'mdast';
|
||||||
|
|
||||||
import type { AffineTextAttributes } from '../../types/index.js';
|
import type { AffineTextAttributes } from '../../types/index.js';
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { DefaultTheme, NoteDisplayMode } from '@blocksuite/affine-model';
|
import { DefaultTheme, NoteDisplayMode } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import type { ServiceProvider } from '@blocksuite/global/di';
|
import type { ServiceProvider } from '@blocksuite/global/di';
|
||||||
import {
|
import {
|
||||||
type AssetsManager,
|
type AssetsManager,
|
||||||
@@ -8,6 +7,7 @@ import {
|
|||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
BlockSnapshotSchema,
|
BlockSnapshotSchema,
|
||||||
type DocSnapshot,
|
type DocSnapshot,
|
||||||
|
type ExtensionType,
|
||||||
type FromBlockSnapshotPayload,
|
type FromBlockSnapshotPayload,
|
||||||
type FromBlockSnapshotResult,
|
type FromBlockSnapshotResult,
|
||||||
type FromDocSnapshotPayload,
|
type FromDocSnapshotPayload,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { BlockAdapterMatcher } from '../types/adapter.js';
|
import type { BlockAdapterMatcher } from '../types/adapter.js';
|
||||||
import type { HtmlAST } from '../types/hast.js';
|
import type { HtmlAST } from '../types/hast.js';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
import { isEqual } from '@blocksuite/global/utils';
|
import { isEqual } from '@blocksuite/global/utils';
|
||||||
import type { DeltaInsert } from '@blocksuite/inline';
|
import type { DeltaInsert } from '@blocksuite/inline';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { AffineTextAttributes } from '../../types/index.js';
|
import type { AffineTextAttributes } from '../../types/index.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { DefaultTheme, NoteDisplayMode } from '@blocksuite/affine-model';
|
import { DefaultTheme, NoteDisplayMode } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import type { ServiceProvider } from '@blocksuite/global/di';
|
import type { ServiceProvider } from '@blocksuite/global/di';
|
||||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||||
import {
|
import {
|
||||||
@@ -8,6 +7,7 @@ import {
|
|||||||
BaseAdapter,
|
BaseAdapter,
|
||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
type DocSnapshot,
|
type DocSnapshot,
|
||||||
|
type ExtensionType,
|
||||||
type FromBlockSnapshotPayload,
|
type FromBlockSnapshotPayload,
|
||||||
type FromBlockSnapshotResult,
|
type FromBlockSnapshotResult,
|
||||||
type FromDocSnapshotPayload,
|
type FromDocSnapshotPayload,
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { DefaultTheme } from '@blocksuite/affine-model';
|
import { DefaultTheme } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||||
import type { DeltaInsert } from '@blocksuite/inline';
|
import type { DeltaInsert } from '@blocksuite/inline';
|
||||||
import {
|
import {
|
||||||
@@ -7,6 +6,7 @@ import {
|
|||||||
BaseAdapter,
|
BaseAdapter,
|
||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
type DocSnapshot,
|
type DocSnapshot,
|
||||||
|
type ExtensionType,
|
||||||
type FromBlockSnapshotResult,
|
type FromBlockSnapshotResult,
|
||||||
type FromDocSnapshotResult,
|
type FromDocSnapshotResult,
|
||||||
type FromSliceSnapshotResult,
|
type FromSliceSnapshotResult,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { BlockAdapterMatcher, TextBuffer } from '../types/adapter.js';
|
import type { BlockAdapterMatcher, TextBuffer } from '../types/adapter.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
createIdentifier,
|
createIdentifier,
|
||||||
type ServiceIdentifier,
|
type ServiceIdentifier,
|
||||||
} from '@blocksuite/global/di';
|
} from '@blocksuite/global/di';
|
||||||
import type { DeltaInsert } from '@blocksuite/inline';
|
import type { DeltaInsert } from '@blocksuite/inline';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { AffineTextAttributes } from '../../types/index.js';
|
import type { AffineTextAttributes } from '../../types/index.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { DefaultTheme, NoteDisplayMode } from '@blocksuite/affine-model';
|
import { DefaultTheme, NoteDisplayMode } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import type { ServiceProvider } from '@blocksuite/global/di';
|
import type { ServiceProvider } from '@blocksuite/global/di';
|
||||||
import {
|
import {
|
||||||
type AssetsManager,
|
type AssetsManager,
|
||||||
@@ -8,6 +7,7 @@ import {
|
|||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
BlockSnapshotSchema,
|
BlockSnapshotSchema,
|
||||||
type DocSnapshot,
|
type DocSnapshot,
|
||||||
|
type ExtensionType,
|
||||||
type FromBlockSnapshotPayload,
|
type FromBlockSnapshotPayload,
|
||||||
type FromBlockSnapshotResult,
|
type FromBlockSnapshotResult,
|
||||||
type FromDocSnapshotPayload,
|
type FromDocSnapshotPayload,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { DocMode } from '@blocksuite/affine-model';
|
import type { DocMode } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { Extension } from '@blocksuite/block-std';
|
|
||||||
import type { Container } from '@blocksuite/global/di';
|
import type { Container } from '@blocksuite/global/di';
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
import { type Disposable, noop, Slot } from '@blocksuite/global/utils';
|
import { type Disposable, noop, Slot } from '@blocksuite/global/utils';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
import { Extension } from '@blocksuite/store';
|
||||||
|
|
||||||
const DEFAULT_MODE: DocMode = 'page';
|
const DEFAULT_MODE: DocMode = 'page';
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
import {
|
import { type BlockStdScope, StdIdentifier } from '@blocksuite/block-std';
|
||||||
type BlockStdScope,
|
|
||||||
Extension,
|
|
||||||
StdIdentifier,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { type Container, createIdentifier } from '@blocksuite/global/di';
|
import { type Container, createIdentifier } from '@blocksuite/global/di';
|
||||||
import { Slice, type SliceSnapshot } from '@blocksuite/store';
|
import { Extension, Slice, type SliceSnapshot } from '@blocksuite/store';
|
||||||
|
|
||||||
export const DndApiExtensionIdentifier = createIdentifier<DNDAPIExtension>(
|
export const DndApiExtensionIdentifier = createIdentifier<DNDAPIExtension>(
|
||||||
'AffineDndApiIdentifier'
|
'AffineDndApiIdentifier'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
import type { DeepPartial } from '@blocksuite/global/utils';
|
import type { DeepPartial } from '@blocksuite/global/utils';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import type { Signal } from '@preact/signals-core';
|
import type { Signal } from '@preact/signals-core';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { EmbedCardStyle } from '@blocksuite/affine-model';
|
import type { EmbedCardStyle } from '@blocksuite/affine-model';
|
||||||
import { Extension } from '@blocksuite/block-std';
|
|
||||||
import type { Container } from '@blocksuite/global/di';
|
import type { Container } from '@blocksuite/global/di';
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import { Extension } from '@blocksuite/store';
|
||||||
|
|
||||||
export type EmbedOptions = {
|
export type EmbedOptions = {
|
||||||
flavour: string;
|
flavour: string;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { type ExtensionType, LifeCycleWatcher } from '@blocksuite/block-std';
|
import { LifeCycleWatcher } from '@blocksuite/block-std';
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
import { IS_FIREFOX } from '@blocksuite/global/env';
|
import { IS_FIREFOX } from '@blocksuite/global/env';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { FontConfig } from './config.js';
|
import type { FontConfig } from './config.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { ReferenceParams } from '@blocksuite/affine-model';
|
import type { ReferenceParams } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
export interface GenerateDocUrlService {
|
export interface GenerateDocUrlService {
|
||||||
generateDocUrl: (docId: string, params?: ReferenceParams) => string | void;
|
generateDocUrl: (docId: string, params?: ReferenceParams) => string | void;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import type { TemplateResult } from 'lit';
|
import type { TemplateResult } from 'lit';
|
||||||
|
|
||||||
export interface NotificationService {
|
export interface NotificationService {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
import { Slot } from '@blocksuite/global/utils';
|
import { Slot } from '@blocksuite/global/utils';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { Viewport } from '../types';
|
import type { Viewport } from '../types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { ReferenceParams } from '@blocksuite/affine-model';
|
import type { ReferenceParams } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
export interface ParseDocUrlService {
|
export interface ParseDocUrlService {
|
||||||
parseDocUrl: (
|
parseDocUrl: (
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { ReferenceParams } from '@blocksuite/affine-model';
|
import type { ReferenceParams } from '@blocksuite/affine-model';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { createIdentifier } from '@blocksuite/global/di';
|
import { createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
export interface QuickSearchService {
|
export interface QuickSearchService {
|
||||||
openQuickSearch: () => Promise<QuickSearchResult>;
|
openQuickSearch: () => Promise<QuickSearchResult>;
|
||||||
|
|||||||
@@ -4,13 +4,9 @@ import {
|
|||||||
DefaultTheme,
|
DefaultTheme,
|
||||||
resolveColor,
|
resolveColor,
|
||||||
} from '@blocksuite/affine-model';
|
} from '@blocksuite/affine-model';
|
||||||
import {
|
import { type BlockStdScope, StdIdentifier } from '@blocksuite/block-std';
|
||||||
type BlockStdScope,
|
|
||||||
Extension,
|
|
||||||
type ExtensionType,
|
|
||||||
StdIdentifier,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { type Container, createIdentifier } from '@blocksuite/global/di';
|
import { type Container, createIdentifier } from '@blocksuite/global/di';
|
||||||
|
import { Extension, type ExtensionType } from '@blocksuite/store';
|
||||||
import { type Signal, signal } from '@preact/signals-core';
|
import { type Signal, signal } from '@preact/signals-core';
|
||||||
import {
|
import {
|
||||||
type AffineCssVariables,
|
type AffineCssVariables,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
export class SpecBuilder {
|
export class SpecBuilder {
|
||||||
private _value: ExtensionType[];
|
private _value: ExtensionType[];
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import { assertExists } from '@blocksuite/global/utils';
|
import { assertExists } from '@blocksuite/global/utils';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { SpecBuilder } from './spec-builder.js';
|
import { SpecBuilder } from './spec-builder.js';
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
NotionTextAdapterFactoryExtension,
|
NotionTextAdapterFactoryExtension,
|
||||||
PlainTextAdapterFactoryExtension,
|
PlainTextAdapterFactoryExtension,
|
||||||
} from '@blocksuite/affine-shared/adapters';
|
} from '@blocksuite/affine-shared/adapters';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { htmlInlineToDeltaMatchers } from './html/delta-converter/html-inline.js';
|
import { htmlInlineToDeltaMatchers } from './html/delta-converter/html-inline.js';
|
||||||
import { inlineDeltaToHtmlAdapterMatchers } from './html/delta-converter/inline-delta.js';
|
import { inlineDeltaToHtmlAdapterMatchers } from './html/delta-converter/inline-delta.js';
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import {
|
|||||||
AdapterFactoryIdentifier,
|
AdapterFactoryIdentifier,
|
||||||
MarkdownAdapter,
|
MarkdownAdapter,
|
||||||
} from '@blocksuite/affine-shared/adapters';
|
} from '@blocksuite/affine-shared/adapters';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
|
||||||
import type { ServiceProvider } from '@blocksuite/global/di';
|
import type { ServiceProvider } from '@blocksuite/global/di';
|
||||||
import type { DeltaInsert } from '@blocksuite/inline';
|
import type { DeltaInsert } from '@blocksuite/inline';
|
||||||
import {
|
import {
|
||||||
@@ -13,6 +12,7 @@ import {
|
|||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
BlockSnapshotSchema,
|
BlockSnapshotSchema,
|
||||||
type DocSnapshot,
|
type DocSnapshot,
|
||||||
|
type ExtensionType,
|
||||||
type FromBlockSnapshotPayload,
|
type FromBlockSnapshotPayload,
|
||||||
type FromBlockSnapshotResult,
|
type FromBlockSnapshotResult,
|
||||||
type FromDocSnapshotPayload,
|
type FromDocSnapshotPayload,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { ImageBlockNotionHtmlAdapterExtension } from '@blocksuite/affine-block-i
|
|||||||
import { LatexBlockNotionHtmlAdapterExtension } from '@blocksuite/affine-block-latex';
|
import { LatexBlockNotionHtmlAdapterExtension } from '@blocksuite/affine-block-latex';
|
||||||
import { ListBlockNotionHtmlAdapterExtension } from '@blocksuite/affine-block-list';
|
import { ListBlockNotionHtmlAdapterExtension } from '@blocksuite/affine-block-list';
|
||||||
import { ParagraphBlockNotionHtmlAdapterExtension } from '@blocksuite/affine-block-paragraph';
|
import { ParagraphBlockNotionHtmlAdapterExtension } from '@blocksuite/affine-block-paragraph';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { RootBlockNotionHtmlAdapterExtension } from '../../../root-block/adapters/notion-html.js';
|
import { RootBlockNotionHtmlAdapterExtension } from '../../../root-block/adapters/notion-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
type HtmlAST,
|
type HtmlAST,
|
||||||
NotionHtmlASTToDeltaExtension,
|
NotionHtmlASTToDeltaExtension,
|
||||||
} from '@blocksuite/affine-shared/adapters';
|
} from '@blocksuite/affine-shared/adapters';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { collapseWhiteSpace } from 'collapse-white-space';
|
import { collapseWhiteSpace } from 'collapse-white-space';
|
||||||
import type { Element, Text } from 'hast';
|
import type { Element, Text } from 'hast';
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
import { LatexBlockPlainTextAdapterExtension } from '@blocksuite/affine-block-latex';
|
import { LatexBlockPlainTextAdapterExtension } from '@blocksuite/affine-block-latex';
|
||||||
import { ListBlockPlainTextAdapterExtension } from '@blocksuite/affine-block-list';
|
import { ListBlockPlainTextAdapterExtension } from '@blocksuite/affine-block-list';
|
||||||
import { ParagraphBlockPlainTextAdapterExtension } from '@blocksuite/affine-block-paragraph';
|
import { ParagraphBlockPlainTextAdapterExtension } from '@blocksuite/affine-block-paragraph';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
export const defaultBlockPlainTextAdapterMatchers: ExtensionType[] = [
|
export const defaultBlockPlainTextAdapterMatchers: ExtensionType[] = [
|
||||||
ParagraphBlockPlainTextAdapterExtension,
|
ParagraphBlockPlainTextAdapterExtension,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
InlineDeltaToPlainTextAdapterExtension,
|
InlineDeltaToPlainTextAdapterExtension,
|
||||||
type TextBuffer,
|
type TextBuffer,
|
||||||
} from '@blocksuite/affine-shared/adapters';
|
} from '@blocksuite/affine-shared/adapters';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
export const referenceDeltaMarkdownAdapterMatch =
|
export const referenceDeltaMarkdownAdapterMatch =
|
||||||
InlineDeltaToPlainTextAdapterExtension({
|
InlineDeltaToPlainTextAdapterExtension({
|
||||||
|
|||||||
@@ -18,14 +18,13 @@ import {
|
|||||||
import {
|
import {
|
||||||
type BlockStdScope,
|
type BlockStdScope,
|
||||||
type EditorHost,
|
type EditorHost,
|
||||||
type ExtensionType,
|
|
||||||
StdIdentifier,
|
StdIdentifier,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
import type { GfxBlockElementModel } from '@blocksuite/block-std/gfx';
|
import type { GfxBlockElementModel } from '@blocksuite/block-std/gfx';
|
||||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||||
import type { IBound } from '@blocksuite/global/utils';
|
import type { IBound } from '@blocksuite/global/utils';
|
||||||
import { Bound } from '@blocksuite/global/utils';
|
import { Bound } from '@blocksuite/global/utils';
|
||||||
import type { Blocks } from '@blocksuite/store';
|
import type { Blocks, ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getBlockComponentByModel,
|
getBlockComponentByModel,
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import {
|
|||||||
EditPropsStore,
|
EditPropsStore,
|
||||||
FontLoaderService,
|
FontLoaderService,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { AdapterFactoryExtensions } from '../_common/adapters/extension.js';
|
import { AdapterFactoryExtensions } from '../_common/adapters/extension.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ConnectionOverlay } from '@blocksuite/affine-block-surface';
|
import { ConnectionOverlay } from '@blocksuite/affine-block-surface';
|
||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { EdgelessRootBlockSpec } from '../../root-block/edgeless/edgeless-root-spec.js';
|
import { EdgelessRootBlockSpec } from '../../root-block/edgeless/edgeless-root-spec.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { PageRootBlockSpec } from '../../root-block/page/page-root-spec.js';
|
import { PageRootBlockSpec } from '../../root-block/page/page-root-spec.js';
|
||||||
import { PageFirstPartyBlockSpecs } from '../common.js';
|
import { PageFirstPartyBlockSpecs } from '../common.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { PreviewEdgelessRootBlockSpec } from '../../root-block/edgeless/edgeless-root-spec.js';
|
import { PreviewEdgelessRootBlockSpec } from '../../root-block/edgeless/edgeless-root-spec.js';
|
||||||
import { PreviewPageRootBlockSpec } from '../../root-block/page/page-root-spec.js';
|
import { PreviewPageRootBlockSpec } from '../../root-block/page/page-root-spec.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ExtensionType } from '@blocksuite/block-std';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { RootBlockHtmlAdapterExtension } from './html.js';
|
import { RootBlockHtmlAdapterExtension } from './html.js';
|
||||||
import { RootBlockMarkdownAdapterExtension } from './markdown.js';
|
import { RootBlockMarkdownAdapterExtension } from './markdown.js';
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ import {
|
|||||||
BlockServiceWatcher,
|
BlockServiceWatcher,
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
WidgetViewMapExtension,
|
WidgetViewMapExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
import { ToolController } from '@blocksuite/block-std/gfx';
|
import { ToolController } from '@blocksuite/block-std/gfx';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal, unsafeStatic } from 'lit/static-html.js';
|
import { literal, unsafeStatic } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { ExportManagerExtension } from '../../_common/export-manager/export-manager.js';
|
import { ExportManagerExtension } from '../../_common/export-manager/export-manager.js';
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ import { AFFINE_SCROLL_ANCHORING_WIDGET } from '@blocksuite/affine-widget-scroll
|
|||||||
import {
|
import {
|
||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
CommandExtension,
|
CommandExtension,
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
WidgetViewMapExtension,
|
WidgetViewMapExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/block-std';
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal, unsafeStatic } from 'lit/static-html.js';
|
import { literal, unsafeStatic } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { ExportManagerExtension } from '../../_common/export-manager/export-manager.js';
|
import { ExportManagerExtension } from '../../_common/export-manager/export-manager.js';
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
||||||
BlockViewExtension,
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
type ExtensionType,
|
|
||||||
FlavourExtension,
|
|
||||||
} from '@blocksuite/block-std';
|
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { PageRootService } from '../page/page-root-service.js';
|
import { PageRootService } from '../page/page-root-service.js';
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { SignalWatcher, WithDisposable } from '@blocksuite/global/utils';
|
import { SignalWatcher, WithDisposable } from '@blocksuite/global/utils';
|
||||||
import type { Blocks } from '@blocksuite/store';
|
import type { Blocks, ExtensionType } from '@blocksuite/store';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { customElement, property } from 'lit/decorators.js';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
|
|
||||||
import type { ExtensionType } from '../extension/index.js';
|
|
||||||
import { BlockStdScope } from '../scope/index.js';
|
import { BlockStdScope } from '../scope/index.js';
|
||||||
import { ShadowlessElement } from '../view/index.js';
|
import { ShadowlessElement } from '../view/index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import './test-block.js';
|
import './test-block.js';
|
||||||
|
|
||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
import { BlockViewExtension, type ExtensionType } from '../extension/index.js';
|
import { BlockViewExtension } from '../extension/index.js';
|
||||||
import type { HeadingBlockModel } from './test-schema.js';
|
import type { HeadingBlockModel } from './test-schema.js';
|
||||||
|
|
||||||
export const testSpecs: ExtensionType[] = [
|
export const testSpecs: ExtensionType[] = [
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { BlockViewIdentifier } from '../identifier.js';
|
import { BlockViewIdentifier } from '../identifier.js';
|
||||||
import type { BlockViewType } from '../spec/type.js';
|
import type { BlockViewType } from '../spec/type.js';
|
||||||
import type { ExtensionType } from './extension.js';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a block view extension.
|
* Create a block view extension.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import { CommandIdentifier } from '../identifier.js';
|
import { CommandIdentifier } from '../identifier.js';
|
||||||
import type { BlockCommands } from '../spec/index.js';
|
import type { BlockCommands } from '../spec/index.js';
|
||||||
import type { ExtensionType } from './extension.js';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a command extension.
|
* Create a command extension.
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user