@truedat/ai 6.3.0 → 6.3.2

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.
@@ -0,0 +1,708 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ProviderEditor /> matches snapshot without onDelete 1`] = `
4
+ <div>
5
+ <form
6
+ class="ui form"
7
+ >
8
+ <h3
9
+ class="ui dividing header"
10
+ >
11
+ provider1
12
+ </h3>
13
+ <div
14
+ class="required field"
15
+ >
16
+ <label>
17
+ providers.form.name
18
+ </label>
19
+ <div
20
+ class="ui input"
21
+ >
22
+ <input
23
+ autocomplete="off"
24
+ placeholder="providers.form.name"
25
+ required=""
26
+ type="text"
27
+ value="provider1"
28
+ />
29
+ </div>
30
+ </div>
31
+ <div
32
+ class="required field"
33
+ >
34
+ <label>
35
+ providers.form.type
36
+ </label>
37
+ <div
38
+ aria-expanded="false"
39
+ class="ui selection dropdown"
40
+ role="listbox"
41
+ tabindex="0"
42
+ >
43
+ <div
44
+ aria-atomic="true"
45
+ aria-live="polite"
46
+ class="divider text"
47
+ role="alert"
48
+ >
49
+ providers.type.openai
50
+ </div>
51
+ <i
52
+ aria-hidden="true"
53
+ class="dropdown icon"
54
+ />
55
+ <div
56
+ class="menu transition"
57
+ >
58
+ <div
59
+ aria-checked="true"
60
+ aria-selected="true"
61
+ class="active selected item"
62
+ role="option"
63
+ style="pointer-events: all;"
64
+ >
65
+ <span
66
+ class="text"
67
+ >
68
+ providers.type.openai
69
+ </span>
70
+ </div>
71
+ <div
72
+ aria-checked="false"
73
+ aria-selected="false"
74
+ class="item"
75
+ role="option"
76
+ style="pointer-events: all;"
77
+ >
78
+ <span
79
+ class="text"
80
+ >
81
+ providers.type.azure_openai
82
+ </span>
83
+ </div>
84
+ <div
85
+ aria-checked="false"
86
+ aria-selected="false"
87
+ class="item"
88
+ role="option"
89
+ style="pointer-events: all;"
90
+ >
91
+ <span
92
+ class="text"
93
+ >
94
+ providers.type.bedrock_claude
95
+ </span>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ <div
101
+ class="required field"
102
+ >
103
+ <label>
104
+ providerProperties.form.model
105
+ </label>
106
+ <div
107
+ class="ui input"
108
+ >
109
+ <input
110
+ autocomplete="off"
111
+ placeholder="providerProperties.form.model"
112
+ required=""
113
+ type="text"
114
+ value="model1"
115
+ />
116
+ </div>
117
+ </div>
118
+ <div
119
+ class="required field"
120
+ >
121
+ <label>
122
+ providerProperties.form.organizationKey
123
+ </label>
124
+ <div
125
+ class="ui input"
126
+ >
127
+ <input
128
+ autocomplete="off"
129
+ placeholder="providerProperties.form.organizationKey"
130
+ required=""
131
+ type="text"
132
+ value="ok1"
133
+ />
134
+ </div>
135
+ </div>
136
+ <div
137
+ class="field"
138
+ >
139
+ <label>
140
+ providerProperties.form.apiKey
141
+ </label>
142
+ <div
143
+ class="ui input"
144
+ >
145
+ <input
146
+ autocomplete="off"
147
+ placeholder="providerProperties.form.apiKey"
148
+ type="password"
149
+ value=""
150
+ />
151
+ </div>
152
+ </div>
153
+ <div
154
+ class="ui hidden divider"
155
+ />
156
+ <div
157
+ class="ui right aligned container"
158
+ >
159
+ <button
160
+ class="ui primary disabled button"
161
+ disabled=""
162
+ tabindex="-1"
163
+ >
164
+ actions.save
165
+ </button>
166
+ <button
167
+ class="ui button"
168
+ >
169
+ actions.cancel
170
+ </button>
171
+ </div>
172
+ </form>
173
+ </div>
174
+ `;
175
+
176
+ exports[`<ProviderEditor /> matches snapshot without selected resource mapping 1`] = `<div />`;
177
+
178
+ exports[`<ProviderEditor /> matches the latest snapshot 1`] = `
179
+ <div>
180
+ <form
181
+ class="ui form"
182
+ >
183
+ <h3
184
+ class="ui dividing header"
185
+ >
186
+ provider1
187
+ </h3>
188
+ <div
189
+ class="required field"
190
+ >
191
+ <label>
192
+ providers.form.name
193
+ </label>
194
+ <div
195
+ class="ui input"
196
+ >
197
+ <input
198
+ autocomplete="off"
199
+ placeholder="providers.form.name"
200
+ required=""
201
+ type="text"
202
+ value="provider1"
203
+ />
204
+ </div>
205
+ </div>
206
+ <div
207
+ class="required field"
208
+ >
209
+ <label>
210
+ providers.form.type
211
+ </label>
212
+ <div
213
+ aria-expanded="false"
214
+ class="ui selection dropdown"
215
+ role="listbox"
216
+ tabindex="0"
217
+ >
218
+ <div
219
+ aria-atomic="true"
220
+ aria-live="polite"
221
+ class="divider text"
222
+ role="alert"
223
+ >
224
+ providers.type.openai
225
+ </div>
226
+ <i
227
+ aria-hidden="true"
228
+ class="dropdown icon"
229
+ />
230
+ <div
231
+ class="menu transition"
232
+ >
233
+ <div
234
+ aria-checked="true"
235
+ aria-selected="true"
236
+ class="active selected item"
237
+ role="option"
238
+ style="pointer-events: all;"
239
+ >
240
+ <span
241
+ class="text"
242
+ >
243
+ providers.type.openai
244
+ </span>
245
+ </div>
246
+ <div
247
+ aria-checked="false"
248
+ aria-selected="false"
249
+ class="item"
250
+ role="option"
251
+ style="pointer-events: all;"
252
+ >
253
+ <span
254
+ class="text"
255
+ >
256
+ providers.type.azure_openai
257
+ </span>
258
+ </div>
259
+ <div
260
+ aria-checked="false"
261
+ aria-selected="false"
262
+ class="item"
263
+ role="option"
264
+ style="pointer-events: all;"
265
+ >
266
+ <span
267
+ class="text"
268
+ >
269
+ providers.type.bedrock_claude
270
+ </span>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ <div
276
+ class="required field"
277
+ >
278
+ <label>
279
+ providerProperties.form.model
280
+ </label>
281
+ <div
282
+ class="ui input"
283
+ >
284
+ <input
285
+ autocomplete="off"
286
+ placeholder="providerProperties.form.model"
287
+ required=""
288
+ type="text"
289
+ value="model1"
290
+ />
291
+ </div>
292
+ </div>
293
+ <div
294
+ class="required field"
295
+ >
296
+ <label>
297
+ providerProperties.form.organizationKey
298
+ </label>
299
+ <div
300
+ class="ui input"
301
+ >
302
+ <input
303
+ autocomplete="off"
304
+ placeholder="providerProperties.form.organizationKey"
305
+ required=""
306
+ type="text"
307
+ value="ok1"
308
+ />
309
+ </div>
310
+ </div>
311
+ <div
312
+ class="field"
313
+ >
314
+ <label>
315
+ providerProperties.form.apiKey
316
+ </label>
317
+ <div
318
+ class="ui input"
319
+ >
320
+ <input
321
+ autocomplete="off"
322
+ placeholder="providerProperties.form.apiKey"
323
+ type="password"
324
+ value=""
325
+ />
326
+ </div>
327
+ </div>
328
+ <div
329
+ class="ui hidden divider"
330
+ />
331
+ <div
332
+ class="ui right aligned container"
333
+ >
334
+ <button
335
+ class="ui primary disabled button"
336
+ disabled=""
337
+ tabindex="-1"
338
+ >
339
+ actions.save
340
+ </button>
341
+ <button
342
+ class="ui button"
343
+ >
344
+ actions.cancel
345
+ </button>
346
+ <button
347
+ class="ui red button"
348
+ >
349
+ actions.delete
350
+ </button>
351
+ </div>
352
+ </form>
353
+ </div>
354
+ `;
355
+
356
+ exports[`<ProviderEditor /> test cancel button with confirm 1`] = `
357
+ <div>
358
+ <form
359
+ class="ui form"
360
+ >
361
+ <h3
362
+ class="ui dividing header"
363
+ >
364
+ provider1name
365
+ </h3>
366
+ <div
367
+ class="required field"
368
+ >
369
+ <label>
370
+ providers.form.name
371
+ </label>
372
+ <div
373
+ class="ui input"
374
+ >
375
+ <input
376
+ autocomplete="off"
377
+ placeholder="providers.form.name"
378
+ required=""
379
+ type="text"
380
+ value="provider1name"
381
+ />
382
+ </div>
383
+ </div>
384
+ <div
385
+ class="required field"
386
+ >
387
+ <label>
388
+ providers.form.type
389
+ </label>
390
+ <div
391
+ aria-expanded="false"
392
+ class="ui selection dropdown"
393
+ role="listbox"
394
+ tabindex="0"
395
+ >
396
+ <div
397
+ aria-atomic="true"
398
+ aria-live="polite"
399
+ class="divider text"
400
+ role="alert"
401
+ >
402
+ providers.type.openai
403
+ </div>
404
+ <i
405
+ aria-hidden="true"
406
+ class="dropdown icon"
407
+ />
408
+ <div
409
+ class="menu transition"
410
+ >
411
+ <div
412
+ aria-checked="true"
413
+ aria-selected="true"
414
+ class="active selected item"
415
+ role="option"
416
+ style="pointer-events: all;"
417
+ >
418
+ <span
419
+ class="text"
420
+ >
421
+ providers.type.openai
422
+ </span>
423
+ </div>
424
+ <div
425
+ aria-checked="false"
426
+ aria-selected="false"
427
+ class="item"
428
+ role="option"
429
+ style="pointer-events: all;"
430
+ >
431
+ <span
432
+ class="text"
433
+ >
434
+ providers.type.azure_openai
435
+ </span>
436
+ </div>
437
+ <div
438
+ aria-checked="false"
439
+ aria-selected="false"
440
+ class="item"
441
+ role="option"
442
+ style="pointer-events: all;"
443
+ >
444
+ <span
445
+ class="text"
446
+ >
447
+ providers.type.bedrock_claude
448
+ </span>
449
+ </div>
450
+ </div>
451
+ </div>
452
+ </div>
453
+ <div
454
+ class="required field"
455
+ >
456
+ <label>
457
+ providerProperties.form.model
458
+ </label>
459
+ <div
460
+ class="ui input"
461
+ >
462
+ <input
463
+ autocomplete="off"
464
+ placeholder="providerProperties.form.model"
465
+ required=""
466
+ type="text"
467
+ value="model1"
468
+ />
469
+ </div>
470
+ </div>
471
+ <div
472
+ class="required field"
473
+ >
474
+ <label>
475
+ providerProperties.form.organizationKey
476
+ </label>
477
+ <div
478
+ class="ui input"
479
+ >
480
+ <input
481
+ autocomplete="off"
482
+ placeholder="providerProperties.form.organizationKey"
483
+ required=""
484
+ type="text"
485
+ value="ok1"
486
+ />
487
+ </div>
488
+ </div>
489
+ <div
490
+ class="field"
491
+ >
492
+ <label>
493
+ providerProperties.form.apiKey
494
+ </label>
495
+ <div
496
+ class="ui input"
497
+ >
498
+ <input
499
+ autocomplete="off"
500
+ placeholder="providerProperties.form.apiKey"
501
+ type="password"
502
+ value=""
503
+ />
504
+ </div>
505
+ </div>
506
+ <div
507
+ class="ui hidden divider"
508
+ />
509
+ <div
510
+ class="ui right aligned container"
511
+ >
512
+ <button
513
+ class="ui primary button"
514
+ >
515
+ actions.save
516
+ </button>
517
+ <button
518
+ class="ui button"
519
+ >
520
+ actions.cancel
521
+ </button>
522
+ <button
523
+ class="ui red button"
524
+ >
525
+ actions.delete
526
+ </button>
527
+ </div>
528
+ </form>
529
+ </div>
530
+ `;
531
+
532
+ exports[`<ProviderEditor /> test delete button 1`] = `
533
+ <div>
534
+ <form
535
+ class="ui form"
536
+ >
537
+ <h3
538
+ class="ui dividing header"
539
+ >
540
+ provider1
541
+ </h3>
542
+ <div
543
+ class="required field"
544
+ >
545
+ <label>
546
+ providers.form.name
547
+ </label>
548
+ <div
549
+ class="ui input"
550
+ >
551
+ <input
552
+ autocomplete="off"
553
+ placeholder="providers.form.name"
554
+ required=""
555
+ type="text"
556
+ value="provider1"
557
+ />
558
+ </div>
559
+ </div>
560
+ <div
561
+ class="required field"
562
+ >
563
+ <label>
564
+ providers.form.type
565
+ </label>
566
+ <div
567
+ aria-expanded="false"
568
+ class="ui selection dropdown"
569
+ role="listbox"
570
+ tabindex="0"
571
+ >
572
+ <div
573
+ aria-atomic="true"
574
+ aria-live="polite"
575
+ class="divider text"
576
+ role="alert"
577
+ >
578
+ providers.type.openai
579
+ </div>
580
+ <i
581
+ aria-hidden="true"
582
+ class="dropdown icon"
583
+ />
584
+ <div
585
+ class="menu transition"
586
+ >
587
+ <div
588
+ aria-checked="true"
589
+ aria-selected="true"
590
+ class="active selected item"
591
+ role="option"
592
+ style="pointer-events: all;"
593
+ >
594
+ <span
595
+ class="text"
596
+ >
597
+ providers.type.openai
598
+ </span>
599
+ </div>
600
+ <div
601
+ aria-checked="false"
602
+ aria-selected="false"
603
+ class="item"
604
+ role="option"
605
+ style="pointer-events: all;"
606
+ >
607
+ <span
608
+ class="text"
609
+ >
610
+ providers.type.azure_openai
611
+ </span>
612
+ </div>
613
+ <div
614
+ aria-checked="false"
615
+ aria-selected="false"
616
+ class="item"
617
+ role="option"
618
+ style="pointer-events: all;"
619
+ >
620
+ <span
621
+ class="text"
622
+ >
623
+ providers.type.bedrock_claude
624
+ </span>
625
+ </div>
626
+ </div>
627
+ </div>
628
+ </div>
629
+ <div
630
+ class="required field"
631
+ >
632
+ <label>
633
+ providerProperties.form.model
634
+ </label>
635
+ <div
636
+ class="ui input"
637
+ >
638
+ <input
639
+ autocomplete="off"
640
+ placeholder="providerProperties.form.model"
641
+ required=""
642
+ type="text"
643
+ value="model1"
644
+ />
645
+ </div>
646
+ </div>
647
+ <div
648
+ class="required field"
649
+ >
650
+ <label>
651
+ providerProperties.form.organizationKey
652
+ </label>
653
+ <div
654
+ class="ui input"
655
+ >
656
+ <input
657
+ autocomplete="off"
658
+ placeholder="providerProperties.form.organizationKey"
659
+ required=""
660
+ type="text"
661
+ value="ok1"
662
+ />
663
+ </div>
664
+ </div>
665
+ <div
666
+ class="field"
667
+ >
668
+ <label>
669
+ providerProperties.form.apiKey
670
+ </label>
671
+ <div
672
+ class="ui input"
673
+ >
674
+ <input
675
+ autocomplete="off"
676
+ placeholder="providerProperties.form.apiKey"
677
+ type="password"
678
+ value=""
679
+ />
680
+ </div>
681
+ </div>
682
+ <div
683
+ class="ui hidden divider"
684
+ />
685
+ <div
686
+ class="ui right aligned container"
687
+ >
688
+ <button
689
+ class="ui primary disabled button"
690
+ disabled=""
691
+ tabindex="-1"
692
+ >
693
+ actions.save
694
+ </button>
695
+ <button
696
+ class="ui button"
697
+ >
698
+ actions.cancel
699
+ </button>
700
+ <button
701
+ class="ui red button"
702
+ >
703
+ actions.delete
704
+ </button>
705
+ </div>
706
+ </form>
707
+ </div>
708
+ `;