@ms-cloudpack/overlay 0.11.1 → 0.11.3

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,72 @@
2
2
  "name": "@ms-cloudpack/overlay",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 03 Dec 2022 08:10:22 GMT",
5
+ "date": "Tue, 31 Jan 2023 08:08:54 GMT",
6
+ "tag": "@ms-cloudpack/overlay_v0.11.3",
7
+ "version": "0.11.3",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "elcraig@microsoft.com",
12
+ "package": "@ms-cloudpack/overlay",
13
+ "commit": "243bfddf2ccffa5d6aa479105156b8a5de0e66c2",
14
+ "comment": "Don't publish test files"
15
+ }
16
+ ],
17
+ "patch": [
18
+ {
19
+ "author": "beachball",
20
+ "package": "@ms-cloudpack/overlay",
21
+ "comment": "Bump @ms-cloudpack/data-bus to v0.1.1",
22
+ "commit": "d841a4219d236c863ef97e9b20ad1bc143e8bc84"
23
+ },
24
+ {
25
+ "author": "beachball",
26
+ "package": "@ms-cloudpack/overlay",
27
+ "comment": "Bump @ms-cloudpack/path-string-parsing to v1.0.1",
28
+ "commit": "d841a4219d236c863ef97e9b20ad1bc143e8bc84"
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ {
34
+ "date": "Mon, 23 Jan 2023 21:06:01 GMT",
35
+ "tag": "@ms-cloudpack/overlay_v0.11.2",
36
+ "version": "0.11.2",
37
+ "comments": {
38
+ "none": [
39
+ {
40
+ "author": "email not defined",
41
+ "package": "@ms-cloudpack/overlay",
42
+ "commit": "408c1f356be04b224c48fceff847f388278b0dee",
43
+ "comment": "Update devDependency @types/react to v17.0.53"
44
+ },
45
+ {
46
+ "author": "elcraig@microsoft.com",
47
+ "package": "@ms-cloudpack/overlay",
48
+ "commit": "d092bb42a995e8bab968a0fdc1f35144680b73c3",
49
+ "comment": "Move beachball disallowedChangeTypes setting to repo config"
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ {
55
+ "date": "Sun, 04 Dec 2022 08:11:29 GMT",
56
+ "tag": "@ms-cloudpack/overlay_v0.11.2",
57
+ "version": "0.11.2",
58
+ "comments": {
59
+ "patch": [
60
+ {
61
+ "author": "elcraig@microsoft.com",
62
+ "package": "@ms-cloudpack/overlay",
63
+ "commit": "7672998c2474fc5f82ce6c9055092a41d2675172",
64
+ "comment": "Fix dragging the status badge"
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ {
70
+ "date": "Sat, 03 Dec 2022 08:10:45 GMT",
6
71
  "tag": "@ms-cloudpack/overlay_v0.11.1",
7
72
  "version": "0.11.1",
8
73
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,29 @@
1
1
  # Change Log - @ms-cloudpack/overlay
2
2
 
3
- This log was last generated on Sat, 03 Dec 2022 08:10:22 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 31 Jan 2023 08:08:54 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.11.3
8
+
9
+ Tue, 31 Jan 2023 08:08:54 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @ms-cloudpack/data-bus to v0.1.1
14
+ - Bump @ms-cloudpack/path-string-parsing to v1.0.1
15
+
16
+ ## 0.11.2
17
+
18
+ Sun, 04 Dec 2022 08:11:29 GMT
19
+
20
+ ### Patches
21
+
22
+ - Fix dragging the status badge (elcraig@microsoft.com)
23
+
7
24
  ## 0.11.1
8
25
 
9
- Sat, 03 Dec 2022 08:10:22 GMT
26
+ Sat, 03 Dec 2022 08:10:45 GMT
10
27
 
11
28
  ### Patches
12
29
 
package/dist/lib/index.js CHANGED
@@ -173,9 +173,7 @@ function createCloudpackClient() {
173
173
  var CloudpackContext = createContext(null);
174
174
  function CloudpackProvider({ children }) {
175
175
  const [client] = useState(createCloudpackClient);
176
- return /* @__PURE__ */ React.createElement(CloudpackContext.Provider, {
177
- value: client
178
- }, children);
176
+ return /* @__PURE__ */ React.createElement(CloudpackContext.Provider, { value: client }, children);
179
177
  }
180
178
  var useCloudpack = () => useContext(CloudpackContext);
181
179
 
@@ -187,48 +185,48 @@ import React2, { useRef } from "react";
187
185
 
188
186
  // src/hooks/useDraggable.ts
189
187
  import { useEffect, useState as useState2 } from "react";
190
- function useDraggable(containerElementRef, dragElementRef = containerElementRef) {
188
+ function useDraggable(options) {
189
+ const { enabled, containerElementRef, dragElementRef } = options;
191
190
  const [isDragging, setIsDragging] = useState2(false);
192
191
  useEffect(() => {
193
- if (containerElementRef && dragElementRef) {
194
- const moveTarget = containerElementRef.current;
195
- const dragTarget = dragElementRef.current;
196
- if (moveTarget && dragTarget) {
197
- let originalX = 0;
198
- let originalY = 0;
199
- let offset = { x: 0, y: 0 };
200
- const onPointerMove = (event) => {
201
- moveTarget.style.transform = `translate(${offset.x + event.clientX - originalX}px, ${offset.y + event.clientY - originalY}px)`;
202
- };
203
- const onPointerUp = (event) => {
204
- setIsDragging(false);
205
- offset = {
206
- x: offset.x + event.clientX - originalX,
207
- y: offset.y + event.clientY - originalY
208
- };
209
- dragTarget.releasePointerCapture(event.pointerId);
210
- dragTarget.removeEventListener("pointerup", onPointerUp);
211
- dragTarget.removeEventListener("pointermove", onPointerMove);
212
- event.preventDefault();
213
- };
214
- const onPointerDown = (event) => {
215
- setIsDragging(true);
216
- originalX = event.clientX;
217
- originalY = event.clientY;
218
- dragTarget.setPointerCapture(event.pointerId);
219
- dragTarget.addEventListener("pointerup", onPointerUp);
220
- dragTarget.addEventListener("pointermove", onPointerMove);
221
- event.preventDefault();
222
- };
223
- dragTarget.addEventListener("pointerdown", onPointerDown);
224
- return () => {
225
- dragTarget.removeEventListener("pointerdown", onPointerDown);
226
- dragTarget.removeEventListener("pointermove", onPointerMove);
227
- dragTarget.removeEventListener("pointerup", onPointerUp);
228
- };
229
- }
192
+ const moveTarget = containerElementRef?.current;
193
+ const dragTarget = dragElementRef?.current;
194
+ if (!enabled || !moveTarget || !dragTarget) {
195
+ return;
230
196
  }
231
- }, [containerElementRef, dragElementRef]);
197
+ let originalX = 0;
198
+ let originalY = 0;
199
+ let offset = { x: 0, y: 0 };
200
+ const onPointerMove = (event) => {
201
+ moveTarget.style.transform = `translate(${offset.x + event.clientX - originalX}px, ${offset.y + event.clientY - originalY}px)`;
202
+ };
203
+ const onPointerUp = (event) => {
204
+ setIsDragging(false);
205
+ offset = {
206
+ x: offset.x + event.clientX - originalX,
207
+ y: offset.y + event.clientY - originalY
208
+ };
209
+ dragTarget.releasePointerCapture(event.pointerId);
210
+ dragTarget.removeEventListener("pointerup", onPointerUp);
211
+ dragTarget.removeEventListener("pointermove", onPointerMove);
212
+ event.preventDefault();
213
+ };
214
+ const onPointerDown = (event) => {
215
+ setIsDragging(true);
216
+ originalX = event.clientX;
217
+ originalY = event.clientY;
218
+ dragTarget.setPointerCapture(event.pointerId);
219
+ dragTarget.addEventListener("pointerup", onPointerUp);
220
+ dragTarget.addEventListener("pointermove", onPointerMove);
221
+ event.preventDefault();
222
+ };
223
+ dragTarget.addEventListener("pointerdown", onPointerDown);
224
+ return () => {
225
+ dragTarget.removeEventListener("pointerdown", onPointerDown);
226
+ dragTarget.removeEventListener("pointermove", onPointerMove);
227
+ dragTarget.removeEventListener("pointerup", onPointerUp);
228
+ };
229
+ }, [enabled, containerElementRef, dragElementRef]);
232
230
  return {
233
231
  isDragging
234
232
  };
@@ -394,32 +392,17 @@ function StatusBadge({ inline: inline2, onExpand }) {
394
392
  const rootElementRef = useRef(null);
395
393
  const dragElementRef = useRef(null);
396
394
  const status = useStatus();
397
- useDraggable(rootElementRef, dragElementRef);
398
- if (status.status === "unknown") {
395
+ const shouldRender = status.status !== "unknown";
396
+ useDraggable({
397
+ enabled: shouldRender && !inline2,
398
+ containerElementRef: rootElementRef,
399
+ dragElementRef
400
+ });
401
+ if (!shouldRender) {
399
402
  return null;
400
403
  }
401
- const badge2 = /* @__PURE__ */ React2.createElement("div", {
402
- ref: inline2 ? void 0 : rootElementRef,
403
- className: getStatusClassName(status, !!inline2)
404
- }, !inline2 && /* @__PURE__ */ React2.createElement("div", {
405
- ref: inline2 ? void 0 : dragElementRef,
406
- className: StatusBadge_module_default.gripArea
407
- }, /* @__PURE__ */ React2.createElement("div", {
408
- className: StatusBadge_module_default.grip
409
- }), /* @__PURE__ */ React2.createElement("div", {
410
- className: StatusBadge_module_default.grip
411
- })), /* @__PURE__ */ React2.createElement("button", {
412
- className: StatusBadge_module_default.button,
413
- onClick: onExpand,
414
- "aria-label": "Expand overlay"
415
- }, /* @__PURE__ */ React2.createElement("div", {
416
- className: StatusBadge_module_default.value
417
- }, getStatusString(status))), /* @__PURE__ */ React2.createElement("div", null, getStatsString(status)));
418
- return inline2 ? badge2 : /* @__PURE__ */ React2.createElement("div", {
419
- className: StatusBadge_module_default.fixedOverlay
420
- }, /* @__PURE__ */ React2.createElement("div", {
421
- className: StatusBadge_module_default.contentSurface
422
- }, badge2));
404
+ const badge2 = /* @__PURE__ */ React2.createElement("div", { ref: rootElementRef, className: getStatusClassName(status, !!inline2) }, !inline2 && /* @__PURE__ */ React2.createElement("div", { ref: dragElementRef, className: StatusBadge_module_default.gripArea }, /* @__PURE__ */ React2.createElement("div", { className: StatusBadge_module_default.grip }), /* @__PURE__ */ React2.createElement("div", { className: StatusBadge_module_default.grip })), /* @__PURE__ */ React2.createElement("button", { className: StatusBadge_module_default.button, onClick: onExpand, "aria-label": "Expand overlay" }, /* @__PURE__ */ React2.createElement("div", { className: StatusBadge_module_default.value }, getStatusString(status))), /* @__PURE__ */ React2.createElement("div", null, getStatsString(status)));
405
+ return inline2 ? badge2 : /* @__PURE__ */ React2.createElement("div", { className: StatusBadge_module_default.fixedOverlay }, /* @__PURE__ */ React2.createElement("div", { className: StatusBadge_module_default.contentSurface }, badge2));
423
406
  }
424
407
  function getStatusString(status) {
425
408
  if (status.status === "pending") {
@@ -430,26 +413,26 @@ function getStatusString(status) {
430
413
  }
431
414
  return status.totalErrors === 0 ? "Success" : "Errors";
432
415
  }
433
- function getStatusClassName(status, inline2) {
416
+ function getStatusClassName({ status, totalTasks, totalErrors, totalWarnings }, inline2) {
434
417
  return cx(StatusBadge_module_default.badge, {
435
418
  [StatusBadge_module_default.inline]: inline2,
436
- [StatusBadge_module_default.building]: status.status === "pending",
437
- [StatusBadge_module_default.success]: status.status === "idle" && status.totalTasks > 0 && status.totalErrors === 0 && status.totalWarnings === 0,
438
- [StatusBadge_module_default.error]: status.status === "idle" && status.totalErrors > 0,
439
- [StatusBadge_module_default.warning]: status.status === "idle" && status.totalErrors === 0 && status.totalWarnings > 0
419
+ [StatusBadge_module_default.building]: status === "pending",
420
+ [StatusBadge_module_default.success]: status === "idle" && totalTasks > 0 && totalErrors === 0 && totalWarnings === 0,
421
+ [StatusBadge_module_default.error]: status === "idle" && totalErrors > 0,
422
+ [StatusBadge_module_default.warning]: status === "idle" && totalErrors === 0 && totalWarnings > 0
440
423
  });
441
424
  }
442
- function getStatsString(status) {
443
- if (status.totalTasks === 0) {
425
+ function getStatsString({ totalTasks, remainingTasks, totalErrors, totalWarnings }) {
426
+ if (totalTasks === 0) {
444
427
  return "";
445
428
  }
446
429
  return [
447
- status.remainingTasks > 0 && `${status.remainingTasks} of ${status.totalTasks} tasks pending`,
448
- status.remainingTasks === 0 && `${status.totalTasks} tasks completed`,
449
- status.totalErrors === 1 && `${status.totalErrors} error`,
450
- status.totalErrors > 1 && `${status.totalErrors} errors`,
451
- status.totalWarnings === 1 && `${status.totalWarnings} warning`,
452
- status.totalWarnings > 1 && `${status.totalWarnings} warnings`
430
+ remainingTasks > 0 && `${remainingTasks} of ${totalTasks} tasks pending`,
431
+ remainingTasks === 0 && `${totalTasks} tasks completed`,
432
+ totalErrors === 1 && `${totalErrors} error`,
433
+ totalErrors > 1 && `${totalErrors} errors`,
434
+ totalWarnings === 1 && `${totalWarnings} warning`,
435
+ totalWarnings > 1 && `${totalWarnings} warnings`
453
436
  ].filter(Boolean).join(", ");
454
437
  }
455
438
 
@@ -556,22 +539,7 @@ function TaskResultItem({ item, projectPath, index }) {
556
539
  };
557
540
  const filename = item.location?.file || "(path unavailable)";
558
541
  const location = ["", item.location?.line, item.location?.column].filter(Boolean).join(":");
559
- return /* @__PURE__ */ React3.createElement("div", {
560
- className: TaskResultItem_module_default.root
561
- }, /* @__PURE__ */ React3.createElement("div", {
562
- className: TaskResultItem_module_default.statusBar
563
- }), /* @__PURE__ */ React3.createElement("div", {
564
- className: TaskResultItem_module_default.content
565
- }, /* @__PURE__ */ React3.createElement("div", {
566
- className: TaskResultItem_module_default.titleArea
567
- }, /* @__PURE__ */ React3.createElement("button", {
568
- onClick: openSource,
569
- className: TaskResultItem_module_default.file
570
- }, index, ". ", filename, location && ` (${location})`, ":")), /* @__PURE__ */ React3.createElement("div", {
571
- className: TaskResultItem_module_default.text
572
- }, item.text), /* @__PURE__ */ React3.createElement("pre", {
573
- className: TaskResultItem_module_default.text
574
- }, JSON.stringify(item, null, 2))));
542
+ return /* @__PURE__ */ React3.createElement("div", { className: TaskResultItem_module_default.root }, /* @__PURE__ */ React3.createElement("div", { className: TaskResultItem_module_default.statusBar }), /* @__PURE__ */ React3.createElement("div", { className: TaskResultItem_module_default.content }, /* @__PURE__ */ React3.createElement("div", { className: TaskResultItem_module_default.titleArea }, /* @__PURE__ */ React3.createElement("button", { onClick: openSource, className: TaskResultItem_module_default.file }, index, ". ", filename, location && ` (${location})`, ":")), /* @__PURE__ */ React3.createElement("div", { className: TaskResultItem_module_default.text }, item.text), /* @__PURE__ */ React3.createElement("pre", { className: TaskResultItem_module_default.text }, JSON.stringify(item, null, 2))));
575
543
  }
576
544
 
577
545
  // src/components/StatusDialog/TaskStatus.module.css
@@ -736,13 +704,13 @@ var TaskStatus_module_default = { collapsed, commands, content: content2, error:
736
704
  import { default as cx2 } from "classnames";
737
705
 
738
706
  // src/images/error-24.inline.svg
739
- var error_24_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iM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1MiAxNS43OTkgMTQuODI3IDE1LjYxMDEgMTQuNTYzNkwxNS41MzAzIDE0LjQ2OTdMMTMuMDYxIDEyTDE1LjUzMDMgOS41MzAzM0wxNS42MDI5IDkuNDQ2MjFDMTUuNzk2NiA5LjE4NTIyIDE1Ljc5OSA4LjgyNzAxIDE1LjYxMDEgOC41NjM2MkwxNS41MzAzIDguNDY5NjdMMTUuNDQ2MiA4LjM5NzA1TDE1LjUzMDMgOC40Njk2N1oiIGZpbGw9IiNhYTAwMDAiLz4KPC9zdmc+Cg==";
707
+ var error_24_inline_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM15.5303 8.46967L15.4462 8.39705C15.1852 8.2034 14.827 8.20101 14.5636 8.38988L14.4697 8.46967L12 10.939L9.53033 8.46967L9.44621 8.39705C9.18522 8.2034 8.82701 8.20101 8.56362 8.38988L8.46967 8.46967L8.39705 8.55379C8.2034 8.81478 8.20101 9.17299 8.38988 9.43638L8.46967 9.53033L10.939 12L8.46967 14.4697L8.39705 14.5538C8.2034 14.8148 8.20101 15.173 8.38988 15.4364L8.46967 15.5303L8.55379 15.6029C8.81478 15.7966 9.17299 15.799 9.43638 15.6101L9.53033 15.5303L12 13.061L14.4697 15.5303L14.5538 15.6029C14.8148 15.7966 15.173 15.799 15.4364 15.6101L15.5303 15.5303L15.6029 15.4462C15.7966 15.1852 15.799 14.827 15.6101 14.5636L15.5303 14.4697L13.061 12L15.5303 9.53033L15.6029 9.44621C15.7966 9.18522 15.799 8.82701 15.6101 8.56362L15.5303 8.46967L15.4462 8.39705L15.5303 8.46967Z" fill="%23aa0000"/>%0A</svg>%0A';
740
708
 
741
709
  // src/images/success-24.inline.svg
742
- var success_24_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDMTcuNTIyOCAyIDIyIDYuNDc3MTUgMjIgMTJDMjIgMTcuNTIyOCAxNy41MjI4IDIyIDEyIDIyQzYuNDc3MTUgMjIgMiAxNy41MjI4IDIgMTJDMiA2LjQ3NzE1IDYuNDc3MTUgMiAxMiAyWk0xNS4yMTk3IDguOTY5NjdMMTAuNzUgMTMuNDM5M0w4Ljc4MDMzIDExLjQ2OTdDOC40ODc0NCAxMS4xNzY4IDguMDEyNTYgMTEuMTc2OCA3LjcxOTY3IDExLjQ2OTdDNy40MjY3OCAxMS43NjI2IDcuNDI2NzggMTIuMjM3NCA3LjcxOTY3IDEyLjUzMDNMMTAuMjE5NyAxNS4wMzAzQzEwLjUxMjYgMTUuMzIzMiAxMC45ODc0IDE1LjMyMzIgMTEuMjgwMyAxNS4wMzAzTDE2LjI4MDMgMTAuMDMwM0MxNi41NzMyIDkuNzM3NDQgMTYuNTczMiA5LjI2MjU2IDE2LjI4MDMgOC45Njk2N0MxNS45ODc0IDguNjc2NzggMTUuNTEyNiA4LjY3Njc4IDE1LjIxOTcgOC45Njk2N1oiIGZpbGw9IiMwMGFhMDAiLz4KPC9zdmc+Cg==";
710
+ var success_24_inline_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM15.2197 8.96967L10.75 13.4393L8.78033 11.4697C8.48744 11.1768 8.01256 11.1768 7.71967 11.4697C7.42678 11.7626 7.42678 12.2374 7.71967 12.5303L10.2197 15.0303C10.5126 15.3232 10.9874 15.3232 11.2803 15.0303L16.2803 10.0303C16.5732 9.73744 16.5732 9.26256 16.2803 8.96967C15.9874 8.67678 15.5126 8.67678 15.2197 8.96967Z" fill="%2300aa00"/>%0A</svg>%0A';
743
711
 
744
712
  // src/images/chevrondown-20.inline.svg
745
- var chevrondown_20_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1Ljc5NCA3LjczMjcxQzE2LjA3OTcgOC4wMzI2MyAxNi4wNjgxIDguNTA3MzcgMTUuNzY4MiA4Ljc5MzA2TDEwLjUxNzggMTMuNzk0NEMxMC4yMjgxIDE0LjA3MDMgOS43NzI4NSAxNC4wNzAzIDkuNDgzMTggMTMuNzk0NEw0LjIzMjcxIDguNzkzMDZDMy45MzI3OSA4LjUwNzM3IDMuOTIxMjUgOC4wMzI2MyA0LjIwNjk0IDcuNzMyNzFDNC40OTI2NCA3LjQzMjc5IDQuOTY3MzcgNy40MjEyNSA1LjI2NzI5IDcuNzA2OTRMMTAuMDAwNSAxMi4yMTU1TDE0LjczMzYgNy43MDY5NEMxNS4wMzM2IDcuNDIxMjUgMTUuNTA4MyA3LjQzMjc5IDE1Ljc5NCA3LjczMjcxWiIgZmlsbD0iIzIxMjEyMSIvPgo8L3N2Zz4K";
713
+ var chevrondown_20_inline_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill="%23212121"/>%0A</svg>%0A';
746
714
 
747
715
  // src/components/Button/Button.tsx
748
716
  import React4 from "react";
@@ -832,11 +800,7 @@ var Button_module_default = { primaryButton, standardButton };
832
800
  function Button(props) {
833
801
  const { primary, ...other } = props;
834
802
  const className = primary ? Button_module_default.primaryButton : Button_module_default.standardButton;
835
- return /* @__PURE__ */ React4.createElement("button", {
836
- ...other,
837
- className,
838
- type: "button"
839
- });
803
+ return /* @__PURE__ */ React4.createElement("button", { ...other, className, type: "button" });
840
804
  }
841
805
 
842
806
  // src/components/StatusDialog/TaskStatus.tsx
@@ -871,76 +835,22 @@ function TaskStatus({ task }) {
871
835
  const restartTask = () => {
872
836
  cloudpack.restartTask({ id: task.id, inputPath: task.inputPath });
873
837
  };
874
- return /* @__PURE__ */ React5.createElement("div", {
875
- className: TaskStatus_module_default.root
876
- }, /* @__PURE__ */ React5.createElement("div", {
877
- className: getHeaderClassName(task)
878
- }, /* @__PURE__ */ React5.createElement("button", {
879
- className: TaskStatus_module_default.expandButton,
880
- onClick: () => setIsOpen(!showContent),
881
- "aria-label": showContent ? `Minimize ${name2}` : `Expand ${name2}`
882
- }, /* @__PURE__ */ React5.createElement("img", {
883
- className: cx2(TaskStatus_module_default.expandIcon, !showContent && TaskStatus_module_default.collapsed),
884
- src: chevrondown_20_inline_default,
885
- alt: "Chevron down icon"
886
- })), errors?.length === 0 && warnings?.length === 0 && /* @__PURE__ */ React5.createElement("img", {
887
- className: TaskStatus_module_default.errorIcon,
888
- src: success_24_inline_default,
889
- alt: "Success icon"
890
- }), errors?.length > 0 && /* @__PURE__ */ React5.createElement("img", {
891
- className: TaskStatus_module_default.errorIcon,
892
- src: error_24_inline_default,
893
- alt: "Error icon"
894
- }), /* @__PURE__ */ React5.createElement("div", {
895
- className: TaskStatus_module_default.title
896
- }, name2), /* @__PURE__ */ React5.createElement("div", {
897
- className: TaskStatus_module_default.farArea
898
- }, getCompletion(task))), showContent && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
899
- className: TaskStatus_module_default.commands
900
- }, /* @__PURE__ */ React5.createElement(Button, {
901
- onClick: restartTask
902
- }, "Restart task")), /* @__PURE__ */ React5.createElement("div", {
903
- className: TaskStatus_module_default.content
904
- }, /* @__PURE__ */ React5.createElement("div", {
905
- className: TaskStatus_module_default.title
906
- }, "Details"), /* @__PURE__ */ React5.createElement("div", {
907
- className: TaskStatus_module_default.nameValueArea
908
- }, /* @__PURE__ */ React5.createElement("div", {
909
- className: TaskStatus_module_default.name
910
- }, "Input path"), /* @__PURE__ */ React5.createElement("div", {
911
- className: TaskStatus_module_default.value
912
- }, /* @__PURE__ */ React5.createElement("button", {
913
- className: TaskStatus_module_default.linkButton,
914
- onClick: () => open(task.inputPath)
915
- }, task.inputPath), /* @__PURE__ */ React5.createElement("button", {
916
- className: TaskStatus_module_default.linkButton,
917
- onClick: openPackage
918
- }, "(Package.json)"))), /* @__PURE__ */ React5.createElement("div", {
919
- className: TaskStatus_module_default.nameValueArea
920
- }, /* @__PURE__ */ React5.createElement("div", {
921
- className: TaskStatus_module_default.name
922
- }, "Output path"), /* @__PURE__ */ React5.createElement("button", {
923
- className: TaskStatus_module_default.linkButton,
924
- onClick: () => open(task.outputPath)
925
- }, task.outputPath)), errors?.length > 0 && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
926
- className: TaskStatus_module_default.title
927
- }, "Errors"), /* @__PURE__ */ React5.createElement("div", {
928
- className: TaskStatus_module_default.resultItems
929
- }, errors.map((error3, index) => /* @__PURE__ */ React5.createElement(TaskResultItem, {
930
- key: index,
931
- item: error3,
932
- projectPath: task.inputPath,
933
- index: index + 1
934
- })))), warnings?.length > 0 && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
935
- className: TaskStatus_module_default.title
936
- }, "Warnings"), /* @__PURE__ */ React5.createElement("div", {
937
- className: TaskStatus_module_default.resultItems
938
- }, warnings.map((warning3, index) => /* @__PURE__ */ React5.createElement(TaskResultItem, {
939
- key: index,
940
- item: warning3,
941
- projectPath: task.inputPath,
942
- index: index + 1
943
- })))))));
838
+ return /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.root }, /* @__PURE__ */ React5.createElement("div", { className: getHeaderClassName(task) }, /* @__PURE__ */ React5.createElement(
839
+ "button",
840
+ {
841
+ className: TaskStatus_module_default.expandButton,
842
+ onClick: () => setIsOpen(!showContent),
843
+ "aria-label": showContent ? `Minimize ${name2}` : `Expand ${name2}`
844
+ },
845
+ /* @__PURE__ */ React5.createElement(
846
+ "img",
847
+ {
848
+ className: cx2(TaskStatus_module_default.expandIcon, !showContent && TaskStatus_module_default.collapsed),
849
+ src: chevrondown_20_inline_default,
850
+ alt: "Chevron down icon"
851
+ }
852
+ )
853
+ ), errors?.length === 0 && warnings?.length === 0 && /* @__PURE__ */ React5.createElement("img", { className: TaskStatus_module_default.errorIcon, src: success_24_inline_default, alt: "Success icon" }), errors?.length > 0 && /* @__PURE__ */ React5.createElement("img", { className: TaskStatus_module_default.errorIcon, src: error_24_inline_default, alt: "Error icon" }), /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.title }, name2), /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.farArea }, getCompletion(task))), showContent && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.commands }, /* @__PURE__ */ React5.createElement(Button, { onClick: restartTask }, "Restart task")), /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.content }, /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.title }, "Details"), /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.nameValueArea }, /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.name }, "Input path"), /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.value }, /* @__PURE__ */ React5.createElement("button", { className: TaskStatus_module_default.linkButton, onClick: () => open(task.inputPath) }, task.inputPath), /* @__PURE__ */ React5.createElement("button", { className: TaskStatus_module_default.linkButton, onClick: openPackage }, "(Package.json)"))), /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.nameValueArea }, /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.name }, "Output path"), /* @__PURE__ */ React5.createElement("button", { className: TaskStatus_module_default.linkButton, onClick: () => open(task.outputPath) }, task.outputPath)), errors?.length > 0 && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.title }, "Errors"), /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.resultItems }, errors.map((error3, index) => /* @__PURE__ */ React5.createElement(TaskResultItem, { key: index, item: error3, projectPath: task.inputPath, index: index + 1 })))), warnings?.length > 0 && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.title }, "Warnings"), /* @__PURE__ */ React5.createElement("div", { className: TaskStatus_module_default.resultItems }, warnings.map((warning3, index) => /* @__PURE__ */ React5.createElement(TaskResultItem, { key: index, item: warning3, projectPath: task.inputPath, index: index + 1 })))))));
944
854
  }
