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

@blocksuite/shared

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/shared - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

4

dist/operations.js

@@ -1,2 +0,2 @@

import { TextEntity } from '@blocksuite/store';
import { Text } from '@blocksuite/store';
import { ALLOW_DEFAULT, PREVENT_DEFAULT } from './consts';

@@ -30,3 +30,3 @@ import { Point, Rect } from './rect';

export function handleBlockSplit(store, model, splitIndex) {
if (!(model.text instanceof TextEntity))
if (!(model.text instanceof Text))
return;

@@ -33,0 +33,0 @@ const parent = store.getParent(model);

{
"name": "@blocksuite/shared",
"version": "0.2.3",
"version": "0.2.4",
"type": "module",

@@ -11,3 +11,3 @@ "description": "",

"dependencies": {
"@blocksuite/store": "0.2.3",
"@blocksuite/store": "0.2.4",
"hotkeys-js": "^3.10.0"

@@ -14,0 +14,0 @@ },

import type { Quill } from 'quill';
import { BaseBlockModel, Store, TextEntity } from '@blocksuite/store';
import { BaseBlockModel, Store, Text } from '@blocksuite/store';

@@ -53,3 +53,3 @@ import { BlockHost, Detail, SelectionPosition, SelectOptions } from './types';

) {
if (!(model.text instanceof TextEntity)) return;
if (!(model.text instanceof Text)) return;

@@ -124,3 +124,3 @@ const parent = store.getParent(model);

store.transact(() => {
previousSibling.text?.join(model.text as TextEntity);
previousSibling.text?.join(model.text as Text);
});

@@ -127,0 +127,0 @@ store.deleteBlock(model);

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