@cloud-os/sandbox-app-standard-bridge 20251208.0.7 → 20251209.0.1

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.
@@ -0,0 +1,6 @@
1
+ import { ApplicationInfo, DateTimeInfo, WeatherInfo } from "../../../index";
2
+ export interface CommunicationBridgePayload {
3
+ handleGetAllApplications: () => Promise<ApplicationInfo[]>;
4
+ handleGetDateTime: () => Promise<DateTimeInfo>;
5
+ handleGetWeather: () => Promise<WeatherInfo>;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { DateTimeInfo, WeatherInfo, ApplicationInfo, CommunicationEvent } from "../../index";
2
+ import { CommunicationBridgePayload } from "./Payload/CommunicationBridgePayload";
3
+ export default class CommunicationBridge implements CommunicationEvent {
4
+ private readonly payload;
5
+ constructor(payload: CommunicationBridgePayload);
6
+ getDateTimeInfoAsync(): Promise<DateTimeInfo>;
7
+ getWeatherInfoAsync(): Promise<WeatherInfo>;
8
+ getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
9
+ }
@@ -0,0 +1,15 @@
1
+ export default class CommunicationBridge {
2
+ payload;
3
+ constructor(payload) {
4
+ this.payload = payload;
5
+ }
6
+ getDateTimeInfoAsync() {
7
+ return this.payload.handleGetDateTime();
8
+ }
9
+ getWeatherInfoAsync() {
10
+ return this.payload.handleGetWeather();
11
+ }
12
+ getAllApplicationsAsync() {
13
+ return this.payload.handleGetAllApplications();
14
+ }
15
+ }
@@ -1 +1,2 @@
1
1
  export { default as SandboxApplicationBridge } from "./SandboxApplication/index";
2
+ export { default as CommunicationBridge } from "./Communication/index";
@@ -1 +1,2 @@
1
1
  export { default as SandboxApplicationBridge } from "./SandboxApplication/index";
2
+ export { default as CommunicationBridge } from "./Communication/index";
@@ -0,0 +1,6 @@
1
+ import { ApplicationInfo, DateTimeInfo, WeatherInfo } from "../../index";
2
+ export interface CommunicationEvent {
3
+ getDateTimeInfoAsync(): Promise<DateTimeInfo>;
4
+ getWeatherInfoAsync(): Promise<WeatherInfo>;
5
+ getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
1
  export { SandboxApplicationEvent } from "./SandboxApplication/SandboxApplicationEvent";
2
+ export { CommunicationEvent } from "./Communication/CommunicationEvent";
@@ -0,0 +1,5 @@
1
+ export interface ApplicationInfo {
2
+ name: string;
3
+ url: string;
4
+ autoStart: boolean;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface DateTimeInfo {
2
+ value: Date;
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export interface WeatherInfo {
2
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,4 @@
1
1
  export { SandboxApplication } from "./SandboxApplication/SandboxApplication";
2
+ export { ApplicationInfo } from "./Communication/ApplicationInfo";
3
+ export { WeatherInfo } from "./Communication/WeatherInfo";
4
+ export { DateTimeInfo } from "./Communication/DateTimeInfo";
@@ -1,4 +1,5 @@
1
- import { SandboxApplicationEvent } from "../../Event/index";
1
+ import { CommunicationEvent, SandboxApplicationEvent } from "../../Event/index";
2
2
  export interface SandboxApplicationProps {
3
- bridge: SandboxApplicationEvent;
3
+ sandbox: SandboxApplicationEvent;
4
+ communication: CommunicationEvent;
4
5
  }
@@ -0,0 +1 @@
1
+ export { SandboxApplicationProps } from "./SandboxApplication/index";
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./Bridge/index";
2
2
  export * from "./Event/index";
3
3
  export * from "./Interface/index";
4
+ export * from "./Props/index";
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./Bridge/index";
2
2
  export * from "./Event/index";
3
3
  export * from "./Interface/index";
4
+ export * from "./Props/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-os/sandbox-app-standard-bridge",
3
- "version": "20251208.0.7",
3
+ "version": "20251209.0.1",
4
4
  "description": "",
5
5
  "author": "jack8228@enerqi.tw <jack8228@enerqi.tw>",
6
6
  "main": "dist/index.js",