@shopify/app-bridge-types 0.0.16 → 0.0.18
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 +12 -0
- package/dist/index.d.ts +8 -0
- package/dist/shopify.ts +4 -4
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#325](https://github.com/Shopify/extensibility/pull/325) [`dfac2e4a775102b81488155dc4b00c8132988a22`](https://github.com/Shopify/extensibility/commit/dfac2e4a775102b81488155dc4b00c8132988a22) Thanks [@elanalynn](https://github.com/elanalynn)! - Expose ResourcePicker and Toast types
|
|
8
|
+
|
|
9
|
+
## 0.0.17
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#298](https://github.com/Shopify/extensibility/pull/298) [`d3d0b4e41a0c2538b7c2f1f57ed22765c629241f`](https://github.com/Shopify/extensibility/commit/d3d0b4e41a0c2538b7c2f1f57ed22765c629241f) Thanks [@MitchLillie](https://github.com/MitchLillie)! - Remove abn as a app-bridge-types dev dependency
|
|
14
|
+
|
|
3
15
|
## 0.0.16
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ import type {
|
|
|
11
11
|
UINavMenuAttributes,
|
|
12
12
|
UITitleBarAttributes,
|
|
13
13
|
UISaveBarAttributes,
|
|
14
|
+
ToastOptions,
|
|
15
|
+
Product,
|
|
16
|
+
ProductVariant,
|
|
17
|
+
Collection,
|
|
14
18
|
} from './shopify';
|
|
15
19
|
|
|
16
20
|
export {
|
|
@@ -19,6 +23,10 @@ export {
|
|
|
19
23
|
UINavMenuAttributes,
|
|
20
24
|
UITitleBarAttributes,
|
|
21
25
|
UISaveBarAttributes,
|
|
26
|
+
ToastOptions,
|
|
27
|
+
Product,
|
|
28
|
+
ProductVariant,
|
|
29
|
+
Collection,
|
|
22
30
|
};
|
|
23
31
|
|
|
24
32
|
declare global {
|
package/dist/shopify.ts
CHANGED
|
@@ -194,7 +194,7 @@ interface Cart {
|
|
|
194
194
|
*/
|
|
195
195
|
type CartSubscriber = (cart: Cart) => void;
|
|
196
196
|
|
|
197
|
-
interface Collection extends Resource {
|
|
197
|
+
export interface Collection extends Resource {
|
|
198
198
|
availablePublicationCount: number;
|
|
199
199
|
description: string;
|
|
200
200
|
descriptionHtml: string;
|
|
@@ -747,7 +747,7 @@ interface PrivilegedAdminUser extends AdminUser {
|
|
|
747
747
|
email?: string;
|
|
748
748
|
}
|
|
749
749
|
|
|
750
|
-
interface Product extends Resource {
|
|
750
|
+
export interface Product extends Resource {
|
|
751
751
|
availablePublicationCount: number;
|
|
752
752
|
createdAt: string;
|
|
753
753
|
descriptionHtml: string;
|
|
@@ -780,7 +780,7 @@ enum ProductStatus {
|
|
|
780
780
|
Draft = "DRAFT"
|
|
781
781
|
}
|
|
782
782
|
|
|
783
|
-
interface ProductVariant extends Resource {
|
|
783
|
+
export interface ProductVariant extends Resource {
|
|
784
784
|
availableForSale: boolean;
|
|
785
785
|
barcode?: string | null;
|
|
786
786
|
compareAtPrice?: Money | null;
|
|
@@ -1015,7 +1015,7 @@ interface ToastApi {
|
|
|
1015
1015
|
|
|
1016
1016
|
type ToastHide = (id: string) => void;
|
|
1017
1017
|
|
|
1018
|
-
interface ToastOptions {
|
|
1018
|
+
export interface ToastOptions {
|
|
1019
1019
|
/**
|
|
1020
1020
|
* The length of time in milliseconds the toast message should persist.
|
|
1021
1021
|
* @defaultValue 5000
|
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.18",
|
|
4
4
|
"description": "Companion types library for the Shopify App Bridge script",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
"default": "./dist/index.js"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"cjyes": "^0.3.1"
|
|
22
|
-
"app-bridge-next": "0.4.1"
|
|
21
|
+
"cjyes": "^0.3.1"
|
|
23
22
|
},
|
|
24
23
|
"files": [
|
|
25
24
|
"dist",
|