@genesislcap/foundation-utils 14.432.2 → 14.433.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 +590 -590
  2. package/package.json +11 -11
@@ -211,7 +211,7 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/converters/index.ts",
214
+ "path": "src/decorators/index.ts",
215
215
  "declarations": [],
216
216
  "exports": [
217
217
  {
@@ -219,219 +219,131 @@
219
219
  "name": "*",
220
220
  "declaration": {
221
221
  "name": "*",
222
- "package": "./string-array-converter"
223
- }
224
- }
225
- ]
226
- },
227
- {
228
- "kind": "javascript-module",
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"
222
+ "package": "./renderOnChange"
249
223
  }
250
224
  }
251
225
  ]
252
226
  },
253
227
  {
254
228
  "kind": "javascript-module",
255
- "path": "src/design-system/design-system.ts",
229
+ "path": "src/decorators/renderOnChange.ts",
256
230
  "declarations": [
257
231
  {
258
232
  "kind": "function",
259
- "name": "assureDesignSystem",
260
- "return": {
261
- "type": {
262
- "text": "DesignSystemModule"
263
- }
264
- },
265
- "parameters": [
266
- {
267
- "name": "module",
268
- "type": {
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"
289
- },
290
- "description": "The starting HTML element"
291
- },
292
- {
293
- "name": "fallbackPrefix",
294
- "type": {
295
- "text": "string"
296
- },
297
- "description": "The prefix to fallback to if the provider is not available"
298
- }
299
- ],
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.",
301
- "privacy": "public"
302
- },
303
- {
304
- "kind": "function",
305
- "name": "getCurrentDesignSystemPrefix",
306
- "return": {
307
- "type": {
308
- "text": ""
309
- }
310
- },
233
+ "name": "renderOnChange",
311
234
  "parameters": [
312
235
  {
313
- "name": "element",
236
+ "name": "target",
314
237
  "type": {
315
- "text": "HTMLElement"
238
+ "text": "FASTElement & { render(): void }"
316
239
  },
317
- "description": "The starting HTML element"
240
+ "description": "The target to define the property change handler on."
318
241
  },
319
242
  {
320
- "name": "fallbackPrefix",
243
+ "name": "name",
321
244
  "type": {
322
245
  "text": "string"
323
246
  },
324
- "description": "The prefix to fallback to if the provider is not available"
247
+ "description": "The property name."
325
248
  }
326
249
  ],
327
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
250
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
328
251
  "privacy": "public"
329
252
  }
330
253
  ],
331
254
  "exports": [
332
255
  {
333
256
  "kind": "js",
334
- "name": "assureDesignSystem",
257
+ "name": "renderOnChange",
335
258
  "declaration": {
336
- "name": "assureDesignSystem",
337
- "module": "src/design-system/design-system.ts"
259
+ "name": "renderOnChange",
260
+ "module": "src/decorators/renderOnChange.ts"
338
261
  }
339
- },
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "kind": "javascript-module",
267
+ "path": "src/directives/index.ts",
268
+ "declarations": [],
269
+ "exports": [
340
270
  {
341
271
  "kind": "js",
342
- "name": "getCurrentDesignSystem",
272
+ "name": "*",
343
273
  "declaration": {
344
- "name": "getCurrentDesignSystem",
345
- "module": "src/design-system/design-system.ts"
274
+ "name": "*",
275
+ "package": "./sync"
346
276
  }
347
277
  },
348
278
  {
349
279
  "kind": "js",
350
- "name": "getCurrentDesignSystemPrefix",
280
+ "name": "*",
351
281
  "declaration": {
352
- "name": "getCurrentDesignSystemPrefix",
353
- "module": "src/design-system/design-system.ts"
282
+ "name": "*",
283
+ "package": "./when-else"
354
284
  }
355
285
  }
356
286
  ]
357
287
  },
358
288
  {
359
289
  "kind": "javascript-module",
360
- "path": "src/design-system/editable-elements.ts",
361
- "declarations": [
362
- {
363
- "kind": "variable",
364
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
365
- "type": {
366
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
367
- },
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
- ]
403
- }
404
- ],
290
+ "path": "src/encoding/index.ts",
291
+ "declarations": [],
405
292
  "exports": [
406
293
  {
407
294
  "kind": "js",
408
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
295
+ "name": "*",
409
296
  "declaration": {
410
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
411
- "module": "src/design-system/editable-elements.ts"
297
+ "name": "*",
298
+ "package": "./base64"
412
299
  }
413
- },
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "kind": "javascript-module",
305
+ "path": "src/converters/index.ts",
306
+ "declarations": [],
307
+ "exports": [
414
308
  {
415
309
  "kind": "js",
416
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
310
+ "name": "*",
417
311
  "declaration": {
418
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
419
- "module": "src/design-system/editable-elements.ts"
312
+ "name": "*",
313
+ "package": "./string-array-converter"
420
314
  }
421
- },
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ "kind": "javascript-module",
320
+ "path": "src/converters/string-array-converter.ts",
321
+ "declarations": [
322
+ {
323
+ "kind": "variable",
324
+ "name": "stringArrayConverter",
325
+ "type": {
326
+ "text": "ValueConverter"
327
+ },
328
+ "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}",
329
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
330
+ "privacy": "public"
331
+ }
332
+ ],
333
+ "exports": [
422
334
  {
423
335
  "kind": "js",
424
- "name": "buildEditableElementSelector",
336
+ "name": "stringArrayConverter",
425
337
  "declaration": {
426
- "name": "buildEditableElementSelector",
427
- "module": "src/design-system/editable-elements.ts"
338
+ "name": "stringArrayConverter",
339
+ "module": "src/converters/string-array-converter.ts"
428
340
  }
429
341
  }
430
342
  ]
431
343
  },
432
344
  {
433
345
  "kind": "javascript-module",
434
- "path": "src/design-system/index.ts",
346
+ "path": "src/env/index.ts",
435
347
  "declarations": [],
436
348
  "exports": [
437
349
  {
@@ -439,7 +351,7 @@
439
351
  "name": "*",
440
352
  "declaration": {
441
353
  "name": "*",
442
- "package": "./design-system"
354
+ "package": "./is-dev"
443
355
  }
444
356
  },
445
357
  {
@@ -447,326 +359,14 @@
447
359
  "name": "*",
448
360
  "declaration": {
449
361
  "name": "*",
450
- "package": "./editable-elements"
362
+ "package": "./variables"
451
363
  }
452
364
  }
453
365
  ]
454
366
  },
455
367
  {
456
368
  "kind": "javascript-module",
457
- "path": "src/data/inMemoryDatabase.ts",
458
- "declarations": [
459
- {
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/decorators/index.ts",
679
- "declarations": [],
680
- "exports": [
681
- {
682
- "kind": "js",
683
- "name": "*",
684
- "declaration": {
685
- "name": "*",
686
- "package": "./renderOnChange"
687
- }
688
- }
689
- ]
690
- },
691
- {
692
- "kind": "javascript-module",
693
- "path": "src/decorators/renderOnChange.ts",
694
- "declarations": [
695
- {
696
- "kind": "function",
697
- "name": "renderOnChange",
698
- "parameters": [
699
- {
700
- "name": "target",
701
- "type": {
702
- "text": "FASTElement & { render(): void }"
703
- },
704
- "description": "The target to define the property change handler on."
705
- },
706
- {
707
- "name": "name",
708
- "type": {
709
- "text": "string"
710
- },
711
- "description": "The property name."
712
- }
713
- ],
714
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
715
- "privacy": "public"
716
- }
717
- ],
718
- "exports": [
719
- {
720
- "kind": "js",
721
- "name": "renderOnChange",
722
- "declaration": {
723
- "name": "renderOnChange",
724
- "module": "src/decorators/renderOnChange.ts"
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
- }
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",
369
+ "path": "src/env/is-dev.ts",
770
370
  "declarations": [
771
371
  {
772
372
  "kind": "function",
@@ -1000,218 +600,618 @@
1000
600
  "privacy": "public"
1001
601
  },
1002
602
  {
1003
- "kind": "variable",
1004
- "name": "RESET_PASSWORD_URL",
1005
- "type": {
1006
- "text": "string"
1007
- },
1008
- "default": "'gwf/event-password-reset-action'",
1009
- "privacy": "public"
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
+ }
1010
744
  },
1011
745
  {
1012
- "kind": "variable",
1013
- "name": "SSO_LIST_URL",
1014
- "type": {
1015
- "text": "string"
1016
- },
1017
- "default": "'gwf/sso/list'",
1018
- "privacy": "public"
746
+ "kind": "js",
747
+ "name": "LOGIN_DETAILS_URL",
748
+ "declaration": {
749
+ "name": "LOGIN_DETAILS_URL",
750
+ "module": "src/env/variables.ts"
751
+ }
1019
752
  },
1020
753
  {
1021
- "kind": "variable",
1022
- "name": "SSO_LOGIN_URL",
1023
- "type": {
1024
- "text": "string"
1025
- },
1026
- "default": "'gwf/{type}/login?idp={id}'",
1027
- "privacy": "public"
754
+ "kind": "js",
755
+ "name": "LOGOUT_URL",
756
+ "declaration": {
757
+ "name": "LOGOUT_URL",
758
+ "module": "src/env/variables.ts"
759
+ }
1028
760
  },
1029
761
  {
1030
- "kind": "variable",
1031
- "name": "ENVIRONMENT_LEVEL",
1032
- "type": {
1033
- "text": "string"
1034
- },
1035
- "default": "'default'",
1036
- "privacy": "public"
762
+ "kind": "js",
763
+ "name": "CHANGE_PASSWORD_URL",
764
+ "declaration": {
765
+ "name": "CHANGE_PASSWORD_URL",
766
+ "module": "src/env/variables.ts"
767
+ }
1037
768
  },
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
769
  {
1050
770
  "kind": "js",
1051
- "name": "BUILDER",
771
+ "name": "FORGOT_PASSWORD_URL",
1052
772
  "declaration": {
1053
- "name": "_BUILDER",
773
+ "name": "FORGOT_PASSWORD_URL",
1054
774
  "module": "src/env/variables.ts"
1055
775
  }
1056
776
  },
1057
777
  {
1058
778
  "kind": "js",
1059
- "name": "PUBLIC_PATH",
779
+ "name": "RESET_PASSWORD_URL",
1060
780
  "declaration": {
1061
- "name": "_PUBLIC_PATH",
781
+ "name": "RESET_PASSWORD_URL",
1062
782
  "module": "src/env/variables.ts"
1063
783
  }
1064
784
  },
1065
785
  {
1066
786
  "kind": "js",
1067
- "name": "SOCKET_EXT",
787
+ "name": "SSO_LIST_URL",
1068
788
  "declaration": {
1069
- "name": "_SOCKET_EXT",
789
+ "name": "SSO_LIST_URL",
1070
790
  "module": "src/env/variables.ts"
1071
791
  }
1072
792
  },
1073
793
  {
1074
794
  "kind": "js",
1075
- "name": "FORCE_HTTP",
795
+ "name": "SSO_LOGIN_URL",
1076
796
  "declaration": {
1077
- "name": "_FORCE_HTTP",
797
+ "name": "SSO_LOGIN_URL",
1078
798
  "module": "src/env/variables.ts"
1079
799
  }
1080
800
  },
1081
801
  {
1082
802
  "kind": "js",
1083
- "name": "GENESIS_SOCKET_URL",
803
+ "name": "ENVIRONMENT_LEVEL",
1084
804
  "declaration": {
1085
- "name": "GENESIS_SOCKET_URL",
805
+ "name": "ENVIRONMENT_LEVEL",
1086
806
  "module": "src/env/variables.ts"
1087
807
  }
1088
808
  },
1089
809
  {
1090
810
  "kind": "js",
1091
- "name": "API_HOST",
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": [
992
+ {
993
+ "kind": "js",
994
+ "name": "InMemoryDatabase",
1092
995
  "declaration": {
1093
- "name": "_API_HOST",
1094
- "module": "src/env/variables.ts"
996
+ "name": "InMemoryDatabase",
997
+ "module": "src/data/inMemoryDatabase.ts"
1095
998
  }
1096
- },
999
+ }
1000
+ ]
1001
+ },
1002
+ {
1003
+ "kind": "javascript-module",
1004
+ "path": "src/data/index.ts",
1005
+ "declarations": [],
1006
+ "exports": [
1097
1007
  {
1098
1008
  "kind": "js",
1099
- "name": "HTTP_CONFIG",
1009
+ "name": "*",
1100
1010
  "declaration": {
1101
- "name": "_HTTP_CONFIG",
1102
- "module": "src/env/variables.ts"
1011
+ "name": "*",
1012
+ "package": "./inMemoryDatabase"
1103
1013
  }
1104
- },
1014
+ }
1015
+ ]
1016
+ },
1017
+ {
1018
+ "kind": "javascript-module",
1019
+ "path": "src/design-system/design-system.ts",
1020
+ "declarations": [
1105
1021
  {
1106
- "kind": "js",
1107
- "name": "DEFAULT_ORGANISATION",
1108
- "declaration": {
1109
- "name": "_DEFAULT_ORGANISATION",
1110
- "module": "src/env/variables.ts"
1111
- }
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"
1112
1039
  },
1113
1040
  {
1114
- "kind": "js",
1115
- "name": "DEFAULT_PASSWORD",
1116
- "declaration": {
1117
- "name": "_DEFAULT_PASSWORD",
1118
- "module": "src/env/variables.ts"
1119
- }
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"
1120
1066
  },
1121
1067
  {
1122
- "kind": "js",
1123
- "name": "DEFAULT_USER",
1124
- "declaration": {
1125
- "name": "_DEFAULT_USER",
1126
- "module": "src/env/variables.ts"
1127
- }
1128
- },
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": [
1129
1096
  {
1130
1097
  "kind": "js",
1131
- "name": "LOGIN_URL",
1098
+ "name": "assureDesignSystem",
1132
1099
  "declaration": {
1133
- "name": "LOGIN_URL",
1134
- "module": "src/env/variables.ts"
1100
+ "name": "assureDesignSystem",
1101
+ "module": "src/design-system/design-system.ts"
1135
1102
  }
1136
1103
  },
1137
1104
  {
1138
1105
  "kind": "js",
1139
- "name": "LOGIN_REFRESH_URL",
1106
+ "name": "getCurrentDesignSystem",
1140
1107
  "declaration": {
1141
- "name": "LOGIN_REFRESH_URL",
1142
- "module": "src/env/variables.ts"
1108
+ "name": "getCurrentDesignSystem",
1109
+ "module": "src/design-system/design-system.ts"
1143
1110
  }
1144
1111
  },
1145
1112
  {
1146
1113
  "kind": "js",
1147
- "name": "LOGIN_DETAILS_URL",
1114
+ "name": "getCurrentDesignSystemPrefix",
1148
1115
  "declaration": {
1149
- "name": "LOGIN_DETAILS_URL",
1150
- "module": "src/env/variables.ts"
1116
+ "name": "getCurrentDesignSystemPrefix",
1117
+ "module": "src/design-system/design-system.ts"
1151
1118
  }
1152
- },
1119
+ }
1120
+ ]
1121
+ },
1122
+ {
1123
+ "kind": "javascript-module",
1124
+ "path": "src/design-system/editable-elements.ts",
1125
+ "declarations": [
1153
1126
  {
1154
- "kind": "js",
1155
- "name": "LOGOUT_URL",
1156
- "declaration": {
1157
- "name": "LOGOUT_URL",
1158
- "module": "src/env/variables.ts"
1159
- }
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."
1160
1134
  },
1161
1135
  {
1162
- "kind": "js",
1163
- "name": "CHANGE_PASSWORD_URL",
1164
- "declaration": {
1165
- "name": "CHANGE_PASSWORD_URL",
1166
- "module": "src/env/variables.ts"
1167
- }
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."
1168
1143
  },
1169
1144
  {
1170
- "kind": "js",
1171
- "name": "FORGOT_PASSWORD_URL",
1172
- "declaration": {
1173
- "name": "FORGOT_PASSWORD_URL",
1174
- "module": "src/env/variables.ts"
1175
- }
1176
- },
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": [
1177
1170
  {
1178
1171
  "kind": "js",
1179
- "name": "RESET_PASSWORD_URL",
1172
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1180
1173
  "declaration": {
1181
- "name": "RESET_PASSWORD_URL",
1182
- "module": "src/env/variables.ts"
1174
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1175
+ "module": "src/design-system/editable-elements.ts"
1183
1176
  }
1184
1177
  },
1185
1178
  {
1186
1179
  "kind": "js",
1187
- "name": "SSO_LIST_URL",
1180
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1188
1181
  "declaration": {
1189
- "name": "SSO_LIST_URL",
1190
- "module": "src/env/variables.ts"
1182
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1183
+ "module": "src/design-system/editable-elements.ts"
1191
1184
  }
1192
1185
  },
1193
1186
  {
1194
1187
  "kind": "js",
1195
- "name": "SSO_LOGIN_URL",
1188
+ "name": "buildEditableElementSelector",
1196
1189
  "declaration": {
1197
- "name": "SSO_LOGIN_URL",
1198
- "module": "src/env/variables.ts"
1190
+ "name": "buildEditableElementSelector",
1191
+ "module": "src/design-system/editable-elements.ts"
1199
1192
  }
1200
- },
1193
+ }
1194
+ ]
1195
+ },
1196
+ {
1197
+ "kind": "javascript-module",
1198
+ "path": "src/design-system/index.ts",
1199
+ "declarations": [],
1200
+ "exports": [
1201
1201
  {
1202
1202
  "kind": "js",
1203
- "name": "ENVIRONMENT_LEVEL",
1203
+ "name": "*",
1204
1204
  "declaration": {
1205
- "name": "ENVIRONMENT_LEVEL",
1206
- "module": "src/env/variables.ts"
1205
+ "name": "*",
1206
+ "package": "./design-system"
1207
1207
  }
1208
1208
  },
1209
1209
  {
1210
1210
  "kind": "js",
1211
- "name": "ACCEPT_TERMS_URL",
1211
+ "name": "*",
1212
1212
  "declaration": {
1213
- "name": "ACCEPT_TERMS_URL",
1214
- "module": "src/env/variables.ts"
1213
+ "name": "*",
1214
+ "package": "./editable-elements"
1215
1215
  }
1216
1216
  }
1217
1217
  ]