@blocksuite/affine-widget-scroll-anchoring
Advanced tools
Comparing version 0.0.0-canary-20241101001601 to 0.0.0-canary-20241102001353
# @blocksuite/affine-widget-scroll-anchoring | ||
## 0.0.0-canary-20241101001601 | ||
## 0.0.0-canary-20241102001353 | ||
@@ -9,7 +9,30 @@ ### Patch Changes | ||
- Updated dependencies | ||
- @blocksuite/affine-model@0.0.0-canary-20241101001601 | ||
- @blocksuite/affine-shared@0.0.0-canary-20241101001601 | ||
- @blocksuite/block-std@0.0.0-canary-20241101001601 | ||
- @blocksuite/global@0.0.0-canary-20241101001601 | ||
- @blocksuite/affine-model@0.0.0-canary-20241102001353 | ||
- @blocksuite/affine-shared@0.0.0-canary-20241102001353 | ||
- @blocksuite/block-std@0.0.0-canary-20241102001353 | ||
- @blocksuite/global@0.0.0-canary-20241102001353 | ||
## 0.17.25 | ||
### Patch Changes | ||
- 4d0bd4c: fix(blocks): reset keyboard toolbar after blur (#8646) | ||
## Fix | ||
- fix(blocks): reset keyboard toolbar after blur (#8646) | ||
- fix: scale note and edgeless-text when resize and align elements (#8642) | ||
- fix(edgeless): can not insert link when no selection (#8644) | ||
- fix(database): prevent 0 in number cells from getting rendered as an empty string (#8629) | ||
## Refactor | ||
- refactor(blocks): provide position controll config for keyboard toolbar (#8645) | ||
- Updated dependencies [4d0bd4c] | ||
- @blocksuite/affine-model@0.17.25 | ||
- @blocksuite/affine-shared@0.17.25 | ||
- @blocksuite/block-std@0.17.25 | ||
- @blocksuite/global@0.17.25 | ||
## 0.17.24 | ||
@@ -16,0 +39,0 @@ |
@@ -68,7 +68,7 @@ import '@blocksuite/affine-shared/selection'; | ||
return; | ||
const container = this.offsetParent; | ||
const container = this.host; | ||
const containerRect = container.getBoundingClientRect(); | ||
const { left, top, width, height } = blockComponent.getBoundingClientRect(); | ||
const offsetX = containerRect.left + container.scrollLeft; | ||
const offsetY = containerRect.top + container.scrollTop; | ||
const offsetX = containerRect.left - container.offsetLeft; | ||
const offsetY = containerRect.top - container.offsetTop; | ||
return new Bound(left - offsetX, top - offsetY, width, height); | ||
@@ -136,3 +136,3 @@ } | ||
super.connectedCallback(); | ||
this.#resizeObserver.observe(this.offsetParent); | ||
this.#resizeObserver.observe(this.host); | ||
this.handleEvent('wheel', this.#requestUpdateFn); | ||
@@ -139,0 +139,0 @@ this.disposables.addFromEvent(window, 'resize', this.#requestUpdateFn); |
{ | ||
"name": "@blocksuite/affine-widget-scroll-anchoring", | ||
"version": "0.0.0-canary-20241101001601", | ||
"version": "0.0.0-canary-20241102001353", | ||
"description": "Affine scroll anchoring widget.", | ||
@@ -22,6 +22,6 @@ "type": "module", | ||
"dependencies": { | ||
"@blocksuite/affine-model": "0.0.0-canary-20241101001601", | ||
"@blocksuite/affine-shared": "0.0.0-canary-20241101001601", | ||
"@blocksuite/block-std": "0.0.0-canary-20241101001601", | ||
"@blocksuite/global": "0.0.0-canary-20241101001601", | ||
"@blocksuite/affine-model": "0.0.0-canary-20241102001353", | ||
"@blocksuite/affine-shared": "0.0.0-canary-20241102001353", | ||
"@blocksuite/block-std": "0.0.0-canary-20241102001353", | ||
"@blocksuite/global": "0.0.0-canary-20241102001353", | ||
"@preact/signals-core": "^1.8.0", | ||
@@ -28,0 +28,0 @@ "@toeverything/theme": "^1.0.15", |
@@ -87,8 +87,8 @@ import type { DocMode } from '@blocksuite/affine-model'; | ||
const container = this.offsetParent!; | ||
const container = this.host; | ||
const containerRect = container.getBoundingClientRect(); | ||
const { left, top, width, height } = blockComponent.getBoundingClientRect(); | ||
const offsetX = containerRect.left + container.scrollLeft; | ||
const offsetY = containerRect.top + container.scrollTop; | ||
const offsetX = containerRect.left - container.offsetLeft; | ||
const offsetY = containerRect.top - container.offsetTop; | ||
@@ -185,3 +185,3 @@ return new Bound(left - offsetX, top - offsetY, width, height); | ||
this.#resizeObserver.observe(this.offsetParent!); | ||
this.#resizeObserver.observe(this.host); | ||
this.handleEvent('wheel', this.#requestUpdateFn); | ||
@@ -188,0 +188,0 @@ this.disposables.addFromEvent(window, 'resize', this.#requestUpdateFn); |
Sorry, the diff of this file is not supported yet
51676
+ Added@blocksuite/affine-model@0.0.0-canary-20241102001353(transitive)
+ Added@blocksuite/affine-shared@0.0.0-canary-20241102001353(transitive)
+ Added@blocksuite/block-std@0.0.0-canary-20241102001353(transitive)
+ Added@blocksuite/global@0.0.0-canary-20241102001353(transitive)
+ Added@blocksuite/inline@0.0.0-canary-20241102001353(transitive)
+ Added@blocksuite/store@0.0.0-canary-20241102001353(transitive)
+ Added@blocksuite/sync@0.0.0-canary-20241102001353(transitive)
- Removed@blocksuite/affine-model@0.0.0-canary-20241101001601(transitive)
- Removed@blocksuite/affine-shared@0.0.0-canary-20241101001601(transitive)
- Removed@blocksuite/block-std@0.0.0-canary-20241101001601(transitive)
- Removed@blocksuite/global@0.0.0-canary-20241101001601(transitive)
- Removed@blocksuite/inline@0.0.0-canary-20241101001601(transitive)
- Removed@blocksuite/store@0.0.0-canary-20241101001601(transitive)
- Removed@blocksuite/sync@0.0.0-canary-20241101001601(transitive)
Updated@blocksuite/affine-shared@0.0.0-canary-20241102001353