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

@blocksuite/affine-widget-scroll-anchoring

Package Overview
Dependencies
Maintainers
0
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/affine-widget-scroll-anchoring - npm Package Compare versions

Comparing version 0.0.0-canary-20241101001601 to 0.0.0-canary-20241102001353

33

CHANGELOG.md
# @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 @@

8

dist/scroll-anchoring.js

@@ -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

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