@shopify/app-bridge
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -19,4 +19,5 @@ import * as Button from './Button'; | ||
import * as Share from './Share'; | ||
import * as NavigationMenu from './Menu/NavigationMenu'; | ||
export { isAppBridgeAction } from './validator'; | ||
export { Button, ButtonGroup, Scanner, Cart, Error, Flash, Features, Fullscreen, Toast, History, Loading, Modal, Print, Redirect, ResourcePicker, TitleBar, ContextualSaveBar, Share, }; | ||
export { Button, ButtonGroup, Scanner, Cart, Error, Flash, Features, Fullscreen, Toast, History, Loading, Modal, Print, Redirect, ResourcePicker, TitleBar, ContextualSaveBar, Share, NavigationMenu, }; | ||
export * from './types'; |
@@ -49,4 +49,6 @@ "use strict"; | ||
exports.Share = Share; | ||
var NavigationMenu = __importStar(require("./Menu/NavigationMenu")); | ||
exports.NavigationMenu = NavigationMenu; | ||
var validator_1 = require("./validator"); | ||
exports.isAppBridgeAction = validator_1.isAppBridgeAction; | ||
__export(require("./types")); |
@@ -24,3 +24,4 @@ import { ClientApplication } from '../client'; | ||
Scanner = "Scanner", | ||
Share = "Share" | ||
Share = "Share", | ||
Menu = "Menu" | ||
} | ||
@@ -27,0 +28,0 @@ /** |
@@ -25,2 +25,3 @@ "use strict"; | ||
Group["Share"] = "Share"; | ||
Group["Menu"] = "Menu"; | ||
})(Group = exports.Group || (exports.Group = {})); | ||
@@ -27,0 +28,0 @@ /** |
@@ -6,2 +6,22 @@ # Change Log | ||
# [1.10.0](https://github.com/Shopify/app-bridge/compare/v1.9.0...v1.10.0) (2019-10-28) | ||
### Bug Fixes | ||
* **umd-development-build:** turn off minify for umd development build ([d628510](https://github.com/Shopify/app-bridge/commit/d628510)) | ||
### Features | ||
* **app-nav-actions:** add actions and readme ([e4dc680](https://github.com/Shopify/app-bridge/commit/e4dc680)) | ||
* **mixed-client-warning:** add test ([946e03f](https://github.com/Shopify/app-bridge/commit/946e03f)) | ||
* **mixed-client-warning:** check for EASDK client in development mode ([ce51612](https://github.com/Shopify/app-bridge/commit/ce51612)) | ||
* **mixed-client-warning:** edit warning and add formatting ([65d6e63](https://github.com/Shopify/app-bridge/commit/65d6e63)) | ||
* **mixed-client-warning:** update error message ([5fcefde](https://github.com/Shopify/app-bridge/commit/5fcefde)) | ||
# [1.9.0](https://github.com/Shopify/app-bridge/compare/v1.8.0...v1.9.0) (2019-10-18) | ||
@@ -8,0 +28,0 @@ |
@@ -19,2 +19,3 @@ "use strict"; | ||
var validate_1 = __importDefault(require("./validate")); | ||
var utils_1 = require("./validate/utils"); | ||
var redirect_1 = require("./client/redirect"); | ||
@@ -38,2 +39,3 @@ var client_1 = require("./client"); | ||
} | ||
utils_1.mixedAppClientCheck(currentWindow); | ||
return client_1.createAppWrapper(currentWindow.top, currentWindow.location.origin, [validate_1.default])(config); | ||
@@ -40,0 +42,0 @@ } |
{ | ||
"name": "@shopify/app-bridge", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"types": "index.d.ts", | ||
@@ -43,3 +43,3 @@ "main": "index.js", | ||
{ | ||
"limit": "14.5 KB", | ||
"limit": "15 KB", | ||
"path": "production.js" | ||
@@ -55,3 +55,3 @@ } | ||
}, | ||
"gitHead": "fdbee1ee79a4f1417c1db6d613f8f57bb2c64d60" | ||
"gitHead": "7aa1b88ff94c100dba99f8839330f1ee59961ffe" | ||
} |
@@ -14,2 +14,3 @@ import * as Button from './button'; | ||
import * as TitleBar from './titleBar'; | ||
export { Button, ButtonGroup, Scanner, Cart, ContextualSaveBar, Fullscreen, Loading, Modal, Navigation, Print, ResourcePicker, Toast, TitleBar, }; | ||
import * as Menu from './menu'; | ||
export { Button, ButtonGroup, Scanner, Cart, ContextualSaveBar, Fullscreen, Loading, Modal, Navigation, Print, ResourcePicker, Toast, TitleBar, Menu, }; |
@@ -36,1 +36,3 @@ "use strict"; | ||
exports.TitleBar = TitleBar; | ||
var Menu = __importStar(require("./menu")); | ||
exports.Menu = Menu; |
@@ -7,1 +7,2 @@ import { Validator, ValidationError } from './type-validate'; | ||
export declare const relativePathSchema: Validator; | ||
export declare function mixedAppClientCheck(window: any): void; |
@@ -41,1 +41,10 @@ "use strict"; | ||
}); | ||
function mixedAppClientCheck(window) { | ||
window.addEventListener('DOMContentLoaded', function () { | ||
if (!window.hasOwnProperty('ShopifyApp')) { | ||
return; | ||
} | ||
console.error("%cException Detected \uD83D\uDEAB\n\n%cAn instance of the EASDK client was detected while initializing Shopify App Bridge. Using Shopify App Bridge and the EASDK simultaneously is not supported.\n\nIf you're migrating an existing app that was built with the shopify_app gem, then the EASDK client might have been included in the home page view template. In this case, remove it from your app before initializing Shopify App Bridge again.", 'font-size: large;', 'font-size: normal;'); | ||
}, { once: true }); | ||
} | ||
exports.mixedAppClientCheck = mixedAppClientCheck; |
@@ -18,2 +18,4 @@ "use strict"; | ||
return actions_2.Modal.validateProps(options, localOrigin); | ||
case actions_1.Group.Menu: | ||
return actions_2.Menu.validateProps(options); | ||
case actions_1.Group.TitleBar: | ||
@@ -37,2 +39,4 @@ return actions_2.TitleBar.validateProps(options); | ||
return actions_2.Modal.validateAction(action, localOrigin); | ||
case actions_1.Group.Menu: | ||
return actions_2.Menu.validateAction(action); | ||
case actions_1.Group.TitleBar: | ||
@@ -39,0 +43,0 @@ return actions_2.TitleBar.validateAction(action); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
615479
192
13117