@shopify/app-bridge-types 0.0.12 → 0.0.14
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/CHANGELOG.md +4 -0
- package/package.json +3 -2
- package/shopify.ts +6 -12
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.0.13] - 2023-04-24
|
|
9
|
+
|
|
10
|
+
- Remove incorrectly added `Symbol()` declaration causing issues with import
|
|
11
|
+
|
|
8
12
|
## [0.0.3] - 2023-07-27
|
|
9
13
|
|
|
10
14
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/app-bridge-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Companion types library for the Shopify App Bridge script",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"index.d.ts",
|
|
23
23
|
"shopify.ts",
|
|
24
24
|
"index.mjs",
|
|
25
|
-
"index.js"
|
|
25
|
+
"index.js",
|
|
26
|
+
"CHANGELOG.md"
|
|
26
27
|
]
|
|
27
28
|
}
|
package/shopify.ts
CHANGED
|
@@ -338,8 +338,6 @@ interface Filters {
|
|
|
338
338
|
query?: string;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
const FINISH: unique symbol;
|
|
342
|
-
|
|
343
341
|
type Finish = (data?: any) => void;
|
|
344
342
|
|
|
345
343
|
enum FulfillmentServiceType {
|
|
@@ -360,17 +358,13 @@ interface Image_2 {
|
|
|
360
358
|
originalSrc: string;
|
|
361
359
|
}
|
|
362
360
|
|
|
363
|
-
|
|
364
|
-
action: string;
|
|
365
|
-
type: string;
|
|
366
|
-
data: {
|
|
361
|
+
interface Intent {
|
|
362
|
+
readonly action: string;
|
|
363
|
+
readonly type: string;
|
|
364
|
+
readonly data: {
|
|
367
365
|
[key: string]: any;
|
|
368
366
|
};
|
|
369
|
-
|
|
370
|
-
constructor(action: string, type: string, data: {
|
|
371
|
-
[key: string]: any;
|
|
372
|
-
}, finish: Finish);
|
|
373
|
-
finish(): void;
|
|
367
|
+
finish: Finish;
|
|
374
368
|
}
|
|
375
369
|
|
|
376
370
|
interface IntentsApi {
|
|
@@ -804,7 +798,7 @@ interface _SaveBarApi {
|
|
|
804
798
|
*/
|
|
805
799
|
toggle?(id: string): Promise<void>;
|
|
806
800
|
/**
|
|
807
|
-
*
|
|
801
|
+
* Checks if saveBar is shown. This promise resolves if the save bar is not shown. Uses this method before navigating away from the page only when you have a custom routing that is not anchor tag.
|
|
808
802
|
*/
|
|
809
803
|
leaveConfirmation?(): Promise<void>;
|
|
810
804
|
}
|