@enact/core
Advanced tools
Comparing version 3.0.0-beta.2 to 3.0.0-rc.1
@@ -5,2 +5,6 @@ # Change Log | ||
## [3.0.0-rc.1] - 2019-07-31 | ||
No significant changes. | ||
## [3.0.0-beta.2] - 2019-07-23 | ||
@@ -7,0 +11,0 @@ |
@@ -15,3 +15,3 @@ "use strict"; | ||
/** | ||
* Provides methods to add and remove global event listeners | ||
* Provides methods to add and remove global event listeners. | ||
* | ||
@@ -83,3 +83,3 @@ * @module core/dispatcher | ||
* @param {Function} fn Event handler | ||
* @param {Node} [target=`document`] Event listener target | ||
* @param {Node} [target='document'] Event listener target | ||
* | ||
@@ -143,4 +143,4 @@ * @returns {undefined} | ||
* | ||
* @returns {Function} The single-use handler which can be passed to `off` to | ||
* remove it. | ||
* @returns {Function} The single-use handler. To remove the handler manually, call | ||
* the `off()` function with this as the 2nd parameter. | ||
* @memberof core/dispatcher | ||
@@ -147,0 +147,0 @@ * @public |
@@ -549,3 +549,3 @@ "use strict"; | ||
* | ||
* @see core/keymap | ||
* @see {@link core/keymap} | ||
* @method forKey | ||
@@ -552,0 +552,0 @@ * @param {String} name Name from {@link core/keymap} |
@@ -28,3 +28,3 @@ // Type definitions for core/kind | ||
export interface KindConfig { | ||
name: string; | ||
name?: string; | ||
propTypes?: { [key: string]: Function }; | ||
@@ -61,3 +61,8 @@ defaultProps?: { [key: string]: any }; | ||
}, | ||
// add some computed properties | ||
// add event handlers that are cached between calls to prevent recreating each call. Any | ||
// handlers are added to the props passed to `render()`. See core/handle. | ||
handlers: { | ||
onKeyDown: (evt, props) => { .... } | ||
}, | ||
// add some computed properties, these are added to props passed to `render()` | ||
computed: { | ||
@@ -64,0 +69,0 @@ // border color will be the color prepended by 'light' |
@@ -75,3 +75,3 @@ "use strict"; | ||
* @memberof core/kind | ||
* @property {String} name | ||
* @property {String} [name] | ||
* @property {Object.<string, Function>} [propTypes] | ||
@@ -109,3 +109,8 @@ * @property {Object.<string, any>} [defaultProps] | ||
* }, | ||
* // add some computed properties | ||
* // add event handlers that are cached between calls to prevent recreating each call. Any | ||
* // handlers are added to the props passed to `render()`. See core/handle. | ||
* handlers: { | ||
* onKeyDown: (evt, props) => { .... } | ||
* }, | ||
* // add some computed properties, these are added to props passed to `render()` | ||
* computed: { | ||
@@ -135,2 +140,3 @@ * // border color will be the color prepended by 'light' | ||
* @memberof core/kind | ||
* @see {@link core/handle} | ||
* @public | ||
@@ -137,0 +143,0 @@ */ |
{ | ||
"name": "@enact/core", | ||
"version": "3.0.0-beta.2", | ||
"version": "3.0.0-rc.1", | ||
"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 @@ "main": "index.js", |
@@ -8,4 +8,8 @@ // Type definitions for core/platform | ||
/** | ||
* Additional information about the detected platform | ||
*/ | ||
extra?: object | ||
/** | ||
* `true` if the platform has native double-finger events | ||
*/ | ||
*/; | ||
gesture: boolean | ||
@@ -17,5 +21,5 @@ /** | ||
/** | ||
* The name of the platform | ||
* The name of the platform, if detected | ||
*/; | ||
platformName: string | ||
platformName?: string | ||
/** | ||
@@ -22,0 +26,0 @@ * `true` if the platform has native single-finger events |
@@ -225,5 +225,6 @@ "use strict"; | ||
* @typedef {Object} PlatformDescription | ||
* @property {Object} [extra] - Additional information about the detected platform | ||
* @property {Boolean} gesture - `true` if the platform has native double-finger events | ||
* @property {Boolean} node - `true` only if `window` is `undefined` | ||
* @property {String} platformName - The name of the platform | ||
* @property {String} [platformName] - The name of the platform, if detected | ||
* @property {Boolean} touch - `true` if the platform has native single-finger events | ||
@@ -230,0 +231,0 @@ * @property {Boolean} unknown - `true` for any unknown system |
178693
4710