Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blocksuite/editor

Package Overview
Dependencies
Maintainers
5
Versions
634
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/editor - npm Package Compare versions

Comparing version 0.3.0-20221225012015-ee9a1b8 to 0.3.0-20221225022011-7a93640

29

dist/block-loader.d.ts

@@ -1,11 +0,20 @@

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;
}>;
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;
};
//# sourceMappingURL=block-loader.d.ts.map

@@ -0,15 +1,21 @@

// 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');
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,
};
}
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,
};
//# sourceMappingURL=block-loader.js.map
import { LitElement } from 'lit';
import { MouseMode, ShapeMouseMode } from '@blocksuite/blocks/std';
import { MouseMode, ShapeMouseMode } from '@blocksuite/blocks';
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/std';
import { assertExists, ColorStyle, createEvent, TDShapeType, updateSelectedTextType, } from '@blocksuite/blocks';
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-20221225012015-ee9a1b8",
"version": "0.3.0-20221225022011-7a93640",
"description": "Default BlockSuite-based editor built for AFFiNE.",

@@ -11,4 +11,4 @@ "main": "dist/index.js",

"dependencies": {
"@blocksuite/blocks": "0.3.0-20221225012015-ee9a1b8",
"@blocksuite/store": "0.3.0-20221225012015-ee9a1b8",
"@blocksuite/blocks": "0.3.0-20221225022011-7a93640",
"@blocksuite/store": "0.3.0-20221225022011-7a93640",
"lit": "^2.3.1",

@@ -15,0 +15,0 @@ "marked": "^4.1.0",

@@ -0,24 +1,23 @@

// 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';
export type { ParagraphBlockProps as TextBlockProps } from '@blocksuite/blocks';
// TODO support dynamic register
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,
} as const;
}
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;

@@ -12,4 +12,4 @@ import { LitElement, html } from 'lit';

updateSelectedTextType,
} from '@blocksuite/blocks/std';
import type { GroupBlockModel } from '@blocksuite/blocks';
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc