@shopify/app-bridge
Advanced tools
Comparing version 3.5.0 to 3.5.1-alpha.0
@@ -29,2 +29,3 @@ import { ClientApplication } from '../../client'; | ||
success: boolean; | ||
id?: string; | ||
} | ||
@@ -44,2 +45,3 @@ /** | ||
dispatch(action: Action.SHOW, payload: InputPayload): Share; | ||
dispatch(action: Action.CLOSE, payload: OutputPayload): Share; | ||
/** | ||
@@ -56,2 +58,2 @@ * @internal | ||
export declare function show(): ShareAction; | ||
export declare function close(): ShareAction; | ||
export declare function close(payload: OutputPayload): ShareAction; |
@@ -56,5 +56,2 @@ "use strict"; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
Share.prototype.dispatch = function (action, payload) { | ||
@@ -65,2 +62,5 @@ switch (action) { | ||
break; | ||
case Action.CLOSE: | ||
this.dispatchShareAction(Action.CLOSE, payload); | ||
break; | ||
default: | ||
@@ -98,8 +98,9 @@ throw new Error("Action: " + action + " not supported"); | ||
exports.show = show; | ||
function close() { | ||
function close(payload) { | ||
return helper_1.actionWrapper({ | ||
group: types_1.Group.Share, | ||
type: Action.CLOSE, | ||
payload: payload, | ||
}); | ||
} | ||
exports.close = close; |
{ | ||
"name": "@shopify/app-bridge", | ||
"version": "3.5.0", | ||
"version": "3.5.1-alpha.0", | ||
"types": "index.d.ts", | ||
@@ -56,4 +56,3 @@ "main": "index.js", | ||
"shx": "^0.3.3" | ||
}, | ||
"gitHead": "2a1eecb747c070113258a0257674020fed35672a" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20231
908154
174
1