@genesislcap/foundation-utils 15.3.5 → 15.4.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 +261 -261
  2. package/package.json +23 -11
@@ -252,198 +252,23 @@
252
252
  },
253
253
  {
254
254
  "kind": "javascript-module",
255
- "path": "src/data/inMemoryDatabase.ts",
256
- "declarations": [
257
- {
258
- "kind": "class",
259
- "description": "An in memory database of specific DatabaseRecord types.",
260
- "name": "InMemoryDatabase",
261
- "members": [
262
- {
263
- "kind": "field",
264
- "name": "isWorking",
265
- "type": {
266
- "text": "boolean"
267
- },
268
- "privacy": "public",
269
- "default": "false"
270
- },
271
- {
272
- "kind": "field",
273
- "name": "records",
274
- "type": {
275
- "text": "Record<string, T>"
276
- },
277
- "privacy": "private",
278
- "default": "{}"
279
- },
280
- {
281
- "kind": "field",
282
- "name": "beforeUpdateListeners",
283
- "privacy": "private"
284
- },
285
- {
286
- "kind": "field",
287
- "name": "afterUpdateListeners",
288
- "privacy": "private"
289
- },
290
- {
291
- "kind": "method",
292
- "name": "create",
293
- "privacy": "public",
294
- "return": {
295
- "type": {
296
- "text": "Promise<DatabaseAccessResult.Create<T>>"
297
- }
298
- },
299
- "parameters": [
300
- {
301
- "name": "newValue",
302
- "type": {
303
- "text": "Omit<T, 'id'>"
304
- }
305
- }
306
- ]
307
- },
308
- {
309
- "kind": "method",
310
- "name": "read",
311
- "privacy": "public",
312
- "return": {
313
- "type": {
314
- "text": "Promise<DatabaseAccessResult.Read<T>>"
315
- }
316
- },
317
- "parameters": [
318
- {
319
- "name": "id",
320
- "type": {
321
- "text": "string"
322
- }
323
- }
324
- ]
325
- },
326
- {
327
- "kind": "method",
328
- "name": "update",
329
- "privacy": "public",
330
- "return": {
331
- "type": {
332
- "text": "Promise<DatabaseAccessResult.Update<T>>"
333
- }
334
- },
335
- "parameters": [
336
- {
337
- "name": "id",
338
- "type": {
339
- "text": "string"
340
- }
341
- },
342
- {
343
- "name": "newValue",
344
- "type": {
345
- "text": "Omit<Partial<T>, 'id'>"
346
- }
347
- }
348
- ]
349
- },
350
- {
351
- "kind": "method",
352
- "name": "delete",
353
- "privacy": "public",
354
- "return": {
355
- "type": {
356
- "text": "Promise<DatabaseAccessResult.Delete>"
357
- }
358
- },
359
- "parameters": [
360
- {
361
- "name": "id",
362
- "type": {
363
- "text": "string"
364
- }
365
- }
366
- ]
367
- },
368
- {
369
- "kind": "method",
370
- "name": "visit",
371
- "privacy": "public",
372
- "return": {
373
- "type": {
374
- "text": "Promise<void>"
375
- }
376
- },
377
- "parameters": [
378
- {
379
- "name": "visitor",
380
- "type": {
381
- "text": "(record: T) => void"
382
- }
383
- }
384
- ]
385
- },
386
- {
387
- "kind": "method",
388
- "name": "onBeforeUpdate",
389
- "privacy": "public",
390
- "return": {
391
- "type": {
392
- "text": "() => void"
393
- }
394
- },
395
- "parameters": [
396
- {
397
- "name": "listener",
398
- "type": {
399
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
400
- }
401
- }
402
- ]
403
- },
404
- {
405
- "kind": "method",
406
- "name": "onAfterUpdate",
407
- "privacy": "public",
408
- "return": {
409
- "type": {
410
- "text": "() => void"
411
- }
412
- },
413
- "parameters": [
414
- {
415
- "name": "listener",
416
- "type": {
417
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
- }
419
- }
420
- ]
421
- }
422
- ]
423
- }
424
- ],
255
+ "path": "src/directives/index.ts",
256
+ "declarations": [],
425
257
  "exports": [
426
258
  {
427
259
  "kind": "js",
428
- "name": "InMemoryDatabase",
260
+ "name": "*",
429
261
  "declaration": {
430
- "name": "InMemoryDatabase",
431
- "module": "src/data/inMemoryDatabase.ts"
262
+ "name": "*",
263
+ "package": "./sync"
432
264
  }
433
- }
434
- ]
435
- },
436
- {
437
- "kind": "javascript-module",
438
- "path": "src/data/index.ts",
439
- "declarations": [],
440
- "exports": [
265
+ },
441
266
  {
442
267
  "kind": "js",
443
268
  "name": "*",
444
269
  "declaration": {
445
270
  "name": "*",
446
- "package": "./inMemoryDatabase"
271
+ "package": "./when-else"
447
272
  }
448
273
  }
449
274
  ]
@@ -650,29 +475,6 @@
650
475
  }
651
476
  ]
652
477
  },
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
478
  {
677
479
  "kind": "javascript-module",
678
480
  "path": "src/encoding/index.ts",
@@ -680,63 +482,10 @@
680
482
  "exports": [
681
483
  {
682
484
  "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",
485
+ "name": "*",
737
486
  "declaration": {
738
- "name": "renderOnChange",
739
- "module": "src/decorators/renderOnChange.ts"
487
+ "name": "*",
488
+ "package": "./base64"
740
489
  }
741
490
  }
742
491
  ]
@@ -1240,6 +989,257 @@
1240
989
  }
1241
990
  ]
1242
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",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "15.3.5",
4
+ "version": "15.4.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.3.5",
33
- "@genesislcap/genx": "15.3.5",
34
- "@genesislcap/rollup-builder": "15.3.5",
35
- "@genesislcap/ts-builder": "15.3.5",
36
- "@genesislcap/uvu-playwright-builder": "15.3.5",
37
- "@genesislcap/vite-builder": "15.3.5",
38
- "@genesislcap/webpack-builder": "15.3.5",
32
+ "@genesislcap/foundation-testing": "15.4.1",
33
+ "@genesislcap/genx": "15.4.1",
34
+ "@genesislcap/rollup-builder": "15.4.1",
35
+ "@genesislcap/ts-builder": "15.4.1",
36
+ "@genesislcap/uvu-playwright-builder": "15.4.1",
37
+ "@genesislcap/vite-builder": "15.4.1",
38
+ "@genesislcap/webpack-builder": "15.4.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.3.5",
43
- "@genesislcap/foundation-logger": "15.3.5",
42
+ "@genesislcap/expression-builder": "15.4.1",
43
+ "@genesislcap/foundation-logger": "15.4.1",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,17 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "dc772a3a6f1b3d1c249f1ffae27a13d29878609c"
61
+ "exports": {
62
+ ".": {
63
+ "types": "./dist/dts/index.d.ts",
64
+ "default": "./dist/esm/index.js"
65
+ },
66
+ "./react": {
67
+ "types": "./dist/dts/react.d.ts",
68
+ "import": "./dist/react.mjs",
69
+ "require": "./dist/react.cjs"
70
+ },
71
+ "./package.json": "./package.json"
72
+ },
73
+ "gitHead": "984a77280362d69ba3eab6256dbb7fe03b8c76b3"
62
74
  }