docusaurus-theme-openapi-docs 0.0.0-730 → 0.0.0-733

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,5 +1,5 @@
1
1
  import React from "react";
2
- import sdk from "@paloaltonetworks/postman-collection";
2
+ import sdk from "postman-collection";
3
3
  import { CodeSample, Language } from "./code-snippets-types";
4
4
  export declare const languageSet: Language[];
5
5
  export interface Props {
@@ -60,9 +60,6 @@ const react_1 = __importStar(require("react"));
60
60
  const useDocusaurusContext_1 = __importDefault(
61
61
  require("@docusaurus/useDocusaurusContext")
62
62
  );
63
- const postman_code_generators_1 = __importDefault(
64
- require("@paloaltonetworks/postman-code-generators")
65
- );
66
63
  const ApiCodeBlock_1 = __importDefault(
67
64
  require("@theme/ApiExplorer/ApiCodeBlock")
68
65
  );
@@ -72,6 +69,9 @@ const buildPostmanRequest_1 = __importDefault(
72
69
  const CodeTabs_1 = __importDefault(require("@theme/ApiExplorer/CodeTabs"));
73
70
  const hooks_1 = require("@theme/ApiItem/hooks");
74
71
  const merge_1 = __importDefault(require("lodash/merge"));
72
+ const postman_code_generators_1 = __importDefault(
73
+ require("postman-code-generators")
74
+ );
75
75
  const languages_1 = require("./languages");
76
76
  exports.languageSet = [
77
77
  {
@@ -58,9 +58,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
58
58
  // @ts-nocheck
59
59
  const react_1 = __importStar(require("react"));
60
60
  const internal_1 = require("@docusaurus/theme-common/internal");
61
- const postman_collection_1 = __importDefault(
62
- require("@paloaltonetworks/postman-collection")
63
- );
64
61
  const Accept_1 = __importDefault(require("@theme/ApiExplorer/Accept"));
65
62
  const Authorization_1 = __importDefault(
66
63
  require("@theme/ApiExplorer/Authorization")
@@ -78,6 +75,7 @@ const ParamOptions_1 = __importDefault(
78
75
  const slice_1 = require("@theme/ApiExplorer/Response/slice");
79
76
  const Server_1 = __importDefault(require("@theme/ApiExplorer/Server"));
80
77
  const hooks_1 = require("@theme/ApiItem/hooks");
78
+ const postman_collection_1 = __importDefault(require("postman-collection"));
81
79
  const react_hook_form_1 = require("react-hook-form");
82
80
  const makeRequest_1 = __importDefault(require("./makeRequest"));
83
81
  function Request({ item }) {
@@ -1,4 +1,4 @@
1
- import sdk from "@paloaltonetworks/postman-collection";
2
1
  import { Body } from "@theme/ApiExplorer/Body/slice";
2
+ import sdk from "postman-collection";
3
3
  declare function makeRequest(request: sdk.Request, proxy: string | undefined, _body: Body): Promise<any>;
4
4
  export default makeRequest;
@@ -1,7 +1,7 @@
1
- import sdk from "@paloaltonetworks/postman-collection";
2
1
  import { AuthState } from "@theme/ApiExplorer/Authorization/slice";
3
2
  import { Body } from "@theme/ApiExplorer/Body/slice";
4
3
  import { ParameterObject, ServerObject } from "docusaurus-plugin-openapi-docs/src/openapi/types";
4
+ import sdk from "postman-collection";
5
5
  type Param = {
6
6
  value?: string | string[];
7
7
  } & ParameterObject;
@@ -11,10 +11,8 @@ var __importDefault =
11
11
  return mod && mod.__esModule ? mod : { default: mod };
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- const postman_collection_1 = __importDefault(
15
- require("@paloaltonetworks/postman-collection")
16
- );
17
14
  const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
15
+ const postman_collection_1 = __importDefault(require("postman-collection"));
18
16
  function setQueryParams(postman, queryParams) {
19
17
  postman.url.query.clear();
20
18
  const qp = queryParams
@@ -12,14 +12,12 @@ var __importDefault =
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  const react_1 = __importDefault(require("react"));
15
- const postman_collection_1 = __importDefault(
16
- require("@paloaltonetworks/postman-collection")
17
- );
18
15
  const CodeSnippets_1 = __importDefault(
19
16
  require("@theme/ApiExplorer/CodeSnippets")
20
17
  );
21
18
  const Request_1 = __importDefault(require("@theme/ApiExplorer/Request"));
22
19
  const Response_1 = __importDefault(require("@theme/ApiExplorer/Response"));
20
+ const postman_collection_1 = __importDefault(require("postman-collection"));
23
21
  const SecuritySchemes_1 = __importDefault(require("./SecuritySchemes"));
24
22
  function ApiExplorer({ item, infoPath }) {
25
23
  const postman = new postman_collection_1.default.Request(item.postman);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-theme-openapi-docs",
3
3
  "description": "OpenAPI theme for Docusaurus.",
4
- "version": "0.0.0-730",
4
+ "version": "0.0.0-733",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -37,17 +37,17 @@
37
37
  "dependencies": {
38
38
  "@docusaurus/theme-common": ">=2.4.1 <=2.4.3",
39
39
  "@hookform/error-message": "^2.0.1",
40
- "@paloaltonetworks/postman-code-generators": "1.1.15-patch.2",
41
- "@paloaltonetworks/postman-collection": "^4.1.0",
42
40
  "@reduxjs/toolkit": "^1.7.1",
43
41
  "clsx": "^1.1.1",
44
42
  "copy-text-to-clipboard": "^3.1.0",
45
43
  "crypto-js": "^4.1.1",
46
- "docusaurus-plugin-openapi-docs": "0.0.0-730",
44
+ "docusaurus-plugin-openapi-docs": "0.0.0-733",
47
45
  "docusaurus-plugin-sass": "^0.2.3",
48
46
  "file-saver": "^2.0.5",
49
47
  "lodash": "^4.17.20",
50
48
  "node-polyfill-webpack-plugin": "^2.0.1",
49
+ "postman-code-generators": "^1.10.1",
50
+ "postman-collection": "^4.4.0",
51
51
  "prism-react-renderer": "^1.3.5",
52
52
  "react-hook-form": "^7.43.8",
53
53
  "react-live": "^4.0.0",
@@ -68,5 +68,5 @@
68
68
  "engines": {
69
69
  "node": ">=14"
70
70
  },
71
- "gitHead": "1d2eebcb4ad197684fb266157e22188b1b57c288"
71
+ "gitHead": "df9ca2a519f0b1ad22acc12dfe2b085ac4797b1d"
72
72
  }
@@ -6,4 +6,4 @@
6
6
  * ========================================================================== */
7
7
 
8
8
  // TODO: Remove this when https://github.com/facebook/docusaurus/issues/6087 is resolved.
9
- declare module "@paloaltonetworks/postman-code-generators";
9
+ declare module "postman-code-generators";
@@ -8,13 +8,13 @@
8
8
  import React, { useState, useEffect } from "react";
9
9
 
10
10
  import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
11
- import codegen from "@paloaltonetworks/postman-code-generators";
12
- import sdk from "@paloaltonetworks/postman-collection";
13
11
  import ApiCodeBlock from "@theme/ApiExplorer/ApiCodeBlock";
14
12
  import buildPostmanRequest from "@theme/ApiExplorer/buildPostmanRequest";
15
13
  import CodeTabs from "@theme/ApiExplorer/CodeTabs";
16
14
  import { useTypedSelector } from "@theme/ApiItem/hooks";
17
15
  import merge from "lodash/merge";
16
+ import codegen from "postman-code-generators";
17
+ import sdk from "postman-collection";
18
18
 
19
19
  import { CodeSample, Language } from "./code-snippets-types";
20
20
  import {
@@ -9,7 +9,6 @@
9
9
  import React, { useState } from "react";
10
10
 
11
11
  import { useDoc } from "@docusaurus/theme-common/internal";
12
- import sdk from "@paloaltonetworks/postman-collection";
13
12
  import Accept from "@theme/ApiExplorer/Accept";
14
13
  import Authorization from "@theme/ApiExplorer/Authorization";
15
14
  import Body from "@theme/ApiExplorer/Body";
@@ -27,6 +26,7 @@ import Server from "@theme/ApiExplorer/Server";
27
26
  import { useTypedDispatch, useTypedSelector } from "@theme/ApiItem/hooks";
28
27
  import { ParameterObject } from "docusaurus-plugin-openapi-docs/src/openapi/types";
29
28
  import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
29
+ import sdk from "postman-collection";
30
30
  import { FormProvider, useForm } from "react-hook-form";
31
31
 
32
32
  import makeRequest from "./makeRequest";
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  * ========================================================================== */
7
7
 
8
- import sdk from "@paloaltonetworks/postman-collection";
9
8
  import { Body } from "@theme/ApiExplorer/Body/slice";
9
+ import sdk from "postman-collection";
10
10
 
11
11
  function fetchWithtimeout(
12
12
  url: string,
@@ -5,7 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  * ========================================================================== */
7
7
 
8
- import sdk from "@paloaltonetworks/postman-collection";
9
8
  import { AuthState, Scheme } from "@theme/ApiExplorer/Authorization/slice";
10
9
  import { Body, Content } from "@theme/ApiExplorer/Body/slice";
11
10
  import {
@@ -13,6 +12,7 @@ import {
13
12
  ServerObject,
14
13
  } from "docusaurus-plugin-openapi-docs/src/openapi/types";
15
14
  import cloneDeep from "lodash/cloneDeep";
15
+ import sdk from "postman-collection";
16
16
 
17
17
  type Param = {
18
18
  value?: string | string[];
@@ -7,11 +7,11 @@
7
7
 
8
8
  import React from "react";
9
9
 
10
- import sdk from "@paloaltonetworks/postman-collection";
11
10
  import CodeSnippets from "@theme/ApiExplorer/CodeSnippets";
12
11
  import Request from "@theme/ApiExplorer/Request";
13
12
  import Response from "@theme/ApiExplorer/Response";
14
13
  import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
14
+ import sdk from "postman-collection";
15
15
 
16
16
  import SecuritySchemes from "./SecuritySchemes";
17
17
 
@@ -5,6 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  * ========================================================================== */
7
7
 
8
- declare module "@paloaltonetworks/postman-collection" {
8
+ declare module "postman-collection" {
9
9
  export = Request.sdk;
10
10
  }