Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gatsby-cloud-pkg/gatsby-cms-extension-base

Package Overview
Dependencies
Maintainers
7
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gatsby-cloud-pkg/gatsby-cms-extension-base - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

4

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc