@bigbinary/neeto-molecules 5.5.0-beta1 → 5.5.0
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/BrowserSupport.js +116 -51
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/{Columns-C20zru7a.js → Columns-CpCh1cnJ.js} +6 -4
- package/dist/Columns-CpCh1cnJ.js.map +1 -0
- package/dist/{ConfigureView-D-2SQf3j.js → ConfigureView-re6uU4Lp.js} +6 -4
- package/dist/ConfigureView-re6uU4Lp.js.map +1 -0
- package/dist/EmailForm.js +3 -1
- package/dist/EmailForm.js.map +1 -1
- package/dist/FinderModal.js +14 -1
- package/dist/FinderModal.js.map +1 -1
- package/dist/FloatingActionMenu.js +175 -55
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/IpRestriction.js +19 -9
- package/dist/IpRestriction.js.map +1 -1
- package/dist/ProductEmbed.js +35 -23
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/ShareViaLink.js +4 -4
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.js +43 -5
- package/dist/Sidebar.js.map +1 -1
- package/dist/StickyRibbonsContainer.js +27 -18
- package/dist/StickyRibbonsContainer.js.map +1 -1
- package/dist/cjs/BrowserSupport.js +119 -51
- package/dist/cjs/BrowserSupport.js.map +1 -1
- package/dist/cjs/{Columns-rqa7goJu.js → Columns-Gcp48xQM.js} +5 -3
- package/dist/cjs/Columns-Gcp48xQM.js.map +1 -0
- package/dist/cjs/{ConfigureView-CNWEfiae.js → ConfigureView-CAdrpELW.js} +6 -4
- package/dist/cjs/ConfigureView-CAdrpELW.js.map +1 -0
- package/dist/cjs/EmailForm.js +3 -1
- package/dist/cjs/EmailForm.js.map +1 -1
- package/dist/cjs/FinderModal.js +14 -1
- package/dist/cjs/FinderModal.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +189 -69
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/IpRestriction.js +19 -9
- package/dist/cjs/IpRestriction.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +34 -22
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +4 -4
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/dist/cjs/Sidebar.js +43 -5
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/StickyRibbonsContainer.js +29 -20
- package/dist/cjs/StickyRibbonsContainer.js.map +1 -1
- package/dist/cjs/mail-Di35Ay-Z.js +20 -0
- package/dist/cjs/mail-Di35Ay-Z.js.map +1 -0
- package/dist/cjs/performanceDiagnostics-CS7NTxaH.js +93 -0
- package/dist/cjs/performanceDiagnostics-CS7NTxaH.js.map +1 -0
- package/dist/cjs/{phone-number-DVlbgxBG.js → phone-number-BydWe8Mf.js} +22 -3
- package/dist/cjs/phone-number-BydWe8Mf.js.map +1 -0
- package/dist/cjs/useWhatsNewChangesCount-BVkLLk7f.js +121 -0
- package/dist/cjs/useWhatsNewChangesCount-BVkLLk7f.js.map +1 -0
- package/dist/cjs/useWhatsNewChangesCount-CyOUS5U3.js +106 -0
- package/dist/cjs/useWhatsNewChangesCount-CyOUS5U3.js.map +1 -0
- package/dist/cjs/v2/BrowserSupport.js +119 -51
- package/dist/cjs/v2/BrowserSupport.js.map +1 -1
- package/dist/cjs/v2/Builder.js +17 -13
- package/dist/cjs/v2/Builder.js.map +1 -1
- package/dist/cjs/v2/CalendarView.js +2 -2
- package/dist/cjs/v2/Columns.js +1 -1
- package/dist/cjs/v2/ConfigurePageSidebar.js +1 -1
- package/dist/cjs/v2/DndTable.js +1 -0
- package/dist/cjs/v2/DndTable.js.map +1 -1
- package/dist/cjs/v2/DynamicVariables.js +17 -8
- package/dist/cjs/v2/DynamicVariables.js.map +1 -1
- package/dist/cjs/v2/EmailForm.js +97 -10
- package/dist/cjs/v2/EmailForm.js.map +1 -1
- package/dist/cjs/v2/EmailPreview.js +1 -1
- package/dist/cjs/v2/EmailPreview.js.map +1 -1
- package/dist/cjs/v2/Engagements.js +10 -7
- package/dist/cjs/v2/Engagements.js.map +1 -1
- package/dist/cjs/v2/FinderModal.js +104 -72
- package/dist/cjs/v2/FinderModal.js.map +1 -1
- package/dist/cjs/v2/FloatingActionMenu.js +267 -110
- package/dist/cjs/v2/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/v2/IpRestriction.js +17 -7
- package/dist/cjs/v2/IpRestriction.js.map +1 -1
- package/dist/cjs/v2/MadeWith.js +5 -3
- package/dist/cjs/v2/MadeWith.js.map +1 -1
- package/dist/cjs/v2/MoreDropdown.js +5 -2
- package/dist/cjs/v2/MoreDropdown.js.map +1 -1
- package/dist/cjs/v2/OptionFields.js +1 -0
- package/dist/cjs/v2/OptionFields.js.map +1 -1
- package/dist/cjs/v2/PhoneNumber.js +1 -1
- package/dist/cjs/v2/ProductEmbed.js +25 -13
- package/dist/cjs/v2/ProductEmbed.js.map +1 -1
- package/dist/cjs/v2/SessionEnvironment.js +3 -16
- package/dist/cjs/v2/SessionEnvironment.js.map +1 -1
- package/dist/cjs/v2/Sidebar.js +95 -32
- package/dist/cjs/v2/Sidebar.js.map +1 -1
- package/dist/cjs/v2/StickyRibbonsContainer.js +29 -19
- package/dist/cjs/v2/StickyRibbonsContainer.js.map +1 -1
- package/dist/cjs/v2/SubHeader.js +1 -1
- package/dist/cjs/v2/Taxonomy.js +1 -1
- package/dist/mail-CkquKByM.js +18 -0
- package/dist/mail-CkquKByM.js.map +1 -0
- package/dist/performanceDiagnostics-DJcT0dfG.js +88 -0
- package/dist/performanceDiagnostics-DJcT0dfG.js.map +1 -0
- package/dist/{phone-number-ClrmOx58.js → phone-number-n0BLV3g6.js} +24 -5
- package/dist/phone-number-n0BLV3g6.js.map +1 -0
- package/dist/useWhatsNewChangesCount-C71JkNHv.js +96 -0
- package/dist/useWhatsNewChangesCount-C71JkNHv.js.map +1 -0
- package/dist/useWhatsNewChangesCount-CQxhUCpt.js +106 -0
- package/dist/useWhatsNewChangesCount-CQxhUCpt.js.map +1 -0
- package/dist/v2/BrowserSupport.js +116 -51
- package/dist/v2/BrowserSupport.js.map +1 -1
- package/dist/v2/Builder.js +17 -13
- package/dist/v2/Builder.js.map +1 -1
- package/dist/v2/CalendarView.js +2 -2
- package/dist/v2/Columns.js +1 -1
- package/dist/v2/ConfigurePageSidebar.js +1 -1
- package/dist/v2/DndTable.js +1 -0
- package/dist/v2/DndTable.js.map +1 -1
- package/dist/v2/DynamicVariables.js +18 -9
- package/dist/v2/DynamicVariables.js.map +1 -1
- package/dist/v2/EmailForm.js +100 -13
- package/dist/v2/EmailForm.js.map +1 -1
- package/dist/v2/EmailPreview.js +1 -1
- package/dist/v2/EmailPreview.js.map +1 -1
- package/dist/v2/Engagements.js +10 -7
- package/dist/v2/Engagements.js.map +1 -1
- package/dist/v2/FinderModal.js +105 -73
- package/dist/v2/FinderModal.js.map +1 -1
- package/dist/v2/FloatingActionMenu.js +238 -81
- package/dist/v2/FloatingActionMenu.js.map +1 -1
- package/dist/v2/IpRestriction.js +17 -7
- package/dist/v2/IpRestriction.js.map +1 -1
- package/dist/v2/MadeWith.js +5 -3
- package/dist/v2/MadeWith.js.map +1 -1
- package/dist/v2/MoreDropdown.js +5 -2
- package/dist/v2/MoreDropdown.js.map +1 -1
- package/dist/v2/OptionFields.js +1 -0
- package/dist/v2/OptionFields.js.map +1 -1
- package/dist/v2/PhoneNumber.js +2 -2
- package/dist/v2/ProductEmbed.js +26 -14
- package/dist/v2/ProductEmbed.js.map +1 -1
- package/dist/v2/SessionEnvironment.js +2 -15
- package/dist/v2/SessionEnvironment.js.map +1 -1
- package/dist/v2/Sidebar.js +95 -32
- package/dist/v2/Sidebar.js.map +1 -1
- package/dist/v2/StickyRibbonsContainer.js +27 -17
- package/dist/v2/StickyRibbonsContainer.js.map +1 -1
- package/dist/v2/SubHeader.js +1 -1
- package/dist/v2/Taxonomy.js +1 -1
- package/package.json +8 -8
- package/src/translations/ar.json +8 -3
- package/src/translations/bg.json +8 -3
- package/src/translations/ca.json +8 -3
- package/src/translations/cs.json +8 -3
- package/src/translations/da.json +8 -3
- package/src/translations/de.json +8 -3
- package/src/translations/en.json +18 -2
- package/src/translations/es-MX.json +8 -3
- package/src/translations/es.json +8 -3
- package/src/translations/et.json +8 -3
- package/src/translations/fi.json +8 -3
- package/src/translations/fil.json +8 -3
- package/src/translations/fr.json +8 -3
- package/src/translations/he.json +8 -3
- package/src/translations/hi.json +8 -3
- package/src/translations/hr.json +8 -3
- package/src/translations/hu.json +8 -3
- package/src/translations/id.json +8 -3
- package/src/translations/it.json +8 -3
- package/src/translations/ja.json +8 -3
- package/src/translations/ko.json +8 -3
- package/src/translations/lv.json +984 -0
- package/src/translations/nl.json +8 -3
- package/src/translations/pl.json +8 -3
- package/src/translations/pt-BR.json +8 -3
- package/src/translations/pt.json +8 -3
- package/src/translations/ro.json +8 -3
- package/src/translations/ru.json +8 -3
- package/src/translations/sk.json +8 -3
- package/src/translations/sl.json +8 -3
- package/src/translations/sv.json +8 -3
- package/src/translations/th.json +8 -3
- package/src/translations/tr.json +8 -3
- package/src/translations/uk.json +8 -3
- package/src/translations/vi.json +8 -3
- package/src/translations/zh-CN.json +8 -3
- package/src/translations/zh-TW.json +8 -3
- package/types/BrowserSupport.d.ts +128 -39
- package/types/v2/EmailForm.d.ts +1 -0
- package/types/v2/EmailFormProvider.d.ts +3 -1
- package/dist/Columns-C20zru7a.js.map +0 -1
- package/dist/ConfigureView-D-2SQf3j.js.map +0 -1
- package/dist/cjs/Columns-rqa7goJu.js.map +0 -1
- package/dist/cjs/ConfigureView-CNWEfiae.js.map +0 -1
- package/dist/cjs/phone-number-DVlbgxBG.js.map +0 -1
- package/dist/phone-number-ClrmOx58.js.map +0 -1
|
@@ -13,6 +13,7 @@ var Profile = require('@bigbinary/neeto-team-members-frontend/Profile');
|
|
|
13
13
|
var Avatar = require('@bigbinary/neetoui/Avatar');
|
|
14
14
|
var Dropdown$1 = require('@bigbinary/neetoui/Dropdown');
|
|
15
15
|
var ramda = require('ramda');
|
|
16
|
+
var tippy_js = require('tippy.js');
|
|
16
17
|
var KeyboardShortcuts = require('./KeyboardShortcuts.js');
|
|
17
18
|
var SubscriptionUpgradeRequestModal = require('./SubscriptionUpgradeRequestModal.js');
|
|
18
19
|
var Modal$1 = require('@bigbinary/neetoui/Modal');
|
|
@@ -29,10 +30,14 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
29
30
|
var reactQuery = require('@tanstack/react-query');
|
|
30
31
|
var axios = require('axios');
|
|
31
32
|
var Crown = require('@bigbinary/neeto-icons/Crown');
|
|
33
|
+
var performanceDiagnostics = require('./performanceDiagnostics-CS7NTxaH.js');
|
|
32
34
|
var useBreakpoints = require('@bigbinary/neeto-commons-frontend/react-utils/useBreakpoints');
|
|
33
35
|
var Book = require('@bigbinary/neeto-icons/Book');
|
|
36
|
+
var Bulb = require('@bigbinary/neeto-icons/Bulb');
|
|
34
37
|
var ChatQuestions = require('@bigbinary/neeto-icons/ChatQuestions');
|
|
38
|
+
var Clock = require('@bigbinary/neeto-icons/Clock');
|
|
35
39
|
var Community = require('@bigbinary/neeto-icons/Community');
|
|
40
|
+
var Roadmap = require('@bigbinary/neeto-icons/Roadmap');
|
|
36
41
|
var Status = require('@bigbinary/neeto-icons/Status');
|
|
37
42
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
38
43
|
var Right = require('@bigbinary/neeto-icons/Right');
|
|
@@ -41,21 +46,25 @@ var Tag = require('@bigbinary/neetoui/Tag');
|
|
|
41
46
|
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
42
47
|
var CloseCircle = require('@bigbinary/neeto-icons/CloseCircle');
|
|
43
48
|
var User = require('@bigbinary/neeto-icons/User');
|
|
44
|
-
var
|
|
49
|
+
var useWhatsNewChangesCount = require('./useWhatsNewChangesCount-CyOUS5U3.js');
|
|
45
50
|
var useLocalStorage = require('@bigbinary/neeto-commons-frontend/react-utils/useLocalStorage');
|
|
46
51
|
var Moon = require('@bigbinary/neeto-icons/Moon');
|
|
47
52
|
var Sun = require('@bigbinary/neeto-icons/Sun');
|
|
53
|
+
var i18next = require('i18next');
|
|
48
54
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
49
55
|
var axios$1 = require('@bigbinary/neeto-commons-frontend/utils/axios');
|
|
50
56
|
var general = require('@bigbinary/neeto-commons-frontend/utils/general');
|
|
51
57
|
var Logout = require('@bigbinary/neeto-icons/Logout');
|
|
52
58
|
var CopyToClipboardButton = require('./CopyToClipboardButton.js');
|
|
59
|
+
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
60
|
+
var Button = require('@bigbinary/neetoui/Button');
|
|
61
|
+
var Textarea = require('@bigbinary/neetoui/Textarea');
|
|
62
|
+
var Toastr = require('@bigbinary/neetoui/Toastr');
|
|
53
63
|
require('./useKeyboardShortcutsPaneState-BrgdLb9F.js');
|
|
54
64
|
require('zustand/shallow');
|
|
55
65
|
require('@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions');
|
|
56
66
|
require('zustand');
|
|
57
67
|
require('@bigbinary/neeto-icons/Close');
|
|
58
|
-
require('@bigbinary/neetoui/Button');
|
|
59
68
|
require('@bigbinary/neetoui/managers');
|
|
60
69
|
require('@bigbinary/neetoui/Kbd');
|
|
61
70
|
require('ua-parser-js');
|
|
@@ -387,7 +396,8 @@ var MenuButton$4 = reactUtils.withT(function (_ref) {
|
|
|
387
396
|
|
|
388
397
|
var Menu$4 = Dropdown$1.Menu,
|
|
389
398
|
MenuItem$8 = Dropdown$1.MenuItem;
|
|
390
|
-
var HelpMenu = function HelpMenu() {
|
|
399
|
+
var HelpMenu = function HelpMenu(_ref) {
|
|
400
|
+
var onReportSlowness = _ref.onReportSlowness;
|
|
391
401
|
var _useTranslation = reactI18next.useTranslation(),
|
|
392
402
|
t = _useTranslation.t;
|
|
393
403
|
var _useBreakpoints = useBreakpoints(),
|
|
@@ -401,11 +411,14 @@ var HelpMenu = function HelpMenu() {
|
|
|
401
411
|
position: isMobile ? "bottom" : "right",
|
|
402
412
|
trigger: "all",
|
|
403
413
|
zIndex: 99999,
|
|
414
|
+
dropdownProps: {
|
|
415
|
+
classNames: "neeto-molecules-help-menu-popup__dropdown"
|
|
416
|
+
},
|
|
404
417
|
children: /*#__PURE__*/jsxRuntime.jsxs(Menu$4, {
|
|
405
418
|
children: [/*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
406
419
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
407
420
|
"data-testid": "help-link-help-articles-button",
|
|
408
|
-
href: "
|
|
421
|
+
href: "".concat(performanceDiagnostics.getNeetoUrl("help"), "/"),
|
|
409
422
|
prefix: /*#__PURE__*/jsxRuntime.jsx(Book, {
|
|
410
423
|
size: 18
|
|
411
424
|
}),
|
|
@@ -434,6 +447,26 @@ var HelpMenu = function HelpMenu() {
|
|
|
434
447
|
rel: "noreferrer",
|
|
435
448
|
target: "_blank",
|
|
436
449
|
children: t("neetoMolecules.sidebar.helpLinks.askTheCommunity")
|
|
450
|
+
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
451
|
+
className: "neeto-molecules-menu-sublist__item-btn",
|
|
452
|
+
"data-testid": "help-link-request-feature-button",
|
|
453
|
+
href: "".concat(performanceDiagnostics.getNeetoUrl("engage"), "/feature-requests"),
|
|
454
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Bulb, {
|
|
455
|
+
size: 18
|
|
456
|
+
}),
|
|
457
|
+
rel: "noreferrer",
|
|
458
|
+
target: "_blank",
|
|
459
|
+
children: t("neetoMolecules.sidebar.helpLinks.requestFeature")
|
|
460
|
+
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
461
|
+
className: "neeto-molecules-menu-sublist__item-btn",
|
|
462
|
+
"data-testid": "help-link-roadmap-button",
|
|
463
|
+
href: "".concat(performanceDiagnostics.getNeetoUrl("engage"), "/product-roadmap"),
|
|
464
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Roadmap, {
|
|
465
|
+
size: 18
|
|
466
|
+
}),
|
|
467
|
+
rel: "noreferrer",
|
|
468
|
+
target: "_blank",
|
|
469
|
+
children: t("neetoMolecules.sidebar.helpLinks.roadmap")
|
|
437
470
|
}), /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
438
471
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
439
472
|
"data-testid": "help-link-status-button",
|
|
@@ -444,6 +477,14 @@ var HelpMenu = function HelpMenu() {
|
|
|
444
477
|
rel: "noreferrer",
|
|
445
478
|
target: "_blank",
|
|
446
479
|
children: t("neetoMolecules.sidebar.helpLinks.systemStatus")
|
|
480
|
+
}), performanceDiagnostics.isPerformanceDiagnosticsEnabled() && /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
|
|
481
|
+
className: "neeto-molecules-menu-sublist__item-btn",
|
|
482
|
+
"data-testid": "help-link-report-slowness-button",
|
|
483
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Clock, {
|
|
484
|
+
size: 18
|
|
485
|
+
}),
|
|
486
|
+
onClick: onReportSlowness,
|
|
487
|
+
children: t("neetoMolecules.sidebar.helpLinks.reportSlowness")
|
|
447
488
|
})]
|
|
448
489
|
})
|
|
449
490
|
});
|
|
@@ -692,29 +733,6 @@ var MenuButton$1 = function MenuButton(_ref) {
|
|
|
692
733
|
}));
|
|
693
734
|
};
|
|
694
735
|
|
|
695
|
-
var MY_ORGANIZATION_URL = "/auth/organization/edit";
|
|
696
|
-
var DELETE_WORKSPACE_URL = "/auth/organization/delete";
|
|
697
|
-
var ENGAGE_WIDGET_TRIGGER_ID = "neetoengage-trigger";
|
|
698
|
-
var DEFAULT_MENU_LINK_PROPS = {
|
|
699
|
-
engageProps: {
|
|
700
|
-
id: ENGAGE_WIDGET_TRIGGER_ID,
|
|
701
|
-
label: i18next.t("neetoMolecules.sidebar.helpLinks.whatsNew"),
|
|
702
|
-
"data-testid": "help-link-engage-button"
|
|
703
|
-
},
|
|
704
|
-
keyboardShortcutProps: {
|
|
705
|
-
label: i18next.t("neetoMolecules.sidebar.helpLinks.keyboardShortcuts"),
|
|
706
|
-
"data-testid": "help-link-keyboard-shortcut-button"
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
|
|
710
|
-
// Theme switcher
|
|
711
|
-
var APP_THEME_LOCALSTORAGE_KEY = "appTheme";
|
|
712
|
-
var THEMES = {
|
|
713
|
-
LIGHT: "neeto-ui-theme--light",
|
|
714
|
-
DARK: "neeto-ui-theme--dark"
|
|
715
|
-
};
|
|
716
|
-
var NEETO_AUTH_BILLING_INFO_URL = "/neeto_sso/api/v1/subscription/billing";
|
|
717
|
-
|
|
718
736
|
var Menu$1 = Dropdown$1.Menu,
|
|
719
737
|
MenuItem$3 = Dropdown$1.MenuItem;
|
|
720
738
|
var ProfileExpandMenu = function ProfileExpandMenu(_ref) {
|
|
@@ -752,7 +770,7 @@ var ProfileExpandMenu = function ProfileExpandMenu(_ref) {
|
|
|
752
770
|
}), ((_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, {
|
|
753
771
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
754
772
|
"data-testid": "profile-cancel-account-button",
|
|
755
|
-
href: DELETE_WORKSPACE_URL,
|
|
773
|
+
href: useWhatsNewChangesCount.DELETE_WORKSPACE_URL,
|
|
756
774
|
prefix: /*#__PURE__*/jsxRuntime.jsx(CloseCircle, {
|
|
757
775
|
size: 18
|
|
758
776
|
}),
|
|
@@ -813,16 +831,16 @@ var getProfileInfo = function getProfileInfo(profileInfoOverrides, isConsumer) {
|
|
|
813
831
|
// Theme switcher utils.
|
|
814
832
|
var setDarkTheme = function setDarkTheme() {
|
|
815
833
|
if (!document.body) return;
|
|
816
|
-
document.body.classList.remove(THEMES.LIGHT);
|
|
817
|
-
document.body.classList.add(THEMES.DARK);
|
|
834
|
+
document.body.classList.remove(useWhatsNewChangesCount.THEMES.LIGHT);
|
|
835
|
+
document.body.classList.add(useWhatsNewChangesCount.THEMES.DARK);
|
|
818
836
|
};
|
|
819
837
|
var setLightTheme = function setLightTheme() {
|
|
820
838
|
if (!document.body) return;
|
|
821
|
-
document.body.classList.remove(THEMES.DARK);
|
|
822
|
-
document.body.classList.add(THEMES.LIGHT);
|
|
839
|
+
document.body.classList.remove(useWhatsNewChangesCount.THEMES.DARK);
|
|
840
|
+
document.body.classList.add(useWhatsNewChangesCount.THEMES.LIGHT);
|
|
823
841
|
};
|
|
824
842
|
var setAppTheme = function setAppTheme() {
|
|
825
|
-
var isDarkTheme = utils.getFromLocalStorage(APP_THEME_LOCALSTORAGE_KEY) === THEMES.DARK;
|
|
843
|
+
var isDarkTheme = utils.getFromLocalStorage(useWhatsNewChangesCount.APP_THEME_LOCALSTORAGE_KEY) === useWhatsNewChangesCount.THEMES.DARK;
|
|
826
844
|
isDarkTheme ? setDarkTheme() : setLightTheme();
|
|
827
845
|
};
|
|
828
846
|
|
|
@@ -830,13 +848,13 @@ var MenuItem$2 = Dropdown$1.MenuItem;
|
|
|
830
848
|
var ThemeSwitcher = function ThemeSwitcher() {
|
|
831
849
|
var _useTranslation = reactI18next.useTranslation(),
|
|
832
850
|
t = _useTranslation.t;
|
|
833
|
-
var _useLocalStorage = useLocalStorage(APP_THEME_LOCALSTORAGE_KEY, THEMES.LIGHT),
|
|
851
|
+
var _useLocalStorage = useLocalStorage(useWhatsNewChangesCount.APP_THEME_LOCALSTORAGE_KEY, useWhatsNewChangesCount.THEMES.LIGHT),
|
|
834
852
|
_useLocalStorage2 = _slicedToArray(_useLocalStorage, 2),
|
|
835
853
|
appTheme = _useLocalStorage2[0],
|
|
836
854
|
setAppTheme = _useLocalStorage2[1];
|
|
837
|
-
var isDarkThemeSelected = appTheme === THEMES.DARK;
|
|
855
|
+
var isDarkThemeSelected = appTheme === useWhatsNewChangesCount.THEMES.DARK;
|
|
838
856
|
var switchTheme = function switchTheme(theme) {
|
|
839
|
-
theme === THEMES.LIGHT ? setLightTheme() : setDarkTheme();
|
|
857
|
+
theme === useWhatsNewChangesCount.THEMES.LIGHT ? setLightTheme() : setDarkTheme();
|
|
840
858
|
setAppTheme(theme);
|
|
841
859
|
};
|
|
842
860
|
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$2, {
|
|
@@ -854,7 +872,7 @@ var ThemeSwitcher = function ThemeSwitcher() {
|
|
|
854
872
|
"neeto-molecules-theme-switcher__option--active": !isDarkThemeSelected
|
|
855
873
|
}),
|
|
856
874
|
onClick: function onClick() {
|
|
857
|
-
return switchTheme(THEMES.LIGHT);
|
|
875
|
+
return switchTheme(useWhatsNewChangesCount.THEMES.LIGHT);
|
|
858
876
|
},
|
|
859
877
|
children: [/*#__PURE__*/jsxRuntime.jsx(Sun, {
|
|
860
878
|
size: 18
|
|
@@ -866,7 +884,7 @@ var ThemeSwitcher = function ThemeSwitcher() {
|
|
|
866
884
|
"neeto-molecules-theme-switcher__option--active": isDarkThemeSelected
|
|
867
885
|
}),
|
|
868
886
|
onClick: function onClick() {
|
|
869
|
-
return switchTheme(THEMES.DARK);
|
|
887
|
+
return switchTheme(useWhatsNewChangesCount.THEMES.DARK);
|
|
870
888
|
},
|
|
871
889
|
children: [/*#__PURE__*/jsxRuntime.jsx(Moon, {
|
|
872
890
|
size: 18
|
|
@@ -927,7 +945,7 @@ var WorkspaceMenu = function WorkspaceMenu() {
|
|
|
927
945
|
children: /*#__PURE__*/jsxRuntime.jsxs(Menu, {
|
|
928
946
|
children: [/*#__PURE__*/jsxRuntime.jsx(MenuItem.Button, {
|
|
929
947
|
"data-testid": "profile-organization-settings-button",
|
|
930
|
-
href: MY_ORGANIZATION_URL,
|
|
948
|
+
href: useWhatsNewChangesCount.MY_ORGANIZATION_URL,
|
|
931
949
|
rel: "noreferrer",
|
|
932
950
|
target: "_blank",
|
|
933
951
|
children: t("neetoMolecules.sidebar.workspaceMenu.settings")
|
|
@@ -976,39 +994,42 @@ var ProfileMenu = function ProfileMenu(_ref) {
|
|
|
976
994
|
isOrganizationSwitcherEnabled = _ref.isOrganizationSwitcherEnabled,
|
|
977
995
|
isConsumer = _ref.isConsumer,
|
|
978
996
|
enableSubscriptionUpgradeRequest = _ref.enableSubscriptionUpgradeRequest,
|
|
979
|
-
openUpgradeModal = _ref.openUpgradeModal
|
|
997
|
+
openUpgradeModal = _ref.openUpgradeModal,
|
|
998
|
+
onReportSlowness = _ref.onReportSlowness;
|
|
980
999
|
var Menu = Dropdown$1.Menu,
|
|
981
1000
|
MenuItem = Dropdown$1.MenuItem,
|
|
982
1001
|
Divider = Dropdown$1.Divider;
|
|
983
1002
|
var isAuthenticated = profileInfo.isAuthenticated;
|
|
984
1003
|
var _useTranslation = reactI18next.useTranslation(),
|
|
985
1004
|
t = _useTranslation.t;
|
|
986
|
-
|
|
987
|
-
|
|
1005
|
+
|
|
1006
|
+
// A paid plan can be named more than one thing, so the badge follows the
|
|
1007
|
+
// isPro flag the backend sends alongside the plan; the plan name is display
|
|
1008
|
+
// text only.
|
|
1009
|
+
var isPro = Boolean((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.isPro);
|
|
988
1010
|
var isOwner = (_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.isOwner;
|
|
989
|
-
var showUpgradeModal =
|
|
1011
|
+
var showUpgradeModal = !isPro && enableSubscriptionUpgradeRequest && !isOwner;
|
|
990
1012
|
var getSubscriptionPlanAction = function getSubscriptionPlanAction() {
|
|
991
1013
|
if (showUpgradeModal) return {
|
|
992
1014
|
onClick: openUpgradeModal
|
|
993
1015
|
};
|
|
994
|
-
if (
|
|
995
|
-
var _globalProps$organiza;
|
|
1016
|
+
if (!isPro && isOwner && enableSubscriptionUpgradeRequest) {
|
|
996
1017
|
return {
|
|
997
|
-
href:
|
|
1018
|
+
href: performanceDiagnostics.getProductBillingUrl()
|
|
998
1019
|
};
|
|
999
1020
|
}
|
|
1000
1021
|
return {
|
|
1001
|
-
href: NEETO_AUTH_BILLING_INFO_URL
|
|
1022
|
+
href: useWhatsNewChangesCount.NEETO_AUTH_BILLING_INFO_URL
|
|
1002
1023
|
};
|
|
1003
1024
|
};
|
|
1004
1025
|
var subscriptionPlanLink = _objectSpread$2({
|
|
1005
1026
|
label: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1006
1027
|
children: [globalProps.appName, " ", /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1007
1028
|
className: classnames("neeto-molecules-subscription-plan-badge flex items-center gap-1", {
|
|
1008
|
-
"neeto-molecules-subscription-plan-badge--pro":
|
|
1009
|
-
"neeto-molecules-subscription-plan-badge--free":
|
|
1029
|
+
"neeto-molecules-subscription-plan-badge--pro": isPro,
|
|
1030
|
+
"neeto-molecules-subscription-plan-badge--free": !isPro
|
|
1010
1031
|
}),
|
|
1011
|
-
children:
|
|
1032
|
+
children: isPro ? neetoCist.humanize((_globalProps$user3 = globalProps.user) === null || _globalProps$user3 === void 0 ? void 0 : _globalProps$user3.subscriptionPlan) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1012
1033
|
children: [/*#__PURE__*/jsxRuntime.jsx(Crown, {
|
|
1013
1034
|
size: 12
|
|
1014
1035
|
}), t("neetoMolecules.sidebar.upgradePlan")]
|
|
@@ -1035,7 +1056,9 @@ var ProfileMenu = function ProfileMenu(_ref) {
|
|
|
1035
1056
|
links: [subscriptionPlanLink]
|
|
1036
1057
|
}), showProductSwitcher && /*#__PURE__*/jsxRuntime.jsx(ProductSwitcher, {
|
|
1037
1058
|
toggleModal: toggleModal
|
|
1038
|
-
}), /*#__PURE__*/jsxRuntime.jsx(HelpMenu, {
|
|
1059
|
+
}), /*#__PURE__*/jsxRuntime.jsx(HelpMenu, {
|
|
1060
|
+
onReportSlowness: onReportSlowness
|
|
1061
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Divider, {})]
|
|
1039
1062
|
}), isAuthenticated && !isConsumer && /*#__PURE__*/jsxRuntime.jsx(ProfileExpandMenu, {
|
|
1040
1063
|
profileInfo: profileInfo
|
|
1041
1064
|
}), /*#__PURE__*/jsxRuntime.jsx(LinkSection, {
|
|
@@ -1046,6 +1069,105 @@ var ProfileMenu = function ProfileMenu(_ref) {
|
|
|
1046
1069
|
});
|
|
1047
1070
|
};
|
|
1048
1071
|
|
|
1072
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = true, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), true), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
1073
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
1074
|
+
var ReportSlownessModal = function ReportSlownessModal(_ref) {
|
|
1075
|
+
var reportedAt = _ref.reportedAt,
|
|
1076
|
+
onClose = _ref.onClose;
|
|
1077
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
1078
|
+
t = _useTranslation.t;
|
|
1079
|
+
var _useState = React.useState(""),
|
|
1080
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1081
|
+
description = _useState2[0],
|
|
1082
|
+
setDescription = _useState2[1];
|
|
1083
|
+
var _useState3 = React.useState(false),
|
|
1084
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1085
|
+
isSubmitting = _useState4[0],
|
|
1086
|
+
setIsSubmitting = _useState4[1];
|
|
1087
|
+
var handleClose = function handleClose() {
|
|
1088
|
+
setDescription("");
|
|
1089
|
+
onClose();
|
|
1090
|
+
};
|
|
1091
|
+
var handleSubmit = /*#__PURE__*/function () {
|
|
1092
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
1093
|
+
var report;
|
|
1094
|
+
return _regenerator().w(function (_context) {
|
|
1095
|
+
while (1) switch (_context.n) {
|
|
1096
|
+
case 0:
|
|
1097
|
+
setIsSubmitting(true);
|
|
1098
|
+
_context.n = 1;
|
|
1099
|
+
return performanceDiagnostics.reportSlowness({
|
|
1100
|
+
description: description.trim(),
|
|
1101
|
+
reportedAt: reportedAt
|
|
1102
|
+
});
|
|
1103
|
+
case 1:
|
|
1104
|
+
report = _context.v;
|
|
1105
|
+
setIsSubmitting(false);
|
|
1106
|
+
if (report) {
|
|
1107
|
+
_context.n = 2;
|
|
1108
|
+
break;
|
|
1109
|
+
}
|
|
1110
|
+
Toastr.error(t("neetoMolecules.reportSlowness.error"));
|
|
1111
|
+
return _context.a(2);
|
|
1112
|
+
case 2:
|
|
1113
|
+
Toastr.success(t("neetoMolecules.reportSlowness.success"), report.replay_url ? {
|
|
1114
|
+
buttonLabel: t("neetoMolecules.reportSlowness.viewReplay"),
|
|
1115
|
+
onClick: function onClick() {
|
|
1116
|
+
return window.open(report.replay_url, "_blank", "noopener,noreferrer");
|
|
1117
|
+
}
|
|
1118
|
+
} : {});
|
|
1119
|
+
handleClose();
|
|
1120
|
+
case 3:
|
|
1121
|
+
return _context.a(2);
|
|
1122
|
+
}
|
|
1123
|
+
}, _callee);
|
|
1124
|
+
}));
|
|
1125
|
+
return function handleSubmit() {
|
|
1126
|
+
return _ref2.apply(this, arguments);
|
|
1127
|
+
};
|
|
1128
|
+
}();
|
|
1129
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Modal$1, {
|
|
1130
|
+
closeOnEsc: !isSubmitting,
|
|
1131
|
+
closeOnOutsideClick: !isSubmitting,
|
|
1132
|
+
isOpen: Boolean(reportedAt),
|
|
1133
|
+
onClose: handleClose,
|
|
1134
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Modal$1.Header, {
|
|
1135
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
1136
|
+
style: "h3",
|
|
1137
|
+
weight: "semibold",
|
|
1138
|
+
children: t("neetoMolecules.reportSlowness.title")
|
|
1139
|
+
})
|
|
1140
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Modal$1.Body, {
|
|
1141
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Textarea, {
|
|
1142
|
+
"data-testid": "report-slowness-description-text-input",
|
|
1143
|
+
label: t("neetoMolecules.reportSlowness.descriptionLabel"),
|
|
1144
|
+
maxLength: useWhatsNewChangesCount.SLOWNESS_DESCRIPTION_MAX_LENGTH,
|
|
1145
|
+
value: description,
|
|
1146
|
+
placeholder: t("neetoMolecules.reportSlowness.descriptionPlaceholder"),
|
|
1147
|
+
onChange: function onChange(e) {
|
|
1148
|
+
return setDescription(e.target.value);
|
|
1149
|
+
}
|
|
1150
|
+
})
|
|
1151
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(Modal$1.Footer, {
|
|
1152
|
+
className: "flex gap-x-2",
|
|
1153
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
1154
|
+
"data-testid": "report-slowness-cancel-button",
|
|
1155
|
+
disabled: isSubmitting,
|
|
1156
|
+
label: t("neetoMolecules.reportSlowness.cancel"),
|
|
1157
|
+
style: "secondary",
|
|
1158
|
+
onClick: handleClose
|
|
1159
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
1160
|
+
"data-testid": "report-slowness-submit-button",
|
|
1161
|
+
disabled: isSubmitting,
|
|
1162
|
+
label: t("neetoMolecules.reportSlowness.submit"),
|
|
1163
|
+
loading: isSubmitting,
|
|
1164
|
+
style: "primary",
|
|
1165
|
+
onClick: handleSubmit
|
|
1166
|
+
})]
|
|
1167
|
+
})]
|
|
1168
|
+
});
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1049
1171
|
function ownKeys$1(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; }
|
|
1050
1172
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1051
1173
|
var ProfileButton = function ProfileButton(_ref) {
|
|
@@ -1074,8 +1196,9 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
1074
1196
|
setIsBackdropVisible = _useState6[1];
|
|
1075
1197
|
var _useState7 = React.useState(null),
|
|
1076
1198
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
1077
|
-
|
|
1078
|
-
|
|
1199
|
+
slownessReportedAt = _useState8[0],
|
|
1200
|
+
setSlownessReportedAt = _useState8[1];
|
|
1201
|
+
var changesCount = useWhatsNewChangesCount.useWhatsNewChangesCount();
|
|
1079
1202
|
var _KeyboardShortcuts$us = KeyboardShortcuts.usePaneState(),
|
|
1080
1203
|
_KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
|
|
1081
1204
|
setIsOpen = _KeyboardShortcuts$us2[1];
|
|
@@ -1085,21 +1208,9 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
1085
1208
|
mode: "global"
|
|
1086
1209
|
});
|
|
1087
1210
|
var profileInfo = getProfileInfo(profileInfoOverrides, isConsumer);
|
|
1088
|
-
React.useEffect(function () {
|
|
1089
|
-
var Nv = {
|
|
1090
|
-
onReceiveData: function onReceiveData(data) {
|
|
1091
|
-
if (!data.unreadCount) return;
|
|
1092
|
-
setChangesCount(data.unreadCount);
|
|
1093
|
-
},
|
|
1094
|
-
onShow: function onShow() {
|
|
1095
|
-
setChangesCount(null);
|
|
1096
|
-
}
|
|
1097
|
-
};
|
|
1098
|
-
window.Nv = window.Nv ? Object.assign(window.Nv, Nv) : Nv;
|
|
1099
|
-
}, []);
|
|
1100
1211
|
var newBottomLinks = [].concat(_toConsumableArray(getDefaultBottomLinks(profileInfo.isAuthenticated, isConsumer)), _toConsumableArray(bottomLinks));
|
|
1101
|
-
var defaultLinks = Object.keys(DEFAULT_MENU_LINK_PROPS).map(function (key) {
|
|
1102
|
-
return _objectSpread$1(_objectSpread$1(_objectSpread$1({}, DEFAULT_MENU_LINK_PROPS[key]), key === "keyboardShortcutProps" && {
|
|
1212
|
+
var defaultLinks = Object.keys(useWhatsNewChangesCount.DEFAULT_MENU_LINK_PROPS).map(function (key) {
|
|
1213
|
+
return _objectSpread$1(_objectSpread$1(_objectSpread$1({}, useWhatsNewChangesCount.DEFAULT_MENU_LINK_PROPS[key]), key === "keyboardShortcutProps" && {
|
|
1103
1214
|
onClick: function onClick() {
|
|
1104
1215
|
return setIsOpen(function (prev) {
|
|
1105
1216
|
return !prev;
|
|
@@ -1169,12 +1280,21 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
1169
1280
|
openUpgradeModal: function openUpgradeModal() {
|
|
1170
1281
|
return setIsUpgradeModalOpen(true);
|
|
1171
1282
|
},
|
|
1172
|
-
toggleModal: setIsModalOpen
|
|
1283
|
+
toggleModal: setIsModalOpen,
|
|
1284
|
+
onReportSlowness: function onReportSlowness() {
|
|
1285
|
+
setSlownessReportedAt(Date.now());
|
|
1286
|
+
tippy_js.hideAll();
|
|
1287
|
+
}
|
|
1173
1288
|
})
|
|
1174
1289
|
}), neetoCist.isPresent(changesCount) && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1175
1290
|
className: "neeto-molecules-menu__notif-count",
|
|
1176
1291
|
"data-testid": "help-icon-changes-count",
|
|
1177
1292
|
children: changesCount
|
|
1293
|
+
}), /*#__PURE__*/jsxRuntime.jsx(ReportSlownessModal, {
|
|
1294
|
+
reportedAt: slownessReportedAt,
|
|
1295
|
+
onClose: function onClose() {
|
|
1296
|
+
return setSlownessReportedAt(null);
|
|
1297
|
+
}
|
|
1178
1298
|
}), /*#__PURE__*/jsxRuntime.jsx(Modal, {
|
|
1179
1299
|
isOpen: isModalOpen,
|
|
1180
1300
|
onClose: function onClose() {
|
|
@@ -1189,7 +1309,7 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
1189
1309
|
});
|
|
1190
1310
|
};
|
|
1191
1311
|
|
|
1192
|
-
var css = ":root{--neeto-molecules-floating-menu-z-index:99999}.neeto-molecules-floating-action-menu__container{background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-white));border-end-end-radius:1.0625rem;border-inline-start:none;border-start-end-radius:1.0625rem;bottom:16px;inset-inline-start:0;position:fixed;z-index:99999;z-index:var(--neeto-molecules-floating-menu-z-index)}.neeto-molecules-floating-action-button{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-color:rgb(var(--neeto-ui-primary-500));border-end-end-radius:1rem;border-start-end-radius:1rem;display:flex;flex-direction:column;gap:.375rem;justify-content:center;padding:.25rem}.neeto-molecules-floating-action-button__help-icon{align-items:center;background-color:#fff;border-radius:6.25rem;display:flex;height:1.625rem;justify-content:center;width:1.625rem}.neeto-molecules-floating-action-button__profile-avatar{--neeto-ui-avatar-container-width:1.625rem;--neeto-ui-avatar-container-height:1.625rem;border:2px solid #fff;border-radius:6.25rem}.neeto-molecules-floating-action-button__profile-avatar>div{height:100%;width:100%}.neeto-molecules-floating-action-button__profile-avatar .neeto-ui-avatar{height:100%!important;width:100%!important}.neeto-molecules-floating-action-button__dropdown{--neeto-ui-dropdown-divider-margin:0.5rem;--neeto-ui-dropdown-item-border-radius:0.25rem;flex-shrink:0;max-height:95vh!important;max-width:none;width:16rem;z-index:99999;z-index:var(--neeto-molecules-floating-menu-z-index)}.neeto-molecules-floating-action-button__dropdown .neeto-ui-dropdown__popup-menu{padding-bottom:.75rem!important;padding-top:.75rem!important}.neeto-molecules-floating-action-button__dropdown.neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-menu-item{background-color:transparent!important;padding-left:.75rem;padding-right:.75rem}.neeto-molecules-floating-action-button__backdrop{background-color:rgba(var(--neeto-ui-black),.27);height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:99998;z-index:calc(var(--neeto-molecules-floating-menu-z-index) - 1)}.neeto-molecules-product-switcher-menu-popup__dropdown{max-height:none!important;max-width:none}.neeto-molecules-menu__notif-count{border:1px solid #fff;height:.9375rem;inset-inline-end:0;min-width:.9375rem;pointer-events:none;position:absolute;top:0;z-index:3}.neeto-molecules-menu-list__item-btn-count,.neeto-molecules-menu__notif-count{align-items:center;background-color:rgb(var(--neeto-ui-accent-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:flex;flex-shrink:0;font-size:var(--neeto-ui-text-xxs);justify-content:center;padding-inline-end:.25rem;padding-inline-start:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-molecules-menu-list__item-btn-count{height:1.125rem;min-width:1.125rem}.neeto-ui-dropdown__popup .neeto-molecules-product-switcher-menu-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:.75rem!important;min-width:15rem}.neeto-ui-dropdown__popup .neeto-molecules-product-switcher-menu-popup-wrapper .tippy-content{padding:0}.neeto-ui-dropdown__popup .neeto-molecules-product-switcher-menu-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-popup__top-section{border-radius:.25rem;transition:var(--neeto-ui-transition)}@media (prefers-reduced-motion:reduce){.neeto-molecules-profile-popup__top-section{transition:none}}.neeto-molecules-profile-popup__top-section:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-menu-sublist__item-btn{font-weight:500!important;height:2.5rem}.neeto-molecules-menu-sublist__item-btn[data-btn-weight=bold]{font-weight:700!important}.neeto-molecules-menu-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-menu-sublist__item-btn-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-menu-sublist__item-btn span{align-items:center;display:flex;gap:.5rem}.neeto-molecules-product-switcher-menu-popup-wrapper{height:95vh;overflow-y:auto;width:calc(100vw - 25rem)}.neeto-molecules-floating-action-button__profile-wrapper-custom-content:hover{background-color:rgb(var(--neeto-ui-white))!important}.neeto-molecules-organization-switcher-active-button,.neeto-molecules-theme-switcher-active-button{color:rgb(var(--neeto-ui-success-600))!important}.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper]{--neeto-ui-dropdown-box-shadow:0 0 0 0;--neeto-ui-dropdown-border-radius:0.75rem;--neeto-ui-dropdown-popup-border-radius:0.75rem;--neeto-ui-dropdown-margin-y:0;--neeto-ui-dropdown-margin-x:0;transition:var(--neeto-ui-transition)}@media (prefers-reduced-motion:reduce){.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper]{transition:none}}.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper] .neeto-ui-dropdown__popup{--neeto-ui-dropdown-border-radius:0.75rem;transition:var(--neeto-ui-transition)}@media (prefers-reduced-motion:reduce){.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper] .neeto-ui-dropdown__popup{transition:none}}.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper] .neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-divider{transition:var(--neeto-ui-transition)}@media (prefers-reduced-motion:reduce){.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper] .neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-divider{transition:none}}.neeto-molecules-subscription-plan-badge{border-radius:9999px;display:inline-block;font-size:.625rem;font-weight:600;line-height:1.1;padding:.25rem .625rem}.neeto-molecules-subscription-plan-badge--pro{background-color:#ffe44a;color:#000}.neeto-molecules-subscription-plan-badge--free{background-color:rgb(var(--neeto-ui-primary-500));color:rgb(var(--neeto-ui-white))}.neeto-molecules-theme-switcher{border-bottom-left-radius:.75rem;border-bottom-right-radius:.75rem}.neeto-molecules-theme-switcher__label{color:rgb(var(--neeto-ui-gray-800));font-size:.875rem;font-weight:500}.neeto-molecules-theme-switcher__segmented-control{background-color:rgb(var(--neeto-ui-gray-200));border-radius:9999px;display:flex;gap:.25rem;padding:.0625rem}.neeto-molecules-theme-switcher__option{align-items:center;background-color:transparent;border:1px solid transparent;border-radius:9999px;color:rgb(var(--neeto-ui-gray-700));cursor:pointer;display:flex;flex:1;font-size:.75rem;font-weight:500;gap:.125rem;padding:.25rem .375rem;transition:all .2s ease;white-space:nowrap}@media (prefers-reduced-motion:reduce){.neeto-molecules-theme-switcher__option{transition:none}}.neeto-molecules-theme-switcher__option:hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-theme-switcher__option--active{background-color:rgb(var(--neeto-ui-white));border-color:rgb(var(--neeto-ui-gray-300));box-shadow:0 1px 2px rgba(0,0,0,.05);color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-theme-switcher__option svg{flex-shrink:0}";
|
|
1312
|
+
var css = ":root{--neeto-molecules-floating-menu-z-index:99999}.neeto-molecules-floating-action-menu__container{background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-white));border-end-end-radius:1.0625rem;border-inline-start:none;border-start-end-radius:1.0625rem;bottom:16px;inset-inline-start:0;position:fixed;z-index:99999;z-index:var(--neeto-molecules-floating-menu-z-index)}.neeto-molecules-floating-action-button{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-color:rgb(var(--neeto-ui-primary-500));border-end-end-radius:1rem;border-start-end-radius:1rem;display:flex;flex-direction:column;gap:.375rem;justify-content:center;padding:.25rem}.neeto-molecules-floating-action-button__help-icon{align-items:center;background-color:#fff;border-radius:6.25rem;display:flex;height:1.625rem;justify-content:center;width:1.625rem}.neeto-molecules-floating-action-button__profile-avatar{--neeto-ui-avatar-container-width:1.625rem;--neeto-ui-avatar-container-height:1.625rem;border:2px solid #fff;border-radius:6.25rem}.neeto-molecules-floating-action-button__profile-avatar>div{height:100%;width:100%}.neeto-molecules-floating-action-button__profile-avatar .neeto-ui-avatar{height:100%!important;width:100%!important}.neeto-molecules-floating-action-button__dropdown{--neeto-ui-dropdown-divider-margin:0.5rem;--neeto-ui-dropdown-item-border-radius:0.25rem;flex-shrink:0;max-height:95vh!important;max-width:none;width:16rem;z-index:99999;z-index:var(--neeto-molecules-floating-menu-z-index)}.neeto-molecules-floating-action-button__dropdown .neeto-ui-dropdown__popup-menu{padding-bottom:.75rem!important;padding-top:.75rem!important}.neeto-molecules-floating-action-button__dropdown.neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-menu-item{background-color:transparent!important;padding-left:.75rem;padding-right:.75rem}.neeto-molecules-floating-action-button__backdrop{background-color:rgba(var(--neeto-ui-black),.27);height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:99998;z-index:calc(var(--neeto-molecules-floating-menu-z-index) - 1)}.neeto-molecules-product-switcher-menu-popup__dropdown{max-height:none!important;max-width:none}.neeto-ui-dropdown__popup.neeto-molecules-help-menu-popup__dropdown{max-height:95vh}.neeto-molecules-menu__notif-count{border:1px solid #fff;height:.9375rem;inset-inline-end:0;min-width:.9375rem;pointer-events:none;position:absolute;top:0;z-index:3}.neeto-molecules-menu-list__item-btn-count,.neeto-molecules-menu__notif-count{align-items:center;background-color:rgb(var(--neeto-ui-accent-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:flex;flex-shrink:0;font-size:var(--neeto-ui-text-xxs);justify-content:center;padding-inline-end:.25rem;padding-inline-start:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-molecules-menu-list__item-btn-count{height:1.125rem;min-width:1.125rem}.neeto-ui-dropdown__popup .neeto-molecules-product-switcher-menu-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:.75rem!important;min-width:15rem}.neeto-ui-dropdown__popup .neeto-molecules-product-switcher-menu-popup-wrapper .tippy-content{padding:0}.neeto-ui-dropdown__popup .neeto-molecules-product-switcher-menu-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-popup__top-section{border-radius:.25rem;transition:var(--neeto-ui-transition)}@media (prefers-reduced-motion:reduce){.neeto-molecules-profile-popup__top-section{transition:none}}.neeto-molecules-profile-popup__top-section:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-menu-sublist__item-btn{font-weight:500!important;height:2.5rem}.neeto-molecules-menu-sublist__item-btn[data-btn-weight=bold]{font-weight:700!important}.neeto-molecules-menu-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-menu-sublist__item-btn-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-menu-sublist__item-btn span{align-items:center;display:flex;gap:.5rem}.neeto-molecules-product-switcher-menu-popup-wrapper{height:95vh;overflow-y:auto;width:calc(100vw - 25rem)}.neeto-molecules-floating-action-button__profile-wrapper-custom-content:hover{background-color:rgb(var(--neeto-ui-white))!important}.neeto-molecules-organization-switcher-active-button,.neeto-molecules-theme-switcher-active-button{color:rgb(var(--neeto-ui-success-600))!important}.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper]{--neeto-ui-dropdown-box-shadow:0 0 0 0;--neeto-ui-dropdown-border-radius:0.75rem;--neeto-ui-dropdown-popup-border-radius:0.75rem;--neeto-ui-dropdown-margin-y:0;--neeto-ui-dropdown-margin-x:0;transition:var(--neeto-ui-transition)}@media (prefers-reduced-motion:reduce){.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper]{transition:none}}.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper] .neeto-ui-dropdown__popup{--neeto-ui-dropdown-border-radius:0.75rem;transition:var(--neeto-ui-transition)}@media (prefers-reduced-motion:reduce){.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper] .neeto-ui-dropdown__popup{transition:none}}.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper] .neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-divider{transition:var(--neeto-ui-transition)}@media (prefers-reduced-motion:reduce){.tippy-box[data-theme~=neeto-molecules-floating-action-outer-dropdown-wrapper] .neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-divider{transition:none}}.neeto-molecules-subscription-plan-badge{border-radius:9999px;display:inline-block;font-size:.625rem;font-weight:600;line-height:1.1;padding:.25rem .625rem}.neeto-molecules-subscription-plan-badge--pro{background-color:#ffe44a;color:#000}.neeto-molecules-subscription-plan-badge--free{background-color:rgb(var(--neeto-ui-primary-500));color:rgb(var(--neeto-ui-white))}.neeto-molecules-theme-switcher{border-bottom-left-radius:.75rem;border-bottom-right-radius:.75rem}.neeto-molecules-theme-switcher__label{color:rgb(var(--neeto-ui-gray-800));font-size:.875rem;font-weight:500}.neeto-molecules-theme-switcher__segmented-control{background-color:rgb(var(--neeto-ui-gray-200));border-radius:9999px;display:flex;gap:.25rem;padding:.0625rem}.neeto-molecules-theme-switcher__option{align-items:center;background-color:transparent;border:1px solid transparent;border-radius:9999px;color:rgb(var(--neeto-ui-gray-700));cursor:pointer;display:flex;flex:1;font-size:.75rem;font-weight:500;gap:.125rem;padding:.25rem .375rem;transition:all .2s ease;white-space:nowrap}@media (prefers-reduced-motion:reduce){.neeto-molecules-theme-switcher__option{transition:none}}.neeto-molecules-theme-switcher__option:hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-theme-switcher__option--active{background-color:rgb(var(--neeto-ui-white));border-color:rgb(var(--neeto-ui-gray-300));box-shadow:0 1px 2px rgba(0,0,0,.05);color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-theme-switcher__option svg{flex-shrink:0}";
|
|
1193
1313
|
injectCss.n(css,{});
|
|
1194
1314
|
|
|
1195
1315
|
var _excluded = ["profileInfoOverrides", "topLinks", "bottomLinks", "showProductSwitcher", "isThemeSwitcherEnabled", "isOrganizationSwitcherEnabled", "customContent", "profilePopoverProps", "isConsumer", "enableSubscriptionUpgradeRequest"];
|