@ms-cloudpack/overlay 0.16.113 → 0.17.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.
- package/dist/browser-esm/lib/index.js +113 -204
- package/dist/browser-esm/lib/index.js.map +4 -4
- package/dist/browser-esm/ori-output.json +81 -95
- package/dist/browser-esm/result.json +10 -10
- package/lib/components/CloudpackProvider/CloudpackProvider.d.ts +3 -2
- package/lib/components/CloudpackProvider/CloudpackProvider.d.ts.map +1 -1
- package/lib/components/CloudpackProvider/CloudpackProvider.js +2 -4
- package/lib/components/CloudpackProvider/CloudpackProvider.js.map +1 -1
- package/lib/components/CloudpackProvider/useStatus.d.ts.map +1 -1
- package/lib/components/CloudpackProvider/useStatus.js +12 -3
- package/lib/components/CloudpackProvider/useStatus.js.map +1 -1
- package/lib/components/CloudpackProvider/useStatusDetails.d.ts +52 -16
- package/lib/components/CloudpackProvider/useStatusDetails.d.ts.map +1 -1
- package/lib/components/CloudpackProvider/useStatusDetails.js +11 -2
- package/lib/components/CloudpackProvider/useStatusDetails.js.map +1 -1
- package/lib/components/ErrorDialog/ErrorDialog.js +1 -1
- package/lib/components/ErrorDialog/ErrorDialog.js.map +1 -1
- package/lib/components/ErrorDialog/PathError.js +2 -2
- package/lib/components/ErrorDialog/PathError.js.map +1 -1
- package/lib/components/ErrorDialog/useErrorEvents.js +1 -1
- package/lib/components/ErrorDialog/useErrorEvents.js.map +1 -1
- package/lib/components/StatusDialog/StatusDialog.js +1 -1
- package/lib/components/StatusDialog/StatusDialog.js.map +1 -1
- package/lib/components/StatusDialog/TaskList.d.ts.map +1 -1
- package/lib/components/StatusDialog/TaskList.js +10 -1
- package/lib/components/StatusDialog/TaskList.js.map +1 -1
- package/lib/components/StatusDialog/TaskResultItem.js +2 -2
- package/lib/components/StatusDialog/TaskResultItem.js.map +1 -1
- package/lib/components/StatusDialog/TaskStatus.d.ts +2 -2
- package/lib/components/StatusDialog/TaskStatus.d.ts.map +1 -1
- package/lib/components/StatusDialog/TaskStatus.js +39 -28
- package/lib/components/StatusDialog/TaskStatus.js.map +1 -1
- package/lib/hooks/usePageLoadTimeReporter.js +2 -2
- package/lib/hooks/usePageLoadTimeReporter.js.map +1 -1
- package/lib/index.js +27 -7
- package/lib/index.js.map +1 -1
- package/package.json +4 -6
- package/lib/components/CloudpackProvider/createCloudpackClient.d.ts +0 -27
- package/lib/components/CloudpackProvider/createCloudpackClient.d.ts.map +0 -1
- package/lib/components/CloudpackProvider/createCloudpackClient.js +0 -163
- package/lib/components/CloudpackProvider/createCloudpackClient.js.map +0 -1
- /package/dist/ori/logs/{2g8DL8XvNNiSPBsWRhfIm0Mk1wF-logger.log → 2gDrbKHv6HJdsrJbtR1hpUGJy8u-logger.log} +0 -0
|
@@ -1,54 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "builder:notify",
|
|
3
|
-
"buildId": "
|
|
3
|
+
"buildId": "build_a6e2c2ba-4b01-49f8-988d-81d0ff658ce9",
|
|
4
4
|
"buildStatus": "complete",
|
|
5
5
|
"internalError": null,
|
|
6
6
|
"warnings": [],
|
|
7
7
|
"errors": [],
|
|
8
8
|
"outputFilePaths": [
|
|
9
|
-
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/browser-esm/lib/constants.js.map",
|
|
10
|
-
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/browser-esm/lib/constants.js",
|
|
11
9
|
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/browser-esm/lib/index.js.map",
|
|
12
10
|
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/browser-esm/lib/index.js",
|
|
11
|
+
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/browser-esm/lib/constants.js.map",
|
|
12
|
+
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/browser-esm/lib/constants.js",
|
|
13
13
|
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/browser-esm/chunks/js/chunk-PDWQRLCD.js.map",
|
|
14
14
|
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/browser-esm/chunks/js/chunk-PDWQRLCD.js"
|
|
15
15
|
],
|
|
16
16
|
"outputFiles": null,
|
|
17
17
|
"metafile": {
|
|
18
18
|
"inputs": {
|
|
19
|
-
"packages/overlay/src/constants.ts": {
|
|
20
|
-
"bytes": 803,
|
|
21
|
-
"imports": [],
|
|
22
|
-
"format": "esm"
|
|
23
|
-
},
|
|
24
|
-
"packages/overlay/src/components/CloudpackProvider/getCookies.ts": {
|
|
25
|
-
"bytes": 452,
|
|
26
|
-
"imports": [],
|
|
27
|
-
"format": "esm"
|
|
28
|
-
},
|
|
29
|
-
"packages/overlay/src/components/CloudpackProvider/createCloudpackClient.ts": {
|
|
30
|
-
"bytes": 6197,
|
|
31
|
-
"imports": [
|
|
32
|
-
{
|
|
33
|
-
"path": "packages/overlay/src/components/CloudpackProvider/getCookies.ts",
|
|
34
|
-
"kind": "import-statement",
|
|
35
|
-
"original": "./getCookies.js"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"path": "@ms-cloudpack/data-bus",
|
|
39
|
-
"kind": "import-statement",
|
|
40
|
-
"external": true
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"path": "packages/overlay/src/constants.ts",
|
|
44
|
-
"kind": "import-statement",
|
|
45
|
-
"original": "../../constants.js"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"format": "esm"
|
|
49
|
-
},
|
|
50
19
|
"packages/overlay/src/components/CloudpackProvider/CloudpackProvider.tsx": {
|
|
51
|
-
"bytes":
|
|
20
|
+
"bytes": 505,
|
|
52
21
|
"imports": [
|
|
53
22
|
{
|
|
54
23
|
"path": "react",
|
|
@@ -56,9 +25,9 @@
|
|
|
56
25
|
"external": true
|
|
57
26
|
},
|
|
58
27
|
{
|
|
59
|
-
"path": "
|
|
28
|
+
"path": "@ms-cloudpack/api-server/browser",
|
|
60
29
|
"kind": "import-statement",
|
|
61
|
-
"
|
|
30
|
+
"external": true
|
|
62
31
|
}
|
|
63
32
|
],
|
|
64
33
|
"format": "esm"
|
|
@@ -80,7 +49,7 @@
|
|
|
80
49
|
"format": "esm"
|
|
81
50
|
},
|
|
82
51
|
"packages/overlay/src/components/CloudpackProvider/useStatus.ts": {
|
|
83
|
-
"bytes":
|
|
52
|
+
"bytes": 798,
|
|
84
53
|
"imports": [
|
|
85
54
|
{
|
|
86
55
|
"path": "react",
|
|
@@ -100,6 +69,11 @@
|
|
|
100
69
|
],
|
|
101
70
|
"format": "esm"
|
|
102
71
|
},
|
|
72
|
+
"packages/overlay/src/constants.ts": {
|
|
73
|
+
"bytes": 803,
|
|
74
|
+
"imports": [],
|
|
75
|
+
"format": "esm"
|
|
76
|
+
},
|
|
103
77
|
"packages/overlay/src/components/StatusBadge/StatusBadge.tsx": {
|
|
104
78
|
"bytes": 4112,
|
|
105
79
|
"imports": [
|
|
@@ -142,7 +116,7 @@
|
|
|
142
116
|
"format": "esm"
|
|
143
117
|
},
|
|
144
118
|
"packages/overlay/src/components/StatusDialog/TaskResultItem.tsx": {
|
|
145
|
-
"bytes":
|
|
119
|
+
"bytes": 1408,
|
|
146
120
|
"imports": [
|
|
147
121
|
{
|
|
148
122
|
"path": "react",
|
|
@@ -201,7 +175,7 @@
|
|
|
201
175
|
"format": "esm"
|
|
202
176
|
},
|
|
203
177
|
"packages/overlay/src/components/StatusDialog/TaskStatus.tsx": {
|
|
204
|
-
"bytes":
|
|
178
|
+
"bytes": 5249,
|
|
205
179
|
"imports": [
|
|
206
180
|
{
|
|
207
181
|
"path": "react",
|
|
@@ -252,7 +226,7 @@
|
|
|
252
226
|
"format": "esm"
|
|
253
227
|
},
|
|
254
228
|
"packages/overlay/src/components/CloudpackProvider/useStatusDetails.ts": {
|
|
255
|
-
"bytes":
|
|
229
|
+
"bytes": 608,
|
|
256
230
|
"imports": [
|
|
257
231
|
{
|
|
258
232
|
"path": "react",
|
|
@@ -278,7 +252,7 @@
|
|
|
278
252
|
"format": "esm"
|
|
279
253
|
},
|
|
280
254
|
"packages/overlay/src/components/StatusDialog/TaskList.tsx": {
|
|
281
|
-
"bytes":
|
|
255
|
+
"bytes": 1729,
|
|
282
256
|
"imports": [
|
|
283
257
|
{
|
|
284
258
|
"path": "react",
|
|
@@ -360,7 +334,7 @@
|
|
|
360
334
|
"format": "esm"
|
|
361
335
|
},
|
|
362
336
|
"packages/overlay/src/components/StatusDialog/StatusDialog.tsx": {
|
|
363
|
-
"bytes":
|
|
337
|
+
"bytes": 1538,
|
|
364
338
|
"imports": [
|
|
365
339
|
{
|
|
366
340
|
"path": "react",
|
|
@@ -401,7 +375,7 @@
|
|
|
401
375
|
"format": "esm"
|
|
402
376
|
},
|
|
403
377
|
"packages/overlay/src/components/ErrorDialog/PathError.tsx": {
|
|
404
|
-
"bytes":
|
|
378
|
+
"bytes": 2972,
|
|
405
379
|
"imports": [
|
|
406
380
|
{
|
|
407
381
|
"path": "react",
|
|
@@ -442,7 +416,7 @@
|
|
|
442
416
|
"format": "esm"
|
|
443
417
|
},
|
|
444
418
|
"packages/overlay/src/components/ErrorDialog/ErrorDialog.tsx": {
|
|
445
|
-
"bytes":
|
|
419
|
+
"bytes": 1120,
|
|
446
420
|
"imports": [
|
|
447
421
|
{
|
|
448
422
|
"path": "react",
|
|
@@ -483,7 +457,7 @@
|
|
|
483
457
|
"format": "esm"
|
|
484
458
|
},
|
|
485
459
|
"packages/overlay/src/components/ErrorDialog/useErrorEvents.ts": {
|
|
486
|
-
"bytes":
|
|
460
|
+
"bytes": 3061,
|
|
487
461
|
"imports": [
|
|
488
462
|
{
|
|
489
463
|
"path": "react",
|
|
@@ -504,7 +478,7 @@
|
|
|
504
478
|
"format": "esm"
|
|
505
479
|
},
|
|
506
480
|
"packages/overlay/src/hooks/usePageLoadTimeReporter.ts": {
|
|
507
|
-
"bytes":
|
|
481
|
+
"bytes": 857,
|
|
508
482
|
"imports": [
|
|
509
483
|
{
|
|
510
484
|
"path": "react",
|
|
@@ -581,8 +555,13 @@
|
|
|
581
555
|
],
|
|
582
556
|
"format": "esm"
|
|
583
557
|
},
|
|
558
|
+
"packages/overlay/src/components/CloudpackProvider/getCookies.ts": {
|
|
559
|
+
"bytes": 452,
|
|
560
|
+
"imports": [],
|
|
561
|
+
"format": "esm"
|
|
562
|
+
},
|
|
584
563
|
"packages/overlay/src/index.tsx": {
|
|
585
|
-
"bytes":
|
|
564
|
+
"bytes": 1423,
|
|
586
565
|
"imports": [
|
|
587
566
|
{
|
|
588
567
|
"path": "react",
|
|
@@ -613,38 +592,27 @@
|
|
|
613
592
|
"path": "packages/overlay/src/constants.ts",
|
|
614
593
|
"kind": "import-statement",
|
|
615
594
|
"original": "./constants.js"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"path": "@ms-cloudpack/api-server/browser",
|
|
598
|
+
"kind": "import-statement",
|
|
599
|
+
"external": true
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"path": "packages/overlay/src/components/CloudpackProvider/getCookies.ts",
|
|
603
|
+
"kind": "import-statement",
|
|
604
|
+
"original": "./components/CloudpackProvider/getCookies.js"
|
|
616
605
|
}
|
|
617
606
|
],
|
|
618
607
|
"format": "esm"
|
|
619
608
|
}
|
|
620
609
|
},
|
|
621
610
|
"outputs": {
|
|
622
|
-
"packages/overlay/dist/browser-esm/lib/constants.js.map": {
|
|
623
|
-
"imports": [],
|
|
624
|
-
"exports": [],
|
|
625
|
-
"inputs": {},
|
|
626
|
-
"bytes": 93
|
|
627
|
-
},
|
|
628
|
-
"packages/overlay/dist/browser-esm/lib/constants.js": {
|
|
629
|
-
"imports": [
|
|
630
|
-
{
|
|
631
|
-
"path": "packages/overlay/dist/browser-esm/chunks/js/chunk-PDWQRLCD.js",
|
|
632
|
-
"kind": "import-statement"
|
|
633
|
-
}
|
|
634
|
-
],
|
|
635
|
-
"exports": [
|
|
636
|
-
"cookieNames",
|
|
637
|
-
"elementIds"
|
|
638
|
-
],
|
|
639
|
-
"entryPoint": "packages/overlay/src/constants.ts",
|
|
640
|
-
"inputs": {},
|
|
641
|
-
"bytes": 156
|
|
642
|
-
},
|
|
643
611
|
"packages/overlay/dist/browser-esm/lib/index.js.map": {
|
|
644
612
|
"imports": [],
|
|
645
613
|
"exports": [],
|
|
646
614
|
"inputs": {},
|
|
647
|
-
"bytes":
|
|
615
|
+
"bytes": 76131
|
|
648
616
|
},
|
|
649
617
|
"packages/overlay/dist/browser-esm/lib/index.js": {
|
|
650
618
|
"imports": [
|
|
@@ -667,11 +635,6 @@
|
|
|
667
635
|
"kind": "import-statement",
|
|
668
636
|
"external": true
|
|
669
637
|
},
|
|
670
|
-
{
|
|
671
|
-
"path": "@ms-cloudpack/data-bus",
|
|
672
|
-
"kind": "import-statement",
|
|
673
|
-
"external": true
|
|
674
|
-
},
|
|
675
638
|
{
|
|
676
639
|
"path": "react",
|
|
677
640
|
"kind": "import-statement",
|
|
@@ -786,22 +749,21 @@
|
|
|
786
749
|
"path": "react",
|
|
787
750
|
"kind": "import-statement",
|
|
788
751
|
"external": true
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"path": "@ms-cloudpack/api-server/browser",
|
|
755
|
+
"kind": "import-statement",
|
|
756
|
+
"external": true
|
|
789
757
|
}
|
|
790
758
|
],
|
|
791
759
|
"exports": [],
|
|
792
760
|
"entryPoint": "packages/overlay/src/index.tsx",
|
|
793
761
|
"inputs": {
|
|
794
762
|
"packages/overlay/src/index.tsx": {
|
|
795
|
-
"bytesInOutput":
|
|
763
|
+
"bytesInOutput": 1094
|
|
796
764
|
},
|
|
797
765
|
"packages/overlay/src/components/CloudpackProvider/CloudpackProvider.tsx": {
|
|
798
|
-
"bytesInOutput":
|
|
799
|
-
},
|
|
800
|
-
"packages/overlay/src/components/CloudpackProvider/getCookies.ts": {
|
|
801
|
-
"bytesInOutput": 317
|
|
802
|
-
},
|
|
803
|
-
"packages/overlay/src/components/CloudpackProvider/createCloudpackClient.ts": {
|
|
804
|
-
"bytesInOutput": 4040
|
|
766
|
+
"bytesInOutput": 312
|
|
805
767
|
},
|
|
806
768
|
"packages/overlay/src/components/StatusOverlay/StatusOverlay.tsx": {
|
|
807
769
|
"bytesInOutput": 1087
|
|
@@ -810,25 +772,25 @@
|
|
|
810
772
|
"bytesInOutput": 4214
|
|
811
773
|
},
|
|
812
774
|
"packages/overlay/src/hooks/useDraggable.ts": {
|
|
813
|
-
"bytesInOutput":
|
|
775
|
+
"bytesInOutput": 1789
|
|
814
776
|
},
|
|
815
777
|
"packages/overlay/src/components/StatusBadge/StatusBadge.module.css": {
|
|
816
778
|
"bytesInOutput": 3601
|
|
817
779
|
},
|
|
818
780
|
"packages/overlay/src/components/CloudpackProvider/useStatus.ts": {
|
|
819
|
-
"bytesInOutput":
|
|
781
|
+
"bytesInOutput": 643
|
|
820
782
|
},
|
|
821
783
|
"packages/overlay/src/components/StatusDialog/StatusDialog.tsx": {
|
|
822
|
-
"bytesInOutput":
|
|
784
|
+
"bytesInOutput": 1239
|
|
823
785
|
},
|
|
824
786
|
"packages/overlay/src/components/StatusDialog/TaskList.tsx": {
|
|
825
|
-
"bytesInOutput":
|
|
787
|
+
"bytesInOutput": 1303
|
|
826
788
|
},
|
|
827
789
|
"packages/overlay/src/components/StatusDialog/TaskStatus.tsx": {
|
|
828
|
-
"bytesInOutput":
|
|
790
|
+
"bytesInOutput": 5447
|
|
829
791
|
},
|
|
830
792
|
"packages/overlay/src/components/StatusDialog/TaskResultItem.tsx": {
|
|
831
|
-
"bytesInOutput":
|
|
793
|
+
"bytesInOutput": 1361
|
|
832
794
|
},
|
|
833
795
|
"packages/overlay/src/components/StatusDialog/TaskResultItem.module.css": {
|
|
834
796
|
"bytesInOutput": 1838
|
|
@@ -852,7 +814,7 @@
|
|
|
852
814
|
"bytesInOutput": 2094
|
|
853
815
|
},
|
|
854
816
|
"packages/overlay/src/components/CloudpackProvider/useStatusDetails.ts": {
|
|
855
|
-
"bytesInOutput":
|
|
817
|
+
"bytesInOutput": 531
|
|
856
818
|
},
|
|
857
819
|
"packages/overlay/src/components/StatusDialog/TaskList.module.css": {
|
|
858
820
|
"bytesInOutput": 548
|
|
@@ -873,25 +835,49 @@
|
|
|
873
835
|
"bytesInOutput": 786
|
|
874
836
|
},
|
|
875
837
|
"packages/overlay/src/components/ErrorDialog/ErrorDialog.tsx": {
|
|
876
|
-
"bytesInOutput":
|
|
838
|
+
"bytesInOutput": 741
|
|
877
839
|
},
|
|
878
840
|
"packages/overlay/src/components/ErrorDialog/PathError.tsx": {
|
|
879
|
-
"bytesInOutput":
|
|
841
|
+
"bytesInOutput": 3168
|
|
880
842
|
},
|
|
881
843
|
"packages/overlay/src/components/ErrorDialog/useErrorEvents.ts": {
|
|
882
|
-
"bytesInOutput":
|
|
844
|
+
"bytesInOutput": 1921
|
|
883
845
|
},
|
|
884
846
|
"packages/overlay/src/hooks/usePageLoadTimeReporter.ts": {
|
|
885
|
-
"bytesInOutput":
|
|
847
|
+
"bytesInOutput": 692
|
|
886
848
|
},
|
|
887
849
|
"packages/overlay/src/components/ThemeProvider/ThemeProvider.tsx": {
|
|
888
850
|
"bytesInOutput": 185
|
|
889
851
|
},
|
|
890
852
|
"packages/overlay/src/components/ThemeProvider/ThemeProvider.module.css": {
|
|
891
853
|
"bytesInOutput": 614
|
|
854
|
+
},
|
|
855
|
+
"packages/overlay/src/components/CloudpackProvider/getCookies.ts": {
|
|
856
|
+
"bytesInOutput": 317
|
|
892
857
|
}
|
|
893
858
|
},
|
|
894
|
-
"bytes":
|
|
859
|
+
"bytes": 49702
|
|
860
|
+
},
|
|
861
|
+
"packages/overlay/dist/browser-esm/lib/constants.js.map": {
|
|
862
|
+
"imports": [],
|
|
863
|
+
"exports": [],
|
|
864
|
+
"inputs": {},
|
|
865
|
+
"bytes": 93
|
|
866
|
+
},
|
|
867
|
+
"packages/overlay/dist/browser-esm/lib/constants.js": {
|
|
868
|
+
"imports": [
|
|
869
|
+
{
|
|
870
|
+
"path": "packages/overlay/dist/browser-esm/chunks/js/chunk-PDWQRLCD.js",
|
|
871
|
+
"kind": "import-statement"
|
|
872
|
+
}
|
|
873
|
+
],
|
|
874
|
+
"exports": [
|
|
875
|
+
"cookieNames",
|
|
876
|
+
"elementIds"
|
|
877
|
+
],
|
|
878
|
+
"entryPoint": "packages/overlay/src/constants.ts",
|
|
879
|
+
"inputs": {},
|
|
880
|
+
"bytes": 156
|
|
895
881
|
},
|
|
896
882
|
"packages/overlay/dist/browser-esm/chunks/js/chunk-PDWQRLCD.js.map": {
|
|
897
883
|
"imports": [],
|
|
@@ -4,8 +4,17 @@
|
|
|
4
4
|
"./lib/index": "./src/index.tsx",
|
|
5
5
|
"./lib/constants": "./src/constants.ts"
|
|
6
6
|
},
|
|
7
|
-
"hash": "v5-
|
|
7
|
+
"hash": "v5-bad62a8d6a7574259c976340618deaf079c0a5bc",
|
|
8
8
|
"outputFiles": [
|
|
9
|
+
{
|
|
10
|
+
"outputPath": "./lib/index.js.map",
|
|
11
|
+
"exports": []
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"outputPath": "./lib/index.js",
|
|
15
|
+
"entryPoint": "./src/index.tsx",
|
|
16
|
+
"exports": []
|
|
17
|
+
},
|
|
9
18
|
{
|
|
10
19
|
"outputPath": "./lib/constants.js.map",
|
|
11
20
|
"exports": []
|
|
@@ -18,15 +27,6 @@
|
|
|
18
27
|
"elementIds"
|
|
19
28
|
]
|
|
20
29
|
},
|
|
21
|
-
{
|
|
22
|
-
"outputPath": "./lib/index.js.map",
|
|
23
|
-
"exports": []
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"outputPath": "./lib/index.js",
|
|
27
|
-
"entryPoint": "./src/index.tsx",
|
|
28
|
-
"exports": []
|
|
29
|
-
},
|
|
30
30
|
{
|
|
31
31
|
"outputPath": "./chunks/js/chunk-PDWQRLCD.js.map",
|
|
32
32
|
"exports": []
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type CloudpackClient } from '
|
|
2
|
+
import { type CloudpackClient } from '@ms-cloudpack/api-server/browser';
|
|
3
3
|
export declare const CloudpackContext: React.Context<CloudpackClient>;
|
|
4
|
-
export declare function CloudpackProvider({ children }: {
|
|
4
|
+
export declare function CloudpackProvider({ client, children }: {
|
|
5
|
+
client: CloudpackClient;
|
|
5
6
|
children: React.ReactNode;
|
|
6
7
|
}): React.JSX.Element;
|
|
7
8
|
export declare const useCloudpack: () => CloudpackClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudpackProvider.d.ts","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/CloudpackProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CloudpackProvider.d.ts","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/CloudpackProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,eAAO,MAAM,gBAAgB,gCAAqE,CAAC;AAEnG,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAE7G;AAED,eAAO,MAAM,YAAY,uBAAqC,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import React, { createContext,
|
|
2
|
-
import { createCloudpackClient } from './createCloudpackClient.js';
|
|
1
|
+
import React, { createContext, useContext } from 'react';
|
|
3
2
|
export const CloudpackContext = createContext(null);
|
|
4
|
-
export function CloudpackProvider({ children }) {
|
|
5
|
-
const [client] = useState(createCloudpackClient);
|
|
3
|
+
export function CloudpackProvider({ client, children }) {
|
|
6
4
|
return React.createElement(CloudpackContext.Provider, { value: client }, children);
|
|
7
5
|
}
|
|
8
6
|
export const useCloudpack = () => useContext(CloudpackContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudpackProvider.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/CloudpackProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"CloudpackProvider.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/CloudpackProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAkB,IAAkC,CAAC,CAAC;AAEnG,MAAM,UAAU,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAA0D;IAC5G,OAAO,oBAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,IAAG,QAAQ,CAA6B,CAAC;AAC1F,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import React, { createContext, useContext } from 'react';\nimport { type CloudpackClient } from '@ms-cloudpack/api-server/browser';\n\nexport const CloudpackContext = createContext<CloudpackClient>(null as unknown as CloudpackClient);\n\nexport function CloudpackProvider({ client, children }: { client: CloudpackClient; children: React.ReactNode }) {\n return <CloudpackContext.Provider value={client}>{children}</CloudpackContext.Provider>;\n}\n\nexport const useCloudpack = () => useContext(CloudpackContext);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatus.d.ts","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatus.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;AAUxC,eAAO,MAAM,SAAS;;;;;;
|
|
1
|
+
{"version":3,"file":"useStatus.d.ts","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatus.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;AAUxC,eAAO,MAAM,SAAS;;;;;;CAiBrB,CAAC"}
|
|
@@ -9,9 +9,18 @@ const defaultStatus = {
|
|
|
9
9
|
totalWarnings: 0,
|
|
10
10
|
};
|
|
11
11
|
export const useStatus = () => {
|
|
12
|
-
const
|
|
13
|
-
const [status, setStatus] = useState(
|
|
14
|
-
useEffect(() =>
|
|
12
|
+
const cloudpack = useCloudpack();
|
|
13
|
+
const [status, setStatus] = useState(defaultStatus);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
const subscription = cloudpack?.onDataChanged.subscribe(taskStatsSource, {
|
|
16
|
+
onData: (data) => {
|
|
17
|
+
setStatus(data);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
return () => {
|
|
21
|
+
subscription.unsubscribe();
|
|
22
|
+
};
|
|
23
|
+
}, [cloudpack]);
|
|
15
24
|
return status;
|
|
16
25
|
};
|
|
17
26
|
//# sourceMappingURL=useStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatus.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAkB,MAAM,kCAAkC,CAAC;AAInF,MAAM,aAAa,GAAoB;IACrC,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,CAAC;IACjB,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,MAAM,
|
|
1
|
+
{"version":3,"file":"useStatus.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAkB,MAAM,kCAAkC,CAAC;AAInF,MAAM,aAAa,GAAoB;IACrC,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,CAAC;IACjB,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAkB,aAAa,CAAC,CAAC;IAErE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,YAAY,GAAG,SAAS,EAAE,aAAa,CAAC,SAAS,CAAC,eAAe,EAAE;YACvE,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;gBACf,SAAS,CAAC,IAAuB,CAAC,CAAC;YACrC,CAAC;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,WAAW,EAAE,CAAC;QAC7B,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC","sourcesContent":["import { useEffect, useState } from 'react';\nimport { useCloudpack } from './CloudpackProvider.js';\nimport { taskStatsSource, type TaskStats } from '@ms-cloudpack/api-server/browser';\n\nexport type CloudpackStatus = TaskStats;\n\nconst defaultStatus: CloudpackStatus = {\n status: 'unknown',\n remainingTasks: 0,\n totalTasks: 0,\n totalErrors: 0,\n totalWarnings: 0,\n};\n\nexport const useStatus = () => {\n const cloudpack = useCloudpack();\n const [status, setStatus] = useState<CloudpackStatus>(defaultStatus);\n\n useEffect(() => {\n const subscription = cloudpack?.onDataChanged.subscribe(taskStatsSource, {\n onData: (data) => {\n setStatus(data as CloudpackStatus);\n },\n });\n\n return () => {\n subscription.unsubscribe();\n };\n }, [cloudpack]);\n\n return status;\n};\n"]}
|
|
@@ -1,17 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
export declare const useStatusDetails: () => {
|
|
2
|
+
tasks: {
|
|
3
|
+
id: string;
|
|
4
|
+
startTime: number;
|
|
5
|
+
status?: "pending" | "complete" | undefined;
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
inputPath?: string | undefined;
|
|
8
|
+
outputPath?: string | undefined;
|
|
9
|
+
errors?: {
|
|
10
|
+
text: string;
|
|
11
|
+
source: string;
|
|
12
|
+
location?: {
|
|
13
|
+
file: string;
|
|
14
|
+
line?: number | undefined;
|
|
15
|
+
column?: number | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
notes?: {
|
|
18
|
+
text: string;
|
|
19
|
+
location?: {
|
|
20
|
+
file: string;
|
|
21
|
+
line?: number | undefined;
|
|
22
|
+
column?: number | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
}[] | undefined;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
warnings?: {
|
|
27
|
+
text: string;
|
|
28
|
+
source: string;
|
|
29
|
+
location?: {
|
|
30
|
+
file: string;
|
|
31
|
+
line?: number | undefined;
|
|
32
|
+
column?: number | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
notes?: {
|
|
35
|
+
text: string;
|
|
36
|
+
location?: {
|
|
37
|
+
file: string;
|
|
38
|
+
line?: number | undefined;
|
|
39
|
+
column?: number | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
}[] | undefined;
|
|
43
|
+
timings?: {
|
|
44
|
+
name: string;
|
|
45
|
+
start: number;
|
|
46
|
+
end?: number | undefined;
|
|
47
|
+
threwException?: boolean | undefined;
|
|
48
|
+
}[] | undefined;
|
|
49
|
+
durationMilliseconds?: number | undefined;
|
|
50
|
+
lastUpdated?: number | undefined;
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
17
53
|
//# sourceMappingURL=useStatusDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatusDetails.d.ts","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatusDetails.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useStatusDetails.d.ts","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatusDetails.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB5B,CAAC"}
|
|
@@ -2,9 +2,18 @@ import { useEffect, useState } from 'react';
|
|
|
2
2
|
import { useCloudpack } from './CloudpackProvider.js';
|
|
3
3
|
import { taskListSource } from '@ms-cloudpack/api-server/browser';
|
|
4
4
|
export const useStatusDetails = () => {
|
|
5
|
-
const
|
|
5
|
+
const cloudpack = useCloudpack();
|
|
6
6
|
const [details, setDetails] = useState({ tasks: [] });
|
|
7
|
-
useEffect(() =>
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
const subscription = cloudpack?.onDataChanged.subscribe(taskListSource, {
|
|
9
|
+
onData: (data) => {
|
|
10
|
+
setDetails(data);
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
return () => {
|
|
14
|
+
subscription.unsubscribe();
|
|
15
|
+
};
|
|
16
|
+
}, [cloudpack]);
|
|
8
17
|
return details;
|
|
9
18
|
};
|
|
10
19
|
//# sourceMappingURL=useStatusDetails.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatusDetails.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatusDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"useStatusDetails.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatusDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAiB,MAAM,kCAAkC,CAAC;AAEjF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAW,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAEhE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,YAAY,GAAG,SAAS,EAAE,aAAa,CAAC,SAAS,CAAC,cAAc,EAAE;YACtE,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;gBACf,UAAU,CAAC,IAAgB,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,WAAW,EAAE,CAAC;QAC7B,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import { useEffect, useState } from 'react';\nimport { useCloudpack } from './CloudpackProvider.js';\nimport { taskListSource, type TaskList } from '@ms-cloudpack/api-server/browser';\n\nexport const useStatusDetails = () => {\n const cloudpack = useCloudpack();\n const [details, setDetails] = useState<TaskList>({ tasks: [] });\n\n useEffect(() => {\n const subscription = cloudpack?.onDataChanged.subscribe(taskListSource, {\n onData: (data) => {\n setDetails(data as TaskList);\n },\n });\n\n return () => {\n subscription.unsubscribe();\n };\n }, [cloudpack]);\n\n return details;\n};\n"]}
|
|
@@ -8,7 +8,7 @@ import { elementIds } from '../../constants.js';
|
|
|
8
8
|
export function ErrorDialog({ unsupported }) {
|
|
9
9
|
const cloudpack = useCloudpack();
|
|
10
10
|
const reload = () => {
|
|
11
|
-
cloudpack.restartAllTasks();
|
|
11
|
+
void cloudpack.restartAllTasks.mutate();
|
|
12
12
|
};
|
|
13
13
|
return (React.createElement(Dialog, { title: "Found unsupported paths in your project", id: elementIds.errorDialogRoot, style: "error", commands: [
|
|
14
14
|
React.createElement(Button, { primary: true, onClick: reload, key: "1" }, "Restart all tasks"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorDialog.js","sourceRoot":"","sources":["../../../src/components/ErrorDialog/ErrorDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,MAAM,MAAM,qCAAqC,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMhD,MAAM,UAAU,WAAW,CAAC,EAAE,WAAW,EAAoB;IAC3D,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,GAAG,EAAE;QAClB,SAAS,CAAC,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorDialog.js","sourceRoot":"","sources":["../../../src/components/ErrorDialog/ErrorDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,MAAM,MAAM,qCAAqC,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMhD,MAAM,UAAU,WAAW,CAAC,EAAE,WAAW,EAAoB;IAC3D,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,GAAG,EAAE;QAClB,KAAK,SAAS,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;IAC1C,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,KAAK,EAAC,yCAAyC,EAC/C,EAAE,EAAE,UAAU,CAAC,eAAe,EAC9B,KAAK,EAAC,OAAO,EACb,QAAQ,EAAE;YACR,oBAAC,MAAM,IAAC,OAAO,QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAC,GAAG,wBAE/B;SACV;QAED,6BAAK,SAAS,EAAE,MAAM,CAAC,IAAI,IACxB,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAChC,oBAAC,SAAS,OAAK,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,CACpC,CAAC,CACE,CACC,CACV,CAAC;AACJ,CAAC","sourcesContent":["import { default as React } from 'react';\nimport { Button } from '../Button/Button.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport { PathError } from './PathError.js';\nimport styles from '../StatusDialog/TaskList.module.css';\nimport type { UnsupportedErrorEvent } from './useErrorEvents.js';\nimport { Dialog } from '../Dialog/Dialog.js';\nimport { elementIds } from '../../constants.js';\n\nexport interface ErrorDialogProps {\n unsupported: UnsupportedErrorEvent[];\n}\n\nexport function ErrorDialog({ unsupported }: ErrorDialogProps) {\n const cloudpack = useCloudpack();\n\n const reload = () => {\n void cloudpack.restartAllTasks.mutate();\n };\n\n return (\n <Dialog\n title=\"Found unsupported paths in your project\"\n id={elementIds.errorDialogRoot}\n style=\"error\"\n commands={[\n <Button primary onClick={reload} key=\"1\">\n Restart all tasks\n </Button>,\n ]}\n >\n <div className={styles.root}>\n {unsupported.map((data, index) => (\n <PathError {...data} key={index} />\n ))}\n </div>\n </Dialog>\n );\n}\n"]}
|
|
@@ -10,10 +10,10 @@ export function PathError(props) {
|
|
|
10
10
|
const { packageName, importPath, issuerUrl, fixable } = props;
|
|
11
11
|
const cloudpack = useCloudpack();
|
|
12
12
|
const editConfig = () => {
|
|
13
|
-
cloudpack.
|
|
13
|
+
void cloudpack.openConfigEditor.mutate();
|
|
14
14
|
};
|
|
15
15
|
const addOverride = () => {
|
|
16
|
-
cloudpack.
|
|
16
|
+
void cloudpack.addPackageOverride.mutate({ packageName, importPath, issuerUrl });
|
|
17
17
|
};
|
|
18
18
|
return (React.createElement("div", { className: styles.root },
|
|
19
19
|
React.createElement("div", { className: cx(styles.header, styles.error) },
|