@genesislcap/foundation-utils 14.430.2-FUI-2528.1 → 14.430.2-FUI-2528.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +554 -554
  2. package/package.json +11 -11
@@ -209,208 +209,6 @@
209
209
  }
210
210
  ]
211
211
  },
212
- {
213
- "kind": "javascript-module",
214
- "path": "src/design-system/design-system.ts",
215
- "declarations": [
216
- {
217
- "kind": "function",
218
- "name": "assureDesignSystem",
219
- "return": {
220
- "type": {
221
- "text": "DesignSystemModule"
222
- }
223
- },
224
- "parameters": [
225
- {
226
- "name": "module",
227
- "type": {
228
- "text": "DesignSystemModule"
229
- }
230
- }
231
- ],
232
- "description": "assureDesignSystem.",
233
- "privacy": "public"
234
- },
235
- {
236
- "kind": "function",
237
- "name": "getCurrentDesignSystem",
238
- "return": {
239
- "type": {
240
- "text": ""
241
- }
242
- },
243
- "parameters": [
244
- {
245
- "name": "element",
246
- "type": {
247
- "text": "HTMLElement"
248
- },
249
- "description": "The starting HTML element"
250
- },
251
- {
252
- "name": "fallbackPrefix",
253
- "type": {
254
- "text": "string"
255
- },
256
- "description": "The prefix to fallback to if the provider is not available"
257
- }
258
- ],
259
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
260
- "privacy": "public"
261
- },
262
- {
263
- "kind": "function",
264
- "name": "getCurrentDesignSystemPrefix",
265
- "return": {
266
- "type": {
267
- "text": ""
268
- }
269
- },
270
- "parameters": [
271
- {
272
- "name": "element",
273
- "type": {
274
- "text": "HTMLElement"
275
- },
276
- "description": "The starting HTML element"
277
- },
278
- {
279
- "name": "fallbackPrefix",
280
- "type": {
281
- "text": "string"
282
- },
283
- "description": "The prefix to fallback to if the provider is not available"
284
- }
285
- ],
286
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
287
- "privacy": "public"
288
- }
289
- ],
290
- "exports": [
291
- {
292
- "kind": "js",
293
- "name": "assureDesignSystem",
294
- "declaration": {
295
- "name": "assureDesignSystem",
296
- "module": "src/design-system/design-system.ts"
297
- }
298
- },
299
- {
300
- "kind": "js",
301
- "name": "getCurrentDesignSystem",
302
- "declaration": {
303
- "name": "getCurrentDesignSystem",
304
- "module": "src/design-system/design-system.ts"
305
- }
306
- },
307
- {
308
- "kind": "js",
309
- "name": "getCurrentDesignSystemPrefix",
310
- "declaration": {
311
- "name": "getCurrentDesignSystemPrefix",
312
- "module": "src/design-system/design-system.ts"
313
- }
314
- }
315
- ]
316
- },
317
- {
318
- "kind": "javascript-module",
319
- "path": "src/design-system/editable-elements.ts",
320
- "declarations": [
321
- {
322
- "kind": "variable",
323
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
324
- "type": {
325
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
326
- },
327
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
328
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
329
- },
330
- {
331
- "kind": "variable",
332
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
333
- "type": {
334
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
335
- },
336
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
337
- "description": "Design-system specific editable host selectors."
338
- },
339
- {
340
- "kind": "function",
341
- "name": "buildEditableElementSelector",
342
- "return": {
343
- "type": {
344
- "text": "string"
345
- }
346
- },
347
- "parameters": [
348
- {
349
- "name": "designSystems",
350
- "type": {
351
- "text": "readonly EditableDesignSystemPrefix[]"
352
- }
353
- },
354
- {
355
- "name": "customEditableSelectors",
356
- "default": "[]",
357
- "type": {
358
- "text": "readonly string[]"
359
- }
360
- }
361
- ]
362
- }
363
- ],
364
- "exports": [
365
- {
366
- "kind": "js",
367
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
368
- "declaration": {
369
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
370
- "module": "src/design-system/editable-elements.ts"
371
- }
372
- },
373
- {
374
- "kind": "js",
375
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
376
- "declaration": {
377
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
378
- "module": "src/design-system/editable-elements.ts"
379
- }
380
- },
381
- {
382
- "kind": "js",
383
- "name": "buildEditableElementSelector",
384
- "declaration": {
385
- "name": "buildEditableElementSelector",
386
- "module": "src/design-system/editable-elements.ts"
387
- }
388
- }
389
- ]
390
- },
391
- {
392
- "kind": "javascript-module",
393
- "path": "src/design-system/index.ts",
394
- "declarations": [],
395
- "exports": [
396
- {
397
- "kind": "js",
398
- "name": "*",
399
- "declaration": {
400
- "name": "*",
401
- "package": "./design-system"
402
- }
403
- },
404
- {
405
- "kind": "js",
406
- "name": "*",
407
- "declaration": {
408
- "name": "*",
409
- "package": "./editable-elements"
410
- }
411
- }
412
- ]
413
- },
414
212
  {
415
213
  "kind": "javascript-module",
416
214
  "path": "src/converters/index.ts",
@@ -454,7 +252,7 @@
454
252
  },
