@ms-cloudpack/overlay 0.1.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +31 -1
- package/CHANGELOG.md +18 -2
- package/dist/ori-input.json +23 -0
- package/dist/ori-output.json +10 -0
- package/dist/overlay.d.ts +1 -0
- package/lib/components/Button/Button.d.ts +4 -0
- package/lib/components/Button/Button.js +8 -0
- package/lib/components/Button/Button.js.map +1 -0
- package/lib/components/CloudpackProvider/createCloudpackClient.d.ts +1 -0
- package/lib/components/CloudpackProvider/createCloudpackClient.js +4 -0
- package/lib/components/CloudpackProvider/createCloudpackClient.js.map +1 -1
- package/lib/components/StatusDialog/StatusDialog.js +8 -0
- package/lib/components/StatusDialog/StatusDialog.js.map +1 -1
- package/package.json +5 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
"name": "@ms-cloudpack/overlay",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Thu, 29 Sep 2022
|
|
5
|
+
"date": "Thu, 29 Sep 2022 22:52:34 GMT",
|
|
6
|
+
"tag": "@ms-cloudpack/overlay_v0.3.0",
|
|
7
|
+
"version": "0.3.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "dzearing@microsoft.com",
|
|
12
|
+
"package": "@ms-cloudpack/overlay",
|
|
13
|
+
"commit": "bfa648e140287db65fd3e5f5bb72a6a546426f16",
|
|
14
|
+
"comment": "Adding a browser pre-bundled entry for the overlay."
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 29 Sep 2022 17:46:30 GMT",
|
|
21
|
+
"tag": "@ms-cloudpack/overlay_v0.2.0",
|
|
22
|
+
"version": "0.2.0",
|
|
23
|
+
"comments": {
|
|
24
|
+
"minor": [
|
|
25
|
+
{
|
|
26
|
+
"author": "dake.3601@gmail.com",
|
|
27
|
+
"package": "@ms-cloudpack/overlay",
|
|
28
|
+
"commit": "f0de08abd03f62eae342bb646a7a912b913050eb",
|
|
29
|
+
"comment": "Reload all tasks"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Thu, 29 Sep 2022 08:13:15 GMT",
|
|
6
36
|
"tag": "@ms-cloudpack/overlay_v0.1.3",
|
|
7
37
|
"version": "0.1.3",
|
|
8
38
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
# Change Log - @ms-cloudpack/overlay
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu, 29 Sep 2022
|
|
3
|
+
This log was last generated on Thu, 29 Sep 2022 22:52:34 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.3.0
|
|
8
|
+
|
|
9
|
+
Thu, 29 Sep 2022 22:52:34 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Adding a browser pre-bundled entry for the overlay. (dzearing@microsoft.com)
|
|
14
|
+
|
|
15
|
+
## 0.2.0
|
|
16
|
+
|
|
17
|
+
Thu, 29 Sep 2022 17:46:30 GMT
|
|
18
|
+
|
|
19
|
+
### Minor changes
|
|
20
|
+
|
|
21
|
+
- Reload all tasks (dake.3601@gmail.com)
|
|
22
|
+
|
|
7
23
|
## 0.1.3
|
|
8
24
|
|
|
9
|
-
Thu, 29 Sep 2022 08:
|
|
25
|
+
Thu, 29 Sep 2022 08:13:15 GMT
|
|
10
26
|
|
|
11
27
|
### Patches
|
|
12
28
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"absWorkingDir": "/home/runner/work/cloudpack/cloudpack/packages/overlay",
|
|
3
|
+
"outbase": ".",
|
|
4
|
+
"outdir": "/home/runner/work/cloudpack/cloudpack/packages/overlay/dist",
|
|
5
|
+
"entryPoints": {},
|
|
6
|
+
"external": [
|
|
7
|
+
"@ms-cloudpack/data-bus",
|
|
8
|
+
"react",
|
|
9
|
+
"react-dom",
|
|
10
|
+
"classnames",
|
|
11
|
+
"@ms-cloudpack/eslint-config-base",
|
|
12
|
+
"@ms-cloudpack/scripts",
|
|
13
|
+
"@types/react-dom",
|
|
14
|
+
"@types/react"
|
|
15
|
+
],
|
|
16
|
+
"splitting": true,
|
|
17
|
+
"metafile": true,
|
|
18
|
+
"define": {
|
|
19
|
+
"global": "window",
|
|
20
|
+
"process.env.NODE_ENV": "\"dev\""
|
|
21
|
+
},
|
|
22
|
+
"minify": false
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "buildStatus",
|
|
3
|
+
"buildId": "c9bcd198-08f7-4777-b19a-948a194a02e0",
|
|
4
|
+
"buildStatus": "complete",
|
|
5
|
+
"internalError": null,
|
|
6
|
+
"warnings": [],
|
|
7
|
+
"errors": [],
|
|
8
|
+
"outputFilePaths": [],
|
|
9
|
+
"metafile": "{\n \"inputs\": {\n },\n \"outputs\": {\n }\n}\n"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styles from './Button.module.css';
|
|
3
|
+
export function Button(props) {
|
|
4
|
+
const { primary, ...other } = props;
|
|
5
|
+
const className = primary ? styles.primaryButton : styles.standardButton;
|
|
6
|
+
return React.createElement("button", { ...other, className: className, type: 'button' });
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,UAAU,MAAM,CAAC,KAA4E;IACjG,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC;IACzE,OAAO,mCAAY,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,GAAI,CAAC;AACrE,CAAC"}
|
|
@@ -102,6 +102,9 @@ export function createCloudpackClient() {
|
|
|
102
102
|
function open(options) {
|
|
103
103
|
sendMessage('open', options);
|
|
104
104
|
}
|
|
105
|
+
function restartTasks() {
|
|
106
|
+
sendMessage('restartTasks', {});
|
|
107
|
+
}
|
|
105
108
|
// Start the connection.
|
|
106
109
|
openConnection();
|
|
107
110
|
// Return the public API.
|
|
@@ -111,6 +114,7 @@ export function createCloudpackClient() {
|
|
|
111
114
|
open,
|
|
112
115
|
openSource,
|
|
113
116
|
subscribe,
|
|
117
|
+
restartTasks,
|
|
114
118
|
};
|
|
115
119
|
}
|
|
116
120
|
//# sourceMappingURL=createCloudpackClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCloudpackClient.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/createCloudpackClient.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"createCloudpackClient.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/createCloudpackClient.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AA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C,CAAC;gBACpC,MAAM;aACP;YAED,KAAK,QAAQ,CAAC,CAAC;gBACb,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACzB,MAAM;aACP;SACF;IACH,CAAC;IAED;;OAEG;IACH,SAAS,SAAS,CAAC,IAAc,EAAE,QAAgD;QACjF,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC;QAEzC,OAAO,GAAG,CAAC,SAAS,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,SAAS,QAAQ,CAAC,IAAc;QAC9B,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC;QAEzC,OAAO,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAClC,CAAC;IAED,SAAS,UAAU,CAAC,OAAiF;QACnG,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,SAAS,IAAI,CAAC,OAAoD;QAChE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,SAAS,YAAY;QACnB,WAAW,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAClC,CAAC;IAED,wBAAwB;IACxB,cAAc,EAAE,CAAC;IAEjB,yBAAyB;IACzB,OAAO;QACL,OAAO;QACP,QAAQ;QACR,IAAI;QACJ,UAAU;QACV,SAAS;QACT,YAAY;KACb,CAAC;AACJ,CAAC"}
|
|
@@ -3,16 +3,24 @@ import styles from './StatusDialog.module.css';
|
|
|
3
3
|
import { useDraggable } from '../../hooks/useDraggable.js';
|
|
4
4
|
import CloseIcon from '../../images/dismiss-16-filled.inline.svg';
|
|
5
5
|
import { TaskList } from './TaskList.js';
|
|
6
|
+
import { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';
|
|
7
|
+
import { Button } from '../Button/Button.js';
|
|
6
8
|
function StatusDialogUnmemoized({ onClose }) {
|
|
7
9
|
const draggableRef = useRef(null);
|
|
8
10
|
const draggableTargetRef = useRef(null);
|
|
11
|
+
const cloudpack = useCloudpack();
|
|
9
12
|
useDraggable(draggableRef, draggableTargetRef);
|
|
13
|
+
const restartTasks = () => {
|
|
14
|
+
cloudpack.restartTasks();
|
|
15
|
+
};
|
|
10
16
|
return (React.createElement("div", { className: styles.overlay },
|
|
11
17
|
React.createElement("div", { ref: draggableRef, className: styles.dialog },
|
|
12
18
|
React.createElement("div", { className: styles.titleArea },
|
|
13
19
|
React.createElement("div", { ref: draggableTargetRef, className: styles.title }, "Task results"),
|
|
14
20
|
React.createElement("button", { className: styles.closeButton, onClick: onClose },
|
|
15
21
|
React.createElement("img", { src: CloseIcon, alt: "" }))),
|
|
22
|
+
React.createElement("div", { className: styles.commands },
|
|
23
|
+
React.createElement(Button, { primary: true, onClick: restartTasks }, "Restart all tasks")),
|
|
16
24
|
React.createElement(TaskList, null))));
|
|
17
25
|
}
|
|
18
26
|
export const StatusDialog = React.memo(StatusDialogUnmemoized, (prev, next) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusDialog.js","sourceRoot":"","sources":["../../../src/components/StatusDialog/StatusDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,SAAS,MAAM,2CAA2C,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"StatusDialog.js","sourceRoot":"","sources":["../../../src/components/StatusDialog/StatusDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,EAAE,YA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AAE;IAC5E,OAAO,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,CAAC;AACvC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/overlay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "The Cloudpack overlay ux.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./lib/index.d.ts",
|
|
11
|
+
"browser": "./dist/lib/index.js",
|
|
11
12
|
"import": "./lib/index.js"
|
|
12
13
|
}
|
|
13
14
|
},
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
"api": "cloudpack-scripts api",
|
|
17
18
|
"build:watch": "cloudpack-scripts build-watch",
|
|
18
19
|
"build": "cloudpack-scripts build",
|
|
20
|
+
"bundle": "cloudpack bundle",
|
|
19
21
|
"lint:update": "cloudpack-scripts lint-update",
|
|
20
22
|
"lint": "cloudpack-scripts lint"
|
|
21
23
|
},
|
|
@@ -32,6 +34,7 @@
|
|
|
32
34
|
"@types/react": "17.0.50"
|
|
33
35
|
},
|
|
34
36
|
"files": [
|
|
35
|
-
"/lib"
|
|
37
|
+
"/lib",
|
|
38
|
+
"/dist"
|
|
36
39
|
]
|
|
37
40
|
}
|