Socket
Socket
Sign inDemoInstall

@codemirror/tooltip

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/tooltip - npm Package Compare versions

Comparing version 0.19.13 to 0.19.14

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 0.19.14 (2022-02-14)
### Bug fixes
Fix an issue where in editors without padding, tooltips for positions right on the start and end of the visible content wouldn't show up.
## 0.19.13 (2022-01-19)

@@ -2,0 +8,0 @@

6

dist/index.js

@@ -152,3 +152,3 @@ import { ViewPlugin, Direction, EditorView, logException } from '@codemirror/view';

tooltipView.dom.classList.add("cm-tooltip");
if (tooltip.arrow && !tooltipView.dom.querySelector("cm-tooltip > cm-tooltip-arrow")) {
if (tooltip.arrow && !tooltipView.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")) {
let arrow = document.createElement("div");

@@ -192,4 +192,4 @@ arrow.className = "cm-tooltip-arrow";

pos.top >= Math.min(editor.bottom, space.bottom) ||
pos.right <= Math.max(editor.left, space.left) ||
pos.left >= Math.min(editor.right, space.right)) {
pos.right < Math.max(editor.left, space.left) - .1 ||
pos.left > Math.min(editor.right, space.right) + .1) {
dom.style.top = Outside;

@@ -196,0 +196,0 @@ continue;

{
"name": "@codemirror/tooltip",
"version": "0.19.13",
"version": "0.19.14",
"description": "Tooltip support for the CodeMirror code editor",

@@ -5,0 +5,0 @@ "scripts": {

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