@shopify/app-bridge
Advanced tools
Comparing version 3.4.0-alpha.2 to 3.4.0-alpha.3
@@ -53,2 +53,19 @@ import { ClientApplication } from '../../client'; | ||
} | ||
export declare type ShowOptions = Pick<Options, 'fullWidth' | 'leaveConfirmationDisable'>; | ||
export interface SaveActionOptions extends ContextAction { | ||
onAction?: () => void; | ||
} | ||
export interface DiscardActionOptions extends DiscardAction { | ||
onAction?: () => void; | ||
} | ||
export interface ContextualSaveBarApi { | ||
show: ({ fullWidth, leaveConfirmationDisable }?: ShowOptions) => void; | ||
hide: () => void; | ||
saveAction: { | ||
setOptions: (options: Partial<SaveActionOptions>) => void; | ||
}; | ||
discardAction: { | ||
setOptions: (options: Partial<DiscardActionOptions>) => void; | ||
}; | ||
} | ||
export declare function show(payload: Payload): any; | ||
@@ -58,2 +75,3 @@ export declare function hide(payload: Payload): any; | ||
export declare function discard(payload: Payload): any; | ||
export declare function update(payload: Payload): any; | ||
/** | ||
@@ -60,0 +78,0 @@ * ContextualSaveBar action set |
@@ -29,3 +29,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.create = exports.ContextualSaveBar = exports.discard = exports.save = exports.hide = exports.show = exports.Action = void 0; | ||
exports.create = exports.ContextualSaveBar = exports.update = exports.discard = exports.save = exports.hide = exports.show = exports.Action = void 0; | ||
var helper_1 = require("../helper"); | ||
@@ -68,2 +68,6 @@ var ActionSet_1 = require("../ActionSet"); | ||
exports.discard = discard; | ||
function update(payload) { | ||
return createContextBarAction(Action.UPDATE, payload); | ||
} | ||
exports.update = update; | ||
/** | ||
@@ -70,0 +74,0 @@ * ContextualSaveBar action set |
{ | ||
"name": "@shopify/app-bridge", | ||
"version": "3.4.0-alpha.2", | ||
"version": "3.4.0-alpha.3", | ||
"types": "index.d.ts", | ||
@@ -57,3 +57,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "ef9ef574ac65e5a0fe1607194476254b68ad68e0" | ||
"gitHead": "29170e9d2ea6f43911d8273d259469e624e75cd5" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
980078
20141