@emeryld/rrroutes-contract 2.2.8 → 2.2.10

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 { AnyLeaf, MethodCfg } from "../core/routesV3.core";
2
- import { SerializableSchemaNode } from "./schemaIntrospection.js";
2
+ import { SerializableSchemaNode } from "./schemaIntrospection";
3
3
  type SerializableMethodCfg = Pick<MethodCfg, "description" | "summary" | "docsGroup" | "tags" | "deprecated" | "stability" | "feed" | "docsMeta"> & {
4
4
  hasBody: boolean;
5
5
  hasQuery: boolean;
package/dist/index.cjs CHANGED
@@ -654,6 +654,40 @@ tr[data-hidden="true"] { display: none; }
654
654
  }
655
655
  .playground-overlay.open { transform: translateX(0); }
656
656
 
657
+ .loading-placeholder {
658
+ text-align: center;
659
+ padding: 40px;
660
+ color: #64748b;
661
+ }
662
+ .section-header-row {
663
+ display:flex;
664
+ justify-content:space-between;
665
+ align-items:flex-end;
666
+ border-bottom:1px solid var(--border-subtle);
667
+ margin-bottom:8px;
668
+ }
669
+ .section-title-no-border {
670
+ border:none;
671
+ margin:0;
672
+ }
673
+ .schema-actions-inline {
674
+ margin-bottom:4px;
675
+ }
676
+ .schema-actions-inline button.expand-all {
677
+ background:none;
678
+ border:none;
679
+ color:var(--text-accent);
680
+ cursor:pointer;
681
+ font-size:10px;
682
+ }
683
+ .schema-actions-inline button.collapse-all {
684
+ background:none;
685
+ border:none;
686
+ color:var(--text-muted);
687
+ cursor:pointer;
688
+ font-size:10px;
689
+ }
690
+
657
691
  .pg-header {
658
692
  padding: 16px; border-bottom: 1px solid var(--border-subtle);
659
693
  display: flex; justify-content: space-between; align-items: center;
@@ -955,11 +989,14 @@ var DOCS_JS = `
955
989
  }
956
990
 
957
991
  function renderSection(title, schema1, schema2) {
958
- return '<div class="section-block">' +
959
- '<div style="display:flex; justify-content:space-between; align-items:flex-end; border-bottom:1px solid var(--border-subtle); margin-bottom:8px;">' +
960
- '<div class="section-title" style="border:none; margin:0;">'+title+'</div>' +
961
- '<div class="schema-actions" style="margin-bottom:4px;"><button data-action="expand" style="background:none;border:none;color:var(--text-accent);cursor:pointer;font-size:10px;">Exp All</button> <button data-action="collapse" style="background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:10px;">Col All</button></div>' +
992
+ return '<div class="section-block">' +
993
+ '<div class="section-header-row">' +
994
+ '<div class="section-title section-title-no-border">'+title+'</div>' +
995
+ '<div class="schema-actions schema-actions-inline">' +
996
+ '<button class="expand-all" data-action="expand">Exp All</button> ' +
997
+ '<button class="collapse-all" data-action="collapse">Col All</button>' +
962
998
  '</div>' +
999
+ '</div>' +
963
1000
  (schema1 ? renderSchemaTable(schema1) : '') +
964
1001
  (schema2 ? renderSchemaTable(schema2) : '') +
965
1002
  '</div>';
@@ -1436,9 +1473,9 @@ function renderLeafDocsHTML(leaves, options = {}) {
1436
1473
  <div class="overview-row" id="overviewList"></div>
1437
1474
  </div>
1438
1475
 
1439
- <main id="routeList">
1440
- <div style="text-align:center; padding:40px; color:#64748b">Loading API definition...</div>
1441
- </main>
1476
+ <main id="routeList">
1477
+ <div class="loading-placeholder">Loading API definition...</div>
1478
+ </main>
1442
1479
  </div>
1443
1480
 
1444
1481
  <script id="leaf-data" type="application/json">${leavesJson}</script>