@trops/dash-core 0.1.372 → 0.1.373
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 +11 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4715,7 +4715,10 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
4715
4715
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4716
4716
|
packages = _useState2[0],
|
|
4717
4717
|
setPackages = _useState2[1];
|
|
4718
|
-
|
|
4718
|
+
// Start in the loading state so the empty UI doesn't flash while the
|
|
4719
|
+
// initial debounce is pending — otherwise the sign-in nudge appears
|
|
4720
|
+
// briefly then disappears as soon as the registry returns results.
|
|
4721
|
+
var _useState3 = useState(true),
|
|
4719
4722
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4720
4723
|
isLoading = _useState4[0],
|
|
4721
4724
|
setIsLoading = _useState4[1];
|
|
@@ -6226,7 +6229,10 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6226
6229
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
6227
6230
|
_ref$filterByCapabili = _ref.filterByCapabilities,
|
|
6228
6231
|
filterByCapabilities = _ref$filterByCapabili === void 0 ? true : _ref$filterByCapabili;
|
|
6229
|
-
|
|
6232
|
+
// Start in the loading state so consumers don't briefly render an
|
|
6233
|
+
// empty-list state during the initial debounce window before the first
|
|
6234
|
+
// search fires.
|
|
6235
|
+
var _useState = useState(true),
|
|
6230
6236
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6231
6237
|
isLoading = _useState2[0],
|
|
6232
6238
|
setIsLoading = _useState2[1];
|
|
@@ -38284,7 +38290,9 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
|
|
|
38284
38290
|
_useState2 = _slicedToArray(_useState, 2),
|
|
38285
38291
|
packages = _useState2[0],
|
|
38286
38292
|
setPackages = _useState2[1];
|
|
38287
|
-
|
|
38293
|
+
// Start loading so the empty state with sign-in nudge doesn't flash
|
|
38294
|
+
// before the first fetch resolves.
|
|
38295
|
+
var _useState3 = useState(true),
|
|
38288
38296
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
38289
38297
|
isLoading = _useState4[0],
|
|
38290
38298
|
setIsLoading = _useState4[1];
|