@shopify/app-bridge
Advanced tools
Comparing version 1.11.0 to 1.11.1-alpha.1
@@ -31,4 +31,5 @@ import { AnyAction, MetaAction } from '../types'; | ||
MISSING_HOST_PROVIDER = "APP::APP_ERROR::MISSING_HOST_PROVIDER", | ||
MISSING_ROUTER_CONTEXT = "APP::APP_ERROR::MISSING_ROUTER_CONTEXT" | ||
MISSING_ROUTER_CONTEXT = "APP::APP_ERROR::MISSING_ROUTER_CONTEXT", | ||
MISSING_HISTORY_BLOCK = "APP::APP_ERROR::MISSING_HISTORY_BLOCK" | ||
} | ||
export declare type Payload = MetaAction | AnyAction; |
@@ -36,2 +36,3 @@ "use strict"; | ||
AppActionType["MISSING_ROUTER_CONTEXT"] = "APP::APP_ERROR::MISSING_ROUTER_CONTEXT"; | ||
AppActionType["MISSING_HISTORY_BLOCK"] = "APP::APP_ERROR::MISSING_HISTORY_BLOCK"; | ||
})(AppActionType = exports.AppActionType || (exports.AppActionType = {})); |
@@ -20,4 +20,5 @@ import * as Button from './Button'; | ||
import * as NavigationMenu from './Menu/NavigationMenu'; | ||
import * as Link from './Link'; | ||
export { isAppBridgeAction } from './validator'; | ||
export { Button, ButtonGroup, Scanner, Cart, Error, Flash, Features, Fullscreen, Toast, History, Loading, Modal, Print, Redirect, ResourcePicker, TitleBar, ContextualSaveBar, Share, NavigationMenu, }; | ||
export { Button, ButtonGroup, Scanner, Cart, Error, Flash, Features, Fullscreen, Toast, History, Loading, Modal, Print, Redirect, ResourcePicker, TitleBar, ContextualSaveBar, Share, NavigationMenu, Link, }; | ||
export * from './types'; |
@@ -51,4 +51,6 @@ "use strict"; | ||
exports.NavigationMenu = NavigationMenu; | ||
var Link = __importStar(require("./Link")); | ||
exports.Link = Link; | ||
var validator_1 = require("./validator"); | ||
exports.isAppBridgeAction = validator_1.isAppBridgeAction; | ||
__export(require("./types")); |
@@ -25,3 +25,4 @@ import { ClientApplication } from '../client'; | ||
Share = "Share", | ||
Menu = "Menu" | ||
Menu = "Menu", | ||
Link = "Link" | ||
} | ||
@@ -28,0 +29,0 @@ /** |
@@ -26,2 +26,3 @@ "use strict"; | ||
Group["Menu"] = "Menu"; | ||
Group["Link"] = "Link"; | ||
})(Group = exports.Group || (exports.Group = {})); | ||
@@ -28,0 +29,0 @@ /** |
@@ -6,2 +6,26 @@ # Change Log | ||
## [1.11.1-alpha.1](https://github.com/Shopify/app-bridge/compare/v1.11.0...v1.11.1-alpha.1) (2019-11-27) | ||
### Features | ||
* **host:** leave confimration modal ([10aedc5](https://github.com/Shopify/app-bridge/commit/10aedc5244be77e247c96acf73b0889f1e67252b)) | ||
* **link-actions:** introduce `Link` action group ([ffb50f0](https://github.com/Shopify/app-bridge/commit/ffb50f007de169089745dd5372a93ab67fa4b12b)) | ||
## [1.11.1-alpha.0](https://github.com/Shopify/app-bridge/compare/v1.11.0...v1.11.1-alpha.0) (2019-11-27) | ||
### Features | ||
* **host:** leave confimration modal ([10aedc5](https://github.com/Shopify/app-bridge/commit/10aedc5244be77e247c96acf73b0889f1e67252b)) | ||
* **link-actions:** introduce `Link` action group ([ffb50f0](https://github.com/Shopify/app-bridge/commit/ffb50f007de169089745dd5372a93ab67fa4b12b)) | ||
# [1.11.0](https://github.com/Shopify/app-bridge/compare/v1.11.0-alpha.0...v1.11.0) (2019-11-14) | ||
@@ -8,0 +32,0 @@ |
{ | ||
"name": "@shopify/app-bridge", | ||
"version": "1.11.0", | ||
"version": "1.11.1-alpha.1", | ||
"types": "index.d.ts", | ||
@@ -54,3 +54,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "c9d714711aaade9b1d5ca72ad2e8412389eb99aa" | ||
"gitHead": "1340e508b9eb92902a6f0e2151a62cc7cf139868" | ||
} |
@@ -15,2 +15,3 @@ import * as Button from './button'; | ||
import * as Menu from './menu'; | ||
export { Button, ButtonGroup, Scanner, Cart, ContextualSaveBar, Fullscreen, Loading, Modal, Navigation, Print, ResourcePicker, Toast, TitleBar, Menu, }; | ||
import * as Link from './link'; | ||
export { Button, ButtonGroup, Scanner, Cart, ContextualSaveBar, Fullscreen, Loading, Modal, Navigation, Print, ResourcePicker, Toast, TitleBar, Menu, Link, }; |
@@ -38,1 +38,3 @@ "use strict"; | ||
exports.Menu = Menu; | ||
var Link = __importStar(require("./link")); | ||
exports.Link = Link; |
@@ -1,2 +0,8 @@ | ||
import { MetaAction } from '../../actions'; | ||
import { Redirect, MetaAction } from '../../actions'; | ||
export declare function matchesAbsolutePath(value: string): { | ||
value: string; | ||
error: string; | ||
message: string; | ||
}[] | undefined; | ||
export declare function getSectionSchema(payload: Redirect.AdminSectionPayload): import("../type-validate").Validator; | ||
export declare function validateAction(action: MetaAction): { | ||
@@ -3,0 +9,0 @@ path: string | undefined; |
@@ -28,2 +28,3 @@ "use strict"; | ||
} | ||
exports.matchesAbsolutePath = matchesAbsolutePath; | ||
function getSectionSchema(payload) { | ||
@@ -46,2 +47,3 @@ var isProductVariant = payload && | ||
} | ||
exports.getSectionSchema = getSectionSchema; | ||
function validateAction(action) { | ||
@@ -48,0 +50,0 @@ var newContextSchema = type_validate_1.matchesObject({ newContext: type_validate_1.makeOptional(type_validate_1.matchesBoolean()) }); |
@@ -36,3 +36,3 @@ export interface Indexable { | ||
export declare function composeSchemas(...validators: Validator[]): Validator; | ||
export declare function validate(obj: any, validator: Validator | Validator): { | ||
export declare function validate(obj: any, validator: Validator): { | ||
path: string | undefined; | ||
@@ -39,0 +39,0 @@ error: string; |
@@ -20,2 +20,4 @@ "use strict"; | ||
return actions_2.Menu.validateProps(options); | ||
case actions_1.Group.Link: | ||
return actions_2.Link.validateProps(options); | ||
case actions_1.Group.TitleBar: | ||
@@ -61,2 +63,4 @@ return actions_2.TitleBar.validateProps(options); | ||
return actions_2.ContextualSaveBar.validateAction(action); | ||
case actions_1.Group.Link: | ||
return actions_2.Link.validateAction(action); | ||
} | ||
@@ -63,0 +67,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
634642
196
13517
2