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

@clutch-creator/bridge

Package Overview
Dependencies
Maintainers
7
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.6 to 3.0.0-beta.1

2

index.js

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

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

@@ -44,3 +44,4 @@ "main": "index.js",

"webpack-cli": "^3.1.2",
"webpack-node-externals": "^1.7.2"
"webpack-node-externals": "^1.7.2",
"react": ">=16.8"
},

@@ -51,3 +52,6 @@ "dependencies": {

"lodash": "^4.17.15"
},
"peerDependencies": {
"react": ">=16.8"
}
}
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