@thi.ng/api 8.6.0 → 8.6.2
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 +1 -1
- package/README.md +1 -1
- package/hiccup.d.ts +4 -4
- package/mixin.d.ts +5 -3
- package/mixin.js +5 -3
- package/mixins/ienable.d.ts +4 -5
- package/mixins/ienable.js +4 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/hiccup.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface IToHiccup {
|
|
2
2
|
/**
|
|
3
|
-
* Returns a
|
|
4
|
-
* `ctx` arg is an arbitrary user context
|
|
5
|
-
* hiccup components during serialization (or during
|
|
6
|
-
* update if used with
|
|
3
|
+
* Returns a [thi.ng/hiccup](https://thi.ng/hiccup) compatible
|
|
4
|
+
* representation. The optional `ctx` arg is an arbitrary user context
|
|
5
|
+
* object passed to all hiccup components during serialization (or during
|
|
6
|
+
* DOM creation / update if used with [thi.ng/hdom](https://thi.ng/hdom)).
|
|
7
7
|
*
|
|
8
8
|
* @param ctx - user context object
|
|
9
9
|
* @param attribs - user attribs
|
package/mixin.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Class behavior mixin based on:
|
|
3
|
-
*
|
|
3
|
+
* - http://raganwald.com/2015/06/26/decorators-in-es7.html
|
|
4
4
|
*
|
|
5
5
|
* Additionally only injects/overwrites properties in target, which are NOT
|
|
6
|
-
* marked with
|
|
7
|
-
*
|
|
6
|
+
* marked with
|
|
7
|
+
* [`@nomixin`](https://docs.thi.ng/umbrella/api/functions/nomixin.html) (i.e.
|
|
8
|
+
* those which haven't set their `configurable` property descriptor flag to
|
|
9
|
+
* `false`)
|
|
8
10
|
*
|
|
9
11
|
* @param behaviour - to mixin
|
|
10
12
|
* @param sharedBehaviour -
|
package/mixin.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Class behavior mixin based on:
|
|
3
|
-
*
|
|
3
|
+
* - http://raganwald.com/2015/06/26/decorators-in-es7.html
|
|
4
4
|
*
|
|
5
5
|
* Additionally only injects/overwrites properties in target, which are NOT
|
|
6
|
-
* marked with
|
|
7
|
-
*
|
|
6
|
+
* marked with
|
|
7
|
+
* [`@nomixin`](https://docs.thi.ng/umbrella/api/functions/nomixin.html) (i.e.
|
|
8
|
+
* those which haven't set their `configurable` property descriptor flag to
|
|
9
|
+
* `false`)
|
|
8
10
|
*
|
|
9
11
|
* @param behaviour - to mixin
|
|
10
12
|
* @param sharedBehaviour -
|
package/mixins/ienable.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Mixin class decorator, injects IEnable default implementation, incl.
|
|
3
|
-
*
|
|
4
|
-
* {@link
|
|
5
|
-
*
|
|
6
|
-
* events.
|
|
2
|
+
* Mixin class decorator, injects IEnable default implementation, incl. a
|
|
3
|
+
* `_enabled` property. If the target also implements the {@link INotify}
|
|
4
|
+
* interface, {@link IEnable.enable} and {@link IEnable.disable} will
|
|
5
|
+
* automatically emit the respective events.
|
|
7
6
|
*/
|
|
8
7
|
export declare const IEnableMixin: (clazz: any) => any;
|
|
9
8
|
//# sourceMappingURL=ienable.d.ts.map
|
package/mixins/ienable.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { EVENT_DISABLE, EVENT_ENABLE } from "../api.js";
|
|
2
2
|
import { mixin } from "../mixin.js";
|
|
3
3
|
/**
|
|
4
|
-
* Mixin class decorator, injects IEnable default implementation, incl.
|
|
5
|
-
*
|
|
6
|
-
* {@link
|
|
7
|
-
*
|
|
8
|
-
* events.
|
|
4
|
+
* Mixin class decorator, injects IEnable default implementation, incl. a
|
|
5
|
+
* `_enabled` property. If the target also implements the {@link INotify}
|
|
6
|
+
* interface, {@link IEnable.enable} and {@link IEnable.disable} will
|
|
7
|
+
* automatically emit the respective events.
|
|
9
8
|
*/
|
|
10
9
|
export const IEnableMixin = mixin({
|
|
11
10
|
_enabled: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/api",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.2",
|
|
4
4
|
"description": "Common, generic types, interfaces & mixins",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@microsoft/api-extractor": "^7.33.7",
|
|
41
|
-
"@thi.ng/testament": "^0.3.
|
|
41
|
+
"@thi.ng/testament": "^0.3.8",
|
|
42
42
|
"rimraf": "^3.0.2",
|
|
43
43
|
"tools": "^0.0.1",
|
|
44
44
|
"typedoc": "^0.23.22",
|
|
@@ -225,5 +225,5 @@
|
|
|
225
225
|
"default": "./watch.js"
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
|
-
"gitHead": "
|
|
228
|
+
"gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
|
|
229
229
|
}
|