@redocly/theme 0.9.0-beta.4 → 0.9.0-beta.5
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/lib/ReferenceDocs/TryItSecurity.js +2 -2
- package/lib/mocks/hooks/index.d.ts +1 -1
- package/lib/mocks/hooks/index.js +3 -1
- package/lib/mocks/useGlobalData.js +1 -0
- package/package.json +1 -1
- package/src/ReferenceDocs/TryItSecurity.tsx +1 -1
- package/src/mocks/hooks/index.ts +2 -0
- package/src/mocks/useGlobalData.tsx +1 -0
|
@@ -5,10 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TryItSecurity = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
8
|
+
const hooks_1 = require("../mocks/hooks");
|
|
9
9
|
const DevOnboardingTryItSecurity_1 = require("./DevOnboardingTryItSecurity");
|
|
10
10
|
function TryItSecurity(props) {
|
|
11
|
-
const { hasDeveloperOnboarding } = (0,
|
|
11
|
+
const { hasDeveloperOnboarding } = (0, hooks_1.useGlobalData)() || {};
|
|
12
12
|
return hasDeveloperOnboarding && props.apiId ? react_1.default.createElement(DevOnboardingTryItSecurity_1.DevOnboardingTryItSecurity, Object.assign({}, props)) : null;
|
|
13
13
|
}
|
|
14
14
|
exports.TryItSecurity = TryItSecurity;
|
|
@@ -13,4 +13,4 @@ export declare function useSidebarSiblingsData(): {
|
|
|
13
13
|
};
|
|
14
14
|
export declare function usePageSharedData<T = unknown>(_id: string): T;
|
|
15
15
|
export declare function useCatalog(_items: ResolvedNavItem[], _config: CatalogConfig): FilteredCatalog;
|
|
16
|
-
export {};
|
|
16
|
+
export { useGlobalData } from '../useGlobalData';
|
package/lib/mocks/hooks/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useCatalog = exports.usePageSharedData = exports.useSidebarSiblingsData = exports.useThemeConfig = void 0;
|
|
3
|
+
exports.useGlobalData = exports.useCatalog = exports.usePageSharedData = exports.useSidebarSiblingsData = exports.useThemeConfig = void 0;
|
|
4
4
|
function useThemeConfig() {
|
|
5
5
|
return {
|
|
6
6
|
search: {
|
|
@@ -69,4 +69,6 @@ function useCatalog(_items, _config) {
|
|
|
69
69
|
throw new Error('Mock not implemented yet.');
|
|
70
70
|
}
|
|
71
71
|
exports.useCatalog = useCatalog;
|
|
72
|
+
var useGlobalData_1 = require("../useGlobalData");
|
|
73
|
+
Object.defineProperty(exports, "useGlobalData", { enumerable: true, get: function () { return useGlobalData_1.useGlobalData; } });
|
|
72
74
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/src/mocks/hooks/index.ts
CHANGED
|
@@ -74,3 +74,5 @@ export function usePageSharedData<T = unknown>(_id: string): T {
|
|
|
74
74
|
export function useCatalog(_items: ResolvedNavItem[], _config: CatalogConfig): FilteredCatalog {
|
|
75
75
|
throw new Error('Mock not implemented yet.');
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
export { useGlobalData } from '../useGlobalData';
|