@gatsby-cloud-pkg/gatsby-cms-extension-base
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -11,6 +11,6 @@ export declare function getContentPath({ contentSlug, previewInstanceUrl, authToken, }: { | ||
}): Promise<Window>; | ||
export declare function ExtensionUI({ previewInstanceUrl, contentSlug, authToken }: { | ||
export declare function ExtensionUI({ contentSlug, previewInstanceUrl, authToken }: { | ||
contentSlug: any; | ||
previewInstanceUrl: any; | ||
contentSlug: any; | ||
authToken: any; | ||
}): JSX.Element; |
@@ -28,3 +28,3 @@ "use strict"; | ||
"Content-Type": `application/json`, | ||
"x-preview-auth-token": authToken, | ||
"Authorization": authToken, | ||
}, | ||
@@ -61,4 +61,4 @@ body: JSON.stringify({ | ||
border: 0; | ||
border-radius: 3px; | ||
font-size: 16px; | ||
border-radius: 4px; | ||
font-size: 18px; | ||
font-weight: bold; | ||
@@ -70,5 +70,3 @@ padding: 16px; | ||
background-color: #663399; | ||
margin-top: 16px; | ||
color: white; | ||
font-weight: 400; | ||
@@ -93,14 +91,13 @@ &:hover { | ||
`; | ||
function ExtensionUI({ previewInstanceUrl, contentSlug, authToken }) { | ||
function ExtensionUI({ contentSlug, previewInstanceUrl, authToken }) { | ||
return (React.createElement(React.Fragment, null, | ||
previewInstanceUrl | ||
? (React.createElement(Button, { className: "preview-button", type: "button", onClick: () => __awaiter(this, void 0, void 0, function* () { | ||
return openPreview({ contentSlug, authToken, previewInstanceUrl }); | ||
}) }, "Open Preview")) | ||
: (React.createElement(Text, null, "Missing required Gatsby Cloud instance url. Please check your extension configuration.")), | ||
"` `", | ||
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.")), | ||
"` `", | ||
React.createElement(PoweredBy, { className: "powered-by" }, | ||
React.createElement(Text, null, "Powered by:"), | ||
React.createElement(Gatsby_1.default, null)))); | ||
React.createElement(Gatsby_1.default, null)), | ||
"` `")); | ||
} | ||
exports.ExtensionUI = ExtensionUI; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@gatsby-cloud-pkg/gatsby-cms-extension-base", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Common utilities for integrating Gatsby Preview with CMS providers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
10025
134