@shopfront/bridge 2.0.4 → 2.0.6

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.
@@ -1,7 +1,7 @@
1
1
  name: Pack and Distribute
2
2
  on:
3
- pull_request:
4
- types: [ synchronize ]
3
+ release:
4
+ types: [created]
5
5
  jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
@@ -89,7 +89,7 @@ export declare abstract class BaseApplication {
89
89
  /**
90
90
  * Shows a loading screen in Shopfront
91
91
  */
92
- abstract load(): void;
92
+ abstract load(): () => void;
93
93
  protected abstract handleEventCallback(data: {
94
94
  id?: string;
95
95
  data: unknown;
package/lib/index.d.ts CHANGED
@@ -5,7 +5,9 @@ export { SaleKey } from "./Actions/SaleKey.js";
5
5
  export { Toast, type ToastType } from "./Actions/Toast.js";
6
6
  export * as Sales from "./APIs/Sale/index.js";
7
7
  export { Application } from "./Application.js";
8
+ export { BaseApplication } from "./BaseApplication.js";
8
9
  export { type ShopfrontEmbeddedVerificationToken, ShopfrontTokenDecodingError } from "./BaseApplication.js";
10
+ export { BaseBridge } from "./BaseBridge.js";
9
11
  export { Bridge } from "./Bridge.js";
10
12
  export * as Fulfilment from "./EmitableEvents/Fulfilment/index.js";
11
13
  export { SellScreenOption } from "./EmitableEvents/SellScreenOption.js";
package/lib/index.js CHANGED
@@ -5,7 +5,9 @@ export { SaleKey } from "./Actions/SaleKey.js";
5
5
  export { Toast } from "./Actions/Toast.js";
6
6
  export * as Sales from "./APIs/Sale/index.js";
7
7
  export { Application } from "./Application.js";
8
+ export { BaseApplication } from "./BaseApplication.js";
8
9
  export { ShopfrontTokenDecodingError } from "./BaseApplication.js";
10
+ export { BaseBridge } from "./BaseBridge.js";
9
11
  export { Bridge } from "./Bridge.js";
10
12
  export * as Fulfilment from "./EmitableEvents/Fulfilment/index.js";
11
13
  export { SellScreenOption } from "./EmitableEvents/SellScreenOption.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopfront/bridge",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "main": "./lib/index.js",
5
5
  "license": "ISC",
6
6
  "description": "The bridge used to embed your application within Shopfront",