@ms-cloudpack/overlay 0.6.0 → 0.8.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/CHANGELOG.json CHANGED
@@ -2,7 +2,45 @@
2
2
  "name": "@ms-cloudpack/overlay",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 15 Oct 2022 08:11:07 GMT",
5
+ "date": "Wed, 02 Nov 2022 08:10:59 GMT",
6
+ "tag": "@ms-cloudpack/overlay_v0.8.0",
7
+ "version": "0.8.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "dake.3601@gmail.com",
12
+ "package": "@ms-cloudpack/overlay",
13
+ "commit": "8b827ce121b41d9f5ead1e290ae524ddd9e315a3",
14
+ "comment": "Restart task button"
15
+ }
16
+ ],
17
+ "none": [
18
+ {
19
+ "author": "email not defined",
20
+ "package": "@ms-cloudpack/overlay",
21
+ "commit": "7643041fec2e5b6b30d1f8a4f22f6caa9d4abc58",
22
+ "comment": "Update react monorepo"
23
+ }
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "date": "Wed, 19 Oct 2022 08:16:31 GMT",
29
+ "tag": "@ms-cloudpack/overlay_v0.7.0",
30
+ "version": "0.7.0",
31
+ "comments": {
32
+ "minor": [
33
+ {
34
+ "author": "dake.3601@gmail.com",
35
+ "package": "@ms-cloudpack/overlay",
36
+ "commit": "2824621f7a1a5712c0f516bdaedbee0992df0eb9",
37
+ "comment": "If sequence cookie is outdated, reload."
38
+ }
39
+ ]
40
+ }
41
+ },
42
+ {
43
+ "date": "Sat, 15 Oct 2022 08:11:31 GMT",
6
44
  "tag": "@ms-cloudpack/overlay_v0.6.0",
7
45
  "version": "0.6.0",
8
46
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @ms-cloudpack/overlay
2
2
 
3
- This log was last generated on Sat, 15 Oct 2022 08:11:07 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 02 Nov 2022 08:10:59 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.8.0
8
+
9
+ Wed, 02 Nov 2022 08:10:59 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Restart task button (dake.3601@gmail.com)
14
+
15
+ ## 0.7.0
16
+
17
+ Wed, 19 Oct 2022 08:16:31 GMT
18
+
19
+ ### Minor changes
20
+
21
+ - If sequence cookie is outdated, reload. (dake.3601@gmail.com)
22
+
7
23
  ## 0.6.0
8
24
 
9
- Sat, 15 Oct 2022 08:11:07 GMT
25
+ Sat, 15 Oct 2022 08:11:31 GMT
10
26
 
11
27
  ### Minor changes
12
28
 
package/dist/lib/index.js CHANGED
@@ -41,6 +41,7 @@ function createCloudpackClient() {
41
41
  const enqueuedMessages = [];
42
42
  const sessionId = cookies["cloudpack-session-id"];
43
43
  const apiUrl = cookies["cloudpack-api-url"];
44
+ const currentSequence = cookies["cloudpack-session-sequence"];
44
45
  let socket;
45
46
  function openConnection() {
46
47
  if (apiUrl && sessionId) {
@@ -87,6 +88,13 @@ function createCloudpackClient() {
87
88
  window.location.reload();
88
89
  break;
89
90
  }
91
+ case "sequence": {
92
+ const { sequence } = response;
93
+ if (Number(sequence) > Number(currentSequence)) {
94
+ window.location.reload();
95
+ }
96
+ break;
97
+ }
90
98
  }
91
99
  }
92
100
  function subscribe(path, callback) {
@@ -103,8 +111,11 @@ function createCloudpackClient() {
103
111
  function open(options) {
104
112
  sendMessage("open", options);
105
113
  }
106
- function restartTasks() {
107
- sendMessage("restartTasks", {});
114
+ function restartAllTasks() {
115
+ sendMessage("restartAllTasks", {});
116
+ }
117
+ function restartTask(id) {
118
+ sendMessage("restartTask", { id });
108
119
  }
109
120
  openConnection();
110
121
  return {
@@ -113,7 +124,8 @@ function createCloudpackClient() {
113
124
  open,
114
125
  openSource,
115
126
  subscribe,
116
- restartTasks
127
+ restartTask,
128
+ restartAllTasks
117
129
  };
118
130
  }
119
131
 
@@ -409,10 +421,10 @@ function getStatsString(status) {
409
421
  import React8 from "react";
410
422
 
411
423
  // src/components/StatusDialog/TaskList.tsx
412
- import React5 from "react";
424
+ import React6 from "react";
413
425
 
414
426
  // src/components/StatusDialog/TaskStatus.tsx
415
- import React4 from "react";
427
+ import React5 from "react";
416
428
 
417
429
  // src/components/StatusDialog/TaskResultItem.tsx
418
430
  import React3 from "react";
@@ -542,6 +554,16 @@ var compiledModule3 = `.vweafQQjU-TaskStatusmodulecssroot {
542
554
  line-height: 1;
543
555
  }
544
556
 
557
+ .vweafQQjU-TaskStatusmodulecsscommands {
558
+ display: flex;
559
+ flex-direction: row;
560
+ gap: 8px;
561
+ align-items: center;
562
+ flex-shrink: 0;
563
+ height: 40px;
564
+ padding: 0 16px;
565
+ }
566
+
545
567
  .vweafQQjU-TaskStatusmodulecssexpandButton {
546
568
  background: transparent;
547
569
  border: none;
@@ -656,6 +678,7 @@ s3.setAttribute("data-sourceFile", "src/components/StatusDialog/TaskStatus.modul
656
678
  s3.appendChild(document.createTextNode(compiledModule3));
657
679
  document.head.appendChild(s3);
658
680
  var collapsed = "vweafQQjU-TaskStatusmodulecsscollapsed";
681
+ var commands = "vweafQQjU-TaskStatusmodulecsscommands";
659
682
  var content2 = "vweafQQjU-TaskStatusmodulecsscontent";
660
683
  var error2 = "vweafQQjU-TaskStatusmodulecsserror";
661
684
  var expandButton = "vweafQQjU-TaskStatusmodulecssexpandButton";
@@ -671,7 +694,7 @@ var success2 = "vweafQQjU-TaskStatusmodulecsssuccess";
671
694
  var title = "vweafQQjU-TaskStatusmodulecsstitle";
672
695
  var value2 = "vweafQQjU-TaskStatusmodulecssvalue";
673
696
  var warning2 = "vweafQQjU-TaskStatusmodulecsswarning";
674
- var TaskStatus_module_default = { collapsed, content: content2, error: error2, expandButton, expandIcon, farArea, header, linkButton, name, resultItems, root: root2, subTitle, success: success2, title, value: value2, warning: warning2 };
697
+ var TaskStatus_module_default = { collapsed, commands, content: content2, error: error2, expandButton, expandIcon, farArea, header, linkButton, name, resultItems, root: root2, subTitle, success: success2, title, value: value2, warning: warning2 };
675
698
 
676
699
  // src/components/StatusDialog/TaskStatus.tsx
677
700
  import { default as cx2 } from "classnames";
@@ -685,6 +708,93 @@ var success_24_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiI
685
708
  // src/images/chevrondown-20.inline.svg
686
709
  var chevrondown_20_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1Ljc5NCA3LjczMjcxQzE2LjA3OTcgOC4wMzI2MyAxNi4wNjgxIDguNTA3MzcgMTUuNzY4MiA4Ljc5MzA2TDEwLjUxNzggMTMuNzk0NEMxMC4yMjgxIDE0LjA3MDMgOS43NzI4NSAxNC4wNzAzIDkuNDgzMTggMTMuNzk0NEw0LjIzMjcxIDguNzkzMDZDMy45MzI3OSA4LjUwNzM3IDMuOTIxMjUgOC4wMzI2MyA0LjIwNjk0IDcuNzMyNzFDNC40OTI2NCA3LjQzMjc5IDQuOTY3MzcgNy40MjEyNSA1LjI2NzI5IDcuNzA2OTRMMTAuMDAwNSAxMi4yMTU1TDE0LjczMzYgNy43MDY5NEMxNS4wMzM2IDcuNDIxMjUgMTUuNTA4MyA3LjQzMjc5IDE1Ljc5NCA3LjczMjcxWiIgZmlsbD0iIzIxMjEyMSIvPgo8L3N2Zz4K";
687
710
 
711
+ // src/components/Button/Button.tsx
712
+ import React4 from "react";
713
+
714
+ // src/components/Button/Button.module.css
715
+ var compiledModule4 = `.CCnBgacfaMc-ButtonmodulecssstandardButton {
716
+ outline: transparent;
717
+ position: relative;
718
+ font-family: inherit;
719
+ font-size: 14px;
720
+ font-weight: 600;
721
+ box-sizing: border-box;
722
+ border: 1px solid rgb(138, 136, 134);
723
+ display: inline-block;
724
+ text-decoration: none;
725
+ text-align: center;
726
+ cursor: pointer;
727
+ padding: 0px 16px;
728
+ border-radius: 2px;
729
+ min-width: 80px;
730
+ height: 32px;
731
+ background-color: rgb(255, 255, 255);
732
+ color: rgb(50, 49, 48);
733
+ user-select: none;
734
+ }
735
+
736
+ .CCnBgacfaMc-ButtonmodulecssstandardButton:active {
737
+ background-color: rgb(237, 235, 233);
738
+ color: rgb(32, 31, 30);
739
+ }
740
+
741
+ .CCnBgacfaMc-ButtonmodulecssstandardButton:hover {
742
+ background-color: rgb(243, 242, 241);
743
+ color: rgb(32, 31, 30);
744
+ }
745
+
746
+ .CCnBgacfaMc-ButtonmodulecssprimaryButton {
747
+ outline: transparent;
748
+ position: relative;
749
+ font-family: inherit;
750
+ font-size: 14px;
751
+ font-weight: 600;
752
+ box-sizing: border-box;
753
+ border: 1px solid rgb(0, 120, 212);
754
+ display: inline-block;
755
+ text-decoration: none;
756
+ text-align: center;
757
+ cursor: pointer;
758
+ padding: 0px 16px;
759
+ border-radius: 2px;
760
+ min-width: 80px;
761
+ height: 32px;
762
+ background-color: rgb(0, 120, 212);
763
+ color: rgb(255, 255, 255);
764
+ user-select: none;
765
+ }
766
+
767
+ .CCnBgacfaMc-ButtonmodulecssprimaryButton:active {
768
+ background-color: rgb(0, 90, 158);
769
+ border: 1px solid rgb(0, 90, 158);
770
+ color: rgb(255, 255, 255);
771
+ }
772
+
773
+ .CCnBgacfaMc-ButtonmodulecssprimaryButton:hover {
774
+ background-color: rgb(16, 110, 190);
775
+ border: 1px solid rgb(16, 110, 190);
776
+ color: rgb(255, 255, 255);
777
+ }
778
+ `;
779
+ var s4 = document.createElement("style");
780
+ s4.setAttribute("data-sourceFile", "src/components/Button/Button.module.css");
781
+ s4.appendChild(document.createTextNode(compiledModule4));
782
+ document.head.appendChild(s4);
783
+ var primaryButton = "CCnBgacfaMc-ButtonmodulecssprimaryButton";
784
+ var standardButton = "CCnBgacfaMc-ButtonmodulecssstandardButton";
785
+ var Button_module_default = { primaryButton, standardButton };
786
+
787
+ // src/components/Button/Button.tsx
788
+ function Button(props) {
789
+ const { primary, ...other } = props;
790
+ const className = primary ? Button_module_default.primaryButton : Button_module_default.standardButton;
791
+ return /* @__PURE__ */ React4.createElement("button", {
792
+ ...other,
793
+ className,
794
+ type: "button"
795
+ });
796
+ }
797
+
688
798
  // src/components/StatusDialog/TaskStatus.tsx
689
799
  function getCompletion(task) {
690
800
  if (task.status === "pending") {
@@ -697,7 +807,7 @@ function getCompletion(task) {
697
807
  ].filter(Boolean).join(", ");
698
808
  }
699
809
  function TaskStatus({ task }) {
700
- const [isOpen, setIsOpen] = React4.useState(void 0);
810
+ const [isOpen, setIsOpen] = React5.useState(void 0);
701
811
  const { name: name2, warnings, errors } = task;
702
812
  const cloudpack = useCloudpack();
703
813
  const showContent = isOpen === true || isOpen === void 0 && task.errors?.length > 0;
@@ -714,71 +824,78 @@ function TaskStatus({ task }) {
714
824
  column: 0
715
825
  });
716
826
  };
717
- return /* @__PURE__ */ React4.createElement("div", {
827
+ const restartTask = (id) => {
828
+ cloudpack.restartTask(id);
829
+ };
830
+ return /* @__PURE__ */ React5.createElement("div", {
718
831
  className: TaskStatus_module_default.root
719
- }, /* @__PURE__ */ React4.createElement("div", {
832
+ }, /* @__PURE__ */ React5.createElement("div", {
720
833
  className: getHeaderClassName(task)
721
- }, /* @__PURE__ */ React4.createElement("button", {
834
+ }, /* @__PURE__ */ React5.createElement("button", {
722
835
  className: TaskStatus_module_default.expandButton,
723
836
  onClick: () => setIsOpen(!showContent)
724
- }, /* @__PURE__ */ React4.createElement("img", {
837
+ }, /* @__PURE__ */ React5.createElement("img", {
725
838
  className: cx2(TaskStatus_module_default.expandIcon, !showContent && TaskStatus_module_default.collapsed),
726
839
  src: chevrondown_20_inline_default,
727
840
  alt: ""
728
- })), errors?.length === 0 && warnings?.length === 0 && /* @__PURE__ */ React4.createElement("img", {
841
+ })), errors?.length === 0 && warnings?.length === 0 && /* @__PURE__ */ React5.createElement("img", {
729
842
  className: TaskStatus_module_default.errorIcon,
730
843
  src: success_24_inline_default,
731
844
  alt: ""
732
- }), errors?.length > 0 && /* @__PURE__ */ React4.createElement("img", {
845
+ }), errors?.length > 0 && /* @__PURE__ */ React5.createElement("img", {
733
846
  className: TaskStatus_module_default.errorIcon,
734
847
  src: error_24_inline_default,
735
848
  alt: ""
736
- }), /* @__PURE__ */ React4.createElement("div", {
849
+ }), /* @__PURE__ */ React5.createElement("div", {
737
850
  className: TaskStatus_module_default.title
738
- }, name2), /* @__PURE__ */ React4.createElement("div", {
851
+ }, name2), /* @__PURE__ */ React5.createElement("div", {
739
852
  className: TaskStatus_module_default.farArea
740
- }, getCompletion(task))), showContent && /* @__PURE__ */ React4.createElement("div", {
853
+ }, getCompletion(task))), showContent && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
854
+ className: TaskStatus_module_default.commands
855
+ }, /* @__PURE__ */ React5.createElement(Button, {
856
+ onClick: () => restartTask(task.id)
857
+ }, "Restart task")), /* @__PURE__ */ React5.createElement("div", {
741
858
  className: TaskStatus_module_default.content
742
- }, /* @__PURE__ */ React4.createElement("div", {
859
+ }, /* @__PURE__ */ React5.createElement("div", {
743
860
  className: TaskStatus_module_default.title
744
- }, "Details"), /* @__PURE__ */ React4.createElement("div", {
861
+ }, "Details"), /* @__PURE__ */ React5.createElement("div", {
745
862
  className: TaskStatus_module_default.nameValueArea
746
- }, /* @__PURE__ */ React4.createElement("div", {
863
+ }, /* @__PURE__ */ React5.createElement("div", {
747
864
  className: TaskStatus_module_default.name
748
- }, "Input path"), /* @__PURE__ */ React4.createElement("div", {
865
+ }, "Input path"), /* @__PURE__ */ React5.createElement("div", {
749
866
  className: TaskStatus_module_default.value
750
- }, /* @__PURE__ */ React4.createElement("button", {
867
+ }, /* @__PURE__ */ React5.createElement("button", {
751
868
  className: TaskStatus_module_default.linkButton,
752
869
  onClick: () => open(task.inputPath)
753
- }, task.inputPath), /* @__PURE__ */ React4.createElement("button", {
870
+ }, task.inputPath), /* @__PURE__ */ React5.createElement("button", {
754
871
  className: TaskStatus_module_default.linkButton,
755
872
  onClick: openPackage
756
- }, "(Package.json)"))), /* @__PURE__ */ React4.createElement("div", {
873
+ }, "(Package.json)"))), /* @__PURE__ */ React5.createElement("div", {
757
874
  className: TaskStatus_module_default.nameValueArea
758
- }, /* @__PURE__ */ React4.createElement("div", {
875
+ }, /* @__PURE__ */ React5.createElement("div", {
759
876
  className: TaskStatus_module_default.name
760
- }, "Output path"), /* @__PURE__ */ React4.createElement("button", {
877
+ }, "Output path"), /* @__PURE__ */ React5.createElement("button", {
761
878
  className: TaskStatus_module_default.linkButton,
762
879
  onClick: () => open(task.outputPath)
763
- }, task.outputPath)), errors?.length > 0 && /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement("div", {
880
+ }, task.outputPath)), errors?.length > 0 && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
764
881
  className: TaskStatus_module_default.title
765
- }, "Errors"), /* @__PURE__ */ React4.createElement("div", {
882
+ }, "Errors"), /* @__PURE__ */ React5.createElement("div", {
766
883
  className: TaskStatus_module_default.resultItems
767
- }, errors.map((error3, index) => /* @__PURE__ */ React4.createElement(TaskResultItem, {
884
+ }, errors.map((error3, index) => /* @__PURE__ */ React5.createElement(TaskResultItem, {
768
885
  key: index,
769
886
  item: error3,
770
887
  projectPath: task.inputPath,
771
888
  index: index + 1
772
- })))), warnings?.length > 0 && /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement("div", {
889
+ })))), warnings?.length > 0 && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
773
890
  className: TaskStatus_module_default.title
774
- }, "Warnings"), /* @__PURE__ */ React4.createElement("div", {
891
+ }, "Warnings"), /* @__PURE__ */ React5.createElement("div", {
775
892
  className: TaskStatus_module_default.resultItems
776
- }, warnings.map((warning3, index) => /* @__PURE__ */ React4.createElement(TaskResultItem, {
893
+ }, warnings.map((warning3, index) => /* @__PURE__ */ React5.createElement(TaskResultItem, {
777
894
  key: index,
778
895
  item: warning3,
779
896
  projectPath: task.inputPath,
780
897
  index: index + 1
781
- }))))));
898
+ })))))));
782
899
  }
783
900
  function getHeaderClassName(task) {
784
901
  return cx2(TaskStatus_module_default.header, {
@@ -798,7 +915,7 @@ var useStatusDetails = () => {
798
915
  };
799
916
 
800
917
  // src/components/StatusDialog/TaskList.module.css
801
- var compiledModule4 = `.lTlVbGXBQHs-TaskListmodulecssroot {
918
+ var compiledModule5 = `.lTlVbGXBQHs-TaskListmodulecssroot {
802
919
  flex-grow: 1;
803
920
  overflow: auto;
804
921
  border-top: 1px solid #ccc;
@@ -809,10 +926,10 @@ var compiledModule4 = `.lTlVbGXBQHs-TaskListmodulecssroot {
809
926
  gap: 8px;
810
927
  }
811
928
  `;
812
- var s4 = document.createElement("style");
813
- s4.setAttribute("data-sourceFile", "src/components/StatusDialog/TaskList.module.css");
814
- s4.appendChild(document.createTextNode(compiledModule4));
815
- document.head.appendChild(s4);
929
+ var s5 = document.createElement("style");
930
+ s5.setAttribute("data-sourceFile", "src/components/StatusDialog/TaskList.module.css");
931
+ s5.appendChild(document.createTextNode(compiledModule5));
932
+ document.head.appendChild(s5);
816
933
  var root3 = "lTlVbGXBQHs-TaskListmodulecssroot";
817
934
  var TaskList_module_default = { root: root3 };
818
935
 
@@ -820,9 +937,9 @@ var TaskList_module_default = { root: root3 };
820
937
  function TaskList() {
821
938
  const details = useStatusDetails();
822
939
  const tasks = (details.tasks || []).sort(sortTasks);
823
- return /* @__PURE__ */ React5.createElement("div", {
940
+ return /* @__PURE__ */ React6.createElement("div", {
824
941
  className: TaskList_module_default.root
825
- }, tasks.map((task, index) => /* @__PURE__ */ React5.createElement(TaskStatus, {
942
+ }, tasks.map((task, index) => /* @__PURE__ */ React6.createElement(TaskStatus, {
826
943
  key: index,
827
944
  task
828
945
  })));
@@ -841,93 +958,6 @@ function sortTasks(a, b) {
841
958
  return a.name < b.name ? -1 : 1;
842
959
  }
843
960
 
844
- // src/components/Button/Button.tsx
845
- import React6 from "react";
846
-
847
- // src/components/Button/Button.module.css
848
- var compiledModule5 = `.CCnBgacfaMc-ButtonmodulecssstandardButton {
849
- outline: transparent;
850
- position: relative;
851
- font-family: inherit;
852
- font-size: 14px;
853
- font-weight: 600;
854
- box-sizing: border-box;
855
- border: 1px solid rgb(138, 136, 134);
856
- display: inline-block;
857
- text-decoration: none;
858
- text-align: center;
859
- cursor: pointer;
860
- padding: 0px 16px;
861
- border-radius: 2px;
862
- min-width: 80px;
863
- height: 32px;
864
- background-color: rgb(255, 255, 255);
865
- color: rgb(50, 49, 48);
866
- user-select: none;
867
- }
868
-
869
- .CCnBgacfaMc-ButtonmodulecssstandardButton:active {
870
- background-color: rgb(237, 235, 233);
871
- color: rgb(32, 31, 30);
872
- }
873
-
874
- .CCnBgacfaMc-ButtonmodulecssstandardButton:hover {
875
- background-color: rgb(243, 242, 241);
876
- color: rgb(32, 31, 30);
877
- }
878
-
879
- .CCnBgacfaMc-ButtonmodulecssprimaryButton {
880
- outline: transparent;
881
- position: relative;
882
- font-family: inherit;
883
- font-size: 14px;
884
- font-weight: 600;
885
- box-sizing: border-box;
886
- border: 1px solid rgb(0, 120, 212);
887
- display: inline-block;
888
- text-decoration: none;
889
- text-align: center;
890
- cursor: pointer;
891
- padding: 0px 16px;
892
- border-radius: 2px;
893
- min-width: 80px;
894
- height: 32px;
895
- background-color: rgb(0, 120, 212);
896
- color: rgb(255, 255, 255);
897
- user-select: none;
898
- }
899
-
900
- .CCnBgacfaMc-ButtonmodulecssprimaryButton:active {
901
- background-color: rgb(0, 90, 158);
902
- border: 1px solid rgb(0, 90, 158);
903
- color: rgb(255, 255, 255);
904
- }
905
-
906
- .CCnBgacfaMc-ButtonmodulecssprimaryButton:hover {
907
- background-color: rgb(16, 110, 190);
908
- border: 1px solid rgb(16, 110, 190);
909
- color: rgb(255, 255, 255);
910
- }
911
- `;
912
- var s5 = document.createElement("style");
913
- s5.setAttribute("data-sourceFile", "src/components/Button/Button.module.css");
914
- s5.appendChild(document.createTextNode(compiledModule5));
915
- document.head.appendChild(s5);
916
- var primaryButton = "CCnBgacfaMc-ButtonmodulecssprimaryButton";
917
- var standardButton = "CCnBgacfaMc-ButtonmodulecssstandardButton";
918
- var Button_module_default = { primaryButton, standardButton };
919
-
920
- // src/components/Button/Button.tsx
921
- function Button(props) {
922
- const { primary, ...other } = props;
923
- const className = primary ? Button_module_default.primaryButton : Button_module_default.standardButton;
924
- return /* @__PURE__ */ React6.createElement("button", {
925
- ...other,
926
- className,
927
- type: "button"
928
- });
929
- }
930
-
931
961
  // src/components/Dialog/Dialog.tsx
932
962
  import { default as React7, useRef as useRef2 } from "react";
933
963
 
@@ -1023,18 +1053,18 @@ s6.setAttribute("data-sourceFile", "src/components/Dialog/Dialog.module.css");
1023
1053
  s6.appendChild(document.createTextNode(compiledModule6));
1024
1054
  document.head.appendChild(s6);
1025
1055
  var closeButton = "ggUoTSSSfk-DialogmodulecsscloseButton";
1026
- var commands = "ggUoTSSSfk-Dialogmodulecsscommands";
1056
+ var commands2 = "ggUoTSSSfk-Dialogmodulecsscommands";
1027
1057
  var dialog = "ggUoTSSSfk-Dialogmodulecssdialog";
1028
1058
  var overlay = "ggUoTSSSfk-Dialogmodulecssoverlay";
1029
1059
  var title2 = "ggUoTSSSfk-Dialogmodulecsstitle";
1030
1060
  var titleArea2 = "ggUoTSSSfk-DialogmodulecsstitleArea";
1031
- var Dialog_module_default = { closeButton, commands, dialog, overlay, title: title2, titleArea: titleArea2 };
1061
+ var Dialog_module_default = { closeButton, commands: commands2, dialog, overlay, title: title2, titleArea: titleArea2 };
1032
1062
 
1033
1063
  // src/images/dismiss-16-filled.inline.svg
1034
1064
  var dismiss_16_filled_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMzk3MDUgMi41NTM3OUwyLjQ2OTY3IDIuNDY5NjdDMi43MzU5NCAyLjIwMzQgMy4xNTI2IDIuMTc5MiAzLjQ0NjIxIDIuMzk3MDVMMy41MzAzMyAyLjQ2OTY3TDggNi45MzlMMTIuNDY5NyAyLjQ2OTY3QzEyLjc2MjYgMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTMuNTMwMyAyLjQ2OTY3QzEzLjgyMzIgMi43NjI1NiAxMy44MjMyIDMuMjM3NDQgMTMuNTMwMyAzLjUzMDMzTDkuMDYxIDhMMTMuNTMwMyAxMi40Njk3QzEzLjc5NjYgMTIuNzM1OSAxMy44MjA4IDEzLjE1MjYgMTMuNjAyOSAxMy40NDYyTDEzLjUzMDMgMTMuNTMwM0MxMy4yNjQxIDEzLjc5NjYgMTIuODQ3NCAxMy44MjA4IDEyLjU1MzggMTMuNjAyOUwxMi40Njk3IDEzLjUzMDNMOCA5LjA2MUwzLjUzMDMzIDEzLjUzMDNDMy4yMzc0NCAxMy44MjMyIDIuNzYyNTYgMTMuODIzMiAyLjQ2OTY3IDEzLjUzMDNDMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTIuNzYyNiAyLjQ2OTY3IDEyLjQ2OTdMNi45MzkgOEwyLjQ2OTY3IDMuNTMwMzNDMi4yMDM0IDMuMjY0MDYgMi4xNzkyIDIuODQ3NCAyLjM5NzA1IDIuNTUzNzlMMi40Njk2NyAyLjQ2OTY3TDIuMzk3MDUgMi41NTM3OVoiIGZpbGw9IiMyMTIxMjEiLz4KPC9zdmc+Cg==";
1035
1065
 
1036
1066
  // src/components/Dialog/Dialog.tsx
1037
- function Dialog({ title: title3, style, draggable, onClose, commands: commands2, children }) {
1067
+ function Dialog({ title: title3, style, draggable, onClose, commands: commands3, children }) {
1038
1068
  const draggableRef = useRef2(null);
1039
1069
  const draggableTargetRef = useRef2(null);
1040
1070
  const colorAccent = style === "error" ? "rgb(164, 38, 44)" : void 0;
@@ -1058,16 +1088,16 @@ function Dialog({ title: title3, style, draggable, onClose, commands: commands2,
1058
1088
  }, /* @__PURE__ */ React7.createElement("img", {
1059
1089
  src: dismiss_16_filled_inline_default,
1060
1090
  alt: ""
1061
- }))), !!commands2 && /* @__PURE__ */ React7.createElement("div", {
1091
+ }))), !!commands3 && /* @__PURE__ */ React7.createElement("div", {
1062
1092
  className: Dialog_module_default.commands
1063
- }, commands2), children));
1093
+ }, commands3), children));
1064
1094
  }
1065
1095
 
1066
1096
  // src/components/StatusDialog/StatusDialog.tsx
1067
1097
  function StatusDialog({ onClose }) {
1068
1098
  const cloudpack = useCloudpack();
1069
- const restartTasks = () => {
1070
- cloudpack.restartTasks();
1099
+ const restartAllTasks = () => {
1100
+ cloudpack.restartAllTasks();
1071
1101
  };
1072
1102
  return /* @__PURE__ */ React8.createElement(Dialog, {
1073
1103
  title: "Task results",
@@ -1075,7 +1105,7 @@ function StatusDialog({ onClose }) {
1075
1105
  onClose,
1076
1106
  commands: /* @__PURE__ */ React8.createElement(Button, {
1077
1107
  primary: true,
1078
- onClick: restartTasks
1108
+ onClick: restartAllTasks
1079
1109
  }, "Restart all tasks")
1080
1110
  }, /* @__PURE__ */ React8.createElement(TaskList, null));
1081
1111
  }
@@ -1129,7 +1159,7 @@ function PathError(props) {
1129
1159
  function ErrorDialog({ unsupported }) {
1130
1160
  const cloudpack = useCloudpack();
1131
1161
  const reload = () => {
1132
- cloudpack.restartTasks();
1162
+ cloudpack.restartAllTasks();
1133
1163
  };
1134
1164
  return /* @__PURE__ */ React10.createElement(Dialog, {
1135
1165
  title: "Found unsupported paths in your project",
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "absWorkingDir": "/home/runner/work/cloudpack/cloudpack/packages/overlay",
3
- "outbase": "lib",
4
- "outdir": "/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/lib",
5
3
  "entryPoints": {
6
- "index": "./src/index.tsx"
4
+ "./lib/index": "./src/index.tsx"
7
5
  },
6
+ "outdir": "/home/runner/work/cloudpack/cloudpack/packages/overlay/dist",
8
7
  "external": [
9
8
  "@ms-cloudpack/data-bus",
10
9
  "@ms-cloudpack/path-string-parsing",
@@ -22,5 +21,23 @@
22
21
  "global": "window",
23
22
  "process.env.NODE_ENV": "\"dev\""
24
23
  },
25
- "minify": false
24
+ "plugins": [
25
+ {
26
+ "plugin": "css-modules",
27
+ "options": {
28
+ "prefixClasses": false
29
+ }
30
+ },
31
+ {
32
+ "plugin": "sass",
33
+ "options": {
34
+ "prefixClasses": false
35
+ }
36
+ },
37
+ {
38
+ "plugin": "dynamic-imports",
39
+ "filter": ".dynamic.(js|mjs|ts|tsx)$"
40
+ },
41
+ "..."
42
+ ]
26
43
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "buildStatus",
3
- "buildId": "37d877f0-ef1e-47b3-83bb-e4523729c3c5",
3
+ "buildId": "9d0818e0-aad6-4bc5-a46b-f9dd883a02de",
4
4
  "buildStatus": "complete",
5
5
  "internalError": null,
6
6
  "warnings": [],
@@ -8,5 +8,5 @@
8
8
  "outputFilePaths": [
9
9
  "/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/lib/index.js"
10
10
  ],
11
- "metafile": "{\n \"inputs\": {\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytes\": 452,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytes\": 3807,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/getCookies.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytes\": 552,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/createCloudpackClient.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytes\": 2050,\n \"imports\": []\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytes\": 3405,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytes\": 866,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/images/open-16-filled.inline.svg\": {\n \"bytes\": 852,\n \"imports\": []\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytes\": 2867,\n \"imports\": [\n {\n \"path\": \"src/hooks/useDraggable.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusBadge/StatusBadge.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/open-16-filled.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskResultItem.module.css\": {\n \"bytes\": 2067,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytes\": 1433,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskResultItem.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskStatus.module.css\": {\n \"bytes\": 3922,\n \"imports\": []\n },\n \"src/images/error-24.inline.svg\": {\n \"bytes\": 1024,\n \"imports\": []\n },\n \"src/images/success-24.inline.svg\": {\n \"bytes\": 562,\n \"imports\": []\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytes\": 450,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytes\": 4225,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskResultItem.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/error-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/success-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/CloudpackProvider/useStatusDetails.ts\": {\n \"bytes\": 844,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskList.module.css\": {\n \"bytes\": 615,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytes\": 1015,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatusDetails.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskList.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/Button/Button.module.css\": {\n \"bytes\": 2080,\n \"imports\": []\n },\n \"src/components/Button/Button.tsx\": {\n \"bytes\": 360,\n \"imports\": [\n {\n \"path\": \"src/components/Button/Button.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytes\": 2454,\n \"imports\": []\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytes\": 718,\n \"imports\": []\n },\n \"src/components/Dialog/Dialog.tsx\": {\n \"bytes\": 1525,\n \"imports\": [\n {\n \"path\": \"src/components/Dialog/Dialog.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/hooks/useDraggable.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/dismiss-16-filled.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytes\": 721,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskList.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Dialog/Dialog.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytes\": 1799,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/error-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytes\": 996,\n \"imports\": [\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/PathError.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskList.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Dialog/Dialog.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytes\": 1659,\n \"imports\": []\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytes\": 1437,\n \"imports\": [\n {\n \"path\": \"src/components/StatusBadge/StatusBadge.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/StatusDialog.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/ErrorDialog.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/useErrorEvents.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytes\": 630,\n \"imports\": []\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytes\": 210,\n \"imports\": [\n {\n \"path\": \"src/components/ThemeProvider/ThemeProvider.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/index.tsx\": {\n \"bytes\": 532,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusOverlay/StatusOverlay.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ThemeProvider/ThemeProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n }\n },\n \"outputs\": {\n \"dist/lib/index.js\": {\n \"imports\": [],\n \"exports\": [],\n \"entryPoint\": \"src/index.tsx\",\n \"inputs\": {\n \"src/index.tsx\": {\n \"bytesInOutput\": 360\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytesInOutput\": 372\n },\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytesInOutput\": 317\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytesInOutput\": 2507\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytesInOutput\": 1076\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytesInOutput\": 3035\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytesInOutput\": 1937\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytesInOutput\": 3118\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytesInOutput\": 448\n },\n \"src/images/open-16-filled.inline.svg\": {\n \"bytesInOutput\": 1202\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytesInOutput\": 484\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytesInOutput\": 750\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytesInOutput\": 4697\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytesInOutput\": 1421\n },\n \"src/components/StatusDialog/TaskResultItem.module.css\": {\n \"bytesInOutput\": 1881\n },\n \"src/components/StatusDialog/TaskStatus.module.css\": {\n \"bytesInOutput\": 3651\n },\n \"src/images/error-24.inline.svg\": {\n \"bytesInOutput\": 1428\n },\n \"src/images/success-24.inline.svg\": {\n \"bytesInOutput\": 814\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytesInOutput\": 666\n },\n \"src/components/CloudpackProvider/useStatusDetails.ts\": {\n \"bytesInOutput\": 299\n },\n \"src/components/StatusDialog/TaskList.module.css\": {\n \"bytesInOutput\": 541\n },\n \"src/components/Button/Button.tsx\": {\n \"bytesInOutput\": 312\n },\n \"src/components/Button/Button.module.css\": {\n \"bytesInOutput\": 1942\n },\n \"src/components/Dialog/Dialog.tsx\": {\n \"bytesInOutput\": 1399\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytesInOutput\": 2280\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytesInOutput\": 1029\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytesInOutput\": 657\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytesInOutput\": 2220\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytesInOutput\": 1251\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytesInOutput\": 191\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytesInOutput\": 561\n }\n },\n \"bytes\": 44923\n }\n }\n}\n"
11
+ "metafile": "{\n \"inputs\": {\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytes\": 452,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytes\": 4212,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/getCookies.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytes\": 552,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/createCloudpackClient.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytes\": 2050,\n \"imports\": []\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytes\": 3405,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytes\": 866,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/images/open-16-filled.inline.svg\": {\n \"bytes\": 852,\n \"imports\": []\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytes\": 2867,\n \"imports\": [\n {\n \"path\": \"src/hooks/useDraggable.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusBadge/StatusBadge.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/open-16-filled.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskResultItem.module.css\": {\n \"bytes\": 2067,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytes\": 1433,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskResultItem.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskStatus.module.css\": {\n \"bytes\": 4179,\n \"imports\": []\n },\n \"src/images/error-24.inline.svg\": {\n \"bytes\": 1024,\n \"imports\": []\n },\n \"src/images/success-24.inline.svg\": {\n \"bytes\": 562,\n \"imports\": []\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytes\": 450,\n \"imports\": []\n },\n \"src/components/Button/Button.module.css\": {\n \"bytes\": 2080,\n \"imports\": []\n },\n \"src/components/Button/Button.tsx\": {\n \"bytes\": 360,\n \"imports\": [\n {\n \"path\": \"src/components/Button/Button.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytes\": 4591,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskResultItem.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/error-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/success-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/CloudpackProvider/useStatusDetails.ts\": {\n \"bytes\": 858,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskList.module.css\": {\n \"bytes\": 615,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytes\": 1015,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatusDetails.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskList.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytes\": 2454,\n \"imports\": []\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytes\": 718,\n \"imports\": []\n },\n \"src/components/Dialog/Dialog.tsx\": {\n \"bytes\": 1525,\n \"imports\": [\n {\n \"path\": \"src/components/Dialog/Dialog.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/hooks/useDraggable.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/dismiss-16-filled.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytes\": 730,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskList.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Dialog/Dialog.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytes\": 1799,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/error-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytes\": 999,\n \"imports\": [\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/PathError.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskList.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Dialog/Dialog.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytes\": 1659,\n \"imports\": []\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytes\": 1437,\n \"imports\": [\n {\n \"path\": \"src/components/StatusBadge/StatusBadge.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/StatusDialog.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/ErrorDialog.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/useErrorEvents.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytes\": 630,\n \"imports\": []\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytes\": 210,\n \"imports\": [\n {\n \"path\": \"src/components/ThemeProvider/ThemeProvider.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/index.tsx\": {\n \"bytes\": 532,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusOverlay/StatusOverlay.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ThemeProvider/ThemeProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n }\n },\n \"outputs\": {\n \"dist/lib/index.js\": {\n \"imports\": [],\n \"exports\": [],\n \"entryPoint\": \"src/index.tsx\",\n \"inputs\": {\n \"src/index.tsx\": {\n \"bytesInOutput\": 360\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytesInOutput\": 372\n },\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytesInOutput\": 317\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytesInOutput\": 2862\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytesInOutput\": 1076\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytesInOutput\": 3035\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytesInOutput\": 1937\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytesInOutput\": 3118\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytesInOutput\": 448\n },\n \"src/images/open-16-filled.inline.svg\": {\n \"bytesInOutput\": 1202\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytesInOutput\": 493\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytesInOutput\": 750\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytesInOutput\": 5037\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytesInOutput\": 1421\n },\n \"src/components/StatusDialog/TaskResultItem.module.css\": {\n \"bytesInOutput\": 1881\n },\n \"src/components/StatusDialog/TaskStatus.module.css\": {\n \"bytesInOutput\": 3889\n },\n \"src/images/error-24.inline.svg\": {\n \"bytesInOutput\": 1428\n },\n \"src/images/success-24.inline.svg\": {\n \"bytesInOutput\": 814\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytesInOutput\": 666\n },\n \"src/components/Button/Button.tsx\": {\n \"bytesInOutput\": 312\n },\n \"src/components/Button/Button.module.css\": {\n \"bytesInOutput\": 1942\n },\n \"src/components/CloudpackProvider/useStatusDetails.ts\": {\n \"bytesInOutput\": 299\n },\n \"src/components/StatusDialog/TaskList.module.css\": {\n \"bytesInOutput\": 541\n },\n \"src/components/Dialog/Dialog.tsx\": {\n \"bytesInOutput\": 1399\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytesInOutput\": 2292\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytesInOutput\": 1029\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytesInOutput\": 660\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytesInOutput\": 2220\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytesInOutput\": 1251\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytesInOutput\": 191\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytesInOutput\": 561\n }\n },\n \"bytes\": 45880\n }\n }\n}\n"
12
12
  }
@@ -12,6 +12,7 @@ export interface CloudpackClient {
12
12
  rootPath: string;
13
13
  relativePath?: string;
14
14
  }) => void;
15
- restartTasks: () => void;
15
+ restartAllTasks: () => void;
16
+ restartTask: (id: string) => void;
16
17
  }
17
18
  export declare function createCloudpackClient(): CloudpackClient;
@@ -23,6 +23,7 @@ export function createCloudpackClient() {
23
23
  const enqueuedMessages = [];
24
24
  const sessionId = cookies['cloudpack-session-id'];
25
25
  const apiUrl = cookies['cloudpack-api-url'];
26
+ const currentSequence = cookies['cloudpack-session-sequence'];
26
27
  let socket;
27
28
  /**
28
29
  * Attempts to open the websocket connection.
@@ -83,6 +84,13 @@ export function createCloudpackClient() {
83
84
  window.location.reload();
84
85
  break;
85
86
  }
87
+ case 'sequence': {
88
+ const { sequence } = response;
89
+ if (Number(sequence) > Number(currentSequence)) {
90
+ window.location.reload();
91
+ }
92
+ break;
93
+ }
86
94
  }
87
95
  }
88
96
  /**
@@ -102,8 +110,11 @@ export function createCloudpackClient() {
102
110
  function open(options) {
103
111
  sendMessage('open', options);
104
112
  }
105
- function restartTasks() {
106
- sendMessage('restartTasks', {});
113
+ function restartAllTasks() {
114
+ sendMessage('restartAllTasks', {});
115
+ }
116
+ function restartTask(id) {
117
+ sendMessage('restartTask', { id });
107
118
  }
108
119
  // Start the connection.
109
120
  openConnection();
@@ -114,7 +125,8 @@ export function createCloudpackClient() {
114
125
  open,
115
126
  openSource,
116
127
  subscribe,
117
- restartTasks,
128
+ restartTask,
129
+ restartAllTasks,
118
130
  };
119
131
  }
120
132
  //# sourceMappingURL=createCloudpackClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createCloudpackClient.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/createCloudpackClient.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAYvD,MAAM,UAAU,qBAAqB;IACnC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;IAC5B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,MAAM,MAAM,GAA2B,EAAE,CAAC;IAE1C,GAAG,CAAC,WAAW,CAAC;QACd,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;YACvB,MAAM,EAAE,GAAG,UAAU,EAAE,CAAC;YACxB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YAC5B,WAAW,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACzC,CAAC;QAED,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;YACzB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClC,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;YAC9B,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;YAC1B,WAAW,CAAC,aAAa,EAAE,EAAE,IAAI,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,CAAC;IAED,wBAAwB;IACxB,cAAc,EAAE,CAAC;IAEjB,yBAAyB;IACzB,OAAO;QACL,OAAO;QACP,QAAQ;QACR,IAAI;QACJ,UAAU;QACV,SAAS;QACT,YAAY;KACb,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createCloudpackClient.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/createCloudpackClient.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAavD,MAAM,UAAU,qBAAqB;IACnC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;IAC5B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,MAAM,MAAM,GAA2B,EAAE,CAAC;IAE1C,GAAG,CAAC,WAAW,CAAC;QACd,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;YACvB,MAAM,EAAE,GAAG,UAAU,EAAE,CAAC;YACxB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YAC5B,WAAW,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACzC,CAAC;QAED,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;YACzB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClC,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;YAC9B,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;YAC1B,WAAW,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3C,CAAC;KACF,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAa,EAAE,CAAC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,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,SAAS,IAAI,CAAC,OAAoD;QAChE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,SAAS,eAAe;QACtB,WAAW,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,SAAS,WAAW,CAAC,EAAU;QAC7B,WAAW,CAAC,aAAa,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,wBAAwB;IACxB,cAAc,EAAE,CAAC;IAEjB,yBAAyB;IACzB,OAAO;QACL,OAAO;QACP,QAAQ;QACR,IAAI;QACJ,UAAU;QACV,SAAS;QACT,WAAW;QACX,eAAe;KAChB,CAAC;AACJ,CAAC"}
@@ -9,6 +9,7 @@ export interface TaskResultItemType {
9
9
  };
10
10
  }
11
11
  export interface TaskDescriptionType {
12
+ id: string;
12
13
  name: string;
13
14
  inputPath: string;
14
15
  outputPath: string;
@@ -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;AA2BtD,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;IAC/B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAA6B,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAElF,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAE/E,OAAO,OAAO,CAAC;AACjB,CAAC,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;AA4BtD,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;IAC/B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAA6B,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAElF,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAE/E,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
@@ -7,7 +7,7 @@ import { Dialog } from '../Dialog/Dialog.js';
7
7
  export function ErrorDialog({ unsupported }) {
8
8
  const cloudpack = useCloudpack();
9
9
  const reload = () => {
10
- cloudpack.restartTasks();
10
+ cloudpack.restartAllTasks();
11
11
  };
12
12
  return (React.createElement(Dialog, { title: "Found unsupported paths in your project", style: "error", commands: React.createElement(Button, { primary: true, onClick: reload }, "Reload") },
13
13
  React.createElement("div", { className: styles.root }, unsupported.map((data, index) => (React.createElement(PathError, { ...data, key: index }))))));
@@ -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,CA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IACL,KAAK,EAAC,yCAAyC,EAC/C,KAAK,EAAC,OAAO,EACb,QAAQ,EACN,oBAAC,MAAM,IAAC,OAAO,QAAC,OAAO,EAAE,MAAM,aAEtB;QAGX,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"}
@@ -5,10 +5,10 @@ import { Button } from '../Button/Button.js';
5
5
  import { Dialog } from '../Dialog/Dialog.js';
6
6
  export function StatusDialog({ onClose }) {
7
7
  const cloudpack = useCloudpack();
8
- const restartTasks = () => {
9
- cloudpack.restartTasks();
8
+ const restartAllTasks = () => {
9
+ cloudpack.restartAllTasks();
10
10
  };
11
- return (React.createElement(Dialog, { title: "Task results", draggable: true, onClose: onClose, commands: React.createElement(Button, { primary: true, onClick: restartTasks }, "Restart all tasks") },
11
+ return (React.createElement(Dialog, { title: "Task results", draggable: true, onClose: onClose, commands: React.createElement(Button, { primary: true, onClick: restartAllTasks }, "Restart all tasks") },
12
12
  React.createElement(TaskList, null)));
13
13
  }
14
14
  //# sourceMappingURL=StatusDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusDialog.js","sourceRoot":"","sources":["../../../src/components/StatusDialog/StatusDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,MAAM,UAAU,YAAY,CAAC,EAAE,OAAO,EAAqB;IACzD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,SAAS,CAAC,YAAY,EAAE,CAAC;IAC3B,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,KAAK,EAAC,cAAc,EACpB,SAAS,QACT,OAAO,EAAE,OAAO,EAChB,QAAQ,EACN,oBAAC,MAAM,IAAC,OAAO,QAAC,OAAO,EAAE,YAAY,wBAE5B;QAGX,oBAAC,QAAQ,OAAG,CACL,CACV,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"StatusDialog.js","sourceRoot":"","sources":["../../../src/components/StatusDialog/StatusDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,MAAM,UAAU,YAAY,CAAC,EAAE,OAAO,EAAqB;IACzD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,SAAS,CAAC,eAAe,EAAE,CAAC;IAC9B,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,KAAK,EAAC,cAAc,EACpB,SAAS,QACT,OAAO,EAAE,OAAO,EAChB,QAAQ,EACN,oBAAC,MAAM,IAAC,OAAO,QAAC,OAAO,EAAE,eAAe,wBAE/B;QAGX,oBAAC,QAAQ,OAAG,CACL,CACV,CAAC;AACJ,CAAC"}
@@ -6,6 +6,7 @@ import ErrorIcon from '../../images/error-24.inline.svg';
6
6
  import SuccessIcon from '../../images/success-24.inline.svg';
7
7
  import ChevronDownIcon from '../../images/chevrondown-20.inline.svg';
8
8
  import { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';
9
+ import { Button } from '../Button/Button.js';
9
10
  function getCompletion(task) {
10
11
  if (task.status === 'pending') {
11
12
  return 'Running';
@@ -36,6 +37,9 @@ export function TaskStatus({ task }) {
36
37
  column: 0,
37
38
  });
38
39
  };
40
+ const restartTask = (id) => {
41
+ cloudpack.restartTask(id);
42
+ };
39
43
  return (React.createElement("div", { className: styles.root },
40
44
  React.createElement("div", { className: getHeaderClassName(task) },
41
45
  React.createElement("button", { className: styles.expandButton, onClick: () => setIsOpen(!showContent) },
@@ -44,22 +48,25 @@ export function TaskStatus({ task }) {
44
48
  errors?.length > 0 && React.createElement("img", { className: styles.errorIcon, src: ErrorIcon, alt: "" }),
45
49
  React.createElement("div", { className: styles.title }, name),
46
50
  React.createElement("div", { className: styles.farArea }, getCompletion(task))),
47
- showContent && (React.createElement("div", { className: styles.content },
48
- React.createElement("div", { className: styles.title }, "Details"),
49
- React.createElement("div", { className: styles.nameValueArea },
50
- React.createElement("div", { className: styles.name }, "Input path"),
51
- React.createElement("div", { className: styles.value },
52
- React.createElement("button", { className: styles.linkButton, onClick: () => open(task.inputPath) }, task.inputPath),
53
- React.createElement("button", { className: styles.linkButton, onClick: openPackage }, "(Package.json)"))),
54
- React.createElement("div", { className: styles.nameValueArea },
55
- React.createElement("div", { className: styles.name }, "Output path"),
56
- React.createElement("button", { className: styles.linkButton, onClick: () => open(task.outputPath) }, task.outputPath)),
57
- errors?.length > 0 && (React.createElement(React.Fragment, null,
58
- React.createElement("div", { className: styles.title }, "Errors"),
59
- React.createElement("div", { className: styles.resultItems }, errors.map((error, index) => (React.createElement(TaskResultItem, { key: index, item: error, projectPath: task.inputPath, index: index + 1 })))))),
60
- warnings?.length > 0 && (React.createElement(React.Fragment, null,
61
- React.createElement("div", { className: styles.title }, "Warnings"),
62
- React.createElement("div", { className: styles.resultItems }, warnings.map((warning, index) => (React.createElement(TaskResultItem, { key: index, item: warning, projectPath: task.inputPath, index: index + 1 }))))))))));
51
+ showContent && (React.createElement(React.Fragment, null,
52
+ React.createElement("div", { className: styles.commands },
53
+ React.createElement(Button, { onClick: () => restartTask(task.id) }, "Restart task")),
54
+ React.createElement("div", { className: styles.content },
55
+ React.createElement("div", { className: styles.title }, "Details"),
56
+ React.createElement("div", { className: styles.nameValueArea },
57
+ React.createElement("div", { className: styles.name }, "Input path"),
58
+ React.createElement("div", { className: styles.value },
59
+ React.createElement("button", { className: styles.linkButton, onClick: () => open(task.inputPath) }, task.inputPath),
60
+ React.createElement("button", { className: styles.linkButton, onClick: openPackage }, "(Package.json)"))),
61
+ React.createElement("div", { className: styles.nameValueArea },
62
+ React.createElement("div", { className: styles.name }, "Output path"),
63
+ React.createElement("button", { className: styles.linkButton, onClick: () => open(task.outputPath) }, task.outputPath)),
64
+ errors?.length > 0 && (React.createElement(React.Fragment, null,
65
+ React.createElement("div", { className: styles.title }, "Errors"),
66
+ React.createElement("div", { className: styles.resultItems }, errors.map((error, index) => (React.createElement(TaskResultItem, { key: index, item: error, projectPath: task.inputPath, index: index + 1 })))))),
67
+ warnings?.length > 0 && (React.createElement(React.Fragment, null,
68
+ React.createElement("div", { className: styles.title }, "Warnings"),
69
+ React.createElement("div", { className: styles.resultItems }, warnings.map((warning, index) => (React.createElement(TaskResultItem, { key: index, item: warning, projectPath: task.inputPath, index: index + 1 })))))))))));
63
70
  }
64
71
  function getHeaderClassName(task) {
65
72
  return cx(styles.header, {
@@ -1 +1 @@
1
- {"version":3,"file":"TaskStatus.js","sourceRoot":"","sources":["../../../src/components/StatusDialog/TaskStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,SAAS,MAAM,kCAAkC,CAAC;AACzD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7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AE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,GAAI,CAC7F,CAAC,CACE,CACL,CACJ,CACG,CACL,CACJ,CACG,CACP,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,IAAyB;IACnD,OAAO,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE;QACvB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,MAAM,KAAK,CAAC;QAC1E,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC;QACxE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC;KACxC,CAAC,CAAC;AACL,CAAC"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.1"
8
+ "packageVersion": "7.33.5"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/overlay",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "The Cloudpack overlay ux.",
5
5
  "license": "MIT",
6
6
  "types": "./lib/index.d.ts",
@@ -31,8 +31,8 @@
31
31
  "devDependencies": {
32
32
  "@ms-cloudpack/eslint-config-base": "*",
33
33
  "@ms-cloudpack/scripts": "*",
34
- "@types/react-dom": "17.0.17",
35
- "@types/react": "17.0.50"
34
+ "@types/react-dom": "17.0.18",
35
+ "@types/react": "17.0.52"
36
36
  },
37
37
  "files": [
38
38
  "/lib",