@scalar/api-reference-react 0.9.16 → 0.9.18

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,9 @@
1
1
  # @scalar/api-reference-react
2
2
 
3
+ ## 0.9.18
4
+
5
+ ## 0.9.17
6
+
3
7
  ## 0.9.16
4
8
 
5
9
  ## 0.9.15
package/dist/style.css CHANGED
@@ -3347,18 +3347,12 @@ body {
3347
3347
  .scalar-app .min-h-3 {
3348
3348
  min-height: 12px;
3349
3349
  }
3350
- .scalar-app .min-h-dvh {
3351
- min-height: 100dvh;
3352
- }
3353
3350
  .scalar-app .w-\(--refs-sidebar-width\) {
3354
3351
  width: var(--refs-sidebar-width);
3355
3352
  }
3356
3353
  .scalar-app .w-4\.5 {
3357
3354
  width: 18px;
3358
3355
  }
3359
- .scalar-app .w-96 {
3360
- width: 384px;
3361
- }
3362
3356
  .scalar-app .w-120 {
3363
3357
  width: 480px;
3364
3358
  }
@@ -3662,12 +3656,12 @@ to {
3662
3656
  }
3663
3657
  }
3664
3658
  @media (max-width: 720px) and (max-height: 480px) {
3665
- .scalar-modal-layout .scalar-modal[data-v-c36b47da] {
3659
+ .scalar-modal-layout .scalar-modal[data-v-5bb1dcc2] {
3666
3660
  max-height: 90svh;
3667
3661
  margin-top: 5svh;
3668
3662
  }
3669
3663
  }
3670
- @keyframes fadein-layout-c36b47da {
3664
+ @keyframes fadein-layout-5bb1dcc2 {
3671
3665
  0% {
3672
3666
  opacity: 0;
3673
3667
  }
@@ -3675,7 +3669,7 @@ to {
3675
3669
  opacity: 1;
3676
3670
  }
3677
3671
  }
3678
- @keyframes fadein-modal-c36b47da {
3672
+ @keyframes fadein-modal-5bb1dcc2 {
3679
3673
  0% {
3680
3674
  opacity: 0;
3681
3675
  transform: translate3d(0, 10px, 0);
@@ -3686,7 +3680,7 @@ to {
3686
3680
  }
3687
3681
  }
3688
3682
  @media (min-width: 800px) {
3689
- .full-size-styles[data-v-c36b47da] {
3683
+ .full-size-styles[data-v-5bb1dcc2] {
3690
3684
  width: 50dvw !important;
3691
3685
  }
3692
3686
  }
@@ -4063,13 +4057,13 @@ to {
4063
4057
  }
4064
4058
  }
4065
4059
  @media (max-width: 720px) and (max-height: 480px) {
4066
- .scalar-modal-layout .scalar-modal[data-v-c36b47da] {
4060
+ .scalar-modal-layout .scalar-modal[data-v-5bb1dcc2] {
4067
4061
  max-height: 90svh;
4068
4062
  margin-top: 5svh;
4069
4063
  }
4070
4064
  }
4071
4065
  @media (min-width: 800px) {
4072
- .full-size-styles[data-v-c36b47da] {
4066
+ .full-size-styles[data-v-5bb1dcc2] {
4073
4067
  width: 50dvw !important;
4074
4068
  }
4075
4069
  }
@@ -4913,13 +4907,13 @@ input[data-v-c1a50a6e]::placeholder {
4913
4907
  }
4914
4908
  }
4915
4909
  @media (max-width: 720px) and (max-height: 480px) {
4916
- .scalar-modal-layout .scalar-modal[data-v-c36b47da] {
4910
+ .scalar-modal-layout .scalar-modal[data-v-5bb1dcc2] {
4917
4911
  max-height: 90svh;
4918
4912
  margin-top: 5svh;
4919
4913
  }
4920
4914
  }
4921
4915
  @media (min-width: 800px) {
4922
- .full-size-styles[data-v-c36b47da] {
4916
+ .full-size-styles[data-v-5bb1dcc2] {
4923
4917
  width: 50dvw !important;
4924
4918
  }
4925
4919
  }
@@ -5967,19 +5961,19 @@ input[data-v-c1a50a6e]::placeholder {
5967
5961
  .scalar-app .markdown.markdown-summary.markdown-summary img, .scalar-app .markdown.markdown-summary.markdown-summary svg, .scalar-app .markdown.markdown-summary.markdown-summary hr, .scalar-app .markdown.markdown-summary.markdown-summary pre {
5968
5962
  display: none;
5969
5963
  }
5970
- .scalar-modal-layout[data-v-c36b47da] {
5971
- animation: .3s ease-in-out forwards fadein-layout-c36b47da;
5964
+ .scalar-modal-layout[data-v-5bb1dcc2] {
5965
+ animation: .3s ease-in-out forwards fadein-layout-5bb1dcc2;
5972
5966
  }
5973
- .scalar-modal[data-v-c36b47da] {
5967
+ .scalar-modal[data-v-5bb1dcc2] {
5974
5968
  box-shadow: var(--scalar-shadow-2);
5975
- animation: .3s ease-in-out .1s forwards fadein-modal-c36b47da;
5969
+ animation: .3s ease-in-out .1s forwards fadein-modal-5bb1dcc2;
5976
5970
  transform: translate3d(0, 10px, 0);
5977
5971
  }
5978
- .scalar-modal-layout-full[data-v-c36b47da] {
5972
+ .scalar-modal-layout-full[data-v-5bb1dcc2] {
5979
5973
  opacity: 1 !important;
5980
5974
  background: none !important;
5981
5975
  }
5982
- .modal-content-search .modal-body[data-v-c36b47da] {
5976
+ .modal-content-search .modal-body[data-v-5bb1dcc2] {
5983
5977
  flex-direction: column;
5984
5978
  max-height: 440px;
5985
5979
  padding: 0;
@@ -5987,15 +5981,15 @@ input[data-v-c1a50a6e]::placeholder {
5987
5981
  overflow: hidden;
5988
5982
  }
5989
5983
  @media (max-width: 720px) and (max-height: 480px) {
5990
- .scalar-modal-layout .scalar-modal[data-v-c36b47da] {
5984
+ .scalar-modal-layout .scalar-modal[data-v-5bb1dcc2] {
5991
5985
  max-height: 90svh;
5992
5986
  margin-top: 5svh;
5993
5987
  }
5994
5988
  }
5995
- .full-size-styles[data-v-c36b47da] {
5989
+ .full-size-styles[data-v-5bb1dcc2] {
5996
5990
  margin: initial;
5997
5991
  border-right: var(--scalar-border-width) solid var(--scalar-border-color);
5998
- animation: .3s ease-in-out forwards fadein-layout-c36b47da;
5992
+ animation: .3s ease-in-out forwards fadein-layout-5bb1dcc2;
5999
5993
  left: 0;
6000
5994
  transform: translate3d(0, 0, 0);
6001
5995
  background-color: var(--scalar-background-1) !important;
@@ -6006,11 +6000,11 @@ input[data-v-c1a50a6e]::placeholder {
6006
6000
  top: 0 !important;
6007
6001
  }
6008
6002
  @media (min-width: 800px) {
6009
- .full-size-styles[data-v-c36b47da] {
6003
+ .full-size-styles[data-v-5bb1dcc2] {
6010
6004
  width: 50dvw !important;
6011
6005
  }
6012
6006
  }
6013
- .full-size-styles[data-v-c36b47da]:after {
6007
+ .full-size-styles[data-v-5bb1dcc2]:after {
6014
6008
  content: "";
6015
6009
  width: 50dvw;
6016
6010
  height: 100dvh;
@@ -7668,12 +7662,12 @@ input[data-v-c1a50a6e]::placeholder {
7668
7662
  .scalar-app .h-64 {
7669
7663
  height: 256px;
7670
7664
  }
7665
+ .scalar-app .h-125 {
7666
+ height: 500px;
7667
+ }
7671
7668
  .scalar-app .h-\[68px\] {
7672
7669
  height: 68px;
7673
7670
  }
7674
- .scalar-app .h-\[500px\] {
7675
- height: 500px;
7676
- }
7677
7671
  .scalar-app .h-\[calc\(100\%-273\.5px\)\] {
7678
7672
  height: calc(100% - 273.5px);
7679
7673
  }
@@ -9997,6 +9991,9 @@ input[data-v-c1a50a6e]::placeholder {
9997
9991
  .app-platform-mac :is(.scalar-app .mac\:app-drag-region) {
9998
9992
  -webkit-app-region: drag;
9999
9993
  }
9994
+ .scalar-app .\[\&_\.monaco-editor\]\:rounded-lg .monaco-editor, .scalar-app .\[\&_\.overflow-guard\]\:rounded-lg .overflow-guard {
9995
+ border-radius: var(--scalar-radius-lg);
9996
+ }
10000
9997
  .scalar-app .\[\&\>label\]\:bg-transparent > label {
10001
9998
  background-color: #0000;
10002
9999
  }
@@ -10070,22 +10067,22 @@ to {
10070
10067
  .address-bar-history-button[data-v-c15c6573]:focus-within {
10071
10068
  background: var(--scalar-background-2);
10072
10069
  }
10073
- [data-v-776dfdde] .cm-editor {
10070
+ [data-v-e041f4b0] .cm-editor {
10074
10071
  background: none;
10075
10072
  outline: none;
10076
10073
  height: 100%;
10077
10074
  padding: 0;
10078
10075
  }
10079
- [data-v-776dfdde] .cm-placeholder {
10076
+ [data-v-e041f4b0] .cm-placeholder {
10080
10077
  color: var(--scalar-color-3);
10081
10078
  }
10082
- [data-v-776dfdde] .cm-content {
10079
+ [data-v-e041f4b0] .cm-content {
10083
10080
  font-family: var(--scalar-font-code);
10084
10081
  font-size: var(--scalar-small);
10085
10082
  max-height: 20px;
10086
10083
  padding: 8px 0;
10087
10084
  }
10088
- [data-v-776dfdde] .cm-tooltip {
10085
+ [data-v-e041f4b0] .cm-tooltip {
10089
10086
  filter: brightness(var(--scalar-lifted-brightness));
10090
10087
  border-radius: var(--scalar-radius);
10091
10088
  box-shadow: var(--scalar-shadow-2);
@@ -10094,39 +10091,39 @@ to {
10094
10091
  outline: none !important;
10095
10092
  overflow: hidden !important;
10096
10093
  }
10097
- [data-v-776dfdde] .cm-tooltip-autocomplete ul li {
10094
+ [data-v-e041f4b0] .cm-tooltip-autocomplete ul li {
10098
10095
  padding: 3px 6px !important;
10099
10096
  }
10100
- [data-v-776dfdde] .cm-completionIcon-type:after {
10097
+ [data-v-e041f4b0] .cm-completionIcon-type:after {
10101
10098
  color: var(--scalar-color-3) !important;
10102
10099
  }
10103
- [data-v-776dfdde] .cm-tooltip-autocomplete ul li[aria-selected] {
10100
+ [data-v-e041f4b0] .cm-tooltip-autocomplete ul li[aria-selected] {
10104
10101
  background: var(--scalar-background-2) !important;
10105
10102
  color: var(--scalar-color-1) !important;
10106
10103
  }
10107
- [data-v-776dfdde] .cm-tooltip-autocomplete ul {
10104
+ [data-v-e041f4b0] .cm-tooltip-autocomplete ul {
10108
10105
  position: relative;
10109
10106
  padding: 6px !important;
10110
10107
  }
10111
- [data-v-776dfdde] .cm-tooltip-autocomplete ul li:hover {
10108
+ [data-v-e041f4b0] .cm-tooltip-autocomplete ul li:hover {
10112
10109
  border-radius: 3px;
10113
10110
  color: var(--scalar-color-1) !important;
10114
10111
  background: var(--scalar-background-3) !important;
10115
10112
  }
10116
- [data-v-776dfdde] .cm-activeLine, [data-v-776dfdde] .cm-activeLineGutter {
10113
+ [data-v-e041f4b0] .cm-activeLine, [data-v-e041f4b0] .cm-activeLineGutter {
10117
10114
  background-color: #0000;
10118
10115
  }
10119
- [data-v-776dfdde] .cm-selectionMatch, [data-v-776dfdde] .cm-matchingBracket {
10116
+ [data-v-e041f4b0] .cm-selectionMatch, [data-v-e041f4b0] .cm-matchingBracket {
10120
10117
  border-radius: var(--scalar-radius);
10121
10118
  background: var(--scalar-background-4) !important;
10122
10119
  }
10123
- [data-v-776dfdde] .cm-css-color-picker-wrapper {
10120
+ [data-v-e041f4b0] .cm-css-color-picker-wrapper {
10124
10121
  outline: 1px solid var(--scalar-background-3);
10125
10122
  border-radius: 3px;
10126
10123
  display: inline-flex;
10127
10124
  overflow: hidden;
10128
10125
  }
10129
- [data-v-776dfdde] .cm-gutters {
10126
+ [data-v-e041f4b0] .cm-gutters {
10130
10127
  color: var(--scalar-color-3);
10131
10128
  font-size: var(--scalar-small);
10132
10129
  background-color: #0000;
@@ -10134,7 +10131,7 @@ to {
10134
10131
  border-radius: 0 0 0 3px;
10135
10132
  line-height: 22px;
10136
10133
  }
10137
- [data-v-776dfdde] .cm-gutters:before {
10134
+ [data-v-e041f4b0] .cm-gutters:before {
10138
10135
  content: "";
10139
10136
  border-radius: var(--scalar-radius) 0 0 var(--scalar-radius);
10140
10137
  background-color: var(--scalar-background-1);
@@ -10144,7 +10141,7 @@ to {
10144
10141
  top: 2px;
10145
10142
  left: 2px;
10146
10143
  }
10147
- [data-v-776dfdde] .cm-gutterElement {
10144
+ [data-v-e041f4b0] .cm-gutterElement {
10148
10145
  justify-content: flex-end;
10149
10146
  align-items: center;
10150
10147
  display: flex;
@@ -10153,16 +10150,16 @@ to {
10153
10150
  padding-left: 0 !important;
10154
10151
  padding-right: 6px !important;
10155
10152
  }
10156
- [data-v-776dfdde] .cm-lineNumbers .cm-gutterElement {
10153
+ [data-v-e041f4b0] .cm-lineNumbers .cm-gutterElement {
10157
10154
  min-width: fit-content;
10158
10155
  }
10159
- [data-v-776dfdde] .cm-gutter + .cm-gutter :not(.cm-foldGutter) .cm-gutterElement {
10156
+ [data-v-e041f4b0] .cm-gutter + .cm-gutter :not(.cm-foldGutter) .cm-gutterElement {
10160
10157
  padding-left: 0 !important;
10161
10158
  }
10162
- [data-v-776dfdde] .cm-scroller {
10159
+ [data-v-e041f4b0] .cm-scroller {
10163
10160
  overflow: auto;
10164
10161
  }
10165
- .line-wrapping[data-v-776dfdde]:focus-within .cm-content {
10162
+ .line-wrapping[data-v-e041f4b0]:focus-within .cm-content {
10166
10163
  white-space: break-spaces;
10167
10164
  word-break: break-all;
10168
10165
  min-height: fit-content;
@@ -11279,23 +11276,23 @@ to {
11279
11276
  padding: 0;
11280
11277
  overflow: hidden;
11281
11278
  }
11282
- .editor-container[data-v-850fff8f] {
11279
+ .editor-container[data-v-e99ee660] {
11283
11280
  width: 100%;
11284
11281
  height: 100%;
11285
11282
  }
11286
- [data-v-850fff8f] .json-path-highlight {
11283
+ [data-v-e99ee660] .json-path-highlight {
11287
11284
  background-color: #ffc80059;
11288
11285
  border-radius: 4px;
11289
11286
  }
11290
- [data-v-850fff8f] .json-focus-highlight {
11287
+ [data-v-e99ee660] .json-focus-highlight {
11291
11288
  background-color: var(--scalar-color-accent, #24b47e);
11292
11289
  }
11293
11290
  @supports (color: color-mix(in lab, red, red)) {
11294
- [data-v-850fff8f] .json-focus-highlight {
11291
+ [data-v-e99ee660] .json-focus-highlight {
11295
11292
  background-color: color-mix(in srgb, var(--scalar-color-accent, #24b47e) 18%, transparent);
11296
11293
  }
11297
11294
  }
11298
- [data-v-850fff8f] .json-focus-highlight {
11295
+ [data-v-e99ee660] .json-focus-highlight {
11299
11296
  border-radius: 4px;
11300
11297
  }
11301
11298
  [data-v-28c8509c] .cm-editor {
@@ -13459,7 +13456,7 @@ div + .userMessage[data-v-8e43ed7a] {
13459
13456
  }
13460
13457
  /* Configurable Layout Variables */
13461
13458
  @layer scalar-config {
13462
- .scalar-api-reference[data-v-274a4872] {
13459
+ .scalar-api-reference[data-v-4a2e1b67] {
13463
13460
  /* The header height */
13464
13461
  --refs-header-height: calc(
13465
13462
  var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
@@ -13481,19 +13478,19 @@ div + .userMessage[data-v-8e43ed7a] {
13481
13478
  /* The maximum width of the content column */
13482
13479
  --refs-content-max-width: var(--scalar-content-max-width, 1540px);
13483
13480
  }
13484
- .scalar-api-reference.references-classic[data-v-274a4872] {
13481
+ .scalar-api-reference.references-classic[data-v-4a2e1b67] {
13485
13482
  /* Classic layout is wider */
13486
13483
  --refs-content-max-width: var(--scalar-content-max-width, 1420px);
13487
13484
  min-height: 100dvh;
13488
13485
  --refs-sidebar-width: 0;
13489
13486
  }
13490
13487
  }
13491
- .t-doc__sidebar[data-v-274a4872] {
13488
+ .t-doc__sidebar[data-v-4a2e1b67] {
13492
13489
  z-index: 10;
13493
13490
  }
13494
13491
  /* ----------------------------------------------------- */
13495
13492
  /* References Layout */
13496
- .references-layout[data-v-274a4872] {
13493
+ .references-layout[data-v-4a2e1b67] {
13497
13494
  /* Try to fill the container */
13498
13495
  min-height: 100dvh;
13499
13496
  min-width: 100%;
@@ -13517,43 +13514,43 @@ div + .userMessage[data-v-8e43ed7a] {
13517
13514
 
13518
13515
  background: var(--scalar-background-1);
13519
13516
  }
13520
- .references-editor[data-v-274a4872] {
13517
+ .references-editor[data-v-4a2e1b67] {
13521
13518
  grid-area: editor;
13522
13519
  display: flex;
13523
13520
  min-width: 0;
13524
13521
  background: var(--scalar-background-1);
13525
13522
  }
13526
- .references-rendered[data-v-274a4872] {
13523
+ .references-rendered[data-v-4a2e1b67] {
13527
13524
  position: relative;
13528
13525
  grid-area: rendered;
13529
13526
  min-width: 0;
13530
13527
  background: var(--scalar-background-1);
13531
13528
  }
13532
- .scalar-api-reference.references-classic[data-v-274a4872],
13533
- .references-classic .references-rendered[data-v-274a4872] {
13529
+ .scalar-api-reference.references-classic[data-v-4a2e1b67],
13530
+ .references-classic .references-rendered[data-v-4a2e1b67] {
13534
13531
  height: initial !important;
13535
13532
  max-height: initial !important;
13536
13533
  }
13537
13534
  @layer scalar-config {
13538
- .references-sidebar[data-v-274a4872] {
13535
+ .references-sidebar[data-v-4a2e1b67] {
13539
13536
  /* Set a default width if references are enabled */
13540
13537
  --refs-sidebar-width: var(--scalar-sidebar-width, 288px);
13541
13538
  }
13542
13539
  }
13543
13540
  /* Footer */
13544
- .references-footer[data-v-274a4872] {
13541
+ .references-footer[data-v-4a2e1b67] {
13545
13542
  grid-area: footer;
13546
13543
  }
13547
13544
  /* ----------------------------------------------------- */
13548
13545
  /* Responsive / Mobile Layout */
13549
13546
  @media (max-width: 1000px) {
13550
13547
  /* Keep toolbar hidden on mobile without forcing desktop display mode. */
13551
- .references-developer-tools[data-v-274a4872] {
13548
+ .references-developer-tools[data-v-4a2e1b67] {
13552
13549
  display: none;
13553
13550
  }
13554
13551
 
13555
13552
  /* Stack view on mobile */
13556
- .references-layout[data-v-274a4872] {
13553
+ .references-layout[data-v-4a2e1b67] {
13557
13554
  /* Adjust the sidebar height to the viewport height minus the header height */
13558
13555
  --refs-sidebar-height: calc(
13559
13556
  var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
@@ -13568,13 +13565,13 @@ div + .userMessage[data-v-8e43ed7a] {
13568
13565
  'rendered'
13569
13566
  'footer';
13570
13567
  }
13571
- .references-editable[data-v-274a4872] {
13568
+ .references-editable[data-v-4a2e1b67] {
13572
13569
  grid-template-areas:
13573
13570
  'header'
13574
13571
  'navigation'
13575
13572
  'editor';
13576
13573
  }
13577
- .references-rendered[data-v-274a4872] {
13574
+ .references-rendered[data-v-4a2e1b67] {
13578
13575
  position: static;
13579
13576
  }
13580
13577
  }
@@ -13584,11 +13581,11 @@ div + .userMessage[data-v-8e43ed7a] {
13584
13581
  * when the new elements are available
13585
13582
  */
13586
13583
  @media (max-width: 1000px) {
13587
- .scalar-api-references-standalone-mobile[data-v-274a4872]:not(.references-classic) {
13584
+ .scalar-api-references-standalone-mobile[data-v-4a2e1b67]:not(.references-classic) {
13588
13585
  --scalar-header-height: 50px;
13589
13586
  }
13590
13587
  }
13591
- .darklight-reference[data-v-274a4872] {
13588
+ .darklight-reference[data-v-4a2e1b67] {
13592
13589
  width: 100%;
13593
13590
  margin-top: auto;
13594
13591
  }
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "testing",
19
19
  "react"
20
20
  ],
21
- "version": "0.9.16",
21
+ "version": "0.9.18",
22
22
  "engines": {
23
23
  "node": ">=22"
24
24
  },
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@scalar/types": "0.7.5",
43
- "@scalar/api-reference": "1.49.6"
42
+ "@scalar/api-reference": "1.49.8",
43
+ "@scalar/types": "0.7.5"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/react": "^19.2.7",