@scalar/api-reference-react 0.9.93 → 0.9.95
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 +8 -0
- package/dist/style.css +210 -104
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/style.css
CHANGED
|
@@ -402,6 +402,49 @@
|
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
+
.light-mode, .dark-mode, .light-mode .dark-mode, .dark-mode .light-mode {
|
|
406
|
+
--scalar-code-keyword: var(--scalar-color-purple);
|
|
407
|
+
--scalar-code-string: var(--scalar-color-blue);
|
|
408
|
+
--scalar-code-number: var(--scalar-color-orange);
|
|
409
|
+
--scalar-code-function: var(--scalar-color-orange);
|
|
410
|
+
--scalar-code-builtin: var(--scalar-color-blue);
|
|
411
|
+
--scalar-code-type: var(--scalar-color-1);
|
|
412
|
+
--scalar-code-parameter: var(--scalar-color-red);
|
|
413
|
+
--scalar-code-property: var(--scalar-color-green);
|
|
414
|
+
--scalar-code-comment: var(--scalar-color-2);
|
|
415
|
+
--scalar-code-punctuation: var(--scalar-color-2);
|
|
416
|
+
--scalar-code-addition: var(--scalar-color-green);
|
|
417
|
+
--scalar-code-deletion: var(--scalar-color-red);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
@supports (color: oklch(from white l c h)) {
|
|
421
|
+
.light-mode, .dark-mode .light-mode {
|
|
422
|
+
--scalar-code-keyword: oklch(from var(--scalar-color-purple) min(l, .395) min(c, .22) h);
|
|
423
|
+
--scalar-code-string: oklch(from var(--scalar-color-blue) min(l, .55) min(c, .14) h);
|
|
424
|
+
--scalar-code-number: oklch(from var(--scalar-color-orange) min(l, .59) min(c, .17) calc(h + 3));
|
|
425
|
+
--scalar-code-function: oklch(from var(--scalar-color-orange) min(l, .59) min(c, .17) calc(h + 3));
|
|
426
|
+
--scalar-code-builtin: oklch(from var(--scalar-color-blue) min(l, .55) min(c, .14) h);
|
|
427
|
+
--scalar-code-type: oklch(from var(--scalar-color-blue) min(l, .33) min(c, .1) calc(h + 8));
|
|
428
|
+
--scalar-code-parameter: oklch(from var(--scalar-color-red) min(l, .5) min(c, .2) calc(h - 14));
|
|
429
|
+
--scalar-code-property: oklch(from var(--scalar-color-green) min(l, .51) min(c, .11) h);
|
|
430
|
+
--scalar-code-addition: oklch(from var(--scalar-color-green) min(l, .51) min(c, .11) h);
|
|
431
|
+
--scalar-code-deletion: oklch(from var(--scalar-color-red) min(l, .5) min(c, .2) calc(h - 14));
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.dark-mode, .light-mode .dark-mode {
|
|
435
|
+
--scalar-code-keyword: oklch(from var(--scalar-color-purple) max(l, .68) c h);
|
|
436
|
+
--scalar-code-string: oklch(from var(--scalar-color-blue) max(l, .68) c h);
|
|
437
|
+
--scalar-code-number: oklch(from var(--scalar-color-orange) max(l, .75) min(c, .16) h);
|
|
438
|
+
--scalar-code-function: oklch(from var(--scalar-color-orange) max(l, .75) min(c, .16) h);
|
|
439
|
+
--scalar-code-builtin: oklch(from var(--scalar-color-blue) max(l, .68) c h);
|
|
440
|
+
--scalar-code-type: oklch(from var(--scalar-color-blue) max(l, .85) min(c, .075) h);
|
|
441
|
+
--scalar-code-parameter: oklch(from var(--scalar-color-red) max(l, .68) min(c, .19) calc(h - 14));
|
|
442
|
+
--scalar-code-property: oklch(from var(--scalar-color-green) max(l, .68) c h);
|
|
443
|
+
--scalar-code-addition: oklch(from var(--scalar-color-green) max(l, .68) c h);
|
|
444
|
+
--scalar-code-deletion: oklch(from var(--scalar-color-red) max(l, .68) min(c, .19) calc(h - 14));
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
405
448
|
:root, :host {
|
|
406
449
|
--tracking-tight: -.025em;
|
|
407
450
|
--tracking-widest: .1em;
|
|
@@ -761,10 +804,6 @@
|
|
|
761
804
|
margin-block: 2px -2px;
|
|
762
805
|
}
|
|
763
806
|
|
|
764
|
-
.scalar-app .hljs-regexp, .scalar-app .hljs-string, .scalar-app .hljs-built_in, .scalar-app .hljs-subst, .scalar-app .hljs-name, .scalar-app .hljs-doctag, .scalar-app .hljs-section, .scalar-app .hljs-title {
|
|
765
|
-
color: var(--scalar-color-blue);
|
|
766
|
-
}
|
|
767
|
-
|
|
768
807
|
.scalar-code-block-pre {
|
|
769
808
|
font-family: var(--scalar-font-code);
|
|
770
809
|
font-variant-ligatures: none;
|
|
@@ -856,8 +895,8 @@
|
|
|
856
895
|
filter: brightness(1.1);
|
|
857
896
|
}
|
|
858
897
|
|
|
859
|
-
.scalar-icon[data-v-
|
|
860
|
-
stroke-width: var(--
|
|
898
|
+
.scalar-icon[data-v-6150d8b1], .scalar-icon[data-v-6150d8b1] * {
|
|
899
|
+
stroke-width: var(--scalar-icon-stroke-width);
|
|
861
900
|
}
|
|
862
901
|
|
|
863
902
|
:where(pre:has( > code.hljs)) {
|
|
@@ -878,13 +917,13 @@
|
|
|
878
917
|
.scalar-app code.hljs {
|
|
879
918
|
all: unset;
|
|
880
919
|
font-size: inherit;
|
|
881
|
-
color: var(--scalar-color-
|
|
920
|
+
color: var(--scalar-color-1);
|
|
882
921
|
font-family: var(--scalar-font-code);
|
|
883
922
|
counter-reset: linenumber;
|
|
884
923
|
}
|
|
885
924
|
|
|
886
925
|
.scalar-app .hljs {
|
|
887
|
-
color: var(--scalar-color-
|
|
926
|
+
color: var(--scalar-color-1);
|
|
888
927
|
background: none;
|
|
889
928
|
}
|
|
890
929
|
|
|
@@ -899,64 +938,60 @@
|
|
|
899
938
|
}
|
|
900
939
|
|
|
901
940
|
.scalar-app .hljs-comment, .scalar-app .hljs-quote {
|
|
902
|
-
color: var(--scalar-color-
|
|
941
|
+
color: var(--scalar-code-comment, var(--scalar-color-2));
|
|
903
942
|
font-style: italic;
|
|
904
943
|
}
|
|
905
944
|
|
|
906
|
-
.scalar-app .hljs-
|
|
907
|
-
color: var(--scalar-color-
|
|
945
|
+
.scalar-app .hljs-punctuation, .scalar-app .hljs-operator, .scalar-app .hljs-bullet {
|
|
946
|
+
color: var(--scalar-code-punctuation, var(--scalar-color-2));
|
|
908
947
|
}
|
|
909
948
|
|
|
910
|
-
.scalar-app .hljs-
|
|
911
|
-
color: var(--scalar-color-
|
|
949
|
+
.scalar-app .hljs-number, .scalar-app .hljs-literal, .scalar-app .hljs-symbol {
|
|
950
|
+
color: var(--scalar-code-number, var(--scalar-color-orange));
|
|
912
951
|
}
|
|
913
952
|
|
|
914
|
-
.scalar-app .hljs-
|
|
915
|
-
color: var(--scalar-color-
|
|
953
|
+
.scalar-app .hljs-regexp, .scalar-app .hljs-string {
|
|
954
|
+
color: var(--scalar-code-string, var(--scalar-color-blue));
|
|
916
955
|
}
|
|
917
956
|
|
|
918
|
-
.scalar-app .hljs-
|
|
919
|
-
color: var(--scalar-color-
|
|
957
|
+
.scalar-app .hljs-built_in, .scalar-app .hljs-meta {
|
|
958
|
+
color: var(--scalar-code-builtin, var(--scalar-color-blue));
|
|
920
959
|
}
|
|
921
960
|
|
|
922
|
-
.scalar-app .hljs-
|
|
923
|
-
color: var(--scalar-color-
|
|
961
|
+
.scalar-app .hljs-keyword, .scalar-app .hljs-doctag, .scalar-app .hljs-subst, .scalar-app .hljs-name {
|
|
962
|
+
color: var(--scalar-code-keyword, var(--scalar-color-purple));
|
|
924
963
|
}
|
|
925
964
|
|
|
926
|
-
.scalar-app .hljs-
|
|
927
|
-
color: var(--scalar-color-
|
|
965
|
+
.scalar-app .hljs-section, .scalar-app .hljs-link, .scalar-app .hljs-title, .scalar-app .hljs-title.function_ {
|
|
966
|
+
color: var(--scalar-code-function, var(--scalar-color-orange));
|
|
928
967
|
}
|
|
929
968
|
|
|
930
|
-
.scalar-app .hljs-
|
|
931
|
-
color: var(--scalar-color-1);
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
.scalar-app .hljs-addition, .scalar-app .hljs-literal, .scalar-app .hljs-selector-tag, .scalar-app .hljs-type {
|
|
935
|
-
color: var(--scalar-color-green);
|
|
969
|
+
.scalar-app .hljs-title.class_, .scalar-app .hljs-type {
|
|
970
|
+
color: var(--scalar-code-type, var(--scalar-color-1));
|
|
936
971
|
}
|
|
937
972
|
|
|
938
|
-
.scalar-app .hljs-
|
|
939
|
-
color: var(--scalar-color-
|
|
973
|
+
.scalar-app .hljs-params {
|
|
974
|
+
color: var(--scalar-code-parameter, var(--scalar-color-red));
|
|
940
975
|
}
|
|
941
976
|
|
|
942
|
-
.scalar-app .hljs-
|
|
943
|
-
color: var(--scalar-color-
|
|
977
|
+
.scalar-app .hljs-property, .scalar-app .hljs-attr, .scalar-app .hljs-attribute, .scalar-app .hljs-selector-tag, .scalar-app .hljs-selector-attr, .scalar-app .hljs-selector-pseudo {
|
|
978
|
+
color: var(--scalar-code-property, var(--scalar-color-green));
|
|
944
979
|
}
|
|
945
980
|
|
|
946
981
|
.scalar-app .hljs-selector-id, .scalar-app .hljs-template-variable, .scalar-app .hljs-variable {
|
|
947
982
|
color: var(--scalar-color-1);
|
|
948
983
|
}
|
|
949
984
|
|
|
950
|
-
.scalar-app .hljs-
|
|
951
|
-
|
|
985
|
+
.scalar-app .hljs-addition {
|
|
986
|
+
color: var(--scalar-code-addition, var(--scalar-color-green));
|
|
952
987
|
}
|
|
953
988
|
|
|
954
|
-
.scalar-app .hljs-
|
|
955
|
-
|
|
989
|
+
.scalar-app .hljs-name, .scalar-app .hljs-section, .scalar-app .hljs-strong {
|
|
990
|
+
font-weight: var(--scalar-semibold);
|
|
956
991
|
}
|
|
957
992
|
|
|
958
993
|
.scalar-app .hljs-deletion {
|
|
959
|
-
color: var(--scalar-color-red);
|
|
994
|
+
color: var(--scalar-code-deletion, var(--scalar-color-red));
|
|
960
995
|
}
|
|
961
996
|
|
|
962
997
|
.scalar-app .hljs-formula {
|
|
@@ -984,27 +1019,19 @@
|
|
|
984
1019
|
}
|
|
985
1020
|
|
|
986
1021
|
.hljs.language-html .hljs-attr {
|
|
987
|
-
color: var(--scalar-color-
|
|
1022
|
+
color: var(--scalar-code-property, var(--scalar-color-green));
|
|
988
1023
|
}
|
|
989
1024
|
|
|
990
1025
|
.hljs.language-curl .hljs-string {
|
|
991
|
-
color: var(--scalar-color-blue);
|
|
1026
|
+
color: var(--scalar-code-string, var(--scalar-color-blue));
|
|
992
1027
|
}
|
|
993
1028
|
|
|
994
|
-
.hljs.language-curl .hljs-literal {
|
|
995
|
-
color: var(--scalar-color-1);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
.hljs.language-php .hljs-variable {
|
|
999
|
-
color: var(--scalar-color-blue);
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
.hljs.language-objectivec .hljs-meta {
|
|
1029
|
+
.hljs.language-curl .hljs-literal, .hljs.language-php .hljs-variable, .hljs.language-objectivec .hljs-meta {
|
|
1003
1030
|
color: var(--scalar-color-1);
|
|
1004
1031
|
}
|
|
1005
1032
|
|
|
1006
1033
|
.hljs.language-objectivec .hljs-built_in {
|
|
1007
|
-
color: var(--scalar-color-
|
|
1034
|
+
color: var(--scalar-code-builtin, var(--scalar-color-blue));
|
|
1008
1035
|
}
|
|
1009
1036
|
|
|
1010
1037
|
.scalar-app .markdown {
|
|
@@ -4011,14 +4038,14 @@ button.schema-card-title[data-v-86862f28]:hover {
|
|
|
4011
4038
|
}
|
|
4012
4039
|
}
|
|
4013
4040
|
|
|
4014
|
-
.requestHeaderContainer[data-v-
|
|
4041
|
+
.requestHeaderContainer[data-v-92d74c5a] {
|
|
4015
4042
|
justify-content: space-between;
|
|
4016
4043
|
align-items: center;
|
|
4017
4044
|
padding: 0 5px;
|
|
4018
4045
|
display: flex;
|
|
4019
4046
|
}
|
|
4020
4047
|
|
|
4021
|
-
.requestPreview[data-v-
|
|
4048
|
+
.requestPreview[data-v-92d74c5a] {
|
|
4022
4049
|
border-radius: var(--scalar-radius-2xl);
|
|
4023
4050
|
flex-direction: column;
|
|
4024
4051
|
width: 100%;
|
|
@@ -4026,7 +4053,7 @@ button.schema-card-title[data-v-86862f28]:hover {
|
|
|
4026
4053
|
position: relative;
|
|
4027
4054
|
}
|
|
4028
4055
|
|
|
4029
|
-
.requestContent[data-v-
|
|
4056
|
+
.requestContent[data-v-92d74c5a] {
|
|
4030
4057
|
grid-template-rows: 0fr;
|
|
4031
4058
|
min-height: 0;
|
|
4032
4059
|
transition: grid-template-rows .2s ease-out;
|
|
@@ -4034,20 +4061,20 @@ button.schema-card-title[data-v-86862f28]:hover {
|
|
|
4034
4061
|
overflow: hidden;
|
|
4035
4062
|
}
|
|
4036
4063
|
|
|
4037
|
-
.requestPreview.open .requestContent[data-v-
|
|
4064
|
+
.requestPreview.open .requestContent[data-v-92d74c5a] {
|
|
4038
4065
|
grid-template-rows: 1fr;
|
|
4039
4066
|
}
|
|
4040
4067
|
|
|
4041
|
-
.requestPreview.succeeded[data-v-
|
|
4068
|
+
.requestPreview.succeeded[data-v-92d74c5a] {
|
|
4042
4069
|
padding: 0;
|
|
4043
4070
|
}
|
|
4044
4071
|
|
|
4045
|
-
.requestContentInner[data-v-
|
|
4072
|
+
.requestContentInner[data-v-92d74c5a] {
|
|
4046
4073
|
min-height: 0;
|
|
4047
4074
|
overflow: hidden;
|
|
4048
4075
|
}
|
|
4049
4076
|
|
|
4050
|
-
.code[data-v-
|
|
4077
|
+
.code[data-v-92d74c5a] {
|
|
4051
4078
|
font-size: var(--scalar-font-size-4);
|
|
4052
4079
|
border-radius: var(--scalar-radius-2xl);
|
|
4053
4080
|
background: var(--scalar-background-2);
|
|
@@ -4056,58 +4083,58 @@ button.schema-card-title[data-v-86862f28]:hover {
|
|
|
4056
4083
|
}
|
|
4057
4084
|
|
|
4058
4085
|
@supports (color: color-mix(in lab, red, red)) {
|
|
4059
|
-
.code[data-v-
|
|
4086
|
+
.code[data-v-92d74c5a] {
|
|
4060
4087
|
background: color-mix(in srgb, var(--scalar-background-2), var(--scalar-background-1));
|
|
4061
4088
|
}
|
|
4062
4089
|
}
|
|
4063
4090
|
|
|
4064
|
-
.code[data-v-
|
|
4091
|
+
.code[data-v-92d74c5a] {
|
|
4065
4092
|
margin-bottom: 12px;
|
|
4066
4093
|
overflow: hidden;
|
|
4067
4094
|
}
|
|
4068
4095
|
|
|
4069
|
-
.dark-mode .code[data-v-
|
|
4096
|
+
.dark-mode .code[data-v-92d74c5a] {
|
|
4070
4097
|
background: var(--scalar-background-2);
|
|
4071
4098
|
}
|
|
4072
4099
|
|
|
4073
|
-
.code h1[data-v-
|
|
4100
|
+
.code h1[data-v-92d74c5a] {
|
|
4074
4101
|
font-size: var(--scalar-font-size-3);
|
|
4075
4102
|
color: var(--scalar-color-3);
|
|
4076
4103
|
padding: 8px;
|
|
4077
4104
|
}
|
|
4078
4105
|
|
|
4079
|
-
.code[data-v-
|
|
4106
|
+
.code[data-v-92d74c5a] .codeBlock {
|
|
4080
4107
|
max-height: calc(50vh - 100px);
|
|
4081
4108
|
padding-top: 0;
|
|
4082
4109
|
}
|
|
4083
4110
|
|
|
4084
|
-
.autosendContainer[data-v-
|
|
4111
|
+
.autosendContainer[data-v-92d74c5a] {
|
|
4085
4112
|
justify-content: space-between;
|
|
4086
4113
|
display: flex;
|
|
4087
4114
|
}
|
|
4088
4115
|
|
|
4089
|
-
.sendButton[data-v-
|
|
4116
|
+
.sendButton[data-v-92d74c5a] {
|
|
4090
4117
|
background: var(--scalar-color-blue);
|
|
4091
4118
|
color: #fff;
|
|
4092
4119
|
font-weight: var(--scalar-semibold);
|
|
4093
4120
|
padding: 5px 10px;
|
|
4094
4121
|
}
|
|
4095
4122
|
|
|
4096
|
-
.sendButton[data-v-
|
|
4123
|
+
.sendButton[data-v-92d74c5a]:hover, .sendButton[data-v-92d74c5a]:active {
|
|
4097
4124
|
background: var(--scalar-color-blue);
|
|
4098
4125
|
}
|
|
4099
4126
|
|
|
4100
4127
|
@supports (color: color-mix(in lab, red, red)) {
|
|
4101
|
-
.sendButton[data-v-
|
|
4128
|
+
.sendButton[data-v-92d74c5a]:hover, .sendButton[data-v-92d74c5a]:active {
|
|
4102
4129
|
background: color-mix(in srgb, var(--scalar-color-blue), black 10%);
|
|
4103
4130
|
}
|
|
4104
4131
|
}
|
|
4105
4132
|
|
|
4106
|
-
.sendButton[data-v-
|
|
4133
|
+
.sendButton[data-v-92d74c5a]:hover, .sendButton[data-v-92d74c5a]:active {
|
|
4107
4134
|
color: #fff !important;
|
|
4108
4135
|
}
|
|
4109
4136
|
|
|
4110
|
-
.toggleButton[data-v-
|
|
4137
|
+
.toggleButton[data-v-92d74c5a] {
|
|
4111
4138
|
cursor: pointer;
|
|
4112
4139
|
text-align: left;
|
|
4113
4140
|
color: var(--scalar-color-3);
|
|
@@ -4120,7 +4147,7 @@ button.schema-card-title[data-v-86862f28]:hover {
|
|
|
4120
4147
|
position: relative;
|
|
4121
4148
|
}
|
|
4122
4149
|
|
|
4123
|
-
.toggleButton[data-v-
|
|
4150
|
+
.toggleButton[data-v-92d74c5a]:hover {
|
|
4124
4151
|
text-decoration: underline;
|
|
4125
4152
|
}
|
|
4126
4153
|
|
|
@@ -5977,6 +6004,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
5977
6004
|
margin-block: 48px;
|
|
5978
6005
|
}
|
|
5979
6006
|
|
|
6007
|
+
.scalar-app .ms-1 {
|
|
6008
|
+
margin-inline-start: 4px;
|
|
6009
|
+
}
|
|
6010
|
+
|
|
5980
6011
|
.scalar-app .ms-1\.25\! {
|
|
5981
6012
|
margin-inline-start: 5px !important;
|
|
5982
6013
|
}
|
|
@@ -6161,6 +6192,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
6161
6192
|
margin-bottom: -4px;
|
|
6162
6193
|
}
|
|
6163
6194
|
|
|
6195
|
+
.scalar-app .-mb-2 {
|
|
6196
|
+
margin-bottom: -8px;
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6164
6199
|
.scalar-app .-mb-\[var\(--scalar-border-width\)\] {
|
|
6165
6200
|
margin-bottom: calc(var(--scalar-border-width) * -1);
|
|
6166
6201
|
}
|
|
@@ -6394,6 +6429,11 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
6394
6429
|
height: 24px;
|
|
6395
6430
|
}
|
|
6396
6431
|
|
|
6432
|
+
.scalar-app .size-7 {
|
|
6433
|
+
width: 28px;
|
|
6434
|
+
height: 28px;
|
|
6435
|
+
}
|
|
6436
|
+
|
|
6397
6437
|
.scalar-app .size-8 {
|
|
6398
6438
|
width: 32px;
|
|
6399
6439
|
height: 32px;
|
|
@@ -7046,6 +7086,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
7046
7086
|
flex-basis: 0;
|
|
7047
7087
|
}
|
|
7048
7088
|
|
|
7089
|
+
.scalar-app .border-collapse {
|
|
7090
|
+
border-collapse: collapse;
|
|
7091
|
+
}
|
|
7092
|
+
|
|
7049
7093
|
.scalar-app .origin-bottom {
|
|
7050
7094
|
transform-origin: bottom;
|
|
7051
7095
|
}
|
|
@@ -7228,6 +7272,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
7228
7272
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
7229
7273
|
}
|
|
7230
7274
|
|
|
7275
|
+
.scalar-app .grid-cols-7 {
|
|
7276
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
7277
|
+
}
|
|
7278
|
+
|
|
7231
7279
|
.scalar-app .grid-cols-\[44px_1fr_repeat\(3\,auto\)\] {
|
|
7232
7280
|
grid-template-columns: 44px 1fr repeat(3, auto);
|
|
7233
7281
|
}
|
|
@@ -7707,6 +7755,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
7707
7755
|
border-color: var(--scalar-header-border-color, var(--scalar-border-color));
|
|
7708
7756
|
}
|
|
7709
7757
|
|
|
7758
|
+
.scalar-app .border-c-3 {
|
|
7759
|
+
border-color: var(--scalar-color-3);
|
|
7760
|
+
}
|
|
7761
|
+
|
|
7710
7762
|
.scalar-app .border-c-accent, .scalar-app .border-c-accent\/30 {
|
|
7711
7763
|
border-color: var(--scalar-color-accent);
|
|
7712
7764
|
}
|
|
@@ -8124,6 +8176,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
8124
8176
|
padding-inline: 10px;
|
|
8125
8177
|
}
|
|
8126
8178
|
|
|
8179
|
+
.scalar-app .px-2\.75 {
|
|
8180
|
+
padding-inline: 11px;
|
|
8181
|
+
}
|
|
8182
|
+
|
|
8127
8183
|
.scalar-app .px-3 {
|
|
8128
8184
|
padding-inline: 12px;
|
|
8129
8185
|
}
|
|
@@ -8156,6 +8212,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
8156
8212
|
padding-inline: 60px;
|
|
8157
8213
|
}
|
|
8158
8214
|
|
|
8215
|
+
.scalar-app .px-\[5px\] {
|
|
8216
|
+
padding-inline: 5px;
|
|
8217
|
+
}
|
|
8218
|
+
|
|
8159
8219
|
.scalar-app .py-0 {
|
|
8160
8220
|
padding-block: 0;
|
|
8161
8221
|
}
|
|
@@ -8228,6 +8288,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
8228
8288
|
padding-inline-start: 12px;
|
|
8229
8289
|
}
|
|
8230
8290
|
|
|
8291
|
+
.scalar-app .ps-5\.5 {
|
|
8292
|
+
padding-inline-start: 22px;
|
|
8293
|
+
}
|
|
8294
|
+
|
|
8231
8295
|
.scalar-app .ps-8 {
|
|
8232
8296
|
padding-inline-start: 32px;
|
|
8233
8297
|
}
|
|
@@ -8244,6 +8308,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
8244
8308
|
padding-inline-start: var(--schema-gutter, 16px) !important;
|
|
8245
8309
|
}
|
|
8246
8310
|
|
|
8311
|
+
.scalar-app .pe-2 {
|
|
8312
|
+
padding-inline-end: 8px;
|
|
8313
|
+
}
|
|
8314
|
+
|
|
8247
8315
|
.scalar-app .pe-6 {
|
|
8248
8316
|
padding-inline-end: 24px;
|
|
8249
8317
|
}
|
|
@@ -8436,6 +8504,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
8436
8504
|
text-align: start;
|
|
8437
8505
|
}
|
|
8438
8506
|
|
|
8507
|
+
.scalar-app .align-\[1px\] {
|
|
8508
|
+
vertical-align: 1px;
|
|
8509
|
+
}
|
|
8510
|
+
|
|
8439
8511
|
.scalar-app .align-middle {
|
|
8440
8512
|
vertical-align: middle;
|
|
8441
8513
|
}
|
|
@@ -8595,6 +8667,11 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
8595
8667
|
line-height: 7px;
|
|
8596
8668
|
}
|
|
8597
8669
|
|
|
8670
|
+
.scalar-app .leading-\[14px\] {
|
|
8671
|
+
--tw-leading: 14px;
|
|
8672
|
+
line-height: 14px;
|
|
8673
|
+
}
|
|
8674
|
+
|
|
8598
8675
|
.scalar-app .leading-\[20px\] {
|
|
8599
8676
|
--tw-leading: 20px;
|
|
8600
8677
|
line-height: 20px;
|
|
@@ -9858,10 +9935,18 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
9858
9935
|
border-color: var(--scalar-background-1);
|
|
9859
9936
|
}
|
|
9860
9937
|
|
|
9938
|
+
.scalar-app .focus\:bg-b-btn:focus {
|
|
9939
|
+
background-color: var(--scalar-button-1);
|
|
9940
|
+
}
|
|
9941
|
+
|
|
9861
9942
|
.scalar-app .focus\:text-c-1:focus {
|
|
9862
9943
|
color: var(--scalar-color-1);
|
|
9863
9944
|
}
|
|
9864
9945
|
|
|
9946
|
+
.scalar-app .focus\:text-c-btn:focus {
|
|
9947
|
+
color: var(--scalar-button-1-color);
|
|
9948
|
+
}
|
|
9949
|
+
|
|
9865
9950
|
.scalar-app .focus\:outline-none:focus {
|
|
9866
9951
|
--tw-outline-style: none;
|
|
9867
9952
|
outline-style: none;
|
|
@@ -9993,6 +10078,23 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
9993
10078
|
color: var(--scalar-color-1);
|
|
9994
10079
|
}
|
|
9995
10080
|
|
|
10081
|
+
.scalar-app .data-\[outside-view\]\:text-c-3[data-outside-view], .scalar-app .data-\[placeholder\]\:text-c-3[data-placeholder] {
|
|
10082
|
+
color: var(--scalar-color-3);
|
|
10083
|
+
}
|
|
10084
|
+
|
|
10085
|
+
.scalar-app .data-\[selected\]\:bg-b-btn[data-selected] {
|
|
10086
|
+
background-color: var(--scalar-button-1);
|
|
10087
|
+
}
|
|
10088
|
+
|
|
10089
|
+
.scalar-app .data-\[selected\]\:text-c-btn[data-selected] {
|
|
10090
|
+
color: var(--scalar-button-1-color);
|
|
10091
|
+
}
|
|
10092
|
+
|
|
10093
|
+
.scalar-app .data-\[today\]\:font-bold[data-today] {
|
|
10094
|
+
--tw-font-weight: var(--scalar-bold);
|
|
10095
|
+
font-weight: var(--scalar-bold);
|
|
10096
|
+
}
|
|
10097
|
+
|
|
9996
10098
|
@media not all and (min-width: 1200px) {
|
|
9997
10099
|
.scalar-app .max-xl\:max-h-full {
|
|
9998
10100
|
max-height: 100%;
|
|
@@ -10223,6 +10325,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
10223
10325
|
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
10224
10326
|
}
|
|
10225
10327
|
|
|
10328
|
+
.scalar-app .rtl\:rotate-180:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
|
|
10329
|
+
rotate: 180deg;
|
|
10330
|
+
}
|
|
10331
|
+
|
|
10226
10332
|
.scalar-app .dark\:bg-\(--bg-dark\):where(.dark-mode, .dark-mode *) {
|
|
10227
10333
|
background-color: var(--bg-dark);
|
|
10228
10334
|
}
|
|
@@ -11527,7 +11633,7 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
11527
11633
|
display: inline;
|
|
11528
11634
|
}
|
|
11529
11635
|
|
|
11530
|
-
.references-classic .introduction-description[data-v-
|
|
11636
|
+
.references-classic .introduction-description[data-v-5cb7a828] img {
|
|
11531
11637
|
max-width: 720px;
|
|
11532
11638
|
}
|
|
11533
11639
|
|
|
@@ -13278,7 +13384,7 @@ to {
|
|
|
13278
13384
|
|
|
13279
13385
|
/* Configurable Layout Variables */
|
|
13280
13386
|
@layer scalar-config {
|
|
13281
|
-
.scalar-api-reference[data-v-
|
|
13387
|
+
.scalar-api-reference[data-v-9f76c2bb] {
|
|
13282
13388
|
/* The header height */
|
|
13283
13389
|
--refs-header-height: calc(
|
|
13284
13390
|
var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
|
|
@@ -13300,20 +13406,20 @@ to {
|
|
|
13300
13406
|
/* The maximum width of the content column */
|
|
13301
13407
|
--refs-content-max-width: var(--scalar-content-max-width, 1540px);
|
|
13302
13408
|
}
|
|
13303
|
-
.scalar-api-reference.references-classic[data-v-
|
|
13409
|
+
.scalar-api-reference.references-classic[data-v-9f76c2bb] {
|
|
13304
13410
|
/* Classic layout is wider */
|
|
13305
13411
|
--refs-content-max-width: var(--scalar-content-max-width, 1420px);
|
|
13306
13412
|
min-height: 100dvh;
|
|
13307
13413
|
--refs-sidebar-width: 0;
|
|
13308
13414
|
}
|
|
13309
13415
|
}
|
|
13310
|
-
.t-doc__sidebar[data-v-
|
|
13416
|
+
.t-doc__sidebar[data-v-9f76c2bb] {
|
|
13311
13417
|
z-index: 10;
|
|
13312
13418
|
}
|
|
13313
13419
|
|
|
13314
13420
|
/* ----------------------------------------------------- */
|
|
13315
13421
|
/* References Layout */
|
|
13316
|
-
.references-layout[data-v-
|
|
13422
|
+
.references-layout[data-v-9f76c2bb] {
|
|
13317
13423
|
/* Try to fill the container */
|
|
13318
13424
|
min-height: 100dvh;
|
|
13319
13425
|
min-width: 100%;
|
|
@@ -13337,36 +13443,36 @@ to {
|
|
|
13337
13443
|
|
|
13338
13444
|
background: var(--scalar-background-1);
|
|
13339
13445
|
}
|
|
13340
|
-
.references-editor[data-v-
|
|
13446
|
+
.references-editor[data-v-9f76c2bb] {
|
|
13341
13447
|
grid-area: editor;
|
|
13342
13448
|
display: flex;
|
|
13343
13449
|
min-width: 0;
|
|
13344
13450
|
background: var(--scalar-background-1);
|
|
13345
13451
|
}
|
|
13346
|
-
.references-rendered[data-v-
|
|
13452
|
+
.references-rendered[data-v-9f76c2bb] {
|
|
13347
13453
|
position: relative;
|
|
13348
13454
|
grid-area: rendered;
|
|
13349
13455
|
min-width: 0;
|
|
13350
13456
|
background: var(--scalar-background-1);
|
|
13351
13457
|
}
|
|
13352
|
-
.scalar-api-reference.references-classic[data-v-
|
|
13353
|
-
.references-classic .references-rendered[data-v-
|
|
13458
|
+
.scalar-api-reference.references-classic[data-v-9f76c2bb],
|
|
13459
|
+
.references-classic .references-rendered[data-v-9f76c2bb] {
|
|
13354
13460
|
height: initial !important;
|
|
13355
13461
|
max-height: initial !important;
|
|
13356
13462
|
}
|
|
13357
13463
|
/* Give the classic layout some breathing room at the end of the scroll */
|
|
13358
|
-
.references-classic .references-rendered[data-v-
|
|
13464
|
+
.references-classic .references-rendered[data-v-9f76c2bb] {
|
|
13359
13465
|
padding-bottom: 80px;
|
|
13360
13466
|
}
|
|
13361
13467
|
@layer scalar-config {
|
|
13362
|
-
.references-sidebar[data-v-
|
|
13468
|
+
.references-sidebar[data-v-9f76c2bb] {
|
|
13363
13469
|
/* Set a default width if references are enabled */
|
|
13364
13470
|
--refs-sidebar-width: var(--scalar-sidebar-width, 288px);
|
|
13365
13471
|
}
|
|
13366
13472
|
}
|
|
13367
13473
|
|
|
13368
13474
|
/* Footer */
|
|
13369
|
-
.references-footer[data-v-
|
|
13475
|
+
.references-footer[data-v-9f76c2bb] {
|
|
13370
13476
|
grid-area: footer;
|
|
13371
13477
|
}
|
|
13372
13478
|
/* ----------------------------------------------------- */
|
|
@@ -13382,12 +13488,12 @@ to {
|
|
|
13382
13488
|
*/
|
|
13383
13489
|
@media (width < 1000px) {
|
|
13384
13490
|
/* Keep toolbar hidden on mobile without forcing desktop display mode. */
|
|
13385
|
-
.references-developer-tools[data-v-
|
|
13491
|
+
.references-developer-tools[data-v-9f76c2bb] {
|
|
13386
13492
|
display: none;
|
|
13387
13493
|
}
|
|
13388
13494
|
|
|
13389
13495
|
/* Stack view on mobile */
|
|
13390
|
-
.references-layout[data-v-
|
|
13496
|
+
.references-layout[data-v-9f76c2bb] {
|
|
13391
13497
|
/* Adjust the sidebar height to the viewport height minus the header height */
|
|
13392
13498
|
--refs-sidebar-height: calc(
|
|
13393
13499
|
var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
|
|
@@ -13402,13 +13508,13 @@ to {
|
|
|
13402
13508
|
'rendered'
|
|
13403
13509
|
'footer';
|
|
13404
13510
|
}
|
|
13405
|
-
.references-editable[data-v-
|
|
13511
|
+
.references-editable[data-v-9f76c2bb] {
|
|
13406
13512
|
grid-template-areas:
|
|
13407
13513
|
'header'
|
|
13408
13514
|
'navigation'
|
|
13409
13515
|
'editor';
|
|
13410
13516
|
}
|
|
13411
|
-
.references-rendered[data-v-
|
|
13517
|
+
.references-rendered[data-v-9f76c2bb] {
|
|
13412
13518
|
position: static;
|
|
13413
13519
|
}
|
|
13414
13520
|
}
|
|
@@ -13428,7 +13534,7 @@ to {
|
|
|
13428
13534
|
* Scoped to the breakpoint that shows the toolbar, so narrow viewports keep the plain layout.
|
|
13429
13535
|
*/
|
|
13430
13536
|
@media (width >= 1000px) {
|
|
13431
|
-
.references-shell[data-v-
|
|
13537
|
+
.references-shell[data-v-9f76c2bb] {
|
|
13432
13538
|
/* The toolbar reads this for its height, so the offsets below always match what it renders */
|
|
13433
13539
|
--refs-shell-toolbar-height: 48px;
|
|
13434
13540
|
/* Breathing room between the card and the viewport edge, and between the card and the panel */
|
|
@@ -13452,14 +13558,14 @@ to {
|
|
|
13452
13558
|
}
|
|
13453
13559
|
|
|
13454
13560
|
/* Darker than the card rather than lighter, so it still reads as a backdrop */
|
|
13455
|
-
.dark-mode .references-shell[data-v-
|
|
13561
|
+
.dark-mode .references-shell[data-v-9f76c2bb] {
|
|
13456
13562
|
--refs-shell-backdrop: color-mix(
|
|
13457
13563
|
in srgb,
|
|
13458
13564
|
var(--scalar-background-1) 25%,
|
|
13459
13565
|
black 75%
|
|
13460
13566
|
);
|
|
13461
13567
|
}
|
|
13462
|
-
.references-shell-toolbar[data-v-
|
|
13568
|
+
.references-shell-toolbar[data-v-9f76c2bb] {
|
|
13463
13569
|
/*
|
|
13464
13570
|
* A sticky grid item only sticks within its own grid area, so the toolbar spans the whole grid
|
|
13465
13571
|
* and sits at the top of it, while the first row keeps its height free.
|
|
@@ -13473,7 +13579,7 @@ to {
|
|
|
13473
13579
|
z-index: 20;
|
|
13474
13580
|
background: var(--refs-shell-backdrop);
|
|
13475
13581
|
}
|
|
13476
|
-
.references-shell-card[data-v-
|
|
13582
|
+
.references-shell-card[data-v-9f76c2bb] {
|
|
13477
13583
|
grid-area: 2 / 1;
|
|
13478
13584
|
/* Fill the viewport below the toolbar, so a short document still ends at the frame */
|
|
13479
13585
|
min-height: var(--refs-shell-stuck-height);
|
|
@@ -13489,7 +13595,7 @@ to {
|
|
|
13489
13595
|
* It sticks within the card's grid area, so it follows the card's end when the page has more
|
|
13490
13596
|
* content after the reference. Above the sidebar and the context bar, below the panel and toolbar.
|
|
13491
13597
|
*/
|
|
13492
|
-
.references-shell-frame[data-v-
|
|
13598
|
+
.references-shell-frame[data-v-9f76c2bb] {
|
|
13493
13599
|
grid-area: 2 / 1;
|
|
13494
13600
|
align-self: start;
|
|
13495
13601
|
position: sticky;
|
|
@@ -13510,7 +13616,7 @@ to {
|
|
|
13510
13616
|
* Below the toolbar, which it slides under when the card ends before the page does. Dropdowns
|
|
13511
13617
|
* inside it are teleported, so they still open above the toolbar.
|
|
13512
13618
|
*/
|
|
13513
|
-
.references-shell-panel[data-v-
|
|
13619
|
+
.references-shell-panel[data-v-9f76c2bb] {
|
|
13514
13620
|
grid-area: 2 / 2;
|
|
13515
13621
|
align-self: start;
|
|
13516
13622
|
position: sticky;
|
|
@@ -13521,7 +13627,7 @@ to {
|
|
|
13521
13627
|
height: var(--refs-shell-stuck-height);
|
|
13522
13628
|
margin-inline-start: var(--refs-shell-gutter);
|
|
13523
13629
|
transform-origin: top center;
|
|
13524
|
-
animation: refs-shell-panel-in-
|
|
13630
|
+
animation: refs-shell-panel-in-9f76c2bb 180ms cubic-bezier(0.32, 0.72, 0, 1);
|
|
13525
13631
|
}
|
|
13526
13632
|
|
|
13527
13633
|
/*
|
|
@@ -13531,7 +13637,7 @@ to {
|
|
|
13531
13637
|
* sidebar scrolls on its own, below the toolbar.
|
|
13532
13638
|
*/
|
|
13533
13639
|
.references-shell-card
|
|
13534
|
-
.references-rendered[data-v-
|
|
13640
|
+
.references-rendered[data-v-9f76c2bb]
|
|
13535
13641
|
|
|
13536
13642
|
:is(
|
|
13537
13643
|
a[href],
|
|
@@ -13559,33 +13665,33 @@ to {
|
|
|
13559
13665
|
*
|
|
13560
13666
|
* Doubled classes: the drawer's own narrow-screen rules still match at exactly 1000px.
|
|
13561
13667
|
*/
|
|
13562
|
-
.references-shell[data-v-
|
|
13563
|
-
.references-shell[data-v-
|
|
13668
|
+
.references-shell[data-v-9f76c2bb] .agent-scalar-overlay.agent-scalar-overlay,
|
|
13669
|
+
.references-shell[data-v-9f76c2bb] .agent-scalar.agent-scalar {
|
|
13564
13670
|
--refs-shell-agent-end: var(--refs-shell-gutter);
|
|
13565
13671
|
z-index: 10;
|
|
13566
13672
|
}
|
|
13567
|
-
.references-shell[data-shell-panel][data-v-
|
|
13673
|
+
.references-shell[data-shell-panel][data-v-9f76c2bb]
|
|
13568
13674
|
.agent-scalar-overlay.agent-scalar-overlay,
|
|
13569
|
-
.references-shell[data-shell-panel][data-v-
|
|
13675
|
+
.references-shell[data-shell-panel][data-v-9f76c2bb] .agent-scalar.agent-scalar {
|
|
13570
13676
|
--refs-shell-agent-end: calc(
|
|
13571
13677
|
var(--refs-shell-gutter) * 2 + var(--refs-shell-panel-width)
|
|
13572
13678
|
);
|
|
13573
13679
|
}
|
|
13574
|
-
.references-shell[data-v-
|
|
13680
|
+
.references-shell[data-v-9f76c2bb] .agent-scalar-overlay.agent-scalar-overlay {
|
|
13575
13681
|
inset: var(--refs-shell-top) var(--refs-shell-agent-end)
|
|
13576
13682
|
var(--refs-shell-gutter) var(--refs-shell-gutter);
|
|
13577
13683
|
}
|
|
13578
|
-
.references-shell[data-v-
|
|
13684
|
+
.references-shell[data-v-9f76c2bb] .agent-scalar.agent-scalar {
|
|
13579
13685
|
inset: var(--refs-shell-top) calc(var(--refs-shell-agent-end) + 48px)
|
|
13580
13686
|
var(--refs-shell-gutter)
|
|
13581
13687
|
calc(var(--refs-shell-gutter) + var(--refs-sidebar-width));
|
|
13582
13688
|
}
|
|
13583
13689
|
/* The classic layout has no sidebar, and its unitless 0 width would make the sum above invalid */
|
|
13584
|
-
.references-shell[data-v-
|
|
13690
|
+
.references-shell[data-v-9f76c2bb] .references-classic .agent-scalar.agent-scalar {
|
|
13585
13691
|
left: var(--refs-shell-gutter);
|
|
13586
13692
|
}
|
|
13587
13693
|
@layer scalar-config {
|
|
13588
|
-
.scalar-api-reference.references-shell-card[data-v-
|
|
13694
|
+
.scalar-api-reference.references-shell-card[data-v-9f76c2bb] {
|
|
13589
13695
|
/* The sticky toolbar is one more header that the sidebar and scroll offsets sit below */
|
|
13590
13696
|
--refs-header-height: calc(
|
|
13591
13697
|
var(--scalar-custom-header-height, 0px) +
|
|
@@ -13605,20 +13711,20 @@ to {
|
|
|
13605
13711
|
|
|
13606
13712
|
/* The panel only exists at the toolbar's breakpoint; the script closes it below that */
|
|
13607
13713
|
@media (width < 1000px) {
|
|
13608
|
-
.references-shell-panel[data-v-
|
|
13714
|
+
.references-shell-panel[data-v-9f76c2bb] {
|
|
13609
13715
|
display: none;
|
|
13610
13716
|
}
|
|
13611
13717
|
}
|
|
13612
13718
|
|
|
13613
13719
|
/* Scales in place rather than sliding, so it never pokes past the viewport edge or needs mirroring */
|
|
13614
|
-
@keyframes refs-shell-panel-in-
|
|
13720
|
+
@keyframes refs-shell-panel-in-9f76c2bb {
|
|
13615
13721
|
from {
|
|
13616
13722
|
opacity: 0;
|
|
13617
13723
|
scale: 0.985;
|
|
13618
13724
|
}
|
|
13619
13725
|
}
|
|
13620
13726
|
@media (prefers-reduced-motion: reduce) {
|
|
13621
|
-
.references-shell-panel[data-v-
|
|
13727
|
+
.references-shell-panel[data-v-9f76c2bb] {
|
|
13622
13728
|
animation: none;
|
|
13623
13729
|
}
|
|
13624
13730
|
}
|
|
@@ -13630,12 +13736,12 @@ from {
|
|
|
13630
13736
|
*/
|
|
13631
13737
|
/* Match the layout breakpoint above so the mobile header height is only applied below `lg`. */
|
|
13632
13738
|
@media (width < 1000px) {
|
|
13633
|
-
.scalar-api-references-standalone-mobile[data-v-
|
|
13739
|
+
.scalar-api-references-standalone-mobile[data-v-9f76c2bb]:not(.references-classic) {
|
|
13634
13740
|
--scalar-header-height: 50px;
|
|
13635
13741
|
}
|
|
13636
13742
|
}
|
|
13637
13743
|
|
|
13638
|
-
.darklight-reference[data-v-
|
|
13744
|
+
.darklight-reference[data-v-9f76c2bb] {
|
|
13639
13745
|
width: 100%;
|
|
13640
13746
|
margin-top: auto;
|
|
13641
13747
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"testing",
|
|
19
19
|
"react"
|
|
20
20
|
],
|
|
21
|
-
"version": "0.9.
|
|
21
|
+
"version": "0.9.95",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=22"
|
|
24
24
|
},
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@scalar/api-reference": "1.
|
|
43
|
-
"@scalar/types": "0.
|
|
42
|
+
"@scalar/api-reference": "1.82.1",
|
|
43
|
+
"@scalar/types": "0.31.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@scalar/helpers": "0.
|
|
46
|
+
"@scalar/helpers": "0.19.0",
|
|
47
47
|
"@types/react": "^19.3.0",
|
|
48
48
|
"@types/react-dom": "^19.3.0",
|
|
49
49
|
"@vitejs/plugin-react": "6.3.0",
|