@scalar/api-reference-react 0.9.75 → 0.9.76

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.76
4
+
3
5
  ## 0.9.75
4
6
 
5
7
  ## 0.9.74
package/dist/style.css CHANGED
@@ -1556,7 +1556,7 @@
1556
1556
  content: none;
1557
1557
  }
1558
1558
 
1559
- .scalar-app .markdown.markdown-summary.markdown-summary :not(strong, em, a) {
1559
+ .scalar-app .markdown.markdown-summary.markdown-summary :not(strong, em, a, code) {
1560
1560
  font-size: inherit;
1561
1561
  font-weight: inherit;
1562
1562
  line-height: var(--markdown-line-height);
@@ -2314,12 +2314,12 @@
2314
2314
  color: var(--scalar-color-1);
2315
2315
  }
2316
2316
 
2317
- .code-input-lite[data-v-360ebc3c] {
2317
+ .code-input-lite[data-v-f06520bd] {
2318
2318
  align-items: center;
2319
2319
  display: flex;
2320
2320
  }
2321
2321
 
2322
- .code-input-lite__editor[data-v-360ebc3c] {
2322
+ .code-input-lite__editor[data-v-f06520bd] {
2323
2323
  font: inherit;
2324
2324
  letter-spacing: inherit;
2325
2325
  min-width: 0;
@@ -2337,11 +2337,11 @@
2337
2337
  overflow: auto hidden;
2338
2338
  }
2339
2339
 
2340
- .code-input-lite__editor[data-v-360ebc3c]::-webkit-scrollbar {
2340
+ .code-input-lite__editor[data-v-f06520bd]::-webkit-scrollbar {
2341
2341
  display: none;
2342
2342
  }
2343
2343
 
2344
- .code-input-lite--empty .code-input-lite__editor[data-v-360ebc3c]:not(:focus):before {
2344
+ .code-input-lite--empty .code-input-lite__editor[data-v-f06520bd]:not(:focus):before {
2345
2345
  content: attr(data-placeholder);
2346
2346
  color: var(--scalar-color-3);
2347
2347
  pointer-events: none;
@@ -2353,7 +2353,7 @@
2353
2353
  left: .5em;
2354
2354
  }
2355
2355
 
2356
- .code-input-lite--error .code-input-lite__editor[data-v-360ebc3c] {
2356
+ .code-input-lite--error .code-input-lite__editor[data-v-f06520bd] {
2357
2357
  outline: 1px solid var(--scalar-color-red);
2358
2358
  }
2359
2359
 
@@ -2610,12 +2610,12 @@ input[data-v-8e7de9be]::placeholder {
2610
2610
  opacity: 0;
2611
2611
  }
2612
2612
 
2613
- .animate-response-heading .response-heading[data-v-29000e66] {
2613
+ .animate-response-heading .response-heading[data-v-7f122fc4] {
2614
2614
  opacity: 1;
2615
- animation: .2s ease-in-out forwards push-response-29000e66;
2615
+ animation: .2s ease-in-out forwards push-response-7f122fc4;
2616
2616
  }
2617
2617
 
2618
- @keyframes push-response-29000e66 {
2618
+ @keyframes push-response-7f122fc4 {
2619
2619
  from {
2620
2620
  opacity: 1;
2621
2621
  transform: translateY(0);
@@ -2627,12 +2627,12 @@ input[data-v-8e7de9be]::placeholder {
2627
2627
  }
2628
2628
  }
2629
2629
 
2630
- .animate-response-heading .animate-response-children[data-v-29000e66] {
2630
+ .animate-response-heading .animate-response-children[data-v-7f122fc4] {
2631
2631
  opacity: 0;
2632
- animation: .2s ease-in-out 50ms forwards response-spans-29000e66;
2632
+ animation: .2s ease-in-out 50ms forwards response-spans-7f122fc4;
2633
2633
  }
2634
2634
 
2635
- @keyframes response-spans-29000e66 {
2635
+ @keyframes response-spans-7f122fc4 {
2636
2636
  from {
2637
2637
  opacity: 0;
2638
2638
  transform: translateY(4px);
@@ -10891,7 +10891,7 @@ code.property-detail-value[data-v-1295f965] {
10891
10891
  text-decoration: line-through;
10892
10892
  }
10893
10893
 
10894
- .property[data-v-d4aafe56] {
10894
+ .property[data-v-2f27e69f] {
10895
10895
  color: var(--scalar-color-1);
10896
10896
  display: flex;
10897
10897
  flex-direction: column;
@@ -10901,11 +10901,11 @@ code.property-detail-value[data-v-1295f965] {
10901
10901
  }
10902
10902
 
10903
10903
  /* if a property doesn't have a heading, remove the top padding */
10904
- .property[data-v-d4aafe56]:has(> .property-rule:nth-of-type(1)):not(.property--compact) {
10904
+ .property[data-v-2f27e69f]:has(> .property-rule:nth-of-type(1)):not(.property--compact) {
10905
10905
  padding-top: 8px;
10906
10906
  padding-bottom: 8px;
10907
10907
  }
10908
- .property--deprecated[data-v-d4aafe56] {
10908
+ .property--deprecated[data-v-2f27e69f] {
10909
10909
  background: repeating-linear-gradient(
10910
10910
  -45deg,
10911
10911
  var(--scalar-background-2) 0,
@@ -10924,65 +10924,65 @@ code.property-detail-value[data-v-1295f965] {
10924
10924
  * beside it. The fade was the one signal carrying no information and the only one costing
10925
10925
  * contrast, so do not reintroduce it.
10926
10926
  */
10927
- .property-description[data-v-d4aafe56] {
10927
+ .property-description[data-v-2f27e69f] {
10928
10928
  margin-top: 6px;
10929
10929
  line-height: 1.4;
10930
10930
  font-size: var(--scalar-small);
10931
10931
  }
10932
- .property-description[data-v-d4aafe56]:has(+ .property-rule) {
10932
+ .property-description[data-v-2f27e69f]:has(+ .property-rule) {
10933
10933
  margin-bottom: 9px;
10934
10934
  }
10935
- [data-v-d4aafe56] .property-description * {
10935
+ [data-v-2f27e69f] .property-description * {
10936
10936
  color: var(--scalar-color-2) !important;
10937
10937
  }
10938
- .property[data-v-d4aafe56]:not(:last-of-type) {
10938
+ .property[data-v-2f27e69f]:not(:last-of-type) {
10939
10939
  border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
10940
10940
  }
10941
- .property-description + .children[data-v-d4aafe56],
10942
- .children + .property-rule[data-v-d4aafe56] {
10941
+ .property-description + .children[data-v-2f27e69f],
10942
+ .children + .property-rule[data-v-2f27e69f] {
10943
10943
  margin-top: 9px;
10944
10944
  }
10945
- .children[data-v-d4aafe56] {
10945
+ .children[data-v-2f27e69f] {
10946
10946
  display: flex;
10947
10947
  flex-direction: column;
10948
10948
  }
10949
- .children .property--compact.property--level-1[data-v-d4aafe56] {
10949
+ .children .property--compact.property--level-1[data-v-2f27e69f] {
10950
10950
  padding: 12px;
10951
10951
  }
10952
- .property-example-value[data-v-d4aafe56] {
10952
+ .property-example-value[data-v-2f27e69f] {
10953
10953
  all: unset;
10954
10954
  font-family: var(--scalar-font-code);
10955
10955
  padding: 6px;
10956
10956
  border-top: var(--scalar-border-width) solid var(--scalar-border-color);
10957
10957
  }
10958
- .property-rule[data-v-d4aafe56] {
10958
+ .property-rule[data-v-2f27e69f] {
10959
10959
  border-radius: var(--scalar-radius-lg);
10960
10960
  display: flex;
10961
10961
  flex-direction: column;
10962
10962
  }
10963
- .property-example[data-v-d4aafe56] {
10963
+ .property-example[data-v-2f27e69f] {
10964
10964
  background: transparent;
10965
10965
  border: none;
10966
10966
  display: flex;
10967
10967
  flex-direction: row;
10968
10968
  gap: 8px;
10969
10969
  }
10970
- .property-example-label[data-v-d4aafe56],
10971
- .property-example-value[data-v-d4aafe56] {
10970
+ .property-example-label[data-v-2f27e69f],
10971
+ .property-example-value[data-v-2f27e69f] {
10972
10972
  padding: 3px 0 0 0;
10973
10973
  }
10974
- .property-example-value[data-v-d4aafe56] {
10974
+ .property-example-value[data-v-2f27e69f] {
10975
10975
  background: var(--scalar-background-2);
10976
10976
  border-top: 0;
10977
10977
  border-radius: var(--scalar-radius);
10978
10978
  padding: 3px 4px;
10979
10979
  }
10980
- .property-name[data-v-d4aafe56] {
10980
+ .property-name[data-v-2f27e69f] {
10981
10981
  font-family: var(--scalar-font-code);
10982
10982
  font-weight: var(--scalar-semibold);
10983
10983
  }
10984
- .property-name-additional-properties[data-v-d4aafe56]::before,
10985
- .property-name-pattern-properties[data-v-d4aafe56]::before {
10984
+ .property-name-additional-properties[data-v-2f27e69f]::before,
10985
+ .property-name-pattern-properties[data-v-2f27e69f]::before {
10986
10986
  text-transform: uppercase;
10987
10987
  font-size: var(--scalar-micro);
10988
10988
  display: inline-block;
@@ -10993,11 +10993,11 @@ code.property-detail-value[data-v-1295f965] {
10993
10993
  background-color: var(--scalar-background-2);
10994
10994
  margin-right: 4px;
10995
10995
  }
10996
- .property-name-pattern-properties[data-v-d4aafe56]::before {
10996
+ .property-name-pattern-properties[data-v-2f27e69f]::before {
10997
10997
  content: 'regex';
10998
10998
  }
10999
- .property-name-additional-properties[data-v-d4aafe56],
11000
- .property-name-pattern-properties[data-v-d4aafe56] {
10999
+ .property-name-additional-properties[data-v-2f27e69f],
11000
+ .property-name-pattern-properties[data-v-2f27e69f] {
11001
11001
  border: 1px dashed var(--scalar-border-color);
11002
11002
  color: var(--scalar-color-accent);
11003
11003
  display: inline-block;
@@ -11726,10 +11726,10 @@ code.property-detail-value[data-v-1295f965] {
11726
11726
  padding: 0;
11727
11727
  }
11728
11728
 
11729
- .response-card[data-v-42d379d9] {
11729
+ .response-card[data-v-b11d04bc] {
11730
11730
  font-size: var(--scalar-font-size-3);
11731
11731
  }
11732
- .response-card-footer[data-v-42d379d9] {
11732
+ .response-card-footer[data-v-b11d04bc] {
11733
11733
  display: flex;
11734
11734
  flex-direction: row-reverse;
11735
11735
  flex-wrap: wrap;
@@ -11738,11 +11738,11 @@ code.property-detail-value[data-v-1295f965] {
11738
11738
  padding: 7px 12px;
11739
11739
  column-gap: 8px;
11740
11740
  }
11741
- .response-example-selector[data-v-42d379d9] {
11741
+ .response-example-selector[data-v-b11d04bc] {
11742
11742
  flex-shrink: 0;
11743
11743
  margin: -4px;
11744
11744
  }
11745
- .response-description[data-v-42d379d9] {
11745
+ .response-description[data-v-b11d04bc] {
11746
11746
  font-weight: var(--scalar-semibold);
11747
11747
  font-size: var(--scalar-small);
11748
11748
  color: var(--scalar-color--1);
@@ -11751,13 +11751,13 @@ code.property-detail-value[data-v-1295f965] {
11751
11751
 
11752
11752
  flex-grow: 1;
11753
11753
  }
11754
- .response-description-markdown[data-v-42d379d9] {
11754
+ .response-description-markdown[data-v-b11d04bc] {
11755
11755
  max-height: 3lh;
11756
11756
  }
11757
- .response-description-markdown[data-v-42d379d9] * {
11757
+ .response-description-markdown[data-v-b11d04bc] * {
11758
11758
  margin: 0;
11759
11759
  }
11760
- .schema-type[data-v-42d379d9] {
11760
+ .schema-type[data-v-b11d04bc] {
11761
11761
  font-size: var(--scalar-micro);
11762
11762
  color: var(--scalar-color-2);
11763
11763
  font-weight: var(--scalar-semibold);
@@ -11766,16 +11766,16 @@ code.property-detail-value[data-v-1295f965] {
11766
11766
  border-radius: 4px;
11767
11767
  margin-right: 4px;
11768
11768
  }
11769
- .schema-example[data-v-42d379d9] {
11769
+ .schema-example[data-v-b11d04bc] {
11770
11770
  font-size: var(--scalar-micro);
11771
11771
  color: var(--scalar-color-2);
11772
11772
  font-weight: var(--scalar-semibold);
11773
11773
  }
11774
- .example-response-tab[data-v-42d379d9] {
11774
+ .example-response-tab[data-v-b11d04bc] {
11775
11775
  display: block;
11776
11776
  margin: 6px;
11777
11777
  }
11778
- .scalar-card-checkbox[data-v-42d379d9] {
11778
+ .scalar-card-checkbox[data-v-b11d04bc] {
11779
11779
  display: flex;
11780
11780
  align-items: center;
11781
11781
  justify-content: center;
@@ -11792,20 +11792,20 @@ code.property-detail-value[data-v-1295f965] {
11792
11792
  padding: 7px 6px;
11793
11793
  }
11794
11794
  .scalar-card-checkbox:has(.scalar-card-checkbox-input:focus-visible)
11795
- .scalar-card-checkbox-checkmark[data-v-42d379d9] {
11795
+ .scalar-card-checkbox-checkmark[data-v-b11d04bc] {
11796
11796
  outline: 1px solid var(--scalar-focus-color);
11797
11797
  }
11798
- .scalar-card-checkbox[data-v-42d379d9]:hover {
11798
+ .scalar-card-checkbox[data-v-b11d04bc]:hover {
11799
11799
  color: var(--scalar-color--1);
11800
11800
  }
11801
- .scalar-card-checkbox .scalar-card-checkbox-input[data-v-42d379d9] {
11801
+ .scalar-card-checkbox .scalar-card-checkbox-input[data-v-b11d04bc] {
11802
11802
  position: absolute;
11803
11803
  opacity: 0;
11804
11804
  cursor: pointer;
11805
11805
  height: 0;
11806
11806
  width: 0;
11807
11807
  }
11808
- .scalar-card-checkbox-checkmark[data-v-42d379d9] {
11808
+ .scalar-card-checkbox-checkmark[data-v-b11d04bc] {
11809
11809
  height: 16px;
11810
11810
  width: 16px;
11811
11811
  border-radius: var(--scalar-radius);
@@ -11813,27 +11813,27 @@ code.property-detail-value[data-v-1295f965] {
11813
11813
  background-color: var(--scalar-background-3);
11814
11814
  box-shadow: inset 0 0 0 var(--scalar-border-width) var(--scalar-border-color);
11815
11815
  }
11816
- .scalar-card-checkbox[data-v-42d379d9]:has(.scalar-card-checkbox-input:checked) {
11816
+ .scalar-card-checkbox[data-v-b11d04bc]:has(.scalar-card-checkbox-input:checked) {
11817
11817
  color: var(--scalar-color-1);
11818
11818
  font-weight: var(--scalar-semibold);
11819
11819
  }
11820
11820
  .scalar-card-checkbox
11821
11821
  .scalar-card-checkbox-input:checked
11822
- ~ .scalar-card-checkbox-checkmark[data-v-42d379d9] {
11822
+ ~ .scalar-card-checkbox-checkmark[data-v-b11d04bc] {
11823
11823
  background-color: var(--scalar-button-1);
11824
11824
  box-shadow: none;
11825
11825
  }
11826
- .scalar-card-checkbox-checkmark[data-v-42d379d9]:after {
11826
+ .scalar-card-checkbox-checkmark[data-v-b11d04bc]:after {
11827
11827
  content: '';
11828
11828
  position: absolute;
11829
11829
  display: none;
11830
11830
  }
11831
11831
  .scalar-card-checkbox
11832
11832
  .scalar-card-checkbox-input:checked
11833
- ~ .scalar-card-checkbox-checkmark[data-v-42d379d9]:after {
11833
+ ~ .scalar-card-checkbox-checkmark[data-v-b11d04bc]:after {
11834
11834
  display: block;
11835
11835
  }
11836
- .scalar-card-checkbox .scalar-card-checkbox-checkmark[data-v-42d379d9]:after {
11836
+ .scalar-card-checkbox .scalar-card-checkbox-checkmark[data-v-b11d04bc]:after {
11837
11837
  right: 11.5px;
11838
11838
  top: 12.5px;
11839
11839
  width: 5px;
@@ -12490,7 +12490,7 @@ body {
12490
12490
 
12491
12491
  /* Configurable Layout Variables */
12492
12492
  @layer scalar-config {
12493
- .scalar-api-reference[data-v-9c0b73a6] {
12493
+ .scalar-api-reference[data-v-84668ce7] {
12494
12494
  /* The header height */
12495
12495
  --refs-header-height: calc(
12496
12496
  var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
@@ -12512,20 +12512,20 @@ body {
12512
12512
  /* The maximum width of the content column */
12513
12513
  --refs-content-max-width: var(--scalar-content-max-width, 1540px);
12514
12514
  }
12515
- .scalar-api-reference.references-classic[data-v-9c0b73a6] {
12515
+ .scalar-api-reference.references-classic[data-v-84668ce7] {
12516
12516
  /* Classic layout is wider */
12517
12517
  --refs-content-max-width: var(--scalar-content-max-width, 1420px);
12518
12518
  min-height: 100dvh;
12519
12519
  --refs-sidebar-width: 0;
12520
12520
  }
12521
12521
  }
12522
- .t-doc__sidebar[data-v-9c0b73a6] {
12522
+ .t-doc__sidebar[data-v-84668ce7] {
12523
12523
  z-index: 10;
12524
12524
  }
12525
12525
 
12526
12526
  /* ----------------------------------------------------- */
12527
12527
  /* References Layout */
12528
- .references-layout[data-v-9c0b73a6] {
12528
+ .references-layout[data-v-84668ce7] {
12529
12529
  /* Try to fill the container */
12530
12530
  min-height: 100dvh;
12531
12531
  min-width: 100%;
@@ -12549,36 +12549,36 @@ body {
12549
12549
 
12550
12550
  background: var(--scalar-background-1);
12551
12551
  }
12552
- .references-editor[data-v-9c0b73a6] {
12552
+ .references-editor[data-v-84668ce7] {
12553
12553
  grid-area: editor;
12554
12554
  display: flex;
12555
12555
  min-width: 0;
12556
12556
  background: var(--scalar-background-1);
12557
12557
  }
12558
- .references-rendered[data-v-9c0b73a6] {
12558
+ .references-rendered[data-v-84668ce7] {
12559
12559
  position: relative;
12560
12560
  grid-area: rendered;
12561
12561
  min-width: 0;
12562
12562
  background: var(--scalar-background-1);
12563
12563
  }
12564
- .scalar-api-reference.references-classic[data-v-9c0b73a6],
12565
- .references-classic .references-rendered[data-v-9c0b73a6] {
12564
+ .scalar-api-reference.references-classic[data-v-84668ce7],
12565
+ .references-classic .references-rendered[data-v-84668ce7] {
12566
12566
  height: initial !important;
12567
12567
  max-height: initial !important;
12568
12568
  }
12569
12569
  /* Give the classic layout some breathing room at the end of the scroll */
12570
- .references-classic .references-rendered[data-v-9c0b73a6] {
12570
+ .references-classic .references-rendered[data-v-84668ce7] {
12571
12571
  padding-bottom: 80px;
12572
12572
  }
12573
12573
  @layer scalar-config {
12574
- .references-sidebar[data-v-9c0b73a6] {
12574
+ .references-sidebar[data-v-84668ce7] {
12575
12575
  /* Set a default width if references are enabled */
12576
12576
  --refs-sidebar-width: var(--scalar-sidebar-width, 288px);
12577
12577
  }
12578
12578
  }
12579
12579
 
12580
12580
  /* Footer */
12581
- .references-footer[data-v-9c0b73a6] {
12581
+ .references-footer[data-v-84668ce7] {
12582
12582
  grid-area: footer;
12583
12583
  }
12584
12584
  /* ----------------------------------------------------- */
@@ -12594,12 +12594,12 @@ body {
12594
12594
  */
12595
12595
  @media (width < 1000px) {
12596
12596
  /* Keep toolbar hidden on mobile without forcing desktop display mode. */
12597
- .references-developer-tools[data-v-9c0b73a6] {
12597
+ .references-developer-tools[data-v-84668ce7] {
12598
12598
  display: none;
12599
12599
  }
12600
12600
 
12601
12601
  /* Stack view on mobile */
12602
- .references-layout[data-v-9c0b73a6] {
12602
+ .references-layout[data-v-84668ce7] {
12603
12603
  /* Adjust the sidebar height to the viewport height minus the header height */
12604
12604
  --refs-sidebar-height: calc(
12605
12605
  var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
@@ -12614,13 +12614,13 @@ body {
12614
12614
  'rendered'
12615
12615
  'footer';
12616
12616
  }
12617
- .references-editable[data-v-9c0b73a6] {
12617
+ .references-editable[data-v-84668ce7] {
12618
12618
  grid-template-areas:
12619
12619
  'header'
12620
12620
  'navigation'
12621
12621
  'editor';
12622
12622
  }
12623
- .references-rendered[data-v-9c0b73a6] {
12623
+ .references-rendered[data-v-84668ce7] {
12624
12624
  position: static;
12625
12625
  }
12626
12626
  }
@@ -12632,12 +12632,12 @@ body {
12632
12632
  */
12633
12633
  /* Match the layout breakpoint above so the mobile header height is only applied below `lg`. */
12634
12634
  @media (width < 1000px) {
12635
- .scalar-api-references-standalone-mobile[data-v-9c0b73a6]:not(.references-classic) {
12635
+ .scalar-api-references-standalone-mobile[data-v-84668ce7]:not(.references-classic) {
12636
12636
  --scalar-header-height: 50px;
12637
12637
  }
12638
12638
  }
12639
12639
 
12640
- .darklight-reference[data-v-9c0b73a6] {
12640
+ .darklight-reference[data-v-84668ce7] {
12641
12641
  width: 100%;
12642
12642
  margin-top: auto;
12643
12643
  }
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "testing",
19
19
  "react"
20
20
  ],
21
- "version": "0.9.75",
21
+ "version": "0.9.76",
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.72.2",
43
- "@scalar/types": "0.22.2"
42
+ "@scalar/api-reference": "1.72.3",
43
+ "@scalar/types": "0.22.3"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@scalar/helpers": "0.16.0",