@luzzle/web.utils 0.0.12 → 0.0.14

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.
Files changed (49) hide show
  1. package/dist/src/index.d.ts +5 -0
  2. package/dist/src/index.js +3 -0
  3. package/dist/src/index.js.map +1 -0
  4. package/dist/src/lib/assets.d.ts +17 -0
  5. package/dist/src/lib/assets.js +52 -0
  6. package/dist/src/lib/assets.js.map +1 -0
  7. package/dist/src/lib/assets.test.d.ts +1 -0
  8. package/dist/src/lib/assets.test.js +67 -0
  9. package/dist/src/lib/assets.test.js.map +1 -0
  10. package/dist/src/lib/config/config.d.ts +9 -0
  11. package/dist/src/lib/config/config.js +56 -0
  12. package/dist/src/lib/config/config.js.map +1 -0
  13. package/dist/src/lib/config/config.test.d.ts +1 -0
  14. package/dist/src/lib/config/config.test.js +71 -0
  15. package/dist/src/lib/config/config.test.js.map +1 -0
  16. package/dist/src/lib/config/config.test.ts +88 -0
  17. package/dist/src/lib/config/config.ts +74 -0
  18. package/dist/src/lib/config/defaults.json +147 -0
  19. package/dist/src/lib/config/defaults.yaml +152 -0
  20. package/dist/src/lib/config/schema.d.ts +172 -0
  21. package/dist/src/lib/config/schema.js +8 -0
  22. package/dist/src/lib/config/schema.js.map +1 -0
  23. package/dist/src/lib/config/schema.json +674 -0
  24. package/dist/src/lib/config/schema.ts +294 -0
  25. package/dist/src/lib/config/user-error.config.yaml +2 -0
  26. package/dist/src/lib/config/user.config.yaml +2 -0
  27. package/dist/src/lib/deep-merge.d.ts +1 -0
  28. package/dist/src/lib/deep-merge.js +27 -0
  29. package/dist/src/lib/deep-merge.js.map +1 -0
  30. package/dist/src/lib/deep-merge.test.d.ts +1 -0
  31. package/dist/src/lib/deep-merge.test.js +29 -0
  32. package/dist/src/lib/deep-merge.test.js.map +1 -0
  33. package/dist/src/lib/sqlite.d.ts +22 -0
  34. package/dist/src/lib/sqlite.js +2 -0
  35. package/dist/src/lib/sqlite.js.map +1 -0
  36. package/dist/src/lib/types.d.ts +42 -0
  37. package/dist/src/lib/types.js +2 -0
  38. package/dist/src/lib/types.js.map +1 -0
  39. package/dist/src/lib/vibrant.d.ts +16 -0
  40. package/dist/src/lib/vibrant.js +78 -0
  41. package/dist/src/lib/vibrant.js.map +1 -0
  42. package/dist/src/lib/vibrant.test.d.ts +1 -0
  43. package/dist/src/lib/vibrant.test.js +150 -0
  44. package/dist/src/lib/vibrant.test.js.map +1 -0
  45. package/dist/src/server.d.ts +3 -0
  46. package/dist/src/server.js +4 -0
  47. package/dist/src/server.js.map +1 -0
  48. package/dist/tsconfig.tsbuildinfo +1 -0
  49. package/package.json +1 -1
