@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,6 +1,6 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
2
2
  const require_i18n = require("./i18n-tOmAUK0W.cjs");
3
- const require_PageActions = require("./PageActions-IpmtuInV.cjs");
3
+ const require_PageActions = require("./PageActions-kJT0EKLS.cjs");
4
4
  const require_remark = require("./remark-DTLbG8PK.cjs");
5
5
  let react = require("react");
6
6
  let react_router_dom = require("react-router-dom");
@@ -1843,13 +1843,14 @@ function listOpenApiOperations(spec, operationOrder) {
1843
1843
  const paths = spec.paths ?? {};
1844
1844
  const webhooks = spec.webhooks;
1845
1845
  const operations = [...listOperationsFromPathItems(paths, "path", spec), ...isRecord(webhooks) ? listOperationsFromPathItems(webhooks, "webhook", spec) : []];
1846
- if (!operationOrder?.length) return operations;
1847
- const orderByOperationId = new Map(operationOrder.map((operationId, index) => [operationId, index]));
1846
+ const orderByOperationId = new Map((operationOrder ?? []).map((operationId, index) => [operationId, index]));
1847
+ const fallbackOrder = operationOrder?.length ?? 0;
1848
1848
  return operations.map((entry, index) => ({
1849
1849
  entry,
1850
1850
  index,
1851
- order: entry.operation.operationId ? orderByOperationId.get(entry.operation.operationId) : void 0
1852
- })).sort((left, right) => (left.order ?? operationOrder.length) - (right.order ?? operationOrder.length) || left.index - right.index).map(({ entry }) => entry);
1851
+ deprecated: entry.operation.deprecated === true ? 1 : 0,
1852
+ order: entry.operation.operationId ? orderByOperationId.get(entry.operation.operationId) ?? fallbackOrder : fallbackOrder
1853
+ })).sort((left, right) => left.deprecated - right.deprecated || left.order - right.order || left.index - right.index).map(({ entry }) => entry);
1853
1854
  }
1854
1855
  //#endregion
1855
1856
  //#region source/openapi/components/EndpointMethodBadge.tsx
@@ -6000,4 +6001,4 @@ Object.defineProperty(exports, "primitives_exports", {
6000
6001
  }
6001
6002
  });
6002
6003
 
6003
- //# sourceMappingURL=OpenApiOperation-CyR9Y-2y.cjs.map
6004
+ //# sourceMappingURL=OpenApiOperation-La7HjfXY.cjs.map