945
855
  function getHeaderClassName(task) {
946
856
  return cx2(TaskStatus_module_default.header, {
@@ -983,12 +893,7 @@ function TaskList({ searchFilter }) {
983
893
  const details = useStatusDetails();
984
894
  const tasks = (details.tasks || []).sort(sortTasks);
985
895
  searchFilter = searchFilter?.toLowerCase();
986
- return /* @__PURE__ */ React6.createElement("div", {
987
- className: TaskList_module_default.root
988
- }, tasks.filter(({ name: name2 }) => !searchFilter || name2.toLowerCase().includes(searchFilter)).map((task) => /* @__PURE__ */ React6.createElement(TaskStatus, {
989
- key: task.name,
990
- task
991
- })));
896
+ return /* @__PURE__ */ React6.createElement("div", { className: TaskList_module_default.root }, tasks.filter(({ name: name2 }) => !searchFilter || name2.toLowerCase().includes(searchFilter)).map((task) => /* @__PURE__ */ React6.createElement(TaskStatus, { key: task.name, task })));
992
897
  }
993
898
  function sortTasks(a, b) {
994
899
  const aStatus = a.status === "pending" ? 1 : 0;
@@ -1107,7 +1012,7 @@ var titleArea2 = "ggUoTSSSfk-DialogmodulecsstitleArea";
1107
1012
  var Dialog_module_default = { closeButton, commands: commands2, dialog, overlay, title: title2, titleArea: titleArea2 };
1108
1013
 
1109
1014
  // src/images/dismiss-16-filled.inline.svg
1110
- var dismiss_16_filled_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMzk3MDUgMi41NTM3OUwyLjQ2OTY3IDIuNDY5NjdDMi43MzU5NCAyLjIwMzQgMy4xNTI2IDIuMTc5MiAzLjQ0NjIxIDIuMzk3MDVMMy41MzAzMyAyLjQ2OTY3TDggNi45MzlMMTIuNDY5NyAyLjQ2OTY3QzEyLjc2MjYgMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTMuNTMwMyAyLjQ2OTY3QzEzLjgyMzIgMi43NjI1NiAxMy44MjMyIDMuMjM3NDQgMTMuNTMwMyAzLjUzMDMzTDkuMDYxIDhMMTMuNTMwMyAxMi40Njk3QzEzLjc5NjYgMTIuNzM1OSAxMy44MjA4IDEzLjE1MjYgMTMuNjAyOSAxMy40NDYyTDEzLjUzMDMgMTMuNTMwM0MxMy4yNjQxIDEzLjc5NjYgMTIuODQ3NCAxMy44MjA4IDEyLjU1MzggMTMuNjAyOUwxMi40Njk3IDEzLjUzMDNMOCA5LjA2MUwzLjUzMDMzIDEzLjUzMDNDMy4yMzc0NCAxMy44MjMyIDIuNzYyNTYgMTMuODIzMiAyLjQ2OTY3IDEzLjUzMDNDMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTIuNzYyNiAyLjQ2OTY3IDEyLjQ2OTdMNi45MzkgOEwyLjQ2OTY3IDMuNTMwMzNDMi4yMDM0IDMuMjY0MDYgMi4xNzkyIDIuODQ3NCAyLjM5NzA1IDIuNTUzNzlMMi40Njk2NyAyLjQ2OTY3TDIuMzk3MDUgMi41NTM3OVoiIGZpbGw9IiMyMTIxMjEiLz4KPC9zdmc+Cg==";
1015
+ var dismiss_16_filled_inline_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M2.39705 2.55379L2.46967 2.46967C2.73594 2.2034 3.1526 2.1792 3.44621 2.39705L3.53033 2.46967L8 6.939L12.4697 2.46967C12.7626 2.17678 13.2374 2.17678 13.5303 2.46967C13.8232 2.76256 13.8232 3.23744 13.5303 3.53033L9.061 8L13.5303 12.4697C13.7966 12.7359 13.8208 13.1526 13.6029 13.4462L13.5303 13.5303C13.2641 13.7966 12.8474 13.8208 12.5538 13.6029L12.4697 13.5303L8 9.061L3.53033 13.5303C3.23744 13.8232 2.76256 13.8232 2.46967 13.5303C2.17678 13.2374 2.17678 12.7626 2.46967 12.4697L6.939 8L2.46967 3.53033C2.2034 3.26406 2.1792 2.8474 2.39705 2.55379L2.46967 2.46967L2.39705 2.55379Z" fill="%23212121"/>%0A</svg>%0A';
1111
1016
 
1112
1017
  // src/components/Dialog/Dialog.tsx
1113
1018
  function Dialog({ title: title3, style, draggable, onClose, commands: commands3, children }) {
@@ -1115,29 +1020,20 @@ function Dialog({ title: title3, style, draggable, onClose, commands: commands3,
1115
1020
  const draggableTargetRef = useRef2(null);
1116
1021
  const colorAccent = style === "error" ? "rgb(164, 38, 44)" : void 0;
1117
1022
  const cursorDraggable = draggable ? "move" : void 0;
1118
- useDraggable(draggable ? draggableRef : void 0, draggable ? draggableTargetRef : void 0);
1119
- return /* @__PURE__ */ React7.createElement("div", {
1120
- className: Dialog_module_default.overlay
1121
- }, /* @__PURE__ */ React7.createElement("div", {
1122
- ref: draggableRef,
1123
- className: Dialog_module_default.dialog,
1124
- style: { borderTopColor: colorAccent }
1125
- }, /* @__PURE__ */ React7.createElement("div", {
1126
- className: Dialog_module_default.titleArea
1127
- }, /* @__PURE__ */ React7.createElement("div", {
1128
- ref: draggableTargetRef,
1129
- className: Dialog_module_default.title,
1130
- style: { color: colorAccent, cursor: cursorDraggable }
1131
- }, title3), onClose && /* @__PURE__ */ React7.createElement("button", {
1132
- className: Dialog_module_default.closeButton,
1133
- onClick: onClose,
1134
- "aria-label": "Minimize overlay"
1135
- }, /* @__PURE__ */ React7.createElement("img", {
1136
- src: dismiss_16_filled_inline_default,
1137
- alt: ""
1138
- }))), commands3 && /* @__PURE__ */ React7.createElement("div", {
1139
- className: Dialog_module_default.commands
1140
- }, ...commands3), children));
1023
+ useDraggable({
1024
+ enabled: !!draggable,
1025
+ containerElementRef: draggableRef,
1026
+ dragElementRef: draggableTargetRef
1027
+ });
1028
+ return /* @__PURE__ */ React7.createElement("div", { className: Dialog_module_default.overlay }, /* @__PURE__ */ React7.createElement("div", { ref: draggableRef, className: Dialog_module_default.dialog, style: { borderTopColor: colorAccent } }, /* @__PURE__ */ React7.createElement("div", { className: Dialog_module_default.titleArea }, /* @__PURE__ */ React7.createElement(
1029
+ "div",
1030
+ {
1031
+ ref: draggableTargetRef,
1032
+ className: Dialog_module_default.title,
1033
+ style: { color: colorAccent, cursor: cursorDraggable }
1034
+ },
1035
+ title3
1036
+ ), onClose && /* @__PURE__ */ React7.createElement("button", { className: Dialog_module_default.closeButton, onClick: onClose, "aria-label": "Minimize overlay" }, /* @__PURE__ */ React7.createElement("img", { src: dismiss_16_filled_inline_default, alt: "" }))), commands3 && /* @__PURE__ */ React7.createElement("div", { className: Dialog_module_default.commands }, ...commands3), children));
1141
1037
  }
1142
1038
 
1143
1039
  // src/components/StatusDialog/Searchbox.tsx
@@ -1173,13 +1069,7 @@ var Searchbox_module_default = { searchbox };
1173
1069
 
1174
1070
  // src/components/StatusDialog/Searchbox.tsx
1175
1071
  function Searchbox({ value: value3, onChange }) {
1176
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, typeof value3 === "string" && /* @__PURE__ */ React8.createElement("input", {
1177
- type: "text",
1178
- placeholder: "Search",
1179
- className: Searchbox_module_default.searchbox,
1180
- onChange,
1181
- value: value3
1182
- }));
1072
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, typeof value3 === "string" && /* @__PURE__ */ React8.createElement("input", { type: "text", placeholder: "Search", className: Searchbox_module_default.searchbox, onChange, value: value3 }));
1183
1073
  }
1184
1074
 
1185
1075
  // src/components/StatusDialog/StatusDialog.tsx
@@ -1193,23 +1083,19 @@ function StatusDialog({ onClose }) {
1193
1083
  const restartAllTasks = () => {
1194
1084
  cloudpack.restartAllTasks();
1195
1085
  };
1196
- return /* @__PURE__ */ React9.createElement(Dialog, {
1197
- title: "Task results",
1198
- draggable: true,
1199
- onClose,
1200
- commands: [
1201
- /* @__PURE__ */ React9.createElement(Button, {
1202
- primary: true,
1203
- onClick: restartAllTasks,
1204
- key: "1"
1205
- }, "Restart all tasks")
1206
- ]
1207
- }, /* @__PURE__ */ React9.createElement(Searchbox, {
1208
- value: searchFilter,
1209
- onChange: handleSearchChange
1210
- }), /* @__PURE__ */ React9.createElement(TaskList, {
1211
- searchFilter
1212
- }));
1086
+ return /* @__PURE__ */ React9.createElement(
1087
+ Dialog,
1088
+ {
1089
+ title: "Task results",
1090
+ draggable: true,
1091
+ onClose,
1092
+ commands: [
1093
+ /* @__PURE__ */ React9.createElement(Button, { primary: true, onClick: restartAllTasks, key: "1" }, "Restart all tasks")
1094
+ ]
1095
+ },
1096
+ /* @__PURE__ */ React9.createElement(Searchbox, { value: searchFilter, onChange: handleSearchChange }),
1097
+ /* @__PURE__ */ React9.createElement(TaskList, { searchFilter })
1098
+ );
1213
1099
  }
1214
1100
 
1215
1101
  // src/components/ErrorDialog/ErrorDialog.tsx
@@ -1228,47 +1114,22 @@ function PathError(props) {
1228
1114
  const addOverride = () => {
1229
1115
  cloudpack.addOverride({ packageName, importPath, filename });
1230
1116
  };
1231
- return /* @__PURE__ */ React10.createElement("div", {
1232
- className: TaskStatus_module_default.root
1233
- }, /* @__PURE__ */ React10.createElement("div", {
1234
- className: cx3(TaskStatus_module_default.header, TaskStatus_module_default.error)
1235
- }, /* @__PURE__ */ React10.createElement("button", {
1236
- className: TaskStatus_module_default.expandButton,
1237
- onClick: () => setshowContent(!showContent),
1238
- "aria-label": showContent ? `Minimize ${packageName}/${importPath}` : `Expand ${packageName}/${importPath}`
1239
- }, /* @__PURE__ */ React10.createElement("img", {
1240
- className: cx3(TaskStatus_module_default.expandIcon, !showContent && TaskStatus_module_default.collapsed),
1241
- src: chevrondown_20_inline_default,
1242
- alt: "Chevron down icon"
1243
- })), /* @__PURE__ */ React10.createElement("img", {
1244
- className: TaskStatus_module_default.errorIcon,
1245
- src: error_24_inline_default,
1246
- alt: "Error icon"
1247
- }), /* @__PURE__ */ React10.createElement("div", {
1248
- className: TaskStatus_module_default.title
1249
- }, `${packageName}/${importPath}`)), showContent && /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement("div", {
1250
- className: TaskStatus_module_default.commands
1251
- }, fixable && /* @__PURE__ */ React10.createElement(Button, {
1252
- onClick: addOverride
1253
- }, "Add override"), /* @__PURE__ */ React10.createElement(Button, {
1254
- onClick: editConfig
1255
- }, "Edit config file")), /* @__PURE__ */ React10.createElement("div", {
1256
- className: TaskStatus_module_default.content
1257
- }, /* @__PURE__ */ React10.createElement("div", {
1258
- className: TaskStatus_module_default.title
1259
- }, "Details"), /* @__PURE__ */ React10.createElement("div", {
1260
- className: TaskStatus_module_default.nameValueArea
1261
- }, /* @__PURE__ */ React10.createElement("div", {
1262
- className: TaskStatus_module_default.name
1263
- }, "Problem"), /* @__PURE__ */ React10.createElement("div", {
1264
- className: TaskStatus_module_default.value
1265
- }, `A deep import package name: "${packageName}" was imported, but was unrecognized as an exported entry path: "${importPath}".`)), /* @__PURE__ */ React10.createElement("div", {
1266
- className: TaskStatus_module_default.nameValueArea
1267
- }, /* @__PURE__ */ React10.createElement("div", {
1268
- className: TaskStatus_module_default.name
1269
- }, "Solution"), /* @__PURE__ */ React10.createElement("div", {
1270
- className: TaskStatus_module_default.value
1271
- }, fixable ? `Remove the path from the import in your source. (Import from "${packageName}" rather than "${packageName}/${importPath}")` : `Import not found on package. Make sure the import path is valid.`)))));
1117
+ return /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.root }, /* @__PURE__ */ React10.createElement("div", { className: cx3(TaskStatus_module_default.header, TaskStatus_module_default.error) }, /* @__PURE__ */ React10.createElement(
1118
+ "button",
1119
+ {
1120
+ className: TaskStatus_module_default.expandButton,
1121
+ onClick: () => setshowContent(!showContent),
1122
+ "aria-label": showContent ? `Minimize ${packageName}/${importPath}` : `Expand ${packageName}/${importPath}`
1123
+ },
1124
+ /* @__PURE__ */ React10.createElement(
1125
+ "img",
1126
+ {
1127
+ className: cx3(TaskStatus_module_default.expandIcon, !showContent && TaskStatus_module_default.collapsed),
1128
+ src: chevrondown_20_inline_default,
1129
+ alt: "Chevron down icon"
1130
+ }
1131
+ )
1132
+ ), /* @__PURE__ */ React10.createElement("img", { className: TaskStatus_module_default.errorIcon, src: error_24_inline_default, alt: "Error icon" }), /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.title }, `${packageName}/${importPath}`)), showContent && /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.commands }, fixable && /* @__PURE__ */ React10.createElement(Button, { onClick: addOverride }, "Add override"), /* @__PURE__ */ React10.createElement(Button, { onClick: editConfig }, "Edit config file")), /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.content }, /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.title }, "Details"), /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.nameValueArea }, /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.name }, "Problem"), /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.value }, `A deep import package name: "${packageName}" was imported, but was unrecognized as an exported entry path: "${importPath}".`)), /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.nameValueArea }, /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.name }, "Solution"), /* @__PURE__ */ React10.createElement("div", { className: TaskStatus_module_default.value }, fixable ? `Remove the path from the import in your source. (Import from "${packageName}" rather than "${packageName}/${importPath}")` : `Import not found on package. Make sure the import path is valid.`)))));
1272
1133
  }
