@enact/core 5.0.0-alpha.2 → 5.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/handle/handle.d.ts +1 -1
- package/handle/handle.js +1 -1
- package/kind/kind.d.ts +1 -1
- package/kind/kind.js +1 -1
- package/package.json +1 -1
- package/usePublicClassNames/usePublicClassNames.js +1 -1
- package/util/util.d.ts +2 -2
- package/util/util.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
The following is a curated list of changes in the Enact core module, newest changes on the top.
|
|
4
4
|
|
|
5
|
+
## [5.0.0-alpha.3] - 2024-12-02
|
|
6
|
+
|
|
7
|
+
No significant changes.
|
|
8
|
+
|
|
9
|
+
## [4.9.4] - 2024-11-19
|
|
10
|
+
|
|
11
|
+
No significant changes.
|
|
12
|
+
|
|
13
|
+
## [4.9.3] - 2024-10-29
|
|
14
|
+
|
|
15
|
+
No significant changes.
|
|
16
|
+
|
|
5
17
|
## [5.0.0-alpha.2] - 2024-10-08
|
|
6
18
|
|
|
7
19
|
### Added
|
package/handle/handle.d.ts
CHANGED
|
@@ -496,7 +496,7 @@ export function log(message: string, ev: object): (args?: any[]) => true;
|
|
|
496
496
|
/**
|
|
497
497
|
* Invokes a method by name on the component to which is bound.
|
|
498
498
|
*
|
|
499
|
-
* If the methods
|
|
499
|
+
* If the methods exist on the object, it is called with the event, props, and context and its
|
|
500
500
|
return value is returned.
|
|
501
501
|
*
|
|
502
502
|
* If the method does not exist or handle isn't bound to an instance, it returns `false` .
|
package/handle/handle.js
CHANGED
|
@@ -618,7 +618,7 @@ var log = exports.log = handle.log = (0, _curry["default"])(function (message, e
|
|
|
618
618
|
/**
|
|
619
619
|
* Invokes a method by name on the component to which {@link core/handle.handle} is bound.
|
|
620
620
|
*
|
|
621
|
-
* If the methods
|
|
621
|
+
* If the methods exist on the object, it is called with the event, props, and context and its
|
|
622
622
|
* return value is returned.
|
|
623
623
|
*
|
|
624
624
|
* If the method does not exist or handle isn't bound to an instance, it returns `false`.
|
package/kind/kind.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface StylesBlock {
|
|
|
28
28
|
*/;
|
|
29
29
|
className?: string /**
|
|
30
30
|
* Specifies which class names are overridable.
|
|
31
|
-
If this value is `true` , all
|
|
31
|
+
If this value is `true` , all the class names of the component CSS will become public.
|
|
32
32
|
*/;
|
|
33
33
|
publicClassNames?: boolean | string | string[];
|
|
34
34
|
}
|
package/kind/kind.js
CHANGED
|
@@ -67,7 +67,7 @@ var NoContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
|
67
67
|
* @property {Object.<string, string>} css The CSS of the component
|
|
68
68
|
* @property {String} [className] The className of the component
|
|
69
69
|
* @property {Boolean|String|String[]} [publicClassNames] Specifies which class names are overridable.
|
|
70
|
-
* If this value is `true`, all
|
|
70
|
+
* If this value is `true`, all the class names of the component CSS will become public.
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
73
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/core",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.3",
|
|
4
4
|
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@ var _util = require("../util");
|
|
|
14
14
|
* @param {Object.<string, string>} [customCss] The supplied collection of CSS class names to the
|
|
15
15
|
* corresponding internal elements and states of the component
|
|
16
16
|
* @param {Boolean|String|String[]} [publicClassNames] The keys of public class names of the component
|
|
17
|
-
* If this value is `true`, all
|
|
17
|
+
* If this value is `true`, all the keys from the component
|
|
18
18
|
* CSS will become public class names.
|
|
19
19
|
* @returns {Object} A merged CSS
|
|
20
20
|
* @private
|
package/util/util.d.ts
CHANGED
|
@@ -157,8 +157,8 @@ export function mapAndFilterChildren(
|
|
|
157
157
|
/**
|
|
158
158
|
* Sets props that are missing or `undefined` to default values
|
|
159
159
|
*/
|
|
160
|
-
export function setDefaultProps(props:
|
|
160
|
+
export function setDefaultProps(props: object, defaultProps: object): object;
|
|
161
161
|
/**
|
|
162
162
|
* Performs shallow comparison for given objects.
|
|
163
163
|
*/
|
|
164
|
-
export function shallowEqual(a:
|
|
164
|
+
export function shallowEqual(a: object, b: object): boolean;
|
package/util/util.js
CHANGED
|
@@ -284,8 +284,8 @@ var mapAndFilterChildren = exports.mapAndFilterChildren = function mapAndFilterC
|
|
|
284
284
|
* Sets props that are missing or `undefined` to default values
|
|
285
285
|
*
|
|
286
286
|
* @function
|
|
287
|
-
* @param {
|
|
288
|
-
* @param {
|
|
287
|
+
* @param {Object} props Props object
|
|
288
|
+
* @param {Object} defaultProps Default value object
|
|
289
289
|
*
|
|
290
290
|
* @returns {Object} Props with default values
|
|
291
291
|
* @memberof core/util
|
|
@@ -307,8 +307,8 @@ var setDefaultProps = exports.setDefaultProps = function setDefaultProps(props)
|
|
|
307
307
|
* Performs shallow comparison for given objects.
|
|
308
308
|
*
|
|
309
309
|
* @function
|
|
310
|
-
* @param {
|
|
311
|
-
* @param {
|
|
310
|
+
* @param {Object} a An object to compare.
|
|
311
|
+
* @param {Object} b An object to compare.
|
|
312
312
|
*
|
|
313
313
|
* @returns {Boolean} `true` if the values of all keys are strictly equal.
|
|
314
314
|
* @memberof core/util
|