@genesislcap/foundation-utils 15.50.3 → 15.51.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.
@@ -71,6 +71,14 @@
71
71
  "package": "./error"
72
72
  }
73
73
  },
74
+ {
75
+ "kind": "js",
76
+ "name": "*",
77
+ "declaration": {
78
+ "name": "*",
79
+ "package": "./error-monitoring"
80
+ }
81
+ },
74
82
  {
75
83
  "kind": "js",
76
84
  "name": "*",
@@ -252,198 +260,53 @@
252
260
  },
253
261
  {
254
262
  "kind": "javascript-module",
255
- "path": "src/data/inMemoryDatabase.ts",
263
+ "path": "src/decorators/index.ts",
264
+ "declarations": [],
265
+ "exports": [
266
+ {
267
+ "kind": "js",
268
+ "name": "*",
269
+ "declaration": {
270
+ "name": "*",
271
+ "package": "./renderOnChange"
272
+ }
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "kind": "javascript-module",
278
+ "path": "src/decorators/renderOnChange.ts",
256
279
  "declarations": [
257
280
  {
258
- "kind": "class",
259
- "description": "An in memory database of specific DatabaseRecord types.",
260
- "name": "InMemoryDatabase",
261
- "members": [
281
+ "kind": "function",
282
+ "name": "renderOnChange",
283
+ "parameters": [
262
284
  {
263
- "kind": "field",
264
- "name": "isWorking",
285
+ "name": "target",
265
286
  "type": {
266
- "text": "boolean"
287
+ "text": "FASTElement & { render(): void }"
267
288
  },
268
- "privacy": "public",
269
- "default": "false"
289
+ "description": "The target to define the property change handler on."
270
290
  },
271
291
  {
272
- "kind": "field",
273
- "name": "records",
292
+ "name": "name",
274
293
  "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
- }
294
+ "text": "string"
412
295
  },
413
- "parameters": [
414
- {
415
- "name": "listener",
416
- "type": {
417
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
- }
419
- }
420
- ]
296
+ "description": "The property name."
421
297
  }
422
- ]
298
+ ],
299
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
300
+ "privacy": "public"
423
301
  }
424
302
  ],
425
303
  "exports": [
426
304
  {
427
305
  "kind": "js",
428
- "name": "InMemoryDatabase",
429
- "declaration": {
430
- "name": "InMemoryDatabase",
431
- "module": "src/data/inMemoryDatabase.ts"
432
- }
433
- }
434
- ]
435
- },
436
- {
437
- "kind": "javascript-module",
438
- "path": "src/data/index.ts",
439
- "declarations": [],
440
- "exports": [
441
- {
442
- "kind": "js",
443
- "name": "*",
306
+ "name": "renderOnChange",
444
307
  "declaration": {
445
- "name": "*",
446
- "package": "./inMemoryDatabase"
308
+ "name": "renderOnChange",
309
+ "module": "src/decorators/renderOnChange.ts"
447
310
  }
448
311
  }
449
312
  ]
@@ -591,11 +454,233 @@
591
454
  }
592
455
  },
