@genesislcap/foundation-utils 14.443.1-alpha-3fbf238.0 → 14.443.1

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 +649 -649
  2. package/package.json +11 -11
@@ -211,7 +211,7 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/decorators/index.ts",
214
+ "path": "src/converters/index.ts",
215
215
  "declarations": [],
216
216
  "exports": [
217
217
  {
@@ -219,131 +219,219 @@
219
219
  "name": "*",
220
220
  "declaration": {
221
221
  "name": "*",
222
- "package": "./renderOnChange"
222
+ "package": "./string-array-converter"
223
223
  }
224
224
  }
225
225
  ]
226
226
  },
227
227
  {
228
228
  "kind": "javascript-module",
229
- "path": "src/decorators/renderOnChange.ts",
229
+ "path": "src/converters/string-array-converter.ts",
230
+ "declarations": [
231
+ {
232
+ "kind": "variable",
233
+ "name": "stringArrayConverter",
234
+ "type": {
235
+ "text": "ValueConverter"
236
+ },
237
+ "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
238
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
239
+ "privacy": "public"
240
+ }
241
+ ],
242
+ "exports": [
243
+ {
244
+ "kind": "js",
245
+ "name": "stringArrayConverter",
246
+ "declaration": {
247
+ "name": "stringArrayConverter",
248
+ "module": "src/converters/string-array-converter.ts"
249
+ }
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "kind": "javascript-module",
255
+ "path": "src/design-system/design-system.ts",
230
256
  "declarations": [
231
257
  {
232
258
  "kind": "function",
233
- "name": "renderOnChange",
259
+ "name": "assureDesignSystem",
260
+ "return": {
261
+ "type": {
262
+ "text": "DesignSystemModule"
263
+ }
264
+ },
234
265
  "parameters": [
235
266
  {
236
- "name": "target",
267
+ "name": "module",
237
268
  "type": {
238
- "text": "FASTElement & { render(): void }"
269
+ "text": "DesignSystemModule"
270
+ }
271
+ }
272
+ ],
273
+ "description": "assureDesignSystem.",
274
+ "privacy": "public"
275
+ },
276
+ {
277
+ "kind": "function",
278
+ "name": "getCurrentDesignSystem",
279
+ "return": {
280
+ "type": {
281
+ "text": ""
282
+ }
283
+ },
284
+ "parameters": [
285
+ {
286
+ "name": "element",
287
+ "type": {
288
+ "text": "HTMLElement"
239
289
  },
240
- "description": "The target to define the property change handler on."
290
+ "description": "The starting HTML element"
241
291
  },
242
292
  {
243
- "name": "name",
293
+ "name": "fallbackPrefix",
244
294
  "type": {
245
295
  "text": "string"
246
296
  },
247
- "description": "The property name."
297
+ "description": "The prefix to fallback to if the provider is not available"
248
298
  }
249
299
  ],
250
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
300
+ "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.",
251
301
  "privacy": "public"
252
- }
253
- ],
254
- "exports": [
302
+ },
255
303
  {
256
- "kind": "js",
257
- "name": "renderOnChange",
258
- "declaration": {
259
- "name": "renderOnChange",
260
- "module": "src/decorators/renderOnChange.ts"
261
- }
304
+ "kind": "function",
305
+ "name": "getCurrentDesignSystemPrefix",
306
+ "return": {
307
+ "type": {
308
+ "text": ""
309
+ }
310
+ },
311
+ "parameters": [
312
+ {
313
+ "name": "element",
314
+ "type": {
315
+ "text": "HTMLElement"
316
+ },
317
+ "description": "The starting HTML element"
318
+ },
319
+ {
320
+ "name": "fallbackPrefix",
321
+ "type": {
322
+ "text": "string"
323
+ },
324
+ "description": "The prefix to fallback to if the provider is not available"
325
+ }
326
+ ],
327
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
328
+ "privacy": "public"
262
329
  }
263
- ]
264
- },
265
- {
266
- "kind": "javascript-module",
267
- "path": "src/directives/index.ts",
268
- "declarations": [],
330
+ ],
269
331
  "exports": [
270
332
  {
271
333
  "kind": "js",
272
- "name": "*",
334
+ "name": "assureDesignSystem",
273
335
  "declaration": {
274
- "name": "*",
275
- "package": "./sync"
336
+ "name": "assureDesignSystem",
337
+ "module": "src/design-system/design-system.ts"
276
338
  }
277
339
  },
278
340
  {
279
341
  "kind": "js",
280
- "name": "*",
342
+ "name": "getCurrentDesignSystem",
281
343
  "declaration": {
282
- "name": "*",
283
- "package": "./when-else"
344
+ "name": "getCurrentDesignSystem",
345
+ "module": "src/design-system/design-system.ts"
284
346
  }
285
- }
286
- ]
287
- },
288
- {
289
- "kind": "javascript-module",
290
- "path": "src/converters/index.ts",
291
- "declarations": [],
292
- "exports": [
347
+ },
293
348
  {
294
349
  "kind": "js",
295
- "name": "*",
350
+ "name": "getCurrentDesignSystemPrefix",
296
351
  "declaration": {
297
- "name": "*",
298
- "package": "./string-array-converter"
352
+ "name": "getCurrentDesignSystemPrefix",
353
+ "module": "src/design-system/design-system.ts"
299
354
  }
300
355
  }
301
356
  ]
