hyperclayjs 1.0.1 → 1.1.0
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 -1
- package/hyperclay.js +10 -1
- package/module-dependency-graph.json +252 -34
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -95,6 +95,7 @@ import 'hyperclayjs/presets/standard.js';
|
|
|
95
95
|
|--------|------|-------------|
|
|
96
96
|
| All.js (jQuery-like) | 13.8KB | Full DOM manipulation library |
|
|
97
97
|
| DOM Ready | 0.2KB | DOM ready callback |
|
|
98
|
+
| Get Data From Form | 1.7KB | Extract form data as an object |
|
|
98
99
|
| Style Injection | 0.8KB | Dynamic stylesheet injection |
|
|
99
100
|
| Window Load | 0.2KB | Window load callback |
|
|
100
101
|
|
|
@@ -133,7 +134,7 @@ Standard feature set for most use cases
|
|
|
133
134
|
|
|
134
135
|
**Modules:** `save-core`, `save`, `admin`, `persist`, `ajax`, `events`, `helpers`, `toast`
|
|
135
136
|
|
|
136
|
-
### Everything (~
|
|
137
|
+
### Everything (~616.3KB)
|
|
137
138
|
All available features
|
|
138
139
|
|
|
139
140
|
Includes all available modules across all categories.
|
package/hyperclay.js
CHANGED
|
@@ -77,7 +77,9 @@
|
|
|
77
77
|
},
|
|
78
78
|
"ajax": {
|
|
79
79
|
"path": "./custom-attributes/ajaxElements.js",
|
|
80
|
-
"dependencies": [
|
|
80
|
+
"dependencies": [
|
|
81
|
+
"get-data-from-form"
|
|
82
|
+
]
|
|
81
83
|
},
|
|
82
84
|
"sortable": {
|
|
83
85
|
"path": "./custom-attributes/sortable.js",
|
|
@@ -161,6 +163,10 @@
|
|
|
161
163
|
"path": "./dom-utilities/insertStyleTag.js",
|
|
162
164
|
"dependencies": []
|
|
163
165
|
},
|
|
166
|
+
"get-data-from-form": {
|
|
167
|
+
"path": "./dom-utilities/getDataFromForm.js",
|
|
168
|
+
"dependencies": []
|
|
169
|
+
},
|
|
164
170
|
"dom-morphing": {
|
|
165
171
|
"path": "./vendor/idiomorph.min.js",
|
|
166
172
|
"dependencies": []
|
|
@@ -189,6 +195,7 @@
|
|
|
189
195
|
"path": "./communication/sendMessage.js",
|
|
190
196
|
"dependencies": [
|
|
191
197
|
"behavior-collector",
|
|
198
|
+
"get-data-from-form",
|
|
192
199
|
"toast"
|
|
193
200
|
]
|
|
194
201
|
},
|
|
@@ -257,6 +264,7 @@
|
|
|
257
264
|
"window-load",
|
|
258
265
|
"jquery-like",
|
|
259
266
|
"style-injection",
|
|
267
|
+
"get-data-from-form",
|
|
260
268
|
"dom-morphing",
|
|
261
269
|
"slugify",
|
|
262
270
|
"emmet-html",
|
|
@@ -455,6 +463,7 @@
|
|
|
455
463
|
"window-load": 0.2,
|
|
456
464
|
"jquery-like": 13.8,
|
|
457
465
|
"style-injection": 0.8,
|
|
466
|
+
"get-data-from-form": 1.7,
|
|
458
467
|
"dom-morphing": 7.9,
|
|
459
468
|
"slugify": 0.7,
|
|
460
469
|
"emmet-html": 1.4,
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"babel.config.js": [],
|
|
7
7
|
"build/build-loader.js": [],
|
|
8
8
|
"build/generate-dependency-graph.js": [],
|
|
9
|
+
"build/generate-load-jsdelivr.js": [],
|
|
9
10
|
"build/generate-readme.js": [],
|
|
10
11
|
"build/hyperclay.template.js": [],
|
|
11
12
|
"communication/behaviorCollector.js": [],
|
|
@@ -157,7 +158,12 @@
|
|
|
157
158
|
"files": [
|
|
158
159
|
"core/savePageCore.js"
|
|
159
160
|
],
|
|
160
|
-
"description": "Basic save function only - hyperclay.savePage()"
|
|
161
|
+
"description": "Basic save function only - hyperclay.savePage()",
|
|
162
|
+
"exports": {
|
|
163
|
+
"savePage": [
|
|
164
|
+
"hyperclay"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
161
167
|
},
|
|
162
168
|
"save": {
|
|
163
169
|
"name": "Save System",
|
|
@@ -166,7 +172,27 @@
|
|
|
166
172
|
"files": [
|
|
167
173
|
"core/savePage.js"
|
|
168
174
|
],
|
|
169
|
-
"description": "Full save: save button, keyboard shortcut, auto-save, change tracking"
|
|
175
|
+
"description": "Full save: save button, keyboard shortcut, auto-save, change tracking",
|
|
176
|
+
"exports": {
|
|
177
|
+
"beforeSave": [
|
|
178
|
+
"hyperclay"
|
|
179
|
+
],
|
|
180
|
+
"savePage": [
|
|
181
|
+
"hyperclay"
|
|
182
|
+
],
|
|
183
|
+
"replacePageWith": [
|
|
184
|
+
"hyperclay"
|
|
185
|
+
],
|
|
186
|
+
"initHyperclaySaveButton": [
|
|
187
|
+
"hyperclay"
|
|
188
|
+
],
|
|
189
|
+
"initSaveKeyboardShortcut": [
|
|
190
|
+
"hyperclay"
|
|
191
|
+
],
|
|
192
|
+
"initSavePageOnChange": [
|
|
193
|
+
"hyperclay"
|
|
194
|
+
]
|
|
195
|
+
}
|
|
170
196
|
},
|
|
171
197
|
"admin": {
|
|
172
198
|
"name": "Admin Features",
|
|
@@ -179,7 +205,8 @@
|
|
|
179
205
|
"core/adminOnClick.js",
|
|
180
206
|
"core/adminResources.js"
|
|
181
207
|
],
|
|
182
|
-
"description": "Hides admin inputs, scripts, contenteditable, onclick for regular viewers"
|
|
208
|
+
"description": "Hides admin inputs, scripts, contenteditable, onclick for regular viewers",
|
|
209
|
+
"exports": {}
|
|
183
210
|
},
|
|
184
211
|
"persist": {
|
|
185
212
|
"name": "Form Persistence",
|
|
@@ -188,7 +215,12 @@
|
|
|
188
215
|
"files": [
|
|
189
216
|
"core/enablePersistentFormInputValues.js"
|
|
190
217
|
],
|
|
191
|
-
"description": "Persist form values to the DOM with [persist] attribute"
|
|
218
|
+
"description": "Persist form values to the DOM with [persist] attribute",
|
|
219
|
+
"exports": {
|
|
220
|
+
"enablePersistentFormInputValues": [
|
|
221
|
+
"hyperclay"
|
|
222
|
+
]
|
|
223
|
+
}
|
|
192
224
|
},
|
|
193
225
|
"options": {
|
|
194
226
|
"name": "Option Visibility",
|
|
@@ -197,7 +229,13 @@
|
|
|
197
229
|
"files": [
|
|
198
230
|
"core/optionVisibilityRuleGenerator.js"
|
|
199
231
|
],
|
|
200
|
-
"description": "Dynamic show/hide based on page state with option:attribute=\"value\""
|
|
232
|
+
"description": "Dynamic show/hide based on page state with option:attribute=\"value\"",
|
|
233
|
+
"exports": {
|
|
234
|
+
"optionVisibilityRuleGenerator": [
|
|
235
|
+
"window",
|
|
236
|
+
"hyperclay"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
201
239
|
},
|
|
202
240
|
"editmode": {
|
|
203
241
|
"name": "Edit Mode",
|
|
@@ -208,7 +246,18 @@
|
|
|
208
246
|
"core/editmode.js",
|
|
209
247
|
"core/setPageTypeOnDocumentElement.js"
|
|
210
248
|
],
|
|
211
|
-
"description": "Toggle edit mode on/off"
|
|
249
|
+
"description": "Toggle edit mode on/off",
|
|
250
|
+
"exports": {
|
|
251
|
+
"toggleEditMode": [
|
|
252
|
+
"hyperclay"
|
|
253
|
+
],
|
|
254
|
+
"isEditMode": [
|
|
255
|
+
"hyperclay"
|
|
256
|
+
],
|
|
257
|
+
"isOwner": [
|
|
258
|
+
"hyperclay"
|
|
259
|
+
]
|
|
260
|
+
}
|
|
212
261
|
},
|
|
213
262
|
"events": {
|
|
214
263
|
"name": "Event Attributes",
|
|
@@ -221,7 +270,8 @@
|
|
|
221
270
|
"custom-attributes/onpagemutation.js",
|
|
222
271
|
"custom-attributes/onrender.js"
|
|
223
272
|
],
|
|
224
|
-
"description": "[onclickaway], [onclone], [onpagemutation], [onrender]"
|
|
273
|
+
"description": "[onclickaway], [onclone], [onpagemutation], [onrender]",
|
|
274
|
+
"exports": {}
|
|
225
275
|
},
|
|
226
276
|
"ajax": {
|
|
227
277
|
"name": "AJAX Elements",
|
|
@@ -230,7 +280,8 @@
|
|
|
230
280
|
"files": [
|
|
231
281
|
"custom-attributes/ajaxElements.js"
|
|
232
282
|
],
|
|
233
|
-
"description": "[ajax-form], [ajax-button] for async form submissions"
|
|
283
|
+
"description": "[ajax-form], [ajax-button] for async form submissions",
|
|
284
|
+
"exports": {}
|
|
234
285
|
},
|
|
235
286
|
"sortable": {
|
|
236
287
|
"name": "Sortable",
|
|
@@ -240,7 +291,13 @@
|
|
|
240
291
|
"custom-attributes/sortable.js",
|
|
241
292
|
"vendor/Sortable.js"
|
|
242
293
|
],
|
|
243
|
-
"description": "Drag-drop sorting with [sortable] - includes Sortable.js vendor library"
|
|
294
|
+
"description": "Drag-drop sorting with [sortable] - includes Sortable.js vendor library",
|
|
295
|
+
"exports": {
|
|
296
|
+
"Sortable": [
|
|
297
|
+
"window",
|
|
298
|
+
"hyperclay"
|
|
299
|
+
]
|
|
300
|
+
}
|
|
244
301
|
},
|
|
245
302
|
"helpers": {
|
|
246
303
|
"name": "DOM Helpers",
|
|
@@ -249,7 +306,13 @@
|
|
|
249
306
|
"files": [
|
|
250
307
|
"custom-attributes/domHelpers.js"
|
|
251
308
|
],
|
|
252
|
-
"description": "el.nearest, el.val, el.text, el.exec, el.cycle"
|
|
309
|
+
"description": "el.nearest, el.val, el.text, el.exec, el.cycle",
|
|
310
|
+
"exports": {
|
|
311
|
+
"initCustomAttributes": [
|
|
312
|
+
"window",
|
|
313
|
+
"hyperclay"
|
|
314
|
+
]
|
|
315
|
+
}
|
|
253
316
|
},
|
|
254
317
|
"inputs": {
|
|
255
318
|
"name": "Input Helpers",
|
|
@@ -260,7 +323,8 @@
|
|
|
260
323
|
"custom-attributes/preventEnter.js",
|
|
261
324
|
"custom-attributes/autosize.js"
|
|
262
325
|
],
|
|
263
|
-
"description": "[prevent-enter], [autosize] for textareas"
|
|
326
|
+
"description": "[prevent-enter], [autosize] for textareas",
|
|
327
|
+
"exports": {}
|
|
264
328
|
},
|
|
265
329
|
"prompts": {
|
|
266
330
|
"name": "Dialog Functions",
|
|
@@ -269,7 +333,27 @@
|
|
|
269
333
|
"files": [
|
|
270
334
|
"ui/prompts.js"
|
|
271
335
|
],
|
|
272
|
-
"description": "ask(), consent(), tell(), snippet() functions"
|
|
336
|
+
"description": "ask(), consent(), tell(), snippet() functions",
|
|
337
|
+
"exports": {
|
|
338
|
+
"ask": [
|
|
339
|
+
"window",
|
|
340
|
+
"hyperclay"
|
|
341
|
+
],
|
|
342
|
+
"consent": [
|
|
343
|
+
"window",
|
|
344
|
+
"hyperclay"
|
|
345
|
+
],
|
|
346
|
+
"tell": [
|
|
347
|
+
"window",
|
|
348
|
+
"hyperclay"
|
|
349
|
+
],
|
|
350
|
+
"snippet": [
|
|
351
|
+
"hyperclay"
|
|
352
|
+
],
|
|
353
|
+
"showApiKey": [
|
|
354
|
+
"hyperclay"
|
|
355
|
+
]
|
|
356
|
+
}
|
|
273
357
|
},
|
|
274
358
|
"toast": {
|
|
275
359
|
"name": "Toast Notifications",
|
|
@@ -278,7 +362,13 @@
|
|
|
278
362
|
"files": [
|
|
279
363
|
"ui/toast.js"
|
|
280
364
|
],
|
|
281
|
-
"description": "Success/error message notifications - toast(msg, msgType)"
|
|
365
|
+
"description": "Success/error message notifications - toast(msg, msgType)",
|
|
366
|
+
"exports": {
|
|
367
|
+
"toast": [
|
|
368
|
+
"window",
|
|
369
|
+
"hyperclay"
|
|
370
|
+
]
|
|
371
|
+
}
|
|
282
372
|
},
|
|
283
373
|
"modals": {
|
|
284
374
|
"name": "Modal System",
|
|
@@ -287,7 +377,13 @@
|
|
|
287
377
|
"files": [
|
|
288
378
|
"ui/theModal.js"
|
|
289
379
|
],
|
|
290
|
-
"description": "Full modal window creation system - window.theModal"
|
|
380
|
+
"description": "Full modal window creation system - window.theModal",
|
|
381
|
+
"exports": {
|
|
382
|
+
"themodal": [
|
|
383
|
+
"window",
|
|
384
|
+
"hyperclay"
|
|
385
|
+
]
|
|
386
|
+
}
|
|
291
387
|
},
|
|
292
388
|
"info": {
|
|
293
389
|
"name": "Info Dialog",
|
|
@@ -296,7 +392,13 @@
|
|
|
296
392
|
"files": [
|
|
297
393
|
"ui/info.js"
|
|
298
394
|
],
|
|
299
|
-
"description": "Info dialog component"
|
|
395
|
+
"description": "Info dialog component",
|
|
396
|
+
"exports": {
|
|
397
|
+
"info": [
|
|
398
|
+
"window",
|
|
399
|
+
"hyperclay"
|
|
400
|
+
]
|
|
401
|
+
}
|
|
300
402
|
},
|
|
301
403
|
"tailwind-play": {
|
|
302
404
|
"name": "Tailwind Play",
|
|
@@ -305,7 +407,8 @@
|
|
|
305
407
|
"files": [
|
|
306
408
|
"vendor/tailwind-play.js"
|
|
307
409
|
],
|
|
308
|
-
"description": "Live Tailwind CSS editing - updates styles based on classes in your HTML"
|
|
410
|
+
"description": "Live Tailwind CSS editing - updates styles based on classes in your HTML",
|
|
411
|
+
"exports": {}
|
|
309
412
|
},
|
|
310
413
|
"mutation": {
|
|
311
414
|
"name": "Mutation Observer",
|
|
@@ -314,7 +417,13 @@
|
|
|
314
417
|
"files": [
|
|
315
418
|
"utilities/mutation.js"
|
|
316
419
|
],
|
|
317
|
-
"description": "DOM mutation observation (often auto-included)"
|
|
420
|
+
"description": "DOM mutation observation (often auto-included)",
|
|
421
|
+
"exports": {
|
|
422
|
+
"Mutation": [
|
|
423
|
+
"window",
|
|
424
|
+
"hyperclay"
|
|
425
|
+
]
|
|
426
|
+
}
|
|
318
427
|
},
|
|
319
428
|
"nearest": {
|
|
320
429
|
"name": "Nearest Element",
|
|
@@ -323,7 +432,13 @@
|
|
|
323
432
|
"files": [
|
|
324
433
|
"utilities/nearest.js"
|
|
325
434
|
],
|
|
326
|
-
"description": "Find nearest elements (often auto-included)"
|
|
435
|
+
"description": "Find nearest elements (often auto-included)",
|
|
436
|
+
"exports": {
|
|
437
|
+
"nearest": [
|
|
438
|
+
"window",
|
|
439
|
+
"hyperclay"
|
|
440
|
+
]
|
|
441
|
+
}
|
|
327
442
|
},
|
|
328
443
|
"cookie": {
|
|
329
444
|
"name": "Cookie Helper",
|
|
@@ -332,7 +447,13 @@
|
|
|
332
447
|
"files": [
|
|
333
448
|
"utilities/cookie.js"
|
|
334
449
|
],
|
|
335
|
-
"description": "Cookie management (often auto-included)"
|
|
450
|
+
"description": "Cookie management (often auto-included)",
|
|
451
|
+
"exports": {
|
|
452
|
+
"cookie": [
|
|
453
|
+
"window",
|
|
454
|
+
"hyperclay"
|
|
455
|
+
]
|
|
456
|
+
}
|
|
336
457
|
},
|
|
337
458
|
"throttle": {
|
|
338
459
|
"name": "Throttle",
|
|
@@ -341,7 +462,12 @@
|
|
|
341
462
|
"files": [
|
|
342
463
|
"utilities/throttle.js"
|
|
343
464
|
],
|
|
344
|
-
"description": "Function throttling"
|
|
465
|
+
"description": "Function throttling",
|
|
466
|
+
"exports": {
|
|
467
|
+
"throttle": [
|
|
468
|
+
"hyperclay"
|
|
469
|
+
]
|
|
470
|
+
}
|
|
345
471
|
},
|
|
346
472
|
"debounce": {
|
|
347
473
|
"name": "Debounce",
|
|
@@ -350,7 +476,12 @@
|
|
|
350
476
|
"files": [
|
|
351
477
|
"utilities/debounce.js"
|
|
352
478
|
],
|
|
353
|
-
"description": "Function debouncing"
|
|
479
|
+
"description": "Function debouncing",
|
|
480
|
+
"exports": {
|
|
481
|
+
"debounce": [
|
|
482
|
+
"hyperclay"
|
|
483
|
+
]
|
|
484
|
+
}
|
|
354
485
|
},
|
|
355
486
|
"dom-ready": {
|
|
356
487
|
"name": "DOM Ready",
|
|
@@ -359,7 +490,12 @@
|
|
|
359
490
|
"files": [
|
|
360
491
|
"dom-utilities/onDomReady.js"
|
|
361
492
|
],
|
|
362
|
-
"description": "DOM ready callback"
|
|
493
|
+
"description": "DOM ready callback",
|
|
494
|
+
"exports": {
|
|
495
|
+
"onDomReady": [
|
|
496
|
+
"hyperclay"
|
|
497
|
+
]
|
|
498
|
+
}
|
|
363
499
|
},
|
|
364
500
|
"window-load": {
|
|
365
501
|
"name": "Window Load",
|
|
@@ -368,7 +504,12 @@
|
|
|
368
504
|
"files": [
|
|
369
505
|
"dom-utilities/onLoad.js"
|
|
370
506
|
],
|
|
371
|
-
"description": "Window load callback"
|
|
507
|
+
"description": "Window load callback",
|
|
508
|
+
"exports": {
|
|
509
|
+
"onLoad": [
|
|
510
|
+
"hyperclay"
|
|
511
|
+
]
|
|
512
|
+
}
|
|
372
513
|
},
|
|
373
514
|
"jquery-like": {
|
|
374
515
|
"name": "All.js (jQuery-like)",
|
|
@@ -377,7 +518,13 @@
|
|
|
377
518
|
"files": [
|
|
378
519
|
"dom-utilities/All.js"
|
|
379
520
|
],
|
|
380
|
-
"description": "Full DOM manipulation library"
|
|
521
|
+
"description": "Full DOM manipulation library",
|
|
522
|
+
"exports": {
|
|
523
|
+
"All": [
|
|
524
|
+
"window",
|
|
525
|
+
"hyperclay"
|
|
526
|
+
]
|
|
527
|
+
}
|
|
381
528
|
},
|
|
382
529
|
"style-injection": {
|
|
383
530
|
"name": "Style Injection",
|
|
@@ -386,7 +533,28 @@
|
|
|
386
533
|
"files": [
|
|
387
534
|
"dom-utilities/insertStyleTag.js"
|
|
388
535
|
],
|
|
389
|
-
"description": "Dynamic stylesheet injection"
|
|
536
|
+
"description": "Dynamic stylesheet injection",
|
|
537
|
+
"exports": {
|
|
538
|
+
"insertStyleTag": [
|
|
539
|
+
"window",
|
|
540
|
+
"hyperclay"
|
|
541
|
+
]
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"get-data-from-form": {
|
|
545
|
+
"name": "Get Data From Form",
|
|
546
|
+
"category": "dom-utilities",
|
|
547
|
+
"size": 1.7,
|
|
548
|
+
"files": [
|
|
549
|
+
"dom-utilities/getDataFromForm.js"
|
|
550
|
+
],
|
|
551
|
+
"description": "Extract form data as an object",
|
|
552
|
+
"exports": {
|
|
553
|
+
"getDataFromForm": [
|
|
554
|
+
"window",
|
|
555
|
+
"hyperclay"
|
|
556
|
+
]
|
|
557
|
+
}
|
|
390
558
|
},
|
|
391
559
|
"dom-morphing": {
|
|
392
560
|
"name": "DOM Morphing",
|
|
@@ -395,7 +563,12 @@
|
|
|
395
563
|
"files": [
|
|
396
564
|
"vendor/idiomorph.min.js"
|
|
397
565
|
],
|
|
398
|
-
"description": "Efficient DOM updates"
|
|
566
|
+
"description": "Efficient DOM updates",
|
|
567
|
+
"exports": {
|
|
568
|
+
"Idiomorph": [
|
|
569
|
+
"hyperclay"
|
|
570
|
+
]
|
|
571
|
+
}
|
|
399
572
|
},
|
|
400
573
|
"slugify": {
|
|
401
574
|
"name": "Slugify",
|
|
@@ -404,7 +577,13 @@
|
|
|
404
577
|
"files": [
|
|
405
578
|
"string-utilities/slugify.js"
|
|
406
579
|
],
|
|
407
|
-
"description": "URL-friendly slug generator"
|
|
580
|
+
"description": "URL-friendly slug generator",
|
|
581
|
+
"exports": {
|
|
582
|
+
"slugify": [
|
|
583
|
+
"window",
|
|
584
|
+
"hyperclay"
|
|
585
|
+
]
|
|
586
|
+
}
|
|
408
587
|
},
|
|
409
588
|
"emmet-html": {
|
|
410
589
|
"name": "Emmet HTML",
|
|
@@ -413,7 +592,12 @@
|
|
|
413
592
|
"files": [
|
|
414
593
|
"string-utilities/emmet-html.js"
|
|
415
594
|
],
|
|
416
|
-
"description": "Emmet-like HTML generation"
|
|
595
|
+
"description": "Emmet-like HTML generation",
|
|
596
|
+
"exports": {
|
|
597
|
+
"emmet": [
|
|
598
|
+
"hyperclay"
|
|
599
|
+
]
|
|
600
|
+
}
|
|
417
601
|
},
|
|
418
602
|
"copy-to-clipboard": {
|
|
419
603
|
"name": "Copy to Clipboard",
|
|
@@ -422,7 +606,12 @@
|
|
|
422
606
|
"files": [
|
|
423
607
|
"string-utilities/copy-to-clipboard.js"
|
|
424
608
|
],
|
|
425
|
-
"description": "Clipboard utility"
|
|
609
|
+
"description": "Clipboard utility",
|
|
610
|
+
"exports": {
|
|
611
|
+
"copyToClipboard": [
|
|
612
|
+
"hyperclay"
|
|
613
|
+
]
|
|
614
|
+
}
|
|
426
615
|
},
|
|
427
616
|
"query-parser": {
|
|
428
617
|
"name": "URL Query Parser",
|
|
@@ -431,7 +620,13 @@
|
|
|
431
620
|
"files": [
|
|
432
621
|
"string-utilities/query.js"
|
|
433
622
|
],
|
|
434
|
-
"description": "Parse URL search params"
|
|
623
|
+
"description": "Parse URL search params",
|
|
624
|
+
"exports": {
|
|
625
|
+
"query": [
|
|
626
|
+
"window",
|
|
627
|
+
"hyperclay"
|
|
628
|
+
]
|
|
629
|
+
}
|
|
435
630
|
},
|
|
436
631
|
"behavior-collector": {
|
|
437
632
|
"name": "Behavior Collector",
|
|
@@ -440,7 +635,12 @@
|
|
|
440
635
|
"files": [
|
|
441
636
|
"communication/behaviorCollector.js"
|
|
442
637
|
],
|
|
443
|
-
"description": "Tracks user interactions (mouse, scroll, keyboard)"
|
|
638
|
+
"description": "Tracks user interactions (mouse, scroll, keyboard)",
|
|
639
|
+
"exports": {
|
|
640
|
+
"behaviorCollector": [
|
|
641
|
+
"hyperclay"
|
|
642
|
+
]
|
|
643
|
+
}
|
|
444
644
|
},
|
|
445
645
|
"send-message": {
|
|
446
646
|
"name": "Send Message to App Owner",
|
|
@@ -449,7 +649,12 @@
|
|
|
449
649
|
"files": [
|
|
450
650
|
"communication/sendMessage.js"
|
|
451
651
|
],
|
|
452
|
-
"description": "Message sending utility"
|
|
652
|
+
"description": "Message sending utility",
|
|
653
|
+
"exports": {
|
|
654
|
+
"sendMessage": [
|
|
655
|
+
"hyperclay"
|
|
656
|
+
]
|
|
657
|
+
}
|
|
453
658
|
},
|
|
454
659
|
"file-upload": {
|
|
455
660
|
"name": "File Upload to App Owner",
|
|
@@ -458,7 +663,18 @@
|
|
|
458
663
|
"files": [
|
|
459
664
|
"communication/uploadFile.js"
|
|
460
665
|
],
|
|
461
|
-
"description": "File upload with progress"
|
|
666
|
+
"description": "File upload with progress",
|
|
667
|
+
"exports": {
|
|
668
|
+
"uploadFile": [
|
|
669
|
+
"hyperclay"
|
|
670
|
+
],
|
|
671
|
+
"createFile": [
|
|
672
|
+
"hyperclay"
|
|
673
|
+
],
|
|
674
|
+
"uploadFileBasic": [
|
|
675
|
+
"hyperclay"
|
|
676
|
+
]
|
|
677
|
+
}
|
|
462
678
|
}
|
|
463
679
|
},
|
|
464
680
|
"categories": {
|
|
@@ -514,7 +730,8 @@
|
|
|
514
730
|
"dom-ready",
|
|
515
731
|
"window-load",
|
|
516
732
|
"jquery-like",
|
|
517
|
-
"style-injection"
|
|
733
|
+
"style-injection",
|
|
734
|
+
"get-data-from-form"
|
|
518
735
|
]
|
|
519
736
|
},
|
|
520
737
|
"string-utilities": {
|
|
@@ -598,6 +815,7 @@
|
|
|
598
815
|
"window-load",
|
|
599
816
|
"jquery-like",
|
|
600
817
|
"style-injection",
|
|
818
|
+
"get-data-from-form",
|
|
601
819
|
"dom-morphing",
|
|
602
820
|
"slugify",
|
|
603
821
|
"emmet-html",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperclayjs",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Modular JavaScript library for building interactive HTML applications with Hyperclay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "hyperclay.js",
|
|
@@ -33,14 +33,17 @@
|
|
|
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",
|
|
36
|
+
"build": "npm run generate:deps && npm run build:loader && npm run build:readme && npm run build:load-jsdelivr",
|
|
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
|
+
"build:load-jsdelivr": "node build/generate-load-jsdelivr.js",
|
|
40
41
|
"test": "jest",
|
|
41
42
|
"lint": "eslint .",
|
|
42
43
|
"format": "prettier --write .",
|
|
43
|
-
"
|
|
44
|
+
"release": "./scripts/release.sh",
|
|
45
|
+
"prepublishOnly": "npm run build && npm test",
|
|
46
|
+
"postpublish": "open http://127.0.0.1:3535/load-jsdelivr.html"
|
|
44
47
|
},
|
|
45
48
|
"repository": {
|
|
46
49
|
"type": "git",
|