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

@enact/core

Package Overview
Dependencies
Maintainers
1
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enact/core - npm Package Compare versions

Comparing version 4.7.7 to 4.7.8

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [4.7.8] - 2023-11-17
No significant changes.
## [4.7.7] - 2023-11-09

@@ -7,0 +11,0 @@

14

dispatcher/dispatcher.js

@@ -32,3 +32,3 @@ "use strict";

*/
var setDefaultTargetById = exports.setDefaultTargetById = function setDefaultTargetById(id) {
var setDefaultTargetById = function setDefaultTargetById(id) {
defaultTarget = typeof document === 'object' && document.querySelector('#' + id) || defaultTarget;

@@ -49,2 +49,3 @@ rootId = id;

*/
exports.setDefaultTargetById = setDefaultTargetById;
var getDefaultTarget = function getDefaultTarget() {

@@ -108,3 +109,3 @@ if (!defaultTarget && rootId) {

*/
var on = exports.on = function on(name, fn) {
var on = function on(name, fn) {
var target = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : getDefaultTarget();

@@ -131,3 +132,4 @@ if (target) {

*/
var off = exports.off = function off(name, fn) {
exports.on = on;
var off = function off(name, fn) {
var target = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : getDefaultTarget();

@@ -159,3 +161,4 @@ if (target) {

*/
var once = exports.once = function once(name, fn, target) {
exports.off = off;
var once = function once(name, fn, target) {
var onceFn = function onceFn(ev) {

@@ -167,2 +170,3 @@ fn(ev);

return onceFn;
};
};
exports.once = once;

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

var events = [];
var getListeners = exports.getListeners = function getListeners(target, name) {
var getListeners = function getListeners(target, name) {
var targetIndex = targets.indexOf(target);

@@ -19,3 +19,4 @@ if (targetIndex === -1) {

};
var addListener = exports.addListener = function addListener(target, name, fn) {
exports.getListeners = getListeners;
var addListener = function addListener(target, name, fn) {
var listeners = getListeners(target, name);

@@ -28,2 +29,4 @@ if (listeners.indexOf(fn) === -1) {

};
var _default = exports["default"] = getListeners;
exports.addListener = addListener;
var _default = getListeners;
exports["default"] = _default;

@@ -191,3 +191,3 @@ "use strict";

*/
var handle = exports.handle = function handle() {
var handle = function handle() {
for (var _len2 = arguments.length, handlers = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {

@@ -259,3 +259,4 @@ handlers[_key2] = arguments[_key2];

*/
var oneOf = exports.oneOf = handle.oneOf = function () {
exports.handle = handle;
var oneOf = handle.oneOf = function () {
for (var _len3 = arguments.length, handlers = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {

@@ -293,3 +294,4 @@ handlers[_key3] = arguments[_key3];

*/
var returnsTrue = exports.returnsTrue = handle.returnsTrue = function (handler) {
exports.oneOf = oneOf;
var returnsTrue = handle.returnsTrue = function (handler) {
if (handler && typeof handler === 'function') {

@@ -329,3 +331,4 @@ return named(function () {

*/
var callOnEvent = exports.callOnEvent = handle.callOnEvent = (0, _curry["default"])(function (methodName, ev) {
exports.returnsTrue = returnsTrue;
var callOnEvent = handle.callOnEvent = (0, _curry["default"])(function (methodName, ev) {
if (ev[methodName]) {

@@ -364,3 +367,4 @@ ev[methodName]();

*/
var forEventProp = exports.forEventProp = handle.forEventProp = (0, _curry["default"])(function (prop, value, ev) {
exports.callOnEvent = callOnEvent;
var forEventProp = handle.forEventProp = (0, _curry["default"])(function (prop, value, ev) {
return ev[prop] === value;

@@ -394,3 +398,4 @@ });

*/
var forward = exports.forward = handle.forward = (0, _curry["default"])(named(function (name, ev, props) {
exports.forEventProp = forEventProp;
var forward = handle.forward = (0, _curry["default"])(named(function (name, ev, props) {
var fn = props && props[name];

@@ -423,3 +428,4 @@ if (typeof fn === 'function') {

*/
var _preventDefault = exports.preventDefault = handle.preventDefault = callOnEvent('preventDefault');
exports.forward = forward;
var _preventDefault = handle.preventDefault = callOnEvent('preventDefault');

@@ -451,3 +457,4 @@ /**

*/
var forwardWithPrevent = exports.forwardWithPrevent = handle.forwardWithPrevent = (0, _curry["default"])(named(function (name, ev, props) {
exports.preventDefault = _preventDefault;
var forwardWithPrevent = handle.forwardWithPrevent = (0, _curry["default"])(named(function (name, ev, props) {
var prevented = false;

@@ -485,3 +492,4 @@ var wrappedEvent = Object.assign({}, ev, {

*/
var stop = exports.stop = handle.stop = named(callOnEvent('stopPropagation'), 'stop');
exports.forwardWithPrevent = forwardWithPrevent;
var stop = handle.stop = named(callOnEvent('stopPropagation'), 'stop');

@@ -509,3 +517,4 @@ /**

*/
var stopImmediate = exports.stopImmediate = handle.stopImmediate = callOnEvent('stopImmediatePropagation');
exports.stop = stop;
var stopImmediate = handle.stopImmediate = callOnEvent('stopImmediatePropagation');

@@ -534,3 +543,4 @@ /**

*/
var forKeyCode = exports.forKeyCode = handle.forKeyCode = forEventProp('keyCode');
exports.stopImmediate = stopImmediate;
var forKeyCode = handle.forKeyCode = forEventProp('keyCode');

@@ -561,3 +571,4 @@ /**

*/
var forKey = exports.forKey = handle.forKey = (0, _curry["default"])(function (name, ev) {
exports.forKeyCode = forKeyCode;
var forKey = handle.forKey = (0, _curry["default"])(function (name, ev) {
return (0, _keymap.is)(name, ev.keyCode);

@@ -590,3 +601,4 @@ });

*/
var forProp = exports.forProp = handle.forProp = (0, _curry["default"])(function (prop, value, ev, props) {
exports.forKey = forKey;
var forProp = handle.forProp = (0, _curry["default"])(function (prop, value, ev, props) {
return props[prop] === value;

@@ -619,3 +631,4 @@ });

*/
var log = exports.log = handle.log = (0, _curry["default"])(function (message, ev) {
exports.forProp = forProp;
var log = handle.log = (0, _curry["default"])(function (message, ev) {
if (process.env.NODE_ENV !== "production") {

@@ -670,3 +683,4 @@ var _console;

*/
var call = exports.call = function call(method) {
exports.log = log;
var call = function call(method) {
return named(function () {

@@ -710,3 +724,4 @@ if (this && this[method]) {

*/
var adaptEvent = exports.adaptEvent = handle.adaptEvent = (0, _curry["default"])(function (adapter, handler) {
exports.call = call;
var adaptEvent = handle.adaptEvent = (0, _curry["default"])(function (adapter, handler) {
return named(function (ev) {

@@ -753,3 +768,4 @@ for (var _len6 = arguments.length, args = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {

*/
var forwardCustom = exports.forwardCustom = handle.forwardCustom = function (name, adapter) {
exports.adaptEvent = adaptEvent;
var forwardCustom = handle.forwardCustom = function (name, adapter) {
return named(adaptEvent(function (ev) {

@@ -817,3 +833,4 @@ for (var _len7 = arguments.length, args = new Array(_len7 > 1 ? _len7 - 1 : 0), _key7 = 1; _key7 < _len7; _key7++) {

*/
var forwardCustomWithPrevent = exports.forwardCustomWithPrevent = handle.forwardCustomWithPrevent = function (name, adapter) {
exports.forwardCustom = forwardCustom;
var forwardCustomWithPrevent = handle.forwardCustomWithPrevent = function (name, adapter) {
return named(function (ev) {

@@ -873,3 +890,4 @@ for (var _len8 = arguments.length, args = new Array(_len8 > 1 ? _len8 - 1 : 0), _key8 = 1; _key8 < _len8; _key8++) {

*/
var not = exports.not = handle.not = function (handler) {
exports.forwardCustomWithPrevent = forwardCustomWithPrevent;
var not = handle.not = function (handler) {
return function () {

@@ -879,2 +897,4 @@ return !handler.apply(void 0, arguments);

};
var _default = exports["default"] = handle;
exports.not = not;
var _default = handle;
exports["default"] = _default;

@@ -19,4 +19,4 @@ "use strict";

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -23,0 +23,0 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }

@@ -68,3 +68,3 @@ "use strict";

*/
var hoc = exports.hoc = function hoc(defaultConfig, hawk) {
var hoc = function hoc(defaultConfig, hawk) {
// normalize arguments to allow defaultConfig to be omitted

@@ -97,2 +97,4 @@ var factory = hawk;

};
var _default = exports["default"] = hoc;
exports.hoc = hoc;
var _default = hoc;
exports["default"] = _default;

@@ -8,4 +8,4 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -12,0 +12,0 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }

@@ -12,4 +12,4 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -89,3 +89,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

*/
var ApiDecorator = exports.ApiDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) {
var ApiDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) {
var _class;

@@ -127,2 +127,4 @@ var api = config.api;

});
var _default = exports["default"] = ApiDecorator;
exports.ApiDecorator = ApiDecorator;
var _default = ApiDecorator;
exports["default"] = _default;

@@ -76,3 +76,3 @@ "use strict";

*/
var deprecate = exports.deprecate = function deprecate(thing, config) {
var deprecate = function deprecate(thing, config) {
if (process.env.NODE_ENV !== "production") {

@@ -102,2 +102,4 @@ if (!config) {

};
var _default = exports["default"] = deprecate;
exports.deprecate = deprecate;
var _default = deprecate;
exports["default"] = _default;

@@ -72,2 +72,3 @@ "use strict";

};
var _default = exports["default"] = EnactPropTypes;
var _default = EnactPropTypes;
exports["default"] = _default;

@@ -14,3 +14,3 @@ "use strict";

*/
var Registry = exports.Registry = {
var Registry = {
create: function create(handler) {

@@ -68,2 +68,4 @@ var instances = [];

};
var _default = exports["default"] = Registry;
exports.Registry = Registry;
var _default = Registry;
exports["default"] = _default;

@@ -12,4 +12,4 @@ "use strict";

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -16,0 +16,0 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -131,3 +131,3 @@ "use strict";

*/
var add = exports.add = oneOrArray(addOne);
var add = oneOrArray(addOne);

@@ -145,3 +145,4 @@ /**

*/
var addAll = exports.addAll = forEachObj(add);
exports.add = add;
var addAll = forEachObj(add);

@@ -160,3 +161,4 @@ /**

*/
var remove = exports.remove = oneOrArray(removeOne);
exports.addAll = addAll;
var remove = oneOrArray(removeOne);

@@ -174,3 +176,4 @@ /**

*/
var removeAll = exports.removeAll = forEachObj(remove);
exports.remove = remove;
var removeAll = forEachObj(remove);

@@ -189,5 +192,7 @@ /**

*/
var is = exports.is = (0, _curry["default"])(function (name, keyCode) {
exports.removeAll = removeAll;
var is = (0, _curry["default"])(function (name, keyCode) {
name = toLowerCase(name);
return name in map && map[name].indexOf(keyCode) >= 0;
});
});
exports.is = is;

@@ -32,3 +32,3 @@ "use strict";

*/
var computed = exports.computed = function computed(cfg, optProps) {
var computed = function computed(cfg, optProps) {
var keys = Object.keys(cfg);

@@ -52,2 +52,4 @@ var renderComputed = function renderComputed(props) {

};
var _default = exports["default"] = computed;
exports.computed = computed;
var _default = computed;
exports["default"] = _default;

@@ -23,4 +23,4 @@ "use strict";

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -148,3 +148,3 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }

*/
var kind = exports.kind = function kind(config) {
var kind = function kind(config) {
var cfgComputed = config.computed,

@@ -233,2 +233,4 @@ _config$contextType = config.contextType,

};
var _default = exports["default"] = kind;
exports.kind = kind;
var _default = kind;
exports["default"] = _default;

@@ -49,3 +49,3 @@ "use strict";

*/
var styles = exports.styles = function styles(cfg, optProps) {
var styles = function styles(cfg, optProps) {
var className = cfg.className,

@@ -91,2 +91,4 @@ configCss = cfg.css,

};
var _default = exports["default"] = styles;
exports.styles = styles;
var _default = styles;
exports["default"] = _default;

@@ -16,8 +16,8 @@ "use strict";

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -24,0 +24,0 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }

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

exports.addInternalProp = void 0;
var addInternalProp = exports.addInternalProp = function addInternalProp(props, name, value) {
var addInternalProp = function addInternalProp(props, name, value) {
Object.defineProperty(props, name, {

@@ -15,2 +15,3 @@ value: value,

return props;
};
};
exports.addInternalProp = addInternalProp;
{
"name": "@enact/core",
"version": "4.7.7",
"version": "4.7.8",
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",

@@ -5,0 +5,0 @@ "repository": {

@@ -16,4 +16,4 @@ "use strict";

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -223,3 +223,3 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }

var _platform;
var parseUserAgent = exports.parseUserAgent = function parseUserAgent(userAgent) {
var parseUserAgent = function parseUserAgent(userAgent) {
var plat = {

@@ -288,3 +288,4 @@ gesture: hasGesture(),

*/
var detect = exports.detect = function detect() {
exports.parseUserAgent = parseUserAgent;
var detect = function detect() {
if (_platform) {

@@ -312,3 +313,5 @@ // if we've already determined the platform, we'll use that determination

*/
var platform = exports.platform = {};
exports.detect = detect;
var platform = {};
exports.platform = platform;
['gesture', 'node', 'platformName', 'touch', 'touchscreen', 'unknown'].concat(_toConsumableArray((0, _uniq["default"])(platforms.map(function (p) {

@@ -325,2 +328,3 @@ return p.platform;

});
var _default = exports["default"] = platform;
var _default = platform;
exports["default"] = _default;

@@ -83,2 +83,3 @@ "use strict";

}
var _default = exports["default"] = onWindowReady;
var _default = onWindowReady;
exports["default"] = _default;

@@ -69,2 +69,3 @@ "use strict";

}
var _default = exports["default"] = useChainRefs;
var _default = useChainRefs;
exports["default"] = _default;

@@ -48,2 +48,3 @@ "use strict";

}
var _default = exports["default"] = useClass;
var _default = useClass;
exports["default"] = _default;

@@ -12,3 +12,3 @@ "use strict";

function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var Handlers = exports.Handlers = /*#__PURE__*/function () {
var Handlers = /*#__PURE__*/function () {
function Handlers(_handlers) {

@@ -45,2 +45,4 @@ var _this = this;

}();
var _default = exports["default"] = Handlers;
exports.Handlers = Handlers;
var _default = Handlers;
exports["default"] = _default;

@@ -8,4 +8,4 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -12,0 +12,0 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }

@@ -30,2 +30,3 @@ "use strict";

}
var _default = exports["default"] = useHandlers;
var _default = useHandlers;
exports["default"] = _default;

@@ -43,2 +43,3 @@ "use strict";

}
var _default = exports["default"] = usePublicClassNames;
var _default = usePublicClassNames;
exports["default"] = _default;

@@ -21,3 +21,3 @@ "use strict";

*/
var Job = exports.Job = /*#__PURE__*/function () {
var Job = /*#__PURE__*/function () {
/**

@@ -278,2 +278,4 @@ * @constructor

}();
var _default = exports["default"] = Job;
exports.Job = Job;
var _default = Job;
exports["default"] = _default;

@@ -50,3 +50,3 @@ "use strict";

*/
var cap = exports.cap = function cap(str) {
var cap = function cap(str) {
return str.slice(0, 1).toUpperCase() + str.slice(1);

@@ -69,3 +69,4 @@ };

*/
var clamp = exports.clamp = function clamp(min, max, value) {
exports.cap = cap;
var clamp = function clamp(min, max, value) {
if (min > max || value < min) return min;

@@ -91,3 +92,4 @@ if (value > max) return max;

*/
var coerceFunction = exports.coerceFunction = (0, _unless["default"])((0, _is["default"])(Function), _always["default"]);
exports.clamp = clamp;
var coerceFunction = (0, _unless["default"])((0, _is["default"])(Function), _always["default"]);

@@ -111,3 +113,4 @@ /**

*/
var coerceArray = exports.coerceArray = function coerceArray(array) {
exports.coerceFunction = coerceFunction;
var coerceArray = function coerceArray(array) {
return Array.isArray(array) ? array : [array];

@@ -126,3 +129,4 @@ };

*/
var isRenderable = exports.isRenderable = function isRenderable(tag) {
exports.coerceArray = coerceArray;
var isRenderable = function isRenderable(tag) {
return ReactIs.isValidElementType(tag);

@@ -144,3 +148,4 @@ };

*/
var extractAriaProps = exports.extractAriaProps = function extractAriaProps(props) {
exports.isRenderable = isRenderable;
var extractAriaProps = function extractAriaProps(props) {
var aria = {};

@@ -166,3 +171,4 @@ Object.keys(props).forEach(function (key) {

/* istanbul ignore next */
var perfNow = exports.perfNow = function perfNow() {
exports.extractAriaProps = extractAriaProps;
var perfNow = function perfNow() {
if (typeof window === 'object') {

@@ -204,3 +210,4 @@ return window.performance.now();

*/
var mergeClassNameMaps = exports.mergeClassNameMaps = function mergeClassNameMaps(baseMap, additiveMap, allowedClassNames) {
exports.perfNow = perfNow;
var mergeClassNameMaps = function mergeClassNameMaps(baseMap, additiveMap, allowedClassNames) {
var css = baseMap;

@@ -241,3 +248,4 @@ if (baseMap && additiveMap) {

*/
var memoize = exports.memoize = function memoize(fn) {
exports.mergeClassNameMaps = mergeClassNameMaps;
var memoize = function memoize(fn) {
var cache = {};

@@ -274,3 +282,4 @@ return function () {

*/
var mapAndFilterChildren = exports.mapAndFilterChildren = function mapAndFilterChildren(children, callback, filter) {
exports.memoize = memoize;
var mapAndFilterChildren = function mapAndFilterChildren(children, callback, filter) {
var result = _react.Children.map(children, function (child) {

@@ -304,3 +313,4 @@ if (child != null) {

*/
var shallowEqual = exports.shallowEqual = function shallowEqual(a, b) {
exports.mapAndFilterChildren = mapAndFilterChildren;
var shallowEqual = function shallowEqual(a, b) {
if (Object.is(a, b)) {

@@ -327,2 +337,3 @@ return true;

return true;
};
};
exports.shallowEqual = shallowEqual;
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