docusaurus-plugin-openapi-docs 0.0.0-1056 → 0.0.0-1068

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/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { SidebarItemDoc } from "@docusaurus/plugin-content-docs/src/sidebars/types";
1
+ import type { SidebarItemDoc } from "@docusaurus/plugin-content-docs/lib/sidebars/types";
2
2
  import { InfoObject, OperationObject, SchemaObject, SecuritySchemeObject, TagObject } from "./openapi/types";
3
- export type { PropSidebarItemCategory, SidebarItemLink, PropSidebar, PropSidebarItem, } from "@docusaurus/plugin-content-docs-types";
3
+ export type { PropSidebarItemCategory, SidebarItemLink, PropSidebar, PropSidebarItem, } from "@docusaurus/plugin-content-docs/lib/sidebars/types";
4
4
  export interface PluginOptions {
5
5
  id?: string;
6
6
  docsPlugin?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "0.0.0-1056",
4
+ "version": "0.0.0-1068",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -65,5 +65,5 @@
65
65
  "engines": {
66
66
  "node": ">=14"
67
67
  },
68
- "gitHead": "4ff12f6d3557a3b08714f7236e978a44f0e6826b"
68
+ "gitHead": "d18835ed938d31e72d4c57d272902a3818eac708"
69
69
  }
@@ -11,7 +11,7 @@ import type { FrontMatter as DocsFrontMatter } from "@docusaurus/types";
11
11
  import type { Props as DocsProps } from "@docusaurus/types";
12
12
 
13
13
  declare module "docusaurus-plugin-openapi-docs" {
14
- import type { PropSidebars } from "@docusaurus/plugin-content-docs-types";
14
+ import type { PropSidebars } from "@docusaurus/plugin-content-docs/lib/sidebars/types";
15
15
 
16
16
  export type Options = Partial<import("./types").APIOptions>;
17
17
 
package/src/types.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  * ========================================================================== */
7
7
 
8
- import { SidebarItemDoc } from "@docusaurus/plugin-content-docs/src/sidebars/types";
8
+ import type { SidebarItemDoc } from "@docusaurus/plugin-content-docs/lib/sidebars/types";
9
9
  import Request from "postman-collection";
10
10
 
11
11
  import {
@@ -21,7 +21,7 @@ export type {
21
21
  SidebarItemLink,
22
22
  PropSidebar,
23
23
  PropSidebarItem,
24
- } from "@docusaurus/plugin-content-docs-types";
24
+ } from "@docusaurus/plugin-content-docs/lib/sidebars/types";
25
25
  export interface PluginOptions {
26
26
  id?: string;
27
27
  docsPlugin?: string;
@@ -1,42 +0,0 @@
1
- /* ============================================================================
2
- * Copyright (c) Palo Alto Networks
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- * ========================================================================== */
7
-
8
- declare module "@docusaurus/plugin-content-docs-types" {
9
- // Makes all properties visible when hovering over the type
10
- type Expand<T extends Record<string, unknown>> = { [P in keyof T]: T[P] };
11
-
12
- export type SidebarItemBase = {
13
- className?: string;
14
- customProps?: Record<string, unknown>;
15
- };
16
-
17
- export type SidebarItemLink = SidebarItemBase & {
18
- type: "link";
19
- href: string;
20
- label: string;
21
- docId: string;
22
- };
23
-
24
- type SidebarItemCategoryBase = SidebarItemBase & {
25
- type: "category";
26
- label: string;
27
- collapsed: boolean;
28
- collapsible: boolean;
29
- };
30
-
31
- export type PropSidebarItemCategory = Expand<
32
- SidebarItemCategoryBase & {
33
- items: PropSidebarItem[];
34
- }
35
- >;
36
-
37
- export type PropSidebarItem = SidebarItemLink | PropSidebarItemCategory;
38
- export type PropSidebar = PropSidebarItem[];
39
- export type PropSidebars = {
40
- [sidebarId: string]: PropSidebar;
41
- };
42
- }