455
253
  {
456
254
  "kind": "javascript-module",
457
- "path": "src/directives/index.ts",
255
+ "path": "src/decorators/index.ts",
458
256
  "declarations": [],
459
257
  "exports": [
460
258
  {
@@ -462,169 +260,637 @@
462
260
  "name": "*",
463
261
  "declaration": {
464
262
  "name": "*",
465
- "package": "./sync"
466
- }
467
- },
468
- {
469
- "kind": "js",
470
- "name": "*",
471
- "declaration": {
472
- "name": "*",
473
- "package": "./when-else"
263
+ "package": "./renderOnChange"
474
264
  }
475
265
  }
476
266
  ]
477
267
  },
478
268
  {
479
269
  "kind": "javascript-module",
480
- "path": "src/env/index.ts",
481
- "declarations": [],
482
- "exports": [
270
+ "path": "src/decorators/renderOnChange.ts",
271
+ "declarations": [
483
272
  {
484
- "kind": "js",
485
- "name": "*",
486
- "declaration": {
487
- "name": "*",
488
- "package": "./is-dev"
489
- }
490
- },
273
+ "kind": "function",
274
+ "name": "renderOnChange",
275
+ "parameters": [
276
+ {
277
+ "name": "target",
278
+ "type": {
279
+ "text": "FASTElement & { render(): void }"
280
+ },
281
+ "description": "The target to define the property change handler on."
282
+ },
283
+ {
284
+ "name": "name",
285
+ "type": {
286
+ "text": "string"
287
+ },
288
+ "description": "The property name."
289
+ }
290
+ ],
291
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
292
+ "privacy": "public"
293
+ }
294
+ ],
295
+ "exports": [
491
296
  {
492
297
  "kind": "js",
493
- "name": "*",
298
+ "name": "renderOnChange",
494
299
  "declaration": {
495
- "name": "*",
496
- "package": "./variables"
300
+ "name": "renderOnChange",
301
+ "module": "src/decorators/renderOnChange.ts"
497
302
  }
498
303
  }
499
304
  ]
500
305
  },
