@shopify/app-bridge-types 0.0.17 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 0.0.17
4
10
 
5
11
  ### 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.17",
3
+ "version": "0.0.18",
4
4
  "description": "Companion types library for the Shopify App Bridge script",
5
5
  "private": false,
6
6
  "publishConfig": {