New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
36
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.46 to 0.0.47

3

dist/index.d.ts

@@ -12,7 +12,8 @@ /// <reference types="react" />

}): Promise<Window>;
export declare function ExtensionUI({ contentSlug, previewUrl, authToken, children }: {
export declare function ExtensionUI({ contentSlug, previewUrl, authToken, onOpenPreviewButtonClick, children, }: {
contentSlug: any;
previewUrl: any;
authToken: any;
onOpenPreviewButtonClick: any;
children: any;
}): JSX.Element;

@@ -102,9 +102,10 @@ "use strict";

`;
function ExtensionUI({ contentSlug, previewUrl, authToken, children }) {
function ExtensionUI({ contentSlug, previewUrl, authToken, onOpenPreviewButtonClick, children, }) {
return (React.createElement("div", null,
previewUrl ? (React.createElement(react_1.Fragment, null,
React.createElement(Button, { className: "preview-button", type: "button", onClick: () => __awaiter(this, void 0, void 0, function* () {
return contentSlug
contentSlug
? openPreview({ contentSlug, previewUrl, authToken })
: window.open(previewUrl);
onOpenPreviewButtonClick === null || onOpenPreviewButtonClick === void 0 ? void 0 : onOpenPreviewButtonClick();
}) }, "Open Preview"),

@@ -111,0 +112,0 @@ children)) : (React.createElement(Text, null, "Missing required Gatsby Cloud Preview url. Please check your configuration.")),

{
"name": "@gatsby-cloud-pkg/gatsby-cms-extension-base",
"version": "0.0.46",
"version": "0.0.47",
"private": false,

@@ -49,3 +49,3 @@ "description": "Common utilities for integrating Gatsby Preview with CMS providers",

},
"gitHead": "b70a73431df7f49d376c7ee7cec8c7178bc4a2f3"
"gitHead": "dc610795bed29e2ea25fa8f79f9a3677636fc7d2"
}

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