302
357
  },
303
358
  {
304
359
  "kind": "javascript-module",
305
- "path": "src/converters/string-array-converter.ts",
360
+ "path": "src/design-system/editable-elements.ts",
306
361
  "declarations": [
307
362
  {
308
363
  "kind": "variable",
309
- "name": "stringArrayConverter",
364
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
310
365
  "type": {
311
- "text": "ValueConverter"
366
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
312
367
  },
313
- "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
314
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
315
- "privacy": "public"
368
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
369
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
370
+ },
371
+ {
372
+ "kind": "variable",
373
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
374
+ "type": {
375
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
376
+ },
377
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
378
+ "description": "Design-system specific editable host selectors."
379
+ },
380
+ {
381
+ "kind": "function",
382
+ "name": "buildEditableElementSelector",
383
+ "return": {
384
+ "type": {
385
+ "text": "string"
386
+ }
387
+ },
388
+ "parameters": [
389
+ {
390
+ "name": "designSystems",
391
+ "type": {
392
+ "text": "readonly EditableDesignSystemPrefix[]"
393
+ }
394
+ },
395
+ {
396
+ "name": "customEditableSelectors",
397
+ "default": "[]",
398
+ "type": {
399
+ "text": "readonly string[]"
400
+ }
401
+ }
402
+ ]
316
403
  }
317
404
  ],
318
405
  "exports": [
319
406
  {
320
407
  "kind": "js",
321
- "name": "stringArrayConverter",
408
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
322
409
  "declaration": {
323
- "name": "stringArrayConverter",
324
- "module": "src/converters/string-array-converter.ts"
410
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
411
+ "module": "src/design-system/editable-elements.ts"
325
412
  }
326
- }
327
- ]
328
- },
329
- {
330
- "kind": "javascript-module",
331
- "path": "src/encoding/index.ts",
332
- "declarations": [],
333
- "exports": [
413
+ },
334
414
  {
335
415
  "kind": "js",
336
- "name": "*",
416
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
337
417
  "declaration": {
338
- "name": "*",
339
- "package": "./base64"
418
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
419
+ "module": "src/design-system/editable-elements.ts"
420
+ }
421
+ },
422
+ {
423
+ "kind": "js",
424
+ "name": "buildEditableElementSelector",
425
+ "declaration": {
426
+ "name": "buildEditableElementSelector",
427
+ "module": "src/design-system/editable-elements.ts"
340
428
  }
341
429
  }
342
430
  ]
343
431
  },
