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

@clutch-creator/bridge

Package Overview
Dependencies
Maintainers
6
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clutch-creator/bridge - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

index.js

@@ -1,1 +0,1 @@

module.exports=function(r){var t={};function o(e){if(t[e])return t[e].exports;var n=t[e]={i:e,l:!1,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=r,o.c=t,o.d=function(e,n,r){if(!o.o(e,n))Object.defineProperty(e,n,{enumerable:!0,get:r})},o.r=function(e){if("undefined"!=typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e)n=o(n);if(8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var t in n)o.d(r,t,function(e){return n[e]}.bind(null,t));return r},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=6)}([function(e,n){e.exports=require("lodash/get")},function(e,n){e.exports=require("@babel/runtime/helpers/typeof")},function(e,n){e.exports=require("@babel/runtime/helpers/defineProperty")},function(e,n){e.exports=require("@babel/runtime/helpers/toConsumableArray")},function(e,n){e.exports=require("@babel/runtime/helpers/slicedToArray")},function(e,n){e.exports=require("classnames")},function(e,n,r){"use strict";r.r(n);var t=r(2),l=r.n(t),o=r(4),p=r.n(o),i=r(1),c=r.n(i),s=r(3),d=r.n(s),u=r(5),a=r.n(u),f=r(0),y=r.n(f),v=function(){var r=new WeakSet;return function(e,n){if("object"===c()(n)&&null!==n){if(r.has(n))return;r.add(n)}if("function"==typeof n)return n.toString();if("object"===c()(n)&&null!=n&&n.constructor&&n.constructor.name.includes("HTML"))return"<".concat(n.constructor.name,">");else return n}};function b(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);if(e)t=t.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable});r.push.apply(r,t)}return r}function h(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};if(e%2)b(Object(r),!0).forEach(function(e){l()(n,e,r[e])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(n,Object.getOwnPropertyDescriptors(r));else b(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}r.d(n,"classnames",function(){return g}),r.d(n,"getUniqueClassName",function(){return O}),r.d(n,"mergeProperty",function(){return j}),r.d(n,"mergeVariants",function(){return m}),r.d(n,"mergeProperties",function(){return P}),r.d(n,"mergeOverrides",function(){return w}),r.d(n,"getOverrides",function(){return S}),r.d(n,"getClutchProps",function(){return C}),r.d(n,"hasVariant",function(){return E}),r.d(n,"propertyBind",function(){return A}),r.d(n,"renderChildren",function(){return _}),r.d(n,"getFlowProps",function(){return k}),r.d(n,"composition",function(){return M}),r.d(n,"calculateProperties",function(){return N}),r.d(n,"changeComponentProp",function(){return x});var g=a.a;function O(e,n){var r;if("undefined"!=typeof window&&window.CLUTCH_CLASSES_MAP){var t=function(e){var n=e||{},r=n.keys,t=n.rootInstances,o="".concat(n.id);if(r&&r.length)o+=".".concat(r.map(function(e){return e.key}).join("."));if(t&&t.length)o+=".".concat(t.join("."));return o}(e);if(void 0===window.CLUTCH_CLASSES_MAP["".concat(t).concat(n)])r="-clutch-identifier".concat(Object.keys(window.CLUTCH_CLASSES_MAP).length),window.CLUTCH_CLASSES_MAP["".concat(t).concat(n)]=r;else r=window.CLUTCH_CLASSES_MAP["".concat(t).concat(n)]}return r}function j(e){for(var n=e,r=arguments.length,t=new Array(1<r?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];return t.forEach(function(e){if(void 0!==e)if(e&&e.className&&e.style)n={className:a()(n&&n.className,e&&e.className),style:Object.assign({},n&&n.style,e&&e.style)};else n=e}),n}function m(e){for(var r=Object.assign({},e),n=arguments.length,t=new Array(1<n?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];if(t&&t.length)t.forEach(function(e){r=Object.assign({},r,e)});return Object.keys(r).reduce(function(e,n){if(r[n])return[].concat(d()(e),[n]);else return e},[])}function P(e){for(var i=Object.assign({},e),n=arguments.length,r=new Array(1<n?n-1:0),t=1;t<n;t++)r[t-1]=arguments[t];if(r&&r.length)r.forEach(function(o){if(o&&"object"===c()(o))Object.keys(o).forEach(function(e){var n=i[e],r=o[e];if("variants"===e){if(r&&r.length)i.variants=d()(n||[]),r.forEach(function(e){if(e&&"string"==typeof e&&!i.variants.includes(e))i.variants.push(e)})}else if("clutchProps"===e)if(n&&r&&r.overrides){var t=n.overrides||{};Object.keys(r.overrides).forEach(function(e){t[e]=P(t[e],r.overrides[e])}),i[e]=Object.assign({},n,r,{overrides:t})}else i[e]=Object.assign({},n,r);else i[e]=j(n,r)})});return i}function w(e){for(var r=Object.assign({},e),n=arguments.length,t=new Array(1<n?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];return t.forEach(function(n){if(n)Object.keys(n).forEach(function(e){r[e]=P(r[e],n[e])})}),r}function S(e){var n,r=y()(e,["clutchProps","selection"]),t=y()(e,["clutchProps","overrides"]);if(r&&t){var o=r.rootInstances||[];n=t["".concat(o.join("."),".").concat(r.id)]}return n}function C(e,n,r,t,o,i,c){var s=y()(r,["selection"],{});if(!i)console.log("Missing parentSelection, this might happen when you dont use useClutch to get properties");var u=i&&i.keys||[];if(void 0!==o&&i)u=[].concat(d()(u),[{componentId:i.id,key:o}]);var a=s.rootInstances||[];if(!s.rootInstances)a=[];else a=[].concat(d()(a),[s.id]);var f=y()(r,["overrides"]);if(c){f=Object.assign({},f);var l=a&&a.length;Object.keys(c).forEach(function(e){var n=e;if(l)n="".concat(a.join("."),".").concat(e);if(f[n])f[n]=P(c[e],f[n]);else f[n]=c[e]})}return{selection:{id:e,rootInstances:a,keys:u},masterProps:n,flowProps:t,overrides:f}}function E(e,n){return e&&Array.isArray(e)&&e.includes(n)?!0:void 0}function A(e,n){var r;try{if(void 0!==(r=y()(this,e))&&n)r+=n}catch(e){}return r}function _(e,n,r,t,o){var i=r,c=n||{};if(t)c=Object.assign({},c,t);if("function"==typeof r)i=r(c,o,e);else if(void 0===r)i=null;return i}function k(e){return y()(e,["clutchProps","flowProps"],{})}function M(e,n,r){return _.bind(this,n,r,e)}function N(e){var s=this,n=e.defaultSelection,r=e.propsTypes,t=e.privateProps,o=e.props,u=P(t,o,S(o)),i=u&&u.clutchProps||{},c=i.masterProps,a=i.flowProps,f=i.selection||n;return u=Object.entries(r).reduce(function(e,n){var r=p()(n,2),t=r[0],o=r[1],i=u[t];if("Children"===o)return h({},e,l()({},t,_.bind(s,f,a,i)));if("Styles"!==o||"production"===process.env.NODE_ENV)return e;var c=O(f,t);return h({},e,l()({},t,{className:g(i&&i.className,c),style:i&&i.style||{}}))},u),delete(u=Object.entries(u).reduce(function(e,n){var r=p()(n,2),t=r[0],o=r[1];if(!("function"!=typeof o||o.prototype&&o.prototype.isReactComponent))return h({},e,l()({},t,o.bind({masterProps:c,flowProps:a})));else return e},u)).clutchProps,{masterProps:u,clutchProps:Object.assign({},i,{selection:f})}}function x(e,n,r){!function(e){if("development"===process.env.NODE_ENV&&"undefined"!=typeof window){var n=JSON.stringify(e,v());if(window.opener)window.opener.postMessage(n,"*");else window.parent.postMessage(n,"*")}}({type:"changeComponentProp",selection:e,propName:n,value:r})}}]);
module.exports=function(t){var r={};function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=r,o.d=function(e,n,t){if(!o.o(e,n))Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){if("undefined"!=typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e)n=o(n);if(8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)o.d(t,r,function(e){return n[e]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=6)}([function(e,n){e.exports=require("lodash/get")},function(e,n){e.exports=require("@babel/runtime/helpers/toConsumableArray")},function(e,n){e.exports=require("@babel/runtime/helpers/defineProperty")},function(e,n){e.exports=require("@babel/runtime/helpers/typeof")},function(e,n){e.exports=require("@babel/runtime/helpers/slicedToArray")},function(e,n){e.exports=require("classnames")},function(e,n,t){"use strict";t.r(n);var r=t(2),a=t.n(r),o=t(4),l=t.n(o),i=t(1),p=t.n(i),c=t(0),d=t.n(c);function y(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);if(e)r=r.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable});t.push.apply(t,r)}return t}function u(e,n){var t;if("undefined"!=typeof window&&window.CLUTCH_CLASSES_MAP){var r=function(e){var n=e||{},t=n.keys,r=n.rootInstances,o="".concat(n.id);if(t&&t.length)o+=".".concat(t.map(function(e){return e.key}).join("."));if(r&&r.length)o+=".".concat(r.join("."));return o}(e);if(void 0===window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)])t="-clutch-identifier".concat(Object.keys(window.CLUTCH_CLASSES_MAP).length),window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)]=t;else t=window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)]}return t}function f(t){var e=t;if(void 0!==e)e=Object.keys(t).reduce(function(e,n){if(t[n])return[].concat(p()(e),[n]);else return e},[]);return e}function s(e,n){return e&&Array.isArray(e)&&e.includes(n)?!0:void 0}function b(e,n){var t;try{if(void 0!==(t=d()(this,e))&&n)t+=n}catch(e){}return t}function v(e,n,t,r,o,i){var c=d()(n,["selection"],{});if(!o)console.log("Missing parentSelection, this might happen when you dont use useClutch to get properties");var u=o&&o.keys||[];if(void 0!==r&&o)u=[].concat(p()(u),[{componentId:o.id,key:r}]);var f=c.rootInstances||[];if(!c.rootInstances)f=[];else f=[].concat(p()(f),[c.id]);var s=d()(n,["overrides"]);if(i){s=Object.assign({},s);var a=f&&f.length;Object.keys(i).forEach(function(e){var n=e;if(a)n="".concat(f.join("."),".").concat(e);s[n]=[].concat(p()(s[n]||[]),[i[e]])})}return{selection:{id:e,rootInstances:f,keys:u},flowProps:t,overrides:s}}function h(e){var n=e.id,i=e.masterProps,c=e.flowProps,t=e.key,r=e.parentSelection,o=e.props,u=e.overrides,f=function(e){var n,t=d()(e,["clutchProps","selection"]),r=d()(e,["clutchProps","overrides"]);if(t&&r){var o=t.rootInstances||[];n=r["".concat(o.join("."),".").concat(t.id)]}return n}(v(n,d()(i,["clutchProps"],{}),c,t,r,u)),s={};return[].concat(p()(f||[]),[o]).forEach(function(e){s=e(s)}),s=Object.entries(s).reduce(function(e,n){var t=l()(n,2),r=t[0],o=t[1];if(!("function"!=typeof o||o.prototype&&o.prototype.isReactComponent))return function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};if(e%2)y(Object(t),!0).forEach(function(e){a()(n,e,t[e])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(n,Object.getOwnPropertyDescriptors(t));else y(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}({},e,a()({},r,o.bind({masterProps:i,flowProps:c})));else return e},s)}var g=t(5),w=t.n(g).a;function O(e){for(var n=e,t=arguments.length,r=new Array(1<t?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.forEach(function(e){if(void 0!==e)n=e}),n}function m(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return Object.assign.apply(Object,[{}].concat(n))}function j(e,n,t,r,o){var i=t,c=n||{};if(r)c=Object.assign({},c,r);if("function"==typeof t)i=t(c,o,e);else if(void 0===t)i=null;return i}function P(e,n,t){return j.bind(this,n,t,e)}function S(e,n,t){return j.bind(this,n,t,e)()}var C=t(3),A=t.n(C),_=function(){var t=new WeakSet;return function(e,n){if("object"===A()(n)&&null!==n){if(t.has(n))return;t.add(n)}if("function"==typeof n)return n.toString();if("object"===A()(n)&&null!=n&&n.constructor&&n.constructor.name.includes("HTML"))return"<".concat(n.constructor.name,">");else return n}};function M(e,n,t){!function(e){if("development"===process.env.NODE_ENV&&"undefined"!=typeof window){var n=JSON.stringify(e,_());if(window.opener)window.opener.postMessage(n,"*");else window.parent.postMessage(n,"*")}}({type:"changeComponentProp",selection:e,propName:n,value:t})}t.d(n,"getUniqueClassName",function(){return u}),t.d(n,"getVariants",function(){return f}),t.d(n,"hasVariant",function(){return s}),t.d(n,"propertyBind",function(){return b}),t.d(n,"getClutchProps",function(){return v}),t.d(n,"getInstanceProps",function(){return h}),t.d(n,"mClassnames",function(){return w}),t.d(n,"mReplace",function(){return O}),t.d(n,"mAssign",function(){return m}),t.d(n,"renderChildren",function(){return j}),t.d(n,"childrenFn",function(){return P}),t.d(n,"childrenVal",function(){return S}),t.d(n,"changeComponentProp",function(){return M})}]);
{
"name": "@clutch-creator/bridge",
"version": "2.0.0",
"version": "2.0.1",
"description": "Clutch Bridge",

@@ -5,0 +5,0 @@ "main": "index.js",

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