@blocksuite/editor
Advanced tools
Comparing version 0.3.0-20221225004222-eacf37a to 0.3.0-20221225012015-8e5d6f5
@@ -1,20 +0,11 @@ | ||
import { PageBlockModel } from '@blocksuite/blocks'; | ||
import { ParagraphBlockModel } from '@blocksuite/blocks'; | ||
import { ListBlockModel } from '@blocksuite/blocks'; | ||
import { GroupBlockModel } from '@blocksuite/blocks'; | ||
import { CodeBlockModel } from '@blocksuite/blocks'; | ||
import { DividerBlockModel } from '@blocksuite/blocks'; | ||
import { EmbedBlockModel } from '@blocksuite/blocks'; | ||
import { ShapeBlockModel } from '@blocksuite/blocks'; | ||
export type { ParagraphBlockProps as TextBlockProps } from '@blocksuite/blocks'; | ||
export declare const BlockSchema: { | ||
readonly 'affine:paragraph': typeof ParagraphBlockModel; | ||
readonly 'affine:page': typeof PageBlockModel; | ||
readonly 'affine:list': typeof ListBlockModel; | ||
readonly 'affine:group': typeof GroupBlockModel; | ||
readonly 'affine:code': typeof CodeBlockModel; | ||
readonly 'affine:divider': typeof DividerBlockModel; | ||
readonly 'affine:embed': typeof EmbedBlockModel; | ||
readonly 'affine:shape': typeof ShapeBlockModel; | ||
}; | ||
export declare function loadBlockSchema(): Promise<{ | ||
readonly 'affine:paragraph': typeof import("@blocksuite/blocks").ParagraphBlockModel; | ||
readonly 'affine:page': typeof import("@blocksuite/blocks").PageBlockModel; | ||
readonly 'affine:list': typeof import("@blocksuite/blocks").ListBlockModel; | ||
readonly 'affine:group': typeof import("@blocksuite/blocks").GroupBlockModel; | ||
readonly 'affine:code': typeof import("@blocksuite/blocks").CodeBlockModel; | ||
readonly 'affine:divider': typeof import("@blocksuite/blocks").DividerBlockModel; | ||
readonly 'affine:embed': typeof import("@blocksuite/blocks").EmbedBlockModel; | ||
readonly 'affine:shape': typeof import("@blocksuite/blocks").ShapeBlockModel; | ||
}>; | ||
//# sourceMappingURL=block-loader.d.ts.map |
@@ -1,21 +0,15 @@ | ||
// Use manual per-module import/export to support vitest environment on Node.js | ||
import { PageBlockModel } from '@blocksuite/blocks'; | ||
import { ParagraphBlockModel } from '@blocksuite/blocks'; | ||
import { ListBlockModel } from '@blocksuite/blocks'; | ||
import { GroupBlockModel } from '@blocksuite/blocks'; | ||
import { CodeBlockModel } from '@blocksuite/blocks'; | ||
import { DividerBlockModel } from '@blocksuite/blocks'; | ||
import { EmbedBlockModel } from '@blocksuite/blocks'; | ||
import { ShapeBlockModel } from '@blocksuite/blocks'; | ||
// TODO support dynamic register | ||
export const BlockSchema = { | ||
'affine:paragraph': ParagraphBlockModel, | ||
'affine:page': PageBlockModel, | ||
'affine:list': ListBlockModel, | ||
'affine:group': GroupBlockModel, | ||
'affine:code': CodeBlockModel, | ||
'affine:divider': DividerBlockModel, | ||
'affine:embed': EmbedBlockModel, | ||
'affine:shape': ShapeBlockModel, | ||
}; | ||
export async function loadBlockSchema() { | ||
const { PageBlockModel, ParagraphBlockModel, ListBlockModel, GroupBlockModel, CodeBlockModel, DividerBlockModel, EmbedBlockModel, ShapeBlockModel, } = await import('@blocksuite/blocks'); | ||
return { | ||
'affine:paragraph': ParagraphBlockModel, | ||
'affine:page': PageBlockModel, | ||
'affine:list': ListBlockModel, | ||
'affine:group': GroupBlockModel, | ||
'affine:code': CodeBlockModel, | ||
'affine:divider': DividerBlockModel, | ||
'affine:embed': EmbedBlockModel, | ||
'affine:shape': ShapeBlockModel, | ||
}; | ||
} | ||
//# sourceMappingURL=block-loader.js.map |
import { LitElement } from 'lit'; | ||
import { MouseMode, ShapeMouseMode } from '@blocksuite/blocks'; | ||
import { MouseMode, ShapeMouseMode } from '@blocksuite/blocks/std'; | ||
import type { Workspace } from '@blocksuite/store'; | ||
@@ -4,0 +4,0 @@ import type { EditorContainer } from '../editor-container/editor-container.js'; |
@@ -9,3 +9,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
import { customElement, property, state } from 'lit/decorators.js'; | ||
import { assertExists, ColorStyle, createEvent, TDShapeType, updateSelectedTextType, } from '@blocksuite/blocks'; | ||
import { assertExists, ColorStyle, createEvent, TDShapeType, updateSelectedTextType, } from '@blocksuite/blocks/std'; | ||
import { Utils } from '@blocksuite/store'; | ||
@@ -12,0 +12,0 @@ // Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. |
{ | ||
"name": "@blocksuite/editor", | ||
"version": "0.3.0-20221225004222-eacf37a", | ||
"version": "0.3.0-20221225012015-8e5d6f5", | ||
"description": "Default BlockSuite-based editor built for AFFiNE.", | ||
@@ -11,4 +11,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@blocksuite/blocks": "0.3.0-20221225004222-eacf37a", | ||
"@blocksuite/store": "0.3.0-20221225004222-eacf37a", | ||
"@blocksuite/blocks": "0.3.0-20221225012015-8e5d6f5", | ||
"@blocksuite/store": "0.3.0-20221225012015-8e5d6f5", | ||
"lit": "^2.3.1", | ||
@@ -15,0 +15,0 @@ "marked": "^4.1.0", |
@@ -1,23 +0,24 @@ | ||
// Use manual per-module import/export to support vitest environment on Node.js | ||
import { PageBlockModel } from '@blocksuite/blocks'; | ||
import { ParagraphBlockModel } from '@blocksuite/blocks'; | ||
import { ListBlockModel } from '@blocksuite/blocks'; | ||
import { GroupBlockModel } from '@blocksuite/blocks'; | ||
import { CodeBlockModel } from '@blocksuite/blocks'; | ||
import { DividerBlockModel } from '@blocksuite/blocks'; | ||
import { EmbedBlockModel } from '@blocksuite/blocks'; | ||
import { ShapeBlockModel } from '@blocksuite/blocks'; | ||
// TODO support dynamic register | ||
export async function loadBlockSchema() { | ||
const { | ||
PageBlockModel, | ||
ParagraphBlockModel, | ||
ListBlockModel, | ||
GroupBlockModel, | ||
CodeBlockModel, | ||
DividerBlockModel, | ||
EmbedBlockModel, | ||
ShapeBlockModel, | ||
} = await import('@blocksuite/blocks'); | ||
export type { ParagraphBlockProps as TextBlockProps } from '@blocksuite/blocks'; | ||
// TODO support dynamic register | ||
export const BlockSchema = { | ||
'affine:paragraph': ParagraphBlockModel, | ||
'affine:page': PageBlockModel, | ||
'affine:list': ListBlockModel, | ||
'affine:group': GroupBlockModel, | ||
'affine:code': CodeBlockModel, | ||
'affine:divider': DividerBlockModel, | ||
'affine:embed': EmbedBlockModel, | ||
'affine:shape': ShapeBlockModel, | ||
} as const; | ||
return { | ||
'affine:paragraph': ParagraphBlockModel, | ||
'affine:page': PageBlockModel, | ||
'affine:list': ListBlockModel, | ||
'affine:group': GroupBlockModel, | ||
'affine:code': CodeBlockModel, | ||
'affine:divider': DividerBlockModel, | ||
'affine:embed': EmbedBlockModel, | ||
'affine:shape': ShapeBlockModel, | ||
} as const; | ||
} |
@@ -12,4 +12,4 @@ import { LitElement, html } from 'lit'; | ||
updateSelectedTextType, | ||
type GroupBlockModel, | ||
} from '@blocksuite/blocks'; | ||
} from '@blocksuite/blocks/std'; | ||
import type { GroupBlockModel } from '@blocksuite/blocks'; | ||
import { Utils } from '@blocksuite/store'; | ||
@@ -16,0 +16,0 @@ import type { Workspace } from '@blocksuite/store'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
321478
4455
+ Added@blocksuite/blocks@0.3.0-20221225012015-8e5d6f5(transitive)
+ Added@blocksuite/store@0.3.0-20221225012015-8e5d6f5(transitive)
- Removed@blocksuite/blocks@0.3.0-20221225004222-eacf37a(transitive)
- Removed@blocksuite/store@0.3.0-20221225004222-eacf37a(transitive)