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

ng2-mentions

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-mentions - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0

build/mention/caret-coords.d.ts

9

build/mention/mention-list.js

@@ -1,2 +0,2 @@

System.register(['angular2/core', './mention-utils'], function(exports_1, context_1) {
System.register(['angular2/core', './mention-utils', './caret-coords'], function(exports_1, context_1) {
"use strict";

@@ -13,3 +13,3 @@ var __moduleName = context_1 && context_1.id;

};
var core_1, mention_utils_1;
var core_1, mention_utils_1, caret_coords_1;
var MentionList;

@@ -23,2 +23,5 @@ return {

mention_utils_1 = mention_utils_1_1;
},
function (caret_coords_1_1) {
caret_coords_1 = caret_coords_1_1;
}],

@@ -38,3 +41,3 @@ execute: function() {

if (mention_utils_1.isInputOrTextAreaElement(nativeParentElement)) {
coords = getCaretCoordinates(nativeParentElement, nativeParentElement.selectionStart);
coords = caret_coords_1.getCaretCoordinates(nativeParentElement, nativeParentElement.selectionStart);
coords.top = nativeParentElement.offsetTop + coords.top + 16;

@@ -41,0 +44,0 @@ coords.left = nativeParentElement.offsetLeft + coords.left;

{
"name": "ng2-mentions",
"version": "0.1.9",
"version": "0.2.0",
"description": "Angular 2 mentions for text fields.",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -23,6 +23,5 @@ # Angular 2 Mentions

Add the CSS and JS dependencies your index.html:
Add the CSS to your index.html:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="ext/textarea-caret-position.js"></script>

@@ -29,0 +28,0 @@ Add the `[mention]` directive to your input element:

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