@scalar/api-reference 0.1.11 → 0.1.13

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.
@@ -1,14 +1,21 @@
1
1
  import { type Spec } from '../types';
2
+ export { useApiClientStore } from '@scalar/api-client';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  spec: {
4
5
  type: import("vue").PropType<Spec>;
5
6
  required: true;
6
7
  };
8
+ overloadShow: {
9
+ type: import("vue").PropType<boolean>;
10
+ };
7
11
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
12
  spec: {
9
13
  type: import("vue").PropType<Spec>;
10
14
  required: true;
11
15
  };
16
+ overloadShow: {
17
+ type: import("vue").PropType<boolean>;
18
+ };
12
19
  }>>, {}, {}>;
13
20
  export default _default;
14
21
  //# sourceMappingURL=ApiClientModal.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;AA0JpC,wBAAkD"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AAIpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;;;;;;;;;;;;;;;;;;AACtD,wBAwJ8C"}
package/dist/index.js CHANGED
@@ -45227,7 +45227,10 @@ ${closingBraceIndent}]`;
45227
45227
  const _sfc_main$n = defineComponent({
45228
45228
  __name: "ApiClientModal",
45229
45229
  props: {
45230
- spec: {}
45230
+ spec: {},
45231
+ overloadShow: {
45232
+ type: Boolean
45233
+ }
45231
45234
  },
45232
45235
  setup(__props) {
45233
45236
  const { hideApiClient: hideApiClient2, state: state2 } = useApiClientStore();
@@ -45235,7 +45238,7 @@ ${closingBraceIndent}]`;
45235
45238
  const proxyUrl = {}.VITE_CLIENT_PROXY;
