@shopify/app-bridge-types 0.0.5 → 0.0.6

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.6",
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 {
@@ -353,7 +354,7 @@ interface ToastOptions {
353
354
  onDismiss: () => void;
354
355
  }
355
356
 
356
- interface UIModalAttributes {
357
+ export interface UIModalAttributes {
357
358
  id?: string;
358
359
  variant?: Variant;
359
360
  children?: any;
@@ -370,7 +371,7 @@ interface UIModalElement_2 extends Omit<HTMLElement, 'addEventListener' | 'remov
370
371
  }
371
372
  export type { UIModalElement_2 as UIModalElement }
372
373
 
373
- interface UINavMenuAttributes {
374
+ export interface UINavMenuAttributes {
374
375
  children?: any;
375
376
  }
376
377
 
@@ -378,7 +379,7 @@ interface UINavMenuElement_2 extends HTMLElement {
378
379
  }
379
380
  export type { UINavMenuElement_2 as UINavMenuElement }
380
381
 
381
- interface UITitleBarAttributes {
382
+ export interface UITitleBarAttributes {
382
383
  title?: string;
383
384
  children?: any;
384
385
  }