@redocly/theme 0.25.0-beta.1 → 0.25.0-beta.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CatalogItem } from '
|
|
2
|
+
import type { CatalogItem } from '../../types/portal/src/shared/types/catalog';
|
|
3
3
|
export declare function CatalogCard({ item }: {
|
|
4
4
|
item: CatalogItem;
|
|
5
5
|
}): JSX.Element;
|
|
6
|
-
export declare function statusToColor(status: string): "" | "
|
|
6
|
+
export declare function statusToColor(status: string): "error" | "" | "warning" | "success";
|
|
@@ -26,9 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.useCatalog = void 0;
|
|
27
27
|
const React = __importStar(require("react"));
|
|
28
28
|
const react_router_dom_1 = require("react-router-dom");
|
|
29
|
-
const telemetry_1 = require("
|
|
30
|
-
const usePageData_1 = require("
|
|
31
|
-
const utils_1 = require("
|
|
29
|
+
const telemetry_1 = require("../../mocks/telemetry");
|
|
30
|
+
const usePageData_1 = require("../../mocks/hooks/usePageData");
|
|
31
|
+
const utils_1 = require("../../utils");
|
|
32
32
|
function useCatalog(items, config) {
|
|
33
33
|
var _a;
|
|
34
34
|
const location = (0, react_router_dom_1.useLocation)();
|
|
@@ -256,8 +256,7 @@ function collectFilterOptions(items, filters) {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
const options = Object.entries(usedOptions)
|
|
260
|
-
.map(([value, count]) => ({ value, count }));
|
|
259
|
+
const options = Object.entries(usedOptions).map(([value, count]) => ({ value, count }));
|
|
261
260
|
if (!staticOptions) {
|
|
262
261
|
options.sort((a, b) => b.value.localeCompare(a.value));
|
|
263
262
|
}
|