@scalar/api-client 0.1.3 → 0.1.4
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/dist/components/CodeMirror/CodeMirror.vue.d.ts +1 -1
- package/dist/components/CodeMirror/CodeMirror.vue.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4650 -30439
- package/dist/style.css +26 -27
- package/dist/variables.css +6 -7
- package/package.json +17 -4
package/dist/style.css
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
color: var(--scalar-api-client-color);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.modal-layout[data-v-
|
|
33
|
+
.modal-layout[data-v-1de61d2e] {
|
|
34
34
|
position: fixed;
|
|
35
35
|
width: 100vw;
|
|
36
36
|
height: 100vh;
|
|
@@ -40,40 +40,40 @@
|
|
|
40
40
|
background: rgba(0, 0, 0, 0.44);
|
|
41
41
|
padding: 20px;
|
|
42
42
|
opacity: 0;
|
|
43
|
-
animation: modal-fade-
|
|
43
|
+
animation: modal-fade-1de61d2e 0.2s forwards;
|
|
44
44
|
}
|
|
45
|
-
.modal-body[data-v-
|
|
45
|
+
.modal-body[data-v-1de61d2e] {
|
|
46
46
|
padding: 18px;
|
|
47
47
|
max-height: calc(100vh - 240px);
|
|
48
48
|
background: var(--scalar-api-client-background-primary);
|
|
49
49
|
border-radius: var(--scalar-api-client-rounded);
|
|
50
50
|
font-family: var(--scalar-api-client-font-sans);
|
|
51
51
|
}
|
|
52
|
-
.modal[data-v-
|
|
52
|
+
.modal[data-v-1de61d2e] {
|
|
53
53
|
margin: 80px auto 0;
|
|
54
54
|
position: relative;
|
|
55
|
-
background: var(--theme-background-2);
|
|
56
|
-
border-radius: var(--
|
|
57
|
-
color: var(--theme-color-1);
|
|
55
|
+
background: var(--scalar-api-client-theme-background-2);
|
|
56
|
+
border-radius: var(--scalar-api-client-rounded);
|
|
57
|
+
color: var(--scalar-api-client-theme-color-1);
|
|
58
58
|
width: 100%;
|
|
59
59
|
text-align: left;
|
|
60
60
|
line-height: 1.4;
|
|
61
61
|
opacity: 0;
|
|
62
62
|
transform: scale(0.98);
|
|
63
|
-
animation: modal-pop-
|
|
63
|
+
animation: modal-pop-1de61d2e 0.15s 0.15s forwards;
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
}
|
|
67
|
-
.modal-content-large[data-v-
|
|
67
|
+
.modal-content-large[data-v-1de61d2e] {
|
|
68
68
|
max-width: 800px;
|
|
69
69
|
}
|
|
70
|
-
.modal-content-normal[data-v-
|
|
70
|
+
.modal-content-normal[data-v-1de61d2e] {
|
|
71
71
|
max-width: 640px;
|
|
72
72
|
}
|
|
73
|
-
.modal-content-small[data-v-
|
|
73
|
+
.modal-content-small[data-v-1de61d2e] {
|
|
74
74
|
max-width: 480px;
|
|
75
75
|
}
|
|
76
|
-
@keyframes modal-fade-
|
|
76
|
+
@keyframes modal-fade-1de61d2e {
|
|
77
77
|
from {
|
|
78
78
|
opacity: 0;
|
|
79
79
|
}
|
|
@@ -81,7 +81,7 @@ to {
|
|
|
81
81
|
opacity: 1;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
@keyframes modal-pop-
|
|
84
|
+
@keyframes modal-pop-1de61d2e {
|
|
85
85
|
0% {
|
|
86
86
|
opacity: 0;
|
|
87
87
|
}
|
|
@@ -90,13 +90,13 @@ to {
|
|
|
90
90
|
transform: scale(1);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
.modal-header[data-v-
|
|
93
|
+
.modal-header[data-v-1de61d2e] {
|
|
94
94
|
padding: 12px 24px;
|
|
95
|
-
color: var(--theme-color-1);
|
|
96
|
-
font-size: var(--theme-font-size-4);
|
|
95
|
+
color: var(--scalar-api-client-theme-color-1);
|
|
96
|
+
font-size: var(--scalar-api-client-theme-font-size-4);
|
|
97
97
|
text-align: left;
|
|
98
98
|
font-weight: 600;
|
|
99
|
-
border-radius: var(--
|
|
99
|
+
border-radius: var(--scalar-api-client-rounded) var(--scalar-api-client-rounded) 0 0;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.navtable-mock {
|
|
@@ -1308,7 +1308,7 @@ button {
|
|
|
1308
1308
|
a[href]:focus-visible,
|
|
1309
1309
|
button:focus-visible,
|
|
1310
1310
|
[tabindex]:focus-visible {
|
|
1311
|
-
outline: 1px dashed var(--theme-color-2);
|
|
1311
|
+
outline: 1px dashed var(--scalar-api-client-theme-color-2);
|
|
1312
1312
|
outline-offset: 2px;
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
@@ -1388,7 +1388,7 @@ display:revert; revert to element instead of attribute */
|
|
|
1388
1388
|
/* revert for bug in Chromium browsers
|
|
1389
1389
|
- fix for the content editable attribute will work properly.
|
|
1390
1390
|
- webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
|
|
1391
|
-
:where([contenteditable]:not([contenteditable=
|
|
1391
|
+
:where([contenteditable]:not([contenteditable="false"])) {
|
|
1392
1392
|
-moz-user-modify: revert-layer, read-write;
|
|
1393
1393
|
-webkit-user-modify: revert-layer, read-write;
|
|
1394
1394
|
overflow-wrap: revert-layer, break-word;
|
|
@@ -1397,7 +1397,7 @@ display:revert; revert to element instead of attribute */
|
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
1399
|
/* apply back the draggable feature - exist only in Chromium and Safari */
|
|
1400
|
-
:where([draggable=
|
|
1400
|
+
:where([draggable="true"]) {
|
|
1401
1401
|
-webkit-user-drag: element;
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
@@ -1405,8 +1405,7 @@ display:revert; revert to element instead of attribute */
|
|
|
1405
1405
|
:where(dialog:modal) {
|
|
1406
1406
|
all: revert;
|
|
1407
1407
|
}
|
|
1408
|
-
|
|
1409
|
-
#headlessui-portal-root {
|
|
1408
|
+
:root {
|
|
1410
1409
|
/** Font sizes */
|
|
1411
1410
|
--scalar-api-client-text-xs: 12px;
|
|
1412
1411
|
--scalar-api-client-text-sm: 14px;
|
|
@@ -1424,11 +1423,11 @@ display:revert; revert to element instead of attribute */
|
|
|
1424
1423
|
--scalar-api-client-rounded: 4px;
|
|
1425
1424
|
|
|
1426
1425
|
/** Fonts */
|
|
1427
|
-
--scalar-api-client-font-sans: system-ui,
|
|
1428
|
-
sans-serif,
|
|
1429
|
-
--scalar-api-client-font-mono: ui-monospace, Menlo, Monaco,
|
|
1430
|
-
|
|
1431
|
-
|
|
1426
|
+
--scalar-api-client-font-sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial,
|
|
1427
|
+
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
1428
|
+
--scalar-api-client-font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono",
|
|
1429
|
+
"Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace",
|
|
1430
|
+
"Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
|
|
1432
1431
|
|
|
1433
1432
|
/** Font weights */
|
|
1434
1433
|
--scalar-api-client-font-semibold: 600;
|
package/dist/variables.css
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
#headlessui-portal-root {
|
|
1
|
+
:root {
|
|
3
2
|
/** Font sizes */
|
|
4
3
|
--scalar-api-client-text-xs: 12px;
|
|
5
4
|
--scalar-api-client-text-sm: 14px;
|
|
@@ -17,11 +16,11 @@
|
|
|
17
16
|
--scalar-api-client-rounded: 4px;
|
|
18
17
|
|
|
19
18
|
/** Fonts */
|
|
20
|
-
--scalar-api-client-font-sans: system-ui,
|
|
21
|
-
sans-serif,
|
|
22
|
-
--scalar-api-client-font-mono: ui-monospace, Menlo, Monaco,
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
--scalar-api-client-font-sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial,
|
|
20
|
+
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
21
|
+
--scalar-api-client-font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono",
|
|
22
|
+
"Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace",
|
|
23
|
+
"Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
|
|
25
24
|
|
|
26
25
|
/** Font weights */
|
|
27
26
|
--scalar-api-client-font-semibold: 600;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalar/api-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"author": "Scalar",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"engines": {
|
|
@@ -10,11 +10,24 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
|
-
"main": "dist/index.js",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./style.css": {
|
|
20
|
+
"import": "./dist/style.css"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
14
23
|
"types": "dist/index.d.ts",
|
|
15
24
|
"dependencies": {
|
|
25
|
+
"@codemirror/lang-java": "^6.0.1",
|
|
16
26
|
"@codemirror/lang-javascript": "6.1.9",
|
|
17
27
|
"@codemirror/lang-json": "6.0.1",
|
|
28
|
+
"@codemirror/lang-python": "6.1.3",
|
|
29
|
+
"@codemirror/language": "6.8.0",
|
|
30
|
+
"@codemirror/legacy-modes": "6.3.3",
|
|
18
31
|
"@codemirror/state": "6.2.1",
|
|
19
32
|
"@codemirror/view": "6.16.0",
|
|
20
33
|
"@headlessui/vue": "1.7.14",
|
|
@@ -31,8 +44,8 @@
|
|
|
31
44
|
"pretty-bytes": "6.1.0",
|
|
32
45
|
"pretty-ms": "8.0.0",
|
|
33
46
|
"tippy.js": "6.3.7",
|
|
34
|
-
"@scalar/use-codemirror": "0.1.
|
|
35
|
-
"@scalar/use-keyboard-event": "0.1.
|
|
47
|
+
"@scalar/use-codemirror": "0.1.4",
|
|
48
|
+
"@scalar/use-keyboard-event": "0.1.4"
|
|
36
49
|
},
|
|
37
50
|
"devDependencies": {
|
|
38
51
|
"@vitejs/plugin-vue": "4.2.3",
|