@shopify/app-bridge-types 0.2.0 → 0.3.0
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 +6 -0
- package/dist/shopify.ts +16 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#669](https://github.com/Shopify/extensibility/pull/669) [`ad18a376e0e7a4e3921fa8f394d424644eb1f7bc`](https://github.com/Shopify/extensibility/commit/ad18a376e0e7a4e3921fa8f394d424644eb1f7bc) Thanks [@SammyJoeOsborne](https://github.com/SammyJoeOsborne)! - Updating ReviewRequestDeclinedResponse type with new codes: already-open, open-in-progress, and cancelled
|
|
8
|
+
|
|
3
9
|
## 0.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/shopify.ts
CHANGED
|
@@ -137,6 +137,7 @@ interface AppBridgeConfig {
|
|
|
137
137
|
export interface AppBridgeElements {
|
|
138
138
|
'ui-modal': UIModalAttributes;
|
|
139
139
|
'ui-nav-menu': UINavMenuAttributes;
|
|
140
|
+
's-app-nav': SAppNavAttributes;
|
|
140
141
|
'ui-save-bar': UISaveBarAttributes;
|
|
141
142
|
'ui-title-bar': UITitleBarAttributes;
|
|
142
143
|
}
|
|
@@ -364,7 +365,7 @@ interface ExtensionActivation {
|
|
|
364
365
|
}
|
|
365
366
|
|
|
366
367
|
/**
|
|
367
|
-
* Contains the status information for the
|
|
368
|
+
* Contains the status information for the app's extension.
|
|
368
369
|
* This includes the extension's handle, and activation targets.
|
|
369
370
|
*/
|
|
370
371
|
interface ExtensionInfo {
|
|
@@ -918,7 +919,7 @@ type ResourceTypes = {
|
|
|
918
919
|
collection: Collection;
|
|
919
920
|
};
|
|
920
921
|
|
|
921
|
-
type ReviewRequestDeclinedCode = 'mobile-app' | 'already-reviewed' | 'annual-limit-reached' | 'cooldown-period' | 'merchant-ineligible' | 'recently-installed';
|
|
922
|
+
type ReviewRequestDeclinedCode = 'mobile-app' | 'already-reviewed' | 'annual-limit-reached' | 'cooldown-period' | 'merchant-ineligible' | 'recently-installed' | 'already-open' | 'open-in-progress' | 'cancelled';
|
|
922
923
|
|
|
923
924
|
interface ReviewRequestDeclinedResponse {
|
|
924
925
|
success: false;
|
|
@@ -943,6 +944,13 @@ interface RuleSet {
|
|
|
943
944
|
rules: CollectionRule[];
|
|
944
945
|
}
|
|
945
946
|
|
|
947
|
+
export interface SAppNavAttributes {
|
|
948
|
+
children?: any;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
export interface SAppNavElement extends HTMLElement {
|
|
952
|
+
}
|
|
953
|
+
|
|
946
954
|
interface SaveBarApi extends Required<_SaveBarApi> {
|
|
947
955
|
}
|
|
948
956
|
|
|
@@ -963,9 +971,9 @@ interface _SaveBarApi {
|
|
|
963
971
|
*/
|
|
964
972
|
toggle?(id: string): Promise<void>;
|
|
965
973
|
/**
|
|
966
|
-
*
|
|
974
|
+
* 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.
|
|
967
975
|
*/
|
|
968
|
-
leaveConfirmation(): Promise<void>;
|
|
976
|
+
leaveConfirmation?(): Promise<void>;
|
|
969
977
|
}
|
|
970
978
|
|
|
971
979
|
interface ScannerApi {
|
|
@@ -1193,33 +1201,14 @@ interface UIModalElement_2 extends Omit<HTMLElement, 'addEventListener' | 'remov
|
|
|
1193
1201
|
}
|
|
1194
1202
|
export type { UIModalElement_2 as UIModalElement }
|
|
1195
1203
|
|
|
1196
|
-
export interface UINavMenuAttributes
|
|
1204
|
+
export interface UINavMenuAttributes {
|
|
1197
1205
|
children?: any;
|
|
1198
1206
|
}
|
|
1199
1207
|
|
|
1200
|
-
interface _UINavMenuAttributes {
|
|
1201
|
-
children?: [UINavMenuFirstChild, ...UINavMenuChildren[]];
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
interface UINavMenuChildren {
|
|
1205
|
-
a?: {
|
|
1206
|
-
href: string;
|
|
1207
|
-
children: string;
|
|
1208
|
-
};
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
1208
|
interface UINavMenuElement_2 extends HTMLElement {
|
|
1212
1209
|
}
|
|
1213
1210
|
export type { UINavMenuElement_2 as UINavMenuElement }
|
|
1214
1211
|
|
|
1215
|
-
interface UINavMenuFirstChild {
|
|
1216
|
-
a: {
|
|
1217
|
-
rel: 'home';
|
|
1218
|
-
href: string;
|
|
1219
|
-
children?: string;
|
|
1220
|
-
};
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
1212
|
export interface UISaveBarAttributes extends _UISaveBarAttributes {
|
|
1224
1213
|
children?: any;
|
|
1225
1214
|
}
|
|
@@ -1311,6 +1300,9 @@ interface _UITitleBarAttributes {
|
|
|
1311
1300
|
}
|
|
1312
1301
|
|
|
1313
1302
|
interface UITitleBarChildren {
|
|
1303
|
+
/**
|
|
1304
|
+
* Note that anchor tag elements are not supported in Remix. You can use Remix's `<Link>` component instead.
|
|
1305
|
+
*/
|
|
1314
1306
|
a?: BaseElementAttributes & {
|
|
1315
1307
|
variant?: 'breadcrumb' | 'primary';
|
|
1316
1308
|
};
|