1273
1134
 
1274
1135
  // src/components/ErrorDialog/ErrorDialog.tsx
@@ -1277,22 +1138,17 @@ function ErrorDialog({ unsupported }) {
1277
1138
  const reload = () => {
1278
1139
  cloudpack.restartAllTasks();
1279
1140
  };
1280
- return /* @__PURE__ */ React11.createElement(Dialog, {
1281
- title: "Found unsupported paths in your project",
1282
- style: "error",
1283
- commands: [
1284
- /* @__PURE__ */ React11.createElement(Button, {
1285
- primary: true,
1286
- onClick: reload,
1287
- key: "1"
1288
- }, "Restart all tasks")
1289
- ]
1290
- }, /* @__PURE__ */ React11.createElement("div", {
1291
- className: TaskList_module_default.root
1292
- }, unsupported.map((data, index) => /* @__PURE__ */ React11.createElement(PathError, {
1293
- ...data,
1294
- key: index
1295
- }))));
1141
+ return /* @__PURE__ */ React11.createElement(
1142
+ Dialog,
1143
+ {
1144
+ title: "Found unsupported paths in your project",
1145
+ style: "error",
1146
+ commands: [
1147
+ /* @__PURE__ */ React11.createElement(Button, { primary: true, onClick: reload, key: "1" }, "Restart all tasks")
1148
+ ]
1149
+ },
1150
+ /* @__PURE__ */ React11.createElement("div", { className: TaskList_module_default.root }, unsupported.map((data, index) => /* @__PURE__ */ React11.createElement(PathError, { ...data, key: index })))
1151
+ );
1296
1152
  }
