@weahead/consent-manager
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -1,3 +0,4 @@ | ||
import type { PropsWithChildren } from "react"; | ||
/// <reference types="react" /> | ||
import type { OpenModalButtonProps } from "../../../../types/Button"; | ||
import "./style.css"; | ||
export default function OpenModalButton({ children }: PropsWithChildren<{}>): JSX.Element; | ||
export default function OpenModalButton({ children, className, }: OpenModalButtonProps): JSX.Element; |
@@ -10,6 +10,6 @@ "use strict"; | ||
function OpenModalButton(_a) { | ||
var children = _a.children; | ||
var children = _a.children, _b = _a.className, className = _b === void 0 ? 'open-consent-button' : _b; | ||
var actions = (0, useConstentManagerContext_1["default"])().actions; | ||
return (react_1["default"].createElement("button", { className: "open-consent-button", onClick: actions.openModal, type: "button" }, children)); | ||
return (react_1["default"].createElement("button", { className: className, onClick: actions.openModal, type: "button" }, children)); | ||
} | ||
exports["default"] = OpenModalButton; |
{ | ||
"name": "@weahead/consent-manager", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"author": "Weahead AB <alla@weahead.se>", | ||
@@ -63,2 +63,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
@@ -22,1 +22,4 @@ import type { PropsWithChildren } from "react"; | ||
}; | ||
export declare type OpenModalButtonProps = PropsWithChildren<{ | ||
className?: string; | ||
}>; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
48901
1037
1