45236
45239
  return (_ctx, _cache) => {
45237
45240
  return openBlock(), createElementBlock(Fragment$1, null, [
45238
- unref(state2).showApiClient ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
45241
+ unref(state2).showApiClient || _ctx.overloadShow ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
45239
45242
  createElementVNode("div", _hoisted_2$g, [
45240
45243
  createElementVNode("div", _hoisted_3$c, [
45241
45244
  createElementVNode("div", _hoisted_4$9, [
@@ -45269,11 +45272,11 @@ ${closingBraceIndent}]`;
45269
45272
  };
45270
45273
  }
45271
45274
  });
45272
- const ApiClientModal_vue_vue_type_style_index_0_scoped_7b73462e_lang = "";
45275
+ const ApiClientModal_vue_vue_type_style_index_0_scoped_1b925514_lang = "";
45273
45276
  ApiClientModal = _export_sfc(_sfc_main$n, [
45274
45277
  [
45275
45278
  "__scopeId",
45276
- "data-v-7b73462e"
45279
+ "data-v-1b925514"
45277
45280
  ]
45278
45281
  ]);
45279
45282
  const Card_vue_vue_type_style_index_0_scoped_18b26a5c_lang = "";
package/dist/style.css CHANGED
@@ -460,10 +460,10 @@ to {
460
460
  }
461
461
  }
462
462
 
463
- .scalar-api-client__container .scalar-api-client[data-v-7b73462e] {
463
+ .scalar-api-client__container .scalar-api-client[data-v-1b925514] {
464
464
  width: calc(100% - var(--scalar-api-reference-theme-sidebar-width));
465
465
  }
466
- .scalar-api-client__container[data-v-7b73462e] {
466
+ .scalar-api-client__container[data-v-1b925514] {
467
467
  position: absolute;
468
468
  right: 0;
469
469
  left: 0;
@@ -484,11 +484,11 @@ to {
484
484
  flex-direction: column;
485
485
  }
486
486
  @media screen and (max-width: 1265px) {
487
- .scalar-api-client__container[data-v-7b73462e] {
487
+ .scalar-api-client__container[data-v-1b925514] {
488
488
  width: 100vw !important;
489
489
  }
490
490
  }
491
- .scalar-api-client__navigation[data-v-7b73462e] {
491
+ .scalar-api-client__navigation[data-v-1b925514] {
492
492
  width: 100%;
493
493
  display: flex;
494
494
  align-items: center;
@@ -500,7 +500,7 @@ to {
500
500
  border-bottom: var(--scalar-api-reference-border);
501
501
  top: 0;
502
502
  }
503
- .scalar-api-client__close[data-v-7b73462e] {
503
+ .scalar-api-client__close[data-v-1b925514] {
504
504
  appearance: none;
505
505
  border: none;
506
506
  outline: none;
@@ -511,7 +511,7 @@ to {
511
511
  color: var(--scalar-api-reference-theme-color-1);
512
512
  font-weight: var(--scalar-api-reference-theme-semibold);
513
513
  }
514
- .scalar-api-client__close[data-v-7b73462e]:hover {
514
+ .scalar-api-client__close[data-v-1b925514]:hover {
515
515
  cursor: pointer;
516
516
  }
517
517
  /*
@@ -534,7 +534,7 @@ TODO: Markup is missing
534
534
  height: 12px;
535
535
  transform: rotate(180deg);
536
536
  } */
537
- .api-client-drawer[data-v-7b73462e] {
537
+ .api-client-drawer[data-v-1b925514] {
538
538
  background: var(--scalar-api-reference-theme-background-1);
539
539
  height: calc(100vh - 58px);
540
540
  width: calc(100vw - 8px);
@@ -546,9 +546,9 @@ TODO: Markup is missing
546
546
  left: 4px;
547
547
  z-index: 9999;
548
548
  opacity: 0;
549
- animation: apiclientfadein-7b73462e 0.35s forwards;
549
+ animation: apiclientfadein-1b925514 0.35s forwards;
550
550
  }
551
- @keyframes apiclientfadein-7b73462e {
551
+ @keyframes apiclientfadein-1b925514 {
552
552
  from {
553
553
  transform: translate3d(0, 20px, 0) scale(0.985);
554
554
  opacity: 0;
@@ -558,7 +558,7 @@ to {
558
558
  opacity: 1;
559
559
  }
560
560
  }
561
- .api-client-drawer-exit[data-v-7b73462e] {
561
+ .api-client-drawer-exit[data-v-1b925514] {
562
562
  position: fixed;
563
563
  top: 0;
564
564
  left: 0;
@@ -568,9 +568,9 @@ to {
568
568
  transition: all 0.3s ease-in-out;
569
569
  z-index: 9998;
570
570
  cursor: pointer;
571
- animation: drawerexitfadein-7b73462e 0.35s forwards;
571
+ animation: drawerexitfadein-1b925514 0.35s forwards;
572
572
  }
573
- @keyframes drawerexitfadein-7b73462e {
573
+ @keyframes drawerexitfadein-1b925514 {
574
574
  from {
575
575
  opacity: 0;
576
576
  }
@@ -578,10 +578,10 @@ to {
578
578
  opacity: 1;
579
579
  }
580
580
  }
581
- .scalar-api-client-height[data-v-7b73462e] {
581
+ .scalar-api-client-height[data-v-1b925514] {
582
582
  height: 100%;
583
583
  }
584
- .scalar-api-client-height .sidebar[data-v-7b73462e] {
584
+ .scalar-api-client-height .sidebar[data-v-1b925514] {
585
585
  flex: 1 1 0%;
586
586
  flex-grow: 1;
587
587
  flex-shrink: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalar/api-reference",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "author": "Scalar",
5
5
  "license": "UNLICENSED",
6
6
  "engines": {
@@ -42,10 +42,10 @@
42
42
  "typographic-base": "1.0.4",
43
43
  "unified": "10.1.2",
44
44
  "xmldom": "0.6.0",
45
- "@scalar/api-client": "0.1.9",
45
+ "@scalar/api-client": "0.1.11",
46
+ "@scalar/swagger-editor": "0.1.6",
46
47
  "@scalar/use-clipboard": "0.1.4",
47
- "@scalar/use-tooltip": "0.1.4",
48
- "@scalar/swagger-editor": "0.1.6"
48
+ "@scalar/use-tooltip": "0.1.4"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@vitejs/plugin-vue": "4.2.3",