@scalar/api-client 1.2.20 → 1.2.21

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 1.2.21
4
+
5
+ ### Patch Changes
6
+
7
+ - f871c28: fix: api client address bar url
8
+ - 3748dc5: feat: api client toggle sidebar hotkey
9
+
3
10
  ## 1.2.20
4
11
 
5
12
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/AddressBar.vue.ts"],"names":[],"mappings":";;;;;;;;;AAobA,wBASG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/AddressBar.vue.ts"],"names":[],"mappings":";;;;;;;;;AAqdA,wBASG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
@@ -11,6 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
11
11
  showSideBar: boolean;
12
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  escapeKeyPress: () => void;
14
+ toggleSidebar: () => void;
14
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
16
  proxyUrl?: string | undefined;
16
17
  readOnly?: boolean | undefined;
@@ -23,6 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
24
  showSideBar: boolean;
24
25
  }>>> & {
25
26
  onEscapeKeyPress?: (() => any) | undefined;
27
+ onToggleSidebar?: (() => any) | undefined;
26
28
  }, {
27
29
  readOnly: boolean;
28
30
  withDefaultFonts: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClient.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/ApiClient.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0Z1D,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"ApiClient.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/ApiClient.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4Z1D,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
package/dist/index.css CHANGED
@@ -676,14 +676,14 @@ to {
676
676
  color: var(--scalar-api-client-color);
677
677
  }
678
678
 
679
- .loader[data-v-95886ec0] {
679
+ .loader[data-v-ccf97327] {
680
680
  position: absolute;
681
681
  z-index: 3;
682
682
  height: 2px;
683
683
  background: var(--scalar-api-client-color);
684
- animation: loading-95886ec0 5s cubic-bezier(0, 0.5, 0.25, 1);
684
+ animation: loading-ccf97327 5s cubic-bezier(0, 0.5, 0.25, 1);
685
685
  }
686
- @keyframes loading-95886ec0 {
686
+ @keyframes loading-ccf97327 {
687
687
  0% {
688
688
  width: 0;
689
689
  }
@@ -691,14 +691,14 @@ to {
691
691
  width: 100%;
692
692
  }
693
693
  }
694
- .address-bar[data-v-95886ec0] {
694
+ .address-bar[data-v-ccf97327] {
695
695
  width: 100%;
696
696
  padding: 10px;
697
697
  display: flex;
698
698
  align-items: center;
699
699
  position: relative;
700
700
  }
701
- .url-form[data-v-95886ec0] {
701
+ .url-form[data-v-ccf97327] {
702
702
  display: flex;
703
703
  width: 720px;
704
704
  align-items: stretch;
@@ -708,11 +708,11 @@ to {
708
708
  z-index: 2;
709
709
  max-width: calc(100% - 68px);
710
710
  }
711
- .url-form[data-v-95886ec0] .cm-content {
711
+ .url-form[data-v-ccf97327] .cm-content {
712
712
  display: flex;
713
713
  align-items: center;
714
714
  }
715
- .url-form-field[data-v-95886ec0] {
715
+ .url-form-field[data-v-ccf97327] {
716
716
  align-items: stretch;
717
717
  border: 1px solid var(--scalar-border-color);
718
718
  border-radius: var(--scalar-radius);
@@ -722,20 +722,73 @@ to {
722
722
  padding: 2px;
723
723
  width: 100%;
724
724
  }
725
- .url-form-input[data-v-95886ec0] {
725
+ .url-form-input-wrapper[data-v-ccf97327] {
726
+ display: flex;
727
+ position: relative;
728
+ overflow-x: auto;
729
+ overflow-y: hidden;
730
+ width: 100%;
731
+ scroll-timeline: --scroll-timeline x;
732
+ /* Firefox supports */
733
+ scroll-timeline: --scroll-timeline horizontal;
734
+ }
735
+ .url-form-input[data-v-ccf97327] {
726
736
  background: var(--scalar-background-1);
727
737
  color: var(--scalar-color-1);
728
738
  font-weight: var(--scalar-semibold);
729
739
  min-height: auto;
740
+ min-width: fit-content;
730
741
  padding-top: 0;
742
+ position: relative;
731
743
  }
732
- .url-form-input[data-v-95886ec0] .cm-scroller {
744
+ .url-form-input-fade__left[data-v-ccf97327],
745
+ .url-form-input-fade__right[data-v-ccf97327] {
746
+ content: '';
747
+ position: sticky;
748
+ height: 100%;
749
+ animation-name: fadein-ccf97327;
750
+ animation-duration: 1ms;
751
+ animation-direction: reverse;
752
+ animation-timeline: --scroll-timeline;
753
+ z-index: 1;
754
+ }
755
+ .url-form-input-fade__left[data-v-ccf97327] {
756
+ background: linear-gradient(
757
+ -90deg,
758
+ color-mix(in srgb, var(--scalar-background-1), transparent 100%) 0%,
759
+ color-mix(in srgb, var(--scalar-background-1), transparent 20%) 30%,
760
+ var(--scalar-background-1) 100%
761
+ );
762
+ left: 0;
763
+ min-width: 6px;
764
+ }
765
+ .url-form-input-fade__right[data-v-ccf97327] {
766
+ background: linear-gradient(
767
+ 90deg,
768
+ color-mix(in srgb, var(--scalar-background-1), transparent 100%) 0%,
769
+ color-mix(in srgb, var(--scalar-background-1), transparent 20%) 30%,
770
+ var(--scalar-background-1) 100%
771
+ );
772
+ right: 0;
773
+ min-width: 24px;
774
+ animation-direction: reverse;
775
+ }
776
+ @keyframes fadein-ccf97327 {
777
+ 0% {
778
+ opacity: 0;
779
+ }
780
+ 2% {
781
+ opacity: 1;
782
+ }
783
+ }
784
+ .url-form-input[data-v-ccf97327] .cm-scroller {
733
785
  overflow-y: hidden;
734
786
  }
735
- .url-form-input[data-v-95886ec0] .cm-line {
787
+ .url-form-input[data-v-ccf97327] .cm-line {
736
788
  font-size: var(--scalar-micro);
789
+ padding: 0;
737
790
  }
738
- .history[data-v-95886ec0] {
791
+ .history[data-v-ccf97327] {
739
792
  appearance: none;
740
793
  -webkit-appearance: none;
741
794
  background: transparent;
@@ -744,7 +797,7 @@ to {
744
797
  align-items: center;
745
798
  border-radius: var(--scalar-radius);
746
799
  }
747
- .send-button[type='submit'][data-v-95886ec0] {
800
+ .send-button[type='submit'][data-v-ccf97327] {
748
801
  font-size: var(--scalar-micro);
749
802
  letter-spacing: 0.25px;
750
803
  color: var(--scalar-button-1-color);
@@ -763,36 +816,36 @@ to {
763
816
  overflow: hidden;
764
817
  flex-shrink: 0;
765
818
  }
766
- .send-button[data-v-95886ec0]:hover {
819
+ .send-button[data-v-ccf97327]:hover {
767
820
  background: var(--scalar-button-1-hover);
768
821
  }
769
- .send-button svg[data-v-95886ec0] {
822
+ .send-button svg[data-v-ccf97327] {
770
823
  width: 12px;
771
824
  height: 12px;
772
825
  flex-shrink: 0;
773
826
  margin-right: 6px;
774
827
  position: relative;
775
828
  }
776
- .send-button span[data-v-95886ec0] {
829
+ .send-button span[data-v-ccf97327] {
777
830
  position: relative;
778
831
  }
779
832
  @media screen and (max-width: 720px) {
780
- .history-toggle span[data-v-95886ec0],
781
- .send-button span[data-v-95886ec0] {
833
+ .history-toggle span[data-v-ccf97327],
834
+ .send-button span[data-v-ccf97327] {
782
835
  display: none;
783
836
  }
784
- .history-toggle svg[data-v-95886ec0],
785
- .send-button svg[data-v-95886ec0] {
837
+ .history-toggle svg[data-v-ccf97327],
838
+ .send-button svg[data-v-ccf97327] {
786
839
  margin-right: 0;
787
840
  }
788
841
  }
789
- .send-button[disabled][data-v-95886ec0] {
842
+ .send-button[disabled][data-v-ccf97327] {
790
843
  pointer-events: none;
791
844
  color: var(--scalar-color-2);
792
845
  background: var(--scalar-background-3);
793
846
  border: 1px solid var(--scalar-border-color);
794
847
  }
795
- .history-toggle[data-v-95886ec0] {
848
+ .history-toggle[data-v-ccf97327] {
796
849
  padding: 7px;
797
850
  line-height: 30px;
798
851
  color: var(--scalar-color-3);
@@ -810,16 +863,16 @@ to {
810
863
  background-color 0.15s ease-in-out,
811
864
  color 0.15s ease-in-out;
812
865
  }
813
- .history-toggle[data-v-95886ec0]:hover {
866
+ .history-toggle[data-v-ccf97327]:hover {
814
867
  background-color: var(--scalar-background-2);
815
868
  color: var(--scalar-color-1);
816
869
  }
817
- .history-toggle svg[data-v-95886ec0] {
870
+ .history-toggle svg[data-v-ccf97327] {
818
871
  height: 13px;
819
872
  width: 13px;
820
873
  color: currentColor;
821
874
  }
822
- .address-bar-content[data-v-95886ec0] {
875
+ .address-bar-content[data-v-ccf97327] {
823
876
  width: 640px;
824
877
  height: 100%;
825
878
  background: var(--scalar-background-1);
@@ -834,21 +887,21 @@ to {
834
887
  opacity 0.01s ease-in-out 0.5s;
835
888
  pointer-events: none;
836
889
  }
837
- .address-bar--with-history[data-v-95886ec0] {
890
+ .address-bar--with-history[data-v-ccf97327] {
838
891
  z-index: 100000;
839
892
  }
840
- .address-bar--with-history .address-bar-content[data-v-95886ec0] {
893
+ .address-bar--with-history .address-bar-content[data-v-ccf97327] {
841
894
  transform: translate3d(0, 0, 0);
842
895
  opacity: 1;
843
896
  pointer-events: all;
844
897
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
845
898
  }
846
- .address-bar--with-history .address-bar-close[data-v-95886ec0] {
899
+ .address-bar--with-history .address-bar-close[data-v-ccf97327] {
847
900
  opacity: 1;
848
901
  pointer-events: all;
849
902
  cursor: pointer;
850
903
  }
851
- .address-bar-close[data-v-95886ec0] {
904
+ .address-bar-close[data-v-ccf97327] {
852
905
  width: 100%;
853
906
  height: 100%;
854
907
  position: fixed;
package/dist/index.js CHANGED
@@ -26395,18 +26395,21 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
26395
26395
  }
26396
26396
  });
26397
26397
  const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0f1e5bdc"]]);
26398
- const _withScopeId$5 = (n) => (pushScopeId("data-v-95886ec0"), n = n(), popScopeId(), n);
26398
+ const _withScopeId$5 = (n) => (pushScopeId("data-v-ccf97327"), n = n(), popScopeId(), n);
26399
26399
  const _hoisted_1$t = {
26400
26400
  key: 0,
26401
26401
  class: "loader"
26402
26402
  };
26403
26403
  const _hoisted_2$k = { class: "url-form" };
26404
26404
  const _hoisted_3$d = { class: "url-form-field" };
26405
- const _hoisted_4$a = {
26405
+ const _hoisted_4$a = { class: "url-form-input-wrapper cm-scroller" };
26406
+ const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("div", { class: "url-form-input-fade__left" }, null, -1));
26407
+ const _hoisted_6$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("div", { class: "url-form-input-fade__right" }, null, -1));
26408
+ const _hoisted_7$2 = {
26406
26409
  key: 0,
26407
26410
  class: "history"
26408
26411
  };
26409
- const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
26412
+ const _hoisted_8$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
26410
26413
  fill: "none",
26411
26414
  height: "48",
26412
26415
  viewBox: "0 0 14 14",
@@ -26430,11 +26433,11 @@ const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ create
26430
26433
  })
26431
26434
  ])
26432
26435
  ], -1));
26433
- const _hoisted_6$2 = [
26434
- _hoisted_5$5
26436
+ const _hoisted_9$1 = [
26437
+ _hoisted_8$2
26435
26438
  ];
26436
- const _hoisted_7$2 = ["disabled"];
26437
- const _hoisted_8$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
26439
+ const _hoisted_10$1 = ["disabled"];
26440
+ const _hoisted_11 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
26438
26441
  fill: "none",
26439
26442
  height: "48",
26440
26443
  viewBox: "0 0 14 14",
@@ -26451,12 +26454,12 @@ const _hoisted_8$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ create
26451
26454
  })
26452
26455
  ])
26453
26456
  ], -1));
26454
- const _hoisted_9$1 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", null, "Send", -1));
26455
- const _hoisted_10$1 = [
26456
- _hoisted_8$2,
26457
- _hoisted_9$1
26457
+ const _hoisted_12 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", null, "Send", -1));
26458
+ const _hoisted_13 = [
26459
+ _hoisted_11,
26460
+ _hoisted_12
26458
26461
  ];
26459
- const _hoisted_11 = { class: "address-bar-content" };
26462
+ const _hoisted_14 = { class: "address-bar-content" };
26460
26463
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
26461
26464
  __name: "AddressBar",
26462
26465
  props: {
@@ -26527,34 +26530,38 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
26527
26530
  requestMethod: requestType.value,
26528
26531
  onChange: handleRequestMethodChanged
26529
26532
  }, null, 8, ["readOnly", "requestMethod"]),
26530
- createVNode(unref(CodeMirror), {
26531
- class: "url-form-input",
26532
- content: formattedUrl.value,
26533
- disableEnter: "",
26534
- readOnly: unref(readOnly2),
26535
- withoutTheme: "",
26536
- withVariables: "",
26537
- onChange
26538
- }, null, 8, ["content", "readOnly"]),
26539
- unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_4$a, [
26533
+ createElementVNode("div", _hoisted_4$a, [
26534
+ _hoisted_5$5,
26535
+ createVNode(unref(CodeMirror), {
26536
+ class: "url-form-input",
26537
+ content: formattedUrl.value,
26538
+ disableEnter: "",
26539
+ readOnly: unref(readOnly2),
26540
+ withoutTheme: "",
26541
+ withVariables: "",
26542
+ onChange
26543
+ }, null, 8, ["content", "readOnly"]),
26544
+ _hoisted_6$2
26545
+ ]),
26546
+ unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
26540
26547
  createElementVNode("div", {
26541
26548
  class: "history-toggle",
26542
26549
  onClick: _cache[0] || (_cache[0] = ($event) => unref(historyModal).show())
26543
- }, _hoisted_6$2)
26550
+ }, _hoisted_9$1)
26544
26551
  ])) : createCommentVNode("", true),
26545
26552
  createElementVNode("button", {
26546
26553
  class: "send-button",
26547
26554
  disabled: !formattedUrl.value.trim().length,
26548
26555
  type: "submit",
26549
26556
  onClick: send
26550
- }, _hoisted_10$1, 8, _hoisted_7$2)
26557
+ }, _hoisted_13, 8, _hoisted_10$1)
26551
26558
  ])
26552
26559
  ]),
26553
26560
  createElementVNode("div", {
26554
26561
  class: "address-bar-close",
26555
26562
  onClick: _cache[1] || (_cache[1] = ($event) => showHistory.value = false)
26556
26563
  }),
26557
- createElementVNode("div", _hoisted_11, [
26564
+ createElementVNode("div", _hoisted_14, [
26558
26565
  createVNode(unref(FlowModal), {
26559
26566
  state: unref(historyModal),
26560
26567
  title: "Request History",
@@ -26574,7 +26581,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
26574
26581
  };
26575
26582
  }
26576
26583
  });
26577
- const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-95886ec0"]]);
26584
+ const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-ccf97327"]]);
26578
26585
  const clickGeneratedParameter = useEventBus(Symbol());
26579
26586
  const _hoisted_1$s = /* @__PURE__ */ createElementVNode("svg", {
26580
26587
  class: "scalar-api-client__toggle__icon",
@@ -33125,12 +33132,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33125
33132
  withDefaultFonts: { type: Boolean, default: true },
33126
33133
  showSideBar: { type: Boolean, default: false }
33127
33134
  },
33128
- emits: ["escapeKeyPress"],
33135
+ emits: ["escapeKeyPress", "toggleSidebar"],
33129
33136
  setup(__props, { emit: __emit }) {
33130
33137
  const props = __props;
33131
33138
  const emit = __emit;
33132
33139
  const keys = useMagicKeys();
33133
33140
  whenever(keys.escape, () => emit("escapeKeyPress"));
33141
+ whenever(keys.meta_b, () => emit("toggleSidebar"));
33134
33142
  const { activeRequest: activeRequest2, readOnly: stateReadOnly } = useRequestStore();
33135
33143
  const isSmallScreen = useMediaQuery("(max-width: 820px)");
33136
33144
  const selectedTab = ref(0);
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "1.2.20",
21
+ "version": "1.2.21",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -43,10 +43,10 @@
43
43
  "pretty-bytes": "^6.1.1",
44
44
  "pretty-ms": "^8.0.0",
45
45
  "@scalar/components": "0.7.6",
46
+ "@scalar/use-codemirror": "0.10.3",
46
47
  "@scalar/themes": "0.7.9",
47
- "@scalar/use-tooltip": "0.6.2",
48
48
  "@scalar/use-modal": "0.3.3",
49
- "@scalar/use-codemirror": "0.10.3"
49
+ "@scalar/use-tooltip": "0.6.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/content-type": "^1.1.6",
@@ -58,8 +58,8 @@
58
58
  "vitest": "^1.5.0",
59
59
  "vue": "^3.4.21",
60
60
  "vue-tsc": "^1.8.19",
61
- "@scalar/api-client-proxy": "0.5.27",
62
61
  "@scalar/echo-server": "0.6.4",
62
+ "@scalar/api-client-proxy": "0.5.27",
63
63
  "@scalar/oas-utils": "0.1.10"
64
64
  },
65
65
  "peerDependencies": {