@cloud-os/sandbox-app-standard-bridge 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Bridge/SandboxApplication/Payload/SandboxApplicationBridgePayload.d.ts +5 -0
- package/dist/Bridge/SandboxApplication/Payload/SandboxApplicationBridgePayload.js +1 -0
- package/dist/Bridge/SandboxApplication/index.d.ts +8 -0
- package/dist/Bridge/SandboxApplication/index.js +13 -0
- package/dist/Bridge/index.d.ts +1 -0
- package/dist/Bridge/index.js +1 -0
- package/dist/Event/SandboxApplication/SandboxApplicationEvent.d.ts +12 -0
- package/dist/Event/SandboxApplication/SandboxApplicationEvent.js +2 -0
- package/dist/Event/index.d.ts +1 -0
- package/dist/Event/index.js +1 -0
- package/dist/Interface/SandboxApplication/SandboxApplication.d.ts +4 -0
- package/dist/Interface/SandboxApplication/SandboxApplication.js +1 -0
- package/dist/Interface/index.d.ts +1 -0
- package/dist/Interface/index.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/package.json +22 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SandboxApplication, SandboxApplicationEvent } from "../../index";
|
|
2
|
+
import { SandboxApplicationBridgePayload } from "./Payload/SandboxApplicationBridgePayload";
|
|
3
|
+
export default class SandboxApplicationBridge extends SandboxApplicationEvent {
|
|
4
|
+
private readonly payload;
|
|
5
|
+
constructor(payload: SandboxApplicationBridgePayload);
|
|
6
|
+
start(...infos: SandboxApplication[]): string;
|
|
7
|
+
close(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SandboxApplicationEvent } from "../../index";
|
|
2
|
+
export default class SandboxApplicationBridge extends SandboxApplicationEvent {
|
|
3
|
+
constructor(payload) {
|
|
4
|
+
super();
|
|
5
|
+
this.payload = payload;
|
|
6
|
+
}
|
|
7
|
+
start(...infos) {
|
|
8
|
+
return this.payload.handleStart(...infos);
|
|
9
|
+
}
|
|
10
|
+
close() {
|
|
11
|
+
return this.payload.handleClose();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SandboxApplicationBridge } from "./SandboxApplication/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SandboxApplicationBridge } from "./SandboxApplication/index";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SandboxApplication } from "../../index";
|
|
2
|
+
export declare abstract class SandboxApplicationEvent {
|
|
3
|
+
/**
|
|
4
|
+
* Start a sandbox activity.
|
|
5
|
+
* @returns A unique identifier for this started activity.
|
|
6
|
+
*/
|
|
7
|
+
abstract start(...infos: SandboxApplication[]): string;
|
|
8
|
+
/**
|
|
9
|
+
* Close or stop the sandbox activity.
|
|
10
|
+
*/
|
|
11
|
+
abstract close(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SandboxApplicationEvent } from "./SandboxApplication/SandboxApplicationEvent";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SandboxApplicationEvent } from "./SandboxApplication/SandboxApplicationEvent";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SandboxApplication } from "./SandboxApplication/SandboxApplication";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloud-os/sandbox-app-standard-bridge",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "jack8228@enerqi.tw <jack8228@enerqi.tw>",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"deploy": "pnpm build && npm publish --access public"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [],
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"type": "commonjs",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^5.9.3"
|
|
21
|
+
}
|
|
22
|
+
}
|