@hyphacommerce/app-bridge-host 0.1.0-beta.4 → 0.1.0-beta.5

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/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { BridgeErrorCode, BridgeErrorCode as BridgeErrorCode$1, PROTOCOL_VERSION, ResourceType, ResourceType as ResourceType$1, ToastTone, ToastTone as ToastTone$1 } from "@hyphacommerce/app-bridge/protocol";
2
- //#region src/host.d.ts
3
2
  /** What the host needs of the iframe: its window. */
4
3
  interface BridgeFrame {
5
4
  contentWindow: {
@@ -48,5 +47,4 @@ interface AttachOptions {
48
47
  }
49
48
  /** Starts answering `iframe`'s app; returns the function that stops it. */
50
49
  export declare function attachBridge(iframe: BridgeFrame, options: AttachOptions): () => void;
51
- //#endregion
52
50
  export { type AttachOptions, type BridgeErrorCode, type BridgeFrame, type HostWindow, PROTOCOL_VERSION, type ResourceType, type ToastTone };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { MAX_TOAST_LENGTH, PROTOCOL_VERSION, PROTOCOL_VERSION as PROTOCOL_VERSION$1, checkOrigin, isEnvelope, isRecord, isResourceType, isToastTone } from "@hyphacommerce/app-bridge/protocol";
2
- //#region src/host.ts
2
+ // src/host.ts
3
3
  /** A handler may throw this to answer a specific code (`cancelled`, …). */
4
4
  var BridgeHostError = class extends Error {
5
5
  code;
@@ -108,5 +108,4 @@ function invalid(message) {
108
108
  function record(payload) {
109
109
  return isRecord(payload) ? payload : {};
110
110
  }
111
- //#endregion
112
111
  export { BridgeHostError, PROTOCOL_VERSION, attachBridge };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyphacommerce/app-bridge-host",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.5",
4
4
  "description": "The admin's side of Hypha's app bridge (docs/apps/bridge.md): answers an embedded app page's messages. No framework, so any admin can use it.",
5
5
  "homepage": "https://hyphacommerce.com",
6
6
  "bugs": "https://github.com/hyphacommerce/hypha/issues",
@@ -28,10 +28,10 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@hyphacommerce/app-bridge": "0.1.0-beta.4"
31
+ "@hyphacommerce/app-bridge": "0.1.0-beta.5"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/node": "26.6.5",
34
+ "@types/node": "26.6.6",
35
35
  "typescript": "5.9.3"
36
36
  },
37
37
  "scripts": {