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

@instructure/ui-selectable

Package Overview
Dependencies
Maintainers
0
Versions
1474
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-selectable - npm Package Compare versions

Comparing version 8.56.5-pr-snapshot-1728655013879 to 8.56.5-pr-snapshot-1729507712924

2

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

## [8.56.5-pr-snapshot-1728655013879](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1728655013879) (2024-10-11)
## [8.56.5-pr-snapshot-1729507712924](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1729507712924) (2024-10-21)

@@ -9,0 +9,0 @@ **Note:** Version bump only for package @instructure/ui-selectable

@@ -10,7 +10,7 @@ "use strict";

var _keycode = _interopRequireDefault(require("keycode"));
var _uiDomUtils = require("@instructure/ui-dom-utils");
var _uiUtils = require("@instructure/ui-utils");
var _isActiveElement = require("@instructure/ui-dom-utils/lib/isActiveElement.js");
var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFunction.js");
var _console = require("@instructure/console");
var _props = require("./props");
var _uiReactUtils = require("@instructure/ui-react-utils");
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
var _dec, _class, _class2;

@@ -46,3 +46,3 @@ /*

**/
let Selectable = exports.Selectable = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec(_class = (_class2 = class Selectable extends _react.Component {
let Selectable = exports.Selectable = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec(_class = (_class2 = class Selectable extends _react.Component {
constructor(...args) {

@@ -70,3 +70,3 @@ super(...args);

} else {
if (!(0, _uiDomUtils.isActiveElement)(this._trigger)) {
if (!(0, _isActiveElement.isActiveElement)(this._trigger)) {
;

@@ -170,3 +170,3 @@ this._trigger.focus();

return {
onMouseDown: (0, _uiUtils.createChainedFunction)(event => {
onMouseDown: (0, _createChainedFunction.createChainedFunction)(event => {
// if we call preventDefault, label can't be selected and copied, so we only call it when the options are shown

@@ -195,3 +195,3 @@ if (event.target !== this._trigger && isShowingOptions) {

id: this._id,
ref: (0, _uiUtils.createChainedFunction)(ref, el => this._trigger = el),
ref: (0, _createChainedFunction.createChainedFunction)(ref, el => this._trigger = el),
'aria-haspopup': 'listbox',

@@ -202,5 +202,5 @@ 'aria-expanded': isShowingOptions,

'aria-activedescendant': isShowingOptions ? highlightedOptionId : void 0,
onKeyDown: (0, _uiUtils.createChainedFunction)(this.handleKeyDown, onKeyDown),
onKeyUp: (0, _uiUtils.createChainedFunction)(this.handleKeyUp, onKeyUp),
onClick: (0, _uiUtils.createChainedFunction)(this.handleOpenClose, onClick),
onKeyDown: (0, _createChainedFunction.createChainedFunction)(this.handleKeyDown, onKeyDown),
onKeyUp: (0, _createChainedFunction.createChainedFunction)(this.handleKeyUp, onKeyUp),
onClick: (0, _createChainedFunction.createChainedFunction)(this.handleOpenClose, onClick),
...rest

@@ -229,6 +229,6 @@ };

role: 'listbox',
onMouseDown: (0, _uiUtils.createChainedFunction)(event => {
onMouseDown: (0, _createChainedFunction.createChainedFunction)(event => {
event.preventDefault(); // prevent trigger from losing focus
}, onMouseDown),
onClick: (0, _uiUtils.createChainedFunction)(event => {
onClick: (0, _createChainedFunction.createChainedFunction)(event => {
// prevent synthetic event from firing on the document

@@ -253,3 +253,3 @@ // this event could inadvertently close a parent dialog

'aria-selected': this.isSelectedOption(id) ? 'true' : 'false',
onClick: (0, _uiUtils.createChainedFunction)(event => {
onClick: (0, _createChainedFunction.createChainedFunction)(event => {
onRequestSelectOption === null || onRequestSelectOption === void 0 ? void 0 : onRequestSelectOption(event, {

@@ -259,3 +259,3 @@ id

}, onClick),
onMouseOver: (0, _uiUtils.createChainedFunction)(event => {
onMouseOver: (0, _createChainedFunction.createChainedFunction)(event => {
onRequestHighlightOption === null || onRequestHighlightOption === void 0 ? void 0 : onRequestHighlightOption(event, {

@@ -262,0 +262,0 @@ id

{
"name": "@instructure/ui-selectable",
"version": "8.56.5-pr-snapshot-1728655013879",
"version": "8.56.5-pr-snapshot-1729507712924",
"description": "A UI component library made by Instructure Inc.",

@@ -26,13 +26,13 @@ "author": "Instructure, Inc. Engineering and Product Design",

"devDependencies": {
"@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1728655013879",
"@instructure/ui-test-utils": "8.56.5-pr-snapshot-1728655013879"
"@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-test-utils": "8.56.5-pr-snapshot-1729507712924"
},
"dependencies": {
"@babel/runtime": "^7.23.2",
"@instructure/console": "8.56.5-pr-snapshot-1728655013879",
"@instructure/shared-types": "8.56.5-pr-snapshot-1728655013879",
"@instructure/ui-dom-utils": "8.56.5-pr-snapshot-1728655013879",
"@instructure/ui-react-utils": "8.56.5-pr-snapshot-1728655013879",
"@instructure/ui-testable": "8.56.5-pr-snapshot-1728655013879",
"@instructure/ui-utils": "8.56.5-pr-snapshot-1728655013879",
"@instructure/console": "8.56.5-pr-snapshot-1729507712924",
"@instructure/shared-types": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-dom-utils": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-react-utils": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-testable": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-utils": "8.56.5-pr-snapshot-1729507712924",
"keycode": "^2.2.1",

@@ -39,0 +39,0 @@ "prop-types": "^15.8.1"

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