@cloud-os/sandbox-app-standard-bridge 20251211.0.1 → 20251211.0.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.
@@ -0,0 +1,4 @@
1
+ import { CompleteChallengePayload } from "../../../Event/Authorization/Payload/CompleteChallengePayload";
2
+ export interface AuthorizatioBridgePayload {
3
+ handleCompleteChallenge: (payload: CompleteChallengePayload) => Promise<void>;
4
+ }
@@ -0,0 +1,8 @@
1
+ import { CompleteChallengePayload } from "../../Event/Authorization/Payload/CompleteChallengePayload";
2
+ import { AuthorizationEvent } from "../../index";
3
+ import { AuthorizatioBridgePayload } from "./Payload/AuthorizatioBridgePayload";
4
+ export default class AuthorizationBridge implements AuthorizationEvent {
5
+ private readonly payload;
6
+ constructor(payload: AuthorizatioBridgePayload);
7
+ completeChallengeAsync(payload: CompleteChallengePayload): Promise<void>;
8
+ }
@@ -0,0 +1,9 @@
1
+ export default class AuthorizationBridge {
2
+ payload;
3
+ constructor(payload) {
4
+ this.payload = payload;
5
+ }
6
+ completeChallengeAsync(payload) {
7
+ return this.payload.handleCompleteChallenge(payload);
8
+ }
9
+ }
@@ -1,3 +1,4 @@
1
1
  export { default as SandboxApplicationBridge } from "./SandboxApplication/index";
2
2
  export { default as CommunicationBridge } from "./Communication/index";
3
3
  export { default as SystemBridge } from "./System/index";
4
+ export { default as AuthorizationBridge } from "./Authorization/index";
@@ -1,3 +1,4 @@
1
1
  export { default as SandboxApplicationBridge } from "./SandboxApplication/index";
2
2
  export { default as CommunicationBridge } from "./Communication/index";
3
3
  export { default as SystemBridge } from "./System/index";
4
+ export { default as AuthorizationBridge } from "./Authorization/index";
@@ -0,0 +1,4 @@
1
+ declare const _default: ({ children }: {
2
+ children: React.ReactNode;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StyleProvider } from "@ant-design/cssinjs";
3
+ import { v4 as uuidv4 } from "uuid";
4
+ import { ConfigProvider } from "antd";
5
+ export default ({ children }) => {
6
+ return (_jsx(StyleProvider, { children: _jsx(ConfigProvider, { theme: {
7
+ cssVar: {
8
+ prefix: uuidv4(),
9
+ },
10
+ }, children: children }) }));
11
+ };
@@ -1 +1 @@
1
- export { default as SandBoxApplication } from "./SandBoxApplication/index";
1
+ export { default as SafeAntd } from "./SafeAntd/index";
@@ -1 +1 @@
1
- export { default as SandBoxApplication } from "./SandBoxApplication/index";
1
+ export { default as SafeAntd } from "./SafeAntd/index";
@@ -0,0 +1,4 @@
1
+ import { CompleteChallengePayload } from "./Payload/CompleteChallengePayload";
2
+ export interface AuthorizationEvent {
3
+ completeChallengeAsync(payload: CompleteChallengePayload): Promise<void>;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface CompleteChallengePayload {
2
+ challengeId: string;
3
+ response: string;
4
+ }
@@ -1,3 +1,4 @@
1
1
  export { SandboxApplicationEvent } from "./SandboxApplication/SandboxApplicationEvent";
2
2
  export { CommunicationEvent } from "./Communication/CommunicationEvent";
3
3
  export { SystemEvent } from "./System/SystemEvent";
4
+ export { AuthorizationEvent } from "./Authorization/AuthorizationEvent";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-os/sandbox-app-standard-bridge",
3
- "version": "20251211.0.1",
3
+ "version": "20251211.0.3",
4
4
  "description": "",
5
5
  "author": "jack8228@enerqi.tw <jack8228@enerqi.tw>",
6
6
  "main": "dist/index.js",