344
432
  {
345
433
  "kind": "javascript-module",
346
- "path": "src/env/index.ts",
434
+ "path": "src/design-system/index.ts",
347
435
  "declarations": [],
348
436
  "exports": [
349
437
  {
@@ -351,7 +439,7 @@
351
439
  "name": "*",
352
440
  "declaration": {
353
441
  "name": "*",
354
- "package": "./is-dev"
442
+ "package": "./design-system"
355
443
  }
356
444
  },
357
445
  {
@@ -359,52 +447,364 @@
359
447
  "name": "*",
360
448
  "declaration": {
361
449
  "name": "*",
362
- "package": "./variables"
363
- }
364
- }
365
- ]
366
- },
367
- {
368
- "kind": "javascript-module",
369
- "path": "src/env/is-dev.ts",
370
- "declarations": [
371
- {
372
- "kind": "function",
373
- "name": "isDev",
374
- "description": "Determines if the current environment is a development environment.",
375
- "privacy": "public"
376
- }
377
- ],
378
- "exports": [
379
- {
380
- "kind": "js",
381
- "name": "isDev",
382
- "declaration": {
383
- "name": "isDev",
384
- "module": "src/env/is-dev.ts"
450
+ "package": "./editable-elements"
385
451
  }
386
452
  }
387
453
  ]
388
454
  },