501
306
  {
502
307
  "kind": "javascript-module",
503
- "path": "src/env/is-dev.ts",
308
+ "path": "src/data/inMemoryDatabase.ts",
504
309
  "declarations": [
505
310
  {
506
- "kind": "function",
507
- "name": "isDev",
508
- "description": "Determines if the current environment is a development environment.",
509
- "privacy": "public"
311
+ "kind": "class",
312
+ "description": "An in memory database of specific DatabaseRecord types.",
313
+ "name": "InMemoryDatabase",
314
+ "members": [
315
+ {
316
+ "kind": "field",
317
+ "name": "isWorking",
318
+ "type": {
319
+ "text": "boolean"
320
+ },
321
+ "privacy": "public",
322
+ "default": "false"
323
+ },
324
+ {
325
+ "kind": "field",
326
+ "name": "records",
327
+ "type": {
328
+ "text": "Record<string, T>"
329
+ },
330
+ "privacy": "private",
331
+ "default": "{}"
332
+ },
333
+ {
334
+ "kind": "field",
335
+ "name": "beforeUpdateListeners",
336
+ "privacy": "private"
337
+ },
338
+ {
339
+ "kind": "field",
340
+ "name": "afterUpdateListeners",
341
+ "privacy": "private"
342
+ },
343
+ {
344
+ "kind": "method",
345
+ "name": "create",
346
+ "privacy": "public",
347
+ "return": {
348
+ "type": {
349
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
350
+ }
351
+ },
352
+ "parameters": [
353
+ {
354
+ "name": "newValue",
355
+ "type": {
356
+ "text": "Omit<T, 'id'>"
357
+ }
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "kind": "method",
363
+ "name": "read",
364
+ "privacy": "public",
365
+ "return": {
366
+ "type": {
367
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
368
+ }
369
+ },
370
+ "parameters": [
371
+ {
372
+ "name": "id",
373
+ "type": {
374
+ "text": "string"
375
+ }
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "kind": "method",
381
+ "name": "update",
382
+ "privacy": "public",
383
+ "return": {
384
+ "type": {
385
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
386
+ }
387
+ },
388
+ "parameters": [
389
+ {
390
+ "name": "id",
391
+ "type": {
392
+ "text": "string"
393
+ }
394
+ },
395
+ {
396
+ "name": "newValue",
397
+ "type": {
398
+ "text": "Omit<Partial<T>, 'id'>"
399
+ }
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ "kind": "method",
405
+ "name": "delete",
406
+ "privacy": "public",
407
+ "return": {
408
+ "type": {
409
+ "text": "Promise<DatabaseAccessResult.Delete>"
410
+ }
411
+ },
412
+ "parameters": [
413
+ {
414
+ "name": "id",
415
+ "type": {
416
+ "text": "string"
417
+ }
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "kind": "method",
423
+ "name": "visit",
424
+ "privacy": "public",
425
+ "return": {
426
+ "type": {
427
+ "text": "Promise<void>"
428
+ }
429
+ },
430
+ "parameters": [
431
+ {
432
+ "name": "visitor",
433
+ "type": {
434
+ "text": "(record: T) => void"
435
+ }
436
+ }
437
+ ]
438
+ },
439
+ {
440
+ "kind": "method",
441
+ "name": "onBeforeUpdate",
442
+ "privacy": "public",
443
+ "return": {
444
+ "type": {
445
+ "text": "() => void"
446
+ }
447
+ },
448
+ "parameters": [
449
+ {
450
+ "name": "listener",
451
+ "type": {
452
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
453
+ }
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "kind": "method",
459
+ "name": "onAfterUpdate",
460
+ "privacy": "public",
461
+ "return": {
462
+ "type": {
463
+ "text": "() => void"
464
+ }
465
+ },
466
+ "parameters": [
467
+ {
468
+ "name": "listener",
469
+ "type": {
470
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
471
+ }
472
+ }
473
+ ]
474
+ }
475
+ ]
510
476
  }
511
477
  ],
512
478
  "exports": [
513
479
  {
514
480
  "kind": "js",
515
- "name": "isDev",
481
+ "name": "InMemoryDatabase",
516
482
  "declaration": {
517
- "name": "isDev",
518
- "module": "src/env/is-dev.ts"
483
+ "name": "InMemoryDatabase",
484
+ "module": "src/data/inMemoryDatabase.ts"
519
485
  }
520
486
  }
521
487
  ]
522
488
  },
523
489
  {
524
490
  "kind": "javascript-module",
525
- "path": "src/env/variables.ts",
526
- "declarations": [
491
+ "path": "src/data/index.ts",
492
+ "declarations": [],
493
+ "exports": [
527
494
  {
528
- "kind": "variable",
529
- "name": "BUILDER",
530
- "type": {
531
- "text": "string"
495
+ "kind": "js",
496
+ "name": "*",
497
+ "declaration": {
498
+ "name": "*",
499
+ "package": "./inMemoryDatabase"
532
500
  }
533
- },
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "kind": "javascript-module",
506
+ "path": "src/design-system/design-system.ts",
507
+ "declarations": [
534
508
  {
535
- "kind": "variable",
536
- "name": "_BUILDER",
537
- "type": {
538
- "text": "string"
509
+ "kind": "function",
510
+ "name": "assureDesignSystem",
511
+ "return": {
512
+ "type": {
513
+ "text": "DesignSystemModule"
514
+ }
539
515
  },
540
- "default": "'webpack'",
541
- "description": "The builder aka file bundler.",
516
+ "parameters": [
517
+ {
518
+ "name": "module",
519
+ "type": {
520
+ "text": "DesignSystemModule"
521
+ }
522
+ }
523
+ ],
524
+ "description": "assureDesignSystem.",
542
525
  "privacy": "public"
543
526
  },
544
527
  {
545
- "kind": "variable",
546
- "name": "PUBLIC_PATH",
547
- "type": {
548
- "text": "string"
549
- }
550
- },
551
- {
552
- "kind": "variable",
553
- "name": "_PUBLIC_PATH",
554
- "type": {
555
- "text": "string"
528
+ "kind": "function",
529
+ "name": "getCurrentDesignSystem",
530
+ "return": {
531
+ "type": {
532
+ "text": ""
533
+ }
556
534
  },
557
- "default": "'/'",
558
- "description": "The public path.",
535
+ "parameters": [
536
+ {
537
+ "name": "element",
538
+ "type": {
539
+ "text": "HTMLElement"
540
+ },
541
+ "description": "The starting HTML element"
542
+ },
543
+ {
544
+ "name": "fallbackPrefix",
545
+ "type": {
546
+ "text": "string"
547
+ },
548
+ "description": "The prefix to fallback to if the provider is not available"
549
+ }
550
+ ],
551
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
559
552
  "privacy": "public"
560
553
  },
561
554
  {
562
- "kind": "variable",
563
- "name": "SOCKET_EXT",
564
- "type": {
565
- "text": "string"
555
+ "kind": "function",
556
+ "name": "getCurrentDesignSystemPrefix",
557
+ "return": {
558
+ "type": {
559
+ "text": ""
560
+ }
561
+ },
562
+ "parameters": [
563
+ {
564
+ "name": "element",
565
+ "type": {
566
+ "text": "HTMLElement"
567
+ },
568
+ "description": "The starting HTML element"
569
+ },
570
+ {
571
+ "name": "fallbackPrefix",
572
+ "type": {
573
+ "text": "string"
574
+ },
575
+ "description": "The prefix to fallback to if the provider is not available"
576
+ }
577
+ ],
578
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
579
+ "privacy": "public"
580
+ }
581
+ ],
582
+ "exports": [
583
+ {
584
+ "kind": "js",
585
+ "name": "assureDesignSystem",
586
+ "declaration": {
587
+ "name": "assureDesignSystem",
588
+ "module": "src/design-system/design-system.ts"
589
+ }
590
+ },
591
+ {
592
+ "kind": "js",
593
+ "name": "getCurrentDesignSystem",
594
+ "declaration": {
595
+ "name": "getCurrentDesignSystem",
596
+ "module": "src/design-system/design-system.ts"
566
597
  }
567
598
  },
599
+ {
600
+ "kind": "js",
601
+ "name": "getCurrentDesignSystemPrefix",
602
+ "declaration": {
603
+ "name": "getCurrentDesignSystemPrefix",
604
+ "module": "src/design-system/design-system.ts"
605
+ }
606
+ }
607
+ ]
608
+ },
609
+ {
610
+ "kind": "javascript-module",
611
+ "path": "src/design-system/editable-elements.ts",
612
+ "declarations": [
568
613
  {
569
614
  "kind": "variable",
570
- "name": "_SOCKET_EXT",
615
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
571
616
  "type": {
572
- "text": "string"
617
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
573
618
  },
574
- "default": "'gwf'",
575
- "description": "The sub-path used for WebSocket connections when API_HOST is not set",
576
- "privacy": "public"
619
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
620
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
577
621
  },
578
622
  {
579
623
  "kind": "variable",
580
- "name": "FORCE_HTTP",
624
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
581
625
  "type": {
582
- "text": "string"
583
- }
626
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
627
+ },
628
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
629
+ "description": "Design-system specific editable host selectors."
584
630
  },
585
631
  {
586
- "kind": "variable",
587
- "name": "_FORCE_HTTP",
588
- "type": {
589
- "text": "string"
632
+ "kind": "function",
633
+ "name": "buildEditableElementSelector",
634
+ "return": {
635
+ "type": {
636
+ "text": "string"
637
+ }
590
638
  },
591
- "description": "The path to a JSON config file for the HTTP mode.",
592
- "privacy": "public"
639
+ "parameters": [
640
+ {
641
+ "name": "designSystems",
642
+ "type": {
643
+ "text": "readonly EditableDesignSystemPrefix[]"
644
+ }
645
+ },
646
+ {
647
+ "name": "customEditableSelectors",
648
+ "default": "[]",
649
+ "type": {
650
+ "text": "readonly string[]"
651
+ }
652
+ }
653
+ ]
654
+ }
655
+ ],
656
+ "exports": [
657
+ {
658
+ "kind": "js",
659
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
660
+ "declaration": {
661
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
662
+ "module": "src/design-system/editable-elements.ts"
663
+ }
593
664
  },
594
665
  {
595
- "kind": "variable",
596
- "name": "GENESIS_SOCKET_URL",
597
- "default": "`${location.protocol.replace('http', 'ws')}//${location.host}${_PUBLIC_PATH}/${_SOCKET_EXT}/`",
598
- "description": "Genesis Socket URL",
599
- "privacy": "public"
666
+ "kind": "js",
667
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
668
+ "declaration": {
669
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
670
+ "module": "src/design-system/editable-elements.ts"
671
+ }
672
+ },
673
+ {
674
+ "kind": "js",
675
+ "name": "buildEditableElementSelector",
676
+ "declaration": {
677
+ "name": "buildEditableElementSelector",
678
+ "module": "src/design-system/editable-elements.ts"
679
+ }
680
+ }
681
+ ]
682
+ },
683
+ {
684
+ "kind": "javascript-module",
685
+ "path": "src/design-system/index.ts",
686
+ "declarations": [],
687
+ "exports": [
688
+ {
689
+ "kind": "js",
690
+ "name": "*",
691
+ "declaration": {
692
+ "name": "*",
693
+ "package": "./design-system"
694
+ }
695
+ },
696
+ {
697
+ "kind": "js",
698
+ "name": "*",
699
+ "declaration": {
700
+ "name": "*",
701
+ "package": "./editable-elements"
702
+ }
703
+ }
704
+ ]
705
+ },
706
+ {
707
+ "kind": "javascript-module",
708
+ "path": "src/directives/index.ts",
709
+ "declarations": [],
710
+ "exports": [
711
+ {
712
+ "kind": "js",
713
+ "name": "*",
714
+ "declaration": {
715
+ "name": "*",
716
+ "package": "./sync"
717
+ }
718
+ },
719
+ {
720
+ "kind": "js",
721
+ "name": "*",
722
+ "declaration": {
723
+ "name": "*",
724
+ "package": "./when-else"
725
+ }
726
+ }
727
+ ]
728
+ },
729
+ {
730
+ "kind": "javascript-module",
731
+ "path": "src/encoding/index.ts",
732
+ "declarations": [],
733
+ "exports": [
734
+ {
735
+ "kind": "js",
736
+ "name": "*",
737
+ "declaration": {
738
+ "name": "*",
739
+ "package": "./base64"
740
+ }
741
+ }
742
+ ]
743
+ },
744
+ {
745
+ "kind": "javascript-module",
746
+ "path": "src/env/index.ts",
747
+ "declarations": [],
748
+ "exports": [
749
+ {
750
+ "kind": "js",
751
+ "name": "*",
752
+ "declaration": {
753
+ "name": "*",
754
+ "package": "./is-dev"
755
+ }
600
756
  },
757
+ {
758
+ "kind": "js",
759
+ "name": "*",
760
+ "declaration": {
761
+ "name": "*",
762
+ "package": "./variables"
763
+ }
764
+ }
765
+ ]
766
+ },
767
+ {
768
+ "kind": "javascript-module",
769
+ "path": "src/env/is-dev.ts",
770
+ "declarations": [
771
+ {
772
+ "kind": "function",
773
+ "name": "isDev",
774
+ "description": "Determines if the current environment is a development environment.",
775
+ "privacy": "public"
776
+ }
777
+ ],
778
+ "exports": [
779
+ {
780
+ "kind": "js",
781
+ "name": "isDev",
782
+ "declaration": {
783
+ "name": "isDev",
784
+ "module": "src/env/is-dev.ts"
785
+ }
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "kind": "javascript-module",
791
+ "path": "src/env/variables.ts",
792
+ "declarations": [
601
793
  {
602
794
  "kind": "variable",
603
- "name": "API_HOST",
795
+ "name": "BUILDER",
604
796
  "type": {
605
797
  "text": "string"
606
798
  }
607
799
  },
608
800
  {
609
801
  "kind": "variable",
610
- "name": "_API_HOST",
802
+ "name": "_BUILDER",
611
803
  "type": {
612
804
  "text": "string"
613
805
  },
614
- "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
615
- "description": "The Genesis Server URL (WebSocket or HTTP).",
806
+ "default": "'webpack'",
807
+ "description": "The builder aka file bundler.",
616
808
  "privacy": "public"
617
809
  },
618
810
  {
619
811
  "kind": "variable",
620
- "name": "HTTP_CONFIG",
812
+ "name": "PUBLIC_PATH",
621
813
  "type": {
622
814
  "text": "string"
623
815
  }
624
816
  },
625
817
  {
626
818
  "kind": "variable",
627
- "name": "_HTTP_CONFIG",
819
+ "name": "_PUBLIC_PATH",
820
+ "type": {
821
+ "text": "string"
822
+ },
823
+ "default": "'/'",
824
+ "description": "The public path.",
825
+ "privacy": "public"
826
+ },
827
+ {
828
+ "kind": "variable",
829
+ "name": "SOCKET_EXT",
830
+ "type": {
831
+ "text": "string"
832
+ }
833
+ },
834
+ {
835
+ "kind": "variable",
836
+ "name": "_SOCKET_EXT",
837
+ "type": {
838
+ "text": "string"
839
+ },
840
+ "default": "'gwf'",
841
+ "description": "The sub-path used for WebSocket connections when API_HOST is not set",
842
+ "privacy": "public"
843
+ },
844
+ {
845
+ "kind": "variable",
846
+ "name": "FORCE_HTTP",
847
+ "type": {
848
+ "text": "string"
849
+ }
850
+ },
851
+ {
852
+ "kind": "variable",
853
+ "name": "_FORCE_HTTP",
854
+ "type": {
855
+ "text": "string"
856
+ },
857
+ "description": "The path to a JSON config file for the HTTP mode.",
858
+ "privacy": "public"
859
+ },
860
+ {
861
+ "kind": "variable",
862
+ "name": "GENESIS_SOCKET_URL",
863
+ "default": "`${location.protocol.replace('http', 'ws')}//${location.host}${_PUBLIC_PATH}/${_SOCKET_EXT}/`",
864
+ "description": "Genesis Socket URL",
865
+ "privacy": "public"
866
+ },
867
+ {
868
+ "kind": "variable",
869
+ "name": "API_HOST",
870
+ "type": {
871
+ "text": "string"
872
+ }
873
+ },
874
+ {
875
+ "kind": "variable",
876
+ "name": "_API_HOST",
877
+ "type": {
878
+ "text": "string"
879
+ },
880
+ "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
881
+ "description": "The Genesis Server URL (WebSocket or HTTP).",
882
+ "privacy": "public"
883
+ },
884
+ {
885
+ "kind": "variable",
886
+ "name": "HTTP_CONFIG",
887
+ "type": {
888
+ "text": "string"
889
+ }
890
+ },
891
+ {
892
+ "kind": "variable",
893
+ "name": "_HTTP_CONFIG",
628
894
  "type": {
629
895
  "text": "string"
630
896
  },
@@ -950,272 +1216,6 @@
950
1216
  }
951
1217
  ]
952
1218
  },
953
- {
954
- "kind": "javascript-module",
955
- "path": "src/encoding/index.ts",
956
- "declarations": [],
957
- "exports": [
958
- {
959
- "kind": "js",
960
- "name": "*",
961
- "declaration": {
962
- "name": "*",
963
- "package": "./base64"
964
- }
965
- }
966
- ]
967
- },
968
- {
969
- "kind": "javascript-module",
970
- "path": "src/decorators/index.ts",
971
- "declarations": [],
972
- "exports": [
973
- {
974
- "kind": "js",
975
- "name": "*",
976
- "declaration": {
977
- "name": "*",
978
- "package": "./renderOnChange"
979
- }
980
- }
981
- ]
982
- },
983
- {
984
- "kind": "javascript-module",
985
- "path": "src/decorators/renderOnChange.ts",
986
- "declarations": [
987
- {
988
- "kind": "function",
989
- "name": "renderOnChange",
990
- "parameters": [
991
- {
992
- "name": "target",
993
- "type": {
994
- "text": "FASTElement & { render(): void }"
995
- },
996
- "description": "The target to define the property change handler on."
997
- },
998
- {
999
- "name": "name",
1000
- "type": {
1001
- "text": "string"
1002
- },
1003
- "description": "The property name."
1004
- }
1005
- ],
1006
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1007
- "privacy": "public"
1008
- }
1009
- ],
1010
- "exports": [
1011
- {
1012
- "kind": "js",
1013
- "name": "renderOnChange",
1014
- "declaration": {
1015
- "name": "renderOnChange",
1016
- "module": "src/decorators/renderOnChange.ts"
1017
- }
1018
- }
1019
- ]
1020
- },
1021
- {
1022
- "kind": "javascript-module",
1023
- "path": "src/data/inMemoryDatabase.ts",
1024
- "declarations": [
1025
- {
1026
- "kind": "class",
1027
- "description": "An in memory database of specific DatabaseRecord types.",
1028
- "name": "InMemoryDatabase",
1029
- "members": [
1030
- {
1031
- "kind": "field",
1032
- "name": "isWorking",
1033
- "type": {
1034
- "text": "boolean"
1035
- },
1036
- "privacy": "public",
1037
- "default": "false"
1038
- },
1039
- {
1040
- "kind": "field",
1041
- "name": "records",
1042
- "type": {
1043
- "text": "Record<string, T>"
1044
- },
1045
- "privacy": "private",
1046
- "default": "{}"
1047
- },
1048
- {
1049
- "kind": "field",
1050
- "name": "beforeUpdateListeners",
1051
- "privacy": "private"
1052
- },
1053
- {
1054
- "kind": "field",
1055
- "name": "afterUpdateListeners",
1056
- "privacy": "private"
1057
- },
1058
- {
1059
- "kind": "method",
1060
- "name": "create",
1061
- "privacy": "public",
1062
- "return": {
1063
- "type": {
1064
- "text": "Promise<DatabaseAccessResult.Create<T>>"
1065
- }
1066
- },
1067
- "parameters": [
1068
- {
1069
- "name": "newValue",
1070
- "type": {
1071
- "text": "Omit<T, 'id'>"
1072
- }
1073
- }
1074
- ]
1075
- },
1076
- {
1077
- "kind": "method",
1078
- "name": "read",
1079
- "privacy": "public",
1080
- "return": {
1081
- "type": {
1082
- "text": "Promise<DatabaseAccessResult.Read<T>>"
1083
- }
1084
- },
1085
- "parameters": [
1086
- {
1087
- "name": "id",
1088
- "type": {
1089
- "text": "string"
1090
- }
1091
- }
1092
- ]
1093
- },
1094
- {
1095
- "kind": "method",
1096
- "name": "update",
1097
- "privacy": "public",
1098
- "return": {
1099
- "type": {
1100
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1101
- }
1102
- },
1103
- "parameters": [
1104
- {
1105
- "name": "id",
1106
- "type": {
1107
- "text": "string"
1108
- }
1109
- },
1110
- {
1111
- "name": "newValue",
1112
- "type": {
1113
- "text": "Omit<Partial<T>, 'id'>"
1114
- }
1115
- }
1116
- ]
1117
- },
1118
- {
1119
- "kind": "method",
1120
- "name": "delete",
1121
- "privacy": "public",
1122
- "return": {
1123
- "type": {
1124
- "text": "Promise<DatabaseAccessResult.Delete>"
1125
- }
1126
- },
1127
- "parameters": [
1128
- {
1129
- "name": "id",
1130
- "type": {
1131
- "text": "string"
1132
- }
1133
- }
1134
- ]
1135
- },
1136
- {
1137
- "kind": "method",
1138
- "name": "visit",
1139
- "privacy": "public",
1140
- "return": {
1141
- "type": {
1142
- "text": "Promise<void>"
1143
- }
1144
- },
1145
- "parameters": [
1146
- {
1147
- "name": "visitor",
1148
- "type": {
1149
- "text": "(record: T) => void"
1150
- }
1151
- }
1152
- ]
1153
- },
1154
- {
1155
- "kind": "method",
1156
- "name": "onBeforeUpdate",
1157
- "privacy": "public",
1158
- "return": {
1159
- "type": {
1160
- "text": "() => void"
1161
- }
1162
- },
1163
- "parameters": [
1164
- {
1165
- "name": "listener",
1166
- "type": {
1167
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1168
- }
1169
- }
1170
- ]
1171
- },
1172
- {
1173
- "kind": "method",
1174
- "name": "onAfterUpdate",
1175
- "privacy": "public",
1176
- "return": {
1177
- "type": {
1178
- "text": "() => void"
1179
- }
1180
- },
1181
- "parameters": [
1182
- {
1183
- "name": "listener",
1184
- "type": {
1185
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1186
- }
1187
- }
1188
- ]
1189
- }
1190
- ]
1191
- }
1192
- ],
1193
- "exports": [
1194
- {
1195
- "kind": "js",
1196
- "name": "InMemoryDatabase",
1197
- "declaration": {
1198
- "name": "InMemoryDatabase",
1199
- "module": "src/data/inMemoryDatabase.ts"
1200
- }
1201
- }
1202
- ]
1203
- },
1204
- {
1205
- "kind": "javascript-module",
1206
- "path": "src/data/index.ts",
1207
- "declarations": [],
1208
- "exports": [
1209
- {
1210
- "kind": "js",
1211
- "name": "*",
1212
- "declaration": {
1213
- "name": "*",
1214
- "package": "./inMemoryDatabase"
1215
- }
1216
- }
1217
- ]
1218
- },
1219
1219
  {
1220
1220
  "kind": "javascript-module",
1221
1221
  "path": "src/error/errorMap.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.430.2-FUI-2528.1",
4
+ "version": "14.430.2-FUI-2528.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "14.430.2-FUI-2528.1",
33
- "@genesislcap/genx": "14.430.2-FUI-2528.1",
34
- "@genesislcap/rollup-builder": "14.430.2-FUI-2528.1",
35
- "@genesislcap/ts-builder": "14.430.2-FUI-2528.1",
36
- "@genesislcap/uvu-playwright-builder": "14.430.2-FUI-2528.1",
37
- "@genesislcap/vite-builder": "14.430.2-FUI-2528.1",
38
- "@genesislcap/webpack-builder": "14.430.2-FUI-2528.1",
32
+ "@genesislcap/foundation-testing": "14.430.2-FUI-2528.2",
33
+ "@genesislcap/genx": "14.430.2-FUI-2528.2",
34
+ "@genesislcap/rollup-builder": "14.430.2-FUI-2528.2",
35
+ "@genesislcap/ts-builder": "14.430.2-FUI-2528.2",
36
+ "@genesislcap/uvu-playwright-builder": "14.430.2-FUI-2528.2",
37
+ "@genesislcap/vite-builder": "14.430.2-FUI-2528.2",
38
+ "@genesislcap/webpack-builder": "14.430.2-FUI-2528.2",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.430.2-FUI-2528.1",
43
- "@genesislcap/foundation-logger": "14.430.2-FUI-2528.1",
42
+ "@genesislcap/expression-builder": "14.430.2-FUI-2528.2",
43
+ "@genesislcap/foundation-logger": "14.430.2-FUI-2528.2",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "18300a1ebbeea085635bc379fd89b4894e1870a9"
61
+ "gitHead": "a9029529642cefcd6de604943ba82fc7bf3edbab"
62
62
  }