@scalar/api-client-react 2.0.25 → 2.0.26
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 +2 -0
- package/dist/style.css +175 -96
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/style.css
CHANGED
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
.hljs.language-objectivec .hljs-meta {
|
|
799
799
|
color: var(--scalar-color-1);
|
|
800
800
|
}
|
|
801
|
-
.hljs.language-objectivec .hljs-built_in
|
|
801
|
+
.hljs.language-objectivec .hljs-built_in {
|
|
802
802
|
color: var(--scalar-color-orange);
|
|
803
803
|
}
|
|
804
804
|
.scalar-app .markdown {
|
|
@@ -1431,7 +1431,7 @@
|
|
|
1431
1431
|
}
|
|
1432
1432
|
:where(body) > .scalar-tooltip {
|
|
1433
1433
|
--scalar-tooltip-padding: 8px;
|
|
1434
|
-
padding:
|
|
1434
|
+
padding: var(--scalar-tooltip-padding);
|
|
1435
1435
|
z-index: 99999;
|
|
1436
1436
|
max-width: 320px;
|
|
1437
1437
|
font-size: var(--scalar-font-size-5);
|
|
@@ -1441,9 +1441,20 @@
|
|
|
1441
1441
|
overflow-wrap: break-word;
|
|
1442
1442
|
color: var(--scalar-tooltip-color);
|
|
1443
1443
|
}
|
|
1444
|
+
:where(body) > .scalar-tooltip[data-side="top"] {
|
|
1445
|
+
padding-bottom: calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));
|
|
1446
|
+
}
|
|
1447
|
+
:where(body) > .scalar-tooltip[data-side="bottom"] {
|
|
1448
|
+
padding-top: calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));
|
|
1449
|
+
}
|
|
1450
|
+
:where(body) > .scalar-tooltip[data-side="left"] {
|
|
1451
|
+
padding-right: calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));
|
|
1452
|
+
}
|
|
1453
|
+
:where(body) > .scalar-tooltip[data-side="right"] {
|
|
1454
|
+
padding-left: calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));
|
|
1455
|
+
}
|
|
1444
1456
|
:where(body) > .scalar-tooltip:before {
|
|
1445
1457
|
content: "";
|
|
1446
|
-
inset: var(--scalar-tooltip-offset);
|
|
1447
1458
|
z-index: calc(1 * -1);
|
|
1448
1459
|
border-radius: var(--scalar-radius);
|
|
1449
1460
|
background-color: var(--scalar-tooltip-background);
|
|
@@ -1451,6 +1462,19 @@
|
|
|
1451
1462
|
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
1452
1463
|
backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
1453
1464
|
position: absolute;
|
|
1465
|
+
inset: 0;
|
|
1466
|
+
}
|
|
1467
|
+
:where(body) > .scalar-tooltip[data-side="top"]:before {
|
|
1468
|
+
bottom: var(--scalar-tooltip-offset);
|
|
1469
|
+
}
|
|
1470
|
+
:where(body) > .scalar-tooltip[data-side="bottom"]:before {
|
|
1471
|
+
top: var(--scalar-tooltip-offset);
|
|
1472
|
+
}
|
|
1473
|
+
:where(body) > .scalar-tooltip[data-side="left"]:before {
|
|
1474
|
+
right: var(--scalar-tooltip-offset);
|
|
1475
|
+
}
|
|
1476
|
+
:where(body) > .scalar-tooltip[data-side="right"]:before {
|
|
1477
|
+
left: var(--scalar-tooltip-offset);
|
|
1454
1478
|
}
|
|
1455
1479
|
:where(body.dark-mode) > .scalar-tooltip:before {
|
|
1456
1480
|
--tw-shadow: inset 0 0 0 var(--tw-shadow-color, var(--scalar-border-width)) var(--scalar-border-color);
|
|
@@ -1690,9 +1714,15 @@
|
|
|
1690
1714
|
.scalar-app .inset-y-0\.5 {
|
|
1691
1715
|
inset-block: 2px;
|
|
1692
1716
|
}
|
|
1717
|
+
.scalar-app .-start {
|
|
1718
|
+
inset-inline-start: -4px;
|
|
1719
|
+
}
|
|
1693
1720
|
.scalar-app .start {
|
|
1694
1721
|
inset-inline-start: 4px;
|
|
1695
1722
|
}
|
|
1723
|
+
.scalar-app .-end {
|
|
1724
|
+
inset-inline-end: -4px;
|
|
1725
|
+
}
|
|
1696
1726
|
.scalar-app .end {
|
|
1697
1727
|
inset-inline-end: 4px;
|
|
1698
1728
|
}
|
|
@@ -3857,13 +3887,13 @@
|
|
|
3857
3887
|
outline-style: var(--tw-outline-style);
|
|
3858
3888
|
outline-width: 1px;
|
|
3859
3889
|
}
|
|
3860
|
-
.scalar-app .group-has-\[\.cm-focused\]\:z-1:is(:where(.group):has(.cm-focused) *) {
|
|
3890
|
+
.scalar-app .group-has-\[\.cm-focused\]\:z-1:is(:where(.group):has(.cm-focused) *), .scalar-app .group-has-\[\.code-input-lite__editor\:focus\]\:z-1:is(:where(.group):has(:is(.code-input-lite editor:focus)) *) {
|
|
3861
3891
|
z-index: 1;
|
|
3862
3892
|
}
|
|
3863
|
-
.scalar-app .group-has-\[\.
|
|
3893
|
+
.scalar-app .group-has-\[\.code-input-lite__editor\:focus\]\:flex:is(:where(.group):has(:is(.code-input-lite editor:focus)) *) {
|
|
3864
3894
|
display: flex;
|
|
3865
3895
|
}
|
|
3866
|
-
.scalar-app .group-has-\[\.
|
|
3896
|
+
.scalar-app .group-has-\[\.code-input-lite__editor\:focus\]\:pr-10:is(:where(.group):has(:is(.code-input-lite editor:focus)) *) {
|
|
3867
3897
|
padding-right: 40px;
|
|
3868
3898
|
}
|
|
3869
3899
|
.scalar-app .group-has-\[\:focus-visible\]\/cell\:border-c-accent:is(:where(.group\/cell):has(:focus-visible) *) {
|
|
@@ -3957,7 +3987,7 @@
|
|
|
3957
3987
|
.scalar-app .peer-focus-visible\/button\:opacity-100:is(:where(.peer\/button):focus-visible ~ *) {
|
|
3958
3988
|
opacity: 1;
|
|
3959
3989
|
}
|
|
3960
|
-
.scalar-app .peer-has-\[\.cm-focused\]\:opacity-0:is(:where(.peer):has(.cm-focused) ~ *) {
|
|
3990
|
+
.scalar-app .peer-has-\[\.cm-focused\]\:opacity-0:is(:where(.peer):has(.cm-focused) ~ *), .scalar-app .peer-has-\[\.code-input-lite__editor\:focus\]\:opacity-0:is(:where(.peer):has(:is(.code-input-lite editor:focus)) ~ *) {
|
|
3961
3991
|
opacity: 0;
|
|
3962
3992
|
}
|
|
3963
3993
|
.scalar-app .peer-has-\[\.color-selector\]\:hidden:is(:where(.peer):has(.color-selector) ~ *) {
|
|
@@ -4892,23 +4922,23 @@ to {
|
|
|
4892
4922
|
/*
|
|
4893
4923
|
Deep styling for customizing Codemirror
|
|
4894
4924
|
*/
|
|
4895
|
-
[data-v-
|
|
4925
|
+
[data-v-d6fb2049] .cm-editor {
|
|
4896
4926
|
height: 100%;
|
|
4897
4927
|
outline: none;
|
|
4898
4928
|
padding: 0;
|
|
4899
4929
|
background: transparent;
|
|
4900
4930
|
}
|
|
4901
|
-
[data-v-
|
|
4931
|
+
[data-v-d6fb2049] .cm-placeholder {
|
|
4902
4932
|
color: var(--scalar-color-3);
|
|
4903
4933
|
}
|
|
4904
|
-
[data-v-
|
|
4934
|
+
[data-v-d6fb2049] .cm-content {
|
|
4905
4935
|
font-family: var(--scalar-font-code);
|
|
4906
4936
|
font-size: var(--scalar-small);
|
|
4907
4937
|
max-height: 20px;
|
|
4908
4938
|
padding: 8px 0;
|
|
4909
4939
|
}
|
|
4910
4940
|
/* Tooltip helper */
|
|
4911
|
-
[data-v-
|
|
4941
|
+
[data-v-d6fb2049] .cm-tooltip {
|
|
4912
4942
|
background: transparent !important;
|
|
4913
4943
|
filter: brightness(var(--scalar-lifted-brightness));
|
|
4914
4944
|
border-radius: var(--scalar-radius);
|
|
@@ -4917,43 +4947,43 @@ to {
|
|
|
4917
4947
|
outline: none !important;
|
|
4918
4948
|
overflow: hidden !important;
|
|
4919
4949
|
}
|
|
4920
|
-
[data-v-
|
|
4950
|
+
[data-v-d6fb2049] .cm-tooltip-autocomplete ul li {
|
|
4921
4951
|
padding: 3px 6px !important;
|
|
4922
4952
|
}
|
|
4923
|
-
[data-v-
|
|
4953
|
+
[data-v-d6fb2049] .cm-completionIcon-type:after {
|
|
4924
4954
|
color: var(--scalar-color-3) !important;
|
|
4925
4955
|
}
|
|
4926
|
-
[data-v-
|
|
4956
|
+
[data-v-d6fb2049] .cm-tooltip-autocomplete ul li[aria-selected] {
|
|
4927
4957
|
background: var(--scalar-background-2) !important;
|
|
4928
4958
|
color: var(--scalar-color-1) !important;
|
|
4929
4959
|
}
|
|
4930
|
-
[data-v-
|
|
4960
|
+
[data-v-d6fb2049] .cm-tooltip-autocomplete ul {
|
|
4931
4961
|
padding: 6px !important;
|
|
4932
4962
|
position: relative;
|
|
4933
4963
|
}
|
|
4934
|
-
[data-v-
|
|
4964
|
+
[data-v-d6fb2049] .cm-tooltip-autocomplete ul li:hover {
|
|
4935
4965
|
border-radius: 3px;
|
|
4936
4966
|
color: var(--scalar-color-1) !important;
|
|
4937
4967
|
background: var(--scalar-background-3) !important;
|
|
4938
4968
|
}
|
|
4939
4969
|
/* Disable active line highlighting */
|
|
4940
|
-
[data-v-
|
|
4970
|
+
[data-v-d6fb2049] .cm-activeLine,[data-v-d6fb2049] .cm-activeLineGutter {
|
|
4941
4971
|
background-color: transparent;
|
|
4942
4972
|
}
|
|
4943
4973
|
/* Color selection matching */
|
|
4944
|
-
[data-v-
|
|
4974
|
+
[data-v-d6fb2049] .cm-selectionMatch,[data-v-d6fb2049] .cm-matchingBracket {
|
|
4945
4975
|
border-radius: var(--scalar-radius);
|
|
4946
4976
|
background: var(--scalar-background-4) !important;
|
|
4947
4977
|
}
|
|
4948
4978
|
/* Color Picker Swatches */
|
|
4949
|
-
[data-v-
|
|
4979
|
+
[data-v-d6fb2049] .cm-css-color-picker-wrapper {
|
|
4950
4980
|
display: inline-flex;
|
|
4951
4981
|
outline: 1px solid var(--scalar-background-3);
|
|
4952
4982
|
border-radius: 3px;
|
|
4953
4983
|
overflow: hidden;
|
|
4954
4984
|
}
|
|
4955
4985
|
/* Number gutter */
|
|
4956
|
-
[data-v-
|
|
4986
|
+
[data-v-d6fb2049] .cm-gutters {
|
|
4957
4987
|
background-color: transparent;
|
|
4958
4988
|
border-right: none;
|
|
4959
4989
|
color: var(--scalar-color-3);
|
|
@@ -4961,7 +4991,7 @@ to {
|
|
|
4961
4991
|
line-height: 22px;
|
|
4962
4992
|
border-radius: 0 0 0 3px;
|
|
4963
4993
|
}
|
|
4964
|
-
[data-v-
|
|
4994
|
+
[data-v-d6fb2049] .cm-gutters:before {
|
|
4965
4995
|
content: '';
|
|
4966
4996
|
position: absolute;
|
|
4967
4997
|
top: 2px;
|
|
@@ -4971,7 +5001,7 @@ to {
|
|
|
4971
5001
|
border-radius: var(--scalar-radius) 0 0 var(--scalar-radius);
|
|
4972
5002
|
background-color: var(--scalar-background-1);
|
|
4973
5003
|
}
|
|
4974
|
-
[data-v-
|
|
5004
|
+
[data-v-d6fb2049] .cm-gutterElement {
|
|
4975
5005
|
font-family: var(--scalar-font-code) !important;
|
|
4976
5006
|
padding-left: 0px !important;
|
|
4977
5007
|
padding-right: 6px !important;
|
|
@@ -4980,16 +5010,16 @@ to {
|
|
|
4980
5010
|
justify-content: flex-end;
|
|
4981
5011
|
position: relative;
|
|
4982
5012
|
}
|
|
4983
|
-
[data-v-
|
|
5013
|
+
[data-v-d6fb2049] .cm-lineNumbers .cm-gutterElement {
|
|
4984
5014
|
min-width: fit-content;
|
|
4985
5015
|
}
|
|
4986
|
-
[data-v-
|
|
5016
|
+
[data-v-d6fb2049] .cm-gutter + .cm-gutter :not(.cm-foldGutter) .cm-gutterElement {
|
|
4987
5017
|
padding-left: 0 !important;
|
|
4988
5018
|
}
|
|
4989
|
-
[data-v-
|
|
5019
|
+
[data-v-d6fb2049] .cm-scroller {
|
|
4990
5020
|
overflow: auto;
|
|
4991
5021
|
}
|
|
4992
|
-
.line-wrapping[data-v-
|
|
5022
|
+
.line-wrapping[data-v-d6fb2049]:focus-within .cm-content {
|
|
4993
5023
|
display: inline-table;
|
|
4994
5024
|
min-height: fit-content;
|
|
4995
5025
|
padding: 3px 6px;
|
|
@@ -5062,21 +5092,21 @@ to {
|
|
|
5062
5092
|
.description[data-v-649f9a0d] .markdown > *:first-child {
|
|
5063
5093
|
margin-top: 0;
|
|
5064
5094
|
}
|
|
5065
|
-
[data-v-
|
|
5095
|
+
[data-v-d37cbfcc] .cm-editor {
|
|
5066
5096
|
height: 100%;
|
|
5067
5097
|
outline: none;
|
|
5068
5098
|
width: 100%;
|
|
5069
5099
|
}
|
|
5070
|
-
[data-v-
|
|
5100
|
+
[data-v-d37cbfcc] .cm-line {
|
|
5071
5101
|
padding: 0;
|
|
5072
5102
|
}
|
|
5073
|
-
[data-v-
|
|
5103
|
+
[data-v-d37cbfcc] .cm-content {
|
|
5074
5104
|
padding: 0;
|
|
5075
5105
|
display: flex;
|
|
5076
5106
|
align-items: center;
|
|
5077
5107
|
font-size: var(--scalar-small);
|
|
5078
5108
|
}
|
|
5079
|
-
.scroll-timeline-x[data-v-
|
|
5109
|
+
.scroll-timeline-x[data-v-d37cbfcc] {
|
|
5080
5110
|
-ms-overflow-style: none;
|
|
5081
5111
|
/* Fade the URL at the viewport edges. Mask lives on the scrollport (this
|
|
5082
5112
|
element) rather than on `.cm-scroller`, whose width follows the URL's
|
|
@@ -5089,31 +5119,31 @@ to {
|
|
|
5089
5119
|
transparent 100%
|
|
5090
5120
|
);
|
|
5091
5121
|
}
|
|
5092
|
-
.scroll-timeline-x-hidden[data-v-
|
|
5122
|
+
.scroll-timeline-x-hidden[data-v-d37cbfcc] {
|
|
5093
5123
|
overflow-x: auto;
|
|
5094
5124
|
}
|
|
5095
|
-
.scroll-timeline-x-hidden[data-v-
|
|
5125
|
+
.scroll-timeline-x-hidden[data-v-d37cbfcc] .cm-scroller {
|
|
5096
5126
|
scrollbar-width: none;
|
|
5097
5127
|
-ms-overflow-style: none;
|
|
5098
5128
|
padding-right: 20px;
|
|
5099
5129
|
overflow: auto;
|
|
5100
5130
|
}
|
|
5101
|
-
.scroll-timeline-x-hidden[data-v-
|
|
5131
|
+
.scroll-timeline-x-hidden[data-v-d37cbfcc]::-webkit-scrollbar {
|
|
5102
5132
|
width: 0;
|
|
5103
5133
|
height: 0;
|
|
5104
5134
|
display: none;
|
|
5105
5135
|
}
|
|
5106
|
-
.scroll-timeline-x-hidden[data-v-
|
|
5136
|
+
.scroll-timeline-x-hidden[data-v-d37cbfcc] .cm-scroller::-webkit-scrollbar {
|
|
5107
5137
|
width: 0;
|
|
5108
5138
|
height: 0;
|
|
5109
5139
|
display: none;
|
|
5110
5140
|
}
|
|
5111
|
-
.scroll-timeline-x-address[data-v-
|
|
5141
|
+
.scroll-timeline-x-address[data-v-d37cbfcc] {
|
|
5112
5142
|
line-height: 27px;
|
|
5113
5143
|
scrollbar-width: none; /* Firefox */
|
|
5114
5144
|
}
|
|
5115
5145
|
/* make clickable are to left of send button */
|
|
5116
|
-
.scroll-timeline-x-address[data-v-
|
|
5146
|
+
.scroll-timeline-x-address[data-v-d37cbfcc]:after {
|
|
5117
5147
|
content: '';
|
|
5118
5148
|
position: absolute;
|
|
5119
5149
|
height: 100%;
|
|
@@ -5121,12 +5151,12 @@ to {
|
|
|
5121
5151
|
right: 0;
|
|
5122
5152
|
cursor: text;
|
|
5123
5153
|
}
|
|
5124
|
-
.scroll-timeline-x-address[data-v-
|
|
5154
|
+
.scroll-timeline-x-address[data-v-d37cbfcc]:empty:before {
|
|
5125
5155
|
content: 'Enter URL or cURL request';
|
|
5126
5156
|
color: var(--scalar-color-3);
|
|
5127
5157
|
pointer-events: none;
|
|
5128
5158
|
}
|
|
5129
|
-
.address-bar-bg-states[data-v-
|
|
5159
|
+
.address-bar-bg-states[data-v-d37cbfcc] {
|
|
5130
5160
|
--scalar-address-bar-bg: color-mix(
|
|
5131
5161
|
in srgb,
|
|
5132
5162
|
var(--scalar-background-1),
|
|
@@ -5134,12 +5164,16 @@ to {
|
|
|
5134
5164
|
);
|
|
5135
5165
|
background: var(--scalar-address-bar-bg);
|
|
5136
5166
|
}
|
|
5137
|
-
.address-bar-bg-states[data-v-
|
|
5167
|
+
.address-bar-bg-states[data-v-d37cbfcc]:has(.cm-focused) {
|
|
5138
5168
|
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
5139
5169
|
border-color: var(--scalar-border-color);
|
|
5140
5170
|
outline-width: 1px;
|
|
5141
5171
|
outline-style: solid;
|
|
5142
5172
|
}
|
|
5173
|
+
.address-bar-bg-states:has(.cm-focused) .fade-left[data-v-d37cbfcc],
|
|
5174
|
+
.address-bar-bg-states:has(.cm-focused) .fade-right[data-v-d37cbfcc] {
|
|
5175
|
+
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
5176
|
+
}
|
|
5143
5177
|
.app-exit-button[data-v-42c563b3] {
|
|
5144
5178
|
color: white;
|
|
5145
5179
|
background: rgba(0, 0, 0, 0.1);
|
|
@@ -5235,33 +5269,107 @@ to {
|
|
|
5235
5269
|
.context-bar-group:has(:focus-visible) .context-bar-group-hover\:hidden[data-v-07ff8fc3] {
|
|
5236
5270
|
display: none;
|
|
5237
5271
|
}
|
|
5238
|
-
[data-v-
|
|
5239
|
-
|
|
5272
|
+
.code-input-lite[data-v-1974e80d] {
|
|
5273
|
+
/* Flex so the editor centres vertically in whatever height the cell gives us.
|
|
5274
|
+
Font properties inherit so we adopt the surrounding typography. */
|
|
5275
|
+
display: flex;
|
|
5276
|
+
align-items: center;
|
|
5277
|
+
}
|
|
5278
|
+
.code-input-lite__editor[data-v-1974e80d] {
|
|
5279
|
+
/* Everything font-related inherits from the surrounding context. */
|
|
5280
|
+
font: inherit;
|
|
5281
|
+
letter-spacing: inherit;
|
|
5282
|
+
flex: 1;
|
|
5283
|
+
min-width: 0;
|
|
5284
|
+
background: transparent;
|
|
5285
|
+
outline: none;
|
|
5286
|
+
color: var(--scalar-color-1);
|
|
5287
|
+
caret-color: var(--scalar-color-1);
|
|
5288
|
+
/* Single-line: horizontal scroll keeps the caret visible for long values;
|
|
5289
|
+
the scrollbar itself is hidden (would be noisy inside a table cell). */
|
|
5290
|
+
white-space: pre;
|
|
5291
|
+
overflow-x: auto;
|
|
5292
|
+
overflow-y: hidden;
|
|
5293
|
+
scrollbar-width: none;
|
|
5294
|
+
padding: 0 0.5em;
|
|
5295
|
+
box-sizing: border-box;
|
|
5296
|
+
line-height: 1.44;
|
|
5297
|
+
/* Positioning context for the absolutely positioned placeholder. */
|
|
5298
|
+
position: relative;
|
|
5299
|
+
}
|
|
5300
|
+
.code-input-lite__editor[data-v-1974e80d]::-webkit-scrollbar {
|
|
5301
|
+
display: none;
|
|
5240
5302
|
}
|
|
5241
|
-
|
|
5303
|
+
/* Absolute so the placeholder does not occupy flow space inside the
|
|
5304
|
+
contenteditable; otherwise the caret would land after it on focus.
|
|
5305
|
+
`pointer-events: none` lets clicks fall through to focus the editor.
|
|
5306
|
+
Hidden on focus so it never renders on top of the text caret. */
|
|
5307
|
+
.code-input-lite--empty .code-input-lite__editor[data-v-1974e80d]:not(:focus)::before {
|
|
5308
|
+
content: attr(data-placeholder);
|
|
5309
|
+
color: var(--scalar-color-3);
|
|
5310
|
+
pointer-events: none;
|
|
5311
|
+
position: absolute;
|
|
5312
|
+
top: 0;
|
|
5313
|
+
bottom: 0;
|
|
5314
|
+
left: 0.5em;
|
|
5315
|
+
display: flex;
|
|
5242
5316
|
align-items: center;
|
|
5317
|
+
}
|
|
5318
|
+
.code-input-lite--error .code-input-lite__editor[data-v-1974e80d] {
|
|
5319
|
+
outline: 1px solid var(--scalar-color-red);
|
|
5320
|
+
}
|
|
5321
|
+
/* Pill styling. Each pill is `<span contenteditable="false">name</span>` —
|
|
5322
|
+
an atomic widget; the caret lands before or after it, never inside. */
|
|
5323
|
+
.scalar-pill {
|
|
5324
|
+
color: var(--scalar-color-2);
|
|
5325
|
+
border-radius: 30px;
|
|
5326
|
+
display: inline-block;
|
|
5327
|
+
font-family: var(--scalar-font-code);
|
|
5328
|
+
font-size: 0.9em;
|
|
5329
|
+
line-height: 1.4;
|
|
5330
|
+
vertical-align: baseline;
|
|
5331
|
+
background: var(--scalar-background-3);
|
|
5332
|
+
padding: 0.125em 0.6em;
|
|
5333
|
+
margin-right: 0.35em;
|
|
5334
|
+
cursor: text;
|
|
5335
|
+
/* Single click selects the whole pill — chip/mention model, deletes in one go. */
|
|
5336
|
+
user-select: all;
|
|
5337
|
+
-webkit-user-select: all;
|
|
5338
|
+
}
|
|
5339
|
+
.dark-mode .scalar-pill {
|
|
5340
|
+
background: color-mix(
|
|
5341
|
+
in srgb,
|
|
5342
|
+
var(--tw-bg-base, var(--scalar-color-1)),
|
|
5343
|
+
transparent 90%
|
|
5344
|
+
);
|
|
5345
|
+
}
|
|
5346
|
+
.light-mode .scalar-pill {
|
|
5347
|
+
background: var(--scalar-background-3);
|
|
5348
|
+
}
|
|
5349
|
+
.scalar-pill--context-fn {
|
|
5350
|
+
/* Inset box-shadow as a border so the layout box stays identical to plain pills. */
|
|
5351
|
+
box-shadow: 0 0 0 1px
|
|
5352
|
+
color-mix(in srgb, var(--scalar-color-3), transparent 35%) inset;
|
|
5353
|
+
}
|
|
5354
|
+
.dark-mode .scalar-pill--context-fn {
|
|
5355
|
+
background: color-mix(in srgb, var(--scalar-background-3), transparent 55%);
|
|
5356
|
+
}
|
|
5357
|
+
.light-mode .scalar-pill--context-fn {
|
|
5358
|
+
background: color-mix(in srgb, var(--scalar-background-3), transparent 40%);
|
|
5359
|
+
}
|
|
5360
|
+
[data-v-e83eb7d0] .code-input-lite__editor {
|
|
5243
5361
|
background-color: transparent;
|
|
5244
|
-
display: flex;
|
|
5245
5362
|
font-family: var(--scalar-font);
|
|
5246
5363
|
font-size: var(--scalar-small);
|
|
5247
5364
|
padding: 5px 8px;
|
|
5248
|
-
width: 100%;
|
|
5249
|
-
}
|
|
5250
|
-
[data-v-36811e28] .cm-content:has(.cm-pill) {
|
|
5251
|
-
padding: 5px 8px;
|
|
5252
5365
|
}
|
|
5253
|
-
[data-v-
|
|
5254
|
-
margin-right: 0.
|
|
5366
|
+
[data-v-e83eb7d0] .scalar-pill:not(:last-of-type) {
|
|
5367
|
+
margin-right: 0.15em;
|
|
5255
5368
|
}
|
|
5256
|
-
[data-v-
|
|
5369
|
+
[data-v-e83eb7d0] .scalar-pill:not(:first-of-type) {
|
|
5257
5370
|
margin-left: 0.5px;
|
|
5258
5371
|
}
|
|
5259
|
-
[data-v-
|
|
5260
|
-
overflow: hidden;
|
|
5261
|
-
padding: 0;
|
|
5262
|
-
text-overflow: ellipsis;
|
|
5263
|
-
}
|
|
5264
|
-
.filemask[data-v-36811e28] {
|
|
5372
|
+
.filemask[data-v-e83eb7d0] {
|
|
5265
5373
|
mask-image: linear-gradient(
|
|
5266
5374
|
to right,
|
|
5267
5375
|
transparent 0,
|
|
@@ -5292,42 +5400,27 @@ to {
|
|
|
5292
5400
|
-ms-overflow-style: none;
|
|
5293
5401
|
scrollbar-width: none;
|
|
5294
5402
|
}
|
|
5295
|
-
[data-v-
|
|
5296
|
-
padding: 0;
|
|
5297
|
-
}
|
|
5298
|
-
[data-v-1ee3c31d] .cm-content {
|
|
5299
|
-
align-items: center;
|
|
5403
|
+
[data-v-a6f4752a] .code-input-lite__editor {
|
|
5300
5404
|
background-color: transparent;
|
|
5301
|
-
display: flex;
|
|
5302
5405
|
font-family: var(--scalar-font);
|
|
5303
5406
|
font-size: var(--scalar-small);
|
|
5304
5407
|
padding: 5px 8px;
|
|
5305
|
-
width: 100%;
|
|
5306
|
-
}
|
|
5307
|
-
[data-v-1ee3c31d] .cm-content:has(.cm-pill) {
|
|
5308
|
-
padding: 5px 8px;
|
|
5309
5408
|
}
|
|
5310
|
-
[data-v-
|
|
5311
|
-
margin-right: 0.
|
|
5409
|
+
[data-v-a6f4752a] .scalar-pill:not(:last-of-type) {
|
|
5410
|
+
margin-right: 0.15em;
|
|
5312
5411
|
}
|
|
5313
|
-
[data-v-
|
|
5412
|
+
[data-v-a6f4752a] .scalar-pill:not(:first-of-type) {
|
|
5314
5413
|
margin-left: 0.5px;
|
|
5315
5414
|
}
|
|
5316
|
-
[data-v-
|
|
5317
|
-
overflow: hidden;
|
|
5318
|
-
padding: 0;
|
|
5319
|
-
text-overflow: ellipsis;
|
|
5320
|
-
word-break: break-word;
|
|
5321
|
-
}
|
|
5322
|
-
.required[data-v-1ee3c31d]::after {
|
|
5415
|
+
.required[data-v-a6f4752a]::after {
|
|
5323
5416
|
content: 'Required';
|
|
5324
5417
|
}
|
|
5325
5418
|
/* Tailwind placeholder is busted */
|
|
5326
|
-
input[data-v-
|
|
5419
|
+
input[data-v-a6f4752a]::placeholder {
|
|
5327
5420
|
color: var(--scalar-color-3);
|
|
5328
5421
|
}
|
|
5329
5422
|
/* we want our inputs to look like a password input but not be one */
|
|
5330
|
-
.scalar-password-input[data-v-
|
|
5423
|
+
.scalar-password-input[data-v-a6f4752a] {
|
|
5331
5424
|
text-security: disc;
|
|
5332
5425
|
-webkit-text-security: disc;
|
|
5333
5426
|
-moz-text-security: disc;
|
|
@@ -5523,32 +5616,18 @@ to {
|
|
|
5523
5616
|
right: 0;
|
|
5524
5617
|
bottom: 0;
|
|
5525
5618
|
}
|
|
5526
|
-
[data-v-
|
|
5527
|
-
padding: 0;
|
|
5528
|
-
}
|
|
5529
|
-
[data-v-69be2d6c] .cm-content {
|
|
5530
|
-
align-items: center;
|
|
5619
|
+
[data-v-5b336842] .code-input-lite__editor {
|
|
5531
5620
|
background-color: transparent;
|
|
5532
|
-
display: flex;
|
|
5533
5621
|
font-family: var(--scalar-font);
|
|
5534
5622
|
font-size: var(--scalar-small);
|
|
5535
5623
|
padding: 5px 8px;
|
|
5536
|
-
width: 100%;
|
|
5537
|
-
}
|
|
5538
|
-
[data-v-69be2d6c] .cm-content:has(.cm-pill) {
|
|
5539
|
-
padding: 5px 8px;
|
|
5540
5624
|
}
|
|
5541
|
-
[data-v-
|
|
5542
|
-
margin-right: 0.
|
|
5625
|
+
[data-v-5b336842] .scalar-pill:not(:last-of-type) {
|
|
5626
|
+
margin-right: 0.15em;
|
|
5543
5627
|
}
|
|
5544
|
-
[data-v-
|
|
5628
|
+
[data-v-5b336842] .scalar-pill:not(:first-of-type) {
|
|
5545
5629
|
margin-left: 0.5px;
|
|
5546
5630
|
}
|
|
5547
|
-
[data-v-69be2d6c] .cm-line {
|
|
5548
|
-
overflow: hidden;
|
|
5549
|
-
padding: 0;
|
|
5550
|
-
text-overflow: ellipsis;
|
|
5551
|
-
}
|
|
5552
5631
|
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
|
|
5553
5632
|
.scalar .scalar-app-layout[data-v-77897d1c] {
|
|
5554
5633
|
background: var(--scalar-background-1);
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"testing",
|
|
20
20
|
"react"
|
|
21
21
|
],
|
|
22
|
-
"version": "2.0.
|
|
22
|
+
"version": "2.0.26",
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=22"
|
|
25
25
|
},
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@scalar/api-client": "3.10.
|
|
43
|
-
"@scalar/
|
|
44
|
-
"@scalar/
|
|
42
|
+
"@scalar/api-client": "3.10.4",
|
|
43
|
+
"@scalar/workspace-store": "0.54.4",
|
|
44
|
+
"@scalar/helpers": "0.8.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@testing-library/dom": "^10.4.1",
|