@thi.ng/hdom-components 5.1.30 → 5.1.32
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 +7 -10
- package/button-group.d.ts +1 -1
- package/button.d.ts +1 -1
- package/canvas.d.ts +4 -4
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/hdom-components)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -24,7 +24,7 @@ This project is part of the
|
|
|
24
24
|
|
|
25
25
|
## About
|
|
26
26
|
|
|
27
|
-
Raw, skinnable UI & SVG components for
|
|
27
|
+
Raw, skinnable UI & SVG components for @thi.ng/hdom
|
|
28
28
|
|
|
29
29
|
A growing collection of unstyled, re-usable & customizable components
|
|
30
30
|
for use with
|
|
@@ -59,11 +59,8 @@ ES module import:
|
|
|
59
59
|
|
|
60
60
|
For Node.js REPL:
|
|
61
61
|
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
node --experimental-repl-await
|
|
65
|
-
|
|
66
|
-
> const hdomComponents = await import("@thi.ng/hdom-components");
|
|
62
|
+
```js
|
|
63
|
+
const hdomComponents = await import("@thi.ng/hdom-components");
|
|
67
64
|
```
|
|
68
65
|
|
|
69
66
|
Package sizes (brotli'd, pre-treeshake): ESM: 2.06 KB
|
|
@@ -128,7 +125,7 @@ A selection:
|
|
|
128
125
|
|
|
129
126
|
## Authors
|
|
130
127
|
|
|
131
|
-
Karsten Schmidt
|
|
128
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
132
129
|
|
|
133
130
|
If this project contributes to an academic publication, please cite it as:
|
|
134
131
|
|
|
@@ -143,4 +140,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
143
140
|
|
|
144
141
|
## License
|
|
145
142
|
|
|
146
|
-
© 2018 - 2022 Karsten Schmidt // Apache
|
|
143
|
+
© 2018 - 2022 Karsten Schmidt // Apache License 2.0
|
package/button-group.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface ButtonGroupItem extends Array<any> {
|
|
|
47
47
|
[0]: ButtonArgs;
|
|
48
48
|
[id: number]: any;
|
|
49
49
|
}
|
|
50
|
-
export
|
|
50
|
+
export type ButtonGroup = (_: any, args: ButtonGroupArgs, ...buttons: ButtonGroupItem[]) => any;
|
|
51
51
|
/**
|
|
52
52
|
* Higher order function to create a new stateless button group
|
|
53
53
|
* component, pre-configured via user supplied options. The returned
|
package/button.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface ButtonArgs {
|
|
|
33
33
|
attribs?: IObjectOf<any>;
|
|
34
34
|
disabled?: boolean;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type Button = (_: any, args: ButtonArgs, ...body: any[]) => any;
|
|
37
37
|
/**
|
|
38
38
|
* Higher order function to create a new stateless button component,
|
|
39
39
|
* pre-configured via user supplied options. The returned component
|
package/canvas.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type CanvasContext = CanvasRenderingContext2D | WebGLRenderingContext | WebGL2RenderingContext;
|
|
2
2
|
interface Canvas2DContextAttributes {
|
|
3
3
|
alpha?: boolean;
|
|
4
4
|
storage?: boolean;
|
|
@@ -7,9 +7,9 @@ interface Canvas2DContextAttributes {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* User provided canvas life cycle methods. These differ from the usual
|
|
10
|
-
*
|
|
11
|
-
* least the canvas DOM element, canvas context
|
|
12
|
-
* Not all handlers need to be implemented.
|
|
10
|
+
* [`ILifecycle`](https://docs.thi.ng/umbrella/hdom/interfaces/ILifecycle.html)
|
|
11
|
+
* methods and are always passed at least the canvas DOM element, canvas context
|
|
12
|
+
* and hdom user context. Not all handlers need to be implemented.
|
|
13
13
|
*/
|
|
14
14
|
export interface CanvasHandlers<T extends CanvasContext> {
|
|
15
15
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hdom-components",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.32",
|
|
4
4
|
"description": "Raw, skinnable UI & SVG components for @thi.ng/hdom",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/adapt-dpi": "^2.2.
|
|
38
|
-
"@thi.ng/api": "^8.
|
|
39
|
-
"@thi.ng/checks": "^3.3.
|
|
40
|
-
"@thi.ng/math": "^5.3.
|
|
41
|
-
"@thi.ng/transducers": "^8.3.
|
|
42
|
-
"@thi.ng/transducers-stats": "^2.1.
|
|
37
|
+
"@thi.ng/adapt-dpi": "^2.2.4",
|
|
38
|
+
"@thi.ng/api": "^8.6.1",
|
|
39
|
+
"@thi.ng/checks": "^3.3.5",
|
|
40
|
+
"@thi.ng/math": "^5.3.17",
|
|
41
|
+
"@thi.ng/transducers": "^8.3.27",
|
|
42
|
+
"@thi.ng/transducers-stats": "^2.1.32"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@microsoft/api-extractor": "^7.33.
|
|
46
|
-
"@thi.ng/testament": "^0.3.
|
|
45
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
46
|
+
"@thi.ng/testament": "^0.3.7",
|
|
47
47
|
"rimraf": "^3.0.2",
|
|
48
48
|
"tools": "^0.0.1",
|
|
49
|
-
"typedoc": "^0.23.
|
|
50
|
-
"typescript": "^4.
|
|
49
|
+
"typedoc": "^0.23.22",
|
|
50
|
+
"typescript": "^4.9.4"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"browser",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"status": "beta",
|
|
111
111
|
"year": 2018
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
114
114
|
}
|