@trops/dash-core 0.1.374 → 0.1.375
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/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.esm.js
CHANGED
|
@@ -4982,11 +4982,32 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
4982
4982
|
}), /*#__PURE__*/jsx(RegistryAuthModal, {
|
|
4983
4983
|
isOpen: showAuthFromEmpty,
|
|
4984
4984
|
setIsOpen: setShowAuthFromEmpty,
|
|
4985
|
-
onAuthenticated: function
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4985
|
+
onAuthenticated: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
4986
|
+
var _window$mainApi3, _window$mainApi3$fetc;
|
|
4987
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
4988
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
4989
|
+
case 0:
|
|
4990
|
+
setShowAuthFromEmpty(false);
|
|
4991
|
+
setRegistryAuthed(true);
|
|
4992
|
+
// Force-refresh the cached registry index so the now-
|
|
4993
|
+
// authenticated user immediately sees their private packages.
|
|
4994
|
+
_context3.prev = 1;
|
|
4995
|
+
_context3.next = 2;
|
|
4996
|
+
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);
|
|
4997
|
+
case 2:
|
|
4998
|
+
_context3.next = 4;
|
|
4999
|
+
break;
|
|
5000
|
+
case 3:
|
|
5001
|
+
_context3.prev = 3;
|
|
5002
|
+
_context3["catch"](1);
|
|
5003
|
+
case 4:
|
|
5004
|
+
search(searchQuery);
|
|
5005
|
+
case 5:
|
|
5006
|
+
case "end":
|
|
5007
|
+
return _context3.stop();
|
|
5008
|
+
}
|
|
5009
|
+
}, _callee3, null, [[1, 3]]);
|
|
5010
|
+
})),
|
|
4990
5011
|
onCancel: function onCancel() {
|
|
4991
5012
|
return setShowAuthFromEmpty(false);
|
|
4992
5013
|
},
|
|
@@ -38548,11 +38569,32 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
|
|
|
38548
38569
|
}), /*#__PURE__*/jsx(RegistryAuthModal, {
|
|
38549
38570
|
isOpen: showAuthFromEmpty,
|
|
38550
38571
|
setIsOpen: setShowAuthFromEmpty,
|
|
38551
|
-
onAuthenticated: function
|
|
38552
|
-
|
|
38553
|
-
|
|
38554
|
-
|
|
38555
|
-
|
|
38572
|
+
onAuthenticated: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
38573
|
+
var _window$mainApi3, _window$mainApi3$fetc;
|
|
38574
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
38575
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
38576
|
+
case 0:
|
|
38577
|
+
setShowAuthFromEmpty(false);
|
|
38578
|
+
setRegistryAuthed(true);
|
|
38579
|
+
// Force-refresh the cached registry index so the now-
|
|
38580
|
+
// authenticated user immediately sees their private packages.
|
|
38581
|
+
_context3.prev = 1;
|
|
38582
|
+
_context3.next = 2;
|
|
38583
|
+
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);
|
|
38584
|
+
case 2:
|
|
38585
|
+
_context3.next = 4;
|
|
38586
|
+
break;
|
|
38587
|
+
case 3:
|
|
38588
|
+
_context3.prev = 3;
|
|
38589
|
+
_context3["catch"](1);
|
|
38590
|
+
case 4:
|
|
38591
|
+
search(searchQuery);
|
|
38592
|
+
case 5:
|
|
38593
|
+
case "end":
|
|
38594
|
+
return _context3.stop();
|
|
38595
|
+
}
|
|
38596
|
+
}, _callee3, null, [[1, 3]]);
|
|
38597
|
+
})),
|
|
38556
38598
|
onCancel: function onCancel() {
|
|
38557
38599
|
return setShowAuthFromEmpty(false);
|
|
38558
38600
|
},
|
|
@@ -47548,6 +47590,40 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
47548
47590
|
onCancel: function onCancel() {
|
|
47549
47591
|
return setToolConflictWarning(null);
|
|
47550
47592
|
}
|
|
47593
|
+
}), /*#__PURE__*/jsx(RegistryAuthModal, {
|
|
47594
|
+
isOpen: showAuthFromEmpty,
|
|
47595
|
+
setIsOpen: setShowAuthFromEmpty,
|
|
47596
|
+
onAuthenticated: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
47597
|
+
var _window$mainApi2, _window$mainApi2$fetc;
|
|
47598
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
47599
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
47600
|
+
case 0:
|
|
47601
|
+
setShowAuthFromEmpty(false);
|
|
47602
|
+
setRegistryAuthed(true);
|
|
47603
|
+
// Force-refresh the cached registry index so the now-
|
|
47604
|
+
// authenticated user immediately sees their private packages
|
|
47605
|
+
// (the previous anon-cache fetch otherwise lingers for 5 min).
|
|
47606
|
+
_context3.prev = 1;
|
|
47607
|
+
_context3.next = 2;
|
|
47608
|
+
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);
|
|
47609
|
+
case 2:
|
|
47610
|
+
_context3.next = 4;
|
|
47611
|
+
break;
|
|
47612
|
+
case 3:
|
|
47613
|
+
_context3.prev = 3;
|
|
47614
|
+
_context3["catch"](1);
|
|
47615
|
+
case 4:
|
|
47616
|
+
retry();
|
|
47617
|
+
case 5:
|
|
47618
|
+
case "end":
|
|
47619
|
+
return _context3.stop();
|
|
47620
|
+
}
|
|
47621
|
+
}, _callee3, null, [[1, 3]]);
|
|
47622
|
+
})),
|
|
47623
|
+
onCancel: function onCancel() {
|
|
47624
|
+
return setShowAuthFromEmpty(false);
|
|
47625
|
+
},
|
|
47626
|
+
message: "Sign in to see your private widgets and ones granted to you."
|
|
47551
47627
|
})]
|
|
47552
47628
|
});
|
|
47553
47629
|
};
|