593
456
  {
594
- "name": "customEditableSelectors",
595
- "default": "[]",
596
- "type": {
597
- "text": "readonly string[]"
598
- }
457
+ "name": "customEditableSelectors",
458
+ "default": "[]",
459
+ "type": {
460
+ "text": "readonly string[]"
461
+ }
462
+ }
463
+ ]
464
+ }
465
+ ],
466
+ "exports": [
467
+ {
468
+ "kind": "js",
469
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
470
+ "declaration": {
471
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
472
+ "module": "src/design-system/editable-elements.ts"
473
+ }
474
+ },
475
+ {
476
+ "kind": "js",
477
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
478
+ "declaration": {
479
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
480
+ "module": "src/design-system/editable-elements.ts"
481
+ }
482
+ },
483
+ {
484
+ "kind": "js",
485
+ "name": "buildEditableElementSelector",
486
+ "declaration": {
487
+ "name": "buildEditableElementSelector",
488
+ "module": "src/design-system/editable-elements.ts"
489
+ }
490
+ }
491
+ ]
492
+ },
493
+ {
494
+ "kind": "javascript-module",
495
+ "path": "src/design-system/index.ts",
496
+ "declarations": [],
497
+ "exports": [
498
+ {
499
+ "kind": "js",
500
+ "name": "*",
501
+ "declaration": {
502
+ "name": "*",
503
+ "package": "./design-system"
504
+ }
505
+ },
506
+ {
507
+ "kind": "js",
508
+ "name": "*",
509
+ "declaration": {
510
+ "name": "*",
511
+ "package": "./editable-elements"
512
+ }
513
+ }
514
+ ]
515
+ },
516
+ {
517
+ "kind": "javascript-module",
518
+ "path": "src/data/inMemoryDatabase.ts",
519
+ "declarations": [
520
+ {
521
+ "kind": "class",
522
+ "description": "An in memory database of specific DatabaseRecord types.",
523
+ "name": "InMemoryDatabase",
524
+ "members": [
525
+ {
526
+ "kind": "field",
527
+ "name": "isWorking",
528
+ "type": {
529
+ "text": "boolean"
530
+ },
531
+ "privacy": "public",
532
+ "default": "false"
533
+ },
534
+ {
535
+ "kind": "field",
536
+ "name": "records",
537
+ "type": {
538
+ "text": "Record<string, T>"
539
+ },
540
+ "privacy": "private",
541
+ "default": "{}"
542
+ },
543
+ {
544
+ "kind": "field",
545
+ "name": "beforeUpdateListeners",
546
+ "privacy": "private"
547
+ },
548
+ {
549
+ "kind": "field",
550
+ "name": "afterUpdateListeners",
551
+ "privacy": "private"
552
+ },
553
+ {
554
+ "kind": "method",
555
+ "name": "create",
556
+ "privacy": "public",
557
+ "return": {
558
+ "type": {
559
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
560
+ }
561
+ },
562
+ "parameters": [
563
+ {
564
+ "name": "newValue",
565
+ "type": {
566
+ "text": "Omit<T, 'id'>"
567
+ }
568
+ }
569
+ ]
570
+ },
571
+ {
572
+ "kind": "method",
573
+ "name": "read",
574
+ "privacy": "public",
575
+ "return": {
576
+ "type": {
577
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
578
+ }
579
+ },
580
+ "parameters": [
581
+ {
582
+ "name": "id",
583
+ "type": {
584
+ "text": "string"
585
+ }
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ "kind": "method",
591
+ "name": "update",
592
+ "privacy": "public",
593
+ "return": {
594
+ "type": {
595
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
596
+ }
597
+ },
598
+ "parameters": [
599
+ {
600
+ "name": "id",
601
+ "type": {
602
+ "text": "string"
603
+ }
604
+ },
605
+ {
606
+ "name": "newValue",
607
+ "type": {
608
+ "text": "Omit<Partial<T>, 'id'>"
609
+ }
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "kind": "method",
615
+ "name": "delete",
616
+ "privacy": "public",
617
+ "return": {
618
+ "type": {
619
+ "text": "Promise<DatabaseAccessResult.Delete>"
620
+ }
621
+ },
622
+ "parameters": [
623
+ {
624
+ "name": "id",
625
+ "type": {
626
+ "text": "string"
627
+ }
628
+ }
629
+ ]
630
+ },
631
+ {
632
+ "kind": "method",
633
+ "name": "visit",
634
+ "privacy": "public",
635
+ "return": {
636
+ "type": {
637
+ "text": "Promise<void>"
638
+ }
639
+ },
640
+ "parameters": [
641
+ {
642
+ "name": "visitor",
643
+ "type": {
644
+ "text": "(record: T) => void"
645
+ }
646
+ }
647
+ ]
648
+ },
649
+ {
650
+ "kind": "method",
651
+ "name": "onBeforeUpdate",
652
+ "privacy": "public",
653
+ "return": {
654
+ "type": {
655
+ "text": "() => void"
656
+ }
657
+ },
658
+ "parameters": [
659
+ {
660
+ "name": "listener",
661
+ "type": {
662
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
663
+ }
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "kind": "method",
669
+ "name": "onAfterUpdate",
670
+ "privacy": "public",
671
+ "return": {
672
+ "type": {
673
+ "text": "() => void"
674
+ }
675
+ },
676
+ "parameters": [
677
+ {
678
+ "name": "listener",
679
+ "type": {
680
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
681
+ }
682
+ }
683
+ ]
599
684
  }
600
685
  ]
601
686
  }
@@ -603,33 +688,17 @@
603
688
  "exports": [
604
689
  {
605
690
  "kind": "js",
606
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
607
- "declaration": {
608
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
609
- "module": "src/design-system/editable-elements.ts"
610
- }
611
- },
612
- {
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"
618
- }
619
- },
620
- {
621
- "kind": "js",
622
- "name": "buildEditableElementSelector",
691
+ "name": "InMemoryDatabase",
623
692
  "declaration": {
624
- "name": "buildEditableElementSelector",
625
- "module": "src/design-system/editable-elements.ts"
693
+ "name": "InMemoryDatabase",
694
+ "module": "src/data/inMemoryDatabase.ts"
626
695
  }
627
696
  }
628
697
  ]
629
698
  },
630
699
  {
631
700
  "kind": "javascript-module",
632
- "path": "src/design-system/index.ts",
701
+ "path": "src/data/index.ts",
633
702
  "declarations": [],
634
703
  "exports": [
635
704
  {
@@ -637,15 +706,7 @@
637
706
  "name": "*",
638
707
  "declaration": {
639
708
  "name": "*",
640
- "package": "./design-system"
641
- }
642
- },
643
- {
644
- "kind": "js",
645
- "name": "*",
646
- "declaration": {
647
- "name": "*",
648
- "package": "./editable-elements"
709
+ "package": "./inMemoryDatabase"
649
710
  }
650
711
  }
651
712
  ]
@@ -665,82 +726,6 @@
665
726
  }
666
727
  ]
667
728
  },
668
- {
669
- "kind": "javascript-module",
670
- "path": "src/directives/index.ts",
671
- "declarations": [],
672
- "exports": [
673
- {
674
- "kind": "js",
675
- "name": "*",
676
- "declaration": {
677
- "name": "*",
678
- "package": "./sync"
679
- }
680
- },
681
- {
682
- "kind": "js",
683
- "name": "*",
684
- "declaration": {
685
- "name": "*",
686
- "package": "./when-else"
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
729
  {
745
730
  "kind": "javascript-module",
746
731
  "path": "src/env/index.ts",
@@ -1240,6 +1225,29 @@
1240
1225
  }
1241
1226
  ]
1242
1227
  },
1228
+ {
1229
+ "kind": "javascript-module",
1230
+ "path": "src/directives/index.ts",
1231
+ "declarations": [],
1232
+ "exports": [
1233
+ {
1234
+ "kind": "js",
1235
+ "name": "*",
1236
+ "declaration": {
1237
+ "name": "*",
1238
+ "package": "./sync"
1239
+ }
1240
+ },
1241
+ {
1242
+ "kind": "js",
1243
+ "name": "*",
1244
+ "declaration": {
1245
+ "name": "*",
1246
+ "package": "./when-else"
1247
+ }
1248
+ }
1249
+ ]
1250
+ },
1243
1251
  {
1244
1252
  "kind": "javascript-module",
1245
1253
  "path": "src/error/errorMap.ts",
@@ -1439,6 +1447,130 @@
1439
1447
  }
1440
1448
  ]
1441
1449
  },
1450
+ {
1451
+ "kind": "javascript-module",
1452
+ "path": "src/error-monitoring/error-monitoring.ts",
1453
+ "declarations": [
1454
+ {
1455
+ "kind": "function",
1456
+ "name": "createErrorMonitoringReporter",
1457
+ "return": {
1458
+ "type": {
1459
+ "text": "ConsolaReporter"
1460
+ }
1461
+ },
1462
+ "parameters": [
1463
+ {
1464
+ "name": "client",
1465
+ "type": {
1466
+ "text": "ErrorMonitoringClient"
1467
+ },
1468
+ "description": "The monitoring client."
1469
+ },
1470
+ {
1471
+ "name": "{ breadcrumbs = true }",
1472
+ "default": "{}",
1473
+ "type": {
1474
+ "text": "Pick<ErrorMonitoringOptions, 'breadcrumbs'>"
1475
+ }
1476
+ },
1477
+ {
1478
+ "description": "Set `breadcrumbs: false` to skip breadcrumbs.",
1479
+ "name": "options"
1480
+ }
1481
+ ],
1482
+ "description": "Creates a global log reporter that sends foundation logger output to a monitoring client.",
1483
+ "privacy": "public"
1484
+ },
1485
+ {
1486
+ "kind": "function",
1487
+ "name": "isFoundationLoggerConsoleBreadcrumb",
1488
+ "return": {
1489
+ "type": {
1490
+ "text": "boolean"
1491
+ }
1492
+ },
1493
+ "parameters": [
1494
+ {
1495
+ "name": "breadcrumb",
1496
+ "type": {
1497
+ "text": "ErrorMonitoringBreadcrumb"
1498
+ }
1499
+ }
1500
+ ],
1501
+ "description": "True for a console breadcrumb written by a foundation logger.",
1502
+ "privacy": "public"
1503
+ },
1504
+ {
1505
+ "kind": "function",
1506
+ "name": "setupErrorMonitoring",
1507
+ "return": {
1508
+ "type": {
1509
+ "text": ""
1510
+ }
1511
+ },
1512
+ "parameters": [
1513
+ {
1514
+ "name": "client",
1515
+ "type": {
1516
+ "text": "ErrorMonitoringClient"
1517
+ },
1518
+ "description": "The monitoring SDK (for example the Sentry namespace) or an adapter for one."
1519
+ },
1520
+ {
1521
+ "name": "options",
1522
+ "type": {
1523
+ "text": "ErrorMonitoringOptions"
1524
+ },
1525
+ "description": "The DSN, the environment, and extra init options."
1526
+ }
1527
+ ],
1528
+ "description": "Sets up error monitoring for a Genesis app in one call.",
1529
+ "privacy": "public"
1530
+ }
1531
+ ],
1532
+ "exports": [
1533
+ {
1534
+ "kind": "js",
1535
+ "name": "createErrorMonitoringReporter",
1536
+ "declaration": {
1537
+ "name": "createErrorMonitoringReporter",
1538
+ "module": "src/error-monitoring/error-monitoring.ts"
1539
+ }
1540
+ },
1541
+ {
1542
+ "kind": "js",
1543
+ "name": "isFoundationLoggerConsoleBreadcrumb",
1544
+ "declaration": {
1545
+ "name": "isFoundationLoggerConsoleBreadcrumb",
1546
+ "module": "src/error-monitoring/error-monitoring.ts"
1547
+ }
1548
+ },
1549
+ {
1550
+ "kind": "js",
1551
+ "name": "setupErrorMonitoring",
1552
+ "declaration": {
1553
+ "name": "setupErrorMonitoring",
1554
+ "module": "src/error-monitoring/error-monitoring.ts"
1555
+ }
1556
+ }
1557
+ ]
1558
+ },
1559
+ {
1560
+ "kind": "javascript-module",
1561
+ "path": "src/error-monitoring/index.ts",
1562
+ "declarations": [],
1563
+ "exports": [
1564
+ {
1565
+ "kind": "js",
1566
+ "name": "*",
1567
+ "declaration": {
1568
+ "name": "*",
1569
+ "package": "./error-monitoring"
1570
+ }
1571
+ }
1572
+ ]
1573
+ },
1442
1574
  {
1443
1575
  "kind": "javascript-module",
1444
1576
  "path": "src/feature-flags/featureFlags.ts",