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.6 to 4.7.7

4

CHANGELOG.md

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

## [4.7.7] - 2023-11-09
No significant changes.
## [4.7.6] - 2023-09-20

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

2

dispatcher/dispatcher.d.ts

@@ -20,3 +20,3 @@ // Type definitions for core/dispatcher

fn: Function,
target?: React.ReactNode
target?: React.ReactNode,
): Function;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -19,3 +19,3 @@ // Type definitions for core/handle

props: { [key: string]: any },
context: { [key: string]: any }
context: { [key: string]: any },
): void;

@@ -30,3 +30,3 @@ }

props: { [key: string]: any },
context: { [key: string]: any }
context: { [key: string]: any },
): any;

@@ -123,3 +123,3 @@ }

export function forEventProp(
prop: string
prop: string,
): (value: any) => (ev: object) => boolean;

@@ -321,3 +321,3 @@ /**

ev: object,
props: object
props: object,
): boolean;

@@ -338,3 +338,3 @@ /**

export function forProp(
prop: string
prop: string,
): (value: any, ev: object, props: object) => boolean;

@@ -355,3 +355,3 @@ /**

export function forProp(
prop: string
prop: string,
): (value: any) => (ev: object, props: object) => boolean;

@@ -372,3 +372,3 @@ /**

export function forProp(
prop: string
prop: string,
): (value: any) => (ev: object) => (props: object) => boolean;

@@ -389,3 +389,3 @@ /**

export function forProp(
prop: string
prop: string,
): (value: any, ev: object) => (props: object) => boolean;

@@ -407,3 +407,3 @@ /**

prop: string,
value: any
value: any,
): (ev: object, props: object) => boolean;

@@ -425,3 +425,3 @@ /**

prop: string,
value: any
value: any,
): (ev: object) => (props: object) => boolean;

@@ -444,3 +444,3 @@ /**

value: any,
ev: object
ev: object,
): (props: object) => boolean;

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

adapter: EventAdapter,
handler: HandlerFunction
handler: HandlerFunction,
): HandlerFunction;

@@ -586,3 +586,3 @@ /**

export function adaptEvent(
adapter: EventAdapter
adapter: EventAdapter,
): (handler: HandlerFunction) => HandlerFunction;

@@ -613,3 +613,3 @@ /**

name: string,
adapter?: EventAdapter
adapter?: EventAdapter,
): HandlerFunction;

@@ -616,0 +616,0 @@ /**

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -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(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 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 _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 = function hoc(defaultConfig, hawk) {
var hoc = exports.hoc = function hoc(defaultConfig, hawk) {
// normalize arguments to allow defaultConfig to be omitted

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

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

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

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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 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 _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(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 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 _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 = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) {
var ApiDecorator = exports.ApiDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) {
var _class;

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

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

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

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

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

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

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

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

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

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

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

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

@@ -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(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 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 _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 = oneOrArray(addOne);
var add = exports.add = oneOrArray(addOne);

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

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

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

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

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

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

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

*/
exports.removeAll = removeAll;
var is = (0, _curry["default"])(function (name, keyCode) {
var is = exports.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 = function computed(cfg, optProps) {
var computed = exports.computed = function computed(cfg, optProps) {
var keys = Object.keys(cfg);

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

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

@@ -16,3 +16,3 @@ // Type definitions for core/kind

props: { [key: string]: any },
context: { [key: string]: any }
context: { [key: string]: any },
): void;

@@ -27,4 +27,3 @@ }

*/
css: { [key: string]: string }
/**
css: { [key: string]: string } /**
* The className of the component

@@ -42,20 +41,15 @@ */;

*/
name?: string
/**
name?: string /**
* Boolean controlling whether the returned component should be a functional component
*/;
functional?: boolean
/**
functional?: boolean /**
* Specifies expected props
*/;
propTypes?: { [key: string]: Function }
/**
propTypes?: { [key: string]: Function } /**
* Sets the default props
*/;
defaultProps?: { [key: string]: any }
/**
defaultProps?: { [key: string]: any } /**
* Specifies context type
*/;
contextType?: object
/**
contextType?: object /**
* Configures styles with the static className to merge with user className

@@ -67,8 +61,6 @@ */;

*/;
handlers?: { [key: string]: HandlerFunction }
/**
handlers?: { [key: string]: HandlerFunction } /**
* Adds some computed properties, these are added to props passed to `render()`
*/;
computed?: { [key: string]: ComputedPropFunction }
/**
computed?: { [key: string]: ComputedPropFunction } /**
* The render function

@@ -75,0 +67,0 @@ */;

@@ -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(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 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 _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 = function kind(config) {
var kind = exports.kind = function kind(config) {
var cfgComputed = config.computed,

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

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

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

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

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

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

@@ -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(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 _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 _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(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 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 _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 = function addInternalProp(props, name, value) {
var addInternalProp = exports.addInternalProp = function addInternalProp(props, name, value) {
Object.defineProperty(props, name, {

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

return props;
};
exports.addInternalProp = addInternalProp;
};
{
"name": "@enact/core",
"version": "4.7.6",
"version": "4.7.7",
"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": {

@@ -10,24 +10,18 @@ // Type definitions for core/platform

*/
extra?: object
/**
extra?: object /**
* `true` if the platform has native double-finger events
*/;
gesture: boolean
/**
gesture: boolean /**
* `true` only if `window` is `undefined`
*/;
node: boolean
/**
node: boolean /**
* The name of the platform, if detected
*/;
platformName?: string
/**
platformName?: string /**
* `true` if the platform has native single-finger events
*/;
touch: boolean
/**
touch: boolean /**
* `true` if the platform has a touch screen
*/;
touchscreen: boolean
/**
touchscreen: boolean /**
* `true` for any unknown system

@@ -34,0 +28,0 @@ */;

@@ -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(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 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 _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 = function parseUserAgent(userAgent) {
var parseUserAgent = exports.parseUserAgent = function parseUserAgent(userAgent) {
var plat = {

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

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

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

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

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

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

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

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

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

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

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

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

@@ -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 = /*#__PURE__*/function () {
var Handlers = exports.Handlers = /*#__PURE__*/function () {
function Handlers(_handlers) {

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

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

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

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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 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 _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,3 +30,2 @@ "use strict";

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

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

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

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

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

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

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

@@ -11,11 +11,9 @@ // Type definitions for core/util

export declare class Job {
constructor
/**
constructor /**
* Function to execute as the requested job.
*/(
fn: Function
/**
fn: Function /**
* The number of milliseconds to wait before starting the job.
*/,
timeout: number
timeout: number,
);

@@ -141,3 +139,3 @@ /**

additiveMap: object,
allowedClassNames?: string[]
allowedClassNames?: string[],
): object;

@@ -159,3 +157,3 @@ /**

callback: Function,
filter?: Function
filter?: Function,
): any;

@@ -162,0 +160,0 @@ /**

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -337,3 +327,2 @@ 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