@redocly/openapi-docs 3.0.0-alpha.79 → 3.0.0-alpha.81

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.
Files changed (78) hide show
  1. package/dist/console.redocly-openapi-docs.min.js +109 -108
  2. package/dist/oauth2-redirect.js +5 -5
  3. package/dist/redocly-openapi-docs.min.js +1188 -1181
  4. package/lib/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
  5. package/lib/components/Endpoint/ServerList.js +1 -1
  6. package/lib/components/Fields/FieldDetails.js +1 -1
  7. package/lib/components/SeeMore/SeeMore.js +1 -1
  8. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +2 -1
  9. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +2 -1
  10. package/lib/components/Tabs/Tab.d.ts +2 -2
  11. package/lib/components/Tabs/TabList.d.ts +2 -2
  12. package/lib/components/Tabs/TabPanel.d.ts +2 -2
  13. package/lib/components/common/CheckboxList.js +1 -1
  14. package/lib/components/common/TextField.js +1 -1
  15. package/lib/components/common/perfect-scrollbar.d.ts +1 -1
  16. package/lib/components/rightPanel/Console/Console.js +1 -1
  17. package/lib/components/rightPanel/RequestBody/Body.js +1 -1
  18. package/lib/hooks/useRouter.d.ts +3 -1
  19. package/lib/services/code-samples/generator.js +1 -1
  20. package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +1 -1
  21. package/lib/services/code-samples/httpsnippet/helpers/constants.d.ts +1 -0
  22. package/lib/services/code-samples/httpsnippet/helpers/constants.js +1 -1
  23. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +2 -0
  24. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +1 -1
  25. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  26. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  27. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  28. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  29. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  30. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +9 -0
  31. package/lib/services/code-samples/httpsnippet/targets/index.js +1 -1
  32. package/lib/services/code-samples/types.d.ts +5 -2
  33. package/lib/setupTests.d.ts +1 -2
  34. package/lib/setupTests.js +1 -1
  35. package/lib/standalone.d.ts +1 -1
  36. package/lib/standalone.js +1 -1
  37. package/lib/utils/helpers.d.ts +2 -0
  38. package/lib/utils/helpers.js +1 -1
  39. package/lib/utils/typeGuards.d.ts +1 -0
  40. package/lib/utils/typeGuards.js +1 -1
  41. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
  42. package/lib-esm/components/Endpoint/ServerList.js +1 -1
  43. package/lib-esm/components/Fields/FieldDetails.js +1 -1
  44. package/lib-esm/components/SeeMore/SeeMore.js +1 -1
  45. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +2 -1
  46. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +2 -1
  47. package/lib-esm/components/Tabs/Tab.d.ts +2 -2
  48. package/lib-esm/components/Tabs/TabList.d.ts +2 -2
  49. package/lib-esm/components/Tabs/TabPanel.d.ts +2 -2
  50. package/lib-esm/components/common/CheckboxList.js +1 -1
  51. package/lib-esm/components/common/TextField.js +1 -1
  52. package/lib-esm/components/common/perfect-scrollbar.d.ts +1 -1
  53. package/lib-esm/components/rightPanel/Console/Console.js +1 -1
  54. package/lib-esm/components/rightPanel/RequestBody/Body.js +1 -1
  55. package/lib-esm/hooks/useRouter.d.ts +3 -1
  56. package/lib-esm/services/code-samples/generator.js +1 -1
  57. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +1 -1
  58. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +1 -0
  59. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +1 -1
  60. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +2 -0
  61. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +1 -1
  62. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  63. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  64. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  65. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  66. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  67. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +9 -0
  68. package/lib-esm/services/code-samples/httpsnippet/targets/index.js +1 -1
  69. package/lib-esm/services/code-samples/types.d.ts +5 -2
  70. package/lib-esm/setupTests.d.ts +1 -2
  71. package/lib-esm/setupTests.js +1 -1
  72. package/lib-esm/standalone.d.ts +1 -1
  73. package/lib-esm/standalone.js +1 -1
  74. package/lib-esm/utils/helpers.d.ts +2 -0
  75. package/lib-esm/utils/helpers.js +1 -1
  76. package/lib-esm/utils/typeGuards.d.ts +1 -0
  77. package/lib-esm/utils/typeGuards.js +1 -1
  78. package/package.json +18 -22