1297
1153
 
1298
1154
  // src/components/ErrorDialog/useErrorEvents.ts
@@ -1364,13 +1220,7 @@ function StatusOverlay() {
1364
1220
  console.log(`Toggling minimized state to ${!isExpanded}`);
1365
1221
  setIsExpanded(!isExpanded);
1366
1222
  }, [isExpanded]);
1367
- return unsupported.length ? /* @__PURE__ */ React12.createElement(ErrorDialog, {
1368
- unsupported
1369
- }) : isExpanded ? /* @__PURE__ */ React12.createElement(StatusDialog, {
1370
- onClose: toggleMinimized
1371
- }) : /* @__PURE__ */ React12.createElement(StatusBadge, {
1372
- onExpand: toggleMinimized
1373
- });
1223
+ return unsupported.length ? /* @__PURE__ */ React12.createElement(ErrorDialog, { unsupported }) : isExpanded ? /* @__PURE__ */ React12.createElement(StatusDialog, { onClose: toggleMinimized }) : /* @__PURE__ */ React12.createElement(StatusBadge, { onExpand: toggleMinimized });
1374
1224
  }
1375
1225
 
1376
1226
  // src/components/ThemeProvider/ThemeProvider.tsx
@@ -1391,9 +1241,7 @@ var ThemeProvider_module_default = { root: root4 };
1391
1241
 
