Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blocksuite/virgo

Package Overview
Dependencies
Maintainers
5
Versions
509
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/virgo - npm Package Compare versions

Comparing version 0.5.0-20230312174558-52c15ca to 0.5.0-20230313100532-099b92b

2

dist/virgo.d.ts

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

*/
toDomRange(vRange: VRange): Range | null;
toDomRange(vRange: VRange, shouldScrollIntoView?: boolean): Range | null;
/**

@@ -86,0 +86,0 @@ * calculate the vRange from dom selection for **this Editor**

import { assertExists, Slot } from '@blocksuite/global/utils';
import scrollIntoView from 'scroll-into-view-if-needed';
import { VirgoElement } from './components/virgo-element.js';

@@ -646,3 +647,3 @@ import { VirgoLine } from './components/virgo-line.js';

*/
toDomRange(vRange) {
toDomRange(vRange, shouldScrollIntoView = true) {
assertExists(this._rootElement);

@@ -685,2 +686,5 @@ const lineElements = Array.from(this._rootElement.querySelectorAll('v-line'));

range.setEnd(focusText, focusOffset);
if (shouldScrollIntoView && focusText.parentElement) {
scrollIntoView(focusText.parentElement, { scrollMode: 'if-needed' });
}
return range;

@@ -687,0 +691,0 @@ }

{
"name": "@blocksuite/virgo",
"version": "0.5.0-20230312174558-52c15ca",
"version": "0.5.0-20230313100532-099b92b",
"description": "A micro editor.",

@@ -26,3 +26,4 @@ "main": "dist/index.js",

"dependencies": {
"@blocksuite/global": "0.5.0-20230312174558-52c15ca",
"@blocksuite/global": "0.5.0-20230313100532-099b92b",
"scroll-into-view-if-needed": "^3.0.6",
"zod": "^3.20.6"

@@ -29,0 +30,0 @@ },

import { assertExists, Slot } from '@blocksuite/global/utils';
import scrollIntoView from 'scroll-into-view-if-needed';
import type * as Y from 'yjs';

@@ -668,3 +669,3 @@ import type { z } from 'zod';

*/
toDomRange(vRange: VRange): Range | null {
toDomRange(vRange: VRange, shouldScrollIntoView = true): Range | null {
assertExists(this._rootElement);

@@ -718,2 +719,7 @@ const lineElements = Array.from(

range.setEnd(focusText, focusOffset);
if (shouldScrollIntoView && focusText.parentElement) {
scrollIntoView(focusText.parentElement, { scrollMode: 'if-needed' });
}
return range;

@@ -720,0 +726,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

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