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

@codemirror/panel

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/panel - npm Package Compare versions

Comparing version 0.19.0 to 0.19.1

6

CHANGELOG.md

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

## 0.19.1 (2021-12-16)
### New features
Panels can now define a `destroy` method that will be called when they are removed from the view.
## 0.19.0 (2021-08-11)

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

@@ -38,2 +38,7 @@ import { ViewUpdate, EditorView } from '@codemirror/view';

/**
Called when the panel is removed from the editor or the editor
is destroyed.
*/
destroy?(): void;
/**
Whether the panel should be at the top or bottom of the editor.

@@ -40,0 +45,0 @@ Defaults to false.

3

dist/index.js

@@ -110,2 +110,5 @@ import { ViewPlugin, PluginField, EditorView } from '@codemirror/view';

sync(panels) {
for (let p of this.panels)
if (p.destroy && panels.indexOf(p) < 0)
p.destroy();
this.panels = panels;

@@ -112,0 +115,0 @@ this.syncDOM();

2

package.json
{
"name": "@codemirror/panel",
"version": "0.19.0",
"version": "0.19.1",
"description": "UI panels 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