@bigbinary/neeto-molecules 3.15.40 → 3.15.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/MadeWith.js CHANGED
@@ -13,15 +13,17 @@ var _excluded = ["productName"];
13
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
15
  var MadeWith = function MadeWith(_ref) {
16
+ var _globalProps$organiza;
16
17
  var productName = _ref.productName,
17
18
  otherProps = _objectWithoutProperties(_ref, _excluded);
18
19
  var name = capitalize(productName || globalProps.appName);
19
- var subdomain = globalProps.organization.subdomain;
20
+ var subdomain = (_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.subdomain;
21
+ var utmParams = "utm_source=madewith".concat(subdomain ? "&utm_campaign=".concat(subdomain) : "");
20
22
  return /*#__PURE__*/jsx("a", _objectSpread(_objectSpread({
21
23
  className: "neeto-molecules-made-with__wrapper",
22
24
  "data-cy": "made-with-".concat(name.toLowerCase()),
23
25
  "data-testid": "made-with-".concat(name.toLowerCase()),
24
- href: "https://www.neeto.com/".concat(name.toLowerCase(), "?utm_source=madewith&utm_campaign=").concat(subdomain),
26
+ href: "https://www.neeto.com/".concat(name.toLowerCase(), "?").concat(utmParams),
25
27
  rel: "noreferrer",
26
28
  target: "_blank"
27
29
  }, otherProps), {}, {
@@ -1 +1 @@
1
- {"version":3,"file":"MadeWith.js","sources":["../src/components/MadeWith/index.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { capitalize } from \"neetocist\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\n\nimport \"./made-with.scss\";\n\nconst MadeWith = ({ productName, ...otherProps }) => {\n const name = capitalize(productName || globalProps.appName);\n const subdomain = globalProps.organization.subdomain;\n\n return (\n <a\n className=\"neeto-molecules-made-with__wrapper\"\n data-cy={`made-with-${name.toLowerCase()}`}\n data-testid={`made-with-${name.toLowerCase()}`}\n href={`https://www.neeto.com/${name.toLowerCase()}?utm_source=madewith&utm_campaign=${subdomain}`}\n rel=\"noreferrer\"\n target=\"_blank\"\n {...otherProps}\n >\n <Trans\n i18nKey=\"neetoMolecules.common.madeWith\"\n values={{ productName: name }}\n />\n </a>\n );\n};\n\nMadeWith.propTypes = {\n /**\n * Product name to be displayed on the component (optional).\n */\n productName: PropTypes.string,\n};\n\nexport default memo(MadeWith);\n"],"names":["MadeWith","_ref","productName","otherProps","_objectWithoutProperties","_excluded","name","capitalize","globalProps","appName","subdomain","organization","_jsx","_objectSpread","className","concat","toLowerCase","href","rel","target","children","Trans","i18nKey","values","memo"],"mappings":";;;;;;;;;;;;;;AAQA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAAuC;AAAA,EAAA,IAAjCC,WAAW,GAAAD,IAAA,CAAXC,WAAW;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA,CAAA;EAC5C,IAAMC,IAAI,GAAGC,UAAU,CAACL,WAAW,IAAIM,WAAW,CAACC,OAAO,CAAC,CAAA;AAC3D,EAAA,IAAMC,SAAS,GAAGF,WAAW,CAACG,YAAY,CAACD,SAAS,CAAA;AAEpD,EAAA,oBACEE,GAAA,CAAA,GAAA,EAAAC,aAAA,CAAAA,aAAA,CAAA;AACEC,IAAAA,SAAS,EAAC,oCAAoC;AAC9C,IAAA,SAAA,EAAA,YAAA,CAAAC,MAAA,CAAsBT,IAAI,CAACU,WAAW,EAAE,CAAG;AAC3C,IAAA,aAAA,EAAA,YAAA,CAAAD,MAAA,CAA0BT,IAAI,CAACU,WAAW,EAAE,CAAG;AAC/CC,IAAAA,IAAI,EAAAF,wBAAAA,CAAAA,MAAA,CAA2BT,IAAI,CAACU,WAAW,EAAE,EAAAD,oCAAAA,CAAAA,CAAAA,MAAA,CAAqCL,SAAS,CAAG;AAClGQ,IAAAA,GAAG,EAAC,YAAY;AAChBC,IAAAA,MAAM,EAAC,QAAA;AAAQ,GAAA,EACXhB,UAAU,CAAA,EAAA,EAAA,EAAA;IAAAiB,QAAA,eAEdR,GAAA,CAACS,KAAK,EAAA;AACJC,MAAAA,OAAO,EAAC,gCAAgC;AACxCC,MAAAA,MAAM,EAAE;AAAErB,QAAAA,WAAW,EAAEI,IAAAA;AAAK,OAAA;KAC7B,CAAA;AAAC,GAAA,CACD,CAAC,CAAA;AAER,CAAC,CAAA;AASD,YAAekB,aAAAA,IAAI,CAACxB,QAAQ,CAAC;;;;"}
1
+ {"version":3,"file":"MadeWith.js","sources":["../src/components/MadeWith/index.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { capitalize } from \"neetocist\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\n\nimport \"./made-with.scss\";\n\nconst MadeWith = ({ productName, ...otherProps }) => {\n const name = capitalize(productName || globalProps.appName);\n const subdomain = globalProps.organization?.subdomain;\n const utmParams = `utm_source=madewith${\n subdomain ? `&utm_campaign=${subdomain}` : \"\"\n }`;\n\n return (\n <a\n className=\"neeto-molecules-made-with__wrapper\"\n data-cy={`made-with-${name.toLowerCase()}`}\n data-testid={`made-with-${name.toLowerCase()}`}\n href={`https://www.neeto.com/${name.toLowerCase()}?${utmParams}`}\n rel=\"noreferrer\"\n target=\"_blank\"\n {...otherProps}\n >\n <Trans\n i18nKey=\"neetoMolecules.common.madeWith\"\n values={{ productName: name }}\n />\n </a>\n );\n};\n\nMadeWith.propTypes = {\n /**\n * Product name to be displayed on the component (optional).\n */\n productName: PropTypes.string,\n};\n\nexport default memo(MadeWith);\n"],"names":["MadeWith","_ref","_globalProps$organiza","productName","otherProps","_objectWithoutProperties","_excluded","name","capitalize","globalProps","appName","subdomain","organization","utmParams","concat","_jsx","_objectSpread","className","toLowerCase","href","rel","target","children","Trans","i18nKey","values","memo"],"mappings":";;;;;;;;;;;;;;AAQA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAAuC;AAAA,EAAA,IAAAC,qBAAA,CAAA;AAAA,EAAA,IAAjCC,WAAW,GAAAF,IAAA,CAAXE,WAAW;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;EAC5C,IAAMC,IAAI,GAAGC,UAAU,CAACL,WAAW,IAAIM,WAAW,CAACC,OAAO,CAAC,CAAA;AAC3D,EAAA,IAAMC,SAAS,GAAA,CAAAT,qBAAA,GAAGO,WAAW,CAACG,YAAY,MAAA,IAAA,IAAAV,qBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAxBA,qBAAA,CAA0BS,SAAS,CAAA;EACrD,IAAME,SAAS,GAAAC,qBAAAA,CAAAA,MAAA,CACbH,SAAS,GAAAG,gBAAAA,CAAAA,MAAA,CAAoBH,SAAS,CAAK,GAAA,EAAE,CAC7C,CAAA;AAEF,EAAA,oBACEI,GAAA,CAAA,GAAA,EAAAC,aAAA,CAAAA,aAAA,CAAA;AACEC,IAAAA,SAAS,EAAC,oCAAoC;AAC9C,IAAA,SAAA,EAAA,YAAA,CAAAH,MAAA,CAAsBP,IAAI,CAACW,WAAW,EAAE,CAAG;AAC3C,IAAA,aAAA,EAAA,YAAA,CAAAJ,MAAA,CAA0BP,IAAI,CAACW,WAAW,EAAE,CAAG;AAC/CC,IAAAA,IAAI,EAAAL,wBAAAA,CAAAA,MAAA,CAA2BP,IAAI,CAACW,WAAW,EAAE,EAAAJ,GAAAA,CAAAA,CAAAA,MAAA,CAAID,SAAS,CAAG;AACjEO,IAAAA,GAAG,EAAC,YAAY;AAChBC,IAAAA,MAAM,EAAC,QAAA;AAAQ,GAAA,EACXjB,UAAU,CAAA,EAAA,EAAA,EAAA;IAAAkB,QAAA,eAEdP,GAAA,CAACQ,KAAK,EAAA;AACJC,MAAAA,OAAO,EAAC,gCAAgC;AACxCC,MAAAA,MAAM,EAAE;AAAEtB,QAAAA,WAAW,EAAEI,IAAAA;AAAK,OAAA;KAC7B,CAAA;AAAC,GAAA,CACD,CAAC,CAAA;AAER,CAAC,CAAA;AASD,YAAemB,aAAAA,IAAI,CAAC1B,QAAQ,CAAC;;;;"}
@@ -15,15 +15,17 @@ var _excluded = ["productName"];
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  var MadeWith = function MadeWith(_ref) {
18
+ var _globalProps$organiza;
18
19
  var productName = _ref.productName,
19
20
  otherProps = _objectWithoutProperties(_ref, _excluded);
20
21
  var name = neetoCist.capitalize(productName || globalProps.appName);
21
- var subdomain = globalProps.organization.subdomain;
22
+ var subdomain = (_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.subdomain;
23
+ var utmParams = "utm_source=madewith".concat(subdomain ? "&utm_campaign=".concat(subdomain) : "");
22
24
  return /*#__PURE__*/jsxRuntime.jsx("a", _objectSpread(_objectSpread({
23
25
  className: "neeto-molecules-made-with__wrapper",
24
26
  "data-cy": "made-with-".concat(name.toLowerCase()),
25
27
  "data-testid": "made-with-".concat(name.toLowerCase()),
26
- href: "https://www.neeto.com/".concat(name.toLowerCase(), "?utm_source=madewith&utm_campaign=").concat(subdomain),
28
+ href: "https://www.neeto.com/".concat(name.toLowerCase(), "?").concat(utmParams),
27
29
  rel: "noreferrer",
28
30
  target: "_blank"
29
31
  }, otherProps), {}, {
@@ -1 +1 @@
1
- {"version":3,"file":"MadeWith.js","sources":["../../src/components/MadeWith/index.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { capitalize } from \"neetocist\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\n\nimport \"./made-with.scss\";\n\nconst MadeWith = ({ productName, ...otherProps }) => {\n const name = capitalize(productName || globalProps.appName);\n const subdomain = globalProps.organization.subdomain;\n\n return (\n <a\n className=\"neeto-molecules-made-with__wrapper\"\n data-cy={`made-with-${name.toLowerCase()}`}\n data-testid={`made-with-${name.toLowerCase()}`}\n href={`https://www.neeto.com/${name.toLowerCase()}?utm_source=madewith&utm_campaign=${subdomain}`}\n rel=\"noreferrer\"\n target=\"_blank\"\n {...otherProps}\n >\n <Trans\n i18nKey=\"neetoMolecules.common.madeWith\"\n values={{ productName: name }}\n />\n </a>\n );\n};\n\nMadeWith.propTypes = {\n /**\n * Product name to be displayed on the component (optional).\n */\n productName: PropTypes.string,\n};\n\nexport default memo(MadeWith);\n"],"names":["MadeWith","_ref","productName","otherProps","_objectWithoutProperties","_excluded","name","capitalize","globalProps","appName","subdomain","organization","_jsx","_objectSpread","className","concat","toLowerCase","href","rel","target","children","Trans","i18nKey","values","memo"],"mappings":";;;;;;;;;;;;;;;;AAQA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAAuC;AAAA,EAAA,IAAjCC,WAAW,GAAAD,IAAA,CAAXC,WAAW;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA,CAAA;EAC5C,IAAMC,IAAI,GAAGC,oBAAU,CAACL,WAAW,IAAIM,WAAW,CAACC,OAAO,CAAC,CAAA;AAC3D,EAAA,IAAMC,SAAS,GAAGF,WAAW,CAACG,YAAY,CAACD,SAAS,CAAA;AAEpD,EAAA,oBACEE,cAAA,CAAA,GAAA,EAAAC,aAAA,CAAAA,aAAA,CAAA;AACEC,IAAAA,SAAS,EAAC,oCAAoC;AAC9C,IAAA,SAAA,EAAA,YAAA,CAAAC,MAAA,CAAsBT,IAAI,CAACU,WAAW,EAAE,CAAG;AAC3C,IAAA,aAAA,EAAA,YAAA,CAAAD,MAAA,CAA0BT,IAAI,CAACU,WAAW,EAAE,CAAG;AAC/CC,IAAAA,IAAI,EAAAF,wBAAAA,CAAAA,MAAA,CAA2BT,IAAI,CAACU,WAAW,EAAE,EAAAD,oCAAAA,CAAAA,CAAAA,MAAA,CAAqCL,SAAS,CAAG;AAClGQ,IAAAA,GAAG,EAAC,YAAY;AAChBC,IAAAA,MAAM,EAAC,QAAA;AAAQ,GAAA,EACXhB,UAAU,CAAA,EAAA,EAAA,EAAA;IAAAiB,QAAA,eAEdR,cAAA,CAACS,kBAAK,EAAA;AACJC,MAAAA,OAAO,EAAC,gCAAgC;AACxCC,MAAAA,MAAM,EAAE;AAAErB,QAAAA,WAAW,EAAEI,IAAAA;AAAK,OAAA;KAC7B,CAAA;AAAC,GAAA,CACD,CAAC,CAAA;AAER,CAAC,CAAA;AASD,YAAekB,aAAAA,UAAI,CAACxB,QAAQ,CAAC;;;;"}
1
+ {"version":3,"file":"MadeWith.js","sources":["../../src/components/MadeWith/index.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { capitalize } from \"neetocist\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\n\nimport \"./made-with.scss\";\n\nconst MadeWith = ({ productName, ...otherProps }) => {\n const name = capitalize(productName || globalProps.appName);\n const subdomain = globalProps.organization?.subdomain;\n const utmParams = `utm_source=madewith${\n subdomain ? `&utm_campaign=${subdomain}` : \"\"\n }`;\n\n return (\n <a\n className=\"neeto-molecules-made-with__wrapper\"\n data-cy={`made-with-${name.toLowerCase()}`}\n data-testid={`made-with-${name.toLowerCase()}`}\n href={`https://www.neeto.com/${name.toLowerCase()}?${utmParams}`}\n rel=\"noreferrer\"\n target=\"_blank\"\n {...otherProps}\n >\n <Trans\n i18nKey=\"neetoMolecules.common.madeWith\"\n values={{ productName: name }}\n />\n </a>\n );\n};\n\nMadeWith.propTypes = {\n /**\n * Product name to be displayed on the component (optional).\n */\n productName: PropTypes.string,\n};\n\nexport default memo(MadeWith);\n"],"names":["MadeWith","_ref","_globalProps$organiza","productName","otherProps","_objectWithoutProperties","_excluded","name","capitalize","globalProps","appName","subdomain","organization","utmParams","concat","_jsx","_objectSpread","className","toLowerCase","href","rel","target","children","Trans","i18nKey","values","memo"],"mappings":";;;;;;;;;;;;;;;;AAQA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAAuC;AAAA,EAAA,IAAAC,qBAAA,CAAA;AAAA,EAAA,IAAjCC,WAAW,GAAAF,IAAA,CAAXE,WAAW;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;EAC5C,IAAMC,IAAI,GAAGC,oBAAU,CAACL,WAAW,IAAIM,WAAW,CAACC,OAAO,CAAC,CAAA;AAC3D,EAAA,IAAMC,SAAS,GAAA,CAAAT,qBAAA,GAAGO,WAAW,CAACG,YAAY,MAAA,IAAA,IAAAV,qBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAxBA,qBAAA,CAA0BS,SAAS,CAAA;EACrD,IAAME,SAAS,GAAAC,qBAAAA,CAAAA,MAAA,CACbH,SAAS,GAAAG,gBAAAA,CAAAA,MAAA,CAAoBH,SAAS,CAAK,GAAA,EAAE,CAC7C,CAAA;AAEF,EAAA,oBACEI,cAAA,CAAA,GAAA,EAAAC,aAAA,CAAAA,aAAA,CAAA;AACEC,IAAAA,SAAS,EAAC,oCAAoC;AAC9C,IAAA,SAAA,EAAA,YAAA,CAAAH,MAAA,CAAsBP,IAAI,CAACW,WAAW,EAAE,CAAG;AAC3C,IAAA,aAAA,EAAA,YAAA,CAAAJ,MAAA,CAA0BP,IAAI,CAACW,WAAW,EAAE,CAAG;AAC/CC,IAAAA,IAAI,EAAAL,wBAAAA,CAAAA,MAAA,CAA2BP,IAAI,CAACW,WAAW,EAAE,EAAAJ,GAAAA,CAAAA,CAAAA,MAAA,CAAID,SAAS,CAAG;AACjEO,IAAAA,GAAG,EAAC,YAAY;AAChBC,IAAAA,MAAM,EAAC,QAAA;AAAQ,GAAA,EACXjB,UAAU,CAAA,EAAA,EAAA,EAAA;IAAAkB,QAAA,eAEdP,cAAA,CAACQ,kBAAK,EAAA;AACJC,MAAAA,OAAO,EAAC,gCAAgC;AACxCC,MAAAA,MAAM,EAAE;AAAEtB,QAAAA,WAAW,EAAEI,IAAAA;AAAK,OAAA;KAC7B,CAAA;AAAC,GAAA,CACD,CAAC,CAAA;AAER,CAAC,CAAA;AASD,YAAemB,aAAAA,UAAI,CAAC1B,QAAQ,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "3.15.40",
3
+ "version": "3.15.41",
4
4
  "description": "A package of reusable molecular components for neeto products.",
5
5
  "repository": "git@github.com:bigbinary/neeto-molecules.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",