@shopfront/bridge 1.12.0 → 1.14.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.
@@ -1,7 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <module type="WEB_MODULE" version="4">
3
3
  <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/lib" />
6
+ </content>
5
7
  <orderEntry type="inheritedJdk" />
6
8
  <orderEntry type="sourceFolder" forTests="false" />
7
9
  </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
package/.idea/modules.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ProjectModuleManager">
4
4
  <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/shopfront-embedded-bridge.iml" filepath="$PROJECT_DIR$/.idea/shopfront-embedded-bridge.iml" />
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/embedded-bridge.iml" filepath="$PROJECT_DIR$/.idea/embedded-bridge.iml" />
6
6
  </modules>
7
7
  </component>
8
8
  </project>
@@ -144,8 +144,8 @@ export interface PaymentMethodEnabledContext {
144
144
  export interface FromShopfrontCallbacks {
145
145
  READY: (event: RegisterChangedEvent) => MaybePromise<FromShopfrontReturns["READY"]>;
146
146
  REQUEST_SETTINGS: () => MaybePromise<FromShopfrontReturns["REQUEST_SETTINGS"]>;
147
- REQUEST_BUTTONS: () => MaybePromise<FromShopfrontReturns["REQUEST_BUTTONS"]>;
148
- REQUEST_TABLE_COLUMNS: () => MaybePromise<FromShopfrontReturns["REQUEST_TABLE_COLUMNS"]>;
147
+ REQUEST_BUTTONS: (location: string, context: unknown) => MaybePromise<FromShopfrontReturns["REQUEST_BUTTONS"]>;
148
+ REQUEST_TABLE_COLUMNS: (location: string, data: unknown) => MaybePromise<FromShopfrontReturns["REQUEST_TABLE_COLUMNS"]>;
149
149
  REQUEST_SELL_SCREEN_OPTIONS: () => MaybePromise<FromShopfrontReturns["REQUEST_SELL_SCREEN_OPTIONS"]>;
150
150
  INTERNAL_PAGE_MESSAGE: (event: InternalPageMessageEvent) => MaybePromise<FromShopfrontReturns["INTERNAL_PAGE_MESSAGE"]>;
151
151
  REGISTER_CHANGED: (event: RegisterChangedEvent) => MaybePromise<FromShopfrontReturns["REGISTER_CHANGED"]>;
@@ -104,6 +104,7 @@ export interface CompletedSale {
104
104
  id: string;
105
105
  invoiceId: string;
106
106
  createdAt: string;
107
+ metaData: Record<string, unknown>;
107
108
  }
108
109
  export declare class SaleComplete extends BaseEvent {
109
110
  constructor(callback: FromShopfrontCallbacks["SALE_COMPLETE"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopfront/bridge",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "main": "./lib/index.js",
5
5
  "license": "ISC",
6
6
  "description": "The bridge used to embed your application within Shopfront",
@@ -13,7 +13,8 @@
13
13
  "author": "Shopfront <api@shopfront.com.au> (https://shopfront.com.au)",
14
14
  "contributors": [
15
15
  "Nicholas Clark",
16
- "Adam Simpkins"
16
+ "Adam Simpkins",
17
+ "Zachary Stanford"
17
18
  ],
18
19
  "private": false,
19
20
  "devDependencies": {
package/.idea/misc.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptSettings">
4
- <option name="languageLevel" value="ES6" />
5
- </component>
6
- <component name="NodePackageJsonFileManager">
7
- <packageJsonPaths />
8
- </component>
9
- </project>
package/.idea/php.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PhpProjectSharedConfiguration" php_language_level="7.2" />
4
- </project>