@bigbinary/neeto-molecules 4.1.34 → 4.1.36
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/FloatingActionMenu.js +129 -65
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +129 -65
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/ar.json +2 -1
- package/src/translations/bg.json +2 -1
- package/src/translations/ca.json +2 -1
- package/src/translations/cs.json +2 -1
- package/src/translations/da.json +2 -1
- package/src/translations/de.json +2 -1
- package/src/translations/en.json +1 -0
- package/src/translations/es-MX.json +2 -1
- package/src/translations/es.json +2 -1
- package/src/translations/et.json +2 -1
- package/src/translations/fi.json +2 -1
- package/src/translations/fil.json +2 -1
- package/src/translations/fr.json +2 -1
- package/src/translations/he.json +2 -1
- package/src/translations/hi.json +2 -1
- package/src/translations/hr.json +2 -1
- package/src/translations/hu.json +2 -1
- package/src/translations/id.json +2 -1
- package/src/translations/it.json +2 -1
- package/src/translations/ja.json +2 -1
- package/src/translations/ko.json +2 -1
- package/src/translations/nl.json +2 -1
- package/src/translations/pl.json +2 -1
- package/src/translations/pt-BR.json +2 -1
- package/src/translations/pt.json +2 -1
- package/src/translations/ro.json +2 -1
- package/src/translations/ru.json +2 -1
- package/src/translations/sk.json +2 -1
- package/src/translations/sl.json +2 -1
- package/src/translations/sv.json +2 -1
- package/src/translations/th.json +2 -1
- package/src/translations/tr.json +2 -1
- package/src/translations/uk.json +2 -1
- package/src/translations/vi.json +2 -1
- package/src/translations/zh-CN.json +2 -1
- package/src/translations/zh-TW.json +2 -1
|
@@ -39,6 +39,8 @@ var i18next = require('i18next');
|
|
|
39
39
|
var CheckCircle = require('@bigbinary/neeto-icons/CheckCircle');
|
|
40
40
|
var Tag = require('@bigbinary/neetoui/Tag');
|
|
41
41
|
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
42
|
+
var CloseCircle = require('@bigbinary/neeto-icons/CloseCircle');
|
|
43
|
+
var User = require('@bigbinary/neeto-icons/User');
|
|
42
44
|
var useLocalStorage = require('@bigbinary/neeto-commons-frontend/react-utils/useLocalStorage');
|
|
43
45
|
var Moon = require('@bigbinary/neeto-icons/Moon');
|
|
44
46
|
var Sun = require('@bigbinary/neeto-icons/Sun');
|
|
@@ -88,21 +90,21 @@ var SPECIAL_APP_NAMES = {
|
|
|
88
90
|
var css$1 = ".neeto-molecules-product-switcher__wrapper{align-items:flex-start;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:column;justify-content:flex-start;max-width:100%;overflow-y:auto;padding:24px;position:relative;transition:all .3s;width:100%}@media (prefers-reduced-motion:reduce){.neeto-molecules-product-switcher__wrapper{transition:none}}@media screen and (max-width:768px){.neeto-molecules-product-switcher__wrapper{padding:16px}}.neeto-molecules-product-switcher__grid{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(288px,1fr))}@media only screen and (max-width:992px){.neeto-molecules-product-switcher__grid{grid-template-columns:repeat(auto-fill,minmax(248px,1fr))}}@media only screen and (max-width:640px){.neeto-molecules-product-switcher__grid{grid-template-columns:repeat(auto-fill,minmax(100%,1fr))}}.neeto-molecules-product-switcher__header{align-items:center;display:flex;gap:32px;justify-content:space-between;margin-bottom:32px;position:relative;width:100%}@media only screen and (max-width:768px){.neeto-molecules-product-switcher__header{align-items:flex-start;flex-direction:column;gap:24px}}@media only screen and (max-width:640px){.neeto-molecules-product-switcher__header h1{font-size:24px}}@media only screen and (max-width:768px){.neeto-molecules-product-switcher_modal-container .neeto-molecules-product-switcher__header-mobile{align-items:flex-start;margin-bottom:24px}}.neeto-molecules-product-switcher_modal-container .neeto-molecules-product-switcher__wrapper{padding:0}.neeto-molecules-product-switcher__close-btn{inset-inline-end:12px;position:absolute;top:12px}.neeto-molecules-product-switcher__search-wrapper{flex-grow:1}@media only screen and (min-width:992px){.neeto-molecules-product-switcher__search-wrapper{flex-grow:0;width:296px}}.neeto-molecules-product-switcher__body{display:flex;flex-direction:column;font-size:var(--neeto-ui-text-sm);gap:12px;margin-bottom:24px;width:100%}.neeto-molecules-product-switcher-link{background-color:rgb(var(--neeto-ui-white));border-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-lg);border-style:solid;border-width:1px;cursor:pointer;display:flex;flex-direction:column;gap:16px;max-width:100%;padding:10px 8px;text-decoration:none;transition:all .3s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.neeto-molecules-product-switcher-link{transition:none}}.neeto-molecules-product-switcher-link:focus,.neeto-molecules-product-switcher-link:focus-visible{outline:none}.neeto-molecules-product-switcher-link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-product-switcher-link:not(.neeto-molecules-product-switcher-link--active):hover{border-color:rgb(var(--neeto-ui-primary-500))}.neeto-molecules-product-switcher-link--active{background-color:rgb(var(--neeto-ui-primary-50));border-color:rgb(var(--neeto-ui-primary-500))}.neeto-molecules-product-switcher-link--highlighted{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-product-switcher-link__icon-holder{flex-grow:1;flex-shrink:0}.neeto-molecules-product-switcher-link__icon-holder svg{height:36px;width:auto}.neeto-molecules-product-switcher-link__icon-holder .neeto-molecules-product-switcher-link__icon-default{height:24px}.neeto-molecules-product-switcher-link__content{flex-shrink:0}.neeto-molecules-product-switcher-link__content span{display:block}.neeto-molecules-product-switcher_modal{z-index:100000}.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper--fullscreen{display:flex;flex-direction:column;height:100dvh!important;width:100vw!important}.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper--fullscreen .neeto-ui-modal__header{flex-shrink:0}.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper--fullscreen .neeto-ui-modal__body{--neeto-ui-modal-body-padding-top:24px;flex-grow:1;min-height:0;overflow-y:auto}.neeto-ui-theme--dark .neeto-molecules-product-switcher__wrapper [data-dark-mode-color=true]{fill:rgb(var(--neeto-ui-black))}.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal{--neeto-molecules-product-switcher-modal-padding-y:24px;align-items:flex-start;padding-bottom:var(--neeto-molecules-product-switcher-modal-padding-y);padding-top:var(--neeto-molecules-product-switcher-modal-padding-y)}@media only screen and (min-width:1024px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal{--neeto-molecules-product-switcher-modal-padding-y:40px}}@media only screen and (min-width:1536px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal{--neeto-molecules-product-switcher-modal-padding-y:80px}}.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large{--neeto-ui-modal-body-padding-top:24px;--neeto-ui-modal-body-padding-bottom:24px;--neeto-ui-modal-close-btn-top:12px;--neeto-ui-modal-close-btn-right:12px;--neeto-ui-modal-body-padding-x:0;--neeto-ui-text-h1:24px}.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-molecules-product-switcher-link__icon-holder svg{height:32px}@media only screen and (min-width:1024px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large{--neeto-ui-modal-wrapper-width:960px}}@media only screen and (min-width:1280px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large{--neeto-ui-modal-wrapper-width:1024px}}@media only screen and (min-width:1536px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large{--neeto-ui-modal-wrapper-width:1280px}.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-molecules-product-switcher-link__icon-holder svg{height:36px}}.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-molecules-product-switcher__header{background-color:rgb(var(--neeto-ui-white));margin-bottom:32px;padding-inline-end:56px;padding-inline-start:24px}@media only screen and (max-width:768px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-molecules-product-switcher__header{gap:16px;margin-bottom:16px}}.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-molecules-product-switcher__body{height:calc(100dvh - var(--neeto-molecules-product-switcher-modal-padding-y)*2 - 124px);margin-bottom:0;overflow-y:auto;padding-inline-end:24px;padding-inline-start:24px}@media only screen and (max-width:768px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-molecules-product-switcher__body{height:calc(90dvh - var(--neeto-molecules-product-switcher-modal-padding-y)*2 - 124px)}}.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-ui-modal__close{z-index:2}@media only screen and (min-width:1280px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-molecules-product-switcher__search-wrapper{width:420px}}@media only screen and (min-width:1536px){.neeto-ui-modal__backdrop.neeto-molecules-product-switcher_modal .neeto-ui-modal__wrapper.neeto-ui-modal__wrapper--large .neeto-molecules-product-switcher__search-wrapper{width:500px}}";
|
|
89
91
|
injectCss.n(css$1,{});
|
|
90
92
|
|
|
91
|
-
var _excluded$
|
|
92
|
-
function ownKeys$
|
|
93
|
-
function _objectSpread$
|
|
93
|
+
var _excluded$4 = ["name", "description", "url", "isHighlighted"];
|
|
94
|
+
function ownKeys$8(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; }
|
|
95
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
94
96
|
var ProductLink$1 = function ProductLink(_ref) {
|
|
95
97
|
var name = _ref.name,
|
|
96
98
|
description = _ref.description,
|
|
97
99
|
url = _ref.url,
|
|
98
100
|
_ref$isHighlighted = _ref.isHighlighted,
|
|
99
101
|
isHighlighted = _ref$isHighlighted === void 0 ? false : _ref$isHighlighted,
|
|
100
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
102
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
101
103
|
var normalizedName = (name || "").toLowerCase();
|
|
102
104
|
var specialCase = SPECIAL_APP_NAMES[normalizedName];
|
|
103
105
|
var appName = "Neeto".concat(name.charAt(0)).concat(name.slice(1).toLowerCase());
|
|
104
106
|
var AppIcon = specialCase ? AppIcons__namespace["Neeto".concat(specialCase)] : AppIcons__namespace[appName];
|
|
105
|
-
return /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread$
|
|
107
|
+
return /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread$8(_objectSpread$8({
|
|
106
108
|
"data-testid": "".concat(normalizedName, "-app-link"),
|
|
107
109
|
href: url,
|
|
108
110
|
rel: "noreferrer",
|
|
@@ -131,8 +133,8 @@ var ProductLink$1 = function ProductLink(_ref) {
|
|
|
131
133
|
};
|
|
132
134
|
var ProductLink = /*#__PURE__*/React.memo(ProductLink$1);
|
|
133
135
|
|
|
134
|
-
function ownKeys$
|
|
135
|
-
function _objectSpread$
|
|
136
|
+
function ownKeys$7(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; }
|
|
137
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
136
138
|
var Content = function Content(_ref) {
|
|
137
139
|
var highlightedIndex = _ref.highlightedIndex,
|
|
138
140
|
filteredApps = _ref.filteredApps,
|
|
@@ -148,7 +150,7 @@ var Content = function Content(_ref) {
|
|
|
148
150
|
return (filteredApps === null || filteredApps === void 0 ? void 0 : filteredApps.length) > 0 ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
149
151
|
className: "neeto-molecules-product-switcher__grid",
|
|
150
152
|
children: filteredApps.map(function (app, index) {
|
|
151
|
-
return /*#__PURE__*/jsxRuntime.jsx(ProductLink, _objectSpread$
|
|
153
|
+
return /*#__PURE__*/jsxRuntime.jsx(ProductLink, _objectSpread$7(_objectSpread$7({}, app), {}, {
|
|
152
154
|
"data-highlighted-index": index,
|
|
153
155
|
isHighlighted: index === highlightedIndex
|
|
154
156
|
}), app.name);
|
|
@@ -168,10 +170,10 @@ var neetoAppsApi = {
|
|
|
168
170
|
fetch: fetch$1
|
|
169
171
|
};
|
|
170
172
|
|
|
171
|
-
function ownKeys$
|
|
172
|
-
function _objectSpread$
|
|
173
|
+
function ownKeys$6(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; }
|
|
174
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
173
175
|
var useFetchNeetoApps = function useFetchNeetoApps(options) {
|
|
174
|
-
return reactQuery.useQuery(_objectSpread$
|
|
176
|
+
return reactQuery.useQuery(_objectSpread$6({
|
|
175
177
|
queryKey: [QUERY_KEYS$1.NEETO_APPS_LIST],
|
|
176
178
|
queryFn: neetoAppsApi.fetch
|
|
177
179
|
}, options));
|
|
@@ -266,7 +268,7 @@ var useProductSwitcherNavigation = function useProductSwitcherNavigation() {
|
|
|
266
268
|
};
|
|
267
269
|
};
|
|
268
270
|
|
|
269
|
-
var Menu$
|
|
271
|
+
var Menu$5 = function Menu(_ref) {
|
|
270
272
|
var _ref$isMobile = _ref.isMobile,
|
|
271
273
|
isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile,
|
|
272
274
|
initialFocusRef = _ref.initialFocusRef;
|
|
@@ -350,7 +352,7 @@ var Modal = function Modal(_ref) {
|
|
|
350
352
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
351
353
|
className: "neeto-molecules-product-switcher_modal-container",
|
|
352
354
|
"data-testid": "product-switcher-modal",
|
|
353
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
355
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu$5, {
|
|
354
356
|
initialFocusRef: initialFocusRef
|
|
355
357
|
})
|
|
356
358
|
})
|
|
@@ -358,15 +360,15 @@ var Modal = function Modal(_ref) {
|
|
|
358
360
|
});
|
|
359
361
|
};
|
|
360
362
|
|
|
361
|
-
var _excluded$
|
|
362
|
-
function ownKeys$
|
|
363
|
-
function _objectSpread$
|
|
364
|
-
var MenuItem$
|
|
365
|
-
var MenuButton$
|
|
363
|
+
var _excluded$3 = ["t", "tReady"];
|
|
364
|
+
function ownKeys$5(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; }
|
|
365
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
366
|
+
var MenuItem$9 = Dropdown$1.MenuItem;
|
|
367
|
+
var MenuButton$4 = reactUtils.withT(function (_ref) {
|
|
366
368
|
var t = _ref.t;
|
|
367
369
|
_ref.tReady;
|
|
368
|
-
var otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
369
|
-
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
370
|
+
var otherProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
371
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$9.Button, _objectSpread$5(_objectSpread$5({
|
|
370
372
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
371
373
|
"data-testid": "help-menu-button",
|
|
372
374
|
prefix: /*#__PURE__*/jsxRuntime.jsx(Help, {
|
|
@@ -382,8 +384,8 @@ var MenuButton$3 = reactUtils.withT(function (_ref) {
|
|
|
382
384
|
}));
|
|
383
385
|
});
|
|
384
386
|
|
|
385
|
-
var Menu$
|
|
386
|
-
MenuItem$
|
|
387
|
+
var Menu$4 = Dropdown$1.Menu,
|
|
388
|
+
MenuItem$8 = Dropdown$1.MenuItem;
|
|
387
389
|
var HelpMenu = function HelpMenu() {
|
|
388
390
|
var _useTranslation = reactI18next.useTranslation(),
|
|
389
391
|
t = _useTranslation.t;
|
|
@@ -392,14 +394,14 @@ var HelpMenu = function HelpMenu() {
|
|
|
392
394
|
var isMobile = isSize("mobile");
|
|
393
395
|
return /*#__PURE__*/jsxRuntime.jsx(Dropdown$1, {
|
|
394
396
|
closeOnSelect: false,
|
|
395
|
-
customTarget: /*#__PURE__*/jsxRuntime.jsx(MenuButton$
|
|
397
|
+
customTarget: /*#__PURE__*/jsxRuntime.jsx(MenuButton$4, {}),
|
|
396
398
|
interactiveDebounce: 30,
|
|
397
399
|
offset: [0, 5],
|
|
398
400
|
position: isMobile ? "bottom" : "right",
|
|
399
401
|
trigger: "all",
|
|
400
402
|
zIndex: 99999,
|
|
401
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Menu$
|
|
402
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
403
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Menu$4, {
|
|
404
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
403
405
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
404
406
|
"data-testid": "help-link-help-articles-button",
|
|
405
407
|
href: "https://help.".concat(ramda.toLower(globalProps.appName), ".com/"),
|
|
@@ -409,7 +411,7 @@ var HelpMenu = function HelpMenu() {
|
|
|
409
411
|
rel: "noreferrer",
|
|
410
412
|
target: "_blank",
|
|
411
413
|
children: t("neetoMolecules.sidebar.helpLinks.helpArticles")
|
|
412
|
-
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
414
|
+
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
413
415
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
414
416
|
"data-testid": "help-link-live-chat-button",
|
|
415
417
|
prefix: /*#__PURE__*/jsxRuntime.jsx(ChatQuestions, {
|
|
@@ -421,7 +423,7 @@ var HelpMenu = function HelpMenu() {
|
|
|
421
423
|
(_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 || (_window$NeetoChat2 = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2 === void 0 || _window$NeetoChat2.openWidget();
|
|
422
424
|
},
|
|
423
425
|
children: t("neetoMolecules.sidebar.helpLinks.liveChat")
|
|
424
|
-
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
426
|
+
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
425
427
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
426
428
|
"data-testid": "help-link-community-button",
|
|
427
429
|
href: "https://www.launchpass.com/neetohq",
|
|
@@ -431,7 +433,7 @@ var HelpMenu = function HelpMenu() {
|
|
|
431
433
|
rel: "noreferrer",
|
|
432
434
|
target: "_blank",
|
|
433
435
|
children: t("neetoMolecules.sidebar.helpLinks.askTheCommunity")
|
|
434
|
-
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
436
|
+
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
435
437
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
436
438
|
"data-testid": "help-link-status-button",
|
|
437
439
|
href: "https://neetostatus.com/",
|
|
@@ -452,6 +454,7 @@ var shouldShowWhatsNew = function shouldShowWhatsNew() {
|
|
|
452
454
|
return window.location.hostname === "localhost" || currentUserEmail === "oliver@example.com" || (currentUserEmail === null || currentUserEmail === void 0 ? void 0 : currentUserEmail.endsWith("@bigbinary.com"));
|
|
453
455
|
};
|
|
454
456
|
var MY_ORGANIZATION_URL = "/auth/organization/edit";
|
|
457
|
+
var DELETE_WORKSPACE_URL = "/auth/organization/delete";
|
|
455
458
|
var ENGAGE_WIDGET_TRIGGER_ID = "neetoengage-trigger";
|
|
456
459
|
var DEFAULT_MENU_LINK_PROPS = {
|
|
457
460
|
engageProps: {
|
|
@@ -475,9 +478,9 @@ var THEMES = {
|
|
|
475
478
|
};
|
|
476
479
|
var NEETO_AUTH_BILLING_INFO_URL = "/neeto_sso/api/v1/subscription/billing";
|
|
477
480
|
|
|
478
|
-
var _excluded$
|
|
479
|
-
function ownKeys$
|
|
480
|
-
function _objectSpread$
|
|
481
|
+
var _excluded$2 = ["label", "icon", "changesCount"];
|
|
482
|
+
function ownKeys$4(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; }
|
|
483
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
481
484
|
var LinkSection = function LinkSection(_ref) {
|
|
482
485
|
var links = _ref.links;
|
|
483
486
|
var MenuItem = Dropdown$1.MenuItem;
|
|
@@ -487,8 +490,8 @@ var LinkSection = function LinkSection(_ref) {
|
|
|
487
490
|
var label = _ref2.label,
|
|
488
491
|
Icon = _ref2.icon,
|
|
489
492
|
changesCount = _ref2.changesCount,
|
|
490
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
491
|
-
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem.Button, _objectSpread$
|
|
493
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$2);
|
|
494
|
+
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem.Button, _objectSpread$4(_objectSpread$4({
|
|
492
495
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
493
496
|
"data-testid": "floating-action-menu-link-section",
|
|
494
497
|
prefix: Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
@@ -531,10 +534,10 @@ var useFetchLoggedInOrganizations = function useFetchLoggedInOrganizations(email
|
|
|
531
534
|
});
|
|
532
535
|
};
|
|
533
536
|
|
|
534
|
-
var MenuItem$
|
|
535
|
-
var MenuButton$
|
|
537
|
+
var MenuItem$7 = Dropdown$1.MenuItem;
|
|
538
|
+
var MenuButton$3 = reactUtils.withT(function (_ref) {
|
|
536
539
|
var t = _ref.t;
|
|
537
|
-
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
540
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$7.Button, {
|
|
538
541
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
539
542
|
"data-testid": "organization-switcher-button",
|
|
540
543
|
style: "text",
|
|
@@ -546,8 +549,8 @@ var MenuButton$2 = reactUtils.withT(function (_ref) {
|
|
|
546
549
|
});
|
|
547
550
|
});
|
|
548
551
|
|
|
549
|
-
var Menu$
|
|
550
|
-
MenuItem$
|
|
552
|
+
var Menu$3 = Dropdown$1.Menu,
|
|
553
|
+
MenuItem$6 = Dropdown$1.MenuItem;
|
|
551
554
|
var OrganizationSwitcher = function OrganizationSwitcher() {
|
|
552
555
|
var _globalProps$user;
|
|
553
556
|
var _useTranslation = reactI18next.useTranslation(),
|
|
@@ -568,15 +571,15 @@ var OrganizationSwitcher = function OrganizationSwitcher() {
|
|
|
568
571
|
return /*#__PURE__*/jsxRuntime.jsx(Dropdown$1, {
|
|
569
572
|
className: "neeto-molecules-organization-switcher-menu-popup-wrapper",
|
|
570
573
|
closeOnSelect: false,
|
|
571
|
-
customTarget: /*#__PURE__*/jsxRuntime.jsx(MenuButton$
|
|
574
|
+
customTarget: /*#__PURE__*/jsxRuntime.jsx(MenuButton$3, {}),
|
|
572
575
|
interactiveDebounce: 30,
|
|
573
576
|
offset: [0, 5],
|
|
574
577
|
position: isMobile ? "bottom" : "right",
|
|
575
578
|
trigger: "all",
|
|
576
579
|
zIndex: 99999,
|
|
577
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Menu$
|
|
580
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Menu$3, {
|
|
578
581
|
children: [organizations === null || organizations === void 0 ? void 0 : organizations.map(function (organization) {
|
|
579
|
-
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$
|
|
582
|
+
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$6.Button, {
|
|
580
583
|
href: organization.organizationUrl,
|
|
581
584
|
rel: "noreferrer",
|
|
582
585
|
style: "text",
|
|
@@ -596,7 +599,7 @@ var OrganizationSwitcher = function OrganizationSwitcher() {
|
|
|
596
599
|
children: t("neetoMolecules.sidebar.organizationSwitcher.signedin")
|
|
597
600
|
})]
|
|
598
601
|
}, organization.userId);
|
|
599
|
-
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
602
|
+
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$6.Button, {
|
|
600
603
|
href: authAppUrl,
|
|
601
604
|
rel: "noreferrer",
|
|
602
605
|
target: "_blank",
|
|
@@ -606,14 +609,14 @@ var OrganizationSwitcher = function OrganizationSwitcher() {
|
|
|
606
609
|
});
|
|
607
610
|
};
|
|
608
611
|
|
|
609
|
-
function ownKeys$
|
|
610
|
-
function _objectSpread$
|
|
611
|
-
var MenuButton$
|
|
612
|
+
function ownKeys$3(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; }
|
|
613
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
614
|
+
var MenuButton$2 = function MenuButton(_ref) {
|
|
612
615
|
var otherProps = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
613
616
|
var _useTranslation = reactI18next.useTranslation(),
|
|
614
617
|
t = _useTranslation.t;
|
|
615
618
|
var MenuItem = Dropdown$1.MenuItem;
|
|
616
|
-
return /*#__PURE__*/jsxRuntime.jsx(MenuItem.Button, _objectSpread$
|
|
619
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem.Button, _objectSpread$3(_objectSpread$3({
|
|
617
620
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
618
621
|
"data-testid": "product-switcher-button",
|
|
619
622
|
label: t("neetoMolecules.sidebar.productSwitcher"),
|
|
@@ -627,14 +630,14 @@ var MenuButton$1 = function MenuButton(_ref) {
|
|
|
627
630
|
}));
|
|
628
631
|
};
|
|
629
632
|
|
|
630
|
-
var Menu$
|
|
631
|
-
MenuItem$
|
|
633
|
+
var Menu$2 = Dropdown$1.Menu,
|
|
634
|
+
MenuItem$5 = Dropdown$1.MenuItem;
|
|
632
635
|
var Dropdown = function Dropdown() {
|
|
633
636
|
return /*#__PURE__*/jsxRuntime.jsx(Dropdown$1, {
|
|
634
637
|
appendTo: "parent",
|
|
635
638
|
className: "neeto-molecules-product-switcher-menu-popup-wrapper",
|
|
636
639
|
closeOnSelect: false,
|
|
637
|
-
customTarget: /*#__PURE__*/jsxRuntime.jsx(MenuButton$
|
|
640
|
+
customTarget: /*#__PURE__*/jsxRuntime.jsx(MenuButton$2, {}),
|
|
638
641
|
interactiveDebounce: 30,
|
|
639
642
|
offset: [0, 5],
|
|
640
643
|
position: "right",
|
|
@@ -643,9 +646,9 @@ var Dropdown = function Dropdown() {
|
|
|
643
646
|
dropdownProps: {
|
|
644
647
|
classNames: "neeto-molecules-product-switcher-menu-popup__dropdown"
|
|
645
648
|
},
|
|
646
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
647
|
-
children: /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
648
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
649
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu$2, {
|
|
650
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MenuItem$5, {
|
|
651
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu$5, {})
|
|
649
652
|
})
|
|
650
653
|
})
|
|
651
654
|
});
|
|
@@ -656,7 +659,7 @@ var ProductSwitcher = function ProductSwitcher(_ref) {
|
|
|
656
659
|
var _useBreakpoints = useBreakpoints(),
|
|
657
660
|
isSize = _useBreakpoints.isSize;
|
|
658
661
|
var isMobile = isSize("mobile");
|
|
659
|
-
return isMobile ? /*#__PURE__*/jsxRuntime.jsx(MenuButton$
|
|
662
|
+
return isMobile ? /*#__PURE__*/jsxRuntime.jsx(MenuButton$2, {
|
|
660
663
|
onClick: function onClick() {
|
|
661
664
|
return toggleModal(true);
|
|
662
665
|
}
|
|
@@ -697,6 +700,77 @@ var ProfileHeader = function ProfileHeader(_ref) {
|
|
|
697
700
|
});
|
|
698
701
|
};
|
|
699
702
|
|
|
703
|
+
var _excluded$1 = ["profileInfo"];
|
|
704
|
+
function ownKeys$2(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; }
|
|
705
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
706
|
+
var MenuItem$4 = Dropdown$1.MenuItem;
|
|
707
|
+
var MenuButton$1 = function MenuButton(_ref) {
|
|
708
|
+
var profileInfo = _ref.profileInfo,
|
|
709
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
710
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$4.Button, _objectSpread$2(_objectSpread$2({
|
|
711
|
+
className: "neeto-molecules-profile-popup",
|
|
712
|
+
"data-testid": "profile-expand-menu-button",
|
|
713
|
+
suffix: /*#__PURE__*/jsxRuntime.jsx(Right, {
|
|
714
|
+
className: "rtl:scale-x-[-1]",
|
|
715
|
+
size: 18
|
|
716
|
+
})
|
|
717
|
+
}, otherProps), {}, {
|
|
718
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ProfileHeader, {
|
|
719
|
+
profileInfo: profileInfo
|
|
720
|
+
})
|
|
721
|
+
}));
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
var Menu$1 = Dropdown$1.Menu,
|
|
725
|
+
MenuItem$3 = Dropdown$1.MenuItem;
|
|
726
|
+
var ProfileExpandMenu = function ProfileExpandMenu(_ref) {
|
|
727
|
+
var _window$globalProps;
|
|
728
|
+
var profileInfo = _ref.profileInfo;
|
|
729
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
730
|
+
t = _useTranslation.t;
|
|
731
|
+
var _useBreakpoints = useBreakpoints(),
|
|
732
|
+
isSize = _useBreakpoints.isSize;
|
|
733
|
+
var _Profile$usePaneState = Profile.usePaneState(),
|
|
734
|
+
_Profile$usePaneState2 = _slicedToArray(_Profile$usePaneState, 2),
|
|
735
|
+
setIsProfilePaneOpen = _Profile$usePaneState2[1];
|
|
736
|
+
var isMobile = isSize("mobile");
|
|
737
|
+
return /*#__PURE__*/jsxRuntime.jsx(Dropdown$1, {
|
|
738
|
+
closeOnSelect: false,
|
|
739
|
+
customTarget: /*#__PURE__*/jsxRuntime.jsx(MenuButton$1, {
|
|
740
|
+
profileInfo: profileInfo
|
|
741
|
+
}),
|
|
742
|
+
interactiveDebounce: 30,
|
|
743
|
+
offset: [0, 5],
|
|
744
|
+
position: isMobile ? "bottom" : "right",
|
|
745
|
+
trigger: "all",
|
|
746
|
+
zIndex: 99999,
|
|
747
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Menu$1, {
|
|
748
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(MenuItem$3.Button, {
|
|
749
|
+
className: "neeto-molecules-menu-sublist__item-btn",
|
|
750
|
+
"data-testid": "profile-my-profile-button",
|
|
751
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(User, {
|
|
752
|
+
size: 18
|
|
753
|
+
}),
|
|
754
|
+
onClick: function onClick() {
|
|
755
|
+
return setIsProfilePaneOpen(true);
|
|
756
|
+
},
|
|
757
|
+
children: t("neetoMolecules.sidebar.myProfile")
|
|
758
|
+
}), ((_window$globalProps = window.globalProps) === null || _window$globalProps === void 0 || (_window$globalProps = _window$globalProps.user) === null || _window$globalProps === void 0 ? void 0 : _window$globalProps.isOwner) && /*#__PURE__*/jsxRuntime.jsx(MenuItem$3.Button, {
|
|
759
|
+
className: "neeto-molecules-menu-sublist__item-btn",
|
|
760
|
+
"data-testid": "profile-cancel-account-button",
|
|
761
|
+
href: DELETE_WORKSPACE_URL,
|
|
762
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(CloseCircle, {
|
|
763
|
+
size: 18
|
|
764
|
+
}),
|
|
765
|
+
rel: "noreferrer",
|
|
766
|
+
style: "text",
|
|
767
|
+
target: "_blank",
|
|
768
|
+
children: t("neetoMolecules.sidebar.cancelAccount")
|
|
769
|
+
})]
|
|
770
|
+
})
|
|
771
|
+
});
|
|
772
|
+
};
|
|
773
|
+
|
|
700
774
|
var getSidebarStateLocalStorageKey = function getSidebarStateLocalStorageKey() {
|
|
701
775
|
var _globalProps$user, _globalProps$user2;
|
|
702
776
|
var user = ((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.email) || ((_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.phoneNumber);
|
|
@@ -909,9 +983,6 @@ var ProfileMenu = function ProfileMenu(_ref) {
|
|
|
909
983
|
MenuItem = Dropdown$1.MenuItem,
|
|
910
984
|
Divider = Dropdown$1.Divider;
|
|
911
985
|
var isAuthenticated = profileInfo.isAuthenticated;
|
|
912
|
-
var _Profile$usePaneState = Profile.usePaneState(),
|
|
913
|
-
_Profile$usePaneState2 = _slicedToArray(_Profile$usePaneState, 2),
|
|
914
|
-
setIsProfilePaneOpen = _Profile$usePaneState2[1];
|
|
915
986
|
var _useTranslation = reactI18next.useTranslation(),
|
|
916
987
|
t = _useTranslation.t;
|
|
917
988
|
var normalizedPlan = (((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.subscriptionPlan) || "").toLowerCase();
|
|
@@ -950,15 +1021,8 @@ var ProfileMenu = function ProfileMenu(_ref) {
|
|
|
950
1021
|
}), showProductSwitcher && /*#__PURE__*/jsxRuntime.jsx(ProductSwitcher, {
|
|
951
1022
|
toggleModal: toggleModal
|
|
952
1023
|
}), /*#__PURE__*/jsxRuntime.jsx(HelpMenu, {}), /*#__PURE__*/jsxRuntime.jsx(Divider, {})]
|
|
953
|
-
}), isAuthenticated && /*#__PURE__*/jsxRuntime.jsx(
|
|
954
|
-
|
|
955
|
-
"data-testid": "my-profile-button",
|
|
956
|
-
onClick: function onClick() {
|
|
957
|
-
return setIsProfilePaneOpen(true);
|
|
958
|
-
},
|
|
959
|
-
children: /*#__PURE__*/jsxRuntime.jsx(ProfileHeader, {
|
|
960
|
-
profileInfo: profileInfo
|
|
961
|
-
})
|
|
1024
|
+
}), isAuthenticated && /*#__PURE__*/jsxRuntime.jsx(ProfileExpandMenu, {
|
|
1025
|
+
profileInfo: profileInfo
|
|
962
1026
|
}), /*#__PURE__*/jsxRuntime.jsx(LinkSection, {
|
|
963
1027
|
links: bottomLinks
|
|
964
1028
|
}), isThemeSwitcherEnabled && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|