1392
1242
  // src/components/ThemeProvider/ThemeProvider.tsx
1393
1243
  function ThemeProvider({ children }) {
1394
- return /* @__PURE__ */ React13.createElement("div", {
1395
- className: ThemeProvider_module_default.root
1396
- }, children);
1244
+ return /* @__PURE__ */ React13.createElement("div", { className: ThemeProvider_module_default.root }, children);
1397
1245
  }
1398
1246
 
1399
1247
  // src/index.tsx
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "buildStatus",
3
- "buildId": "d92872b9-78bb-4813-8fad-6dac8102ca66",
3
+ "buildId": "49f14578-7c67-4ac0-bc3b-aa0ca6be7532",
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\": 6293,\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\": 3473,\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/components/StatusBadge/StatusBadge.tsx\": {\n \"bytes\": 2733,\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 },\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\": 2263,\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\": 4795,\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\": 1204,\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\": 1648,\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/Searchbox.module.css\": {\n \"bytes\": 862,\n \"imports\": []\n },\n \"src/components/StatusDialog/Searchbox.tsx\": {\n \"bytes\": 452,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/Searchbox.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytes\": 1134,\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 \"path\": \"src/components/StatusDialog/Searchbox.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytes\": 2731,\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 \"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 },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytes\": 1021,\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\": 3264,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytes\": 1426,\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\": 4112\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytesInOutput\": 1041\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytesInOutput\": 2863\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytesInOutput\": 1937\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytesInOutput\": 3183\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytesInOutput\": 448\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytesInOutput\": 876\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytesInOutput\": 898\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytesInOutput\": 5172\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\": 2117\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\": 1436\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/StatusDialog/Searchbox.tsx\": {\n \"bytesInOutput\": 362\n },\n \"src/components/StatusDialog/Searchbox.module.css\": {\n \"bytesInOutput\": 771\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytesInOutput\": 709\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytesInOutput\": 3043\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytesInOutput\": 2092\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\": 49614\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\": 6293,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/getCookies.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"@ms-cloudpack/data-bus\",\n \"kind\": \"import-statement\",\n \"external\": true\n }\n ]\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytes\": 552,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"src/components/CloudpackProvider/createCloudpackClient.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytes\": 2353,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n }\n ]\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytes\": 3473,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytes\": 866,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytes\": 2875,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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\": \"classnames\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\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\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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\": 2263,\n \"imports\": []\n },\n \"src/components/Button/Button.tsx\": {\n \"bytes\": 360,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"src/components/Button/Button.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytes\": 4795,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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\": \"classnames\",\n \"kind\": \"import-statement\",\n \"external\": true\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\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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\": 1204,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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\": 1710,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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/Searchbox.module.css\": {\n \"bytes\": 862,\n \"imports\": []\n },\n \"src/components/StatusDialog/Searchbox.tsx\": {\n \"bytes\": 452,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"src/components/StatusDialog/Searchbox.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytes\": 1134,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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 \"path\": \"src/components/StatusDialog/Searchbox.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytes\": 2731,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\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\": \"classnames\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n },\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 },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytes\": 1021,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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\": 3264,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"@ms-cloudpack/path-string-parsing\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytes\": 1426,\n \"imports\": [\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react-dom\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\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 {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react-dom\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"@ms-cloudpack/data-bus\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"classnames\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"classnames\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"classnames\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"@ms-cloudpack/path-string-parsing\",\n \"kind\": \"import-statement\",\n \"external\": true\n },\n {\n \"path\": \"react\",\n \"kind\": \"import-statement\",\n \"external\": true\n }\n ],\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\": 366\n },\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytesInOutput\": 317\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytesInOutput\": 4112\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytesInOutput\": 1023\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytesInOutput\": 2801\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytesInOutput\": 1803\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytesInOutput\": 3183\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytesInOutput\": 448\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytesInOutput\": 864\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytesInOutput\": 882\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytesInOutput\": 5034\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytesInOutput\": 1375\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\": 1085\n },\n \"src/images/success-24.inline.svg\": {\n \"bytesInOutput\": 625\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytesInOutput\": 517\n },\n \"src/components/Button/Button.tsx\": {\n \"bytesInOutput\": 298\n },\n \"src/components/Button/Button.module.css\": {\n \"bytesInOutput\": 2117\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\": 1439\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytesInOutput\": 2292\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytesInOutput\": 788\n },\n \"src/components/StatusDialog/Searchbox.tsx\": {\n \"bytesInOutput\": 340\n },\n \"src/components/StatusDialog/Searchbox.module.css\": {\n \"bytesInOutput\": 771\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytesInOutput\": 691\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytesInOutput\": 3003\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytesInOutput\": 2092\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytesInOutput\": 185\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytesInOutput\": 561\n }\n },\n \"bytes\": 48163\n }\n }\n}\n"
12
12
  }
