@blocksuite/block-std
Advanced tools
Comparing version 0.0.0-20230906133203-d3774c2c-nightly to 0.0.0-20230907104636-f5488de4-nightly
@@ -11,2 +11,3 @@ import { UIEventState, UIEventStateContext } from '../base.js'; | ||
event, | ||
composing: this.composition, | ||
}); | ||
@@ -18,2 +19,3 @@ this._dispatcher.run('keyDown', this._createContext(event, keyboardEventState)); | ||
event, | ||
composing: this.composition, | ||
}); | ||
@@ -20,0 +22,0 @@ this._dispatcher.run('keyUp', this._createContext(event, keyboardEventState)); |
import { UIEventState } from '../base.js'; | ||
type KeyboardEventStateOptions = { | ||
event: KeyboardEvent; | ||
composing: boolean; | ||
}; | ||
@@ -8,3 +9,4 @@ export declare class KeyboardEventState extends UIEventState { | ||
raw: KeyboardEvent; | ||
constructor({ event }: KeyboardEventStateOptions); | ||
composing: boolean; | ||
constructor({ event, composing }: KeyboardEventStateOptions); | ||
} | ||
@@ -11,0 +13,0 @@ declare global { |
import { UIEventState } from '../base.js'; | ||
export class KeyboardEventState extends UIEventState { | ||
constructor({ event }) { | ||
constructor({ event, composing }) { | ||
super(event); | ||
this.type = 'keyboardState'; | ||
this.raw = event; | ||
this.composing = composing; | ||
} | ||
} | ||
//# sourceMappingURL=keyboard.js.map |
{ | ||
"name": "@blocksuite/block-std", | ||
"version": "0.0.0-20230906133203-d3774c2c-nightly", | ||
"version": "0.0.0-20230907104636-f5488de4-nightly", | ||
"description": "Std for blocksuite blocks", | ||
@@ -12,10 +12,10 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"@blocksuite/store": "0.0.0-20230906133203-d3774c2c-nightly" | ||
"@blocksuite/store": "0.0.0-20230907104636-f5488de4-nightly" | ||
}, | ||
"dependencies": { | ||
"w3c-keyname": "^2.2.8", | ||
"@blocksuite/global": "0.0.0-20230906133203-d3774c2c-nightly" | ||
"@blocksuite/global": "0.0.0-20230907104636-f5488de4-nightly" | ||
}, | ||
"devDependencies": { | ||
"@blocksuite/store": "0.0.0-20230906133203-d3774c2c-nightly" | ||
"@blocksuite/store": "0.0.0-20230907104636-f5488de4-nightly" | ||
}, | ||
@@ -22,0 +22,0 @@ "exports": { |
@@ -51,2 +51,3 @@ import type { UIEventHandler } from '../base.js'; | ||
event, | ||
composing: this.composition, | ||
}); | ||
@@ -62,2 +63,3 @@ this._dispatcher.run( | ||
event, | ||
composing: this.composition, | ||
}); | ||
@@ -64,0 +66,0 @@ |
@@ -5,2 +5,3 @@ import { UIEventState } from '../base.js'; | ||
event: KeyboardEvent; | ||
composing: boolean; | ||
}; | ||
@@ -13,6 +14,9 @@ | ||
constructor({ event }: KeyboardEventStateOptions) { | ||
composing: boolean; | ||
constructor({ event, composing }: KeyboardEventStateOptions) { | ||
super(event); | ||
this.raw = event; | ||
this.composing = composing; | ||
} | ||
@@ -19,0 +23,0 @@ } |
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
282140
3921
+ Added@blocksuite/global@0.0.0-20230907104636-f5488de4-nightly(transitive)
+ Added@blocksuite/store@0.0.0-20230907104636-f5488de4-nightly(transitive)
+ Added@blocksuite/virgo@0.0.0-20230907104636-f5488de4-nightly(transitive)
- Removed@blocksuite/global@0.0.0-20230906133203-d3774c2c-nightly(transitive)
- Removed@blocksuite/store@0.0.0-20230906133203-d3774c2c-nightly(transitive)
- Removed@blocksuite/virgo@0.0.0-20230906133203-d3774c2c-nightly(transitive)
Updated@blocksuite/global@0.0.0-20230907104636-f5488de4-nightly