@gatsby-cloud-pkg/gatsby-cms-extension-base
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -17,3 +17,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const entryUrl = contentSlug.startsWith(`/`) | ||
const entryUrl = contentSlug && contentSlug.startsWith(`/`) | ||
? contentSlug.slice(1) | ||
@@ -93,3 +93,3 @@ : contentSlug; | ||
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.")), | ||
previewInstanceUrl ? (React.createElement(Button, { className: "preview-button", type: "button", onClick: () => __awaiter(this, void 0, void 0, function* () { return contentSlug ? openPreview({ contentSlug, previewInstanceUrl, authToken }) : window.open(previewInstanceUrl); }) }, "Open Preview")) : (React.createElement(Text, null, "Missing required Gatsby Cloud instance url. Please check your configuration.")), | ||
React.createElement(PoweredBy, { className: "powered-by" }, | ||
@@ -96,0 +96,0 @@ React.createElement(Text, null, "Powered by:"), |
{ | ||
"name": "@gatsby-cloud-pkg/gatsby-cms-extension-base", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Common utilities for integrating Gatsby Preview with CMS providers", | ||
@@ -43,4 +43,3 @@ "main": "dist/index.js", | ||
"react": "16.8.6" | ||
}, | ||
"gitHead": "55a208d7cc20415da61c54d9485f343886fd9e85" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
10689