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

@blocksuite/store

Package Overview
Dependencies
Maintainers
2
Versions
1242
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/store - npm Package Compare versions

Comparing version 0.1.1 to 0.2.1

2

dist/text-adapter.d.ts

@@ -19,3 +19,3 @@ import * as Y from 'yjs';

format(): void;
applyDelta(): void;
applyDelta(_: any): void;
sliceToDelta(): void;

@@ -22,0 +22,0 @@ }

@@ -50,3 +50,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

}
applyDelta() {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
applyDelta(_) {
throw new Error(UNSUPPORTED_MSG + 'applyDelta');

@@ -53,0 +54,0 @@ }

{
"name": "@blocksuite/store",
"version": "0.1.1",
"version": "0.2.1",
"type": "module",

@@ -5,0 +5,0 @@ "description": "",

@@ -5,4 +5,17 @@ // checkout https://vitest.dev/guide/debugging.html for debugging tests

import { BaseBlockModel, Slot, Store } from '../';
import { BlockSchema } from '../../editor/src/block-loader';
// Use manual per-module import/export to support vitest environment on Node.js
import { PageBlockModel } from '../../blocks/src/page-block/page-model';
import { ParagraphBlockModel } from '../../blocks/src/paragraph-block/paragraph-model';
import { ListBlockModel } from '../../blocks/src/list-block/list-model';
import { GroupBlockModel } from '../../blocks/src/group-block/group-model';
// Create BlockSchema manually
export const BlockSchema = {
paragraph: ParagraphBlockModel,
page: PageBlockModel,
list: ListBlockModel,
group: GroupBlockModel,
} as const;
function serialize(store: Store) {

@@ -9,0 +22,0 @@ return store.doc.toJSON();

@@ -71,3 +71,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

applyDelta() {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
applyDelta(_: any) {
throw new Error(UNSUPPORTED_MSG + 'applyDelta');

@@ -74,0 +75,0 @@ }

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