@genesislcap/foundation-utils 15.26.0 → 15.27.0-agent-log-submit.3

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