389
455
  {
390
456
  "kind": "javascript-module",
391
- "path": "src/env/variables.ts",
457
+ "path": "src/data/inMemoryDatabase.ts",
392
458
  "declarations": [
393
459
  {
394
- "kind": "variable",
395
- "name": "BUILDER",
396
- "type": {
397
- "text": "string"
398
- }
399
- },
400
- {
401
- "kind": "variable",
402
- "name": "_BUILDER",
403
- "type": {
404
- "text": "string"
405
- },
406
- "default": "'webpack'",
407
- "description": "The builder aka file bundler.",
460
+ "kind": "class",
461
+ "description": "An in memory database of specific DatabaseRecord types.",
462
+ "name": "InMemoryDatabase",
463
+ "members": [
464
+ {
465
+ "kind": "field",
466
+ "name": "isWorking",
467
+ "type": {
468
+ "text": "boolean"
469
+ },
470
+ "privacy": "public",
471
+ "default": "false"
472
+ },
473
+ {
474
+ "kind": "field",
475
+ "name": "records",
476
+ "type": {
477
+ "text": "Record<string, T>"
478
+ },
479
+ "privacy": "private",
480
+ "default": "{}"
481
+ },
482
+ {
483
+ "kind": "field",
484
+ "name": "beforeUpdateListeners",
485
+ "privacy": "private"
486
+ },
487
+ {
488
+ "kind": "field",
489
+ "name": "afterUpdateListeners",
490
+ "privacy": "private"
491
+ },
492
+ {
493
+ "kind": "method",
494
+ "name": "create",
495
+ "privacy": "public",
496
+ "return": {
497
+ "type": {
498
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
499
+ }
500
+ },
501
+ "parameters": [
502
+ {
503
+ "name": "newValue",
504
+ "type": {
505
+ "text": "Omit<T, 'id'>"
506
+ }
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "kind": "method",
512
+ "name": "read",
513
+ "privacy": "public",
514
+ "return": {
515
+ "type": {
516
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
517
+ }
518
+ },
519
+ "parameters": [
520
+ {
521
+ "name": "id",
522
+ "type": {
523
+ "text": "string"
524
+ }
525
+ }
526
+ ]
527
+ },
528
+ {
529
+ "kind": "method",
530
+ "name": "update",
531
+ "privacy": "public",
532
+ "return": {
533
+ "type": {
534
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
535
+ }
536
+ },
537
+ "parameters": [
538
+ {
539
+ "name": "id",
540
+ "type": {
541
+ "text": "string"
542
+ }
543
+ },
544
+ {
545
+ "name": "newValue",
546
+ "type": {
547
+ "text": "Omit<Partial<T>, 'id'>"
548
+ }
549
+ }
550
+ ]
551
+ },
552
+ {
553
+ "kind": "method",
554
+ "name": "delete",
555
+ "privacy": "public",
556
+ "return": {
557
+ "type": {
558
+ "text": "Promise<DatabaseAccessResult.Delete>"
559
+ }
560
+ },
561
+ "parameters": [
562
+ {
563
+ "name": "id",
564
+ "type": {
565
+ "text": "string"
566
+ }
567
+ }
568
+ ]
569
+ },
570
+ {
571
+ "kind": "method",
572
+ "name": "visit",
573
+ "privacy": "public",
574
+ "return": {
575
+ "type": {
576
+ "text": "Promise<void>"
577
+ }
578
+ },
579
+ "parameters": [
580
+ {
581
+ "name": "visitor",
582
+ "type": {
583
+ "text": "(record: T) => void"
584
+ }
585
+ }
586
+ ]
587
+ },
588
+ {
589
+ "kind": "method",
590
+ "name": "onBeforeUpdate",
591
+ "privacy": "public",
592
+ "return": {
593
+ "type": {
594
+ "text": "() => void"
595
+ }
596
+ },
597
+ "parameters": [
598
+ {
599
+ "name": "listener",
600
+ "type": {
601
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
602
+ }
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "kind": "method",
608
+ "name": "onAfterUpdate",
609
+ "privacy": "public",
610
+ "return": {
611
+ "type": {
612
+ "text": "() => void"
613
+ }
614
+ },
615
+ "parameters": [
616
+ {
617
+ "name": "listener",
618
+ "type": {
619
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
620
+ }
621
+ }
622
+ ]
623
+ }
624
+ ]
625
+ }
626
+ ],
627
+ "exports": [
628
+ {
629
+ "kind": "js",
630
+ "name": "InMemoryDatabase",
631
+ "declaration": {
632
+ "name": "InMemoryDatabase",
633
+ "module": "src/data/inMemoryDatabase.ts"
634
+ }
635
+ }
636
+ ]
637
+ },
638
+ {
639
+ "kind": "javascript-module",
640
+ "path": "src/data/index.ts",
641
+ "declarations": [],
642
+ "exports": [
643
+ {
644
+ "kind": "js",
645
+ "name": "*",
646
+ "declaration": {
647
+ "name": "*",
648
+ "package": "./inMemoryDatabase"
649
+ }
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "kind": "javascript-module",
655
+ "path": "src/directives/index.ts",
656
+ "declarations": [],
657
+ "exports": [
658
+ {
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.",
408
808
  "privacy": "public"
409
809
  },
410
810
  {
@@ -583,635 +983,235 @@
583
983
  },
584
984
  {
585
985
  "kind": "variable",
586
- "name": "CHANGE_PASSWORD_URL",
587
- "type": {
588
- "text": "string"
589
- },
590
- "default": "'gwf/event-change-user-password'",
591
- "privacy": "public"
592
- },
593
- {
594
- "kind": "variable",
595
- "name": "FORGOT_PASSWORD_URL",
596
- "type": {
597
- "text": "string"
598
- },
599
- "default": "'gwf/event-self-service-password-reset'",
600
- "privacy": "public"
601
- },
602
- {
603
- "kind": "variable",
604
- "name": "RESET_PASSWORD_URL",
605
- "type": {
606
- "text": "string"
607
- },
608
- "default": "'gwf/event-password-reset-action'",
609
- "privacy": "public"
610
- },
611
- {
612
- "kind": "variable",
613
- "name": "SSO_LIST_URL",
614
- "type": {
615
- "text": "string"
616
- },
617
- "default": "'gwf/sso/list'",
618
- "privacy": "public"
619
- },
620
- {
621
- "kind": "variable",
622
- "name": "SSO_LOGIN_URL",
623
- "type": {
624
- "text": "string"
625
- },
626
- "default": "'gwf/{type}/login?idp={id}'",
627
- "privacy": "public"
628
- },
629
- {
630
- "kind": "variable",
631
- "name": "ENVIRONMENT_LEVEL",
632
- "type": {
633
- "text": "string"
634
- },
635
- "default": "'default'",
636
- "privacy": "public"
637
- },
638
- {
639
- "kind": "variable",
640
- "name": "ACCEPT_TERMS_URL",
641
- "type": {
642
- "text": "string"
643
- },
644
- "default": "'gwf/auth/accept-terms'",
645
- "privacy": "public"
646
- }
647
- ],
648
- "exports": [
649
- {
650
- "kind": "js",
651
- "name": "BUILDER",
652
- "declaration": {
653
- "name": "_BUILDER",
654
- "module": "src/env/variables.ts"
655
- }
656
- },
657
- {
658
- "kind": "js",
659
- "name": "PUBLIC_PATH",
660
- "declaration": {
661
- "name": "_PUBLIC_PATH",
662
- "module": "src/env/variables.ts"
663
- }
664
- },
665
- {
666
- "kind": "js",
667
- "name": "SOCKET_EXT",
668
- "declaration": {
669
- "name": "_SOCKET_EXT",
670
- "module": "src/env/variables.ts"
671
- }
672
- },
673
- {
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
- }
986
+ "name": "CHANGE_PASSWORD_URL",
987
+ "type": {
988
+ "text": "string"
989
+ },
990
+ "default": "'gwf/event-change-user-password'",
991
+ "privacy": "public"
768
992
  },
769
993
  {
770
- "kind": "js",
994
+ "kind": "variable",
771
995
  "name": "FORGOT_PASSWORD_URL",
772
- "declaration": {
773
- "name": "FORGOT_PASSWORD_URL",
774
- "module": "src/env/variables.ts"
775
- }
996
+ "type": {
997
+ "text": "string"
998
+ },
999
+ "default": "'gwf/event-self-service-password-reset'",
1000
+ "privacy": "public"
776
1001
  },
777
1002
  {
778
- "kind": "js",
1003
+ "kind": "variable",
779
1004
  "name": "RESET_PASSWORD_URL",
780
- "declaration": {
781
- "name": "RESET_PASSWORD_URL",
782
- "module": "src/env/variables.ts"
783
- }
1005
+ "type": {
1006
+ "text": "string"
1007
+ },
1008
+ "default": "'gwf/event-password-reset-action'",
1009
+ "privacy": "public"
784
1010
  },
785
1011
  {
786
- "kind": "js",
1012
+ "kind": "variable",
787
1013
  "name": "SSO_LIST_URL",
788
- "declaration": {
789
- "name": "SSO_LIST_URL",
790
- "module": "src/env/variables.ts"
791
- }
1014
+ "type": {
1015
+ "text": "string"
1016
+ },
1017
+ "default": "'gwf/sso/list'",
1018
+ "privacy": "public"
792
1019
  },
793
1020
  {
794
- "kind": "js",
1021
+ "kind": "variable",
795
1022
  "name": "SSO_LOGIN_URL",
1023
+ "type": {
1024
+ "text": "string"
1025
+ },
1026
+ "default": "'gwf/{type}/login?idp={id}'",
1027
+ "privacy": "public"
1028
+ },
1029
+ {
1030
+ "kind": "variable",
1031
+ "name": "ENVIRONMENT_LEVEL",
1032
+ "type": {
1033
+ "text": "string"
1034
+ },
1035
+ "default": "'default'",
1036
+ "privacy": "public"
1037
+ },
1038
+ {
1039
+ "kind": "variable",
1040
+ "name": "ACCEPT_TERMS_URL",
1041
+ "type": {
1042
+ "text": "string"
1043
+ },
1044
+ "default": "'gwf/auth/accept-terms'",
1045
+ "privacy": "public"
1046
+ }
1047
+ ],
1048
+ "exports": [
1049
+ {
1050
+ "kind": "js",
1051
+ "name": "BUILDER",
796
1052
  "declaration": {
797
- "name": "SSO_LOGIN_URL",
1053
+ "name": "_BUILDER",
798
1054
  "module": "src/env/variables.ts"
799
1055
  }
800
1056
  },
801
1057
  {
802
1058
  "kind": "js",
803
- "name": "ENVIRONMENT_LEVEL",
1059
+ "name": "PUBLIC_PATH",
804
1060
  "declaration": {
805
- "name": "ENVIRONMENT_LEVEL",
1061
+ "name": "_PUBLIC_PATH",
806
1062
  "module": "src/env/variables.ts"
807
1063
  }
808
1064
  },
809
1065
  {
810
1066
  "kind": "js",
811
- "name": "ACCEPT_TERMS_URL",
1067
+ "name": "SOCKET_EXT",
812
1068
  "declaration": {
813
- "name": "ACCEPT_TERMS_URL",
1069
+ "name": "_SOCKET_EXT",
814
1070
  "module": "src/env/variables.ts"
815
1071
  }
816
- }
817
- ]
818
- },
819
- {
820
- "kind": "javascript-module",
821
- "path": "src/data/inMemoryDatabase.ts",
822
- "declarations": [
1072
+ },
823
1073
  {
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
  ]