@blocksuite/global
Advanced tools
Comparing version 0.17.20 to 0.17.21
# @blocksuite/global | ||
## 0.17.21 | ||
### Patch Changes | ||
- 24db578: ## Feat | ||
- feat(blocks): mobile keyboard toolbar widget (#8585) | ||
- feat: add mobile detection and virtual keyboard support (#8584) | ||
- feat(blocks): handle event only when nav.clipboard is available (#8587) | ||
- feat: add new dnd (#8524) | ||
## Fix | ||
- fix(edgeless): delete at the start of edgeless text (#8574) | ||
## Chore | ||
- chore: organize edgeless spec exports (#8595) | ||
- chore: Lock file maintenance (#8569) | ||
## Refactor | ||
- refactor(blocks): extract insert inline latex to command (#8594) | ||
- refactor(blocks): remove hover state after button pressed in mobile (#8586) | ||
## 0.17.20 | ||
@@ -4,0 +29,0 @@ |
@@ -10,2 +10,3 @@ export declare const IS_WEB: boolean; | ||
export declare const IS_WINDOWS: boolean; | ||
export declare const IS_MOBILE: boolean; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -15,2 +15,3 @@ const agent = globalThis.navigator?.userAgent ?? ''; | ||
export const IS_WINDOWS = /Win/.test(platform); | ||
export const IS_MOBILE = IS_IOS || IS_IPAD || IS_ANDROID; | ||
//# sourceMappingURL=index.js.map |
@@ -17,4 +17,6 @@ export interface BlockSuiteFlags { | ||
enable_shape_shadow_blur: boolean; | ||
enable_new_dnd: boolean; | ||
readonly: Record<string, boolean>; | ||
} | ||
export * from './virtual-keyboard.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export {}; | ||
export * from './virtual-keyboard.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -17,2 +17,4 @@ type DisposeCallback = () => void; | ||
addFromEvent<N extends keyof HTMLElementEventMap>(element: HTMLElement, eventName: N, handler: (e: HTMLElementEventMap[N]) => void, eventOptions?: boolean | AddEventListenerOptions): void; | ||
addFromEvent<N extends keyof VisualViewportEventMap>(element: VisualViewport, eventName: N, handler: (e: VisualViewportEventMap[N]) => void, eventOptions?: boolean | AddEventListenerOptions): void; | ||
addFromEvent<N extends keyof VirtualKeyboardEventMap>(element: VirtualKeyboard, eventName: N, handler: (e: VirtualKeyboardEventMap[N]) => void, eventOptions?: boolean | AddEventListenerOptions): void; | ||
dispose(): void; | ||
@@ -19,0 +21,0 @@ } |
{ | ||
"name": "@blocksuite/global", | ||
"version": "0.17.20", | ||
"version": "0.17.21", | ||
"types": "./index.d.ts", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -28,1 +28,3 @@ const agent = globalThis.navigator?.userAgent ?? ''; | ||
export const IS_WINDOWS = /Win/.test(platform); | ||
export const IS_MOBILE = IS_IOS || IS_IPAD || IS_ANDROID; |
@@ -17,3 +17,5 @@ export interface BlockSuiteFlags { | ||
enable_shape_shadow_blur: boolean; | ||
enable_new_dnd: boolean; | ||
readonly: Record<string, boolean>; | ||
} | ||
export * from './virtual-keyboard.js'; |
@@ -48,5 +48,17 @@ type DisposeCallback = () => void; | ||
): void; | ||
addFromEvent<N extends keyof VisualViewportEventMap>( | ||
element: VisualViewport, | ||
eventName: N, | ||
handler: (e: VisualViewportEventMap[N]) => void, | ||
eventOptions?: boolean | AddEventListenerOptions | ||
): void; | ||
addFromEvent<N extends keyof VirtualKeyboardEventMap>( | ||
element: VirtualKeyboard, | ||
eventName: N, | ||
handler: (e: VirtualKeyboardEventMap[N]) => void, | ||
eventOptions?: boolean | AddEventListenerOptions | ||
): void; | ||
addFromEvent( | ||
target: HTMLElement | Window | Document, | ||
target: HTMLElement | Window | Document | VisualViewport | VirtualKeyboard, | ||
type: string, | ||
@@ -53,0 +65,0 @@ handler: (e: Event) => void, |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
710217
243
11009
11312