@consent-manager/integration-hubspot
Advanced tools
Comparing version 0.0.1-next.2 to 0.0.1-next.3
# @consent-manager/integration-hubspot | ||
## 0.0.1-next.3 | ||
### Patch Changes | ||
- New design | ||
- Updated dependencies [undefined] | ||
- @consent-manager/core@0.0.1-next.9 | ||
## 0.0.1-next.2 | ||
@@ -4,0 +12,0 @@ |
@@ -49,3 +49,3 @@ 'use strict'; | ||
title: title, | ||
category: 'statistics', | ||
category: 'Statistics', | ||
color: color, | ||
@@ -52,0 +52,0 @@ contrastColor: contrastColor, |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,o=require("@consent-manager/core"),e=(t=require("simple-icons/icons/hubspot"))&&"object"==typeof t&&"default"in t?t.default:t,r=!1,i=function(){var t=o.useDecision("hubspot")[0],e=o.useIntegration("hubspot");if(!e||!e.options)throw new Error("It is not possible to initialize hubspot without configuration");var i=e.options.hubId;if(!r&&t){var s=document.createElement("script");s.src="//js.hs-scripts.com/"+i+".js",s.async=!0,s.defer=!0,s.type="text/javascript",s.id="hs-script-loader",document.body.appendChild(s),r=!0}return null};exports.hubspotIntegration=function(t){var r=e.title,s=e.path,n="#"+e.hex;return{id:e.slug,title:r,category:"statistics",color:n,contrastColor:o.getForegroundColor(n),Icon:o.createIconComponentFromSimpleIconsSvgPath(r,s),privacyPolicyUrl:"https://legal.hubspot.com/product-privacy-policy",description:"We use Hubspot to improve your browsing experience.",WrapperComponent:i,options:t}}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,o=require("@consent-manager/core"),e=(t=require("simple-icons/icons/hubspot"))&&"object"==typeof t&&"default"in t?t.default:t,r=!1,i=function(){var t=o.useDecision("hubspot")[0],e=o.useIntegration("hubspot");if(!e||!e.options)throw new Error("It is not possible to initialize hubspot without configuration");var i=e.options.hubId;if(!r&&t){var s=document.createElement("script");s.src="//js.hs-scripts.com/"+i+".js",s.async=!0,s.defer=!0,s.type="text/javascript",s.id="hs-script-loader",document.body.appendChild(s),r=!0}return null};exports.hubspotIntegration=function(t){var r=e.title,s=e.path,n="#"+e.hex;return{id:e.slug,title:r,category:"Statistics",color:n,contrastColor:o.getForegroundColor(n),Icon:o.createIconComponentFromSimpleIconsSvgPath(r,s),privacyPolicyUrl:"https://legal.hubspot.com/product-privacy-policy",description:"We use Hubspot to improve your browsing experience.",WrapperComponent:i,options:t}}; | ||
//# sourceMappingURL=integration-hubspot.cjs.production.min.js.map |
@@ -43,3 +43,3 @@ import { getForegroundColor, createIconComponentFromSimpleIconsSvgPath, useDecision, useIntegration } from '@consent-manager/core'; | ||
title: title, | ||
category: 'statistics', | ||
category: 'Statistics', | ||
color: color, | ||
@@ -46,0 +46,0 @@ contrastColor: contrastColor, |
{ | ||
"name": "@consent-manager/integration-hubspot", | ||
"version": "0.0.1-next.2", | ||
"version": "0.0.1-next.3", | ||
"description": "Protect your visitors privacy by integrating hubspot.com via consent-manager", | ||
@@ -51,3 +51,3 @@ "author": { | ||
"peerDependencies": { | ||
"@consent-manager/core": "^0.0.1-next.8", | ||
"@consent-manager/core": "^0.0.1-next.9", | ||
"react": "^16.8.0 || ^17.0.1", | ||
@@ -54,0 +54,0 @@ "react-dom": "^16.8.0 || ^17.0.1" |
@@ -56,3 +56,3 @@ import { | ||
title, | ||
category: 'statistics', | ||
category: 'Statistics', | ||
color, | ||
@@ -59,0 +59,0 @@ contrastColor, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21390