@scalar/api-client 1.2.24 → 1.2.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 1.2.26
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e3a72bb]
8
+ - @scalar/components@0.7.9
9
+
10
+ ## 1.2.25
11
+
12
+ ### Patch Changes
13
+
14
+ - 79e3caa: chore: replace petstore example with galaxy example
15
+ - e022ee6: fix: color single security scheme
16
+ - Updated dependencies [79e3caa]
17
+ - @scalar/components@0.7.8
18
+
3
19
  ## 1.2.24
4
20
 
5
21
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;;;;;;;;;;;;;AA4OpE,wBAmBG;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":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;;;;;;;;;;;;;AAuPpE,wBAmBG;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"}
package/dist/index.css CHANGED
@@ -675,14 +675,14 @@ to {
675
675
  color: var(--scalar-api-client-color);
676
676
  }
677
677
 
678
- .loader[data-v-64a60541] {
678
+ .loader[data-v-2967e07a] {
679
679
  position: absolute;
680
680
  z-index: 3;
681
681
  height: 2px;
682
682
  background: var(--scalar-api-client-color);
683
- animation: loading-64a60541 5s cubic-bezier(0, 0.5, 0.25, 1);
683
+ animation: loading-2967e07a 5s cubic-bezier(0, 0.5, 0.25, 1);
684
684
  }
685
- @keyframes loading-64a60541 {
685
+ @keyframes loading-2967e07a {
686
686
  0% {
687
687
  width: 0;
688
688
  }
@@ -690,14 +690,14 @@ to {
690
690
  width: 100%;
691
691
  }
692
692
  }
693
- .address-bar[data-v-64a60541] {
693
+ .address-bar[data-v-2967e07a] {
694
694
  width: 100%;
695
695
  padding: 10px;
696
696
  display: flex;
697
697
  align-items: center;
698
698
  position: relative;
699
699
  }
700
- .url-form[data-v-64a60541] {
700
+ .url-form[data-v-2967e07a] {
701
701
  display: flex;
702
702
  width: 720px;
703
703
  align-items: stretch;
@@ -707,11 +707,11 @@ to {
707
707
  z-index: 2;
708
708
  max-width: calc(100% - 68px);
709
709
  }
710
- .url-form[data-v-64a60541] .cm-content {
710
+ .url-form[data-v-2967e07a] .cm-content {
711
711
  display: flex;
712
712
  align-items: center;
713
713
  }
714
- .url-form-field[data-v-64a60541] {
714
+ .url-form-field[data-v-2967e07a] {
715
715
  align-items: stretch;
716
716
  border: 1px solid var(--scalar-border-color);
717
717
  border-radius: var(--scalar-radius);
@@ -721,7 +721,7 @@ to {
721
721
  padding: 2px;
722
722
  width: 100%;
723
723
  }
724
- .url-form-input-wrapper[data-v-64a60541] {
724
+ .url-form-input-wrapper[data-v-2967e07a] {
725
725
  display: flex;
726
726
  position: relative;
727
727
  overflow-x: auto;
@@ -731,7 +731,7 @@ to {
731
731
  /* Firefox supports */
732
732
  scroll-timeline: --scroll-timeline horizontal;
733
733
  }
734
- .url-form-input[data-v-64a60541] {
734
+ .url-form-input[data-v-2967e07a] {
735
735
  background: var(--scalar-background-1);
736
736
  color: var(--scalar-color-1);
737
737
  font-weight: var(--scalar-semibold);
@@ -742,18 +742,18 @@ to {
742
742
  max-width: calc(100% - 153px);
743
743
  margin-right: auto;
744
744
  }
745
- .url-form-input-fade__left[data-v-64a60541],
746
- .url-form-input-fade__right[data-v-64a60541] {
745
+ .url-form-input-fade__left[data-v-2967e07a],
746
+ .url-form-input-fade__right[data-v-2967e07a] {
747
747
  content: '';
748
748
  position: sticky;
749
749
  height: 100%;
750
- animation-name: fadein-64a60541;
750
+ animation-name: fadein-2967e07a;
751
751
  animation-duration: 1ms;
752
752
  animation-direction: reverse;
753
753
  animation-timeline: --scroll-timeline;
754
754
  z-index: 1;
755
755
  }
756
- .url-form-input-fade__left[data-v-64a60541] {
756
+ .url-form-input-fade__left[data-v-2967e07a] {
757
757
  background: linear-gradient(
758
758
  -90deg,
759
759
  color-mix(in srgb, var(--scalar-background-1), transparent 100%) 0%,
@@ -763,7 +763,7 @@ to {
763
763
  left: 0;
764
764
  min-width: 6px;
765
765
  }
766
- .url-form-input-fade__right[data-v-64a60541] {
766
+ .url-form-input-fade__right[data-v-2967e07a] {
767
767
  background: linear-gradient(
768
768
  90deg,
769
769
  color-mix(in srgb, var(--scalar-background-1), transparent 100%) 0%,
@@ -774,7 +774,7 @@ to {
774
774
  min-width: 24px;
775
775
  animation-direction: reverse;
776
776
  }
777
- @keyframes fadein-64a60541 {
777
+ @keyframes fadein-2967e07a {
778
778
  0% {
779
779
  opacity: 0;
780
780
  }
@@ -783,18 +783,18 @@ to {
783
783
  }
784
784
  }
785
785
  @media screen and (max-width: 720px) {
786
- .url-form-input[data-v-64a60541] {
786
+ .url-form-input[data-v-2967e07a] {
787
787
  max-width: calc(100% - 113px);
788
788
  }
789
789
  }
790
- .url-form-input[data-v-64a60541] .cm-scroller {
790
+ .url-form-input[data-v-2967e07a] .cm-scroller {
791
791
  overflow-y: hidden;
792
792
  }
793
- .url-form-input[data-v-64a60541] .cm-line {
793
+ .url-form-input[data-v-2967e07a] .cm-line {
794
794
  font-size: var(--scalar-micro);
795
795
  padding: 0;
796
796
  }
797
- .history[data-v-64a60541] {
797
+ .history[data-v-2967e07a] {
798
798
  appearance: none;
799
799
  -webkit-appearance: none;
800
800
  background: transparent;
@@ -803,7 +803,7 @@ to {
803
803
  align-items: center;
804
804
  border-radius: var(--scalar-radius);
805
805
  }
806
- .send-button[type='submit'][data-v-64a60541] {
806
+ .send-button[type='submit'][data-v-2967e07a] {
807
807
  font-size: var(--scalar-micro);
808
808
  letter-spacing: 0.25px;
809
809
  color: var(--scalar-button-1-color);
@@ -822,36 +822,36 @@ to {
822
822
  overflow: hidden;
823
823
  flex-shrink: 0;
824
824
  }
825
- .send-button[data-v-64a60541]:hover {
825
+ .send-button[data-v-2967e07a]:hover {
826
826
  background: var(--scalar-button-1-hover);
827
827
  }
828
- .send-button svg[data-v-64a60541] {
828
+ .send-button svg[data-v-2967e07a] {
829
829
  width: 12px;
830
830
  height: 12px;
831
831
  flex-shrink: 0;
832
832
  margin-right: 6px;
833
833
  position: relative;
834
834
  }
835
- .send-button span[data-v-64a60541] {
835
+ .send-button span[data-v-2967e07a] {
836
836
  position: relative;
837
837
  }
838
838
  @media screen and (max-width: 720px) {
839
- .history-toggle span[data-v-64a60541],
840
- .send-button span[data-v-64a60541] {
839
+ .history-toggle span[data-v-2967e07a],
840
+ .send-button span[data-v-2967e07a] {
841
841
  display: none;
842
842
  }
843
- .history-toggle svg[data-v-64a60541],
844
- .send-button svg[data-v-64a60541] {
843
+ .history-toggle svg[data-v-2967e07a],
844
+ .send-button svg[data-v-2967e07a] {
845
845
  margin-right: 0;
846
846
  }
847
847
  }
848
- .send-button[disabled][data-v-64a60541] {
848
+ .send-button[disabled][data-v-2967e07a] {
849
849
  pointer-events: none;
850
850
  color: var(--scalar-color-2);
851
851
  background: var(--scalar-background-3);
852
852
  border: 1px solid var(--scalar-border-color);
853
853
  }
854
- .history-toggle[data-v-64a60541] {
854
+ .history-toggle[data-v-2967e07a] {
855
855
  padding: 7px;
856
856
  line-height: 30px;
857
857
  color: var(--scalar-color-3);
@@ -869,16 +869,16 @@ to {
869
869
  background-color 0.15s ease-in-out,
870
870
  color 0.15s ease-in-out;
871
871
  }
872
- .history-toggle[data-v-64a60541]:hover {
872
+ .history-toggle[data-v-2967e07a]:hover {
873
873
  background-color: var(--scalar-background-2);
874
874
  color: var(--scalar-color-1);
875
875
  }
876
- .history-toggle svg[data-v-64a60541] {
876
+ .history-toggle svg[data-v-2967e07a] {
877
877
  height: 13px;
878
878
  width: 13px;
879
879
  color: currentColor;
880
880
  }
881
- .address-bar-content[data-v-64a60541] {
881
+ .address-bar-content[data-v-2967e07a] {
882
882
  width: 640px;
883
883
  height: 100%;
884
884
  background: var(--scalar-background-1);
@@ -893,21 +893,21 @@ to {
893
893
  opacity 0.01s ease-in-out 0.5s;
894
894
  pointer-events: none;
895
895
  }
896
- .address-bar--with-history[data-v-64a60541] {
896
+ .address-bar--with-history[data-v-2967e07a] {
897
897
  z-index: 100000;
898
898
  }
899
- .address-bar--with-history .address-bar-content[data-v-64a60541] {
899
+ .address-bar--with-history .address-bar-content[data-v-2967e07a] {
900
900
  transform: translate3d(0, 0, 0);
901
901
  opacity: 1;
902
902
  pointer-events: all;
903
903
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
904
904
  }
905
- .address-bar--with-history .address-bar-close[data-v-64a60541] {
905
+ .address-bar--with-history .address-bar-close[data-v-2967e07a] {
906
906
  opacity: 1;
907
907
  pointer-events: all;
908
908
  cursor: pointer;
909
909
  }
910
- .address-bar-close[data-v-64a60541] {
910
+ .address-bar-close[data-v-2967e07a] {
911
911
  width: 100%;
912
912
  height: 100%;
913
913
  position: fixed;
@@ -1253,7 +1253,7 @@ to {
1253
1253
  background: var(--scalar-button-1-hover);
1254
1254
  }
1255
1255
 
1256
- .security-scheme-selector[data-v-f7e91a72] {
1256
+ .security-scheme-selector[data-v-d4d0c979] {
1257
1257
  position: relative;
1258
1258
  display: flex;
1259
1259
  border-radius: var(--scalar-radius);
@@ -1263,14 +1263,15 @@ to {
1263
1263
  gap: 4px;
1264
1264
  cursor: pointer;
1265
1265
  }
1266
- .security-scheme-selector[data-v-f7e91a72]:hover {
1266
+ .security-scheme-selector[data-v-d4d0c979]:hover {
1267
1267
  color: var(--scalar-color-1);
1268
1268
  }
1269
- .security-scheme-selector span[data-v-f7e91a72] {
1269
+ .security-scheme-label[data-v-d4d0c979] {
1270
+ color: var(--scalar-color-2);
1270
1271
  font-size: var(--scalar-mini);
1271
1272
  font-weight: var(--scalar-semibold);
1272
1273
  }
1273
- .security-scheme-selector select[data-v-f7e91a72] {
1274
+ .security-scheme-selector select[data-v-d4d0c979] {
1274
1275
  position: absolute;
1275
1276
  cursor: pointer;
1276
1277
  opacity: 0;
@@ -1282,7 +1283,7 @@ to {
1282
1283
  margin-top: -5px;
1283
1284
  padding: 10px 0;
1284
1285
  }
1285
- .security-scheme-selector svg[data-v-f7e91a72] {
1286
+ .security-scheme-selector svg[data-v-d4d0c979] {
1286
1287
  width: 12px;
1287
1288
  stroke: currentColor;
1288
1289
  }
package/dist/index.js CHANGED
@@ -26322,8 +26322,8 @@ const _hoisted_1$u = { class: "navigation-content-item" };
26322
26322
  const _hoisted_2$n = { class: "navtable" };
26323
26323
  const _hoisted_3$f = { class: "navtable-table" };
26324
26324
  const _hoisted_4$b = /* @__PURE__ */ createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-40"><label for="">Request</label></div><div class="navtable-item-40"><label for="">Response</label></div><div class="navtable-item-20"><label for="">TIME</label></div></div>', 1);
26325
- const _hoisted_5$7 = { class: "navtable-radios" };
26326
- const _hoisted_6$3 = /* @__PURE__ */ createStaticVNode('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>', 1);
26325
+ const _hoisted_5$8 = { class: "navtable-radios" };
26326
+ const _hoisted_6$4 = /* @__PURE__ */ createStaticVNode('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>', 1);
26327
26327
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
26328
26328
  __name: "RequestHistory",
26329
26329
  emits: ["toggle"],
@@ -26334,7 +26334,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
26334
26334
  createElementVNode("div", _hoisted_2$n, [
26335
26335
  createElementVNode("div", _hoisted_3$f, [
26336
26336
  _hoisted_4$b,
26337
- createElementVNode("div", _hoisted_5$7, [
26337
+ createElementVNode("div", _hoisted_5$8, [
26338
26338
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(requestHistoryOrder2), (history) => {
26339
26339
  return openBlock(), createBlock(RequestHistoryItem, {
26340
26340
  key: history,
@@ -26342,7 +26342,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
26342
26342
  }, null, 8, ["history"]);
26343
26343
  }), 128))
26344
26344
  ]),
26345
- _hoisted_6$3
26345
+ _hoisted_6$4
26346
26346
  ])
26347
26347
  ])
26348
26348
  ]);
@@ -26395,7 +26395,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
26395
26395
  }
26396
26396
  });
26397
26397
  const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-0f1e5bdc"]]);
26398
- const _withScopeId$5 = (n) => (pushScopeId("data-v-64a60541"), n = n(), popScopeId(), n);
26398
+ const _withScopeId$5 = (n) => (pushScopeId("data-v-2967e07a"), n = n(), popScopeId(), n);
26399
26399
  const _hoisted_1$s = {
26400
26400
  key: 0,
26401
26401
  class: "loader"
@@ -26403,8 +26403,8 @@ const _hoisted_1$s = {
26403
26403
  const _hoisted_2$l = { class: "url-form" };
26404
26404
  const _hoisted_3$d = { class: "url-form-field" };
26405
26405
  const _hoisted_4$a = { class: "url-form-input-wrapper cm-scroller" };
26406
- const _hoisted_5$6 = /* @__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));
26406
+ const _hoisted_5$7 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("div", { class: "url-form-input-fade__left" }, null, -1));
26407
+ const _hoisted_6$3 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("div", { class: "url-form-input-fade__right" }, null, -1));
26408
26408
  const _hoisted_7$2 = {
26409
26409
  key: 0,
26410
26410
  class: "history"
@@ -26531,7 +26531,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
26531
26531
  onChange: handleRequestMethodChanged
26532
26532
  }, null, 8, ["readOnly", "requestMethod"]),
26533
26533
  createElementVNode("div", _hoisted_4$a, [
26534
- _hoisted_5$6,
26534
+ _hoisted_5$7,
26535
26535
  createVNode(unref(CodeMirror), {
26536
26536
  class: "url-form-input",
26537
26537
  content: formattedUrl.value,
@@ -26541,7 +26541,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
26541
26541
  withVariables: "",
26542
26542
  onChange
26543
26543
  }, null, 8, ["content", "readOnly"]),
26544
- _hoisted_6$2
26544
+ _hoisted_6$3
26545
26545
  ]),
26546
26546
  unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
26547
26547
  createElementVNode("div", {
@@ -26581,7 +26581,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
26581
26581
  };
26582
26582
  }
26583
26583
  });
26584
- const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-64a60541"]]);
26584
+ const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-2967e07a"]]);
26585
26585
  const clickGeneratedParameter = useEventBus(Symbol());
26586
26586
  const _hoisted_1$r = { class: "scalar-api-client__toggle-container" };
26587
26587
  const _hoisted_2$k = { class: "scalar-api-client__item__title" };
@@ -26602,7 +26602,7 @@ const _hoisted_4$9 = /* @__PURE__ */ createElementVNode("svg", {
26602
26602
  d: "M2.2 4.1 6 7.9l3.8-3.8"
26603
26603
  })
26604
26604
  ], -1);
26605
- const _hoisted_5$5 = { class: "scalar-api-client__item__content" };
26605
+ const _hoisted_5$6 = { class: "scalar-api-client__item__content" };
26606
26606
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
26607
26607
  __name: "CollapsibleSection",
26608
26608
  props: {
@@ -26652,7 +26652,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
26652
26652
  }, 1536),
26653
26653
  createVNode(unref(DisclosurePanel), null, {
26654
26654
  default: withCtx(() => [
26655
- createElementVNode("div", _hoisted_5$5, [
26655
+ createElementVNode("div", _hoisted_5$6, [
26656
26656
  renderSlot(_ctx.$slots, "default")
26657
26657
  ])
26658
26658
  ]),
@@ -31393,7 +31393,8 @@ const U = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
31393
31393
  base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
31394
31394
  variants: {
31395
31395
  size: {
31396
- xs: "size-3.5 p-0.5",
31396
+ xxs: "size-3.5 p-0.5",
31397
+ xs: "size-5 p-1",
31397
31398
  sm: "size-6 p-1",
31398
31399
  md: "size-10 p-3",
31399
31400
  full: "h-full w-full"
@@ -31464,7 +31465,7 @@ const _hoisted_1$n = { class: "scopes-label" };
31464
31465
  const _hoisted_2$i = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("em", null, "/", -1));
31465
31466
  const _hoisted_3$a = ["checked"];
31466
31467
  const _hoisted_4$8 = { class: "dropdown-item-title" };
31467
- const _hoisted_5$4 = { class: "dropdown-item-description" };
31468
+ const _hoisted_5$5 = { class: "dropdown-item-description" };
31468
31469
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
31469
31470
  __name: "SecuritySchemeScopes",
31470
31471
  props: {
@@ -31542,7 +31543,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
31542
31543
  type: "checkbox"
31543
31544
  }, null, 8, _hoisted_3$a),
31544
31545
  createElementVNode("dt", _hoisted_4$8, toDisplayString(key), 1),
31545
- createElementVNode("dd", _hoisted_5$4, toDisplayString(description), 1)
31546
+ createElementVNode("dd", _hoisted_5$5, toDisplayString(description), 1)
31546
31547
  ]),
31547
31548
  _: 2
31548
31549
  }, 1032, ["value"]);
@@ -31787,14 +31788,19 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31787
31788
  }
31788
31789
  });
31789
31790
  const SecurityScheme = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-3eb93ac9"]]);
31790
- const _withScopeId$3 = (n) => (pushScopeId("data-v-f7e91a72"), n = n(), popScopeId(), n);
31791
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-d4d0c979"), n = n(), popScopeId(), n);
31791
31792
  const _hoisted_1$m = {
31793
+ key: 0,
31794
+ class: "security-scheme-label"
31795
+ };
31796
+ const _hoisted_2$h = {
31792
31797
  key: 1,
31793
31798
  class: "security-scheme-selector"
31794
31799
  };
31795
- const _hoisted_2$h = ["value"];
31796
- const _hoisted_3$9 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("option", { value: "" }, "None", -1));
31800
+ const _hoisted_3$9 = { class: "security-scheme-label" };
31797
31801
  const _hoisted_4$7 = ["value"];
31802
+ const _hoisted_5$4 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("option", { value: "" }, "None", -1));
31803
+ const _hoisted_6$2 = ["value"];
31798
31804
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
31799
31805
  __name: "SecuritySchemeSelector",
31800
31806
  props: {
@@ -31848,10 +31854,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
31848
31854
  const keys = computed(() => Object.keys(props.value ?? {}));
31849
31855
  return (_ctx, _cache) => {
31850
31856
  var _a2, _b;
31851
- return keys.value.length === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31852
- createTextVNode(toDisplayString(getLabelForScheme((_a2 = _ctx.value) == null ? void 0 : _a2[keys.value[0]], keys.value[0])), 1)
31853
- ], 64)) : keys.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
31854
- createElementVNode("span", null, toDisplayString(unref(authentication2).preferredSecurityScheme ? getLabelForScheme(
31857
+ return keys.value.length === 1 ? (openBlock(), createElementBlock("div", _hoisted_1$m, toDisplayString(getLabelForScheme((_a2 = _ctx.value) == null ? void 0 : _a2[keys.value[0]], keys.value[0])), 1)) : keys.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
31858
+ createElementVNode("span", _hoisted_3$9, toDisplayString(unref(authentication2).preferredSecurityScheme ? getLabelForScheme(
31855
31859
  (_b = _ctx.value) == null ? void 0 : _b[unref(authentication2).preferredSecurityScheme],
31856
31860
  unref(authentication2).preferredSecurityScheme
31857
31861
  ) : "None"), 1),
@@ -31862,20 +31866,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
31862
31866
  }, ["prevent"])),
31863
31867
  onInput: handleAuthenticationTypeInput
31864
31868
  }, [
31865
- _hoisted_3$9,
31869
+ _hoisted_5$4,
31866
31870
  (openBlock(true), createElementBlock(Fragment, null, renderList(keys.value, (key) => {
31867
31871
  var _a3;
31868
31872
  return openBlock(), createElementBlock("option", {
31869
31873
  key,
31870
31874
  value: key ?? null
31871
- }, toDisplayString(getLabelForScheme((_a3 = _ctx.value) == null ? void 0 : _a3[key], key)), 9, _hoisted_4$7);
31875
+ }, toDisplayString(getLabelForScheme((_a3 = _ctx.value) == null ? void 0 : _a3[key], key)), 9, _hoisted_6$2);
31872
31876
  }), 128))
31873
- ], 40, _hoisted_2$h)
31877
+ ], 40, _hoisted_4$7)
31874
31878
  ])) : createCommentVNode("", true);
31875
31879
  };
31876
31880
  }
31877
31881
  });
31878
- const SecuritySchemeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-f7e91a72"]]);
31882
+ const SecuritySchemeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-d4d0c979"]]);
31879
31883
  const _hoisted_1$l = {
31880
31884
  key: 0,
31881
31885
  class: "preferred-security-scheme"
package/dist/types.d.ts CHANGED
@@ -59,10 +59,7 @@ export type Schema = {
59
59
  format: string;
60
60
  type: string;
61
61
  };
62
- export type Security = {
63
- api_key?: any[];
64
- petstore_auth?: string[];
65
- };
62
+ export type Security = Record<string, any>;
66
63
  export type ContentProperties = {
67
64
  [key: string]: {
68
65
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AA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MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAE1C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,EAAE,CAAA;QAClB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,CAAC,EAAE,iBAAiB,CAAA;KAC/B,CAAA;CACF,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,EAAE,iBAAiB,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,mBAAmB,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,WAAW,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,YAAY,GACZ,WAAW,GACX,mCAAmC,GACnC,qBAAqB,CAAA;AAEzB,MAAM,MAAM,OAAO,GAAG;KACnB,GAAG,IAAI,WAAW,GAAG,aAAa;CACpC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,GAAG,CAAA;CACb,CAAA"}
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "1.2.24",
21
+ "version": "1.2.26",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -42,9 +42,9 @@
42
42
  "nanoid": "^5.0.1",
43
43
  "pretty-bytes": "^6.1.1",
44
44
  "pretty-ms": "^8.0.0",
45
- "@scalar/use-codemirror": "0.10.4",
45
+ "@scalar/components": "0.7.9",
46
46
  "@scalar/themes": "0.7.9",
47
- "@scalar/components": "0.7.7",
47
+ "@scalar/use-codemirror": "0.10.4",
48
48
  "@scalar/use-modal": "0.3.3",
49
49
  "@scalar/use-tooltip": "0.6.2"
50
50
  },
@@ -59,8 +59,8 @@
59
59
  "vue": "^3.4.21",
60
60
  "vue-tsc": "^1.8.19",
61
61
  "@scalar/api-client-proxy": "0.5.27",
62
- "@scalar/echo-server": "0.6.4",
63
- "@scalar/oas-utils": "0.1.11"
62
+ "@scalar/oas-utils": "0.1.11",
63
+ "@scalar/echo-server": "0.6.4"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "vue": "^3.3.0",