@scalar/api-reference-react 0.9.85 → 0.9.86

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @scalar/api-reference-react
2
2
 
3
+ ## 0.9.86
4
+
3
5
  ## 0.9.85
4
6
 
5
7
  ## 0.9.84
package/dist/style.css CHANGED
@@ -13076,7 +13076,7 @@ to {
13076
13076
 
13077
13077
  /* Configurable Layout Variables */
13078
13078
  @layer scalar-config {
13079
- .scalar-api-reference[data-v-8933dafb] {
13079
+ .scalar-api-reference[data-v-55857d58] {
13080
13080
  /* The header height */
13081
13081
  --refs-header-height: calc(
13082
13082
  var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
@@ -13098,20 +13098,20 @@ to {
13098
13098
  /* The maximum width of the content column */
13099
13099
  --refs-content-max-width: var(--scalar-content-max-width, 1540px);
13100
13100
  }
13101
- .scalar-api-reference.references-classic[data-v-8933dafb] {
13101
+ .scalar-api-reference.references-classic[data-v-55857d58] {
13102
13102
  /* Classic layout is wider */
13103
13103
  --refs-content-max-width: var(--scalar-content-max-width, 1420px);
13104
13104
  min-height: 100dvh;
13105
13105
  --refs-sidebar-width: 0;
13106
13106
  }
13107
13107
  }
13108
- .t-doc__sidebar[data-v-8933dafb] {
13108
+ .t-doc__sidebar[data-v-55857d58] {
13109
13109
  z-index: 10;
13110
13110
  }
13111
13111
 
13112
13112
  /* ----------------------------------------------------- */
13113
13113
  /* References Layout */
13114
- .references-layout[data-v-8933dafb] {
13114
+ .references-layout[data-v-55857d58] {
13115
13115
  /* Try to fill the container */
13116
13116
  min-height: 100dvh;
13117
13117
  min-width: 100%;
@@ -13135,36 +13135,36 @@ to {
13135
13135
 
13136
13136
  background: var(--scalar-background-1);
13137
13137
  }
13138
- .references-editor[data-v-8933dafb] {
13138
+ .references-editor[data-v-55857d58] {
13139
13139
  grid-area: editor;
13140
13140
  display: flex;
13141
13141
  min-width: 0;
13142
13142
  background: var(--scalar-background-1);
13143
13143
  }
13144
- .references-rendered[data-v-8933dafb] {
13144
+ .references-rendered[data-v-55857d58] {
13145
13145
  position: relative;
13146
13146
  grid-area: rendered;
13147
13147
  min-width: 0;
13148
13148
  background: var(--scalar-background-1);
13149
13149
  }
13150
- .scalar-api-reference.references-classic[data-v-8933dafb],
13151
- .references-classic .references-rendered[data-v-8933dafb] {
13150
+ .scalar-api-reference.references-classic[data-v-55857d58],
13151
+ .references-classic .references-rendered[data-v-55857d58] {
13152
13152
  height: initial !important;
13153
13153
  max-height: initial !important;
13154
13154
  }
13155
13155
  /* Give the classic layout some breathing room at the end of the scroll */
13156
- .references-classic .references-rendered[data-v-8933dafb] {
13156
+ .references-classic .references-rendered[data-v-55857d58] {
13157
13157
  padding-bottom: 80px;
13158
13158
  }
13159
13159
  @layer scalar-config {
13160
- .references-sidebar[data-v-8933dafb] {
13160
+ .references-sidebar[data-v-55857d58] {
13161
13161
  /* Set a default width if references are enabled */
13162
13162
  --refs-sidebar-width: var(--scalar-sidebar-width, 288px);
13163
13163
  }
13164
13164
  }
13165
13165
 
13166
13166
  /* Footer */
13167
- .references-footer[data-v-8933dafb] {
13167
+ .references-footer[data-v-55857d58] {
13168
13168
  grid-area: footer;
13169
13169
  }
13170
13170
  /* ----------------------------------------------------- */
@@ -13180,12 +13180,12 @@ to {
13180
13180
  */
13181
13181
  @media (width < 1000px) {
13182
13182
  /* Keep toolbar hidden on mobile without forcing desktop display mode. */
13183
- .references-developer-tools[data-v-8933dafb] {
13183
+ .references-developer-tools[data-v-55857d58] {
13184
13184
  display: none;
13185
13185
  }
13186
13186
 
13187
13187
  /* Stack view on mobile */
13188
- .references-layout[data-v-8933dafb] {
13188
+ .references-layout[data-v-55857d58] {
13189
13189
  /* Adjust the sidebar height to the viewport height minus the header height */
13190
13190
  --refs-sidebar-height: calc(
13191
13191
  var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
@@ -13200,13 +13200,13 @@ to {
13200
13200
  'rendered'
13201
13201
  'footer';
13202
13202
  }
13203
- .references-editable[data-v-8933dafb] {
13203
+ .references-editable[data-v-55857d58] {
13204
13204
  grid-template-areas:
13205
13205
  'header'
13206
13206
  'navigation'
13207
13207
  'editor';
13208
13208
  }
13209
- .references-rendered[data-v-8933dafb] {
13209
+ .references-rendered[data-v-55857d58] {
13210
13210
  position: static;
13211
13211
  }
13212
13212
  }
@@ -13226,7 +13226,7 @@ to {
13226
13226
  * Scoped to the breakpoint that shows the toolbar, so narrow viewports keep the plain layout.
13227
13227
  */
13228
13228
  @media (width >= 1000px) {
13229
- .references-shell[data-v-8933dafb] {
13229
+ .references-shell[data-v-55857d58] {
13230
13230
  /* The toolbar reads this for its height, so the offsets below always match what it renders */
13231
13231
  --refs-shell-toolbar-height: 48px;
13232
13232
  /* Breathing room between the card and the viewport edge, and between the card and the panel */
@@ -13250,14 +13250,14 @@ to {
13250
13250
  }
13251
13251
 
13252
13252
  /* Darker than the card rather than lighter, so it still reads as a backdrop */
13253
- .dark-mode .references-shell[data-v-8933dafb] {
13253
+ .dark-mode .references-shell[data-v-55857d58] {
13254
13254
  --refs-shell-backdrop: color-mix(
13255
13255
  in srgb,
13256
13256
  var(--scalar-background-1) 25%,
13257
13257
  black 75%
13258
13258
  );
13259
13259
  }
13260
- .references-shell-toolbar[data-v-8933dafb] {
13260
+ .references-shell-toolbar[data-v-55857d58] {
13261
13261
  /*
13262
13262
  * A sticky grid item only sticks within its own grid area, so the toolbar spans the whole grid
13263
13263
  * and sits at the top of it, while the first row keeps its height free.
@@ -13271,7 +13271,7 @@ to {
13271
13271
  z-index: 20;
13272
13272
  background: var(--refs-shell-backdrop);
13273
13273
  }
13274
- .references-shell-card[data-v-8933dafb] {
13274
+ .references-shell-card[data-v-55857d58] {
13275
13275
  grid-area: 2 / 1;
13276
13276
  /* Fill the viewport below the toolbar, so a short document still ends at the frame */
13277
13277
  min-height: var(--refs-shell-stuck-height);
@@ -13287,7 +13287,7 @@ to {
13287
13287
  * It sticks within the card's grid area, so it follows the card's end when the page has more
13288
13288
  * content after the reference. Above the sidebar and the context bar, below the panel and toolbar.
13289
13289
  */
13290
- .references-shell-frame[data-v-8933dafb] {
13290
+ .references-shell-frame[data-v-55857d58] {
13291
13291
  grid-area: 2 / 1;
13292
13292
  align-self: start;
13293
13293
  position: sticky;
@@ -13308,7 +13308,7 @@ to {
13308
13308
  * Below the toolbar, which it slides under when the card ends before the page does. Dropdowns
13309
13309
  * inside it are teleported, so they still open above the toolbar.
13310
13310
  */
13311
- .references-shell-panel[data-v-8933dafb] {
13311
+ .references-shell-panel[data-v-55857d58] {
13312
13312
  grid-area: 2 / 2;
13313
13313
  align-self: start;
13314
13314
  position: sticky;
@@ -13319,7 +13319,7 @@ to {
13319
13319
  height: var(--refs-shell-stuck-height);
13320
13320
  margin-inline-start: var(--refs-shell-gutter);
13321
13321
  transform-origin: top center;
13322
- animation: refs-shell-panel-in-8933dafb 180ms cubic-bezier(0.32, 0.72, 0, 1);
13322
+ animation: refs-shell-panel-in-55857d58 180ms cubic-bezier(0.32, 0.72, 0, 1);
13323
13323
  }
13324
13324
 
13325
13325
  /*
@@ -13329,7 +13329,7 @@ to {
13329
13329
  * sidebar scrolls on its own, below the toolbar.
13330
13330
  */
13331
13331
  .references-shell-card
13332
- .references-rendered[data-v-8933dafb]
13332
+ .references-rendered[data-v-55857d58]
13333
13333
 
13334
13334
  :is(
13335
13335
  a[href],
@@ -13357,33 +13357,33 @@ to {
13357
13357
  *
13358
13358
  * Doubled classes: the drawer's own narrow-screen rules still match at exactly 1000px.
13359
13359
  */
13360
- .references-shell[data-v-8933dafb] .agent-scalar-overlay.agent-scalar-overlay,
13361
- .references-shell[data-v-8933dafb] .agent-scalar.agent-scalar {
13360
+ .references-shell[data-v-55857d58] .agent-scalar-overlay.agent-scalar-overlay,
13361
+ .references-shell[data-v-55857d58] .agent-scalar.agent-scalar {
13362
13362
  --refs-shell-agent-end: var(--refs-shell-gutter);
13363
13363
  z-index: 10;
13364
13364
  }
13365
- .references-shell[data-shell-panel][data-v-8933dafb]
13365
+ .references-shell[data-shell-panel][data-v-55857d58]
13366
13366
  .agent-scalar-overlay.agent-scalar-overlay,
13367
- .references-shell[data-shell-panel][data-v-8933dafb] .agent-scalar.agent-scalar {
13367
+ .references-shell[data-shell-panel][data-v-55857d58] .agent-scalar.agent-scalar {
13368
13368
  --refs-shell-agent-end: calc(
13369
13369
  var(--refs-shell-gutter) * 2 + var(--refs-shell-panel-width)
13370
13370
  );
13371
13371
  }
13372
- .references-shell[data-v-8933dafb] .agent-scalar-overlay.agent-scalar-overlay {
13372
+ .references-shell[data-v-55857d58] .agent-scalar-overlay.agent-scalar-overlay {
13373
13373
  inset: var(--refs-shell-top) var(--refs-shell-agent-end)
13374
13374
  var(--refs-shell-gutter) var(--refs-shell-gutter);
13375
13375
  }
13376
- .references-shell[data-v-8933dafb] .agent-scalar.agent-scalar {
13376
+ .references-shell[data-v-55857d58] .agent-scalar.agent-scalar {
13377
13377
  inset: var(--refs-shell-top) calc(var(--refs-shell-agent-end) + 48px)
13378
13378
  var(--refs-shell-gutter)
13379
13379
  calc(var(--refs-shell-gutter) + var(--refs-sidebar-width));
13380
13380
  }
13381
13381
  /* The classic layout has no sidebar, and its unitless 0 width would make the sum above invalid */
13382
- .references-shell[data-v-8933dafb] .references-classic .agent-scalar.agent-scalar {
13382
+ .references-shell[data-v-55857d58] .references-classic .agent-scalar.agent-scalar {
13383
13383
  left: var(--refs-shell-gutter);
13384
13384
  }
13385
13385
  @layer scalar-config {
13386
- .scalar-api-reference.references-shell-card[data-v-8933dafb] {
13386
+ .scalar-api-reference.references-shell-card[data-v-55857d58] {
13387
13387
  /* The sticky toolbar is one more header that the sidebar and scroll offsets sit below */
13388
13388
  --refs-header-height: calc(
13389
13389
  var(--scalar-custom-header-height, 0px) +
@@ -13403,20 +13403,20 @@ to {
13403
13403
 
13404
13404
  /* The panel only exists at the toolbar's breakpoint; the script closes it below that */
13405
13405
  @media (width < 1000px) {
13406
- .references-shell-panel[data-v-8933dafb] {
13406
+ .references-shell-panel[data-v-55857d58] {
13407
13407
  display: none;
13408
13408
  }
13409
13409
  }
13410
13410
 
13411
13411
  /* Scales in place rather than sliding, so it never pokes past the viewport edge or needs mirroring */
13412
- @keyframes refs-shell-panel-in-8933dafb {
13412
+ @keyframes refs-shell-panel-in-55857d58 {
13413
13413
  from {
13414
13414
  opacity: 0;
13415
13415
  scale: 0.985;
13416
13416
  }
13417
13417
  }
13418
13418
  @media (prefers-reduced-motion: reduce) {
13419
- .references-shell-panel[data-v-8933dafb] {
13419
+ .references-shell-panel[data-v-55857d58] {
13420
13420
  animation: none;
13421
13421
  }
13422
13422
  }
@@ -13428,12 +13428,12 @@ from {
13428
13428
  */
13429
13429
  /* Match the layout breakpoint above so the mobile header height is only applied below `lg`. */
13430
13430
  @media (width < 1000px) {
13431
- .scalar-api-references-standalone-mobile[data-v-8933dafb]:not(.references-classic) {
13431
+ .scalar-api-references-standalone-mobile[data-v-55857d58]:not(.references-classic) {
13432
13432
  --scalar-header-height: 50px;
13433
13433
  }
13434
13434
  }
13435
13435
 
13436
- .darklight-reference[data-v-8933dafb] {
13436
+ .darklight-reference[data-v-55857d58] {
13437
13437
  width: 100%;
13438
13438
  margin-top: auto;
13439
13439
  }
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "testing",
19
19
  "react"
20
20
  ],
21
- "version": "0.9.85",
21
+ "version": "0.9.86",
22
22
  "engines": {
23
23
  "node": ">=22"
24
24
  },
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@scalar/api-reference": "1.76.2",
43
- "@scalar/types": "0.25.2"
42
+ "@scalar/api-reference": "1.76.3",
43
+ "@scalar/types": "0.26.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@scalar/helpers": "0.16.4",