hyperclayjs 1.1.1 → 1.1.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/README.md +2 -2
- package/dom-utilities/All.js +7 -5
- package/hyperclay.js +3 -3
- package/module-dependency-graph.json +5 -4
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ import 'hyperclayjs/presets/standard.js';
|
|
|
93
93
|
|
|
94
94
|
| Module | Size | Description |
|
|
95
95
|
|--------|------|-------------|
|
|
96
|
-
| All.js (jQuery-like) | 13.
|
|
96
|
+
| All.js (jQuery-like) | 13.9KB | Full DOM manipulation library |
|
|
97
97
|
| DOM Ready | 0.2KB | DOM ready callback |
|
|
98
98
|
| Get Data From Form | 1.7KB | Extract form data as an object |
|
|
99
99
|
| Style Injection | 0.8KB | Dynamic stylesheet injection |
|
|
@@ -134,7 +134,7 @@ Standard feature set for most use cases
|
|
|
134
134
|
|
|
135
135
|
**Modules:** `save-core`, `save`, `admin`, `persist`, `ajax`, `events`, `helpers`, `toast`
|
|
136
136
|
|
|
137
|
-
### Everything (~616.
|
|
137
|
+
### Everything (~616.4KB)
|
|
138
138
|
All available features
|
|
139
139
|
|
|
140
140
|
Includes all available modules across all categories.
|
package/dom-utilities/All.js
CHANGED
|
@@ -343,13 +343,15 @@ const defaultPlugins = {
|
|
|
343
343
|
const All = new Proxy(function (selectorOrElements, contextSelector) {
|
|
344
344
|
// If there's a context selector, search within that context
|
|
345
345
|
if (arguments.length === 2) {
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
// Support both string selectors and element references as context
|
|
347
|
+
let contextElements;
|
|
348
|
+
if (typeof contextSelector === 'string') {
|
|
349
|
+
contextElements = Array.from(document.querySelectorAll(contextSelector));
|
|
350
|
+
} else {
|
|
351
|
+
// Convert element/array/document to element array
|
|
352
|
+
contextElements = toElementArray(contextSelector);
|
|
348
353
|
}
|
|
349
354
|
|
|
350
|
-
// Get the context element(s)
|
|
351
|
-
const contextElements = Array.from(document.querySelectorAll(contextSelector));
|
|
352
|
-
|
|
353
355
|
// If first arg is a string selector, search within each context
|
|
354
356
|
if (typeof selectorOrElements === 'string') {
|
|
355
357
|
const elements = contextElements.flatMap(context => {
|
package/hyperclay.js
CHANGED
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
]
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
|
-
"
|
|
307
|
+
"alljs": {
|
|
308
308
|
"path": "./dom-utilities/All.js",
|
|
309
309
|
"dependencies": [],
|
|
310
310
|
"exports": {
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
"debounce",
|
|
478
478
|
"dom-ready",
|
|
479
479
|
"window-load",
|
|
480
|
-
"
|
|
480
|
+
"alljs",
|
|
481
481
|
"style-injection",
|
|
482
482
|
"get-data-from-form",
|
|
483
483
|
"dom-morphing",
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
"debounce": 0.2,
|
|
710
710
|
"dom-ready": 0.2,
|
|
711
711
|
"window-load": 0.2,
|
|
712
|
-
"
|
|
712
|
+
"alljs": 13.9,
|
|
713
713
|
"style-injection": 0.8,
|
|
714
714
|
"get-data-from-form": 1.7,
|
|
715
715
|
"dom-morphing": 7.9,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"build/generate-load-jsdelivr.js": [],
|
|
10
10
|
"build/generate-readme.js": [],
|
|
11
11
|
"build/hyperclay.template.js": [],
|
|
12
|
+
"build/update-index-url.js": [],
|
|
12
13
|
"communication/behaviorCollector.js": [],
|
|
13
14
|
"communication/sendMessage.js": [
|
|
14
15
|
"communication/behaviorCollector.js",
|
|
@@ -511,10 +512,10 @@
|
|
|
511
512
|
]
|
|
512
513
|
}
|
|
513
514
|
},
|
|
514
|
-
"
|
|
515
|
+
"alljs": {
|
|
515
516
|
"name": "All.js (jQuery-like)",
|
|
516
517
|
"category": "dom-utilities",
|
|
517
|
-
"size": 13.
|
|
518
|
+
"size": 13.9,
|
|
518
519
|
"files": [
|
|
519
520
|
"dom-utilities/All.js"
|
|
520
521
|
],
|
|
@@ -729,7 +730,7 @@
|
|
|
729
730
|
"modules": [
|
|
730
731
|
"dom-ready",
|
|
731
732
|
"window-load",
|
|
732
|
-
"
|
|
733
|
+
"alljs",
|
|
733
734
|
"style-injection",
|
|
734
735
|
"get-data-from-form"
|
|
735
736
|
]
|
|
@@ -813,7 +814,7 @@
|
|
|
813
814
|
"debounce",
|
|
814
815
|
"dom-ready",
|
|
815
816
|
"window-load",
|
|
816
|
-
"
|
|
817
|
+
"alljs",
|
|
817
818
|
"style-injection",
|
|
818
819
|
"get-data-from-form",
|
|
819
820
|
"dom-morphing",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperclayjs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Modular JavaScript library for building interactive HTML applications with Hyperclay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "hyperclay.js",
|
|
@@ -33,11 +33,12 @@
|
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "npm run build && http-server -p 3535 -o /index.html",
|
|
36
|
-
"build": "npm run generate:deps && npm run build:loader && npm run build:readme && npm run build:load-jsdelivr",
|
|
36
|
+
"build": "npm run generate:deps && npm run build:loader && npm run build:readme && npm run build:load-jsdelivr && npm run build:index-url",
|
|
37
37
|
"generate:deps": "node build/generate-dependency-graph.js",
|
|
38
38
|
"build:loader": "node build/build-loader.js",
|
|
39
39
|
"build:readme": "node build/generate-readme.js",
|
|
40
40
|
"build:load-jsdelivr": "node build/generate-load-jsdelivr.js",
|
|
41
|
+
"build:index-url": "node build/update-index-url.js",
|
|
41
42
|
"test": "jest",
|
|
42
43
|
"lint": "eslint .",
|
|
43
44
|
"format": "prettier --write .",
|