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