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

@kognity/vue-yellow-marker

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kognity/vue-yellow-marker - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "@kognity/vue-yellow-marker",
"version": "0.1.1",
"version": "0.1.2",
"description": "Adds a text selection and highlighting functionality to your Vue components",

@@ -5,0 +5,0 @@ "main": "./dist/vue-yellow-marker.umd.min.js",

@@ -24,3 +24,3 @@ # Vue Yellow Marker

```
See [live examples in codesandbox](https://codesandbox.io/s/github/harabchuk/vue-yellow-marker-examples/tree/master/)
See [live examples in codesandbox](https://codesandbox.io/s/vue-yellow-marker-examples-1897o)

@@ -27,0 +27,0 @@ ## License

@@ -75,2 +75,3 @@ import Vue from "vue";

this.removeSelectionMenu();
console.log('Selection not allowed');
return;

@@ -139,2 +140,3 @@ }

createMenu(menuComponent, actions, props = {}) {
console.log('Creating menu component');
const ComponentBuilder = Vue.extend(Object.assign(menuComponent));

@@ -159,2 +161,3 @@ const menu = new ComponentBuilder({ propsData: props });

const menu = this.hlConfig.menus.selection;
console.log('Creating menu', menu);
const actions = menu.actions;

@@ -169,2 +172,3 @@ // Add a range by the end of the selection

range.insertNode(this.hlSelectionMenu.$el);
console.log('Inserted menu into DOM');
}

@@ -171,0 +175,0 @@ }

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