mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
@@ -1,12 +1,4 @@
|
||||
import { ChatHistoryOrder } from '@affine/graphql';
|
||||
import {
|
||||
type BlockComponent,
|
||||
type BlockSelection,
|
||||
type BlockStdScope,
|
||||
type EditorHost,
|
||||
type TextSelection,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import { EdgelessCRUDIdentifier } from '@blocksuite/affine/blocks/surface';
|
||||
import {
|
||||
Bound,
|
||||
@@ -31,6 +23,14 @@ import {
|
||||
NotificationProvider,
|
||||
TelemetryProvider,
|
||||
} from '@blocksuite/affine/shared/services';
|
||||
import {
|
||||
type BlockComponent,
|
||||
type BlockSelection,
|
||||
type BlockStdScope,
|
||||
type EditorHost,
|
||||
type TextSelection,
|
||||
} from '@blocksuite/affine/std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import type { Store } from '@blocksuite/affine/store';
|
||||
import {
|
||||
BlockIcon,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { Chain, InitCommandCtx } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
CodeBlockModel,
|
||||
ImageBlockModel,
|
||||
@@ -7,6 +6,7 @@ import {
|
||||
} from '@blocksuite/affine/model';
|
||||
import { getSelectedModelsCommand } from '@blocksuite/affine/shared/commands';
|
||||
import { matchModels } from '@blocksuite/affine/shared/utils';
|
||||
import type { Chain, InitCommandCtx } from '@blocksuite/affine/std';
|
||||
import {
|
||||
CommentIcon,
|
||||
DoneIcon,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { MindmapElementModel } from '@blocksuite/affine/model';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
|
||||
import { createAIScrollableTextRenderer } from '../components/ai-scrollable-text-renderer';
|
||||
import {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { type EditorHost, TextSelection } from '@blocksuite/affine/block-std';
|
||||
import { AIStarIconWithAnimation } from '@blocksuite/affine/components/icons';
|
||||
import { createLitPortal } from '@blocksuite/affine/components/portal';
|
||||
import { type EditorHost, TextSelection } from '@blocksuite/affine/std';
|
||||
import { flip, offset } from '@floating-ui/dom';
|
||||
import { html, type TemplateResult } from 'lit';
|
||||
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
GfxControllerIdentifier,
|
||||
type GfxModel,
|
||||
} from '@blocksuite/affine/block-std/gfx';
|
||||
import { splitElements } from '@blocksuite/affine/blocks/root';
|
||||
import {
|
||||
CodeBlockModel,
|
||||
@@ -15,6 +10,11 @@ import {
|
||||
TextElementModel,
|
||||
} from '@blocksuite/affine/model';
|
||||
import { matchModels } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import {
|
||||
GfxControllerIdentifier,
|
||||
type GfxModel,
|
||||
} from '@blocksuite/affine/std/gfx';
|
||||
import { type BlockModel, Slice } from '@blocksuite/affine/store';
|
||||
import type { TemplateResult } from 'lit';
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import {
|
||||
EDGELESS_TEXT_BLOCK_MIN_HEIGHT,
|
||||
EDGELESS_TEXT_BLOCK_MIN_WIDTH,
|
||||
@@ -19,6 +17,8 @@ import {
|
||||
NoteDisplayMode,
|
||||
} from '@blocksuite/affine/model';
|
||||
import { TelemetryProvider } from '@blocksuite/affine/shared/services';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import {
|
||||
AFFINE_TOOLBAR_WIDGET,
|
||||
type AffineToolbarWidget,
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
import { type EditorHost, TextSelection } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
GfxBlockElementModel,
|
||||
type GfxModel,
|
||||
LayerManager,
|
||||
} from '@blocksuite/affine/block-std/gfx';
|
||||
import { uploadBlobForImage } from '@blocksuite/affine/blocks/image';
|
||||
import {
|
||||
fitContent,
|
||||
@@ -16,6 +10,12 @@ import type {
|
||||
ShapeElementModel,
|
||||
} from '@blocksuite/affine/model';
|
||||
import { TelemetryProvider } from '@blocksuite/affine/shared/services';
|
||||
import { type EditorHost, TextSelection } from '@blocksuite/affine/std';
|
||||
import {
|
||||
GfxBlockElementModel,
|
||||
type GfxModel,
|
||||
LayerManager,
|
||||
} from '@blocksuite/affine/std/gfx';
|
||||
import { type BlockProps, Text } from '@blocksuite/affine/store';
|
||||
import * as Y from 'yjs';
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ import type {
|
||||
getCopilotHistoriesQuery,
|
||||
RequestOptions,
|
||||
} from '@affine/graphql';
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { GfxModel } from '@blocksuite/affine/block-std/gfx';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import type { GfxModel } from '@blocksuite/affine/std/gfx';
|
||||
import type { BlockModel } from '@blocksuite/affine/store';
|
||||
|
||||
import type { DocContext, FileContext } from '../chat-panel/chat-context';
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { AINetworkSearchService } from '@affine/core/modules/ai-button/services/network-search';
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import { Bound } from '@blocksuite/affine/global/gfx';
|
||||
import {
|
||||
ImageBlockModel,
|
||||
@@ -11,6 +9,8 @@ import {
|
||||
isInsideEdgelessEditor,
|
||||
matchModels,
|
||||
} from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import {
|
||||
ChatWithAiIcon,
|
||||
DeleteIcon,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BlockComponent } from '@blocksuite/affine/block-std';
|
||||
import { Peekable } from '@blocksuite/affine/components/peek';
|
||||
import { BlockComponent } from '@blocksuite/affine/std';
|
||||
import { computed } from '@preact/signals-core';
|
||||
import { html } from 'lit';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { toGfxBlockComponent } from '@blocksuite/affine/block-std';
|
||||
import { Bound } from '@blocksuite/affine/global/gfx';
|
||||
import { toGfxBlockComponent } from '@blocksuite/affine/std';
|
||||
import { html } from 'lit';
|
||||
import { styleMap } from 'lit/directives/style-map.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BlockViewExtension } from '@blocksuite/affine/block-std';
|
||||
import { BlockViewExtension } from '@blocksuite/affine/std';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
import { literal } from 'lit/static-html.js';
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import {
|
||||
BlockComponent,
|
||||
BlockViewExtension,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import type { TranscriptionBlockModel } from '@blocksuite/affine/model';
|
||||
import { BlockComponent, BlockViewExtension } from '@blocksuite/affine/std';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
import { css, type PropertyValues } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { TextRendererOptions } from '@affine/core/blocksuite/ai/components/text-renderer';
|
||||
import type { AffineAIPanelState } from '@affine/core/blocksuite/ai/widgets/ai-panel/type';
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { classMap } from 'lit/directives/class-map.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
type GfxCommonBlockProps,
|
||||
GfxCompatible,
|
||||
} from '@blocksuite/affine/block-std/gfx';
|
||||
} from '@blocksuite/affine/std/gfx';
|
||||
import {
|
||||
BlockModel,
|
||||
BlockSchemaExtension,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { unsafeCSSVar, unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import {
|
||||
ArrowDownBigIcon as ArrowDownIcon,
|
||||
ArrowUpBigIcon as ArrowUpIcon,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import './action-wrapper';
|
||||
import '../content/images';
|
||||
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { html, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { styleMap } from 'lit/directives/style-map.js';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import './action-wrapper';
|
||||
import '../content/images';
|
||||
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { html, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { styleMap } from 'lit/directives/style-map.js';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import './action-wrapper';
|
||||
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { html } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { styleMap } from 'lit/directives/style-map.js';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import './action-wrapper';
|
||||
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { html } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { styleMap } from 'lit/directives/style-map.js';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import './action-wrapper';
|
||||
import '../../messages/slides-renderer';
|
||||
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { html, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { styleMap } from 'lit/directives/style-map.js';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import './action-wrapper';
|
||||
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { unsafeCSSVar } from '@blocksuite/affine/shared/theme';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { styleMap } from 'lit/directives/style-map.js';
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import type { TagMeta } from '@affine/core/components/page-list';
|
||||
import type { Collection } from '@affine/env/filter';
|
||||
import {
|
||||
type EditorHost,
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { createLitPortal } from '@blocksuite/affine/components/portal';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { type EditorHost, ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { MoreVerticalIcon, PlusIcon } from '@blocksuite/icons/lit';
|
||||
import { flip, offset } from '@floating-ui/dom';
|
||||
import { computed, type Signal, signal } from '@preact/signals-core';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { stopPropagation } from '@affine/core/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { openFileOrFiles } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import {
|
||||
BroomIcon,
|
||||
CloseIcon,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import {
|
||||
DocModeProvider,
|
||||
FeatureFlagService,
|
||||
} from '@blocksuite/affine/shared/services';
|
||||
import { type SpecBuilder } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import type { BaseSelection } from '@blocksuite/affine/store';
|
||||
import { ArrowDownBigIcon as ArrowDownIcon } from '@blocksuite/icons/lit';
|
||||
import { css, html, nothing, type PropertyValues } from 'lit';
|
||||
|
||||
@@ -3,11 +3,11 @@ import type {
|
||||
CollectionMeta,
|
||||
TagMeta,
|
||||
} from '@affine/core/components/page-list';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { scrollbarStyle } from '@blocksuite/affine/shared/styles';
|
||||
import { unsafeCSSVar, unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { openFileOrFiles } from '@blocksuite/affine/shared/utils';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import {
|
||||
CollectionsIcon,
|
||||
MoreHorizontalIcon,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { scrollbarStyle } from '@blocksuite/affine/shared/styles';
|
||||
import { unsafeCSSVar, unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { PlusIcon } from '@blocksuite/icons/lit';
|
||||
import { type Signal, signal } from '@preact/signals-core';
|
||||
import { css, html } from 'lit';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { CloseIcon, PlusIcon } from '@blocksuite/icons/lit';
|
||||
import { css, html, type TemplateResult } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Collection } from '@affine/env/filter';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { CollectionsIcon } from '@blocksuite/icons/lit';
|
||||
import { html } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import {
|
||||
type EditorHost,
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { type EditorHost, ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { Signal } from '@preact/signals-core';
|
||||
import { html, type PropertyValues } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { getAttachmentFileIcon } from '@blocksuite/affine/components/icons';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { html } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { TagMeta } from '@affine/core/components/page-list';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { css, html } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { AiIcon } from '@blocksuite/icons/lit';
|
||||
import { css, html } from 'lit';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { unsafeCSSVar } from '@blocksuite/affine/shared/theme';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { css, html, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { repeat } from 'lit/directives/repeat.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { unsafeCSSVar, unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { css, html, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { SpecBuilder } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { html } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ import type {
|
||||
CopilotContextFile,
|
||||
CopilotDocType,
|
||||
} from '@affine/graphql';
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { NotificationProvider } from '@blocksuite/affine/shared/services';
|
||||
import type { SpecBuilder } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import type { Store } from '@blocksuite/affine/store';
|
||||
import { HelpIcon, InformationIcon } from '@blocksuite/icons/lit';
|
||||
import { type Signal, signal } from '@preact/signals-core';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import '../content/assistant-avatar';
|
||||
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { html } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import '../content/assistant-avatar';
|
||||
import '../content/rich-text';
|
||||
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { isInsidePageEditor } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { css, html, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import '../content/images';
|
||||
import '../content/pure-text';
|
||||
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import { css, html, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { createLitPortal } from '@blocksuite/affine/components/portal';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import {
|
||||
EditorHost,
|
||||
PropTypes,
|
||||
requiredProperties,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { createLitPortal } from '@blocksuite/affine/components/portal';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
} from '@blocksuite/affine/std';
|
||||
import { flip, offset } from '@floating-ui/dom';
|
||||
import { baseTheme } from '@toeverything/theme';
|
||||
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { ArrowRightIcon, EnterIcon } from '@blocksuite/affine/components/icons';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import {
|
||||
EditorHost,
|
||||
PropTypes,
|
||||
requiredProperties,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { ArrowRightIcon, EnterIcon } from '@blocksuite/affine/components/icons';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
} from '@blocksuite/affine/std';
|
||||
import { css, html, LitElement, nothing } from 'lit';
|
||||
import { property, query } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { EnterIcon } from '@blocksuite/affine/components/icons';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { stopPropagation } from '@blocksuite/affine/shared/utils';
|
||||
import {
|
||||
EditorHost,
|
||||
PropTypes,
|
||||
requiredProperties,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { EnterIcon } from '@blocksuite/affine/components/icons';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { stopPropagation } from '@blocksuite/affine/shared/utils';
|
||||
} from '@blocksuite/affine/std';
|
||||
import { baseTheme } from '@toeverything/theme';
|
||||
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import type {
|
||||
Chain,
|
||||
EditorHost,
|
||||
InitCommandCtx,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import type { DocMode } from '@blocksuite/affine/model';
|
||||
import type { Chain, EditorHost, InitCommandCtx } from '@blocksuite/affine/std';
|
||||
import type { TemplateResult } from 'lit';
|
||||
|
||||
export interface AIItemGroupConfig {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import {
|
||||
type EditorHost,
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { scrollbarStyle } from '@blocksuite/affine/shared/styles';
|
||||
import { type EditorHost, ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import type { PropertyValues } from 'lit';
|
||||
import { css, html } from 'lit';
|
||||
import { property, query } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import './ask-ai-panel';
|
||||
|
||||
import { type EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { HoverController } from '@blocksuite/affine/components/hover';
|
||||
import { createLitPortal } from '@blocksuite/affine/components/portal';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { type EditorHost } from '@blocksuite/affine/std';
|
||||
import { flip, offset } from '@floating-ui/dom';
|
||||
import { css, html, LitElement, nothing } from 'lit';
|
||||
import { property, query } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { DocModeProvider } from '@blocksuite/affine/shared/services';
|
||||
import { scrollbarStyle } from '@blocksuite/affine/shared/styles';
|
||||
import { type EditorHost } from '@blocksuite/affine/std';
|
||||
import { cssVar } from '@toeverything/theme';
|
||||
import { css, html, LitElement, unsafeCSS } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { createLitPortal } from '@blocksuite/affine/components/portal';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import {
|
||||
BlockSelection,
|
||||
type EditorHost,
|
||||
TextSelection,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { createLitPortal } from '@blocksuite/affine/components/portal';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
} from '@blocksuite/affine/std';
|
||||
import { flip, offset } from '@floating-ui/dom';
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { ImageSelection } from '@blocksuite/affine/shared/selection';
|
||||
import { NotificationProvider } from '@blocksuite/affine/shared/services';
|
||||
import type {
|
||||
BlockSelection,
|
||||
EditorHost,
|
||||
TextSelection,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import type { ImageSelection } from '@blocksuite/affine/shared/selection';
|
||||
import { NotificationProvider } from '@blocksuite/affine/shared/services';
|
||||
} from '@blocksuite/affine/std';
|
||||
import { css, html, LitElement, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { classMap } from 'lit/directives/class-map.js';
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import type {
|
||||
BlockSelection,
|
||||
EditorHost,
|
||||
TextSelection,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { Tooltip } from '@blocksuite/affine/components/toolbar';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { noop } from '@blocksuite/affine/global/utils';
|
||||
import { NotificationProvider } from '@blocksuite/affine/shared/services';
|
||||
import { unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { createButtonPopper } from '@blocksuite/affine/shared/utils';
|
||||
import type {
|
||||
BlockSelection,
|
||||
EditorHost,
|
||||
TextSelection,
|
||||
} from '@blocksuite/affine/std';
|
||||
import { CopyIcon, MoreHorizontalIcon, ResetIcon } from '@blocksuite/icons/lit';
|
||||
import { css, html, LitElement, nothing, type PropertyValues } from 'lit';
|
||||
import { property, query, state } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
import { createReactComponentFromLit } from '@affine/component';
|
||||
import { defaultBlockMarkdownAdapterMatchers } from '@blocksuite/affine/adapters';
|
||||
import {
|
||||
BlockStdScope,
|
||||
BlockViewIdentifier,
|
||||
type EditorHost,
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
defaultImageProxyMiddleware,
|
||||
ImageProxyService,
|
||||
@@ -19,6 +13,12 @@ import {
|
||||
} from '@blocksuite/affine/inlines/preset';
|
||||
import { codeBlockWrapMiddleware } from '@blocksuite/affine/shared/adapters';
|
||||
import { LinkPreviewerService } from '@blocksuite/affine/shared/services';
|
||||
import {
|
||||
BlockStdScope,
|
||||
BlockViewIdentifier,
|
||||
type EditorHost,
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/std';
|
||||
import type {
|
||||
ExtensionType,
|
||||
Query,
|
||||
|
||||
@@ -8,8 +8,8 @@ const buttonOptions: AskAIButtonOptions = {
|
||||
panelWidth: 240,
|
||||
};
|
||||
|
||||
import { BlockSelection } from '@blocksuite/affine/block-std';
|
||||
import type { AffineCodeToolbarWidget } from '@blocksuite/affine/blocks/code';
|
||||
import { BlockSelection } from '@blocksuite/affine/std';
|
||||
|
||||
import { buildAICodeItemGroups } from '../../_common/config';
|
||||
import type { AskAIButtonOptions } from '../../components/ask-ai-button';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TextSelection } from '@blocksuite/affine/block-std';
|
||||
import { TextSelection } from '@blocksuite/affine/std';
|
||||
|
||||
import { handleInlineAskAIAction } from '../../actions/doc-handler';
|
||||
import { AIProvider } from '../../provider';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { LifeCycleWatcher } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
AffineCodeToolbarWidget,
|
||||
CodeBlockSpec,
|
||||
} from '@blocksuite/affine/blocks/code';
|
||||
import { LifeCycleWatcher } from '@blocksuite/affine/std';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
|
||||
import { setupCodeToolbarAIEntry } from '../entries/code-toolbar/setup-code-toolbar';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { EdgelessRootBlockSpec } from '@blocksuite/affine/blocks/root';
|
||||
import { ToolbarModuleExtension } from '@blocksuite/affine/shared/services';
|
||||
import {
|
||||
BlockFlavourIdentifier,
|
||||
LifeCycleWatcher,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { EdgelessRootBlockSpec } from '@blocksuite/affine/blocks/root';
|
||||
import { ToolbarModuleExtension } from '@blocksuite/affine/shared/services';
|
||||
} from '@blocksuite/affine/std';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
import type { FrameworkProvider } from '@toeverything/infra';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { LifeCycleWatcher } from '@blocksuite/affine/block-std';
|
||||
import { ImageBlockSpec } from '@blocksuite/affine/blocks/image';
|
||||
import { AffineImageToolbarWidget } from '@blocksuite/affine/blocks/root';
|
||||
import { LifeCycleWatcher } from '@blocksuite/affine/std';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
|
||||
import { setupImageToolbarAIEntry } from '../entries/image-toolbar/setup-image-toolbar';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { PageRootBlockSpec } from '@blocksuite/affine/blocks/root';
|
||||
import { ToolbarModuleExtension } from '@blocksuite/affine/shared/services';
|
||||
import {
|
||||
BlockFlavourIdentifier,
|
||||
LifeCycleWatcher,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { PageRootBlockSpec } from '@blocksuite/affine/blocks/root';
|
||||
import { ToolbarModuleExtension } from '@blocksuite/affine/shared/services';
|
||||
} from '@blocksuite/affine/std';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
import type { FrameworkProvider } from '@toeverything/infra';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { scrollbarStyle } from '@blocksuite/affine/shared/styles';
|
||||
import { unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { type EditorHost } from '@blocksuite/affine/std';
|
||||
import { InformationIcon, ToggleDownIcon } from '@blocksuite/icons/lit';
|
||||
import { signal } from '@preact/signals-core';
|
||||
import { baseTheme } from '@toeverything/theme';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { MindmapStyle } from '@blocksuite/affine/model';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { html, nothing } from 'lit';
|
||||
|
||||
import { markdownToMindmap } from '../mini-mindmap';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { WorkspaceImpl } from '@affine/core/modules/workspace/impls/workspace';
|
||||
import { BlockStdScope, type EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { SpecProvider } from '@blocksuite/affine/shared/utils';
|
||||
import { BlockStdScope, type EditorHost } from '@blocksuite/affine/std';
|
||||
import type { Store } from '@blocksuite/affine/store';
|
||||
import { css, html, LitElement, nothing } from 'lit';
|
||||
import { property, query } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { css, html, LitElement, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { WorkspaceImpl } from '@affine/core/modules/workspace/impls/workspace.js';
|
||||
import { BlockStdScope, type EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { SurfaceBlockModel } from '@blocksuite/affine/blocks/surface';
|
||||
import {
|
||||
MindmapStyleFour,
|
||||
@@ -14,6 +13,7 @@ import {
|
||||
MindmapStyle,
|
||||
} from '@blocksuite/affine/model';
|
||||
import { MarkdownAdapter } from '@blocksuite/affine/shared/adapters';
|
||||
import { BlockStdScope, type EditorHost } from '@blocksuite/affine/std';
|
||||
import { Schema, type Store } from '@blocksuite/affine/store';
|
||||
import { css, html, LitElement, nothing } from 'lit';
|
||||
import { property, query } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BlockComponent } from '@blocksuite/affine/block-std';
|
||||
import type { RootBlockModel } from '@blocksuite/affine/model';
|
||||
import { BlockComponent } from '@blocksuite/affine/std';
|
||||
import { html } from 'lit';
|
||||
|
||||
export class MindmapRootBlock extends BlockComponent<RootBlockModel> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BlockService } from '@blocksuite/affine/block-std';
|
||||
import { RootBlockSchema } from '@blocksuite/affine/model';
|
||||
import { BlockService } from '@blocksuite/affine/std';
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
export class MindmapService extends BlockService {
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import {
|
||||
BlockViewExtension,
|
||||
FlavourExtension,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { SurfaceBlockSchema } from '@blocksuite/affine/blocks/surface';
|
||||
import { MindMapView } from '@blocksuite/affine/gfx/mindmap';
|
||||
import { RootBlockSchema } from '@blocksuite/affine/model';
|
||||
@@ -9,6 +5,7 @@ import {
|
||||
DocModeService,
|
||||
ThemeService,
|
||||
} from '@blocksuite/affine/shared/services';
|
||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/affine/std';
|
||||
import type { BlockSchema, ExtensionType } from '@blocksuite/affine/store';
|
||||
import { literal } from 'lit/static-html.js';
|
||||
import type { z } from 'zod';
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/* oxlint-disable @typescript-eslint/no-non-null-assertion */
|
||||
import { BlockComponent } from '@blocksuite/affine/block-std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import {
|
||||
CanvasRenderer,
|
||||
elementRenderers,
|
||||
@@ -10,6 +8,8 @@ import {
|
||||
import type { Bound } from '@blocksuite/affine/global/gfx';
|
||||
import type { Color, ShapeElementModel } from '@blocksuite/affine/model';
|
||||
import { ThemeProvider } from '@blocksuite/affine/shared/services';
|
||||
import { BlockComponent } from '@blocksuite/affine/std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import { html } from 'lit';
|
||||
import { query } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BlockService } from '@blocksuite/affine/block-std';
|
||||
import { SurfaceBlockSchema } from '@blocksuite/affine/blocks/surface';
|
||||
import { BlockService } from '@blocksuite/affine/std';
|
||||
|
||||
export class MindmapSurfaceBlockService extends BlockService {
|
||||
static override readonly flavour = SurfaceBlockSchema.model.flavour;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { SignalWatcher } from '@blocksuite/affine/global/lit';
|
||||
import { unsafeCSSVarV2 } from '@blocksuite/affine/shared/theme';
|
||||
import { openFileOrFiles } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { BroomIcon, ImageIcon, PublishIcon } from '@blocksuite/icons/lit';
|
||||
import { css, html, LitElement, nothing } from 'lit';
|
||||
import { property, query, state } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
CanvasElementType,
|
||||
EdgelessCRUDIdentifier,
|
||||
@@ -11,6 +10,7 @@ import {
|
||||
TelemetryProvider,
|
||||
} from '@blocksuite/affine/shared/services';
|
||||
import type { SpecBuilder } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { InformationIcon } from '@blocksuite/icons/lit';
|
||||
import { html, LitElement, nothing } from 'lit';
|
||||
import { property, query, state } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { BlockStdScope } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
EdgelessCRUDIdentifier,
|
||||
getSurfaceBlock,
|
||||
} from '@blocksuite/affine/blocks/surface';
|
||||
import { Bound } from '@blocksuite/affine/global/gfx';
|
||||
import type { BlockStdScope } from '@blocksuite/affine/std';
|
||||
|
||||
import {
|
||||
type AIChatBlockModel,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { captureException } from '@sentry/react';
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { mixpanel, track } from '@affine/track';
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { GfxPrimitiveElementModel } from '@blocksuite/affine/block-std/gfx';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import type { GfxPrimitiveElementModel } from '@blocksuite/affine/std/gfx';
|
||||
import type { BlockModel } from '@blocksuite/affine/store';
|
||||
import { lowerCase, omit } from 'lodash-es';
|
||||
import type { Subject } from 'rxjs';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import type { BlockSnapshot } from '@blocksuite/affine/store';
|
||||
|
||||
import { markdownToSnapshot } from '../../utils';
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
/* oxlint-disable @typescript-eslint/no-non-null-assertion */
|
||||
import type { PointerEventState } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
BaseTool,
|
||||
type GfxModel,
|
||||
MouseButton,
|
||||
} from '@blocksuite/affine/block-std/gfx';
|
||||
import { IS_MAC } from '@blocksuite/affine/global/env';
|
||||
import {
|
||||
Bound,
|
||||
getCommonBoundWithRotation,
|
||||
} from '@blocksuite/affine/global/gfx';
|
||||
import type { PointerEventState } from '@blocksuite/affine/std';
|
||||
import {
|
||||
BaseTool,
|
||||
type GfxModel,
|
||||
MouseButton,
|
||||
} from '@blocksuite/affine/std/gfx';
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
import {
|
||||
@@ -172,7 +172,7 @@ export class CopilotTool extends BaseTool {
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@blocksuite/block-std/gfx' {
|
||||
declare module '@blocksuite/std/gfx' {
|
||||
interface GfxToolsMap {
|
||||
copilot: CopilotTool;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
|
||||
import {
|
||||
AFFINE_AI_PANEL_WIDGET,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { GfxModel } from '@blocksuite/affine/block-std/gfx';
|
||||
import type { SerializedXYWH } from '@blocksuite/affine/global/gfx';
|
||||
import type { MindmapStyle } from '@blocksuite/affine/model';
|
||||
import type { GfxModel } from '@blocksuite/affine/std/gfx';
|
||||
|
||||
import type { TemplateImage } from '../slides/template';
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import type { BlockComponent, EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { GfxModel } from '@blocksuite/affine/block-std/gfx';
|
||||
import { SurfaceBlockModel } from '@blocksuite/affine/blocks/surface';
|
||||
import {
|
||||
MindmapElementModel,
|
||||
@@ -8,6 +6,8 @@ import {
|
||||
type ShapeElementModel,
|
||||
} from '@blocksuite/affine/model';
|
||||
import { matchModels } from '@blocksuite/affine/shared/utils';
|
||||
import type { BlockComponent, EditorHost } from '@blocksuite/affine/std';
|
||||
import type { GfxModel } from '@blocksuite/affine/std/gfx';
|
||||
|
||||
import {
|
||||
AFFINE_EDGELESS_COPILOT_WIDGET,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { defaultImageProxyMiddleware } from '@blocksuite/affine/blocks/image';
|
||||
import { deleteTextCommand } from '@blocksuite/affine/inlines/preset';
|
||||
import { isInsideEdgelessEditor } from '@blocksuite/affine/shared/utils';
|
||||
import {
|
||||
type BlockComponent,
|
||||
BlockSelection,
|
||||
type EditorHost,
|
||||
SurfaceSelection,
|
||||
type TextSelection,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { defaultImageProxyMiddleware } from '@blocksuite/affine/blocks/image';
|
||||
import { deleteTextCommand } from '@blocksuite/affine/inlines/preset';
|
||||
import { isInsideEdgelessEditor } from '@blocksuite/affine/shared/utils';
|
||||
} from '@blocksuite/affine/std';
|
||||
import { type BlockModel, Slice } from '@blocksuite/affine/store';
|
||||
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type { ServiceProvider } from '@blocksuite/affine/global/di';
|
||||
import {
|
||||
DatabaseBlockModel,
|
||||
@@ -20,6 +19,7 @@ import {
|
||||
isInsideEdgelessEditor,
|
||||
matchModels,
|
||||
} from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import type { BlockModel, Store } from '@blocksuite/affine/store';
|
||||
import { Slice, toDraftModel } from '@blocksuite/affine/store';
|
||||
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
import { type EditorHost, TextSelection } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
GfxControllerIdentifier,
|
||||
type GfxModel,
|
||||
} from '@blocksuite/affine/block-std/gfx';
|
||||
import {
|
||||
EdgelessClipboardController,
|
||||
isCanvasElement,
|
||||
@@ -25,6 +20,11 @@ import {
|
||||
getTextSelectionCommand,
|
||||
} from '@blocksuite/affine/shared/commands';
|
||||
import { matchModels } from '@blocksuite/affine/shared/utils';
|
||||
import { type EditorHost, TextSelection } from '@blocksuite/affine/std';
|
||||
import {
|
||||
GfxControllerIdentifier,
|
||||
type GfxModel,
|
||||
} from '@blocksuite/affine/std/gfx';
|
||||
import {
|
||||
type BlockModel,
|
||||
type DraftModel,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { GfxController, LayerManager } from '@blocksuite/affine/block-std/gfx';
|
||||
import {
|
||||
TemplateJob,
|
||||
TemplateMiddlewares,
|
||||
} from '@blocksuite/affine/blocks/root';
|
||||
import { getSurfaceBlock } from '@blocksuite/affine/blocks/surface';
|
||||
import { Bound, getCommonBound } from '@blocksuite/affine/global/gfx';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { GfxController, LayerManager } from '@blocksuite/affine/std/gfx';
|
||||
|
||||
export function createTemplateJob(host: EditorHost) {
|
||||
const surface = getSurfaceBlock(host.doc);
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
import {
|
||||
WidgetComponent,
|
||||
WidgetViewExtension,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import {
|
||||
AFFINE_VIEWPORT_OVERLAY_WIDGET,
|
||||
type AffineViewportOverlayWidget,
|
||||
@@ -18,6 +13,8 @@ import {
|
||||
getPageRootByElement,
|
||||
stopPropagation,
|
||||
} from '@blocksuite/affine/shared/utils';
|
||||
import { WidgetComponent, WidgetViewExtension } from '@blocksuite/affine/std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import type { BaseSelection } from '@blocksuite/affine/store';
|
||||
import {
|
||||
autoPlacement,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
AIDoneIcon,
|
||||
CopyIcon,
|
||||
@@ -6,6 +5,7 @@ import {
|
||||
} from '@blocksuite/affine/components/icons';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { NotificationProvider } from '@blocksuite/affine/shared/services';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { baseTheme } from '@toeverything/theme';
|
||||
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
||||
import { property, state } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { baseTheme } from '@toeverything/theme';
|
||||
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { baseTheme } from '@toeverything/theme';
|
||||
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { isInsidePageEditor } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
|
||||
import type { AIItemGroupConfig } from '../../components/ai-item/types';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { scrollbarStyle } from '@blocksuite/affine/shared/styles';
|
||||
import { on, stopPropagation } from '@blocksuite/affine/shared/utils';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import { css, html, LitElement, nothing } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
GfxControllerIdentifier,
|
||||
isGfxGroupCompatibleModel,
|
||||
} from '@blocksuite/affine/block-std/gfx';
|
||||
import { sortEdgelessElements } from '@blocksuite/affine/blocks/root';
|
||||
import { AIStarIcon } from '@blocksuite/affine/components/icons';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import {
|
||||
GfxControllerIdentifier,
|
||||
isGfxGroupCompatibleModel,
|
||||
} from '@blocksuite/affine/std/gfx';
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
import {
|
||||
WidgetComponent,
|
||||
WidgetViewExtension,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import { EdgelessLegacySlotIdentifier } from '@blocksuite/affine/blocks/surface';
|
||||
import {
|
||||
Bound,
|
||||
@@ -13,6 +8,8 @@ import {
|
||||
MOUSE_BUTTON,
|
||||
requestConnectedFrame,
|
||||
} from '@blocksuite/affine/shared/utils';
|
||||
import { WidgetComponent, WidgetViewExtension } from '@blocksuite/affine/std';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import {
|
||||
autoUpdate,
|
||||
computePosition,
|
||||
|
||||
@@ -3,12 +3,12 @@ import type {
|
||||
PageEditor,
|
||||
} from '@affine/core/blocksuite/editors';
|
||||
import { FeatureFlagService } from '@affine/core/modules/feature-flag';
|
||||
import type { BlockStdScope, EditorHost } from '@blocksuite/affine/block-std';
|
||||
import { appendParagraphCommand } from '@blocksuite/affine/blocks/paragraph';
|
||||
import type { DocTitle } from '@blocksuite/affine/fragments/doc-title';
|
||||
import type { DocMode, RootBlockModel } from '@blocksuite/affine/model';
|
||||
import { focusBlockEnd } from '@blocksuite/affine/shared/commands';
|
||||
import { getLastNoteBlock } from '@blocksuite/affine/shared/utils';
|
||||
import type { BlockStdScope, EditorHost } from '@blocksuite/affine/std';
|
||||
import { type Store } from '@blocksuite/affine/store';
|
||||
import { useLiveData, useService } from '@toeverything/infra';
|
||||
import clsx from 'clsx';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { BlockStdScope, ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import { EdgelessEditorBlockSpecs } from '@blocksuite/affine/extensions';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { ThemeProvider } from '@blocksuite/affine/shared/services';
|
||||
import { BlockStdScope, ShadowlessElement } from '@blocksuite/affine/std';
|
||||
import type { Store } from '@blocksuite/affine/store';
|
||||
import { css, html, nothing, type TemplateResult } from 'lit';
|
||||
import { property, state } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import {
|
||||
BlockStdScope,
|
||||
EditorHost,
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { PageEditorBlockSpecs } from '@blocksuite/affine/extensions';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
|
||||
import { noop } from '@blocksuite/affine/global/utils';
|
||||
import { ThemeProvider } from '@blocksuite/affine/shared/services';
|
||||
import {
|
||||
BlockStdScope,
|
||||
EditorHost,
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/std';
|
||||
import type { Store } from '@blocksuite/affine/store';
|
||||
import { css, html, nothing } from 'lit';
|
||||
import { property, state } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { DocDisplayMetaService } from '@affine/core/modules/doc-display-meta';
|
||||
import { LifeCycleWatcher, StdIdentifier } from '@blocksuite/affine/block-std';
|
||||
import type { Container } from '@blocksuite/affine/global/di';
|
||||
import type {
|
||||
DocDisplayMetaExtension,
|
||||
@@ -11,6 +10,7 @@ import {
|
||||
referenceToNode,
|
||||
type Signal,
|
||||
} from '@blocksuite/affine/shared/utils';
|
||||
import { LifeCycleWatcher, StdIdentifier } from '@blocksuite/affine/std';
|
||||
import { LinkedPageIcon, PageIcon } from '@blocksuite/icons/lit';
|
||||
import { type FrameworkProvider } from '@toeverything/infra';
|
||||
import type { TemplateResult } from 'lit';
|
||||
|
||||
@@ -3,16 +3,16 @@ import { isMindmapChild, isMindMapRoot } from '@affine/core/blocksuite/ai';
|
||||
import { EditorService } from '@affine/core/modules/editor';
|
||||
import { apis } from '@affine/electron-api';
|
||||
import { I18n } from '@affine/i18n';
|
||||
import type { BlockStdScope } from '@blocksuite/affine/block-std';
|
||||
import type { MenuContext } from '@blocksuite/affine/components/toolbar';
|
||||
import { Bound, getCommonBound } from '@blocksuite/affine/global/gfx';
|
||||
import type { BlockStdScope } from '@blocksuite/affine/std';
|
||||
import {
|
||||
type GfxBlockElementModel,
|
||||
GfxControllerIdentifier,
|
||||
type GfxModel,
|
||||
GfxPrimitiveElementModel,
|
||||
isGfxGroupCompatibleModel,
|
||||
} from '@blocksuite/affine/block-std/gfx';
|
||||
import type { MenuContext } from '@blocksuite/affine/components/toolbar';
|
||||
import { Bound, getCommonBound } from '@blocksuite/affine/global/gfx';
|
||||
} from '@blocksuite/affine/std/gfx';
|
||||
import { CopyAsImgaeIcon } from '@blocksuite/icons/lit';
|
||||
import type { FrameworkProvider } from '@toeverything/infra';
|
||||
|
||||
|
||||
@@ -9,15 +9,6 @@ import type { EditorSettingExt } from '@affine/core/modules/editor-setting/entit
|
||||
import { copyLinkToBlockStdScopeClipboard } from '@affine/core/utils/clipboard';
|
||||
import { I18n, i18nTime } from '@affine/i18n';
|
||||
import { track } from '@affine/track';
|
||||
import {
|
||||
BlockFlavourIdentifier,
|
||||
BlockSelection,
|
||||
TextSelection,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
GfxBlockElementModel,
|
||||
GfxPrimitiveElementModel,
|
||||
} from '@blocksuite/affine/block-std/gfx';
|
||||
import { BookmarkBlockComponent } from '@blocksuite/affine/blocks/bookmark';
|
||||
import {
|
||||
EmbedFigmaBlockComponent,
|
||||
@@ -70,6 +61,15 @@ import {
|
||||
UserProvider,
|
||||
} from '@blocksuite/affine/shared/services';
|
||||
import { matchModels } from '@blocksuite/affine/shared/utils';
|
||||
import {
|
||||
BlockFlavourIdentifier,
|
||||
BlockSelection,
|
||||
TextSelection,
|
||||
} from '@blocksuite/affine/std';
|
||||
import {
|
||||
GfxBlockElementModel,
|
||||
GfxPrimitiveElementModel,
|
||||
} from '@blocksuite/affine/std/gfx';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
import {
|
||||
ArrowDownSmallIcon,
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
import { VirtualKeyboardProvider } from '@affine/core/mobile/modules/virtual-keyboard';
|
||||
import {
|
||||
type BlockStdScope,
|
||||
LifeCycleWatcher,
|
||||
LifeCycleWatcherIdentifier,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
CodeBlockConfigExtension,
|
||||
codeToolbarWidget,
|
||||
@@ -21,6 +16,11 @@ import {
|
||||
VirtualKeyboardProvider as BSVirtualKeyboardProvider,
|
||||
} from '@blocksuite/affine/shared/services';
|
||||
import type { SpecBuilder } from '@blocksuite/affine/shared/utils';
|
||||
import {
|
||||
type BlockStdScope,
|
||||
LifeCycleWatcher,
|
||||
LifeCycleWatcherIdentifier,
|
||||
} from '@blocksuite/affine/std';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
import { SlashMenuExtension } from '@blocksuite/affine/widgets/slash-menu';
|
||||
import { toolbarWidget } from '@blocksuite/affine/widgets/toolbar';
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { PeekViewService } from '@affine/core/modules/peek-view/services/peek-view';
|
||||
import { AppThemeService } from '@affine/core/modules/theme';
|
||||
import {
|
||||
type BlockStdScope,
|
||||
LifeCycleWatcher,
|
||||
StdIdentifier,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import type { Container } from '@blocksuite/affine/global/di';
|
||||
import { ColorScheme } from '@blocksuite/affine/model';
|
||||
import {
|
||||
@@ -16,6 +11,11 @@ import {
|
||||
type Signal,
|
||||
SpecProvider,
|
||||
} from '@blocksuite/affine/shared/utils';
|
||||
import {
|
||||
type BlockStdScope,
|
||||
LifeCycleWatcher,
|
||||
StdIdentifier,
|
||||
} from '@blocksuite/affine/std';
|
||||
import type { ExtensionType } from '@blocksuite/affine/store';
|
||||
import type { FrameworkProvider } from '@toeverything/infra';
|
||||
import type { Observable } from 'rxjs';
|
||||
|
||||
@@ -8,9 +8,9 @@ import { WorkspaceService } from '@affine/core/modules/workspace';
|
||||
import { extractEmojiIcon } from '@affine/core/utils';
|
||||
import { useI18n } from '@affine/i18n';
|
||||
import { track } from '@affine/track';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import { Bound } from '@blocksuite/affine/global/gfx';
|
||||
import { type NoteBlockModel } from '@blocksuite/affine/model';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import {
|
||||
InformationIcon,
|
||||
LinkedPageIcon,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import type { ElementOrFactory } from '@affine/component';
|
||||
import { JournalService } from '@affine/core/modules/journal';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/block-std/gfx';
|
||||
import { NoteConfigExtension } from '@blocksuite/affine/blocks/note';
|
||||
import { EDGELESS_BLOCK_CHILD_PADDING } from '@blocksuite/affine/blocks/root';
|
||||
import { Bound, Vec } from '@blocksuite/affine/global/gfx';
|
||||
@@ -8,6 +7,7 @@ import {
|
||||
DocModeProvider,
|
||||
EditPropsStore,
|
||||
} from '@blocksuite/affine/shared/services';
|
||||
import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx';
|
||||
import type { FrameworkProvider } from '@toeverything/infra';
|
||||
import { html, type TemplateResult } from 'lit';
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { DocService, DocsService } from '@affine/core/modules/doc';
|
||||
import { AppThemeService } from '@affine/core/modules/theme';
|
||||
import { LifeCycleWatcher, StdIdentifier } from '@blocksuite/affine/block-std';
|
||||
import type { Container } from '@blocksuite/affine/global/di';
|
||||
import { ColorScheme } from '@blocksuite/affine/model';
|
||||
import {
|
||||
@@ -11,6 +10,7 @@ import {
|
||||
createSignalFromObservable,
|
||||
type Signal,
|
||||
} from '@blocksuite/affine/shared/utils';
|
||||
import { LifeCycleWatcher, StdIdentifier } from '@blocksuite/affine/std';
|
||||
import { type FrameworkProvider } from '@toeverything/infra';
|
||||
import type { Observable } from 'rxjs';
|
||||
import { combineLatest, map } from 'rxjs';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user