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

@github/text-expander-element

Package Overview
Dependencies
Maintainers
20
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/text-expander-element - npm Package Compare versions

Comparing version 2.2.2 to 2.3.0

1

dist/bundle.js

@@ -413,2 +413,3 @@ const ctrlBindings = !!navigator.userAgent.match(/Macintosh/);

this.match = null;
this.expander.dispatchEvent(new CustomEvent('text-expander-committed', { cancelable: false, detail: { input: this.input } }));
}

@@ -415,0 +416,0 @@ onBlur() {

@@ -243,2 +243,3 @@ import Combobox from '@github/combobox-nav';

this.match = null;
this.expander.dispatchEvent(new CustomEvent('text-expander-committed', { cancelable: false, detail: { input: this.input } }));
}

@@ -245,0 +246,0 @@ onBlur() {

@@ -96,2 +96,3 @@ import Combobox from '@github/combobox-nav';

this.match = null;
this.expander.dispatchEvent(new CustomEvent('text-expander-committed', { cancelable: false, detail: { input: this.input } }));
}

@@ -98,0 +99,0 @@ onBlur() {

3

package.json
{
"name": "@github/text-expander-element",
"version": "2.2.2",
"version": "2.3.0",
"description": "Activates a suggestion menu to expand text snippets as you type.",

@@ -37,2 +37,3 @@ "repository": "github/text-expander-element",

"chai": "^4.3.4",
"chromium": "^3.0.3",
"eslint": "^7.24.0",

@@ -39,0 +40,0 @@ "eslint-plugin-github": "^4.1.3",

@@ -94,2 +94,14 @@ # <text-expander> element

**`text-expander-committed`** is fired after the underlying `input` value has been updated in the DOM. In `event.detail` you can find:
- `input`: The `HTMLInputElement` or `HTMLTextAreaElement` that just had `value` changes committed to the DOM.
```js
const expander = document.querySelector('text-expander')
expander.addEventListener('text-expander-committed', function(event) {
const {input} = event.detail
})
```
## Browser support

@@ -96,0 +108,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