@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.js CHANGED
@@ -4733,7 +4733,10 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
4733
4733
  _useState2 = _slicedToArray(_useState, 2),
4734
4734
  packages = _useState2[0],
4735
4735
  setPackages = _useState2[1];
4736
- var _useState3 = React.useState(false),
4736
+ // Start in the loading state so the empty UI doesn't flash while the
4737
+ // initial debounce is pending — otherwise the sign-in nudge appears
4738
+ // briefly then disappears as soon as the registry returns results.
4739
+ var _useState3 = React.useState(true),
4737
4740
  _useState4 = _slicedToArray(_useState3, 2),
4738
4741
  isLoading = _useState4[0],
4739
4742
  setIsLoading = _useState4[1];
@@ -6244,7 +6247,10 @@ var useRegistrySearch = function useRegistrySearch() {
6244
6247
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
6245
6248
  _ref$filterByCapabili = _ref.filterByCapabilities,
6246
6249
  filterByCapabilities = _ref$filterByCapabili === void 0 ? true : _ref$filterByCapabili;
6247
- var _useState = React.useState(false),
6250
+ // Start in the loading state so consumers don't briefly render an
6251
+ // empty-list state during the initial debounce window before the first
6252
+ // search fires.
6253
+ var _useState = React.useState(true),
6248
6254
  _useState2 = _slicedToArray(_useState, 2),
6249
6255
  isLoading = _useState2[0],
6250
6256
  setIsLoading = _useState2[1];
@@ -38302,7 +38308,9 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
38302
38308
  _useState2 = _slicedToArray(_useState, 2),
38303
38309
  packages = _useState2[0],
38304
38310
  setPackages = _useState2[1];
38305
- var _useState3 = React.useState(false),
38311
+ // Start loading so the empty state with sign-in nudge doesn't flash
38312
+ // before the first fetch resolves.
38313
+ var _useState3 = React.useState(true),
38306
38314
  _useState4 = _slicedToArray(_useState3, 2),
38307
38315
  isLoading = _useState4[0],
38308
38316
  setIsLoading = _useState4[1];