@thi.ng/rdom 1.7.1 → 1.7.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 +9 -1
- package/README.md +3 -2
- package/dom.js +4 -4
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-
|
|
3
|
+
- **Last updated**: 2024-09-19T21:09:34Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,14 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [1.7.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.3) (2024-09-19)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- fix selection update in __updateValueAttrib() ([dada2de](https://github.com/thi-ng/umbrella/commit/dada2de))
|
|
17
|
+
- don't update selection (cursor pos) when updating disabled elements
|
|
18
|
+
- workaround for Safari focus issue
|
|
19
|
+
|
|
12
20
|
## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.0) (2024-08-28)
|
|
13
21
|
|
|
14
22
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -315,7 +315,7 @@ Browser ESM import:
|
|
|
315
315
|
|
|
316
316
|
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
317
317
|
|
|
318
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 4.
|
|
318
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 4.27 KB
|
|
319
319
|
|
|
320
320
|
## Dependencies
|
|
321
321
|
|
|
@@ -332,7 +332,7 @@ Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
|
332
332
|
|
|
333
333
|
## Usage examples
|
|
334
334
|
|
|
335
|
-
|
|
335
|
+
49 projects in this repo's
|
|
336
336
|
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
337
337
|
directory are using this package:
|
|
338
338
|
|
|
@@ -342,6 +342,7 @@ directory are using this package:
|
|
|
342
342
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/bitmap-font.gif" width="240"/> | Figlet-style bitmap font creation with transducers | [Demo](https://demo.thi.ng/umbrella/bitmap-font/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/bitmap-font) |
|
|
343
343
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/blurhash.jpg" width="240"/> | Interactive & reactive image blurhash generator | [Demo](https://demo.thi.ng/umbrella/blurhash/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/blurhash) |
|
|
344
344
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/canvas-recorder.png" width="240"/> | Self-modifying, animated typographic grid with emergent complex patterns | [Demo](https://demo.thi.ng/umbrella/canvas-recorder/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/canvas-recorder) |
|
|
345
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/color-contrast.avif" width="240"/> | Tool to interactively compute & visualize color contrasts against WCAG threshold | [Demo](https://demo.thi.ng/umbrella/color-contrast/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/color-contrast) |
|
|
345
346
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/color-themes.png" width="240"/> | Probabilistic color theme generator | [Demo](https://demo.thi.ng/umbrella/color-themes/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/color-themes) |
|
|
346
347
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/csp-bus.png" width="240"/> | CSP channel-based event handling, async transducers & reactive UI components | [Demo](https://demo.thi.ng/umbrella/csp-bus/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/csp-bus) |
|
|
347
348
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/dominant-colors.png" width="240"/> | Color palette generation via dominant color extraction from uploaded images | [Demo](https://demo.thi.ng/umbrella/dominant-colors/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/dominant-colors) |
|
package/dom.js
CHANGED
|
@@ -156,7 +156,6 @@ const __setAttrib = (el, id, val, attribs) => {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
const __updateValueAttrib = (el, value) => {
|
|
159
|
-
let ev;
|
|
160
159
|
switch (el.type) {
|
|
161
160
|
case "text":
|
|
162
161
|
case "textarea":
|
|
@@ -165,10 +164,11 @@ const __updateValueAttrib = (el, value) => {
|
|
|
165
164
|
case "number":
|
|
166
165
|
case "url":
|
|
167
166
|
case "tel":
|
|
168
|
-
if (
|
|
169
|
-
const
|
|
167
|
+
if (el.value !== void 0 && isString(value)) {
|
|
168
|
+
const start = el.selectionStart;
|
|
169
|
+
const end = el.selectionEnd;
|
|
170
170
|
el.value = value;
|
|
171
|
-
el.
|
|
171
|
+
!el.disabled && el.setSelectionRange(start, end);
|
|
172
172
|
break;
|
|
173
173
|
}
|
|
174
174
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rdom",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@thi.ng/api": "^8.11.
|
|
41
|
-
"@thi.ng/checks": "^3.6.
|
|
42
|
-
"@thi.ng/errors": "^2.5.
|
|
43
|
-
"@thi.ng/hiccup": "^5.2.
|
|
44
|
-
"@thi.ng/paths": "^5.1.
|
|
45
|
-
"@thi.ng/prefixes": "^2.3.
|
|
46
|
-
"@thi.ng/rstream": "^9.0.
|
|
47
|
-
"@thi.ng/strings": "^3.8.
|
|
40
|
+
"@thi.ng/api": "^8.11.10",
|
|
41
|
+
"@thi.ng/checks": "^3.6.12",
|
|
42
|
+
"@thi.ng/errors": "^2.5.16",
|
|
43
|
+
"@thi.ng/hiccup": "^5.2.13",
|
|
44
|
+
"@thi.ng/paths": "^5.1.90",
|
|
45
|
+
"@thi.ng/prefixes": "^2.3.27",
|
|
46
|
+
"@thi.ng/rstream": "^9.0.4",
|
|
47
|
+
"@thi.ng/strings": "^3.8.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@microsoft/api-extractor": "^7.47.
|
|
51
|
-
"esbuild": "^0.23.
|
|
52
|
-
"typedoc": "^0.26.
|
|
53
|
-
"typescript": "^5.
|
|
50
|
+
"@microsoft/api-extractor": "^7.47.9",
|
|
51
|
+
"esbuild": "^0.23.1",
|
|
52
|
+
"typedoc": "^0.26.7",
|
|
53
|
+
"typescript": "^5.6.2"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"async",
|
|
@@ -146,5 +146,5 @@
|
|
|
146
146
|
],
|
|
147
147
|
"year": 2020
|
|
148
148
|
},
|
|
149
|
-
"gitHead": "
|
|
149
|
+
"gitHead": "b52baa3750ddd1256892df966ab7ac9b4806a9ef\n"
|
|
150
150
|
}
|