@@ -0,0 +1,674 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "url": {
5
+ "type": "object",
6
+ "properties": {
7
+ "app": {
8
+ "type": "string"
9
+ },
10
+ "app_assets": {
11
+ "type": "string"
12
+ },
13
+ "luzzle_assets": {
14
+ "type": "string"
15
+ },
16
+ "editor": {
17
+ "type": "string"
18
+ }
19
+ },
20
+ "required": [
21
+ "app",
22
+ "app_assets",
23
+ "luzzle_assets",
24
+ "editor"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ "paths": {
29
+ "type": "object",
30
+ "properties": {
31
+ "database": {
32
+ "type": "string"
33
+ },
34
+ "config": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "required": [
39
+ "database"
40
+ ],
41
+ "additionalProperties": false
42
+ },
43
+ "content": {
44
+ "type": "object",
45
+ "properties": {
46
+ "component": {
47
+ "type": "object",
48
+ "properties": {
49
+ "root": {
50
+ "type": "string"
51
+ },
52
+ "feed": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "additionalProperties": false
57
+ },
58
+ "text": {
59
+ "type": "object",
60
+ "properties": {
61
+ "title": {
62
+ "type": "string"
63
+ },
64
+ "description": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ "required": [
69
+ "title",
70
+ "description"
71
+ ],
72
+ "additionalProperties": false
73
+ }
74
+ },
75
+ "required": [
76
+ "text"
77
+ ],
78
+ "additionalProperties": false
79
+ },
80
+ "pieces": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "object",
84
+ "properties": {
85
+ "type": {
86
+ "type": "string"
87
+ },
88
+ "fields": {
89
+ "type": "object",
90
+ "properties": {
91
+ "media": {
92
+ "type": "string"
93
+ },
94
+ "title": {
95
+ "type": "string"
96
+ },
97
+ "summary": {
98
+ "type": "string"
99
+ },
100
+ "date_consumed": {
101
+ "type": "string"
102
+ },
103
+ "tags": {
104
+ "type": "string"
105
+ },
106
+ "assets": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string"
110
+ }
111
+ }
112
+ },
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "title",
116
+ "date_consumed"
117
+ ]
118
+ },
119
+ "components": {
120
+ "type": "object",
121
+ "properties": {
122
+ "icon": {
123
+ "type": "string"
124
+ },
125
+ "opengraph": {
126
+ "type": "string"
127
+ },
128
+ "page": {
129
+ "type": "string"
130
+ }
131
+ },
132
+ "additionalProperties": false
133
+ }
134
+ },
135
+ "additionalProperties": false,
136
+ "required": [
137
+ "type",
138
+ "fields"
139
+ ]
140
+ }
141
+ },
142
+ "theme": {
143
+ "type": "object",
144
+ "properties": {
145
+ "light": {
146
+ "type": "object",
147
+ "properties": {
148
+ "color-primary": {
149
+ "type": "string"
150
+ },
151
+ "color-on-primary": {
152
+ "type": "string"
153
+ },
154
+ "color-primary-container": {
155
+ "type": "string"
156
+ },
157
+ "color-on-primary-container": {
158
+ "type": "string"
159
+ },
160
+ "color-secondary": {
161
+ "type": "string"
162
+ },
163
+ "color-on-secondary": {
164
+ "type": "string"
165
+ },
166
+ "color-secondary-container": {
167
+ "type": "string"
168
+ },
169
+ "color-on-secondary-container": {
170
+ "type": "string"
171
+ },
172
+ "color-tertiary": {
173
+ "type": "string"
174
+ },
175
+ "color-on-tertiary": {
176
+ "type": "string"
177
+ },
178
+ "color-tertiary-container": {
179
+ "type": "string"
180
+ },
181
+ "color-on-tertiary-container": {
182
+ "type": "string"
183
+ },
184
+ "color-error": {
185
+ "type": "string"
186
+ },
187
+ "color-on-error": {
188
+ "type": "string"
189
+ },
190
+ "color-error-container": {
191
+ "type": "string"
192
+ },
193
+ "color-on-error-container": {
194
+ "type": "string"
195
+ },
196
+ "color-surface": {
197
+ "type": "string"
198
+ },
199
+ "color-surface-dim": {
200
+ "type": "string"
201
+ },
202
+ "color-surface-bright": {
203
+ "type": "string"
204
+ },
205
+ "color-surface-inverse": {
206
+ "type": "string"
207
+ },
208
+ "color-on-surface": {
209
+ "type": "string"
210
+ },
211
+ "color-on-surface-variant": {
212
+ "type": "string"
213
+ },
214
+ "color-on-surface-inverse": {
215
+ "type": "string"
216
+ },
217
+ "color-surface-container-lowest": {
218
+ "type": "string"
219
+ },
220
+ "color-surface-container-low": {
221
+ "type": "string"
222
+ },
223
+ "color-surface-container": {
224
+ "type": "string"
225
+ },
226
+ "color-surface-container-high": {
227
+ "type": "string"
228
+ },
229
+ "color-surface-container-highest": {
230
+ "type": "string"
231
+ },
232
+ "color-shadow": {
233
+ "type": "string"
234
+ },
235
+ "color-outline": {
236
+ "type": "string"
237
+ },
238
+ "color-outline-variant": {
239
+ "type": "string"
240
+ }
241
+ },
242
+ "additionalProperties": false
243
+ },
244
+ "dark": {
245
+ "type": "object",
246
+ "properties": {
247
+ "color-primary": {
248
+ "type": "string"
249
+ },
250
+ "color-on-primary": {
251
+ "type": "string"
252
+ },
253
+ "color-primary-container": {
254
+ "type": "string"
255
+ },
256
+ "color-on-primary-container": {
257
+ "type": "string"
258
+ },
259
+ "color-secondary": {
260
+ "type": "string"
261
+ },
262
+ "color-on-secondary": {
263
+ "type": "string"
264
+ },
265
+ "color-secondary-container": {
266
+ "type": "string"
267
+ },
268
+ "color-on-secondary-container": {
269
+ "type": "string"
270
+ },
271
+ "color-tertiary": {
272
+ "type": "string"
273
+ },
274
+ "color-on-tertiary": {
275
+ "type": "string"
276
+ },
277
+ "color-tertiary-container": {
278
+ "type": "string"
279
+ },
280
+ "color-on-tertiary-container": {
281
+ "type": "string"
282
+ },
283
+ "color-error": {
284
+ "type": "string"
285
+ },
286
+ "color-on-error": {
287
+ "type": "string"
288
+ },
289
+ "color-error-container": {
290
+ "type": "string"
291
+ },
292
+ "color-on-error-container": {
293
+ "type": "string"
294
+ },
295
+ "color-surface": {
296
+ "type": "string"
297
+ },
298
+ "color-surface-dim": {
299
+ "type": "string"
300
+ },
301
+ "color-surface-bright": {
302
+ "type": "string"
303
+ },
304
+ "color-surface-inverse": {
305
+ "type": "string"
306
+ },
307
+ "color-on-surface": {
308
+ "type": "string"
309
+ },
310
+ "color-on-surface-variant": {
311
+ "type": "string"
312
+ },
313
+ "color-on-surface-inverse": {
314
+ "type": "string"
315
+ },
316
+ "color-surface-container-lowest": {
317
+ "type": "string"
318
+ },
319
+ "color-surface-container-low": {
320
+ "type": "string"
321
+ },
322
+ "color-surface-container": {
323
+ "type": "string"
324
+ },
325
+ "color-surface-container-high": {
326
+ "type": "string"
327
+ },
328
+ "color-surface-container-highest": {
329
+ "type": "string"
330
+ },
331
+ "color-shadow": {
332
+ "type": "string"
333
+ },
334
+ "color-outline": {
335
+ "type": "string"
336
+ },
337
+ "color-outline-variant": {
338
+ "type": "string"
339
+ }
340
+ },
341
+ "additionalProperties": false
342
+ },
343
+ "globals": {
344
+ "type": "object",
345
+ "properties": {
346
+ "shadow-raised": {
347
+ "type": "string"
348
+ },
349
+ "font-mono-name": {
350
+ "type": "string"
351
+ },
352
+ "font-sans-name": {
353
+ "type": "string"
354
+ },
355
+ "font-sans-url": {
356
+ "type": "string"
357
+ },
358
+ "font-sans-weight": {
359
+ "type": "string"
360
+ },
361
+ "font-size-xxs": {
362
+ "type": "string"
363
+ },
364
+ "font-size-xs": {
365
+ "type": "string"
366
+ },
367
+ "font-size-small": {
368
+ "type": "string"
369
+ },
370
+ "font-size-normal": {
371
+ "type": "string"
372
+ },
373
+ "font-size-medium": {
374
+ "type": "string"
375
+ },
376
+ "font-size-large": {
377
+ "type": "string"
378
+ },
379
+ "font-size-xl": {
380
+ "type": "string"
381
+ },
382
+ "font-size-xxl": {
383
+ "type": "string"
384
+ },
385
+ "font-size-mobile-responsive-factor": {
386
+ "type": "number"
387
+ },
388
+ "font-size-root": {
389
+ "type": "number"
390
+ },
391
+ "font-weight-light": {
392
+ "type": "number"
393
+ },
394
+ "font-weight-normal": {
395
+ "type": "number"
396
+ },
397
+ "font-weight-medium": {
398
+ "type": "number"
399
+ },
400
+ "font-weight-semibold": {
401
+ "type": "number"
402
+ },
403
+ "font-weight-bold": {
404
+ "type": "number"
405
+ },
406
+ "radius-none": {
407
+ "type": "string"
408
+ },
409
+ "radius-small": {
410
+ "type": "string"
411
+ },
412
+ "radius-medium": {
413
+ "type": "string"
414
+ },
415
+ "radius-large": {
416
+ "type": "string"
417
+ },
418
+ "radius-xl": {
419
+ "type": "string"
420
+ },
421
+ "radius-x2l": {
422
+ "type": "string"
423
+ },
424
+ "radius-x3l": {
425
+ "type": "string"
426
+ },
427
+ "radius-x4l": {
428
+ "type": "string"
429
+ },
430
+ "radius-full": {
431
+ "type": "string"
432
+ },
433
+ "breakpoint-phone": {
434
+ "type": "number"
435
+ },
436
+ "breakpoint-tablet": {
437
+ "type": "number"
438
+ },
439
+ "breakpoint-laptop": {
440
+ "type": "number"
441
+ },
442
+ "breakpoint-desktop": {
443
+ "type": "number"
444
+ },
445
+ "space-1": {
446
+ "type": "string"
447
+ },
448
+ "space-2": {
449
+ "type": "string"
450
+ },
451
+ "space-3": {
452
+ "type": "string"
453
+ },
454
+ "space-4": {
455
+ "type": "string"
456
+ },
457
+ "space-5": {
458
+ "type": "string"
459
+ },
460
+ "space-6": {
461
+ "type": "string"
462
+ },
463
+ "space-7": {
464
+ "type": "string"
465
+ },
466
+ "space-8": {
467
+ "type": "string"
468
+ },
469
+ "space-9": {
470
+ "type": "string"
471
+ },
472
+ "space-10": {
473
+ "type": "string"
474
+ },
475
+ "space-0-5": {
476
+ "type": "string"
477
+ },
478
+ "space-1-5": {
479
+ "type": "string"
480
+ },
481
+ "space-2-5": {
482
+ "type": "string"
483
+ },
484
+ "space-3-5": {
485
+ "type": "string"
486
+ }
487
+ },
488
+ "additionalProperties": false
489
+ },
490
+ "markdown": {
491
+ "type": "object",
492
+ "properties": {
493
+ "sidenote": {
494
+ "type": "object",
495
+ "properties": {
496
+ "sidenote-callout-before-content": {
497
+ "type": "string"
498
+ },
499
+ "sidenote-callout-after-content": {
500
+ "type": "string"
501
+ },
502
+ "sidenote-citation-before-content": {
503
+ "type": "string"
504
+ },
505
+ "sidenote-citation-after-content": {
506
+ "type": "string"
507
+ }
508
+ },
509
+ "additionalProperties": false
510
+ },
511
+ "code": {
512
+ "type": "object",
513
+ "properties": {
514
+ "light": {
515
+ "enum": [
516
+ "andromeeda",
517
+ "aurora-x",
518
+ "ayu-dark",
519
+ "catppuccin-frappe",
520
+ "catppuccin-latte",
521
+ "catppuccin-macchiato",
522
+ "catppuccin-mocha",
523
+ "dark-plus",
524
+ "dracula",
525
+ "dracula-soft",
526
+ "everforest-dark",
527
+ "everforest-light",
528
+ "github-dark",
529
+ "github-dark-default",
530
+ "github-dark-dimmed",
531
+ "github-dark-high-contrast",
532
+ "github-light",
533
+ "github-light-default",
534
+ "github-light-high-contrast",
535
+ "gruvbox-dark-hard",
536
+ "gruvbox-dark-medium",
537
+ "gruvbox-dark-soft",
538
+ "gruvbox-light-hard",
539
+ "gruvbox-light-medium",
540
+ "gruvbox-light-soft",
541
+ "houston",
542
+ "kanagawa-dragon",
543
+ "kanagawa-lotus",
544
+ "kanagawa-wave",
545
+ "laserwave",
546
+ "light-plus",
547
+ "material-theme",
548
+ "material-theme-darker",
549
+ "material-theme-lighter",
550
+ "material-theme-ocean",
551
+ "material-theme-palenight",
552
+ "min-dark",
553
+ "min-light",
554
+ "monokai",
555
+ "night-owl",
556
+ "nord",
557
+ "one-dark-pro",
558
+ "one-light",
559
+ "plastic",
560
+ "poimandres",
561
+ "red",
562
+ "rose-pine",
563
+ "rose-pine-dawn",
564
+ "rose-pine-moon",
565
+ "slack-dark",
566
+ "slack-ochin",
567
+ "snazzy-light",
568
+ "solarized-dark",
569
+ "solarized-light",
570
+ "synthwave-84",
571
+ "tokyo-night",
572
+ "vesper",
573
+ "vitesse-black",
574
+ "vitesse-dark",
575
+ "vitesse-light"
576
+ ]
577
+ },
578
+ "dark": {
579
+ "enum": [
580
+ "andromeeda",
581
+ "aurora-x",
582
+ "ayu-dark",
583
+ "catppuccin-frappe",
584
+ "catppuccin-latte",
585
+ "catppuccin-macchiato",
586
+ "catppuccin-mocha",
587
+ "dark-plus",
588
+ "dracula",
589
+ "dracula-soft",
590
+ "everforest-dark",
591
+ "everforest-light",
592
+ "github-dark",
593
+ "github-dark-default",
594
+ "github-dark-dimmed",
595
+ "github-dark-high-contrast",
596
+ "github-light",
597
+ "github-light-default",
598
+ "github-light-high-contrast",
599
+ "gruvbox-dark-hard",
600
+ "gruvbox-dark-medium",
601
+ "gruvbox-dark-soft",
602
+ "gruvbox-light-hard",
603
+ "gruvbox-light-medium",
604
+ "gruvbox-light-soft",
605
+ "houston",
606
+ "kanagawa-dragon",
607
+ "kanagawa-lotus",
608
+ "kanagawa-wave",
609
+ "laserwave",
610
+ "light-plus",
611
+ "material-theme",
612
+ "material-theme-darker",
613
+ "material-theme-lighter",
614
+ "material-theme-ocean",
615
+ "material-theme-palenight",
616
+ "min-dark",
617
+ "min-light",
618
+ "monokai",
619
+ "night-owl",
620
+ "nord",
621
+ "one-dark-pro",
622
+ "one-light",
623
+ "plastic",
624
+ "poimandres",
625
+ "red",
626
+ "rose-pine",
627
+ "rose-pine-dawn",
628
+ "rose-pine-moon",
629
+ "slack-dark",
630
+ "slack-ochin",
631
+ "snazzy-light",
632
+ "solarized-dark",
633
+ "solarized-light",
634
+ "synthwave-84",
635
+ "tokyo-night",
636
+ "vesper",
637
+ "vitesse-black",
638
+ "vitesse-dark",
639
+ "vitesse-light"
640
+ ]
641
+ }
642
+ },
643
+ "required": [
644
+ "light",
645
+ "dark"
646
+ ],
647
+ "additionalProperties": false
648
+ }
649
+ },
650
+ "required": [
651
+ "code",
652
+ "sidenote"
653
+ ],
654
+ "additionalProperties": false
655
+ }
656
+ },
657
+ "required": [
658
+ "globals",
659
+ "light",
660
+ "dark",
661
+ "markdown"
662
+ ],
663
+ "additionalProperties": false
664
+ }
665
+ },
666
+ "required": [
667
+ "url",
668
+ "content",
669
+ "paths",
670
+ "theme",
671
+ "pieces"
672
+ ],
673
+ "additionalProperties": false
674
+ }