@trops/dash-core 0.1.374 → 0.1.376
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/electron/index.js +25 -12
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +86 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +86 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5000,11 +5000,32 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
5000
5000
|
}), /*#__PURE__*/jsxRuntime.jsx(RegistryAuthModal, {
|
|
5001
5001
|
isOpen: showAuthFromEmpty,
|
|
5002
5002
|
setIsOpen: setShowAuthFromEmpty,
|
|
5003
|
-
onAuthenticated: function
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5003
|
+
onAuthenticated: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
5004
|
+
var _window$mainApi3, _window$mainApi3$fetc;
|
|
5005
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
5006
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
5007
|
+
case 0:
|
|
5008
|
+
setShowAuthFromEmpty(false);
|
|
5009
|
+
setRegistryAuthed(true);
|
|
5010
|
+
// Force-refresh the cached registry index so the now-
|
|
5011
|
+
// authenticated user immediately sees their private packages.
|
|
5012
|
+
_context3.prev = 1;
|
|
5013
|
+
_context3.next = 2;
|
|
5014
|
+
return (_window$mainApi3 = window.mainApi) === null || _window$mainApi3 === void 0 || (_window$mainApi3 = _window$mainApi3.registry) === null || _window$mainApi3 === void 0 || (_window$mainApi3$fetc = _window$mainApi3.fetchIndex) === null || _window$mainApi3$fetc === void 0 ? void 0 : _window$mainApi3$fetc.call(_window$mainApi3, true);
|
|
5015
|
+
case 2:
|
|
5016
|
+
_context3.next = 4;
|
|
5017
|
+
break;
|
|
5018
|
+
case 3:
|
|
5019
|
+
_context3.prev = 3;
|
|
5020
|
+
_context3["catch"](1);
|
|
5021
|
+
case 4:
|
|
5022
|
+
search(searchQuery);
|
|
5023
|
+
case 5:
|
|
5024
|
+
case "end":
|
|
5025
|
+
return _context3.stop();
|
|
5026
|
+
}
|
|
5027
|
+
}, _callee3, null, [[1, 3]]);
|
|
5028
|
+
})),
|
|
5008
5029
|
onCancel: function onCancel() {
|
|
5009
5030
|
return setShowAuthFromEmpty(false);
|
|
5010
5031
|
},
|
|
@@ -38566,11 +38587,32 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
|
|
|
38566
38587
|
}), /*#__PURE__*/jsxRuntime.jsx(RegistryAuthModal, {
|
|
38567
38588
|
isOpen: showAuthFromEmpty,
|
|
38568
38589
|
setIsOpen: setShowAuthFromEmpty,
|
|
38569
|
-
onAuthenticated: function
|
|
38570
|
-
|
|
38571
|
-
|
|
38572
|
-
|
|
38573
|
-
|
|
38590
|
+
onAuthenticated: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
38591
|
+
var _window$mainApi3, _window$mainApi3$fetc;
|
|
38592
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
38593
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
38594
|
+
case 0:
|
|
38595
|
+
setShowAuthFromEmpty(false);
|
|
38596
|
+
setRegistryAuthed(true);
|
|
38597
|
+
// Force-refresh the cached registry index so the now-
|
|
38598
|
+
// authenticated user immediately sees their private packages.
|
|
38599
|
+
_context3.prev = 1;
|
|
38600
|
+
_context3.next = 2;
|
|
38601
|
+
return (_window$mainApi3 = window.mainApi) === null || _window$mainApi3 === void 0 || (_window$mainApi3 = _window$mainApi3.registry) === null || _window$mainApi3 === void 0 || (_window$mainApi3$fetc = _window$mainApi3.fetchIndex) === null || _window$mainApi3$fetc === void 0 ? void 0 : _window$mainApi3$fetc.call(_window$mainApi3, true);
|
|
38602
|
+
case 2:
|
|
38603
|
+
_context3.next = 4;
|
|
38604
|
+
break;
|
|
38605
|
+
case 3:
|
|
38606
|
+
_context3.prev = 3;
|
|
38607
|
+
_context3["catch"](1);
|
|
38608
|
+
case 4:
|
|
38609
|
+
search(searchQuery);
|
|
38610
|
+
case 5:
|
|
38611
|
+
case "end":
|
|
38612
|
+
return _context3.stop();
|
|
38613
|
+
}
|
|
38614
|
+
}, _callee3, null, [[1, 3]]);
|
|
38615
|
+
})),
|
|
38574
38616
|
onCancel: function onCancel() {
|
|
38575
38617
|
return setShowAuthFromEmpty(false);
|
|
38576
38618
|
},
|
|
@@ -47566,6 +47608,40 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
47566
47608
|
onCancel: function onCancel() {
|
|
47567
47609
|
return setToolConflictWarning(null);
|
|
47568
47610
|
}
|
|
47611
|
+
}), /*#__PURE__*/jsxRuntime.jsx(RegistryAuthModal, {
|
|
47612
|
+
isOpen: showAuthFromEmpty,
|
|
47613
|
+
setIsOpen: setShowAuthFromEmpty,
|
|
47614
|
+
onAuthenticated: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
47615
|
+
var _window$mainApi2, _window$mainApi2$fetc;
|
|
47616
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
47617
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
47618
|
+
case 0:
|
|
47619
|
+
setShowAuthFromEmpty(false);
|
|
47620
|
+
setRegistryAuthed(true);
|
|
47621
|
+
// Force-refresh the cached registry index so the now-
|
|
47622
|
+
// authenticated user immediately sees their private packages
|
|
47623
|
+
// (the previous anon-cache fetch otherwise lingers for 5 min).
|
|
47624
|
+
_context3.prev = 1;
|
|
47625
|
+
_context3.next = 2;
|
|
47626
|
+
return (_window$mainApi2 = window.mainApi) === null || _window$mainApi2 === void 0 || (_window$mainApi2 = _window$mainApi2.registry) === null || _window$mainApi2 === void 0 || (_window$mainApi2$fetc = _window$mainApi2.fetchIndex) === null || _window$mainApi2$fetc === void 0 ? void 0 : _window$mainApi2$fetc.call(_window$mainApi2, true);
|
|
47627
|
+
case 2:
|
|
47628
|
+
_context3.next = 4;
|
|
47629
|
+
break;
|
|
47630
|
+
case 3:
|
|
47631
|
+
_context3.prev = 3;
|
|
47632
|
+
_context3["catch"](1);
|
|
47633
|
+
case 4:
|
|
47634
|
+
retry();
|
|
47635
|
+
case 5:
|
|
47636
|
+
case "end":
|
|
47637
|
+
return _context3.stop();
|
|
47638
|
+
}
|
|
47639
|
+
}, _callee3, null, [[1, 3]]);
|
|
47640
|
+
})),
|
|
47641
|
+
onCancel: function onCancel() {
|
|
47642
|
+
return setShowAuthFromEmpty(false);
|
|
47643
|
+
},
|
|
47644
|
+
message: "Sign in to see your private widgets and ones granted to you."
|
|
47569
47645
|
})]
|
|
47570
47646
|
});
|
|
47571
47647
|
};
|