@scalar/api-client 0.1.17 → 0.1.18

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/index.js CHANGED
@@ -15879,7 +15879,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
15879
15879
  };
15880
15880
  }
15881
15881
  });
15882
- const FlowModal_vue_vue_type_style_index_0_scoped_5579cc4c_lang = "";
15882
+ const FlowModal_vue_vue_type_style_index_0_scoped_075b7f61_lang = "";
15883
15883
  const _export_sfc = (sfc, props) => {
15884
15884
  const target = sfc.__vccOpts || sfc;
15885
15885
  for (const [key, val] of props) {
@@ -15887,7 +15887,7 @@ const _export_sfc = (sfc, props) => {
15887
15887
  }
15888
15888
  return target;
15889
15889
  };
15890
- const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5579cc4c"]]);
15890
+ const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-075b7f61"]]);
15891
15891
  const BYTE_UNITS = [
15892
15892
  "B",
15893
15893
  "kB",
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-5579cc4c] {
33
+ .modal-layout[data-v-075b7f61] {
34
34
  position: fixed;
35
35
  width: 100vw;
36
36
  height: 100vh;
@@ -40,16 +40,16 @@
40
40
  background: rgba(0, 0, 0, 0.44);
41
41
  padding: 20px;
42
42
  opacity: 0;
43
- animation: modal-fade-5579cc4c 0.2s forwards;
43
+ animation: modal-fade-075b7f61 0.2s forwards;
44
44
  }
45
- .modal-body[data-v-5579cc4c] {
45
+ .modal-body[data-v-075b7f61] {
46
46
  padding: 24px 12px 18px 24px;
47
47
  max-height: calc(100vh - 240px);
48
48
  background: var(--theme-background-1);
49
49
  border-radius: var(--theme-radius-lg);
50
50
  font-family: var(--theme-font);
51
51
  }
52
- .modal[data-v-5579cc4c] {
52
+ .modal[data-v-075b7f61] {
53
53
  margin: 80px auto 0;
54
54
  position: relative;
55
55
  background: var(--theme-background-2);
@@ -60,20 +60,20 @@
60
60
  line-height: 1.4;
61
61
  opacity: 0;
62
62
  transform: scale(0.98);
63
- animation: modal-pop-5579cc4c 0.15s 0.15s forwards;
63
+ animation: modal-pop-075b7f61 0.15s 0.15s forwards;
64
64
  display: flex;
65
65
  flex-direction: column;
66
66
  }
67
- .modal-content-large[data-v-5579cc4c] {
67
+ .modal-content-large[data-v-075b7f61] {
68
68
  max-width: 800px;
69
69
  }
70
- .modal-content-normal[data-v-5579cc4c] {
70
+ .modal-content-normal[data-v-075b7f61] {
71
71
  max-width: 640px;
72
72
  }
73
- .modal-content-small[data-v-5579cc4c] {
73
+ .modal-content-small[data-v-075b7f61] {
74
74
  max-width: 480px;
75
75
  }
76
- @keyframes modal-fade-5579cc4c {
76
+ @keyframes modal-fade-075b7f61 {
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-5579cc4c {
84
+ @keyframes modal-pop-075b7f61 {
85
85
  0% {
86
86
  opacity: 0;
87
87
  }
@@ -90,14 +90,13 @@ to {
90
90
  transform: scale(1);
91
91
  }
92
92
  }
93
- .modal-header[data-v-5579cc4c] {
93
+ .modal-header[data-v-075b7f61] {
94
94
  padding: 12px 24px;
95
95
  color: var(--theme-color-1);
96
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(--theme-radius-lg)
100
- var(--theme-radius-lg) 0 0;
99
+ border-radius: var(--theme-radius-lg) var(--theme-radius-lg) 0 0;
101
100
  }
102
101
 
103
102
  .navtable-mock {
@@ -186,8 +185,7 @@ to {
186
185
  .scalar-api-client__field {
187
186
  border: 1px solid var(--theme-border-color);
188
187
  border-right: 0;
189
- border-radius: var(--theme-radius-lg) 0 0
190
- var(--theme-radius-lg);
188
+ border-radius: var(--theme-radius-lg) 0 0 var(--theme-radius-lg);
191
189
  display: flex;
192
190
  align-items: stretch;
193
191
  width: 100%;
@@ -208,8 +206,7 @@ to {
208
206
  -webkit-appearance: none;
209
207
  padding: 0 12px;
210
208
  border-right: 1px solid var(--theme-border-color);
211
- border-radius: var(--theme-radius-lg) 0 0
212
- var(--theme-radius-lg);
209
+ border-radius: var(--theme-radius-lg) 0 0 var(--theme-radius-lg);
213
210
  position: relative;
214
211
  }
215
212
  .scalar-api-client__request-type span {
@@ -260,8 +257,7 @@ to {
260
257
  text-transform: uppercase;
261
258
  cursor: pointer;
262
259
  outline: none;
263
- border-radius: 0 var(--theme-radius-lg)
264
- var(--theme-radius-lg) 0;
260
+ border-radius: 0 var(--theme-radius-lg) var(--theme-radius-lg) 0;
265
261
  background: var(--scalar-api-client-color);
266
262
  /** #087f5b */
267
263
  display: flex;
@@ -453,6 +449,7 @@ to {
453
449
  }
454
450
  .scalar-api-client__item button {
455
451
  background-color: transparent;
452
+ text-align: left;
456
453
  }
457
454
  .scalar-api-client__item:hover {
458
455
  cursor: pointer;
@@ -544,8 +541,7 @@ to {
544
541
  position: relative;
545
542
  }
546
543
  .table-row__add {
547
- border-radius: 0 0 var(--theme-radius-lg)
548
- var(--theme-radius-lg);
544
+ border-radius: 0 0 var(--theme-radius-lg) var(--theme-radius-lg);
549
545
  border-bottom: none;
550
546
  }
551
547
  .table-row.required-parameter .table-row-item:nth-of-type(2):after {
@@ -567,8 +563,7 @@ to {
567
563
  border-bottom: none;
568
564
  }
569
565
  .table-row__active {
570
- border-radius: 0 0 var(--theme-radius-lg)
571
- var(--theme-radius-lg);
566
+ border-radius: 0 0 var(--theme-radius-lg) var(--theme-radius-lg);
572
567
  }
573
568
  .table-row-drag {
574
569
  width: 20px;
@@ -1234,160 +1229,172 @@ a[data-v-7a2c7da8] {
1234
1229
  }
1235
1230
  /* fonts */
1236
1231
  :root {
1237
- --app-header-height: 50px;
1238
- --theme-border-width: 1px;
1239
- --theme-radius: 3px;
1240
- --theme-radius-lg: 6px;
1241
- --theme-radius-xl: 8px;
1242
-
1243
- --theme-header-height: 50px;
1244
- --theme-sidebar-width: 250px;
1245
- --theme-toc-width: 250px;
1246
-
1247
- /* TYPOGRAPHY ------------------------------------ */
1248
- --theme-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
1249
- Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
1250
- --theme-font-code: 'JetBrains Mono';
1251
-
1252
- /** Font sizes for rendered text content (editor styles or static content) */
1253
- --theme-heading-1: 40px; /* Editor Page heading */
1254
- --theme-page-description: 24px;
1255
- --theme-heading-2: 24px; /* Editor section headings */
1256
- --theme-heading-3: 20px;
1257
- --theme-heading-4: 16px;
1258
- --theme-heading-5: 16px;
1259
- --theme-heading-6: 16px;
1260
-
1261
- --theme-paragraph: 16px;
1262
- --theme-small: 14px;
1263
- --theme-mini: 13px;
1264
- --theme-micro: 12px;
1265
- --theme-bold: 600;
1266
- --theme-semibold: 500;
1267
- --theme-regular: 400;
1268
-
1269
- /* Font sizes for interactive applications (not rendered text content) */
1270
- --theme-font-size-1: 24px;
1271
- --theme-font-size-2: 16px;
1272
- --theme-font-size-3: 14px;
1273
- --theme-font-size-4: 13px;
1274
- --theme-font-size-5: 12px;
1275
-
1276
- --theme-line-height-1: 32px;
1277
- --theme-line-height-2: 24px;
1278
- --theme-line-height-3: 20px;
1279
- --theme-line-height-4: 18px;
1280
- --theme-line-height-5: 16px;
1281
-
1282
- --theme-font-medium: 500;
1283
- --theme-font-bold: 700;
1232
+ --app-header-height: 50px;
1233
+ --theme-border-width: 1px;
1234
+ --theme-radius: 3px;
1235
+ --theme-radius-lg: 6px;
1236
+ --theme-radius-xl: 8px;
1237
+
1238
+ --theme-header-height: 50px;
1239
+ --theme-sidebar-width: 250px;
1240
+ --theme-toc-width: 250px;
1241
+
1242
+ /* TYPOGRAPHY ------------------------------------ */
1243
+ --theme-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
1244
+ Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
1245
+ --theme-font-code: 'JetBrains Mono';
1246
+
1247
+ /** Font sizes for rendered text content (editor styles or static content) */
1248
+ --theme-heading-1: 40px; /* Editor Page heading */
1249
+ --theme-page-description: 24px;
1250
+ --theme-heading-2: 24px; /* Editor section headings */
1251
+ --theme-heading-3: 20px;
1252
+ --theme-heading-4: 16px;
1253
+ --theme-heading-5: 16px;
1254
+ --theme-heading-6: 16px;
1255
+
1256
+ --theme-paragraph: 16px;
1257
+ --theme-small: 14px;
1258
+ --theme-mini: 13px;
1259
+ --theme-micro: 12px;
1260
+ --theme-bold: 600;
1261
+ --theme-semibold: 500;
1262
+ --theme-regular: 400;
1263
+
1264
+ /* Font sizes for interactive applications (not rendered text content) */
1265
+ --theme-font-size-1: 24px;
1266
+ --theme-font-size-2: 16px;
1267
+ --theme-font-size-3: 14px;
1268
+ --theme-font-size-4: 13px;
1269
+ --theme-font-size-5: 12px;
1270
+
1271
+ --theme-line-height-1: 32px;
1272
+ --theme-line-height-2: 24px;
1273
+ --theme-line-height-3: 20px;
1274
+ --theme-line-height-4: 18px;
1275
+ --theme-line-height-5: 16px;
1276
+
1277
+ --theme-font-medium: 500;
1278
+ --theme-font-bold: 700;
1279
+
1280
+ /* let's clean these up please :) */
1281
+ --scalar-api-reference-theme-header-height: 0;
1282
+ --scalar-api-reference-theme-sidebar-width: 250px;
1283
+ --scalar-api-reference-theme-toc-width: 250px;
1284
+ --scalar-api-reference-app-header-height: 100px;
1285
+ --scalar-api-reference-col-width-1: 250px;
1286
+ --scalar-api-reference-col-width-2: calc(50% - 150px);
1287
+ --scalar-api-reference-col-width-3: calc(50% - 150px);
1288
+ --scalar-api-reference-document-height: 100vh;
1289
+ --scalar-api-reference-full-height: 100%;
1284
1290
  }
1285
1291
  @media (max-width: 460px) {
1286
1292
  :root {
1287
- --theme-font-size-1: 22px;
1288
- --theme-font-size-2: 14px;
1289
- --theme-font-size-3: 12px;
1293
+ --theme-font-size-1: 22px;
1294
+ --theme-font-size-2: 14px;
1295
+ --theme-font-size-3: 12px;
1290
1296
  }
1291
1297
  }
1292
1298
  @media (max-width: 720px) {
1293
1299
  :root {
1294
- --theme-heading-1: 24px;
1295
- --theme-page-description: 20px;
1300
+ --theme-heading-1: 24px;
1301
+ --theme-page-description: 20px;
1296
1302
  }
1297
1303
  }
1298
1304
  .light-mode {
1299
- color-scheme: light;
1300
- --theme-color-1: #2a2f45;
1301
- --theme-color-2: #757575;
1302
- --theme-color-3: #8e8e8e;
1303
- --theme-color-disabled: #b4b1b1;
1304
- --theme-color-ghost: #a7a7a7;
1305
- --theme-color-accent: #0099ff;
1306
- --theme-background-1: #fff;
1307
- --theme-background-2: #f6f6f6;
1308
- --theme-background-3: #e7e7e7;
1309
- --theme-background-4: rgba(0, 0, 0, 0.06);
1310
- --theme-background-accent: #8ab4f81f;
1311
-
1312
- --theme-border-color: rgba(0, 0, 0, 0.1);
1313
- --theme-scrollbar-color: rgba(0, 0, 0, 0.18);
1314
- --theme-scrollbar-color-active: rgba(0, 0, 0, 0.36);
1315
- --theme-lifted-brightness: 1;
1316
- --theme-backdrop-brightness: 1;
1317
-
1318
- --theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);
1319
- --theme-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,
1320
- rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;
1321
-
1322
- --theme-button-1: rgb(49 53 56);
1323
- --theme-button-1-color: #fff;
1324
- --theme-button-1-hover: rgb(28 31 33);
1325
-
1326
- --theme-error-color: #ae262f;
1327
- --theme-warning-color: #d89c6a;
1328
- --theme-success-color: #26ae42;
1329
-
1330
- /* REST API Client Colors */
1331
- --theme-post-color: #00a67d;
1332
- --theme-post-background: #00a67d1a;
1333
- --theme-delete-color: #ef0006;
1334
- --theme-delete-background: #ef00061a;
1335
- --theme-patch-color: #b2b062;
1336
- --theme-patch-background: #ffe6001a;
1337
- --theme-get-color: #0082d0;
1338
- --theme-get-background: #0082d01a;
1339
- --theme-put-color: #f3830e;
1340
- --theme-put-background: #f3830e1a;
1341
-
1342
- /* Misc Scalar Branding */
1343
- --scalar-brand: #faf6e9;
1305
+ color-scheme: light;
1306
+ --theme-color-1: #2a2f45;
1307
+ --theme-color-2: #757575;
1308
+ --theme-color-3: #8e8e8e;
1309
+ --theme-color-disabled: #b4b1b1;
1310
+ --theme-color-ghost: #a7a7a7;
1311
+ --theme-color-accent: #0099ff;
1312
+ --theme-background-1: #fff;
1313
+ --theme-background-2: #f6f6f6;
1314
+ --theme-background-3: #e7e7e7;
1315
+ --theme-background-4: rgba(0, 0, 0, 0.06);
1316
+ --theme-background-accent: #8ab4f81f;
1317
+
1318
+ --theme-border-color: rgba(0, 0, 0, 0.1);
1319
+ --theme-scrollbar-color: rgba(0, 0, 0, 0.18);
1320
+ --theme-scrollbar-color-active: rgba(0, 0, 0, 0.36);
1321
+ --theme-lifted-brightness: 1;
1322
+ --theme-backdrop-brightness: 1;
1323
+
1324
+ --theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);
1325
+ --theme-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,
1326
+ rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;
1327
+
1328
+ --theme-button-1: rgb(49 53 56);
1329
+ --theme-button-1-color: #fff;
1330
+ --theme-button-1-hover: rgb(28 31 33);
1331
+
1332
+ --theme-error-color: #ae262f;
1333
+ --theme-warning-color: #d89c6a;
1334
+ --theme-success-color: #26ae42;
1335
+
1336
+ /* REST API Client Colors */
1337
+ --theme-post-color: #00a67d;
1338
+ --theme-post-background: #00a67d1a;
1339
+ --theme-delete-color: #ef0006;
1340
+ --theme-delete-background: #ef00061a;
1341
+ --theme-patch-color: #b2b062;
1342
+ --theme-patch-background: #ffe6001a;
1343
+ --theme-get-color: #0082d0;
1344
+ --theme-get-background: #0082d01a;
1345
+ --theme-put-color: #f3830e;
1346
+ --theme-put-background: #f3830e1a;
1347
+
1348
+ /* Misc Scalar Branding */
1349
+ --scalar-brand: #faf6e9;
1344
1350
  }
1345
1351
  .dark-mode {
1346
- color-scheme: dark;
1347
- --theme-color-1: rgba(255, 255, 255, 0.9);
1348
- --theme-color-2: rgba(255, 255, 255, 0.62);
1349
- --theme-color-3: rgba(255, 255, 255, 0.44);
1350
- --theme-color-disabled: rgba(255, 255, 255, 0.34);
1351
- --theme-color-ghost: rgba(255, 255, 255, 0.26);
1352
- --theme-color-accent: #8ab4f8;
1353
- --theme-background-1: #1a1a1a;
1354
- --theme-background-2: #252525;
1355
- --theme-background-3: #323232;
1356
- --theme-background-4: rgba(255, 255, 255, 0.06);
1357
- --theme-background-accent: #8ab4f81f;
1358
-
1359
- --theme-border-color: rgba(255, 255, 255, 0.1);
1360
- --theme-scrollbar-color: rgba(255, 255, 255, 0.24);
1361
- --theme-scrollbar-color-active: rgba(255, 255, 255, 0.48);
1362
- --theme-lifted-brightness: 1.45;
1363
- --theme-backdrop-brightness: 0.5;
1364
-
1365
- --theme-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);
1366
- --theme-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,
1367
- rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);
1368
-
1369
- --theme-button-1: #f6f6f6;
1370
- --theme-button-1-color: #000;
1371
- --theme-button-1-hover: #e7e7e7;
1372
-
1373
- --theme-error-color: #ff0011;
1374
- --theme-success-color: #26ae42;
1375
-
1376
- /* REST API Client Colors */
1377
- --theme-post-color: #7ee787;
1378
- --theme-post-background: #7ee78714;
1379
- --theme-delete-color: #e77e7e;
1380
- --theme-delete-background: #e77e7e24;
1381
- --theme-patch-color: #b2b062;
1382
- --theme-patch-background: #b2b06229;
1383
- --theme-get-color: #79c0ff;
1384
- --theme-get-background: #79c0ff21;
1385
- --theme-put-color: #e9950c;
1386
- --theme-put-background: #e9950c21;
1387
-
1388
- /* Misc Scalar Branding */
1389
- --scalar-brand: #8b7256;
1352
+ color-scheme: dark;
1353
+ --theme-color-1: rgba(255, 255, 255, 0.9);
1354
+ --theme-color-2: rgba(255, 255, 255, 0.62);
1355
+ --theme-color-3: rgba(255, 255, 255, 0.44);
1356
+ --theme-color-disabled: rgba(255, 255, 255, 0.34);
1357
+ --theme-color-ghost: rgba(255, 255, 255, 0.26);
1358
+ --theme-color-accent: #8ab4f8;
1359
+ --theme-background-1: #1a1a1a;
1360
+ --theme-background-2: #252525;
1361
+ --theme-background-3: #323232;
1362
+ --theme-background-4: rgba(255, 255, 255, 0.06);
1363
+ --theme-background-accent: #8ab4f81f;
1364
+
1365
+ --theme-border-color: rgba(255, 255, 255, 0.1);
1366
+ --theme-scrollbar-color: rgba(255, 255, 255, 0.24);
1367
+ --theme-scrollbar-color-active: rgba(255, 255, 255, 0.48);
1368
+ --theme-lifted-brightness: 1.45;
1369
+ --theme-backdrop-brightness: 0.5;
1370
+
1371
+ --theme-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);
1372
+ --theme-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,
1373
+ rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);
1374
+
1375
+ --theme-button-1: #f6f6f6;
1376
+ --theme-button-1-color: #000;
1377
+ --theme-button-1-hover: #e7e7e7;
1378
+
1379
+ --theme-error-color: #ff0011;
1380
+ --theme-success-color: #26ae42;
1381
+
1382
+ /* REST API Client Colors */
1383
+ --theme-post-color: #7ee787;
1384
+ --theme-post-background: #7ee78714;
1385
+ --theme-delete-color: #e77e7e;
1386
+ --theme-delete-background: #e77e7e24;
1387
+ --theme-patch-color: #b2b062;
1388
+ --theme-patch-background: #b2b06229;
1389
+ --theme-get-color: #79c0ff;
1390
+ --theme-get-background: #79c0ff21;
1391
+ --theme-put-color: #e9950c;
1392
+ --theme-put-background: #e9950c21;
1393
+
1394
+ /* Misc Scalar Branding */
1395
+ --scalar-brand: #8b7256;
1390
1396
  }
1397
+
1391
1398
  .scalar-api-client {
1392
1399
  background: var(--theme-background-1);
1393
1400
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalar/api-client",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "author": "Scalar",
5
5
  "license": "UNLICENSED",
6
6
  "engines": {