@shopify/app-bridge-types 0.0.5 → 0.0.7

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/index.d.ts CHANGED
@@ -6,9 +6,17 @@ import type {
6
6
  UIModalElement as BaseUIModalElement,
7
7
  UINavMenuElement as BaseUINavMenuElement,
8
8
  UITitleBarElement as BaseUITitleBarElement,
9
+ UIModalAttributes,
10
+ UINavMenuAttributes,
11
+ UITitleBarAttributes,
9
12
  } from './shopify';
10
13
 
11
- export {ShopifyGlobal};
14
+ export {
15
+ ShopifyGlobal,
16
+ UIModalAttributes,
17
+ UINavMenuAttributes,
18
+ UITitleBarAttributes,
19
+ };
12
20
 
13
21
  declare global {
14
22
  var shopify: ShopifyGlobal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/app-bridge-types",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Companion types library for the Shopify App Bridge script",
5
5
  "license": "ISC",
6
6
  "main": "./index.js",
package/shopify.ts CHANGED
@@ -24,6 +24,7 @@ interface AppBridgeConfig {
24
24
  locale: string;
25
25
  disabledFeatures?: string[];
26
26
  experimentalFeatures?: string[];
27
+ appOrigins?: string[];
27
28
  }
28
29
 
29
30
  export interface AppBridgeElements {
@@ -174,6 +175,9 @@ interface Location_2 {
174
175
 
175
176
  export interface MenuItemProperties {
176
177
  variant?: 'primary' | 'breadcrumb' | null | undefined;
178
+ tone?: 'critical' | 'default';
179
+ disabled?: boolean;
180
+ loading?: boolean | string;
177
181
  }
178
182
 
179
183
  type Money = string;
@@ -223,6 +227,7 @@ interface Product extends Resource {
223
227
  templateSuffix?: string | null;
224
228
  title: string;
225
229
  totalInventory: number;
230
+ totalVariants: number;
226
231
  tracksInventory: boolean;
227
232
  variants: Partial<ProductVariant>[];
228
233
  vendor: string;
@@ -353,7 +358,7 @@ interface ToastOptions {
353
358
  onDismiss: () => void;
354
359
  }
355
360
 
356
- interface UIModalAttributes {
361
+ export interface UIModalAttributes {
357
362
  id?: string;
358
363
  variant?: Variant;
359
364
  children?: any;
@@ -370,7 +375,7 @@ interface UIModalElement_2 extends Omit<HTMLElement, 'addEventListener' | 'remov
370
375
  }
371
376
  export type { UIModalElement_2 as UIModalElement }
372
377
 
373
- interface UINavMenuAttributes {
378
+ export interface UINavMenuAttributes {
374
379
  children?: any;
375
380
  }
376
381
 
@@ -378,7 +383,7 @@ interface UINavMenuElement_2 extends HTMLElement {
378
383
  }
379
384
  export type { UINavMenuElement_2 as UINavMenuElement }
380
385
 
381
- interface UITitleBarAttributes {
386
+ export interface UITitleBarAttributes {
382
387
  title?: string;
383
388
  children?: any;
384
389
  }