New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@blocksuite/inline

Package Overview
Dependencies
Maintainers
2
Versions
673
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/inline - npm Package Compare versions

Comparing version 0.11.0-nightly-202401021800-ef008a3 to 0.11.0-nightly-202401031604-14f1a82

1

dist/inline-editor.d.ts

@@ -94,2 +94,3 @@ import { DisposableGroup, Slot } from '@blocksuite/global/utils';

};
get isComposing(): boolean;
constructor(yText: InlineEditor['yText'], ops?: {

@@ -96,0 +97,0 @@ isEmbed?: (delta: DeltaInsert<TextAttributes>) => boolean;

@@ -56,2 +56,6 @@ import { assertExists, DisposableGroup, Slot } from '@blocksuite/global/utils';

}
// Expose event service API
get isComposing() {
return this._eventService.isComposing;
}
constructor(yText, ops = {}) {

@@ -58,0 +62,0 @@ this._disposables = new DisposableGroup();

@@ -6,2 +6,3 @@ import type { InlineEditor } from '../inline-editor.js';

private _isComposing;
get isComposing(): boolean;
private _previousAnchor;

@@ -8,0 +9,0 @@ private _previousFocus;

@@ -7,2 +7,5 @@ import { assertExists } from '@blocksuite/global/utils';

export class EventService {
get isComposing() {
return this._isComposing;
}
constructor(editor) {

@@ -9,0 +12,0 @@ this.editor = editor;

5

dist/utils/keyboard.d.ts
import type { InlineEditor } from '../inline-editor.js';
import type { InlineRange } from '../types.js';
import type { BaseTextAttributes } from './base-attributes.js';
export declare const KEYBOARD_PREVENT_DEFAULT = false;

@@ -17,5 +18,5 @@ export declare const KEYBOARD_ALLOW_DEFAULT = true;

export type KeyboardBindingRecord = Record<string, KeyboardBinding>;
export interface KeyboardBindingContext {
export interface KeyboardBindingContext<TextAttributes extends BaseTextAttributes = BaseTextAttributes> {
inlineRange: InlineRange;
inlineEditor: InlineEditor;
inlineEditor: InlineEditor<TextAttributes>;
collapsed: boolean;

@@ -22,0 +23,0 @@ prefixText: string;

{
"name": "@blocksuite/inline",
"version": "0.11.0-nightly-202401021800-ef008a3",
"version": "0.11.0-nightly-202401031604-14f1a82",
"description": "A micro editor.",

@@ -33,3 +33,3 @@ "type": "module",

"zod": "^3.22.4",
"@blocksuite/global": "0.11.0-nightly-202401021800-ef008a3"
"@blocksuite/global": "0.11.0-nightly-202401031604-14f1a82"
},

@@ -36,0 +36,0 @@ "scripts": {

@@ -181,2 +181,7 @@ import { assertExists, DisposableGroup, Slot } from '@blocksuite/global/utils';

// Expose event service API
get isComposing() {
return this._eventService.isComposing;
}
constructor(

@@ -183,0 +188,0 @@ yText: InlineEditor['yText'],

@@ -17,2 +17,5 @@ import { assertExists } from '@blocksuite/global/utils';

private _isComposing = false;
get isComposing() {
return this._isComposing;
}

@@ -19,0 +22,0 @@ private _previousAnchor: NativePoint | null = null;

@@ -5,2 +5,3 @@ import { IS_IOS, IS_MAC } from '@blocksuite/global/env';

import type { InlineRange } from '../types.js';
import type { BaseTextAttributes } from './base-attributes.js';

@@ -25,5 +26,7 @@ const SHORT_KEY_PROPERTY = IS_IOS || IS_MAC ? 'metaKey' : 'ctrlKey';

export interface KeyboardBindingContext {
export interface KeyboardBindingContext<
TextAttributes extends BaseTextAttributes = BaseTextAttributes,
> {
inlineRange: InlineRange;
inlineEditor: InlineEditor;
inlineEditor: InlineEditor<TextAttributes>;
collapsed: boolean;

@@ -30,0 +33,0 @@ prefixText: string;

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

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