@clarify-labs/renderer 0.11.23 → 0.11.24

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 (37) hide show
  1. package/output/{ClarifyShell-CMVVhs5d.js → ClarifyShell-BY7ufELe.js} +2 -2
  2. package/output/{ClarifyShell-CMVVhs5d.js.map → ClarifyShell-BY7ufELe.js.map} +1 -1
  3. package/output/{ClarifyShell-BCM0tKfd.cjs → ClarifyShell-BYJ3LIy_.cjs} +2 -2
  4. package/output/{ClarifyShell-BCM0tKfd.cjs.map → ClarifyShell-BYJ3LIy_.cjs.map} +1 -1
  5. package/output/{OpenApiOperation-CyR9Y-2y.cjs → OpenApiOperation-La7HjfXY.cjs} +7 -6
  6. package/output/OpenApiOperation-La7HjfXY.cjs.map +1 -0
  7. package/output/{OpenApiOperation-BVm4VnFl.js → OpenApiOperation-p1OjfdKR.js} +7 -6
  8. package/output/OpenApiOperation-p1OjfdKR.js.map +1 -0
  9. package/output/{PageActions-B98vbZRP.js → PageActions-DAdtjf4H.js} +3 -3
  10. package/output/PageActions-DAdtjf4H.js.map +1 -0
  11. package/output/{PageActions-IpmtuInV.cjs → PageActions-kJT0EKLS.cjs} +3 -3
  12. package/output/PageActions-kJT0EKLS.cjs.map +1 -0
  13. package/output/{SearchDialog-wjtpnKYS.cjs → SearchDialog-BBSj23yI.cjs} +2 -2
  14. package/output/{SearchDialog-wjtpnKYS.cjs.map → SearchDialog-BBSj23yI.cjs.map} +1 -1
  15. package/output/{SearchDialog-B4MS3QuJ.js → SearchDialog-DW_bndWO.js} +2 -2
  16. package/output/{SearchDialog-B4MS3QuJ.js.map → SearchDialog-DW_bndWO.js.map} +1 -1
  17. package/output/client.cjs +3 -3
  18. package/output/client.js +3 -3
  19. package/output/index.cjs +12 -8
  20. package/output/index.cjs.map +1 -1
  21. package/output/index.js +12 -8
  22. package/output/index.js.map +1 -1
  23. package/output/openapi/entry.d.ts +2 -0
  24. package/output/preview.cjs +2 -2
  25. package/output/preview.js +2 -2
  26. package/output/{render-CobBuz3I.cjs → render-BXsYCBIp.cjs} +2 -2
  27. package/output/{render-CobBuz3I.cjs.map → render-BXsYCBIp.cjs.map} +1 -1
  28. package/output/{render-D0qt6K1G.js → render-DU9Jt4WC.js} +2 -2
  29. package/output/{render-D0qt6K1G.js.map → render-DU9Jt4WC.js.map} +1 -1
  30. package/output/renderer.css +10 -7
  31. package/output/server.cjs +2 -2
  32. package/output/server.js +2 -2
  33. package/package.json +1 -1
  34. package/output/OpenApiOperation-BVm4VnFl.js.map +0 -1
  35. package/output/OpenApiOperation-CyR9Y-2y.cjs.map +0 -1
  36. package/output/PageActions-B98vbZRP.js.map +0 -1
  37. package/output/PageActions-IpmtuInV.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { a as useConfig, l as useLocale, o as useConfigOptional, t as useBuiltInText } from "./i18n-Bt-OaKRP.js";
2
- import { c as useSectionStore, d as resolveLucideIconName, g as localizeHref, h as isExternalHref, l as remToPx, m as useTheme, o as DeprecatedBadge, t as PageActions, u as lucideIconRegistry, y as copyTextToClipboard } from "./PageActions-B98vbZRP.js";
2
+ import { c as useSectionStore, d as resolveLucideIconName, g as localizeHref, h as isExternalHref, l as remToPx, m as useTheme, o as DeprecatedBadge, t as PageActions, u as lucideIconRegistry, y as copyTextToClipboard } from "./PageActions-DAdtjf4H.js";
3
3
  import { t as markdownRemarkPlugins } from "./remark-C9iRQM0R.js";
4
4
  import { Children, Suspense, cloneElement, createContext, createElement, forwardRef, isValidElement, lazy, useContext, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
5
5
  import { Link } from "react-router-dom";
@@ -1851,13 +1851,14 @@ function listOpenApiOperations(spec, operationOrder) {
1851
1851
  const paths = spec.paths ?? {};
1852
1852
  const webhooks = spec.webhooks;
1853
1853
  const operations = [...listOperationsFromPathItems(paths, "path", spec), ...isRecord(webhooks) ? listOperationsFromPathItems(webhooks, "webhook", spec) : []];
1854
- if (!operationOrder?.length) return operations;
1855
- const orderByOperationId = new Map(operationOrder.map((operationId, index) => [operationId, index]));
1854
+ const orderByOperationId = new Map((operationOrder ?? []).map((operationId, index) => [operationId, index]));
1855
+ const fallbackOrder = operationOrder?.length ?? 0;
1856
1856
  return operations.map((entry, index) => ({
1857
1857
  entry,
1858
1858
  index,
1859
- order: entry.operation.operationId ? orderByOperationId.get(entry.operation.operationId) : void 0
1860
- })).sort((left, right) => (left.order ?? operationOrder.length) - (right.order ?? operationOrder.length) || left.index - right.index).map(({ entry }) => entry);
1859
+ deprecated: entry.operation.deprecated === true ? 1 : 0,
1860
+ order: entry.operation.operationId ? orderByOperationId.get(entry.operation.operationId) ?? fallbackOrder : fallbackOrder
1861
+ })).sort((left, right) => left.deprecated - right.deprecated || left.order - right.order || left.index - right.index).map(({ entry }) => entry);
1861
1862
  }
1862
1863
  //#endregion
1863
1864
  //#region source/openapi/components/EndpointMethodBadge.tsx
@@ -5757,4 +5758,4 @@ function OpenApiOperation(arg0) {
5757
5758
  //#endregion
5758
5759
  export { Heading as A, Callout as B, Tabs as C, GridPattern as D, Prose as E, CodeGroup as F, LocalizedLink as H, Pre as I, Mermaid as L, Feedback as M, Collapse as N, HeroPattern as O, Code as P, Card as R, TabItem as S, Steps as T, Button as V, Markdown as _, ResponseExamplesPanel as a, primitives_exports as b, getAuthOptions as c, EndpointMethodBadge as d, getOpenApiOperationEntryById as f, getRequestBody$1 as g, getMediaTypeEntries as h, RequestExamplesPanel as i, Tag as j, Logo as k, getServerKey as l, listOpenApiOperations as m, OpenApiOperation as n, authPlaceholder as o, getOpenApiOperationSectionId as p, OpenApiRequestWorkbench as r, defaultServerVariables as s, EndpointIdentity as t, getServers as u, Release as v, Step as w, WebFrame as x, ReleaseItem as y, CardGroup as z };
5759
5760
 
5760
- //# sourceMappingURL=OpenApiOperation-BVm4VnFl.js.map
5761
+ //# sourceMappingURL=OpenApiOperation-p1OjfdKR.js.map