@player-devtools/basic-plugin-content 0.0.2-next.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.
@@ -0,0 +1,849 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/basic/content/src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ BasicPluginData: () => BasicPluginData,
24
+ INTERACTIONS: () => INTERACTIONS,
25
+ PLUGIN_ID: () => PLUGIN_ID,
26
+ VIEWS_IDS: () => VIEWS_IDS
27
+ });
28
+ module.exports = __toCommonJS(src_exports);
29
+
30
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/basic/content/src/constants.ts
31
+ var PLUGIN_ID = "player-ui-basic-devtools-plugin";
32
+ var VIEWS_IDS = {
33
+ CONFIG: "Config",
34
+ FLOW: "Flow",
35
+ LOGS: "Logs",
36
+ CONSOLE: "Console",
37
+ EDITOR: "Editor"
38
+ };
39
+ var INTERACTIONS = {
40
+ EVALUATE_EXPRESSION: "evaluate-expression",
41
+ OVERRIDE_FLOW: "override-flow"
42
+ };
43
+
44
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/basic/content/_generated/flow.json
45
+ var flow_default = {
46
+ id: "player-ui-basic-devtools-plugin",
47
+ views: [
48
+ {
49
+ id: "Config",
50
+ type: "stacked-view",
51
+ header: {
52
+ asset: {
53
+ id: "Config-header",
54
+ type: "navigation",
55
+ values: [
56
+ {
57
+ asset: {
58
+ id: "Config-header-values-0",
59
+ type: "action",
60
+ value: "Config",
61
+ label: {
62
+ asset: {
63
+ id: "Config-header-values-0-label",
64
+ type: "text",
65
+ value: "Config"
66
+ }
67
+ }
68
+ }
69
+ },
70
+ {
71
+ asset: {
72
+ id: "Config-header-values-1",
73
+ type: "action",
74
+ value: "Flow",
75
+ label: {
76
+ asset: {
77
+ id: "Config-header-values-1-label",
78
+ type: "text",
79
+ value: "Flow"
80
+ }
81
+ }
82
+ }
83
+ },
84
+ {
85
+ asset: {
86
+ id: "Config-header-values-2",
87
+ type: "action",
88
+ value: "Logs",
89
+ label: {
90
+ asset: {
91
+ id: "Config-header-values-2-label",
92
+ type: "text",
93
+ value: "Logs"
94
+ }
95
+ }
96
+ }
97
+ },
98
+ {
99
+ asset: {
100
+ id: "Config-header-values-3",
101
+ type: "action",
102
+ value: "Console",
103
+ label: {
104
+ asset: {
105
+ id: "Config-header-values-3-label",
106
+ type: "text",
107
+ value: "Console"
108
+ }
109
+ }
110
+ }
111
+ },
112
+ {
113
+ asset: {
114
+ id: "Config-header-values-4",
115
+ type: "action",
116
+ value: "Editor",
117
+ label: {
118
+ asset: {
119
+ id: "Config-header-values-4-label",
120
+ type: "text",
121
+ value: "Editor"
122
+ }
123
+ }
124
+ }
125
+ }
126
+ ]
127
+ }
128
+ },
129
+ main: {
130
+ asset: {
131
+ id: "Config-main",
132
+ type: "object-inspector",
133
+ binding: "playerConfig",
134
+ label: {
135
+ asset: {
136
+ id: "Config-main-label",
137
+ type: "text",
138
+ value: "Config"
139
+ }
140
+ }
141
+ }
142
+ }
143
+ },
144
+ {
145
+ id: "Flow",
146
+ type: "stacked-view",
147
+ header: {
148
+ asset: {
149
+ id: "Flow-header",
150
+ type: "navigation",
151
+ values: [
152
+ {
153
+ asset: {
154
+ id: "Flow-header-values-0",
155
+ type: "action",
156
+ value: "Config",
157
+ label: {
158
+ asset: {
159
+ id: "Flow-header-values-0-label",
160
+ type: "text",
161
+ value: "Config"
162
+ }
163
+ }
164
+ }
165
+ },
166
+ {
167
+ asset: {
168
+ id: "Flow-header-values-1",
169
+ type: "action",
170
+ value: "Flow",
171
+ label: {
172
+ asset: {
173
+ id: "Flow-header-values-1-label",
174
+ type: "text",
175
+ value: "Flow"
176
+ }
177
+ }
178
+ }
179
+ },
180
+ {
181
+ asset: {
182
+ id: "Flow-header-values-2",
183
+ type: "action",
184
+ value: "Logs",
185
+ label: {
186
+ asset: {
187
+ id: "Flow-header-values-2-label",
188
+ type: "text",
189
+ value: "Logs"
190
+ }
191
+ }
192
+ }
193
+ },
194
+ {
195
+ asset: {
196
+ id: "Flow-header-values-3",
197
+ type: "action",
198
+ value: "Console",
199
+ label: {
200
+ asset: {
201
+ id: "Flow-header-values-3-label",
202
+ type: "text",
203
+ value: "Console"
204
+ }
205
+ }
206
+ }
207
+ },
208
+ {
209
+ asset: {
210
+ id: "Flow-header-values-4",
211
+ type: "action",
212
+ value: "Editor",
213
+ label: {
214
+ asset: {
215
+ id: "Flow-header-values-4-label",
216
+ type: "text",
217
+ value: "Editor"
218
+ }
219
+ }
220
+ }
221
+ }
222
+ ]
223
+ }
224
+ },
225
+ main: {
226
+ asset: {
227
+ id: "Flow-main",
228
+ type: "object-inspector",
229
+ filter: true,
230
+ binding: "flow",
231
+ label: {
232
+ asset: {
233
+ id: "Flow-main-label",
234
+ type: "text",
235
+ value: "Flow"
236
+ }
237
+ }
238
+ }
239
+ },
240
+ footer: {
241
+ asset: {
242
+ id: "Flow-footer",
243
+ type: "copy-to-clipboard",
244
+ binding: "flow",
245
+ label: {
246
+ asset: {
247
+ id: "Flow-footer-label",
248
+ type: "text",
249
+ value: "Copy flow to the clipboard"
250
+ }
251
+ }
252
+ }
253
+ }
254
+ },
255
+ {
256
+ id: "Logs",
257
+ type: "stacked-view",
258
+ header: {
259
+ asset: {
260
+ id: "Logs-header",
261
+ type: "navigation",
262
+ values: [
263
+ {
264
+ asset: {
265
+ id: "Logs-header-values-0",
266
+ type: "action",
267
+ value: "Config",
268
+ label: {
269
+ asset: {
270
+ id: "Logs-header-values-0-label",
271
+ type: "text",
272
+ value: "Config"
273
+ }
274
+ }
275
+ }
276
+ },
277
+ {
278
+ asset: {
279
+ id: "Logs-header-values-1",
280
+ type: "action",
281
+ value: "Flow",
282
+ label: {
283
+ asset: {
284
+ id: "Logs-header-values-1-label",
285
+ type: "text",
286
+ value: "Flow"
287
+ }
288
+ }
289
+ }
290
+ },
291
+ {
292
+ asset: {
293
+ id: "Logs-header-values-2",
294
+ type: "action",
295
+ value: "Logs",
296
+ label: {
297
+ asset: {
298
+ id: "Logs-header-values-2-label",
299
+ type: "text",
300
+ value: "Logs"
301
+ }
302
+ }
303
+ }
304
+ },
305
+ {
306
+ asset: {
307
+ id: "Logs-header-values-3",
308
+ type: "action",
309
+ value: "Console",
310
+ label: {
311
+ asset: {
312
+ id: "Logs-header-values-3-label",
313
+ type: "text",
314
+ value: "Console"
315
+ }
316
+ }
317
+ }
318
+ },
319
+ {
320
+ asset: {
321
+ id: "Logs-header-values-4",
322
+ type: "action",
323
+ value: "Editor",
324
+ label: {
325
+ asset: {
326
+ id: "Logs-header-values-4-label",
327
+ type: "text",
328
+ value: "Editor"
329
+ }
330
+ }
331
+ }
332
+ }
333
+ ]
334
+ }
335
+ },
336
+ main: {
337
+ asset: {
338
+ id: "Logs-main",
339
+ type: "table",
340
+ binding: "logs"
341
+ }
342
+ }
343
+ },
344
+ {
345
+ id: "Console",
346
+ type: "stacked-view",
347
+ header: {
348
+ asset: {
349
+ id: "Console-header",
350
+ type: "navigation",
351
+ values: [
352
+ {
353
+ asset: {
354
+ id: "Console-header-values-0",
355
+ type: "action",
356
+ value: "Config",
357
+ label: {
358
+ asset: {
359
+ id: "Console-header-values-0-label",
360
+ type: "text",
361
+ value: "Config"
362
+ }
363
+ }
364
+ }
365
+ },
366
+ {
367
+ asset: {
368
+ id: "Console-header-values-1",
369
+ type: "action",
370
+ value: "Flow",
371
+ label: {
372
+ asset: {
373
+ id: "Console-header-values-1-label",
374
+ type: "text",
375
+ value: "Flow"
376
+ }
377
+ }
378
+ }
379
+ },
380
+ {
381
+ asset: {
382
+ id: "Console-header-values-2",
383
+ type: "action",
384
+ value: "Logs",
385
+ label: {
386
+ asset: {
387
+ id: "Console-header-values-2-label",
388
+ type: "text",
389
+ value: "Logs"
390
+ }
391
+ }
392
+ }
393
+ },
394
+ {
395
+ asset: {
396
+ id: "Console-header-values-3",
397
+ type: "action",
398
+ value: "Console",
399
+ label: {
400
+ asset: {
401
+ id: "Console-header-values-3-label",
402
+ type: "text",
403
+ value: "Console"
404
+ }
405
+ }
406
+ }
407
+ },
408
+ {
409
+ asset: {
410
+ id: "Console-header-values-4",
411
+ type: "action",
412
+ value: "Editor",
413
+ label: {
414
+ asset: {
415
+ id: "Console-header-values-4-label",
416
+ type: "text",
417
+ value: "Editor"
418
+ }
419
+ }
420
+ }
421
+ }
422
+ ]
423
+ }
424
+ },
425
+ main: {
426
+ asset: {
427
+ id: "Console-main",
428
+ type: "console",
429
+ exp: " publish('evaluate-expression', {{expression}}) ",
430
+ binding: "history"
431
+ }
432
+ }
433
+ },
434
+ {
435
+ id: "Editor",
436
+ type: "stacked-view",
437
+ header: {
438
+ asset: {
439
+ id: "Editor-header",
440
+ type: "navigation",
441
+ values: [
442
+ {
443
+ asset: {
444
+ id: "Editor-header-values-0",
445
+ type: "action",
446
+ value: "Config",
447
+ label: {
448
+ asset: {
449
+ id: "Editor-header-values-0-label",
450
+ type: "text",
451
+ value: "Config"
452
+ }
453
+ }
454
+ }
455
+ },
456
+ {
457
+ asset: {
458
+ id: "Editor-header-values-1",
459
+ type: "action",
460
+ value: "Flow",
461
+ label: {
462
+ asset: {
463
+ id: "Editor-header-values-1-label",
464
+ type: "text",
465
+ value: "Flow"
466
+ }
467
+ }
468
+ }
469
+ },
470
+ {
471
+ asset: {
472
+ id: "Editor-header-values-2",
473
+ type: "action",
474
+ value: "Logs",
475
+ label: {
476
+ asset: {
477
+ id: "Editor-header-values-2-label",
478
+ type: "text",
479
+ value: "Logs"
480
+ }
481
+ }
482
+ }
483
+ },
484
+ {
485
+ asset: {
486
+ id: "Editor-header-values-3",
487
+ type: "action",
488
+ value: "Console",
489
+ label: {
490
+ asset: {
491
+ id: "Editor-header-values-3-label",
492
+ type: "text",
493
+ value: "Console"
494
+ }
495
+ }
496
+ }
497
+ },
498
+ {
499
+ asset: {
500
+ id: "Editor-header-values-4",
501
+ type: "action",
502
+ value: "Editor",
503
+ label: {
504
+ asset: {
505
+ id: "Editor-header-values-4-label",
506
+ type: "text",
507
+ value: "Editor"
508
+ }
509
+ }
510
+ }
511
+ }
512
+ ]
513
+ }
514
+ },
515
+ main: {
516
+ asset: {
517
+ id: "Editor-main",
518
+ type: "code-editor",
519
+ binding: "flow",
520
+ exp: " publish('override-flow', {{code}}) "
521
+ }
522
+ }
523
+ }
524
+ ],
525
+ navigation: {
526
+ BEGIN: "Plugin",
527
+ Plugin: {
528
+ startState: "CONFIG",
529
+ CONFIG: {
530
+ state_type: "VIEW",
531
+ ref: "Config",
532
+ transitions: {
533
+ Config: "CONFIG",
534
+ Flow: "FLOW",
535
+ Logs: "LOGS",
536
+ Console: "CONSOLE",
537
+ Editor: "EDITOR"
538
+ }
539
+ },
540
+ FLOW: {
541
+ state_type: "VIEW",
542
+ ref: "Flow",
543
+ transitions: {
544
+ Config: "CONFIG",
545
+ Flow: "FLOW",
546
+ Logs: "LOGS",
547
+ Console: "CONSOLE",
548
+ Editor: "EDITOR"
549
+ }
550
+ },
551
+ LOGS: {
552
+ state_type: "VIEW",
553
+ ref: "Logs",
554
+ transitions: {
555
+ Config: "CONFIG",
556
+ Flow: "FLOW",
557
+ Logs: "LOGS",
558
+ Console: "CONSOLE",
559
+ Editor: "EDITOR"
560
+ }
561
+ },
562
+ CONSOLE: {
563
+ state_type: "VIEW",
564
+ ref: "Console",
565
+ transitions: {
566
+ Config: "CONFIG",
567
+ Flow: "FLOW",
568
+ Logs: "LOGS",
569
+ Console: "CONSOLE",
570
+ Editor: "EDITOR"
571
+ }
572
+ },
573
+ EDITOR: {
574
+ state_type: "VIEW",
575
+ ref: "Editor",
576
+ transitions: {
577
+ Config: "CONFIG",
578
+ Flow: "FLOW",
579
+ Logs: "LOGS",
580
+ Console: "CONSOLE",
581
+ Editor: "EDITOR"
582
+ }
583
+ }
584
+ }
585
+ },
586
+ schema: {
587
+ ROOT: {
588
+ playerConfig: {
589
+ type: "RecordType"
590
+ },
591
+ flow: {
592
+ type: "RecordType"
593
+ },
594
+ expression: {
595
+ type: "StringType",
596
+ default: "",
597
+ validation: [
598
+ {
599
+ type: "string"
600
+ }
601
+ ],
602
+ format: {
603
+ type: "string"
604
+ }
605
+ },
606
+ code: {
607
+ type: "StringType",
608
+ default: "",
609
+ validation: [
610
+ {
611
+ type: "string"
612
+ }
613
+ ],
614
+ format: {
615
+ type: "string"
616
+ }
617
+ },
618
+ history: {
619
+ type: "historyType",
620
+ isArray: true
621
+ },
622
+ logs: {
623
+ type: "logsType",
624
+ isArray: true
625
+ }
626
+ },
627
+ logsType: {
628
+ id: {
629
+ type: "StringType",
630
+ default: "",
631
+ validation: [
632
+ {
633
+ type: "string"
634
+ }
635
+ ],
636
+ format: {
637
+ type: "string"
638
+ }
639
+ },
640
+ time: {
641
+ type: "StringType",
642
+ default: "",
643
+ validation: [
644
+ {
645
+ type: "string"
646
+ }
647
+ ],
648
+ format: {
649
+ type: "string"
650
+ }
651
+ },
652
+ type: {
653
+ type: "StringType",
654
+ default: "",
655
+ validation: [
656
+ {
657
+ type: "string"
658
+ }
659
+ ],
660
+ format: {
661
+ type: "string"
662
+ }
663
+ },
664
+ message: {
665
+ type: "StringType",
666
+ default: "",
667
+ validation: [
668
+ {
669
+ type: "string"
670
+ }
671
+ ],
672
+ format: {
673
+ type: "string"
674
+ }
675
+ },
676
+ severity: {
677
+ type: "StringType",
678
+ default: "",
679
+ validation: [
680
+ {
681
+ type: "string"
682
+ }
683
+ ],
684
+ format: {
685
+ type: "string"
686
+ }
687
+ },
688
+ binding: {
689
+ type: "StringType",
690
+ default: "",
691
+ validation: [
692
+ {
693
+ type: "string"
694
+ }
695
+ ],
696
+ format: {
697
+ type: "string"
698
+ }
699
+ },
700
+ from: {
701
+ type: "StringType",
702
+ default: "",
703
+ validation: [
704
+ {
705
+ type: "string"
706
+ }
707
+ ],
708
+ format: {
709
+ type: "string"
710
+ }
711
+ },
712
+ to: {
713
+ type: "StringType",
714
+ default: "",
715
+ validation: [
716
+ {
717
+ type: "string"
718
+ }
719
+ ],
720
+ format: {
721
+ type: "string"
722
+ }
723
+ },
724
+ state: {
725
+ type: "StringType",
726
+ default: "",
727
+ validation: [
728
+ {
729
+ type: "string"
730
+ }
731
+ ],
732
+ format: {
733
+ type: "string"
734
+ }
735
+ },
736
+ error: {
737
+ type: "StringType",
738
+ default: "",
739
+ validation: [
740
+ {
741
+ type: "string"
742
+ }
743
+ ],
744
+ format: {
745
+ type: "string"
746
+ }
747
+ },
748
+ outcome: {
749
+ type: "StringType",
750
+ default: "",
751
+ validation: [
752
+ {
753
+ type: "string"
754
+ }
755
+ ],
756
+ format: {
757
+ type: "string"
758
+ }
759
+ },
760
+ metricType: {
761
+ type: "StringType",
762
+ default: "",
763
+ validation: [
764
+ {
765
+ type: "string"
766
+ }
767
+ ],
768
+ format: {
769
+ type: "string"
770
+ }
771
+ }
772
+ },
773
+ historyType: {
774
+ id: {
775
+ type: "StringType",
776
+ default: "",
777
+ validation: [
778
+ {
779
+ type: "string"
780
+ }
781
+ ],
782
+ format: {
783
+ type: "string"
784
+ }
785
+ },
786
+ expression: {
787
+ type: "StringType",
788
+ default: "",
789
+ validation: [
790
+ {
791
+ type: "string"
792
+ }
793
+ ],
794
+ format: {
795
+ type: "string"
796
+ }
797
+ },
798
+ result: {
799
+ type: "StringType",
800
+ default: "",
801
+ validation: [
802
+ {
803
+ type: "string"
804
+ }
805
+ ],
806
+ format: {
807
+ type: "string"
808
+ }
809
+ },
810
+ severity: {
811
+ type: "StringType",
812
+ default: "",
813
+ validation: [
814
+ {
815
+ type: "string"
816
+ }
817
+ ],
818
+ format: {
819
+ type: "string"
820
+ }
821
+ }
822
+ }
823
+ },
824
+ data: {
825
+ expression: "",
826
+ flow: {},
827
+ history: [],
828
+ logs: [],
829
+ playerConfig: {}
830
+ }
831
+ };
832
+
833
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/basic/content/src/index.ts
834
+ var PLUGIN_VERSION = true ? "0.0.2-next.0" : "unstamped";
835
+ var BasicPluginData = {
836
+ id: PLUGIN_ID,
837
+ name: "Standard Devtools",
838
+ description: "Standard Player UI Devtools",
839
+ version: PLUGIN_VERSION,
840
+ flow: flow_default
841
+ };
842
+ // Annotate the CommonJS export names for ESM import in node:
843
+ 0 && (module.exports = {
844
+ BasicPluginData,
845
+ INTERACTIONS,
846
+ PLUGIN_ID,
847
+ VIEWS_IDS
848
+ });
849
+ //# sourceMappingURL=index.cjs.map