@ms-cloudpack/overlay 0.13.8 → 0.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-esm/lib/index.js +165 -165
- package/dist/browser-esm/lib/index.js.map +2 -2
- package/dist/browser-esm/ori-input.json +9 -9
- package/dist/browser-esm/ori-output.json +139 -139
- package/dist/browser-esm/result.json +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// src/index.tsx
|
|
1
|
+
// packages/overlay/src/index.tsx
|
|
2
2
|
import React15 from "react";
|
|
3
3
|
import ReactDOM from "react-dom";
|
|
4
4
|
|
|
5
|
-
// src/components/CloudpackProvider/CloudpackProvider.tsx
|
|
5
|
+
// packages/overlay/src/components/CloudpackProvider/CloudpackProvider.tsx
|
|
6
6
|
import React, { createContext, useState, useContext } from "react";
|
|
7
7
|
|
|
8
|
-
// src/components/CloudpackProvider/getCookies.ts
|
|
8
|
+
// packages/overlay/src/components/CloudpackProvider/getCookies.ts
|
|
9
9
|
function getCookies() {
|
|
10
10
|
return document.cookie.split(";").map((s9) => s9.split("=")).reduce((current, nextValue) => {
|
|
11
11
|
const name2 = nextValue[0]?.trim();
|
|
@@ -17,7 +17,7 @@ function getCookies() {
|
|
|
17
17
|
}, {});
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
// src/components/CloudpackProvider/createCloudpackClient.ts
|
|
20
|
+
// packages/overlay/src/components/CloudpackProvider/createCloudpackClient.ts
|
|
21
21
|
import { createDataBus } from "@ms-cloudpack/data-bus";
|
|
22
22
|
function createCloudpackClient() {
|
|
23
23
|
const cookies = getCookies();
|
|
@@ -173,7 +173,7 @@ function createCloudpackClient() {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
// src/components/CloudpackProvider/CloudpackProvider.tsx
|
|
176
|
+
// packages/overlay/src/components/CloudpackProvider/CloudpackProvider.tsx
|
|
177
177
|
var CloudpackContext = createContext(null);
|
|
178
178
|
function CloudpackProvider({ children }) {
|
|
179
179
|
const [client] = useState(createCloudpackClient);
|
|
@@ -181,13 +181,13 @@ function CloudpackProvider({ children }) {
|
|
|
181
181
|
}
|
|
182
182
|
var useCloudpack = () => useContext(CloudpackContext);
|
|
183
183
|
|
|
184
|
-
// src/components/StatusOverlay/StatusOverlay.tsx
|
|
184
|
+
// packages/overlay/src/components/StatusOverlay/StatusOverlay.tsx
|
|
185
185
|
import React13, { useCallback as useCallback2, useState as useState6, useRef as useRef3 } from "react";
|
|
186
186
|
|
|
187
|
-
// src/components/StatusBadge/StatusBadge.tsx
|
|
187
|
+
// packages/overlay/src/components/StatusBadge/StatusBadge.tsx
|
|
188
188
|
import React2, { useRef } from "react";
|
|
189
189
|
|
|
190
|
-
// src/hooks/useDraggable.ts
|
|
190
|
+
// packages/overlay/src/hooks/useDraggable.ts
|
|
191
191
|
import { useEffect, useState as useState2 } from "react";
|
|
192
192
|
function useDraggable(options) {
|
|
193
193
|
const { enabled, containerElementRef, dragElementRef } = options;
|
|
@@ -236,8 +236,8 @@ function useDraggable(options) {
|
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
// src/components/StatusBadge/StatusBadge.module.css
|
|
240
|
-
var compiledModule = `.
|
|
239
|
+
// packages/overlay/src/components/StatusBadge/StatusBadge.module.css
|
|
240
|
+
var compiledModule = `.uHuWYfdxg-StatusBadgemodulecssfixedOverlay {
|
|
241
241
|
position: fixed;
|
|
242
242
|
pointer-events: none;
|
|
243
243
|
background: transparent;
|
|
@@ -249,7 +249,7 @@ var compiledModule = `.mOWPxtXY-StatusBadgemodulecssfixedOverlay {
|
|
|
249
249
|
overflow: hidden;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
.
|
|
252
|
+
.uHuWYfdxg-StatusBadgemodulecssgripArea {
|
|
253
253
|
display: flex;
|
|
254
254
|
flex-direction: row;
|
|
255
255
|
gap: 2px;
|
|
@@ -259,18 +259,18 @@ var compiledModule = `.mOWPxtXY-StatusBadgemodulecssfixedOverlay {
|
|
|
259
259
|
margin-right: -4px;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
.
|
|
262
|
+
.uHuWYfdxg-StatusBadgemodulecssgrip {
|
|
263
263
|
width: 2px;
|
|
264
264
|
height: 100%;
|
|
265
265
|
background: rgba(0, 0, 0, 0.2);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
.
|
|
268
|
+
.uHuWYfdxg-StatusBadgemodulecsscontentSurface {
|
|
269
269
|
pointer-events: auto;
|
|
270
270
|
display: contents;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
.
|
|
273
|
+
.uHuWYfdxg-StatusBadgemodulecssbadge {
|
|
274
274
|
position: absolute;
|
|
275
275
|
bottom: 4px;
|
|
276
276
|
right: 4px;
|
|
@@ -292,7 +292,7 @@ var compiledModule = `.mOWPxtXY-StatusBadgemodulecssfixedOverlay {
|
|
|
292
292
|
transition: background-color 0.2s ease-in-out;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
.
|
|
295
|
+
.uHuWYfdxg-StatusBadgemodulecssinline {
|
|
296
296
|
flex-shrink: 0;
|
|
297
297
|
position: relative;
|
|
298
298
|
bottom: auto;
|
|
@@ -303,27 +303,27 @@ var compiledModule = `.mOWPxtXY-StatusBadgemodulecssfixedOverlay {
|
|
|
303
303
|
padding-left: 8px;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
.
|
|
306
|
+
.uHuWYfdxg-StatusBadgemodulecssbuilding {
|
|
307
307
|
background: #bbb;
|
|
308
308
|
color: #000;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
.
|
|
311
|
+
.uHuWYfdxg-StatusBadgemodulecsssuccess {
|
|
312
312
|
background: #7ad17a;
|
|
313
313
|
color: #000;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
.
|
|
316
|
+
.uHuWYfdxg-StatusBadgemodulecsswarning {
|
|
317
317
|
background: #e4e68b;
|
|
318
318
|
color: #000;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
.
|
|
321
|
+
.uHuWYfdxg-StatusBadgemodulecsserror {
|
|
322
322
|
background: #ffb9b9;
|
|
323
323
|
color: #000;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
.
|
|
326
|
+
.uHuWYfdxg-StatusBadgemodulecssbutton {
|
|
327
327
|
cursor: pointer;
|
|
328
328
|
background: inherit;
|
|
329
329
|
border: none;
|
|
@@ -340,11 +340,11 @@ var compiledModule = `.mOWPxtXY-StatusBadgemodulecssfixedOverlay {
|
|
|
340
340
|
font-family: inherit;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
.
|
|
343
|
+
.uHuWYfdxg-StatusBadgemodulecssbutton:hover {
|
|
344
344
|
filter: invert(0.1);
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
.
|
|
347
|
+
.uHuWYfdxg-StatusBadgemodulecssvalue {
|
|
348
348
|
font-weight: 600;
|
|
349
349
|
background: rgba(255, 255, 255, 0.4);
|
|
350
350
|
box-shadow: 2px 2px 3px -1px rgba(0, 0, 0, 0.15) inset;
|
|
@@ -352,33 +352,33 @@ var compiledModule = `.mOWPxtXY-StatusBadgemodulecssfixedOverlay {
|
|
|
352
352
|
border-radius: 3px;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
.
|
|
355
|
+
.uHuWYfdxg-StatusBadgemodulecssmetric {
|
|
356
356
|
margin-left: 2px;
|
|
357
357
|
}
|
|
358
358
|
`;
|
|
359
359
|
var s = document.createElement("style");
|
|
360
|
-
s.setAttribute("data-sourceFile", "src/components/StatusBadge/StatusBadge.module.css");
|
|
360
|
+
s.setAttribute("data-sourceFile", "packages/overlay/src/components/StatusBadge/StatusBadge.module.css");
|
|
361
361
|
s.appendChild(document.createTextNode(compiledModule));
|
|
362
362
|
document.head.appendChild(s);
|
|
363
|
-
var badge = "
|
|
364
|
-
var building = "
|
|
365
|
-
var button = "
|
|
366
|
-
var contentSurface = "
|
|
367
|
-
var error = "
|
|
368
|
-
var fixedOverlay = "
|
|
369
|
-
var grip = "
|
|
370
|
-
var gripArea = "
|
|
371
|
-
var inline = "
|
|
372
|
-
var metric = "
|
|
373
|
-
var success = "
|
|
374
|
-
var value = "
|
|
375
|
-
var warning = "
|
|
363
|
+
var badge = "uHuWYfdxg-StatusBadgemodulecssbadge";
|
|
364
|
+
var building = "uHuWYfdxg-StatusBadgemodulecssbuilding";
|
|
365
|
+
var button = "uHuWYfdxg-StatusBadgemodulecssbutton";
|
|
366
|
+
var contentSurface = "uHuWYfdxg-StatusBadgemodulecsscontentSurface";
|
|
367
|
+
var error = "uHuWYfdxg-StatusBadgemodulecsserror";
|
|
368
|
+
var fixedOverlay = "uHuWYfdxg-StatusBadgemodulecssfixedOverlay";
|
|
369
|
+
var grip = "uHuWYfdxg-StatusBadgemodulecssgrip";
|
|
370
|
+
var gripArea = "uHuWYfdxg-StatusBadgemodulecssgripArea";
|
|
371
|
+
var inline = "uHuWYfdxg-StatusBadgemodulecssinline";
|
|
372
|
+
var metric = "uHuWYfdxg-StatusBadgemodulecssmetric";
|
|
373
|
+
var success = "uHuWYfdxg-StatusBadgemodulecsssuccess";
|
|
374
|
+
var value = "uHuWYfdxg-StatusBadgemodulecssvalue";
|
|
375
|
+
var warning = "uHuWYfdxg-StatusBadgemodulecsswarning";
|
|
376
376
|
var StatusBadge_module_default = { badge, building, button, contentSurface, error, fixedOverlay, grip, gripArea, inline, metric, success, value, warning };
|
|
377
377
|
|
|
378
|
-
// src/components/StatusBadge/StatusBadge.tsx
|
|
378
|
+
// packages/overlay/src/components/StatusBadge/StatusBadge.tsx
|
|
379
379
|
import { default as cx } from "classnames";
|
|
380
380
|
|
|
381
|
-
// src/components/CloudpackProvider/useStatus.ts
|
|
381
|
+
// packages/overlay/src/components/CloudpackProvider/useStatus.ts
|
|
382
382
|
import { useEffect as useEffect2, useState as useState3 } from "react";
|
|
383
383
|
var defaultStatus = {
|
|
384
384
|
status: "unknown",
|
|
@@ -396,7 +396,7 @@ var useStatus = () => {
|
|
|
396
396
|
return status;
|
|
397
397
|
};
|
|
398
398
|
|
|
399
|
-
// src/components/StatusBadge/StatusBadge.tsx
|
|
399
|
+
// packages/overlay/src/components/StatusBadge/StatusBadge.tsx
|
|
400
400
|
function StatusBadge({ inline: inline2, onExpand, pageLoadTime }) {
|
|
401
401
|
const rootElementRef = useRef(null);
|
|
402
402
|
const dragElementRef = useRef(null);
|
|
@@ -446,25 +446,25 @@ function getStatsString({ totalTasks, remainingTasks, totalErrors, totalWarnings
|
|
|
446
446
|
].filter(Boolean).join(", ");
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
// src/components/StatusDialog/StatusDialog.tsx
|
|
449
|
+
// packages/overlay/src/components/StatusDialog/StatusDialog.tsx
|
|
450
450
|
import React9, { useCallback } from "react";
|
|
451
451
|
|
|
452
|
-
// src/components/StatusDialog/TaskList.tsx
|
|
452
|
+
// packages/overlay/src/components/StatusDialog/TaskList.tsx
|
|
453
453
|
import React6 from "react";
|
|
454
454
|
|
|
455
|
-
// src/components/StatusDialog/TaskStatus.tsx
|
|
455
|
+
// packages/overlay/src/components/StatusDialog/TaskStatus.tsx
|
|
456
456
|
import React5 from "react";
|
|
457
457
|
|
|
458
|
-
// src/components/StatusDialog/TaskResultItem.tsx
|
|
458
|
+
// packages/overlay/src/components/StatusDialog/TaskResultItem.tsx
|
|
459
459
|
import React3 from "react";
|
|
460
460
|
|
|
461
|
-
// src/components/StatusDialog/TaskResultItem.module.css
|
|
462
|
-
var compiledModule2 = `.
|
|
461
|
+
// packages/overlay/src/components/StatusDialog/TaskResultItem.module.css
|
|
462
|
+
var compiledModule2 = `.FSsdmcQZfc-TaskResultItemmodulecssroot {
|
|
463
463
|
display: flex;
|
|
464
464
|
background: #f5f5f5;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
.
|
|
467
|
+
.FSsdmcQZfc-TaskResultItemmodulecssstatusBar {
|
|
468
468
|
flex-shrink: 0;
|
|
469
469
|
border-radius: 4px;
|
|
470
470
|
width: 4px;
|
|
@@ -472,7 +472,7 @@ var compiledModule2 = `.mGnoEIJOyo-TaskResultItemmodulecssroot {
|
|
|
472
472
|
box-shadow: 2px 0 4px 0 rgb(220 0 0 / 20%);
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
.
|
|
475
|
+
.FSsdmcQZfc-TaskResultItemmodulecsscontent {
|
|
476
476
|
padding: 8px;
|
|
477
477
|
display: flex;
|
|
478
478
|
flex-grow: 1;
|
|
@@ -480,7 +480,7 @@ var compiledModule2 = `.mGnoEIJOyo-TaskResultItemmodulecssroot {
|
|
|
480
480
|
flex-direction: column;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.
|
|
483
|
+
.FSsdmcQZfc-TaskResultItemmodulecsstitleArea {
|
|
484
484
|
display: flex;
|
|
485
485
|
align-items: center;
|
|
486
486
|
flex-direction: row;
|
|
@@ -488,7 +488,7 @@ var compiledModule2 = `.mGnoEIJOyo-TaskResultItemmodulecssroot {
|
|
|
488
488
|
padding: 4px 0;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
.
|
|
491
|
+
.FSsdmcQZfc-TaskResultItemmodulecssfile {
|
|
492
492
|
display: inline-flex;
|
|
493
493
|
margin: 0;
|
|
494
494
|
padding: 0;
|
|
@@ -504,36 +504,36 @@ var compiledModule2 = `.mGnoEIJOyo-TaskResultItemmodulecssroot {
|
|
|
504
504
|
cursor: pointer;
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
-
.
|
|
507
|
+
.FSsdmcQZfc-TaskResultItemmodulecssfile:hover {
|
|
508
508
|
text-decoration: underline;
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
.
|
|
511
|
+
.FSsdmcQZfc-TaskResultItemmodulecssactionArea {
|
|
512
512
|
display: flex;
|
|
513
513
|
flex-direction: row;
|
|
514
514
|
gap: 8px;
|
|
515
515
|
flex-shrink: 0;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
.
|
|
518
|
+
.FSsdmcQZfc-TaskResultItemmodulecsstext {
|
|
519
519
|
word-wrap: break-word;
|
|
520
520
|
color: #333;
|
|
521
521
|
}
|
|
522
522
|
`;
|
|
523
523
|
var s2 = document.createElement("style");
|
|
524
|
-
s2.setAttribute("data-sourceFile", "src/components/StatusDialog/TaskResultItem.module.css");
|
|
524
|
+
s2.setAttribute("data-sourceFile", "packages/overlay/src/components/StatusDialog/TaskResultItem.module.css");
|
|
525
525
|
s2.appendChild(document.createTextNode(compiledModule2));
|
|
526
526
|
document.head.appendChild(s2);
|
|
527
|
-
var actionArea = "
|
|
528
|
-
var content = "
|
|
529
|
-
var file = "
|
|
530
|
-
var root = "
|
|
531
|
-
var statusBar = "
|
|
532
|
-
var text = "
|
|
533
|
-
var titleArea = "
|
|
527
|
+
var actionArea = "FSsdmcQZfc-TaskResultItemmodulecssactionArea";
|
|
528
|
+
var content = "FSsdmcQZfc-TaskResultItemmodulecsscontent";
|
|
529
|
+
var file = "FSsdmcQZfc-TaskResultItemmodulecssfile";
|
|
530
|
+
var root = "FSsdmcQZfc-TaskResultItemmodulecssroot";
|
|
531
|
+
var statusBar = "FSsdmcQZfc-TaskResultItemmodulecssstatusBar";
|
|
532
|
+
var text = "FSsdmcQZfc-TaskResultItemmodulecsstext";
|
|
533
|
+
var titleArea = "FSsdmcQZfc-TaskResultItemmodulecsstitleArea";
|
|
534
534
|
var TaskResultItem_module_default = { actionArea, content, file, root, statusBar, text, titleArea };
|
|
535
535
|
|
|
536
|
-
// src/components/StatusDialog/TaskResultItem.tsx
|
|
536
|
+
// packages/overlay/src/components/StatusDialog/TaskResultItem.tsx
|
|
537
537
|
function TaskResultItem({ item, projectPath, index }) {
|
|
538
538
|
const service = useCloudpack();
|
|
539
539
|
const openSource = (ev) => {
|
|
@@ -552,14 +552,14 @@ function TaskResultItem({ item, projectPath, index }) {
|
|
|
552
552
|
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))));
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
-
// src/components/StatusDialog/TaskStatus.module.css
|
|
556
|
-
var compiledModule3 = `.
|
|
555
|
+
// packages/overlay/src/components/StatusDialog/TaskStatus.module.css
|
|
556
|
+
var compiledModule3 = `.WGSBzuMGA-TaskStatusmodulecssroot {
|
|
557
557
|
border: 1px solid #ccc;
|
|
558
558
|
border-radius: 3px;
|
|
559
559
|
box-shadow: 0 0 12px -6px rgba(0, 0, 0, 0.25);
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
.
|
|
562
|
+
.WGSBzuMGA-TaskStatusmodulecssheader {
|
|
563
563
|
display: flex;
|
|
564
564
|
gap: 8px;
|
|
565
565
|
padding: 8px 16px;
|
|
@@ -568,7 +568,7 @@ var compiledModule3 = `.vweafQQjU-TaskStatusmodulecssroot {
|
|
|
568
568
|
line-height: 1;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
.
|
|
571
|
+
.WGSBzuMGA-TaskStatusmodulecsscommands {
|
|
572
572
|
display: flex;
|
|
573
573
|
flex-direction: row;
|
|
574
574
|
gap: 8px;
|
|
@@ -578,30 +578,30 @@ var compiledModule3 = `.vweafQQjU-TaskStatusmodulecssroot {
|
|
|
578
578
|
padding: 0 16px;
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
.
|
|
581
|
+
.WGSBzuMGA-TaskStatusmodulecssexpandButton {
|
|
582
582
|
background: transparent;
|
|
583
583
|
border: none;
|
|
584
584
|
border-radius: 4px;
|
|
585
585
|
width: 32px;
|
|
586
586
|
height: 32px;
|
|
587
587
|
}
|
|
588
|
-
.
|
|
588
|
+
.WGSBzuMGA-TaskStatusmodulecssexpandButton:hover {
|
|
589
589
|
background: rgba(0, 0, 0, 0.1);
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
.
|
|
592
|
+
.WGSBzuMGA-TaskStatusmodulecssexpandButton:active {
|
|
593
593
|
background: rgba(0, 0, 0, 0.2);
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
.
|
|
596
|
+
.WGSBzuMGA-TaskStatusmodulecssexpandIcon {
|
|
597
597
|
transition: transform 0.1s ease-in-out;
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
-
.
|
|
600
|
+
.WGSBzuMGA-TaskStatusmodulecsscollapsed {
|
|
601
601
|
transform: rotate(-90deg);
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
-
.
|
|
604
|
+
.WGSBzuMGA-TaskStatusmodulecssfarArea {
|
|
605
605
|
line-height: 1;
|
|
606
606
|
font-size: 13px;
|
|
607
607
|
text-align: end;
|
|
@@ -615,17 +615,17 @@ var compiledModule3 = `.vweafQQjU-TaskStatusmodulecssroot {
|
|
|
615
615
|
flex-direction: row;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
.
|
|
618
|
+
.WGSBzuMGA-TaskStatusmodulecsstitle {
|
|
619
619
|
font-size: 16px;
|
|
620
620
|
font-weight: 500;
|
|
621
621
|
color: #333;
|
|
622
622
|
}
|
|
623
623
|
|
|
624
|
-
.
|
|
624
|
+
.WGSBzuMGA-TaskStatusmodulecsssubTitle {
|
|
625
625
|
font-size: 13px;
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
.
|
|
628
|
+
.WGSBzuMGA-TaskStatusmodulecsscontent {
|
|
629
629
|
border-top: 1px solid #ccc;
|
|
630
630
|
background: #fafafa;
|
|
631
631
|
padding: 8px 16px;
|
|
@@ -634,38 +634,38 @@ var compiledModule3 = `.vweafQQjU-TaskStatusmodulecssroot {
|
|
|
634
634
|
gap: 8px;
|
|
635
635
|
}
|
|
636
636
|
|
|
637
|
-
.
|
|
637
|
+
.WGSBzuMGA-TaskStatusmodulecssresultItems {
|
|
638
638
|
display: flex;
|
|
639
639
|
flex-direction: column;
|
|
640
640
|
gap: 8px;
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
-
.
|
|
643
|
+
.WGSBzuMGA-TaskStatusmodulecsserror {
|
|
644
644
|
background: #ffe9e9;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
-
.
|
|
647
|
+
.WGSBzuMGA-TaskStatusmodulecsssuccess {
|
|
648
648
|
background: #e9f9e9;
|
|
649
649
|
}
|
|
650
650
|
|
|
651
|
-
.
|
|
651
|
+
.WGSBzuMGA-TaskStatusmodulecsswarning {
|
|
652
652
|
background: #fff9e9;
|
|
653
653
|
}
|
|
654
654
|
|
|
655
|
-
.
|
|
655
|
+
.WGSBzuMGA-TaskStatusmodulecssname {
|
|
656
656
|
font-size: 12px;
|
|
657
657
|
font-weight: 600;
|
|
658
658
|
text-transform: uppercase;
|
|
659
659
|
}
|
|
660
660
|
|
|
661
|
-
.
|
|
661
|
+
.WGSBzuMGA-TaskStatusmodulecssvalue {
|
|
662
662
|
display: flex;
|
|
663
663
|
flex-direction: column;
|
|
664
664
|
font-size: 14px;
|
|
665
665
|
color: #333;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
.
|
|
668
|
+
.WGSBzuMGA-TaskStatusmodulecsslinkButton {
|
|
669
669
|
display: inline-flex;
|
|
670
670
|
align-items: flex-start;
|
|
671
671
|
text-align: start;
|
|
@@ -683,50 +683,50 @@ var compiledModule3 = `.vweafQQjU-TaskStatusmodulecssroot {
|
|
|
683
683
|
cursor: pointer;
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
.
|
|
686
|
+
.WGSBzuMGA-TaskStatusmodulecsslinkButton:hover {
|
|
687
687
|
text-decoration: underline;
|
|
688
688
|
}
|
|
689
689
|
`;
|
|
690
690
|
var s3 = document.createElement("style");
|
|
691
|
-
s3.setAttribute("data-sourceFile", "src/components/StatusDialog/TaskStatus.module.css");
|
|
691
|
+
s3.setAttribute("data-sourceFile", "packages/overlay/src/components/StatusDialog/TaskStatus.module.css");
|
|
692
692
|
s3.appendChild(document.createTextNode(compiledModule3));
|
|
693
693
|
document.head.appendChild(s3);
|
|
694
|
-
var collapsed = "
|
|
695
|
-
var commands = "
|
|
696
|
-
var content2 = "
|
|
697
|
-
var error2 = "
|
|
698
|
-
var expandButton = "
|
|
699
|
-
var expandIcon = "
|
|
700
|
-
var farArea = "
|
|
701
|
-
var header = "
|
|
702
|
-
var linkButton = "
|
|
703
|
-
var name = "
|
|
704
|
-
var resultItems = "
|
|
705
|
-
var root2 = "
|
|
706
|
-
var subTitle = "
|
|
707
|
-
var success2 = "
|
|
708
|
-
var title = "
|
|
709
|
-
var value2 = "
|
|
710
|
-
var warning2 = "
|
|
694
|
+
var collapsed = "WGSBzuMGA-TaskStatusmodulecsscollapsed";
|
|
695
|
+
var commands = "WGSBzuMGA-TaskStatusmodulecsscommands";
|
|
696
|
+
var content2 = "WGSBzuMGA-TaskStatusmodulecsscontent";
|
|
697
|
+
var error2 = "WGSBzuMGA-TaskStatusmodulecsserror";
|
|
698
|
+
var expandButton = "WGSBzuMGA-TaskStatusmodulecssexpandButton";
|
|
699
|
+
var expandIcon = "WGSBzuMGA-TaskStatusmodulecssexpandIcon";
|
|
700
|
+
var farArea = "WGSBzuMGA-TaskStatusmodulecssfarArea";
|
|
701
|
+
var header = "WGSBzuMGA-TaskStatusmodulecssheader";
|
|
702
|
+
var linkButton = "WGSBzuMGA-TaskStatusmodulecsslinkButton";
|
|
703
|
+
var name = "WGSBzuMGA-TaskStatusmodulecssname";
|
|
704
|
+
var resultItems = "WGSBzuMGA-TaskStatusmodulecssresultItems";
|
|
705
|
+
var root2 = "WGSBzuMGA-TaskStatusmodulecssroot";
|
|
706
|
+
var subTitle = "WGSBzuMGA-TaskStatusmodulecsssubTitle";
|
|
707
|
+
var success2 = "WGSBzuMGA-TaskStatusmodulecsssuccess";
|
|
708
|
+
var title = "WGSBzuMGA-TaskStatusmodulecsstitle";
|
|
709
|
+
var value2 = "WGSBzuMGA-TaskStatusmodulecssvalue";
|
|
710
|
+
var warning2 = "WGSBzuMGA-TaskStatusmodulecsswarning";
|
|
711
711
|
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 };
|
|
712
712
|
|
|
713
|
-
// src/components/StatusDialog/TaskStatus.tsx
|
|
713
|
+
// packages/overlay/src/components/StatusDialog/TaskStatus.tsx
|
|
714
714
|
import { default as cx2 } from "classnames";
|
|
715
715
|
|
|
716
|
-
// src/images/error-24.inline.svg
|
|
716
|
+
// packages/overlay/src/images/error-24.inline.svg
|
|
717
717
|
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';
|
|
718
718
|
|
|
719
|
-
// src/images/success-24.inline.svg
|
|
719
|
+
// packages/overlay/src/images/success-24.inline.svg
|
|
720
720
|
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';
|
|
721
721
|
|
|
722
|
-
// src/images/chevrondown-20.inline.svg
|
|
722
|
+
// packages/overlay/src/images/chevrondown-20.inline.svg
|
|
723
723
|
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';
|
|
724
724
|
|
|
725
|
-
// src/components/Button/Button.tsx
|
|
725
|
+
// packages/overlay/src/components/Button/Button.tsx
|
|
726
726
|
import React4 from "react";
|
|
727
727
|
|
|
728
|
-
// src/components/Button/Button.module.css
|
|
729
|
-
var compiledModule4 = `.
|
|
728
|
+
// packages/overlay/src/components/Button/Button.module.css
|
|
729
|
+
var compiledModule4 = `.RpmxvThKZI-ButtonmodulecssstandardButton {
|
|
730
730
|
outline: transparent;
|
|
731
731
|
position: relative;
|
|
732
732
|
font-family: inherit;
|
|
@@ -747,21 +747,21 @@ var compiledModule4 = `.CCnBgacfaMc-ButtonmodulecssstandardButton {
|
|
|
747
747
|
user-select: none;
|
|
748
748
|
}
|
|
749
749
|
|
|
750
|
-
.
|
|
750
|
+
.RpmxvThKZI-ButtonmodulecssstandardButton:active {
|
|
751
751
|
background-color: rgb(237, 235, 233);
|
|
752
752
|
color: rgb(32, 31, 30);
|
|
753
753
|
}
|
|
754
754
|
|
|
755
|
-
.
|
|
755
|
+
.RpmxvThKZI-ButtonmodulecssstandardButton:hover {
|
|
756
756
|
background-color: rgb(243, 242, 241);
|
|
757
757
|
color: rgb(32, 31, 30);
|
|
758
758
|
}
|
|
759
759
|
|
|
760
|
-
.
|
|
760
|
+
.RpmxvThKZI-ButtonmodulecssstandardButton:focus {
|
|
761
761
|
border: 3px solid rgb(0, 0, 0);
|
|
762
762
|
}
|
|
763
763
|
|
|
764
|
-
.
|
|
764
|
+
.RpmxvThKZI-ButtonmodulecssprimaryButton {
|
|
765
765
|
outline: transparent;
|
|
766
766
|
position: relative;
|
|
767
767
|
font-family: inherit;
|
|
@@ -782,38 +782,38 @@ var compiledModule4 = `.CCnBgacfaMc-ButtonmodulecssstandardButton {
|
|
|
782
782
|
user-select: none;
|
|
783
783
|
}
|
|
784
784
|
|
|
785
|
-
.
|
|
785
|
+
.RpmxvThKZI-ButtonmodulecssprimaryButton:active {
|
|
786
786
|
background-color: rgb(0, 90, 158);
|
|
787
787
|
border: 1px solid rgb(0, 90, 158);
|
|
788
788
|
color: rgb(255, 255, 255);
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
-
.
|
|
791
|
+
.RpmxvThKZI-ButtonmodulecssprimaryButton:hover {
|
|
792
792
|
background-color: rgb(16, 110, 190);
|
|
793
793
|
border: 1px solid rgb(16, 110, 190);
|
|
794
794
|
color: rgb(255, 255, 255);
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
.
|
|
797
|
+
.RpmxvThKZI-ButtonmodulecssprimaryButton:focus {
|
|
798
798
|
border: 3px solid rgb(0, 0, 0);
|
|
799
799
|
}
|
|
800
800
|
`;
|
|
801
801
|
var s4 = document.createElement("style");
|
|
802
|
-
s4.setAttribute("data-sourceFile", "src/components/Button/Button.module.css");
|
|
802
|
+
s4.setAttribute("data-sourceFile", "packages/overlay/src/components/Button/Button.module.css");
|
|
803
803
|
s4.appendChild(document.createTextNode(compiledModule4));
|
|
804
804
|
document.head.appendChild(s4);
|
|
805
|
-
var primaryButton = "
|
|
806
|
-
var standardButton = "
|
|
805
|
+
var primaryButton = "RpmxvThKZI-ButtonmodulecssprimaryButton";
|
|
806
|
+
var standardButton = "RpmxvThKZI-ButtonmodulecssstandardButton";
|
|
807
807
|
var Button_module_default = { primaryButton, standardButton };
|
|
808
808
|
|
|
809
|
-
// src/components/Button/Button.tsx
|
|
809
|
+
// packages/overlay/src/components/Button/Button.tsx
|
|
810
810
|
function Button(props) {
|
|
811
811
|
const { primary, ...other } = props;
|
|
812
812
|
const className = primary ? Button_module_default.primaryButton : Button_module_default.standardButton;
|
|
813
813
|
return /* @__PURE__ */ React4.createElement("button", { ...other, className, type: "button" });
|
|
814
814
|
}
|
|
815
815
|
|
|
816
|
-
// src/components/StatusDialog/TaskStatus.tsx
|
|
816
|
+
// packages/overlay/src/components/StatusDialog/TaskStatus.tsx
|
|
817
817
|
function getCompletion(task) {
|
|
818
818
|
if (task.status === "pending") {
|
|
819
819
|
return "Running";
|
|
@@ -870,7 +870,7 @@ function getHeaderClassName(task) {
|
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
// src/components/CloudpackProvider/useStatusDetails.ts
|
|
873
|
+
// packages/overlay/src/components/CloudpackProvider/useStatusDetails.ts
|
|
874
874
|
import { useEffect as useEffect3, useState as useState4 } from "react";
|
|
875
875
|
var useStatusDetails = () => {
|
|
876
876
|
const service = useCloudpack();
|
|
@@ -879,8 +879,8 @@ var useStatusDetails = () => {
|
|
|
879
879
|
return details;
|
|
880
880
|
};
|
|
881
881
|
|
|
882
|
-
// src/components/StatusDialog/TaskList.module.css
|
|
883
|
-
var compiledModule5 = `.
|
|
882
|
+
// packages/overlay/src/components/StatusDialog/TaskList.module.css
|
|
883
|
+
var compiledModule5 = `.ZnVPBoZiOc-TaskListmodulecssroot {
|
|
884
884
|
flex-grow: 1;
|
|
885
885
|
overflow: auto;
|
|
886
886
|
border-top: 1px solid #ccc;
|
|
@@ -892,13 +892,13 @@ var compiledModule5 = `.lTlVbGXBQHs-TaskListmodulecssroot {
|
|
|
892
892
|
}
|
|
893
893
|
`;
|
|
894
894
|
var s5 = document.createElement("style");
|
|
895
|
-
s5.setAttribute("data-sourceFile", "src/components/StatusDialog/TaskList.module.css");
|
|
895
|
+
s5.setAttribute("data-sourceFile", "packages/overlay/src/components/StatusDialog/TaskList.module.css");
|
|
896
896
|
s5.appendChild(document.createTextNode(compiledModule5));
|
|
897
897
|
document.head.appendChild(s5);
|
|
898
|
-
var root3 = "
|
|
898
|
+
var root3 = "ZnVPBoZiOc-TaskListmodulecssroot";
|
|
899
899
|
var TaskList_module_default = { root: root3 };
|
|
900
900
|
|
|
901
|
-
// src/components/StatusDialog/TaskList.tsx
|
|
901
|
+
// packages/overlay/src/components/StatusDialog/TaskList.tsx
|
|
902
902
|
function TaskList({ searchFilter }) {
|
|
903
903
|
const details = useStatusDetails();
|
|
904
904
|
const tasks = (details.tasks || []).sort(sortTasks);
|
|
@@ -919,11 +919,11 @@ function sortTasks(a, b) {
|
|
|
919
919
|
return a.name < b.name ? -1 : 1;
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
-
// src/components/Dialog/Dialog.tsx
|
|
922
|
+
// packages/overlay/src/components/Dialog/Dialog.tsx
|
|
923
923
|
import { default as React7, useRef as useRef2 } from "react";
|
|
924
924
|
|
|
925
|
-
// src/components/Dialog/Dialog.module.css
|
|
926
|
-
var compiledModule6 = `.
|
|
925
|
+
// packages/overlay/src/components/Dialog/Dialog.module.css
|
|
926
|
+
var compiledModule6 = `.XZLLsVjNatw-Dialogmodulecssoverlay {
|
|
927
927
|
background: rgba(0, 0, 0, 0.1);
|
|
928
928
|
border: 1px solid black;
|
|
929
929
|
position: fixed;
|
|
@@ -946,7 +946,7 @@ var compiledModule6 = `.ggUoTSSSfk-Dialogmodulecssoverlay {
|
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
.
|
|
949
|
+
.XZLLsVjNatw-Dialogmodulecsscommands {
|
|
950
950
|
display: flex;
|
|
951
951
|
flex-direction: row;
|
|
952
952
|
gap: 8px;
|
|
@@ -956,7 +956,7 @@ var compiledModule6 = `.ggUoTSSSfk-Dialogmodulecssoverlay {
|
|
|
956
956
|
padding: 0 20px;
|
|
957
957
|
}
|
|
958
958
|
|
|
959
|
-
.
|
|
959
|
+
.XZLLsVjNatw-Dialogmodulecssdialog {
|
|
960
960
|
animation: fade-in 0.1s ease-in-out;
|
|
961
961
|
width: 80vw;
|
|
962
962
|
align-self: stretch;
|
|
@@ -973,7 +973,7 @@ var compiledModule6 = `.ggUoTSSSfk-Dialogmodulecssoverlay {
|
|
|
973
973
|
outline: transparent solid 3px;
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
-
.
|
|
976
|
+
.XZLLsVjNatw-DialogmodulecsstitleArea {
|
|
977
977
|
display: flex;
|
|
978
978
|
flex-direction: row;
|
|
979
979
|
align-items: center;
|
|
@@ -981,7 +981,7 @@ var compiledModule6 = `.ggUoTSSSfk-Dialogmodulecssoverlay {
|
|
|
981
981
|
gap: 8px;
|
|
982
982
|
}
|
|
983
983
|
|
|
984
|
-
.
|
|
984
|
+
.XZLLsVjNatw-DialogmodulecsscloseButton {
|
|
985
985
|
display: flex;
|
|
986
986
|
align-items: center;
|
|
987
987
|
justify-content: center;
|
|
@@ -994,15 +994,15 @@ var compiledModule6 = `.ggUoTSSSfk-Dialogmodulecssoverlay {
|
|
|
994
994
|
border-radius: 4px;
|
|
995
995
|
}
|
|
996
996
|
|
|
997
|
-
.
|
|
997
|
+
.XZLLsVjNatw-DialogmodulecsscloseButton:hover {
|
|
998
998
|
background: rgba(0, 0, 0, 0.1);
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
|
-
.
|
|
1001
|
+
.XZLLsVjNatw-DialogmodulecsscloseButton:active {
|
|
1002
1002
|
background: rgba(0, 0, 0, 0.2);
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
|
-
.
|
|
1005
|
+
.XZLLsVjNatw-Dialogmodulecsstitle {
|
|
1006
1006
|
flex-grow: 1;
|
|
1007
1007
|
font-size: 20px;
|
|
1008
1008
|
font-weight: 600;
|
|
@@ -1010,21 +1010,21 @@ var compiledModule6 = `.ggUoTSSSfk-Dialogmodulecssoverlay {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
`;
|
|
1012
1012
|
var s6 = document.createElement("style");
|
|
1013
|
-
s6.setAttribute("data-sourceFile", "src/components/Dialog/Dialog.module.css");
|
|
1013
|
+
s6.setAttribute("data-sourceFile", "packages/overlay/src/components/Dialog/Dialog.module.css");
|
|
1014
1014
|
s6.appendChild(document.createTextNode(compiledModule6));
|
|
1015
1015
|
document.head.appendChild(s6);
|
|
1016
|
-
var closeButton = "
|
|
1017
|
-
var commands2 = "
|
|
1018
|
-
var dialog = "
|
|
1019
|
-
var overlay = "
|
|
1020
|
-
var title2 = "
|
|
1021
|
-
var titleArea2 = "
|
|
1016
|
+
var closeButton = "XZLLsVjNatw-DialogmodulecsscloseButton";
|
|
1017
|
+
var commands2 = "XZLLsVjNatw-Dialogmodulecsscommands";
|
|
1018
|
+
var dialog = "XZLLsVjNatw-Dialogmodulecssdialog";
|
|
1019
|
+
var overlay = "XZLLsVjNatw-Dialogmodulecssoverlay";
|
|
1020
|
+
var title2 = "XZLLsVjNatw-Dialogmodulecsstitle";
|
|
1021
|
+
var titleArea2 = "XZLLsVjNatw-DialogmodulecsstitleArea";
|
|
1022
1022
|
var Dialog_module_default = { closeButton, commands: commands2, dialog, overlay, title: title2, titleArea: titleArea2 };
|
|
1023
1023
|
|
|
1024
|
-
// src/images/dismiss-16-filled.inline.svg
|
|
1024
|
+
// packages/overlay/src/images/dismiss-16-filled.inline.svg
|
|
1025
1025
|
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';
|
|
1026
1026
|
|
|
1027
|
-
// src/components/Dialog/Dialog.tsx
|
|
1027
|
+
// packages/overlay/src/components/Dialog/Dialog.tsx
|
|
1028
1028
|
function Dialog({ title: title3, style, draggable, onClose, commands: commands3, children }) {
|
|
1029
1029
|
const draggableRef = useRef2(null);
|
|
1030
1030
|
const draggableTargetRef = useRef2(null);
|
|
@@ -1046,11 +1046,11 @@ function Dialog({ title: title3, style, draggable, onClose, commands: commands3,
|
|
|
1046
1046
|
), 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));
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
|
-
// src/components/StatusDialog/Searchbox.tsx
|
|
1049
|
+
// packages/overlay/src/components/StatusDialog/Searchbox.tsx
|
|
1050
1050
|
import React8 from "react";
|
|
1051
1051
|
|
|
1052
|
-
// src/components/StatusDialog/Searchbox.module.css
|
|
1053
|
-
var compiledModule7 = `.
|
|
1052
|
+
// packages/overlay/src/components/StatusDialog/Searchbox.module.css
|
|
1053
|
+
var compiledModule7 = `.aJeqJtvaag-Searchboxmodulecsssearchbox {
|
|
1054
1054
|
position: absolute;
|
|
1055
1055
|
font-size: 14px;
|
|
1056
1056
|
font-weight: 400;
|
|
@@ -1071,18 +1071,18 @@ var compiledModule7 = `.QFosMXkA-Searchboxmodulecsssearchbox {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
`;
|
|
1073
1073
|
var s7 = document.createElement("style");
|
|
1074
|
-
s7.setAttribute("data-sourceFile", "src/components/StatusDialog/Searchbox.module.css");
|
|
1074
|
+
s7.setAttribute("data-sourceFile", "packages/overlay/src/components/StatusDialog/Searchbox.module.css");
|
|
1075
1075
|
s7.appendChild(document.createTextNode(compiledModule7));
|
|
1076
1076
|
document.head.appendChild(s7);
|
|
1077
|
-
var searchbox = "
|
|
1077
|
+
var searchbox = "aJeqJtvaag-Searchboxmodulecsssearchbox";
|
|
1078
1078
|
var Searchbox_module_default = { searchbox };
|
|
1079
1079
|
|
|
1080
|
-
// src/components/StatusDialog/Searchbox.tsx
|
|
1080
|
+
// packages/overlay/src/components/StatusDialog/Searchbox.tsx
|
|
1081
1081
|
function Searchbox({ value: value3, onChange }) {
|
|
1082
1082
|
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 }));
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
|
-
// src/components/StatusDialog/StatusDialog.tsx
|
|
1085
|
+
// packages/overlay/src/components/StatusDialog/StatusDialog.tsx
|
|
1086
1086
|
function StatusDialog({ onClose }) {
|
|
1087
1087
|
const cloudpack = useCloudpack();
|
|
1088
1088
|
const [searchFilter, setSearchFilter] = React9.useState("");
|
|
@@ -1108,10 +1108,10 @@ function StatusDialog({ onClose }) {
|
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
// src/components/ErrorDialog/ErrorDialog.tsx
|
|
1111
|
+
// packages/overlay/src/components/ErrorDialog/ErrorDialog.tsx
|
|
1112
1112
|
import { default as React11 } from "react";
|
|
1113
1113
|
|
|
1114
|
-
// src/components/ErrorDialog/PathError.tsx
|
|
1114
|
+
// packages/overlay/src/components/ErrorDialog/PathError.tsx
|
|
1115
1115
|
import React10 from "react";
|
|
1116
1116
|
import { default as cx3 } from "classnames";
|
|
1117
1117
|
function PathError(props) {
|
|
@@ -1142,7 +1142,7 @@ function PathError(props) {
|
|
|
1142
1142
|
), /* @__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.`)))));
|
|
1143
1143
|
}
|
|
1144
1144
|
|
|
1145
|
-
// src/components/ErrorDialog/ErrorDialog.tsx
|
|
1145
|
+
// packages/overlay/src/components/ErrorDialog/ErrorDialog.tsx
|
|
1146
1146
|
function ErrorDialog({ unsupported }) {
|
|
1147
1147
|
const cloudpack = useCloudpack();
|
|
1148
1148
|
const reload = () => {
|
|
@@ -1161,7 +1161,7 @@ function ErrorDialog({ unsupported }) {
|
|
|
1161
1161
|
);
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
1164
|
-
// src/components/ErrorDialog/useErrorEvents.ts
|
|
1164
|
+
// packages/overlay/src/components/ErrorDialog/useErrorEvents.ts
|
|
1165
1165
|
import { useEffect as useEffect4, useState as useState5 } from "react";
|
|
1166
1166
|
import { parseImportString } from "@ms-cloudpack/path-string-parsing";
|
|
1167
1167
|
var reasonIsRecord = (event) => {
|
|
@@ -1214,7 +1214,7 @@ var useErrorEvents = () => {
|
|
|
1214
1214
|
return errorEvents;
|
|
1215
1215
|
};
|
|
1216
1216
|
|
|
1217
|
-
// src/hooks/usePageLoadTimeReporter.ts
|
|
1217
|
+
// packages/overlay/src/hooks/usePageLoadTimeReporter.ts
|
|
1218
1218
|
import React12 from "react";
|
|
1219
1219
|
function usePageLoadTimeReporter() {
|
|
1220
1220
|
const [pageLoadTime, setPageLoadTime] = React12.useState();
|
|
@@ -1231,7 +1231,7 @@ function usePageLoadTimeReporter() {
|
|
|
1231
1231
|
return pageLoadTime;
|
|
1232
1232
|
}
|
|
1233
1233
|
|
|
1234
|
-
// src/components/StatusOverlay/StatusOverlay.tsx
|
|
1234
|
+
// packages/overlay/src/components/StatusOverlay/StatusOverlay.tsx
|
|
1235
1235
|
function StatusOverlay() {
|
|
1236
1236
|
const pageLoadTime = usePageLoadTimeReporter();
|
|
1237
1237
|
const [isExpanded, setIsExpanded] = useState6(false);
|
|
@@ -1251,28 +1251,28 @@ function StatusOverlay() {
|
|
|
1251
1251
|
return unsupported.length ? /* @__PURE__ */ React13.createElement(ErrorDialog, { unsupported }) : isExpanded ? /* @__PURE__ */ React13.createElement(StatusDialog, { onClose: toggleMinimized }) : /* @__PURE__ */ React13.createElement(StatusBadge, { onExpand: toggleMinimized, pageLoadTime });
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
1254
|
+
// packages/overlay/src/components/ThemeProvider/ThemeProvider.tsx
|
|
1255
1255
|
import React14 from "react";
|
|
1256
1256
|
|
|
1257
|
-
// src/components/ThemeProvider/ThemeProvider.module.css
|
|
1258
|
-
var compiledModule8 = `.
|
|
1257
|
+
// packages/overlay/src/components/ThemeProvider/ThemeProvider.module.css
|
|
1258
|
+
var compiledModule8 = `.ASWLklJWA-ThemeProvidermodulecssroot {
|
|
1259
1259
|
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans',
|
|
1260
1260
|
'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
1261
1261
|
}
|
|
1262
1262
|
`;
|
|
1263
1263
|
var s8 = document.createElement("style");
|
|
1264
|
-
s8.setAttribute("data-sourceFile", "src/components/ThemeProvider/ThemeProvider.module.css");
|
|
1264
|
+
s8.setAttribute("data-sourceFile", "packages/overlay/src/components/ThemeProvider/ThemeProvider.module.css");
|
|
1265
1265
|
s8.appendChild(document.createTextNode(compiledModule8));
|
|
1266
1266
|
document.head.appendChild(s8);
|
|
1267
|
-
var root4 = "
|
|
1267
|
+
var root4 = "ASWLklJWA-ThemeProvidermodulecssroot";
|
|
1268
1268
|
var ThemeProvider_module_default = { root: root4 };
|
|
1269
1269
|
|
|
1270
|
-
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
1270
|
+
// packages/overlay/src/components/ThemeProvider/ThemeProvider.tsx
|
|
1271
1271
|
function ThemeProvider({ children }) {
|
|
1272
1272
|
return /* @__PURE__ */ React14.createElement("div", { className: ThemeProvider_module_default.root }, children);
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
|
-
// src/index.tsx
|
|
1275
|
+
// packages/overlay/src/index.tsx
|
|
1276
1276
|
var overlayRootDivId = "cloudpack-overlay-root";
|
|
1277
1277
|
var rootDiv = document.createElement("div");
|
|
1278
1278
|
rootDiv.id = overlayRootDivId;
|