@bigbinary/neeto-molecules 3.15.39 → 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/IpRestriction.js +5 -1
- package/dist/IpRestriction.js.map +1 -1
- package/dist/MadeWith.js +4 -2
- package/dist/MadeWith.js.map +1 -1
- package/dist/cjs/IpRestriction.js +5 -1
- package/dist/cjs/IpRestriction.js.map +1 -1
- package/dist/cjs/MadeWith.js +4 -2
- package/dist/cjs/MadeWith.js.map +1 -1
- package/package.json +1 -1
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(), "?
|
|
26
|
+
href: "https://www.neeto.com/".concat(name.toLowerCase(), "?").concat(utmParams),
|
|
25
27
|
rel: "noreferrer",
|
|
26
28
|
target: "_blank"
|
|
27
29
|
}, otherProps), {}, {
|
package/dist/MadeWith.js.map
CHANGED
|
@@ -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
|
|
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;;;;"}
|
|
@@ -28,6 +28,7 @@ var reactQuery = require('@tanstack/react-query');
|
|
|
28
28
|
var axios = require('axios');
|
|
29
29
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
30
30
|
var useMutationWithInvalidation = require('@bigbinary/neeto-commons-frontend/react-utils/useMutationWithInvalidation');
|
|
31
|
+
var injectCss = require('./inject-css-vQvjPR2x.js');
|
|
31
32
|
require('classnames');
|
|
32
33
|
require('@bigbinary/neeto-cist');
|
|
33
34
|
|
|
@@ -3488,6 +3489,9 @@ var useUpdateIpRestriction = function useUpdateIpRestriction() {
|
|
|
3488
3489
|
});
|
|
3489
3490
|
};
|
|
3490
3491
|
|
|
3492
|
+
var css = ".nm-ip-restriction .neeto-ui-checkbox__container{align-items:center}";
|
|
3493
|
+
injectCss.n(css,{});
|
|
3494
|
+
|
|
3491
3495
|
var IpRestriction = function IpRestriction() {
|
|
3492
3496
|
var _useTranslation = reactI18next.useTranslation(),
|
|
3493
3497
|
t = _useTranslation.t;
|
|
@@ -3576,7 +3580,7 @@ var IpRestriction = function IpRestriction() {
|
|
|
3576
3580
|
})]
|
|
3577
3581
|
}),
|
|
3578
3582
|
children: [/*#__PURE__*/jsxRuntime.jsx(BlockNavigation, {}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3579
|
-
className: "space-y-2",
|
|
3583
|
+
className: "nm-ip-restriction space-y-2",
|
|
3580
3584
|
children: [/*#__PURE__*/jsxRuntime.jsx(Checkbox, {
|
|
3581
3585
|
checked: values.ipRestriction,
|
|
3582
3586
|
className: "flex-grow-0",
|