@gatsby-cloud-pkg/gatsby-cms-extension-base
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -28,3 +28,3 @@ "use strict"; | ||
"Content-Type": `application/json`, | ||
"Authorization": authToken, | ||
Authorization: authToken, | ||
}, | ||
@@ -92,3 +92,3 @@ body: JSON.stringify({ | ||
function ExtensionUI({ contentSlug, previewInstanceUrl, authToken }) { | ||
return (React.createElement(React.Fragment, null, | ||
return (React.createElement("div", null, | ||
previewInstanceUrl ? (React.createElement(Button, { className: "preview-button", type: "button", onClick: () => __awaiter(this, void 0, void 0, function* () { return openPreview({ contentSlug, previewInstanceUrl, authToken }); }) }, "Open Preview")) : (React.createElement(Text, null, "Missing required Gatsby Cloud instance url. Please check your configuration.")), | ||
@@ -95,0 +95,0 @@ React.createElement(PoweredBy, { className: "powered-by" }, |
{ | ||
"name": "@gatsby-cloud-pkg/gatsby-cms-extension-base", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Common utilities for integrating Gatsby Preview with CMS providers", | ||
@@ -43,3 +43,4 @@ "main": "dist/index.js", | ||
"react": "16.8.6" | ||
} | ||
}, | ||
"gitHead": "55a208d7cc20415da61c54d9485f343886fd9e85" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
10606
9