@scalar/api-reference-react 0.9.49 → 0.9.50

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.50
4
+
3
5
  ## 0.9.49
4
6
 
5
7
  ## 0.9.48
package/dist/style.css CHANGED
@@ -2428,40 +2428,40 @@ input[data-v-a6f4752a]::placeholder {
2428
2428
  padding: 6px 12px;
2429
2429
  display: flex;
2430
2430
  }
2431
- .request-card[data-v-b977c9e1] {
2431
+ .request-card[data-v-e8761738] {
2432
2432
  color: var(--scalar-color-1);
2433
2433
  font-size: var(--scalar-font-size-3);
2434
2434
  }
2435
- .request-method[data-v-b977c9e1] {
2435
+ .request-method[data-v-e8761738] {
2436
2436
  font-family: var(--scalar-font-code);
2437
2437
  text-transform: uppercase;
2438
2438
  margin-right: 6px;
2439
2439
  }
2440
- .request-card-footer[data-v-b977c9e1] {
2440
+ .request-card-footer[data-v-e8761738] {
2441
2441
  flex-shrink: 0;
2442
2442
  justify-content: flex-end;
2443
2443
  padding: 6px;
2444
2444
  display: flex;
2445
2445
  position: relative;
2446
2446
  }
2447
- .request-card-footer-addon[data-v-b977c9e1] {
2447
+ .request-card-footer-addon[data-v-e8761738] {
2448
2448
  flex: 1;
2449
2449
  align-items: center;
2450
2450
  min-width: 0;
2451
2451
  display: flex;
2452
2452
  }
2453
- .request-editor-section[data-v-b977c9e1] {
2453
+ .request-editor-section[data-v-e8761738] {
2454
2454
  flex: 1;
2455
2455
  display: flex;
2456
2456
  }
2457
- .request-card-simple[data-v-b977c9e1] {
2457
+ .request-card-simple[data-v-e8761738] {
2458
2458
  font-size: var(--scalar-small);
2459
2459
  justify-content: space-between;
2460
2460
  align-items: center;
2461
2461
  padding: 8px 8px 8px 12px;
2462
2462
  display: flex;
2463
2463
  }
2464
- .code-snippet[data-v-b977c9e1] {
2464
+ .code-snippet[data-v-e8761738] {
2465
2465
  flex-direction: column;
2466
2466
  width: 100%;
2467
2467
  display: flex;
@@ -8439,7 +8439,7 @@ code.property-detail-value[data-v-1295f965] {
8439
8439
  .deprecated[data-v-18714eaa] {
8440
8440
  text-decoration: line-through;
8441
8441
  }
8442
- .property[data-v-f14a8d89] {
8442
+ .property[data-v-3bdda27e] {
8443
8443
  color: var(--scalar-color-1);
8444
8444
  display: flex;
8445
8445
  flex-direction: column;
@@ -8448,7 +8448,7 @@ code.property-detail-value[data-v-1295f965] {
8448
8448
  position: relative;
8449
8449
  }
8450
8450
  /** Remove top padding for top level schema card */
8451
- .property.property--level-0[data-v-f14a8d89]:has(
8451
+ .property.property--level-0[data-v-3bdda27e]:has(
8452
8452
  > .property-rule
8453
8453
  > .schema-card
8454
8454
  > .schema-properties.schema-properties-open
@@ -8457,24 +8457,24 @@ code.property-detail-value[data-v-1295f965] {
8457
8457
  ) {
8458
8458
  padding-top: 0;
8459
8459
  }
8460
- .property--compact.property--level-0[data-v-f14a8d89],
8461
- .property--compact.property--level-1[data-v-f14a8d89] {
8460
+ .property--compact.property--level-0[data-v-3bdda27e],
8461
+ .property--compact.property--level-1[data-v-3bdda27e] {
8462
8462
  padding: 10px 0;
8463
8463
  }
8464
- .composition-panel .property.property.property.property--level-0[data-v-f14a8d89] {
8464
+ .composition-panel .property.property.property.property--level-0[data-v-3bdda27e] {
8465
8465
  padding: 0px;
8466
8466
  }
8467
8467
  .property--compact.property--level-0
8468
8468
  .composition-panel
8469
- .property--compact.property--level-1[data-v-f14a8d89] {
8469
+ .property--compact.property--level-1[data-v-3bdda27e] {
8470
8470
  padding: 8px;
8471
8471
  }
8472
8472
  /* if a property doesn't have a heading, remove the top padding */
8473
- .property[data-v-f14a8d89]:has(> .property-rule:nth-of-type(1)):not(.property--compact) {
8473
+ .property[data-v-3bdda27e]:has(> .property-rule:nth-of-type(1)):not(.property--compact) {
8474
8474
  padding-top: 8px;
8475
8475
  padding-bottom: 8px;
8476
8476
  }
8477
- .property--deprecated[data-v-f14a8d89] {
8477
+ .property--deprecated[data-v-3bdda27e] {
8478
8478
  background: repeating-linear-gradient(
8479
8479
  -45deg,
8480
8480
  var(--scalar-background-2) 0,
@@ -8484,49 +8484,49 @@ code.property-detail-value[data-v-1295f965] {
8484
8484
  );
8485
8485
  background-size: 100%;
8486
8486
  }
8487
- .property--deprecated[data-v-f14a8d89] > * {
8487
+ .property--deprecated[data-v-3bdda27e] > * {
8488
8488
  opacity: 0.75;
8489
8489
  }
8490
- .property-description[data-v-f14a8d89] {
8490
+ .property-description[data-v-3bdda27e] {
8491
8491
  margin-top: 6px;
8492
8492
  line-height: 1.4;
8493
8493
  font-size: var(--scalar-small);
8494
8494
  }
8495
- .property-description[data-v-f14a8d89]:has(+ .property-rule) {
8495
+ .property-description[data-v-3bdda27e]:has(+ .property-rule) {
8496
8496
  margin-bottom: 9px;
8497
8497
  }
8498
- [data-v-f14a8d89] .property-description * {
8498
+ [data-v-3bdda27e] .property-description * {
8499
8499
  color: var(--scalar-color-2) !important;
8500
8500
  }
8501
- .property[data-v-f14a8d89]:not(:last-of-type) {
8501
+ .property[data-v-3bdda27e]:not(:last-of-type) {
8502
8502
  border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
8503
8503
  }
8504
- .property-description + .children[data-v-f14a8d89],
8505
- .children + .property-rule[data-v-f14a8d89] {
8504
+ .property-description + .children[data-v-3bdda27e],
8505
+ .children + .property-rule[data-v-3bdda27e] {
8506
8506
  margin-top: 9px;
8507
8507
  }
8508
- .children[data-v-f14a8d89] {
8508
+ .children[data-v-3bdda27e] {
8509
8509
  display: flex;
8510
8510
  flex-direction: column;
8511
8511
  }
8512
- .children .property--compact.property--level-1[data-v-f14a8d89] {
8512
+ .children .property--compact.property--level-1[data-v-3bdda27e] {
8513
8513
  padding: 12px;
8514
8514
  }
8515
- .property-example-value[data-v-f14a8d89] {
8515
+ .property-example-value[data-v-3bdda27e] {
8516
8516
  all: unset;
8517
8517
  font-family: var(--scalar-font-code);
8518
8518
  padding: 6px;
8519
8519
  border-top: var(--scalar-border-width) solid var(--scalar-border-color);
8520
8520
  }
8521
- .property-rule[data-v-f14a8d89] {
8521
+ .property-rule[data-v-3bdda27e] {
8522
8522
  border-radius: var(--scalar-radius-lg);
8523
8523
  display: flex;
8524
8524
  flex-direction: column;
8525
8525
  }
8526
- .property--level-2[data-v-f14a8d89] .relative > button {
8526
+ .property--level-2[data-v-3bdda27e] .relative > button {
8527
8527
  left: -2rem;
8528
8528
  }
8529
- .property-rule[data-v-f14a8d89]
8529
+ .property-rule[data-v-3bdda27e]
8530
8530
 
8531
8531
  .composition-panel
8532
8532
  .schema-card--level-1
@@ -8534,7 +8534,7 @@ code.property-detail-value[data-v-1295f965] {
8534
8534
  {
8535
8535
  border-radius: 0 0 var(--scalar-radius-lg) var(--scalar-radius-lg);
8536
8536
  }
8537
- .property-rule[data-v-f14a8d89]
8537
+ .property-rule[data-v-3bdda27e]
8538
8538
  .composition-panel > .schema-card > .schema-card-description {
8539
8539
  padding: 10px;
8540
8540
  border-left: var(--scalar-border-width) solid var(--scalar-border-color);
@@ -8543,29 +8543,29 @@ code.property-detail-value[data-v-1295f965] {
8543
8543
  margin-top: 0;
8544
8544
  }
8545
8545
  }
8546
- .property-example[data-v-f14a8d89] {
8546
+ .property-example[data-v-3bdda27e] {
8547
8547
  background: transparent;
8548
8548
  border: none;
8549
8549
  display: flex;
8550
8550
  flex-direction: row;
8551
8551
  gap: 8px;
8552
8552
  }
8553
- .property-example-label[data-v-f14a8d89],
8554
- .property-example-value[data-v-f14a8d89] {
8553
+ .property-example-label[data-v-3bdda27e],
8554
+ .property-example-value[data-v-3bdda27e] {
8555
8555
  padding: 3px 0 0 0;
8556
8556
  }
8557
- .property-example-value[data-v-f14a8d89] {
8557
+ .property-example-value[data-v-3bdda27e] {
8558
8558
  background: var(--scalar-background-2);
8559
8559
  border-top: 0;
8560
8560
  border-radius: var(--scalar-radius);
8561
8561
  padding: 3px 4px;
8562
8562
  }
8563
- .property-name[data-v-f14a8d89] {
8563
+ .property-name[data-v-3bdda27e] {
8564
8564
  font-family: var(--scalar-font-code);
8565
8565
  font-weight: var(--scalar-semibold);
8566
8566
  }
8567
- .property-name-additional-properties[data-v-f14a8d89]::before,
8568
- .property-name-pattern-properties[data-v-f14a8d89]::before {
8567
+ .property-name-additional-properties[data-v-3bdda27e]::before,
8568
+ .property-name-pattern-properties[data-v-3bdda27e]::before {
8569
8569
  text-transform: uppercase;
8570
8570
  font-size: var(--scalar-micro);
8571
8571
  display: inline-block;
@@ -8576,25 +8576,25 @@ code.property-detail-value[data-v-1295f965] {
8576
8576
  background-color: var(--scalar-background-2);
8577
8577
  margin-right: 4px;
8578
8578
  }
8579
- .property-name-pattern-properties[data-v-f14a8d89]::before {
8579
+ .property-name-pattern-properties[data-v-3bdda27e]::before {
8580
8580
  content: 'regex';
8581
8581
  }
8582
- .property-name-additional-properties[data-v-f14a8d89],
8583
- .property-name-pattern-properties[data-v-f14a8d89] {
8582
+ .property-name-additional-properties[data-v-3bdda27e],
8583
+ .property-name-pattern-properties[data-v-3bdda27e] {
8584
8584
  border: 1px dashed var(--scalar-border-color);
8585
8585
  color: var(--scalar-color-accent);
8586
8586
  display: inline-block;
8587
8587
  padding: 2px;
8588
8588
  border-radius: var(--scalar-radius);
8589
8589
  }
8590
- .error[data-v-b482770e] {
8590
+ .error[data-v-e811e294] {
8591
8591
  background-color: var(--scalar-color-red);
8592
8592
  }
8593
- .schema-card[data-v-b482770e] {
8593
+ .schema-card[data-v-e811e294] {
8594
8594
  font-size: var(--scalar-font-size-4);
8595
8595
  color: var(--scalar-color-1);
8596
8596
  }
8597
- .schema-card-title[data-v-b482770e] {
8597
+ .schema-card-title[data-v-e811e294] {
8598
8598
  height: var(--schema-title-height);
8599
8599
 
8600
8600
  padding: 6px 8px;
@@ -8608,48 +8608,48 @@ code.property-detail-value[data-v-1295f965] {
8608
8608
  font-size: var(--scalar-mini);
8609
8609
  border-bottom: var(--scalar-border-width) solid transparent;
8610
8610
  }
8611
- button.schema-card-title[data-v-b482770e] {
8611
+ button.schema-card-title[data-v-e811e294] {
8612
8612
  cursor: pointer;
8613
8613
  }
8614
- button.schema-card-title[data-v-b482770e]:hover {
8614
+ button.schema-card-title[data-v-e811e294]:hover {
8615
8615
  color: var(--scalar-color-1);
8616
8616
  }
8617
- .schema-card-title-icon--open[data-v-b482770e] {
8617
+ .schema-card-title-icon--open[data-v-e811e294] {
8618
8618
  transform: rotate(45deg);
8619
8619
  }
8620
- .schema-properties-open > .schema-card-title[data-v-b482770e] {
8620
+ .schema-properties-open > .schema-card-title[data-v-e811e294] {
8621
8621
  border-bottom-left-radius: 0;
8622
8622
  border-bottom-right-radius: 0;
8623
8623
  border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
8624
8624
  }
8625
- .schema-properties-open > .schema-properties[data-v-b482770e] {
8625
+ .schema-properties-open > .schema-properties[data-v-e811e294] {
8626
8626
  width: fit-content;
8627
8627
  }
8628
- .schema-card-description[data-v-b482770e] {
8628
+ .schema-card-description[data-v-e811e294] {
8629
8629
  color: var(--scalar-color-2);
8630
8630
  }
8631
- .schema-card-description + .schema-properties[data-v-b482770e] {
8631
+ .schema-card-description + .schema-properties[data-v-e811e294] {
8632
8632
  width: fit-content;
8633
8633
  }
8634
- .schema-card-description + .schema-properties[data-v-b482770e] {
8634
+ .schema-card-description + .schema-properties[data-v-e811e294] {
8635
8635
  margin-top: 8px;
8636
8636
  }
8637
8637
  .schema-card--level-0:nth-of-type(1)
8638
- > .schema-card-description[data-v-b482770e]:has(+ .schema-properties) {
8638
+ > .schema-card-description[data-v-e811e294]:has(+ .schema-properties) {
8639
8639
  margin-bottom: -8px;
8640
8640
  padding-bottom: 8px;
8641
8641
  border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
8642
8642
  }
8643
8643
  .schema-card--level-0
8644
8644
  ~ .schema-card--level-0
8645
- > .schema-card-description[data-v-b482770e]:has(+ .schema-properties) {
8645
+ > .schema-card-description[data-v-e811e294]:has(+ .schema-properties) {
8646
8646
  padding-top: 8px;
8647
8647
  }
8648
- .schema-properties-open.schema-properties[data-v-b482770e],
8649
- .schema-properties-open > .schema-card--open[data-v-b482770e] {
8648
+ .schema-properties-open.schema-properties[data-v-e811e294],
8649
+ .schema-properties-open > .schema-card--open[data-v-e811e294] {
8650
8650
  width: 100%;
8651
8651
  }
8652
- .schema-properties[data-v-b482770e] {
8652
+ .schema-properties[data-v-e811e294] {
8653
8653
  display: flex;
8654
8654
  flex-direction: column;
8655
8655
 
@@ -8657,63 +8657,63 @@ button.schema-card-title[data-v-b482770e]:hover {
8657
8657
  border-radius: var(--scalar-radius-lg);
8658
8658
  width: fit-content;
8659
8659
  }
8660
- .schema-properties-name[data-v-b482770e] {
8660
+ .schema-properties-name[data-v-e811e294] {
8661
8661
  width: 100%;
8662
8662
  }
8663
- .schema-properties .schema-properties[data-v-b482770e] {
8663
+ .schema-properties .schema-properties[data-v-e811e294] {
8664
8664
  border-radius: 13.5px;
8665
8665
  }
8666
- .schema-properties .schema-properties.schema-properties-open[data-v-b482770e] {
8666
+ .schema-properties .schema-properties.schema-properties-open[data-v-e811e294] {
8667
8667
  border-radius: var(--scalar-radius-lg);
8668
8668
  }
8669
- .schema-properties-open[data-v-b482770e] {
8669
+ .schema-properties-open[data-v-e811e294] {
8670
8670
  width: 100%;
8671
8671
  }
8672
- .schema-card--compact[data-v-b482770e] {
8672
+ .schema-card--compact[data-v-e811e294] {
8673
8673
  align-self: flex-start;
8674
8674
  }
8675
- .schema-card--compact.schema-card--open[data-v-b482770e] {
8675
+ .schema-card--compact.schema-card--open[data-v-e811e294] {
8676
8676
  align-self: initial;
8677
8677
  }
8678
- .schema-card-title--compact[data-v-b482770e] {
8678
+ .schema-card-title--compact[data-v-e811e294] {
8679
8679
  color: var(--scalar-color-2);
8680
8680
  padding: 6px 10px 6px 8px;
8681
8681
  height: auto;
8682
8682
  border-bottom: none;
8683
8683
  }
8684
- .schema-card-title--compact > .schema-card-title-icon[data-v-b482770e] {
8684
+ .schema-card-title--compact > .schema-card-title-icon[data-v-e811e294] {
8685
8685
  margin: 0;
8686
8686
  }
8687
- .schema-card-title--compact > .schema-card-title-icon--open[data-v-b482770e] {
8687
+ .schema-card-title--compact > .schema-card-title-icon--open[data-v-e811e294] {
8688
8688
  transform: rotate(45deg);
8689
8689
  }
8690
- .schema-properties-open > .schema-card-title--compact[data-v-b482770e] {
8690
+ .schema-properties-open > .schema-card-title--compact[data-v-e811e294] {
8691
8691
  position: static;
8692
8692
  }
8693
8693
  .property--level-0
8694
8694
  > .schema-properties
8695
8695
  > .schema-card--level-0
8696
- > .schema-properties[data-v-b482770e] {
8696
+ > .schema-properties[data-v-e811e294] {
8697
8697
  border: none;
8698
8698
  }
8699
8699
  .property--level-0
8700
8700
  .schema-card--level-0:not(.schema-card--compact)
8701
- .property--level-1[data-v-b482770e] {
8701
+ .property--level-1[data-v-e811e294] {
8702
8702
  padding: 0 0 8px;
8703
8703
  }
8704
8704
  :not(.composition-panel)
8705
8705
  > .schema-card--compact.schema-card--level-0
8706
- > .schema-properties[data-v-b482770e] {
8706
+ > .schema-properties[data-v-e811e294] {
8707
8707
  border: none;
8708
8708
  }
8709
- [data-v-b482770e] .schema-card-description p {
8709
+ [data-v-e811e294] .schema-card-description p {
8710
8710
  font-size: var(--scalar-small, var(--scalar-paragraph));
8711
8711
  color: var(--scalar-color-2);
8712
8712
  margin-bottom: 0;
8713
8713
  display: block;
8714
8714
  margin-bottom: 6px;
8715
8715
  }
8716
- .children .schema-card-description[data-v-b482770e]:first-of-type {
8716
+ .children .schema-card-description[data-v-e811e294]:first-of-type {
8717
8717
  padding-top: 0;
8718
8718
  }
8719
8719
  .section-wrapper[data-v-ff689b94] {
@@ -9257,10 +9257,10 @@ button.headers-card-title[data-v-b7ba0e6f]:hover {
9257
9257
  .deprecated[data-v-ec6c8861] {
9258
9258
  text-decoration: line-through;
9259
9259
  }
9260
- .request-body[data-v-6092df54] {
9260
+ .request-body[data-v-96399c9a] {
9261
9261
  margin-top: 24px;
9262
9262
  }
9263
- .request-body-header[data-v-6092df54] {
9263
+ .request-body-header[data-v-96399c9a] {
9264
9264
  display: flex;
9265
9265
  align-items: center;
9266
9266
  justify-content: space-between;
@@ -9268,7 +9268,7 @@ button.headers-card-title[data-v-b7ba0e6f]:hover {
9268
9268
  border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
9269
9269
  flex-flow: wrap;
9270
9270
  }
9271
- .request-body-title[data-v-6092df54] {
9271
+ .request-body-title[data-v-96399c9a] {
9272
9272
  display: flex;
9273
9273
  align-items: center;
9274
9274
  gap: 8px;
@@ -9276,7 +9276,7 @@ button.headers-card-title[data-v-b7ba0e6f]:hover {
9276
9276
  font-weight: var(--scalar-semibold);
9277
9277
  color: var(--scalar-color-1);
9278
9278
  }
9279
- .request-body-required[data-v-6092df54] {
9279
+ .request-body-required[data-v-96399c9a] {
9280
9280
  font-size: var(--scalar-micro);
9281
9281
  color: var(--scalar-color-orange);
9282
9282
  font-weight: normal;
@@ -9285,21 +9285,21 @@ button.headers-card-title[data-v-b7ba0e6f]:hover {
9285
9285
  padding: 2px 8px;
9286
9286
  height: 20px;
9287
9287
  }
9288
- .request-body-description[data-v-6092df54] {
9288
+ .request-body-description[data-v-96399c9a] {
9289
9289
  margin-top: 6px;
9290
9290
  font-size: var(--scalar-small);
9291
9291
  width: 100%;
9292
9292
  }
9293
9293
  .request-body-header
9294
- + .request-body-schema[data-v-6092df54]:has(> .schema-card > .schema-card-description),
9294
+ + .request-body-schema[data-v-96399c9a]:has(> .schema-card > .schema-card-description),
9295
9295
  .request-body-header
9296
- + .request-body-schema[data-v-6092df54]:has(
9296
+ + .request-body-schema[data-v-96399c9a]:has(
9297
9297
  > .schema-card > .schema-properties > * > .property--level-0
9298
9298
  ) {
9299
9299
  /** Add a bit of space between the heading border and the schema description or properties */
9300
9300
  padding-top: 8px;
9301
9301
  }
9302
- .request-body-description[data-v-6092df54] .markdown * {
9302
+ .request-body-description[data-v-96399c9a] .markdown * {
9303
9303
  color: var(--scalar-color-2) !important;
9304
9304
  }
9305
9305
  .callback-sticky-offset[data-v-474e6fa6] {
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "testing",
19
19
  "react"
20
20
  ],
21
- "version": "0.9.49",
21
+ "version": "0.9.50",
22
22
  "engines": {
23
23
  "node": ">=22"
24
24
  },
@@ -39,7 +39,7 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@scalar/api-reference": "1.62.0",
42
+ "@scalar/api-reference": "1.62.1",
43
43
  "@scalar/types": "0.16.0"
44
44
  },
45
45
  "devDependencies": {