@lukekaalim/act-web 3.1.0 → 3.2.1
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 +23 -0
- package/package.json +4 -4
- package/space.ts +6 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @lukekaalim/act-web
|
|
2
|
+
|
|
3
|
+
## 3.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0017c07: Fix packages emitting debugging console logs
|
|
8
|
+
- Updated dependencies [0017c07]
|
|
9
|
+
- @lukekaalim/act-backstage@1.2.1
|
|
10
|
+
- @lukekaalim/act-recon@1.1.1
|
|
11
|
+
|
|
12
|
+
## 3.2.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 4381035: Added error boundaries
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [4381035]
|
|
21
|
+
- @lukekaalim/act-backstage@1.2.0
|
|
22
|
+
- @lukekaalim/act-recon@1.1.0
|
|
23
|
+
- @lukekaalim/act@3.1.0
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukekaalim/act-web",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "mod.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@lukekaalim/act": "^3.
|
|
8
|
-
"@lukekaalim/act-recon": "^1.
|
|
9
|
-
"@lukekaalim/act-backstage": "^1.1
|
|
7
|
+
"@lukekaalim/act": "^3.1.0",
|
|
8
|
+
"@lukekaalim/act-recon": "^1.1.1",
|
|
9
|
+
"@lukekaalim/act-backstage": "^1.2.1"
|
|
10
10
|
}
|
|
11
11
|
}
|
package/space.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { createSimpleRenderSpace } from '@lukekaalim/act-backstage/mod.ts';
|
|
|
5
5
|
|
|
6
6
|
import { setProps } from './props.ts';
|
|
7
7
|
|
|
8
|
-
export const HTML: act.Component = ({ children }) => act.h(act.
|
|
9
|
-
export const SVG: act.Component = ({ children }) => act.h(act.
|
|
8
|
+
export const HTML: act.Component = ({ children }) => act.h(act.renderNodeType, { type: 'web:html' }, children);
|
|
9
|
+
export const SVG: act.Component = ({ children }) => act.h(act.renderNodeType, { type: 'web:svg' }, children);
|
|
10
10
|
|
|
11
11
|
export const createWebSpace = (tree: recon.CommitTree, root: HTMLElement, document: Document = window.document) => {
|
|
12
12
|
return createSimpleRenderSpace(tree, {
|
|
@@ -18,6 +18,7 @@ export const createWebSpace = (tree: recon.CommitTree, root: HTMLElement, docume
|
|
|
18
18
|
case 'symbol': {
|
|
19
19
|
switch (tag) {
|
|
20
20
|
case act.primitiveNodeTypes.string:
|
|
21
|
+
case act.primitiveNodeTypes.number:
|
|
21
22
|
return document.createTextNode("");
|
|
22
23
|
default:
|
|
23
24
|
return null;
|
|
@@ -41,6 +42,9 @@ export const createWebSpace = (tree: recon.CommitTree, root: HTMLElement, docume
|
|
|
41
42
|
link(el, parent) {
|
|
42
43
|
(parent || root).appendChild(el);
|
|
43
44
|
},
|
|
45
|
+
unlink(el, parent) {
|
|
46
|
+
(parent || root).removeChild(el);
|
|
47
|
+
},
|
|
44
48
|
sort(el, newChildren) {
|
|
45
49
|
if (el instanceof Text)
|
|
46
50
|
return;
|