@@ -1,2 +1,2 @@
1
- import"core-js/es/array/find-index";import"core-js/es/array/find";import"core-js/es/array/includes";import"core-js/es/map";import"core-js/es/number/is-integer";import"core-js/es/object/assign";import"core-js/es/object/entries";import"core-js/es/object/is";import"core-js/es/object/values";import"core-js/es/promise";import"core-js/es/string/ends-with";import"core-js/es/string/starts-with";import"core-js/es/symbol";import"unfetch/polyfill/index";import"url-polyfill";import{dirname}from"path";import React from"react";import{hydrate as hydrateComponent,render}from"react-dom";import{LayoutVariant}from"@redocly/theme";import{writeAtom,readAtom}from"./jotai/nexus";import{querySelector,IS_BROWSER,getJsUrl}from"./utils";import{RedoclyOpenAPIDocs,RedoclyOpenAPIDocsStandalone}from"./components";import{RedoclyOpenAPIDocsMultiStandalone}from"./components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone";import{appLocalStore,appSessionStore}from"./jotai/app";export{setSecurityDetails,setParameterValue,setSecurityDetailsVariants}from"./utils";export function toggleLayout(e=LayoutVariant.THREE_PANEL){const t=readAtom(appLocalStore);writeAtom(appLocalStore,Object.assign(Object.assign({},t),{layout:e}))}export function toggleRightPanel(e){const t=readAtom(appSessionStore);writeAtom(appSessionStore,Object.assign(Object.assign({},t),{showRightPanelToggle:Boolean(e)}))}const url=getJsUrl(),__dirname=url?dirname(url)+"/":"";function attributesMap(e){const t={},o=e.attributes;for(let e=0;e<o.length;e++){const r=o[e];t[r.name]=r.value}return t}function parseOptionsFromElement(e){const t=attributesMap(e),o={};for(const e in t){o[e.replace(/-(.)/g,((e,t)=>t.toUpperCase()))]=t[e]}return o}export function hydrate(e,t=document.querySelector("redoc")){hydrateComponent(React.createElement(RedoclyOpenAPIDocs,{store:e}),t)}export function init(e,t={},o=querySelector("redoc"),r){if(null===o)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let n,i;"object"==typeof e&&"versions"in e?render(React.createElement(RedoclyOpenAPIDocsMultiStandalone,{definitions:e,options:Object.assign(Object.assign({},t),parseOptionsFromElement(o))},["Loading..."]),o,r):("string"==typeof e?n=e:"object"==typeof e&&(i=e),render(React.createElement(RedoclyOpenAPIDocsStandalone,{definition:i,definitionUrl:n,options:Object.assign(Object.assign({},t),parseOptionsFromElement(o))},["Loading..."]),o,r))}export function setPublicPath(e){__webpack_public_path__=e}export const version=__REDOCLY_API_REFERENCE_VERSION__;export const revision=__REDOCLY_API_REFERENCE_REVISION__;function autoInit(){const e=querySelector("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&init(t,{},e)}IS_BROWSER&&setPublicPath(__dirname),autoInit();
1
+ import"core-js/es/array/find-index";import"core-js/es/array/find";import"core-js/es/array/includes";import"core-js/es/map";import"core-js/es/number/is-integer";import"core-js/es/object/assign";import"core-js/es/object/entries";import"core-js/es/object/is";import"core-js/es/object/values";import"core-js/es/promise";import"core-js/es/string/ends-with";import"core-js/es/string/starts-with";import"core-js/es/symbol";import"unfetch/polyfill/index";import"url-polyfill";import{dirname}from"path";import React from"react";import{createRoot,hydrateRoot}from"react-dom/client";import{LayoutVariant}from"@redocly/theme";import{writeAtom,readAtom}from"./jotai/nexus";import{querySelector,IS_BROWSER,getJsUrl}from"./utils";import{RedoclyOpenAPIDocs,RedoclyOpenAPIDocsStandalone}from"./components";import{RedoclyOpenAPIDocsMultiStandalone}from"./components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone";import{appLocalStore,appSessionStore}from"./jotai/app";export{setSecurityDetails,setParameterValue,setSecurityDetailsVariants}from"./utils";export function toggleLayout(e=LayoutVariant.THREE_PANEL){const t=readAtom(appLocalStore);writeAtom(appLocalStore,Object.assign(Object.assign({},t),{layout:e}))}export function toggleRightPanel(e){const t=readAtom(appSessionStore);writeAtom(appSessionStore,Object.assign(Object.assign({},t),{showRightPanelToggle:Boolean(e)}))}const url=getJsUrl(),__dirname=url?dirname(url)+"/":"";function attributesMap(e){const t={},o=e.attributes;for(let e=0;e<o.length;e++){const r=o[e];t[r.name]=r.value}return t}function parseOptionsFromElement(e){const t=attributesMap(e),o={};for(const e in t){o[e.replace(/-(.)/g,((e,t)=>t.toUpperCase()))]=t[e]}return o}export function hydrate(e,t=document.querySelector("redoc")){hydrateRoot(t,React.createElement(RedoclyOpenAPIDocs,{store:e}))}export function init(e,t={},o=querySelector("redoc")){if(null===o)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let r,n;if("object"==typeof e&&"versions"in e){return void createRoot(o).render(React.createElement(RedoclyOpenAPIDocsMultiStandalone,{definitions:e,options:Object.assign(Object.assign({},t),parseOptionsFromElement(o))},["Loading..."]))}"string"==typeof e?r=e:"object"==typeof e&&(n=e);createRoot(o).render(React.createElement(RedoclyOpenAPIDocsStandalone,{definition:n,definitionUrl:r,options:Object.assign(Object.assign({},t),parseOptionsFromElement(o))},["Loading..."]))}export function setPublicPath(e){__webpack_public_path__=e}export const version=__REDOCLY_API_REFERENCE_VERSION__;export const revision=__REDOCLY_API_REFERENCE_REVISION__;function autoInit(){const e=querySelector("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&init(t,{},e)}IS_BROWSER&&setPublicPath(__dirname),autoInit();
2
2
  //# sourceMappingURL=standalone.js.map
@@ -45,3 +45,5 @@ export declare function getWindowReferenceOptions<T>(option: string): T | null;
45
45
  export declare function getJsUrl(): string;
46
46
  export declare const normalizeText: (text?: string | GenericObject) => string;
47
47
  export declare const getValueFromMdParsedExtension: (item: GenericObject, key: 'description' | 'summary' | 'x-summary' | 'x-enumDescriptions') => any;
48
+ export declare function isLastInArray(arr: Array<unknown>, index: number): boolean;
49
+ export declare function isLastProperty(obj: Object, key: string): boolean;
@@ -1,2 +1,2 @@
1
- import{format,parse}from"url";import{ZERO_BREAKPOINT}from"./media-css";import{isNamedDefinition}from"./openapi";import{JsonPointer}from"./JsonPointer";import{IS_BROWSER}from"./dom";import{isString}from"./typeGuards";export function mapWithLast(e,t){const r=[];for(let n=0;n<e.length-1;n++)r.push(t(e[n],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}export function mapValues(e,t){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=t(e[n],n,e));return r}export function flattenByProp(e,t){const r=[],n=e=>{for(const o of e)r.push(o),o[t]&&n(o[t])};return n(e),r}export function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}export function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}export function appendToMdHeading(e,t,r){const n=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),o=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(n.test(e))return e.replace(o,`$1\n\n${r}\n$4`);{const n=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${n}# ${t}\n\n${r}`}}export const mergeObjects=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:(isMergeableObject(e)&&isMergeableObject(r)&&Object.keys(r).forEach((t=>{isMergeableObject(r[t])?(e[t]||(e[t]={}),["string","number"].includes(typeof e[t])&&(r[t][ZERO_BREAKPOINT]||0===r[t][ZERO_BREAKPOINT]||console.warn(`Theme resolver: using default value of "${e[t]}" for "${t}". This is not recommended. Prefer adding default value by providing "${ZERO_BREAKPOINT}" property to ${JSON.stringify(r[t])}.`),e[t]={[ZERO_BREAKPOINT]:e[t]}),mergeObjects(e[t],r[t])):e[t]=r[t]})),mergeObjects(e,...t))};export const isObject=e=>null!==e&&"object"==typeof e;export const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>isObject(e)));export const deleteEmptyArrayItem=e=>e.filter((e=>!!e));export const isMergeableObject=e=>isObject(e)&&!Array.isArray(e);export function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}export function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:n}=parse(e);r=`${n||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const n=parse(e);r=format(Object.assign(Object.assign({},n),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}export function getBasePath(e){try{return parseURL(e).pathname}catch(t){return e}}export function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}export function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}export function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}export function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&amp;/g,"&").replace(/&quot;/g,'"')}export function sanitizeItemId(e){return e&&e.replace(/#/g,"_")}export function useSchemaTitle(e,t){return t||isNamedDefinition(e)&&JsonPointer.baseName(e)||""}export function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}export function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}export const dottedString=joinStringFactory(".");export function getWindowReferenceOptions(e){var t;return IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}export function getJsUrl(){var e;if(!IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}export const normalizeText=e=>isString(e)?e:null==e?void 0:e.raw;export const getValueFromMdParsedExtension=(e,t)=>{const r=e[`x-parsed-md-${t}`]||e[t];if("x-enumDescriptions"!==t)return r;let n={};for(const e in r)e.startsWith("x-parsed-md")||(n[e]=r[`x-parsed-md-${e}`]||r[e]);return Object.keys(n).length?n:r};
1
+ import{format,parse}from"url";import{ZERO_BREAKPOINT}from"./media-css";import{isNamedDefinition}from"./openapi";import{JsonPointer}from"./JsonPointer";import{IS_BROWSER}from"./dom";import{isString}from"./typeGuards";export function mapWithLast(e,t){const r=[];for(let n=0;n<e.length-1;n++)r.push(t(e[n],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}export function mapValues(e,t){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=t(e[n],n,e));return r}export function flattenByProp(e,t){const r=[],n=e=>{for(const o of e)r.push(o),o[t]&&n(o[t])};return n(e),r}export function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}export function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}export function appendToMdHeading(e,t,r){const n=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),o=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(n.test(e))return e.replace(o,`$1\n\n${r}\n$4`);{const n=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${n}# ${t}\n\n${r}`}}export const mergeObjects=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:(isMergeableObject(e)&&isMergeableObject(r)&&Object.keys(r).forEach((t=>{isMergeableObject(r[t])?(e[t]||(e[t]={}),["string","number"].includes(typeof e[t])&&(r[t][ZERO_BREAKPOINT]||0===r[t][ZERO_BREAKPOINT]||console.warn(`Theme resolver: using default value of "${e[t]}" for "${t}". This is not recommended. Prefer adding default value by providing "${ZERO_BREAKPOINT}" property to ${JSON.stringify(r[t])}.`),e[t]={[ZERO_BREAKPOINT]:e[t]}),mergeObjects(e[t],r[t])):e[t]=r[t]})),mergeObjects(e,...t))};export const isObject=e=>null!==e&&"object"==typeof e;export const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>isObject(e)));export const deleteEmptyArrayItem=e=>e.filter((e=>!!e));export const isMergeableObject=e=>isObject(e)&&!Array.isArray(e);export function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}export function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:n}=parse(e);r=`${n||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const n=parse(e);r=format(Object.assign(Object.assign({},n),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}export function getBasePath(e){try{return parseURL(e).pathname}catch(t){return e}}export function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}export function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}export function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}export function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&amp;/g,"&").replace(/&quot;/g,'"')}export function sanitizeItemId(e){return e&&e.replace(/#/g,"_")}export function useSchemaTitle(e,t){return t||isNamedDefinition(e)&&JsonPointer.baseName(e)||""}export function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}export function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}export const dottedString=joinStringFactory(".");export function getWindowReferenceOptions(e){var t;return IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}export function getJsUrl(){var e;if(!IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}export const normalizeText=e=>isString(e)?e:null==e?void 0:e.raw;export const getValueFromMdParsedExtension=(e,t)=>{const r=e[`x-parsed-md-${t}`]||e[t];if("x-enumDescriptions"!==t)return r;let n={};for(const e in r)e.startsWith("x-parsed-md")||(n[e]=r[`x-parsed-md-${e}`]||r[e]);return Object.keys(n).length?n:r};export function isLastInArray(e,t){return t===e.length-1}export function isLastProperty(e,t){const r=Object.keys(e);return r.indexOf(t)===r.length-1}
2
2
  //# sourceMappingURL=helpers.js.map
@@ -2,3 +2,4 @@ export declare function isUndefined<T>(value: T | undefined): value is undefined
2
2
  export declare function isNull<T>(value: T | null): value is null;
3
3
  export declare function isString<T>(value: T | string): value is string;
4
4
  export declare function isNotNull<T>(value: T): value is NonNullable<T>;
5
+ export declare function checkIfIsObject(item: unknown): item is Object;
@@ -1,2 +1,2 @@
1
- export function isUndefined(n){return void 0===n}export function isNull(n){return null===n}export function isString(n){return"string"==typeof n}export function isNotNull(n){return!isNull(n)}
1
+ export function isUndefined(t){return void 0===t}export function isNull(t){return null===t}export function isString(t){return"string"==typeof t}export function isNotNull(t){return!isNull(t)}export function checkIfIsObject(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}
2
2
  //# sourceMappingURL=typeGuards.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.0.0-alpha.79",
3
+ "version": "3.0.0-alpha.81",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -18,15 +18,14 @@
18
18
  "peerDependencies": {
19
19
  "@redocly/theme": ">=0.9.4",
20
20
  "core-js": "^3.1.4",
21
- "react": "^16.8.4 || ^17.0.0",
22
- "react-dom": "^16.8.4 || ^17.0.0",
23
- "styled-components": "^4.1.1 || ^5.1.1"
21
+ "react": "^18.0.0",
22
+ "react-dom": "^18.0.0",
23
+ "styled-components": "^4.1.1 || ^5.3.11"
24
24
  },
25
25
  "dependencies": {
26
26
  "@markdoc/markdoc": "0.4.0",
27
27
  "@redocly/openapi-core": "^1.4.0",
28
28
  "@redocly/vscode-json-languageservice": "3.4.9",
29
- "@wojtekmaj/enzyme-adapter-react-17": "^0.6.2",
30
29
  "@uiw/react-codemirror": "^4.21.20",
31
30
  "@uiw/codemirror-theme-material": "^4.21.20",
32
31
  "@codemirror/lang-json": "^6.0.1",
@@ -45,12 +44,12 @@
45
44
  "perfect-scrollbar": "^1.5.5",
46
45
  "prismjs": "^1.22.0",
47
46
  "react-router-dom": "^6.10.0",
48
- "react-tabs": "^3.1.1",
47
+ "react-tabs": "^6.0.2",
49
48
  "jotai": "^2.4.2",
50
49
  "slugify": "^1.4.4",
51
50
  "stickyfill": "^1.1.1",
52
51
  "stringify-object": "^3.3.0",
53
- "styled-components": "^4.1.1 || ^5.1.1",
52
+ "styled-components": "^4.1.1 || ^5.3.11",
54
53
  "swagger-client": "^3.13.3",
55
54
  "swagger2openapi": "^7.0.8",
56
55
  "tslib": "^2.2.0",
@@ -59,10 +58,10 @@
59
58
  "util": "~0.12.5"
60
59
  },
61
60
  "devDependencies": {
62
- "@testing-library/jest-dom": "^5.16.5",
63
- "@testing-library/react": "^12.1.4",
64
- "@testing-library/react-hooks": "^8.0.1",
65
- "@testing-library/user-event": "^13.5.0",
61
+ "@cfaester/enzyme-adapter-react-18": "^0.7.1",
62
+ "@testing-library/jest-dom": "^6.1.4",
63
+ "@testing-library/react": "^14.0.0",
64
+ "@testing-library/user-event": "^14.5.1",
66
65
  "@types/dompurify": "^2.0.2",
67
66
  "@types/enzyme-to-json": "^1.5.3",
68
67
  "@types/jest": "^29.2.2",
@@ -72,11 +71,9 @@
72
71
  "@types/markdown-it": "*",
73
72
  "@types/node": "^18.11.18",
74
73
  "@types/prismjs": "^1.16.1",
75
- "@types/react": "^17.0.43",
76
- "@types/react-dom": "^17.0.11",
77
- "@types/react-tabs": "^2.3.2",
78
- "@types/styled-components": "^5.1.9",
79
- "@types/testing-library__jest-dom": "^5.14.5",
74
+ "@types/react": "^18.2.31",
75
+ "@types/react-dom": "^18.2.14",
76
+ "@types/styled-components": "^5.1.30",
80
77
  "@types/webpack": "^4.41.9",
81
78
  "@types/webpack-env": "^1.14.1",
82
79
  "compare-versions": "^5.0.1",
@@ -94,13 +91,12 @@
94
91
  "js-yaml": "4.1.0",
95
92
  "json-schema": "^0.4.0",
96
93
  "outdent": "^0.8.0",
97
- "react": "^17.0.2",
98
- "react-dom": "^17.0.2",
99
- "react-hot-loader": "^4.12.18",
100
- "react-is": "^17.0.2",
94
+ "react": "^18.2.0",
95
+ "react-dom": "^18.2.0",
96
+ "react-is": "^18.2.0",
101
97
  "string-replace-loader": "^3.1.0",
102
98
  "style-loader": "^1.0.1",
103
- "styled-components": "^5.3.9",
99
+ "styled-components": "^5.3.11",
104
100
  "terser": "^5.6.1",
105
101
  "ts-jest": "^29.0.3",
106
102
  "ts-node": "^10.9.1",
@@ -111,7 +107,7 @@
111
107
  "webpack-cli": "^5.1.4",
112
108
  "webpack-dev-server": "^4.15.1",
113
109
  "workerize-loader": "github:redocly/workerize-loader#webpack-5-dist",
114
- "@redocly/theme": "0.31.3"
110
+ "@redocly/theme": "0.32.0"
115
111
  },
116
112
  "scripts": {
117
113
  "start": "webpack serve --mode=development --hot",