mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-04 19:11:57 +08:00
@@ -58,9 +58,9 @@
|
|||||||
"@blocksuite/affine-widget-scroll-anchoring": "workspace:*",
|
"@blocksuite/affine-widget-scroll-anchoring": "workspace:*",
|
||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/affine-widget-toolbar": "workspace:*",
|
"@blocksuite/affine-widget-toolbar": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/data-view": "workspace:*",
|
"@blocksuite/data-view": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@blocksuite/sync": "workspace:*",
|
"@blocksuite/sync": "workspace:*",
|
||||||
"rxjs": "^7.8.1"
|
"rxjs": "^7.8.1"
|
||||||
@@ -68,10 +68,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./effects": "./src/effects.ts",
|
"./effects": "./src/effects.ts",
|
||||||
"./block-std": "./src/block-std/index.ts",
|
"./std": "./src/std/index.ts",
|
||||||
"./block-std/gfx": "./src/block-std/gfx.ts",
|
"./std/gfx": "./src/std/gfx.ts",
|
||||||
"./block-std/inline": "./src/block-std/inline.ts",
|
"./std/inline": "./src/std/inline.ts",
|
||||||
"./block-std/effects": "./src/block-std/effects.ts",
|
"./std/effects": "./src/std/effects.ts",
|
||||||
"./global": "./src/global/index.ts",
|
"./global": "./src/global/index.ts",
|
||||||
"./global/utils": "./src/global/utils.ts",
|
"./global/utils": "./src/global/utils.ts",
|
||||||
"./global/env": "./src/global/env.ts",
|
"./global/env": "./src/global/env.ts",
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
export * from '@blocksuite/block-std/effects';
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export * from '@blocksuite/block-std/gfx';
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export * from '@blocksuite/block-std';
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export * from '@blocksuite/block-std/inline';
|
|
||||||
@@ -59,8 +59,8 @@ import { effects as widgetRemoteSelectionEffects } from '@blocksuite/affine-widg
|
|||||||
import { effects as widgetScrollAnchoringEffects } from '@blocksuite/affine-widget-scroll-anchoring/effects';
|
import { effects as widgetScrollAnchoringEffects } from '@blocksuite/affine-widget-scroll-anchoring/effects';
|
||||||
import { effects as widgetSlashMenuEffects } from '@blocksuite/affine-widget-slash-menu/effects';
|
import { effects as widgetSlashMenuEffects } from '@blocksuite/affine-widget-slash-menu/effects';
|
||||||
import { effects as widgetToolbarEffects } from '@blocksuite/affine-widget-toolbar/effects';
|
import { effects as widgetToolbarEffects } from '@blocksuite/affine-widget-toolbar/effects';
|
||||||
import { effects as stdEffects } from '@blocksuite/block-std/effects';
|
|
||||||
import { effects as dataViewEffects } from '@blocksuite/data-view/effects';
|
import { effects as dataViewEffects } from '@blocksuite/data-view/effects';
|
||||||
|
import { effects as stdEffects } from '@blocksuite/std/effects';
|
||||||
|
|
||||||
import { registerSpecs } from './extensions/register.js';
|
import { registerSpecs } from './extensions/register.js';
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ import {
|
|||||||
CursorSelectionExtension,
|
CursorSelectionExtension,
|
||||||
SurfaceSelectionExtension,
|
SurfaceSelectionExtension,
|
||||||
TextSelectionExtension,
|
TextSelectionExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
export * from '@blocksuite/std/effects';
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export * from '@blocksuite/std/gfx';
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export * from '@blocksuite/std';
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export * from '@blocksuite/std/inline';
|
||||||
@@ -55,9 +55,9 @@
|
|||||||
{ "path": "../widgets/widget-scroll-anchoring" },
|
{ "path": "../widgets/widget-scroll-anchoring" },
|
||||||
{ "path": "../widgets/widget-slash-menu" },
|
{ "path": "../widgets/widget-slash-menu" },
|
||||||
{ "path": "../widgets/widget-toolbar" },
|
{ "path": "../widgets/widget-toolbar" },
|
||||||
{ "path": "../../framework/block-std" },
|
|
||||||
{ "path": "../data-view" },
|
{ "path": "../data-view" },
|
||||||
{ "path": "../../framework/global" },
|
{ "path": "../../framework/global" },
|
||||||
|
{ "path": "../../framework/std" },
|
||||||
{ "path": "../../framework/store" },
|
{ "path": "../../framework/store" },
|
||||||
{ "path": "../../framework/sync" }
|
{ "path": "../../framework/sync" }
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
"@blocksuite/affine-model": "workspace:*",
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.8",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import {
|
|||||||
ThemeProvider,
|
ThemeProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { humanFileSize } from '@blocksuite/affine-shared/utils';
|
import { humanFileSize } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockSelection } from '@blocksuite/block-std';
|
import { BlockSelection } from '@blocksuite/std';
|
||||||
import { Slice } from '@blocksuite/store';
|
import { Slice } from '@blocksuite/store';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { property } from 'lit/decorators.js';
|
import { property } from 'lit/decorators.js';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
EMBED_CARD_HEIGHT,
|
EMBED_CARD_HEIGHT,
|
||||||
EMBED_CARD_WIDTH,
|
EMBED_CARD_WIDTH,
|
||||||
} from '@blocksuite/affine-shared/consts';
|
} from '@blocksuite/affine-shared/consts';
|
||||||
import { toGfxBlockComponent } from '@blocksuite/block-std';
|
import { toGfxBlockComponent } from '@blocksuite/std';
|
||||||
import { styleMap } from 'lit/directives/style-map.js';
|
import { styleMap } from 'lit/directives/style-map.js';
|
||||||
|
|
||||||
import { AttachmentBlockComponent } from './attachment-block.js';
|
import { AttachmentBlockComponent } from './attachment-block.js';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
isInsideEdgelessEditor,
|
isInsideEdgelessEditor,
|
||||||
matchModels,
|
matchModels,
|
||||||
} from '@blocksuite/affine-shared/utils';
|
} from '@blocksuite/affine-shared/utils';
|
||||||
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
|
import { GfxControllerIdentifier } from '@blocksuite/std/gfx';
|
||||||
|
|
||||||
import { addAttachments, addSiblingAttachmentBlocks } from './utils.js';
|
import { addAttachments, addSiblingAttachmentBlocks } from './utils.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { AttachmentBlockSchema } from '@blocksuite/affine-model';
|
import { AttachmentBlockSchema } from '@blocksuite/affine-model';
|
||||||
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
||||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { ConfirmIcon } from '@blocksuite/affine-components/icons';
|
import { ConfirmIcon } from '@blocksuite/affine-components/icons';
|
||||||
import { toast } from '@blocksuite/affine-components/toast';
|
import { toast } from '@blocksuite/affine-components/toast';
|
||||||
import type { AttachmentBlockModel } from '@blocksuite/affine-model';
|
import type { AttachmentBlockModel } from '@blocksuite/affine-model';
|
||||||
import type { EditorHost } from '@blocksuite/block-std';
|
import type { EditorHost } from '@blocksuite/std';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { createRef, ref } from 'lit/directives/ref.js';
|
import { createRef, ref } from 'lit/directives/ref.js';
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import {
|
|||||||
type ToolbarModuleConfig,
|
type ToolbarModuleConfig,
|
||||||
ToolbarModuleExtension,
|
ToolbarModuleExtension,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { BlockFlavourIdentifier } from '@blocksuite/block-std';
|
|
||||||
import { Bound } from '@blocksuite/global/gfx';
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
import {
|
import {
|
||||||
CaptionIcon,
|
CaptionIcon,
|
||||||
@@ -26,6 +25,7 @@ import {
|
|||||||
EditIcon,
|
EditIcon,
|
||||||
ResetIcon,
|
ResetIcon,
|
||||||
} from '@blocksuite/icons/lit';
|
} from '@blocksuite/icons/lit';
|
||||||
|
import { BlockFlavourIdentifier } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { flip, offset } from '@floating-ui/dom';
|
import { flip, offset } from '@floating-ui/dom';
|
||||||
import { computed } from '@preact/signals-core';
|
import { computed } from '@preact/signals-core';
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import {
|
|||||||
transformModel,
|
transformModel,
|
||||||
withTempBlobData,
|
withTempBlobData,
|
||||||
} from '@blocksuite/affine-shared/utils';
|
} from '@blocksuite/affine-shared/utils';
|
||||||
import { type BlockStdScope, StdIdentifier } 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 { Bound } from '@blocksuite/global/gfx';
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
|
import { type BlockStdScope, StdIdentifier } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { Extension } from '@blocksuite/store';
|
import { Extension } from '@blocksuite/store';
|
||||||
import type { TemplateResult } from 'lit';
|
import type { TemplateResult } from 'lit';
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ import {
|
|||||||
TelemetryProvider,
|
TelemetryProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { humanFileSize } from '@blocksuite/affine-shared/utils';
|
import { humanFileSize } from '@blocksuite/affine-shared/utils';
|
||||||
import type { BlockStdScope, EditorHost } from '@blocksuite/block-std';
|
|
||||||
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
|
|
||||||
import { Bound, type IVec, Point, Vec } from '@blocksuite/global/gfx';
|
import { Bound, type IVec, Point, Vec } from '@blocksuite/global/gfx';
|
||||||
|
import type { BlockStdScope, EditorHost } from '@blocksuite/std';
|
||||||
|
import { GfxControllerIdentifier } from '@blocksuite/std/gfx';
|
||||||
import type { BlockModel } from '@blocksuite/store';
|
import type { BlockModel } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { AttachmentBlockComponent } from './attachment-block.js';
|
import type { AttachmentBlockComponent } from './attachment-block.js';
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
{ "path": "../../model" },
|
{ "path": "../../model" },
|
||||||
{ "path": "../../shared" },
|
{ "path": "../../shared" },
|
||||||
{ "path": "../../widgets/widget-slash-menu" },
|
{ "path": "../../widgets/widget-slash-menu" },
|
||||||
{ "path": "../../../framework/block-std" },
|
|
||||||
{ "path": "../../../framework/global" },
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/std" },
|
||||||
{ "path": "../../../framework/store" }
|
{ "path": "../../../framework/store" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
"@blocksuite/affine-model": "workspace:*",
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.8",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {
|
|||||||
EMBED_CARD_HEIGHT,
|
EMBED_CARD_HEIGHT,
|
||||||
EMBED_CARD_WIDTH,
|
EMBED_CARD_WIDTH,
|
||||||
} from '@blocksuite/affine-shared/consts';
|
} from '@blocksuite/affine-shared/consts';
|
||||||
import { toGfxBlockComponent } from '@blocksuite/block-std';
|
import { toGfxBlockComponent } from '@blocksuite/std';
|
||||||
import { type StyleInfo, styleMap } from 'lit/directives/style-map.js';
|
import { type StyleInfo, styleMap } from 'lit/directives/style-map.js';
|
||||||
|
|
||||||
import { BookmarkBlockComponent } from './bookmark-block.js';
|
import { BookmarkBlockComponent } from './bookmark-block.js';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { BookmarkBlockSchema } from '@blocksuite/affine-model';
|
import { BookmarkBlockSchema } from '@blocksuite/affine-model';
|
||||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import '@blocksuite/affine-block-embed/effects';
|
|||||||
import { insertEmbedCard } from '@blocksuite/affine-block-embed';
|
import { insertEmbedCard } from '@blocksuite/affine-block-embed';
|
||||||
import type { EmbedCardStyle } from '@blocksuite/affine-model';
|
import type { EmbedCardStyle } from '@blocksuite/affine-model';
|
||||||
import { EmbedOptionProvider } from '@blocksuite/affine-shared/services';
|
import { EmbedOptionProvider } from '@blocksuite/affine-shared/services';
|
||||||
import type { Command } from '@blocksuite/block-std';
|
import type { Command } from '@blocksuite/std';
|
||||||
|
|
||||||
export const insertBookmarkCommand: Command<
|
export const insertBookmarkCommand: Command<
|
||||||
{ url: string },
|
{ url: string },
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
FeatureFlagService,
|
FeatureFlagService,
|
||||||
QuickSearchProvider,
|
QuickSearchProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import type { Command } from '@blocksuite/block-std';
|
import type { Command } from '@blocksuite/std';
|
||||||
|
|
||||||
import { insertBookmarkCommand } from './insert-bookmark';
|
import { insertBookmarkCommand } from './insert-bookmark';
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import { getEmbedCardIcons } from '@blocksuite/affine-block-embed';
|
|||||||
import { WebIcon16 } from '@blocksuite/affine-components/icons';
|
import { WebIcon16 } from '@blocksuite/affine-components/icons';
|
||||||
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
||||||
import { getHostName } from '@blocksuite/affine-shared/utils';
|
import { getHostName } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockSelection, ShadowlessElement } from '@blocksuite/block-std';
|
|
||||||
import { WithDisposable } from '@blocksuite/global/lit';
|
import { WithDisposable } from '@blocksuite/global/lit';
|
||||||
import { OpenInNewIcon } from '@blocksuite/icons/lit';
|
import { OpenInNewIcon } from '@blocksuite/icons/lit';
|
||||||
|
import { BlockSelection, ShadowlessElement } from '@blocksuite/std';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { property } from 'lit/decorators.js';
|
import { property } from 'lit/decorators.js';
|
||||||
import { classMap } from 'lit/directives/class-map.js';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import {
|
|||||||
ToolbarModuleExtension,
|
ToolbarModuleExtension,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { getBlockProps } from '@blocksuite/affine-shared/utils';
|
import { getBlockProps } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockFlavourIdentifier, BlockSelection } from '@blocksuite/block-std';
|
|
||||||
import { Bound } from '@blocksuite/global/gfx';
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
import {
|
import {
|
||||||
CaptionIcon,
|
CaptionIcon,
|
||||||
@@ -35,6 +34,7 @@ import {
|
|||||||
DuplicateIcon,
|
DuplicateIcon,
|
||||||
ResetIcon,
|
ResetIcon,
|
||||||
} from '@blocksuite/icons/lit';
|
} from '@blocksuite/icons/lit';
|
||||||
|
import { BlockFlavourIdentifier, BlockSelection } from '@blocksuite/std';
|
||||||
import { type ExtensionType, Slice, Text } from '@blocksuite/store';
|
import { type ExtensionType, Slice, Text } from '@blocksuite/store';
|
||||||
import { computed, signal } from '@preact/signals-core';
|
import { computed, signal } from '@preact/signals-core';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
{ "path": "../../model" },
|
{ "path": "../../model" },
|
||||||
{ "path": "../../shared" },
|
{ "path": "../../shared" },
|
||||||
{ "path": "../../widgets/widget-slash-menu" },
|
{ "path": "../../widgets/widget-slash-menu" },
|
||||||
{ "path": "../../../framework/block-std" },
|
|
||||||
{ "path": "../../../framework/global" },
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/std" },
|
||||||
{ "path": "../../../framework/store" }
|
{ "path": "../../../framework/store" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
"@blocksuite/affine-rich-text": "workspace:*",
|
"@blocksuite/affine-rich-text": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.8",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@emoji-mart/data": "^1.2.1",
|
"@emoji-mart/data": "^1.2.1",
|
||||||
"@floating-ui/dom": "^1.6.10",
|
"@floating-ui/dom": "^1.6.10",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
ThemeProvider,
|
ThemeProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
||||||
import type { BlockComponent } from '@blocksuite/block-std';
|
import type { BlockComponent } from '@blocksuite/std';
|
||||||
import { flip, offset } from '@floating-ui/dom';
|
import { flip, offset } from '@floating-ui/dom';
|
||||||
import { css, html } from 'lit';
|
import { css, html } from 'lit';
|
||||||
import { query } from 'lit/decorators.js';
|
import { query } from 'lit/decorators.js';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
BlockSelection,
|
BlockSelection,
|
||||||
KeymapExtension,
|
KeymapExtension,
|
||||||
TextSelection,
|
TextSelection,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/std';
|
||||||
|
|
||||||
export const CalloutKeymapExtension = KeymapExtension(std => {
|
export const CalloutKeymapExtension = KeymapExtension(std => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
||||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
{ "path": "../../rich-text" },
|
{ "path": "../../rich-text" },
|
||||||
{ "path": "../../shared" },
|
{ "path": "../../shared" },
|
||||||
{ "path": "../../widgets/widget-slash-menu" },
|
{ "path": "../../widgets/widget-slash-menu" },
|
||||||
{ "path": "../../../framework/block-std" },
|
|
||||||
{ "path": "../../../framework/global" },
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/std" },
|
||||||
{ "path": "../../../framework/store" }
|
{ "path": "../../../framework/store" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,9 +18,9 @@
|
|||||||
"@blocksuite/affine-rich-text": "workspace:*",
|
"@blocksuite/affine-rich-text": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.8",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ConfigExtensionFactory } from '@blocksuite/block-std';
|
import { ConfigExtensionFactory } from '@blocksuite/std';
|
||||||
import type { BundledLanguageInfo, ThemeInput } from 'shiki';
|
import type { BundledLanguageInfo, ThemeInput } from 'shiki';
|
||||||
|
|
||||||
export interface CodeBlockConfig {
|
export interface CodeBlockConfig {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
|||||||
import {
|
import {
|
||||||
InlineManagerExtension,
|
InlineManagerExtension,
|
||||||
InlineSpecExtension,
|
InlineSpecExtension,
|
||||||
} from '@blocksuite/block-std/inline';
|
} from '@blocksuite/std/inline';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ColorScheme } from '@blocksuite/affine-model';
|
import { ColorScheme } from '@blocksuite/affine-model';
|
||||||
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
||||||
import { LifeCycleWatcher } from '@blocksuite/block-std';
|
import { LifeCycleWatcher } from '@blocksuite/std';
|
||||||
import { type Signal, signal } from '@preact/signals-core';
|
import { type Signal, signal } from '@preact/signals-core';
|
||||||
import {
|
import {
|
||||||
createHighlighterCore,
|
createHighlighterCore,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
BlockViewExtension,
|
BlockViewExtension,
|
||||||
FlavourExtension,
|
FlavourExtension,
|
||||||
WidgetViewExtension,
|
WidgetViewExtension,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal, unsafeStatic } from 'lit/static-html.js';
|
import { literal, unsafeStatic } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -7,17 +7,17 @@ import {
|
|||||||
NotificationProvider,
|
NotificationProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { getViewportElement } from '@blocksuite/affine-shared/utils';
|
import { getViewportElement } from '@blocksuite/affine-shared/utils';
|
||||||
import type { BlockComponent } from '@blocksuite/block-std';
|
import { IS_MAC, IS_MOBILE } from '@blocksuite/global/env';
|
||||||
import { BlockSelection, TextSelection } from '@blocksuite/block-std';
|
import { noop } from '@blocksuite/global/utils';
|
||||||
|
import type { BlockComponent } from '@blocksuite/std';
|
||||||
|
import { BlockSelection, TextSelection } from '@blocksuite/std';
|
||||||
import {
|
import {
|
||||||
getInlineRangeProvider,
|
getInlineRangeProvider,
|
||||||
INLINE_ROOT_ATTR,
|
INLINE_ROOT_ATTR,
|
||||||
type InlineRangeProvider,
|
type InlineRangeProvider,
|
||||||
type InlineRootElement,
|
type InlineRootElement,
|
||||||
type VLine,
|
type VLine,
|
||||||
} from '@blocksuite/block-std/inline';
|
} from '@blocksuite/std/inline';
|
||||||
import { IS_MAC, IS_MOBILE } from '@blocksuite/global/env';
|
|
||||||
import { noop } from '@blocksuite/global/utils';
|
|
||||||
import { Slice } from '@blocksuite/store';
|
import { Slice } from '@blocksuite/store';
|
||||||
import { computed, effect, type Signal, signal } from '@preact/signals-core';
|
import { computed, effect, type Signal, signal } from '@preact/signals-core';
|
||||||
import { html, nothing, type TemplateResult } from 'lit';
|
import { html, nothing, type TemplateResult } from 'lit';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { textKeymap } from '@blocksuite/affine-inline-preset';
|
import { textKeymap } from '@blocksuite/affine-inline-preset';
|
||||||
import { CodeBlockSchema } from '@blocksuite/affine-model';
|
import { CodeBlockSchema } from '@blocksuite/affine-model';
|
||||||
import { KeymapExtension } from '@blocksuite/block-std';
|
import { KeymapExtension } from '@blocksuite/std';
|
||||||
|
|
||||||
export const CodeKeymapExtension = KeymapExtension(textKeymap, {
|
export const CodeKeymapExtension = KeymapExtension(textKeymap, {
|
||||||
flavour: CodeBlockSchema.model.flavour,
|
flavour: CodeBlockSchema.model.flavour,
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import {
|
|||||||
} from '@blocksuite/affine-components/icons';
|
} from '@blocksuite/affine-components/icons';
|
||||||
import type { MenuItemGroup } from '@blocksuite/affine-components/toolbar';
|
import type { MenuItemGroup } from '@blocksuite/affine-components/toolbar';
|
||||||
import { isInsidePageEditor } from '@blocksuite/affine-shared/utils';
|
import { isInsidePageEditor } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockSelection } from '@blocksuite/block-std';
|
|
||||||
import { noop, sleep } from '@blocksuite/global/utils';
|
import { noop, sleep } from '@blocksuite/global/utils';
|
||||||
|
import { BlockSelection } from '@blocksuite/std';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { ifDefined } from 'lit/directives/if-defined.js';
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
BlockSelection,
|
BlockSelection,
|
||||||
TextSelection,
|
TextSelection,
|
||||||
WidgetComponent,
|
WidgetComponent,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/std';
|
||||||
import { limitShift, shift, size } from '@floating-ui/dom';
|
import { limitShift, shift, size } from '@floating-ui/dom';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { affineTextStyles } from '@blocksuite/affine-shared/styles';
|
import { affineTextStyles } from '@blocksuite/affine-shared/styles';
|
||||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
import { ShadowlessElement } from '@blocksuite/block-std';
|
import { ShadowlessElement } from '@blocksuite/std';
|
||||||
import { ZERO_WIDTH_SPACE } from '@blocksuite/block-std/inline';
|
import { ZERO_WIDTH_SPACE } from '@blocksuite/std/inline';
|
||||||
import type { DeltaInsert } from '@blocksuite/store';
|
import type { DeltaInsert } from '@blocksuite/store';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { property } from 'lit/decorators.js';
|
import { property } from 'lit/decorators.js';
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
{ "path": "../../rich-text" },
|
{ "path": "../../rich-text" },
|
||||||
{ "path": "../../shared" },
|
{ "path": "../../shared" },
|
||||||
{ "path": "../../widgets/widget-slash-menu" },
|
{ "path": "../../widgets/widget-slash-menu" },
|
||||||
{ "path": "../../../framework/block-std" },
|
|
||||||
{ "path": "../../../framework/global" },
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/std" },
|
||||||
{ "path": "../../../framework/store" }
|
{ "path": "../../../framework/store" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,10 +15,10 @@
|
|||||||
"@blocksuite/affine-model": "workspace:*",
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/data-view": "workspace:*",
|
"@blocksuite/data-view": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.8",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import {
|
|||||||
insertPositionToIndex,
|
insertPositionToIndex,
|
||||||
type InsertToPosition,
|
type InsertToPosition,
|
||||||
} from '@blocksuite/affine-shared/utils';
|
} from '@blocksuite/affine-shared/utils';
|
||||||
import type { EditorHost } from '@blocksuite/block-std';
|
|
||||||
import { DataSourceBase, type PropertyMetaConfig } from '@blocksuite/data-view';
|
import { DataSourceBase, type PropertyMetaConfig } from '@blocksuite/data-view';
|
||||||
import { propertyPresets } from '@blocksuite/data-view/property-presets';
|
import { propertyPresets } from '@blocksuite/data-view/property-presets';
|
||||||
import { BlockSuiteError } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError } from '@blocksuite/global/exceptions';
|
||||||
|
import type { EditorHost } from '@blocksuite/std';
|
||||||
import type { Block, Store } from '@blocksuite/store';
|
import type { Block, Store } from '@blocksuite/store';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ import {
|
|||||||
type TelemetryEventMap,
|
type TelemetryEventMap,
|
||||||
TelemetryProvider,
|
TelemetryProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { type BlockComponent } from '@blocksuite/block-std';
|
|
||||||
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
|
|
||||||
import {
|
import {
|
||||||
createRecordDetail,
|
createRecordDetail,
|
||||||
createUniComponentFromWebComponent,
|
createUniComponentFromWebComponent,
|
||||||
@@ -37,6 +35,8 @@ import {
|
|||||||
} from '@blocksuite/data-view';
|
} from '@blocksuite/data-view';
|
||||||
import { widgetPresets } from '@blocksuite/data-view/widget-presets';
|
import { widgetPresets } from '@blocksuite/data-view/widget-presets';
|
||||||
import { MoreHorizontalIcon } from '@blocksuite/icons/lit';
|
import { MoreHorizontalIcon } from '@blocksuite/icons/lit';
|
||||||
|
import { type BlockComponent } from '@blocksuite/std';
|
||||||
|
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/std/inline';
|
||||||
import { Slice } from '@blocksuite/store';
|
import { Slice } from '@blocksuite/store';
|
||||||
import { computed, signal } from '@preact/signals-core';
|
import { computed, signal } from '@preact/signals-core';
|
||||||
import { css, nothing, unsafeCSS } from 'lit';
|
import { css, nothing, unsafeCSS } from 'lit';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
{ "path": "../../model" },
|
{ "path": "../../model" },
|
||||||
{ "path": "../../shared" },
|
{ "path": "../../shared" },
|
||||||
{ "path": "../../widgets/widget-slash-menu" },
|
{ "path": "../../widgets/widget-slash-menu" },
|
||||||
{ "path": "../../../framework/block-std" },
|
|
||||||
{ "path": "../../data-view" },
|
{ "path": "../../data-view" },
|
||||||
{ "path": "../../../framework/global" },
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/std" },
|
||||||
{ "path": "../../../framework/store" }
|
{ "path": "../../../framework/store" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,10 +18,10 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/affine-widget-drag-handle": "workspace:*",
|
"@blocksuite/affine-widget-drag-handle": "workspace:*",
|
||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/data-view": "workspace:*",
|
"@blocksuite/data-view": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.8",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { DatabaseBlockModel } from '@blocksuite/affine-model';
|
import type { DatabaseBlockModel } from '@blocksuite/affine-model';
|
||||||
import type { Command } from '@blocksuite/block-std';
|
import type { Command } from '@blocksuite/std';
|
||||||
import type { BlockModel, Store } from '@blocksuite/store';
|
import type { BlockModel, Store } from '@blocksuite/store';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { createModal } from '@blocksuite/affine-components/context-menu';
|
import { createModal } from '@blocksuite/affine-components/context-menu';
|
||||||
import { ShadowlessElement } from '@blocksuite/block-std';
|
|
||||||
import { CloseIcon } from '@blocksuite/icons/lit';
|
import { CloseIcon } from '@blocksuite/icons/lit';
|
||||||
|
import { ShadowlessElement } from '@blocksuite/std';
|
||||||
import { css, html, type TemplateResult } from 'lit';
|
import { css, html, type TemplateResult } from 'lit';
|
||||||
import { property } from 'lit/decorators.js';
|
import { property } from 'lit/decorators.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { stopPropagation } from '@blocksuite/affine-shared/utils';
|
import { stopPropagation } from '@blocksuite/affine-shared/utils';
|
||||||
import { ShadowlessElement } from '@blocksuite/block-std';
|
|
||||||
import { WithDisposable } from '@blocksuite/global/lit';
|
import { WithDisposable } from '@blocksuite/global/lit';
|
||||||
|
import { ShadowlessElement } from '@blocksuite/std';
|
||||||
import type { Text } from '@blocksuite/store';
|
import type { Text } from '@blocksuite/store';
|
||||||
import { css, html } from 'lit';
|
import { css, html } from 'lit';
|
||||||
import { property, query, state } from 'lit/decorators.js';
|
import { property, query, state } from 'lit/decorators.js';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { MenuOptions } from '@blocksuite/affine-components/context-menu';
|
import type { MenuOptions } from '@blocksuite/affine-components/context-menu';
|
||||||
import { type DatabaseBlockModel } from '@blocksuite/affine-model';
|
import { type DatabaseBlockModel } from '@blocksuite/affine-model';
|
||||||
import { ConfigExtensionFactory } from '@blocksuite/block-std';
|
import { ConfigExtensionFactory } from '@blocksuite/std';
|
||||||
|
|
||||||
export interface DatabaseOptionsConfig {
|
export interface DatabaseOptionsConfig {
|
||||||
configure: (model: DatabaseBlockModel, options: MenuOptions) => MenuOptions;
|
configure: (model: DatabaseBlockModel, options: MenuOptions) => MenuOptions;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { EditorHost } from '@blocksuite/block-std';
|
|
||||||
import { createContextKey } from '@blocksuite/data-view';
|
import { createContextKey } from '@blocksuite/data-view';
|
||||||
|
import type { EditorHost } from '@blocksuite/std';
|
||||||
|
|
||||||
export const HostContextKey = createContextKey<EditorHost | undefined>(
|
export const HostContextKey = createContextKey<EditorHost | undefined>(
|
||||||
'editor-host',
|
'editor-host',
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import {
|
|||||||
insertPositionToIndex,
|
insertPositionToIndex,
|
||||||
type InsertToPosition,
|
type InsertToPosition,
|
||||||
} from '@blocksuite/affine-shared/utils';
|
} from '@blocksuite/affine-shared/utils';
|
||||||
import type { EditorHost } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
type DatabaseFlags,
|
type DatabaseFlags,
|
||||||
DataSourceBase,
|
DataSourceBase,
|
||||||
@@ -23,6 +22,7 @@ import {
|
|||||||
import { propertyPresets } from '@blocksuite/data-view/property-presets';
|
import { propertyPresets } from '@blocksuite/data-view/property-presets';
|
||||||
import { IS_MOBILE } from '@blocksuite/global/env';
|
import { IS_MOBILE } from '@blocksuite/global/env';
|
||||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||||
|
import type { EditorHost } from '@blocksuite/std';
|
||||||
import { type BlockModel } from '@blocksuite/store';
|
import { type BlockModel } from '@blocksuite/store';
|
||||||
import { computed, type ReadonlySignal, signal } from '@preact/signals-core';
|
import { computed, type ReadonlySignal, signal } from '@preact/signals-core';
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ import {
|
|||||||
TelemetryProvider,
|
TelemetryProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { getDropResult } from '@blocksuite/affine-widget-drag-handle';
|
import { getDropResult } from '@blocksuite/affine-widget-drag-handle';
|
||||||
import { type BlockComponent } from '@blocksuite/block-std';
|
|
||||||
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
|
|
||||||
import {
|
import {
|
||||||
createRecordDetail,
|
createRecordDetail,
|
||||||
createUniComponentFromWebComponent,
|
createUniComponentFromWebComponent,
|
||||||
@@ -40,6 +38,8 @@ import {
|
|||||||
DeleteIcon,
|
DeleteIcon,
|
||||||
MoreHorizontalIcon,
|
MoreHorizontalIcon,
|
||||||
} from '@blocksuite/icons/lit';
|
} from '@blocksuite/icons/lit';
|
||||||
|
import { type BlockComponent } from '@blocksuite/std';
|
||||||
|
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/std/inline';
|
||||||
import { Slice } from '@blocksuite/store';
|
import { Slice } from '@blocksuite/store';
|
||||||
import { autoUpdate } from '@floating-ui/dom';
|
import { autoUpdate } from '@floating-ui/dom';
|
||||||
import { computed, signal } from '@preact/signals-core';
|
import { computed, signal } from '@preact/signals-core';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { DatabaseBlockModel } from '@blocksuite/affine-model';
|
import type { DatabaseBlockModel } from '@blocksuite/affine-model';
|
||||||
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
||||||
import { BlockComponent } from '@blocksuite/block-std';
|
|
||||||
import { DatabaseListViewIcon } from '@blocksuite/icons/lit';
|
import { DatabaseListViewIcon } from '@blocksuite/icons/lit';
|
||||||
|
import { BlockComponent } from '@blocksuite/std';
|
||||||
import { css, html } from 'lit';
|
import { css, html } from 'lit';
|
||||||
|
|
||||||
export class DatabaseDndPreviewBlockComponent extends BlockComponent<DatabaseBlockModel> {
|
export class DatabaseDndPreviewBlockComponent extends BlockComponent<DatabaseBlockModel> {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
||||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { DefaultInlineManagerExtension } from '@blocksuite/affine-inline-preset';
|
import { DefaultInlineManagerExtension } from '@blocksuite/affine-inline-preset';
|
||||||
import type { EditorHost } from '@blocksuite/block-std';
|
|
||||||
import { ShadowlessElement } from '@blocksuite/block-std';
|
|
||||||
import type { DetailSlotProps } from '@blocksuite/data-view';
|
import type { DetailSlotProps } from '@blocksuite/data-view';
|
||||||
import type {
|
import type {
|
||||||
KanbanSingleView,
|
KanbanSingleView,
|
||||||
TableSingleView,
|
TableSingleView,
|
||||||
} from '@blocksuite/data-view/view-presets';
|
} from '@blocksuite/data-view/view-presets';
|
||||||
import { WithDisposable } from '@blocksuite/global/lit';
|
import { WithDisposable } from '@blocksuite/global/lit';
|
||||||
|
import type { EditorHost } from '@blocksuite/std';
|
||||||
|
import { ShadowlessElement } from '@blocksuite/std';
|
||||||
import { cssVarV2 } from '@toeverything/theme/v2';
|
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||||
import { css, html, unsafeCSS } from 'lit';
|
import { css, html, unsafeCSS } from 'lit';
|
||||||
import { property } from 'lit/decorators.js';
|
import { property } from 'lit/decorators.js';
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import { REFERENCE_NODE } from '@blocksuite/affine-shared/consts';
|
|||||||
import { TelemetryProvider } from '@blocksuite/affine-shared/services';
|
import { TelemetryProvider } from '@blocksuite/affine-shared/services';
|
||||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
import { createDefaultDoc, matchModels } from '@blocksuite/affine-shared/utils';
|
import { createDefaultDoc, matchModels } from '@blocksuite/affine-shared/utils';
|
||||||
import { type EditorHost, ShadowlessElement } from '@blocksuite/block-std';
|
|
||||||
import type { DetailSlotProps, SingleView } from '@blocksuite/data-view';
|
import type { DetailSlotProps, SingleView } from '@blocksuite/data-view';
|
||||||
import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit';
|
import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit';
|
||||||
|
import { type EditorHost, ShadowlessElement } from '@blocksuite/std';
|
||||||
import type { BaseTextAttributes } from '@blocksuite/store';
|
import type { BaseTextAttributes } from '@blocksuite/store';
|
||||||
import { computed } from '@preact/signals-core';
|
import { computed } from '@preact/signals-core';
|
||||||
import { cssVarV2 } from '@toeverything/theme/v2';
|
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
{ "path": "../../shared" },
|
{ "path": "../../shared" },
|
||||||
{ "path": "../../widgets/widget-drag-handle" },
|
{ "path": "../../widgets/widget-drag-handle" },
|
||||||
{ "path": "../../widgets/widget-slash-menu" },
|
{ "path": "../../widgets/widget-slash-menu" },
|
||||||
{ "path": "../../../framework/block-std" },
|
|
||||||
{ "path": "../../data-view" },
|
{ "path": "../../data-view" },
|
||||||
{ "path": "../../../framework/global" },
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/std" },
|
||||||
{ "path": "../../../framework/store" }
|
{ "path": "../../../framework/store" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
"@blocksuite/affine-components": "workspace:*",
|
"@blocksuite/affine-components": "workspace:*",
|
||||||
"@blocksuite/affine-model": "workspace:*",
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { CaptionedBlockComponent } from '@blocksuite/affine-components/caption';
|
import { CaptionedBlockComponent } from '@blocksuite/affine-components/caption';
|
||||||
import type { DividerBlockModel } from '@blocksuite/affine-model';
|
import type { DividerBlockModel } from '@blocksuite/affine-model';
|
||||||
import { BLOCK_CHILDREN_CONTAINER_PADDING_LEFT } from '@blocksuite/affine-shared/consts';
|
import { BLOCK_CHILDREN_CONTAINER_PADDING_LEFT } from '@blocksuite/affine-shared/consts';
|
||||||
import { BlockSelection } from '@blocksuite/block-std';
|
import { BlockSelection } from '@blocksuite/std';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
|
|
||||||
import { dividerBlockStyles } from './styles.js';
|
import { dividerBlockStyles } from './styles.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BlockViewExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
{ "path": "../../components" },
|
{ "path": "../../components" },
|
||||||
{ "path": "../../model" },
|
{ "path": "../../model" },
|
||||||
{ "path": "../../shared" },
|
{ "path": "../../shared" },
|
||||||
{ "path": "../../../framework/block-std" },
|
|
||||||
{ "path": "../../../framework/global" },
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/std" },
|
||||||
{ "path": "../../../framework/store" }
|
{ "path": "../../../framework/store" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,9 +17,9 @@
|
|||||||
"@blocksuite/affine-rich-text": "workspace:*",
|
"@blocksuite/affine-rich-text": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.8",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import {
|
|||||||
getSurfaceBlock,
|
getSurfaceBlock,
|
||||||
} from '@blocksuite/affine-block-surface';
|
} from '@blocksuite/affine-block-surface';
|
||||||
import { focusTextModel } from '@blocksuite/affine-rich-text';
|
import { focusTextModel } from '@blocksuite/affine-rich-text';
|
||||||
import type { Command } from '@blocksuite/block-std';
|
|
||||||
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
|
|
||||||
import { Bound } from '@blocksuite/global/gfx';
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
|
import type { Command } from '@blocksuite/std';
|
||||||
|
import { GfxControllerIdentifier } from '@blocksuite/std/gfx';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
EDGELESS_TEXT_BLOCK_MIN_HEIGHT,
|
EDGELESS_TEXT_BLOCK_MIN_HEIGHT,
|
||||||
|
|||||||
@@ -11,14 +11,14 @@ import {
|
|||||||
handleNativeRangeAtPoint,
|
handleNativeRangeAtPoint,
|
||||||
matchModels,
|
matchModels,
|
||||||
} from '@blocksuite/affine-shared/utils';
|
} from '@blocksuite/affine-shared/utils';
|
||||||
import type { BlockComponent } from '@blocksuite/block-std';
|
import { Bound, clamp } from '@blocksuite/global/gfx';
|
||||||
|
import type { BlockComponent } from '@blocksuite/std';
|
||||||
import {
|
import {
|
||||||
BlockSelection,
|
BlockSelection,
|
||||||
GfxBlockComponent,
|
GfxBlockComponent,
|
||||||
TextSelection,
|
TextSelection,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/std';
|
||||||
import type { SelectedContext } from '@blocksuite/block-std/gfx';
|
import type { SelectedContext } from '@blocksuite/std/gfx';
|
||||||
import { Bound, clamp } from '@blocksuite/global/gfx';
|
|
||||||
import { css, html } from 'lit';
|
import { css, html } from 'lit';
|
||||||
import { query, state } from 'lit/decorators.js';
|
import { query, state } from 'lit/decorators.js';
|
||||||
import { type StyleInfo, styleMap } from 'lit/directives/style-map.js';
|
import { type StyleInfo, styleMap } from 'lit/directives/style-map.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BlockViewExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
ToolbarModuleExtension,
|
ToolbarModuleExtension,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { createTextActions } from '@blocksuite/affine-widget-edgeless-toolbar';
|
import { createTextActions } from '@blocksuite/affine-widget-edgeless-toolbar';
|
||||||
import { BlockFlavourIdentifier } from '@blocksuite/block-std';
|
import { BlockFlavourIdentifier } from '@blocksuite/std';
|
||||||
|
|
||||||
export const edgelessTextToolbarConfig = {
|
export const edgelessTextToolbarConfig = {
|
||||||
// No need to adjust element bounds, which updates itself using ResizeObserver
|
// No need to adjust element bounds, which updates itself using ResizeObserver
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
{ "path": "../../rich-text" },
|
{ "path": "../../rich-text" },
|
||||||
{ "path": "../../shared" },
|
{ "path": "../../shared" },
|
||||||
{ "path": "../../widgets/widget-edgeless-toolbar" },
|
{ "path": "../../widgets/widget-edgeless-toolbar" },
|
||||||
{ "path": "../../../framework/block-std" },
|
|
||||||
{ "path": "../../../framework/global" },
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/std" },
|
||||||
{ "path": "../../../framework/store" }
|
{ "path": "../../../framework/store" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,9 +17,9 @@
|
|||||||
"@blocksuite/affine-rich-text": "workspace:*",
|
"@blocksuite/affine-rich-text": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.8",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/std": "workspace:*",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import {
|
|||||||
} from '@blocksuite/affine-shared/consts';
|
} from '@blocksuite/affine-shared/consts';
|
||||||
import { DocModeProvider } from '@blocksuite/affine-shared/services';
|
import { DocModeProvider } from '@blocksuite/affine-shared/services';
|
||||||
import { findAncestorModel } from '@blocksuite/affine-shared/utils';
|
import { findAncestorModel } from '@blocksuite/affine-shared/utils';
|
||||||
import type { BlockService } from '@blocksuite/block-std';
|
import type { BlockService } from '@blocksuite/std';
|
||||||
import type { GfxCompatibleProps } from '@blocksuite/block-std/gfx';
|
import type { GfxCompatibleProps } from '@blocksuite/std/gfx';
|
||||||
import type { BlockModel } from '@blocksuite/store';
|
import type { BlockModel } from '@blocksuite/store';
|
||||||
import { computed, type ReadonlySignal, signal } from '@preact/signals-core';
|
import { computed, type ReadonlySignal, signal } from '@preact/signals-core';
|
||||||
import type { TemplateResult } from 'lit';
|
import type { TemplateResult } from 'lit';
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ import {
|
|||||||
EMBED_CARD_HEIGHT,
|
EMBED_CARD_HEIGHT,
|
||||||
EMBED_CARD_WIDTH,
|
EMBED_CARD_WIDTH,
|
||||||
} from '@blocksuite/affine-shared/consts';
|
} from '@blocksuite/affine-shared/consts';
|
||||||
|
import { Bound, Vec } from '@blocksuite/global/gfx';
|
||||||
import {
|
import {
|
||||||
BlockSelection,
|
BlockSelection,
|
||||||
type BlockStdScope,
|
type BlockStdScope,
|
||||||
SurfaceSelection,
|
SurfaceSelection,
|
||||||
TextSelection,
|
TextSelection,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/std';
|
||||||
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
|
import { GfxControllerIdentifier } from '@blocksuite/std/gfx';
|
||||||
import { Bound, Vec } from '@blocksuite/global/gfx';
|
|
||||||
|
|
||||||
interface EmbedCardProperties {
|
interface EmbedCardProperties {
|
||||||
flavour: string;
|
flavour: string;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {
|
|||||||
import { EMBED_CARD_HEIGHT } from '@blocksuite/affine-shared/consts';
|
import { EMBED_CARD_HEIGHT } from '@blocksuite/affine-shared/consts';
|
||||||
import { NotificationProvider } from '@blocksuite/affine-shared/services';
|
import { NotificationProvider } from '@blocksuite/affine-shared/services';
|
||||||
import { matchModels, SpecProvider } from '@blocksuite/affine-shared/utils';
|
import { matchModels, SpecProvider } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockStdScope, EditorLifeCycleExtension } from '@blocksuite/block-std';
|
import { BlockStdScope, EditorLifeCycleExtension } from '@blocksuite/std';
|
||||||
import {
|
import {
|
||||||
type BlockModel,
|
type BlockModel,
|
||||||
type BlockSnapshot,
|
type BlockSnapshot,
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
import { EdgelessLegacySlotIdentifier } from '@blocksuite/affine-block-surface';
|
import { EdgelessLegacySlotIdentifier } from '@blocksuite/affine-block-surface';
|
||||||
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
import {
|
import {
|
||||||
blockComponentSymbol,
|
blockComponentSymbol,
|
||||||
type BlockService,
|
type BlockService,
|
||||||
type GfxBlockComponent,
|
type GfxBlockComponent,
|
||||||
GfxElementSymbol,
|
GfxElementSymbol,
|
||||||
toGfxBlockComponent,
|
toGfxBlockComponent,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/std';
|
||||||
import type {
|
import type {
|
||||||
GfxBlockElementModel,
|
GfxBlockElementModel,
|
||||||
GfxCompatibleProps,
|
GfxCompatibleProps,
|
||||||
} from '@blocksuite/block-std/gfx';
|
} from '@blocksuite/std/gfx';
|
||||||
import { Bound } from '@blocksuite/global/gfx';
|
|
||||||
import type { StyleInfo } from 'lit/directives/style-map.js';
|
import type { StyleInfo } from 'lit/directives/style-map.js';
|
||||||
|
|
||||||
import type { EmbedBlockComponent } from './embed-block-element.js';
|
import type { EmbedBlockComponent } from './embed-block-element.js';
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import {
|
|||||||
ToolbarModuleExtension,
|
ToolbarModuleExtension,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { getBlockProps } from '@blocksuite/affine-shared/utils';
|
import { getBlockProps } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockFlavourIdentifier, BlockSelection } from '@blocksuite/block-std';
|
|
||||||
import { Bound } from '@blocksuite/global/gfx';
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
import {
|
import {
|
||||||
CaptionIcon,
|
CaptionIcon,
|
||||||
@@ -31,6 +30,7 @@ import {
|
|||||||
DuplicateIcon,
|
DuplicateIcon,
|
||||||
ResetIcon,
|
ResetIcon,
|
||||||
} from '@blocksuite/icons/lit';
|
} from '@blocksuite/icons/lit';
|
||||||
|
import { BlockFlavourIdentifier, BlockSelection } from '@blocksuite/std';
|
||||||
import { type ExtensionType, Slice, Text } from '@blocksuite/store';
|
import { type ExtensionType, Slice, Text } from '@blocksuite/store';
|
||||||
import { computed, signal } from '@preact/signals-core';
|
import { computed, signal } from '@preact/signals-core';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type {
|
|||||||
EmbedFigmaModel,
|
EmbedFigmaModel,
|
||||||
EmbedFigmaStyles,
|
EmbedFigmaStyles,
|
||||||
} from '@blocksuite/affine-model';
|
} from '@blocksuite/affine-model';
|
||||||
import { BlockSelection } from '@blocksuite/block-std';
|
import { BlockSelection } from '@blocksuite/std';
|
||||||
import { html, nothing } from 'lit';
|
import { html, nothing } from 'lit';
|
||||||
import { classMap } from 'lit/directives/class-map.js';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
import { styleMap } from 'lit/directives/style-map.js';
|
import { styleMap } from 'lit/directives/style-map.js';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { EmbedFigmaBlockSchema } from '@blocksuite/affine-model';
|
import { EmbedFigmaBlockSchema } from '@blocksuite/affine-model';
|
||||||
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
||||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import type {
|
|||||||
EmbedGithubStyles,
|
EmbedGithubStyles,
|
||||||
} from '@blocksuite/affine-model';
|
} from '@blocksuite/affine-model';
|
||||||
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
||||||
import { BlockSelection } from '@blocksuite/block-std';
|
import { BlockSelection } from '@blocksuite/std';
|
||||||
import { html, nothing } from 'lit';
|
import { html, nothing } from 'lit';
|
||||||
import { property } from 'lit/decorators.js';
|
import { property } from 'lit/decorators.js';
|
||||||
import { classMap } from 'lit/directives/class-map.js';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
EmbedOptionConfig,
|
EmbedOptionConfig,
|
||||||
LinkPreviewerService,
|
LinkPreviewerService,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { BlockService } from '@blocksuite/block-std';
|
import { BlockService } from '@blocksuite/std';
|
||||||
|
|
||||||
import { githubUrlRegex } from './embed-github-model.js';
|
import { githubUrlRegex } from './embed-github-model.js';
|
||||||
import { queryEmbedGithubApiData, queryEmbedGithubData } from './utils.js';
|
import { queryEmbedGithubApiData, queryEmbedGithubData } from './utils.js';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { EmbedGithubBlockSchema } from '@blocksuite/affine-model';
|
import { EmbedGithubBlockSchema } from '@blocksuite/affine-model';
|
||||||
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
||||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import {
|
|||||||
ToolbarModuleExtension,
|
ToolbarModuleExtension,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { getBlockProps } from '@blocksuite/affine-shared/utils';
|
import { getBlockProps } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockFlavourIdentifier } from '@blocksuite/block-std';
|
|
||||||
import {
|
import {
|
||||||
CaptionIcon,
|
CaptionIcon,
|
||||||
CopyIcon,
|
CopyIcon,
|
||||||
@@ -16,6 +15,7 @@ import {
|
|||||||
DuplicateIcon,
|
DuplicateIcon,
|
||||||
ExpandFullIcon,
|
ExpandFullIcon,
|
||||||
} from '@blocksuite/icons/lit';
|
} from '@blocksuite/icons/lit';
|
||||||
|
import { BlockFlavourIdentifier } from '@blocksuite/std';
|
||||||
import { type ExtensionType, Slice } from '@blocksuite/store';
|
import { type ExtensionType, Slice } from '@blocksuite/store';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { keyed } from 'lit/directives/keyed.js';
|
import { keyed } from 'lit/directives/keyed.js';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { EmbedHtmlModel, EmbedHtmlStyles } from '@blocksuite/affine-model';
|
import type { EmbedHtmlModel, EmbedHtmlStyles } from '@blocksuite/affine-model';
|
||||||
import { BlockSelection } from '@blocksuite/block-std';
|
import { BlockSelection } from '@blocksuite/std';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
import { query } from 'lit/decorators.js';
|
import { query } from 'lit/decorators.js';
|
||||||
import { classMap } from 'lit/directives/class-map.js';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { EmbedHtmlBlockSchema } from '@blocksuite/affine-model';
|
import { EmbedHtmlBlockSchema } from '@blocksuite/affine-model';
|
||||||
import { BlockViewExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -3,14 +3,14 @@ import {
|
|||||||
SurfaceBlockComponent,
|
SurfaceBlockComponent,
|
||||||
} from '@blocksuite/affine-block-surface';
|
} from '@blocksuite/affine-block-surface';
|
||||||
import { EmbedIframeService } from '@blocksuite/affine-shared/services';
|
import { EmbedIframeService } from '@blocksuite/affine-shared/services';
|
||||||
|
import { Bound, Vec } from '@blocksuite/global/gfx';
|
||||||
import {
|
import {
|
||||||
BlockSelection,
|
BlockSelection,
|
||||||
type Command,
|
type Command,
|
||||||
SurfaceSelection,
|
SurfaceSelection,
|
||||||
TextSelection,
|
TextSelection,
|
||||||
} from '@blocksuite/block-std';
|
} from '@blocksuite/std';
|
||||||
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
|
import { GfxControllerIdentifier } from '@blocksuite/std/gfx';
|
||||||
import { Bound, Vec } from '@blocksuite/global/gfx';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
EMBED_IFRAME_DEFAULT_HEIGHT_IN_SURFACE,
|
EMBED_IFRAME_DEFAULT_HEIGHT_IN_SURFACE,
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import type { EmbedIframeBlockProps } from '@blocksuite/affine-model';
|
import type { EmbedIframeBlockProps } from '@blocksuite/affine-model';
|
||||||
import type { Command } from '@blocksuite/block-std';
|
import type { Command } from '@blocksuite/std';
|
||||||
import type { BlockModel } from '@blocksuite/store';
|
import type { BlockModel } from '@blocksuite/store';
|
||||||
|
|
||||||
import type { EmbedLinkInputPopupOptions } from '../components/embed-iframe-link-input-popup';
|
import type { EmbedLinkInputPopupOptions } from '../components/embed-iframe-link-input-popup';
|
||||||
|
|||||||
+1
-1
@@ -1,9 +1,9 @@
|
|||||||
import { createLitPortal } from '@blocksuite/affine-components/portal';
|
import { createLitPortal } from '@blocksuite/affine-components/portal';
|
||||||
import type { EmbedIframeBlockModel } from '@blocksuite/affine-model';
|
import type { EmbedIframeBlockModel } from '@blocksuite/affine-model';
|
||||||
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
||||||
import type { BlockStdScope } from '@blocksuite/block-std';
|
|
||||||
import { WithDisposable } from '@blocksuite/global/lit';
|
import { WithDisposable } from '@blocksuite/global/lit';
|
||||||
import { EditIcon, InformationIcon, ResetIcon } from '@blocksuite/icons/lit';
|
import { EditIcon, InformationIcon, ResetIcon } from '@blocksuite/icons/lit';
|
||||||
|
import type { BlockStdScope } from '@blocksuite/std';
|
||||||
import { flip, offset } from '@floating-ui/dom';
|
import { flip, offset } from '@floating-ui/dom';
|
||||||
import { baseTheme } from '@toeverything/theme';
|
import { baseTheme } from '@toeverything/theme';
|
||||||
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
||||||
|
|||||||
+1
-1
@@ -4,8 +4,8 @@ import {
|
|||||||
NotificationProvider,
|
NotificationProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { isValidUrl, stopPropagation } from '@blocksuite/affine-shared/utils';
|
import { isValidUrl, stopPropagation } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockSelection, type BlockStdScope } from '@blocksuite/block-std';
|
|
||||||
import { WithDisposable } from '@blocksuite/global/lit';
|
import { WithDisposable } from '@blocksuite/global/lit';
|
||||||
|
import { BlockSelection, type BlockStdScope } from '@blocksuite/std';
|
||||||
import { LitElement } from 'lit';
|
import { LitElement } from 'lit';
|
||||||
import { property, query, state } from 'lit/decorators.js';
|
import { property, query, state } from 'lit/decorators.js';
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
||||||
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
||||||
import { type BlockStdScope } from '@blocksuite/block-std';
|
|
||||||
import { EmbedIcon } from '@blocksuite/icons/lit';
|
import { EmbedIcon } from '@blocksuite/icons/lit';
|
||||||
|
import { type BlockStdScope } from '@blocksuite/std';
|
||||||
import { css, html, LitElement } from 'lit';
|
import { css, html, LitElement } from 'lit';
|
||||||
import { property } from 'lit/decorators.js';
|
import { property } from 'lit/decorators.js';
|
||||||
import { classMap } from 'lit/directives/class-map.js';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import {
|
|||||||
ToolbarModuleExtension,
|
ToolbarModuleExtension,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { getBlockProps } from '@blocksuite/affine-shared/utils';
|
import { getBlockProps } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockFlavourIdentifier, BlockSelection } from '@blocksuite/block-std';
|
|
||||||
import { Bound } from '@blocksuite/global/gfx';
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
import {
|
import {
|
||||||
CaptionIcon,
|
CaptionIcon,
|
||||||
@@ -28,6 +27,7 @@ import {
|
|||||||
OpenInNewIcon,
|
OpenInNewIcon,
|
||||||
ResetIcon,
|
ResetIcon,
|
||||||
} from '@blocksuite/icons/lit';
|
} from '@blocksuite/icons/lit';
|
||||||
|
import { BlockFlavourIdentifier, BlockSelection } from '@blocksuite/std';
|
||||||
import {
|
import {
|
||||||
type ExtensionType,
|
type ExtensionType,
|
||||||
Slice,
|
Slice,
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import { EdgelessLegacySlotIdentifier } from '@blocksuite/affine-block-surface';
|
import { EdgelessLegacySlotIdentifier } from '@blocksuite/affine-block-surface';
|
||||||
import { toGfxBlockComponent } from '@blocksuite/block-std';
|
|
||||||
import { Bound } from '@blocksuite/global/gfx';
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
|
import { toGfxBlockComponent } from '@blocksuite/std';
|
||||||
import { nothing } from 'lit';
|
import { nothing } from 'lit';
|
||||||
import { styleMap } from 'lit/directives/style-map.js';
|
import { styleMap } from 'lit/directives/style-map.js';
|
||||||
import { html } from 'lit/static-html.js';
|
import { html } from 'lit/static-html.js';
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import {
|
|||||||
NotificationProvider,
|
NotificationProvider,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import { matchModels } from '@blocksuite/affine-shared/utils';
|
import { matchModels } from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockSelection } from '@blocksuite/block-std';
|
|
||||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||||
|
import { BlockSelection } from '@blocksuite/std';
|
||||||
import { flip, offset, shift } from '@floating-ui/dom';
|
import { flip, offset, shift } from '@floating-ui/dom';
|
||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { EmbedIframeBlockSchema } from '@blocksuite/affine-model';
|
import { EmbedIframeBlockSchema } from '@blocksuite/affine-model';
|
||||||
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
import { SlashMenuConfigExtension } from '@blocksuite/affine-widget-slash-menu';
|
||||||
import { BlockViewExtension, FlavourExtension } from '@blocksuite/block-std';
|
import { BlockViewExtension, FlavourExtension } from '@blocksuite/std';
|
||||||
import type { ExtensionType } from '@blocksuite/store';
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
import { literal } from 'lit/static-html.js';
|
import { literal } from 'lit/static-html.js';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {
|
|||||||
EmbedIframeService,
|
EmbedIframeService,
|
||||||
FeatureFlagService,
|
FeatureFlagService,
|
||||||
} from '@blocksuite/affine-shared/services';
|
} from '@blocksuite/affine-shared/services';
|
||||||
import type { BlockStdScope } from '@blocksuite/block-std';
|
import type { BlockStdScope } from '@blocksuite/std';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The options for the embed iframe url validation
|
* The options for the embed iframe url validation
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import type { EmbedCardStyle, ReferenceParams } from '@blocksuite/affine-model';
|
import type { EmbedCardStyle, ReferenceParams } from '@blocksuite/affine-model';
|
||||||
import type { Command } from '@blocksuite/block-std';
|
import type { Command } from '@blocksuite/std';
|
||||||
|
|
||||||
import { insertEmbedCard } from '../../common/insert-embed-card.js';
|
import { insertEmbedCard } from '../../common/insert-embed-card.js';
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ import {
|
|||||||
getBlockProps,
|
getBlockProps,
|
||||||
referenceToNode,
|
referenceToNode,
|
||||||
} from '@blocksuite/affine-shared/utils';
|
} from '@blocksuite/affine-shared/utils';
|
||||||
import { BlockFlavourIdentifier } from '@blocksuite/block-std';
|
|
||||||
import { Bound } from '@blocksuite/global/gfx';
|
import { Bound } from '@blocksuite/global/gfx';
|
||||||
import {
|
import {
|
||||||
CaptionIcon,
|
CaptionIcon,
|
||||||
@@ -33,6 +32,7 @@ import {
|
|||||||
ExpandFullIcon,
|
ExpandFullIcon,
|
||||||
OpenInNewIcon,
|
OpenInNewIcon,
|
||||||
} from '@blocksuite/icons/lit';
|
} from '@blocksuite/icons/lit';
|
||||||
|
import { BlockFlavourIdentifier } from '@blocksuite/std';
|
||||||
import { type ExtensionType, Slice } from '@blocksuite/store';
|
import { type ExtensionType, Slice } from '@blocksuite/store';
|
||||||
import { computed, signal } from '@preact/signals-core';
|
import { computed, signal } from '@preact/signals-core';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user