@@ -1,4 +1,4 @@
1
- export declare type CloudpackStatusType = 'unknown' | 'idle' | 'building' | 'success' | 'warning' | 'error' | 'cancelled';
1
+ export type CloudpackStatusType = 'unknown' | 'idle' | 'building' | 'success' | 'warning' | 'error' | 'cancelled';
2
2
  export interface CloudpackStatus {
3
3
  status: 'idle' | 'pending' | 'unknown';
4
4
  remainingTasks: number;
@@ -7,7 +7,11 @@ export function Dialog({ title, style, draggable, onClose, commands, children })
7
7
  const draggableTargetRef = useRef(null);
8
8
  const colorAccent = style === 'error' ? 'rgb(164, 38, 44)' : undefined;
9
9
  const cursorDraggable = draggable ? 'move' : undefined;
10
- useDraggable(draggable ? draggableRef : undefined, draggable ? draggableTargetRef : undefined);
10
+ useDraggable({
11
+ enabled: !!draggable,
12
+ containerElementRef: draggableRef,
13
+ dragElementRef: draggableTargetRef,
14
+ });
11
15
  return (React.createElement("div", { className: styles.overlay },
12
16
  React.createElement("div", { ref: draggableRef, className: styles.dialog, style: { borderTopColor: colorAccent } },
13
17
  React.createElement("div", { className: styles.titleArea },
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,MAAM,MAAM,q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AAK,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,IAErD,KAAK,CACF;gBACL,OAAO,IAAI,CACV,gCAAQ,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,gBAAa,kBAAkB;oBAEpF,6BAAK,GAAG,EAAE,SAAS,EAAE,GAAG,EAAC,EAAE,GAAG,CACvB,CACV,CACG;YACL,QAAQ,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,OAAM,QAAQ,CAAO;YAChE,QAAQ,CACL,CACF,CACP,CAAC;AACJ,CAAC"}
@@ -10,7 +10,7 @@ declare global {
10
10
  };
11
11
  }
12
12
  }
13
- export declare type UnsupportedErrorEvent = {
13
+ export type UnsupportedErrorEvent = {
14
14
  packageName: string;
15
15
  importPath: string;
16
16
  filename?: string;
@@ -7,12 +7,19 @@ export function StatusBadge({ inline, onExpand }) {
7
7
  const rootElementRef = useRef(null);
8
8
  const dragElementRef = useRef(null);
9
9
  const status = useStatus();
10
- useDraggable(rootElementRef, dragElementRef);
11
- if (status.status === 'unknown') {
10
+ const shouldRender = status.status !== 'unknown';
11
+ useDraggable({
12
+ // If we're not yet able to render, don't enable dragging yet.
13
+ // Otherwise the event handlers won't be attached when the component renders.
14
+ enabled: shouldRender && !inline,
15
+ containerElementRef: rootElementRef,
16
+ dragElementRef,
17
+ });
18
+ if (!shouldRender) {
12
19
  return null;
13
20
  }
14
- const badge = (React.createElement("div", { ref: inline ? undefined : rootElementRef, className: getStatusClassName(status, !!inline) },
15
- !inline && (React.createElement("div", { ref: inline ? undefined : dragElementRef, className: styles.gripArea },
21
+ const badge = (React.createElement("div", { ref: rootElementRef, className: getStatusClassName(status, !!inline) },
22
+ !inline && (React.createElement("div", { ref: dragElementRef, className: styles.gripArea },
16
23
  React.createElement("div", { className: styles.grip }),
17
24
  React.createElement("div", { className: styles.grip }))),
18
25
  React.createElement("button", { className: styles.button, onClick: onExpand, "aria-label": "Expand overlay" },
@@ -30,26 +37,26 @@ function getStatusString(status) {
30
37
  }
31
38
  return status.totalErrors === 0 ? 'Success' : 'Errors';
32
39
  }
33
- function getStatusClassName(status, inline) {
40
+ function getStatusClassName({ status, totalTasks, totalErrors, totalWarnings }, inline) {
34
41
  return cx(styles.badge, {
35
42
  [styles.inline]: inline,
36
- [styles.building]: status.status === 'pending',
37
- [styles.success]: status.status === 'idle' && status.totalTasks > 0 && status.totalErrors === 0 && status.totalWarnings === 0,
38
- [styles.error]: status.status === 'idle' && status.totalErrors > 0,
39
- [styles.warning]: status.status === 'idle' && status.totalErrors === 0 && status.totalWarnings > 0,
43
+ [styles.building]: status === 'pending',
44
+ [styles.success]: status === 'idle' && totalTasks > 0 && totalErrors === 0 && totalWarnings === 0,
45
+ [styles.error]: status === 'idle' && totalErrors > 0,
46
+ [styles.warning]: status === 'idle' && totalErrors === 0 && totalWarnings > 0,
40
47
  });
41
48
  }
42
- function getStatsString(status) {
43
- if (status.totalTasks === 0) {
49
+ function getStatsString({ totalTasks, remainingTasks, totalErrors, totalWarnings }) {
50
+ if (totalTasks === 0) {
44
51
  return '';
45
52
  }
46
53
  return [
47
- status.remainingTasks > 0 && `${status.remainingTasks} of ${status.totalTasks} tasks pending`,
48
- status.remainingTasks === 0 && `${status.totalTasks} tasks completed`,
49
- status.totalErrors === 1 && `${status.totalErrors} error`,
50
- status.totalErrors > 1 && `${status.totalErrors} errors`,
51
- status.totalWarnings === 1 && `${status.totalWarnings} warning`,
52
- status.totalWarnings > 1 && `${status.totalWarnings} warnings`,
54
+ remainingTasks > 0 && `${remainingTasks} of ${totalTasks} tasks pending`,
55
+ remainingTasks === 0 && `${totalTasks} tasks completed`,
56
+ totalErrors === 1 && `${totalErrors} error`,
57
+ totalErrors > 1 && `${totalErrors} errors`,
58
+ totalWarnings === 1 && `${totalWarnings} warning`,
59
+ totalWarnings > 1 && `${totalWarnings} warnings`,
53
60
  ]
54
61
  .filter(Boolean)
55
62
  .join(', ');
@@ -1 +1 @@
1
- {"version":3,"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,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"}
@@ -1,4 +1,16 @@
1
1
  import { type RefObject } from 'react';
2
- export declare function useDraggable(containerElementRef?: RefObject<HTMLElement>, dragElementRef?: RefObject<HTMLElement> | undefined): {
2
+ /**
3
+ * Make an element draggable. Note that changing `enabled` or passing different ref objects
4
+ * will trigger reconfiguring the event handlers, but changing `.current` will not.
5
+ * @returns Whether the element is currently being dragged
6
+ */
7
+ export declare function useDraggable(options: {
8
+ /** Whether to enable dragging */
9
+ enabled: boolean;
10
+ /** Element that should be draggable */
11
+ containerElementRef: RefObject<HTMLElement>;
12
+ /** The drag handle element */
13
+ dragElementRef: RefObject<HTMLElement>;
14
+ }): {
3
15
  isDragging: boolean;
4
16
  };
@@ -1,46 +1,51 @@
1
1
  import { useEffect, useState } from 'react';
2
- export function useDraggable(containerElementRef, dragElementRef = containerElementRef) {
2
+ /**
3
+ * Make an element draggable. Note that changing `enabled` or passing different ref objects
4
+ * will trigger reconfiguring the event handlers, but changing `.current` will not.
5
+ * @returns Whether the element is currently being dragged
6
+ */
7
+ export function useDraggable(options) {
8
+ const { enabled, containerElementRef, dragElementRef } = options;
3
9
  const [isDragging, setIsDragging] = useState(false);
4
10
  useEffect(() => {
5
- if (containerElementRef && dragElementRef) {
6
- const moveTarget = containerElementRef.current;
7
- const dragTarget = dragElementRef.current;
8
- if (moveTarget && dragTarget) {
9
- let originalX = 0;
10
- let originalY = 0;
11
- let offset = { x: 0, y: 0 };
12
- const onPointerMove = (event) => {
13
- moveTarget.style.transform = `translate(${offset.x + event.clientX - originalX}px, ${offset.y + event.clientY - originalY}px)`;
14
- };
15
- const onPointerUp = (event) => {
16
- setIsDragging(false);
17
- offset = {
18
- x: offset.x + event.clientX - originalX,
19
- y: offset.y + event.clientY - originalY,
20
- };
21
- dragTarget.releasePointerCapture(event.pointerId);
22
- dragTarget.removeEventListener('pointerup', onPointerUp);
23
- dragTarget.removeEventListener('pointermove', onPointerMove);
24
- event.preventDefault();
25
- };
26
- const onPointerDown = (event) => {
27
- setIsDragging(true);
28
- originalX = event.clientX;
29
- originalY = event.clientY;
30
- dragTarget.setPointerCapture(event.pointerId);
31
- dragTarget.addEventListener('pointerup', onPointerUp);
32
- dragTarget.addEventListener('pointermove', onPointerMove);
33
- event.preventDefault();
34
- };
35
- dragTarget.addEventListener('pointerdown', onPointerDown);
36
- return () => {
37
- dragTarget.removeEventListener('pointerdown', onPointerDown);
38
- dragTarget.removeEventListener('pointermove', onPointerMove);
39
- dragTarget.removeEventListener('pointerup', onPointerUp);
40
- };
41
- }
11
+ const moveTarget = containerElementRef?.current;
12
+ const dragTarget = dragElementRef?.current;
13
+ if (!enabled || !moveTarget || !dragTarget) {
14
+ return;
42
15
  }
43
- }, [containerElementRef, dragElementRef]);
16
+ let originalX = 0;
17
+ let originalY = 0;
18
+ let offset = { x: 0, y: 0 };
19
+ const onPointerMove = (event) => {
20
+ moveTarget.style.transform = `translate(${offset.x + event.clientX - originalX}px, ${offset.y + event.clientY - originalY}px)`;
21
+ };
22
+ const onPointerUp = (event) => {
23
+ setIsDragging(false);
24
+ offset = {
25
+ x: offset.x + event.clientX - originalX,
26
+ y: offset.y + event.clientY - originalY,
27
+ };
28
+ dragTarget.releasePointerCapture(event.pointerId);
29
+ dragTarget.removeEventListener('pointerup', onPointerUp);
30
+ dragTarget.removeEventListener('pointermove', onPointerMove);
31
+ event.preventDefault();
32
+ };
33
+ const onPointerDown = (event) => {
34
+ setIsDragging(true);
35
+ originalX = event.clientX;
36
+ originalY = event.clientY;
37
+ dragTarget.setPointerCapture(event.pointerId);
38
+ dragTarget.addEventListener('pointerup', onPointerUp);
39
+ dragTarget.addEventListener('pointermove', onPointerMove);
40
+ event.preventDefault();
41
+ };
42
+ dragTarget.addEventListener('pointerdown', onPointerDown);
43
+ return () => {
44
+ dragTarget.removeEventListener('pointerdown', onPointerDown);
45
+ dragTarget.removeEventListener('pointermove', onPointerMove);
46
+ dragTarget.removeEventListener('pointerup', onPointerUp);
47
+ };
48
+ }, [enabled, containerElementRef, dragElementRef]);
44
49
  return {
45
50
  isDragging,
46
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDraggable.js","sourceRoot":"","sources":["../../src/hooks/useDraggable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5D,MAAM,UAAU,YAAY,CAAC,mBAA4C,EAAE,cAAc,GAAG,mBAAmB;IAC7G,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,mBAAmB,IAAI,cAAc,EAAE;YACzC,MAAM,UAAU,GAAG,mBAAmB,CAAC,OAAO,CAAC;YAC/C,MAAM,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC;YAE1C,IAAI,UAAU,IAAI,UAAU,EAAE;gBAC5B,IAAI,SAAS,GAAG,CAAC,CAAC;gBAClB,IAAI,SAAS,GAAG,CAAC,CAAC;gBAClB,IAAI,MAAM,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;gBAE5B,MAAM,aAAa,GAAG,CAAC,KAAmB,EAAE,EAAE;oBAC5C,UAAU,CAAC,KAAK,CAAC,SAAS,GAAG,aAAa,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,GAAG,SAAS,OAC5E,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,GAAG,SAC7B,KAAK,CAAC;gBACR,CAAC,CAAC;gBAEF,MAAM,WAAW,GAAG,CAAC,KAAmB,EAAE,EAAE;oBAC1C,aAAa,CAAC,KAAK,CAAC,CAAC;oBACrB,MAAM,GAAG;wBACP,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,GAAG,SAAS;wBACvC,CAAC,EAAE,MAAM,CAAC,CAAC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CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACzD,UAAU,CAAC,mBAAmB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YAE7D,KAAK,CAAC,cAAc,EAAE,CAAC;QACzB,CAAC,CAAC;QAEF,MAAM,aAAa,GAAG,CAAC,KAAmB,EAAE,EAAE;YAC5C,aAAa,CAAC,IAAI,CAAC,CAAC;YACpB,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC;YAC1B,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC;YAC1B,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YAC9C,UAAU,CAAC,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACtD,UAAU,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YAC1D,KAAK,CAAC,cAAc,EAAE,CAAC;QACzB,CAAC,CAAC;QAEF,UAAU,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QAE1D,OAAO,GAAG,EAAE;YACV,UAAU,CAAC,mBAAmB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YAC7D,UAAU,CAAC,mBAAmB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YAC7D,UAAU,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QAC3D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,EAAE,cAAc,CAAC,CAAC,CAAC;IAEnD,OAAO;QACL,UAAU;KACX,CAAC;AACJ,CAAC"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.6"
8
+ "packageVersion": "7.34.0"
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.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "The Cloudpack overlay ux.",
5
5
  "license": "MIT",
6
6
  "types": "./lib/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "lint": "cloudpack-scripts lint"
23
23
  },
24
24
  "dependencies": {
25
- "@ms-cloudpack/data-bus": "^0.1.0",
26
- "@ms-cloudpack/path-string-parsing": "^1.0.0",
25
+ "@ms-cloudpack/data-bus": "^0.1.1",
26
+ "@ms-cloudpack/path-string-parsing": "^1.0.1",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2",
29
29
  "classnames": "^2.3.1"
@@ -32,15 +32,10 @@
32
32
  "@ms-cloudpack/eslint-config-base": "*",
33
33
  "@ms-cloudpack/scripts": "*",
34
34
  "@types/react-dom": "17.0.18",
35
- "@types/react": "17.0.52"
35
+ "@types/react": "17.0.53"
36
36
  },
37
37
  "files": [
38
- "/lib",
38
+ "lib/**/!(*.test.*)",
39
39
  "/dist"
40
- ],
41
- "beachball": {
42
- "disallowedChangeTypes": [
43
- "major"
44
- ]
45
- }
40
+ ]
46
41
  }