@scalar/api-reference 1.44.0 → 1.44.2

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 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAqyCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AA0BpC,OAAO,8BAA8B,CAAA;AAiCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AAu0CF,QAAA,MAAM,eAAe;;;oPAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAszCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AA0BpC,OAAO,8BAA8B,CAAA;AAiCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AAy0CF,QAAA,MAAM,eAAe;;;oPAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
7
- const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1d883a00"]]);
7
+ const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e55af28"]]);
8
8
  export {
9
9
  ApiReference as default
10
10
  };
@@ -590,7 +590,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
590
590
  header: withCtx(() => [
591
591
  documentOptionList.value.length > 1 ? (openBlock(), createBlock(_sfc_main$2, {
592
592
  key: 0,
593
- class: "-mb-1 p-3 pb-0",
593
+ class: "p-3 pb-0",
594
594
  modelValue: activeSlug.value,
595
595
  options: documentOptionList.value,
596
596
  "onUpdate:modelValue": changeSelectedDocument
package/dist/style.css CHANGED
@@ -11672,7 +11672,7 @@ to {
11672
11672
 
11673
11673
  /* Configurable Layout Variables */
11674
11674
  @layer scalar-config {
11675
- .scalar-api-reference[data-v-1d883a00] {
11675
+ .scalar-api-reference[data-v-8e55af28] {
11676
11676
  /* The header height */
11677
11677
  --refs-header-height: calc(
11678
11678
  var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
@@ -11694,20 +11694,20 @@ to {
11694
11694
  /* The maximum width of the content column */
11695
11695
  --refs-content-max-width: var(--scalar-content-max-width, 1540px);
11696
11696
  }
11697
- .scalar-api-reference.references-classic[data-v-1d883a00] {
11697
+ .scalar-api-reference.references-classic[data-v-8e55af28] {
11698
11698
  /* Classic layout is wider */
11699
11699
  --refs-content-max-width: var(--scalar-content-max-width, 1420px);
11700
11700
  min-height: 100dvh;
11701
11701
  --refs-sidebar-width: 0;
11702
11702
  }
11703
11703
  }
11704
- .t-doc__sidebar[data-v-1d883a00] {
11704
+ .t-doc__sidebar[data-v-8e55af28] {
11705
11705
  z-index: 10;
11706
11706
  }
11707
11707
 
11708
11708
  /* ----------------------------------------------------- */
11709
11709
  /* References Layout */
11710
- .references-layout[data-v-1d883a00] {
11710
+ .references-layout[data-v-8e55af28] {
11711
11711
  /* Try to fill the container */
11712
11712
  min-height: 100dvh;
11713
11713
  min-width: 100%;
@@ -11731,39 +11731,39 @@ to {
11731
11731
 
11732
11732
  background: var(--scalar-background-1);
11733
11733
  }
11734
- .references-editor[data-v-1d883a00] {
11734
+ .references-editor[data-v-8e55af28] {
11735
11735
  grid-area: editor;
11736
11736
  display: flex;
11737
11737
  min-width: 0;
11738
11738
  background: var(--scalar-background-1);
11739
11739
  }
11740
- .references-rendered[data-v-1d883a00] {
11740
+ .references-rendered[data-v-8e55af28] {
11741
11741
  position: relative;
11742
11742
  grid-area: rendered;
11743
11743
  min-width: 0;
11744
11744
  background: var(--scalar-background-1);
11745
11745
  }
11746
- .scalar-api-reference.references-classic[data-v-1d883a00],
11747
- .references-classic .references-rendered[data-v-1d883a00] {
11746
+ .scalar-api-reference.references-classic[data-v-8e55af28],
11747
+ .references-classic .references-rendered[data-v-8e55af28] {
11748
11748
  height: initial !important;
11749
11749
  max-height: initial !important;
11750
11750
  }
11751
11751
  @layer scalar-config {
11752
- .references-sidebar[data-v-1d883a00] {
11752
+ .references-sidebar[data-v-8e55af28] {
11753
11753
  /* Set a default width if references are enabled */
11754
11754
  --refs-sidebar-width: var(--scalar-sidebar-width, 280px);
11755
11755
  }
11756
11756
  }
11757
11757
 
11758
11758
  /* Footer */
11759
- .references-footer[data-v-1d883a00] {
11759
+ .references-footer[data-v-8e55af28] {
11760
11760
  grid-area: footer;
11761
11761
  }
11762
11762
  /* ----------------------------------------------------- */
11763
11763
  /* Responsive / Mobile Layout */
11764
11764
  @media (max-width: 1000px) {
11765
11765
  /* Stack view on mobile */
11766
- .references-layout[data-v-1d883a00] {
11766
+ .references-layout[data-v-8e55af28] {
11767
11767
  /* Adjust the sidebar height to the viewport height minus the header height */
11768
11768
  --refs-sidebar-height: calc(
11769
11769
  var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
@@ -11778,13 +11778,13 @@ to {
11778
11778
  'rendered'
11779
11779
  'footer';
11780
11780
  }
11781
- .references-editable[data-v-1d883a00] {
11781
+ .references-editable[data-v-8e55af28] {
11782
11782
  grid-template-areas:
11783
11783
  'header'
11784
11784
  'navigation'
11785
11785
  'editor';
11786
11786
  }
11787
- .references-rendered[data-v-1d883a00] {
11787
+ .references-rendered[data-v-8e55af28] {
11788
11788
  position: static;
11789
11789
  }
11790
11790
  }
@@ -11795,28 +11795,28 @@ to {
11795
11795
  * when the new elements are available
11796
11796
  */
11797
11797
  @media (max-width: 1000px) {
11798
- .scalar-api-references-standalone-mobile[data-v-1d883a00]:not(.references-classic) {
11798
+ .scalar-api-references-standalone-mobile[data-v-8e55af28]:not(.references-classic) {
11799
11799
  --scalar-header-height: 50px;
11800
11800
  }
11801
11801
  }
11802
11802
 
11803
- .darklight-reference[data-v-1d883a00] {
11803
+ .darklight-reference[data-v-8e55af28] {
11804
11804
  width: 100%;
11805
11805
  margin-top: auto;
11806
11806
  }
11807
- .ask-agent-scalar[data-v-1d883a00] {
11807
+ .ask-agent-scalar[data-v-8e55af28] {
11808
11808
  background: linear-gradient(
11809
11809
  var(--scalar-background-1),
11810
11810
  var(--scalar-background-2)
11811
11811
  );
11812
11812
  }
11813
- .dark-mode .ask-agent-scalar[data-v-1d883a00] {
11813
+ .dark-mode .ask-agent-scalar[data-v-8e55af28] {
11814
11814
  background: linear-gradient(
11815
11815
  var(--scalar-background-2),
11816
11816
  var(--scalar-background-1)
11817
11817
  );
11818
11818
  }
11819
- .agent-scalar[data-v-1d883a00] {
11819
+ .agent-scalar[data-v-8e55af28] {
11820
11820
  position: fixed;
11821
11821
  top: 0;
11822
11822
  left: 0;
@@ -11830,16 +11830,17 @@ to {
11830
11830
  0
11831
11831
  );
11832
11832
  z-index: 2;
11833
- animation: 0.35s forwards scalaragentslidein-1d883a00;
11833
+ animation: 0.35s forwards scalaragentslidein-8e55af28;
11834
11834
  box-shadow: var(--scalar-shadow-2);
11835
11835
  }
11836
- .agent-scalar-container[data-v-1d883a00] {
11836
+ .agent-scalar-container[data-v-8e55af28] {
11837
11837
  width: calc(100% - var(--scalar-sidebar-width, 288px));
11838
11838
  height: 100%;
11839
11839
  margin-left: auto;
11840
11840
  overflow: auto;
11841
+ padding: 0 24px;
11841
11842
  }
11842
- .scalar-app-exit[data-v-1d883a00] {
11843
+ .scalar-app-exit[data-v-8e55af28] {
11843
11844
  cursor: pointer;
11844
11845
  z-index: 2;
11845
11846
  width: 100vw;
@@ -11849,19 +11850,35 @@ to {
11849
11850
  top: 0;
11850
11851
  left: 0;
11851
11852
  }
11852
- .scalar-app-exit-animation[data-v-1d883a00]:before {
11853
+ @media (max-width: 1000px) {
11854
+ .agent-scalar-container[data-v-8e55af28] {
11855
+ width: 100%;
11856
+ }
11857
+ .agent-scalar[data-v-8e55af28] {
11858
+ width: 100%;
11859
+ height: calc(100dvh - 50px);
11860
+ bottom: 0;
11861
+ top: initial;
11862
+ border-radius: var(--scalar-radius-lg) var(--scalar-radius-lg) 0 0;
11863
+ z-index: 12;
11864
+ }
11865
+ .scalar-app-exit[data-v-8e55af28] {
11866
+ z-index: 11;
11867
+ }
11868
+ }
11869
+ .scalar-app-exit-animation[data-v-8e55af28]:before {
11853
11870
  content: '';
11854
11871
  position: absolute;
11855
11872
  width: 100%;
11856
11873
  height: 100%;
11857
11874
  background: #00000038;
11858
- animation: 0.5s forwards scalardrawerexitfadein-1d883a00;
11875
+ animation: 0.5s forwards scalardrawerexitfadein-8e55af28;
11859
11876
  animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
11860
11877
  }
11861
- .dark-mode .scalar .scalar-app-exit-animation[data-v-1d883a00]:before {
11878
+ .dark-mode .scalar .scalar-app-exit-animation[data-v-8e55af28]:before {
11862
11879
  background: #00000073;
11863
11880
  }
11864
- @keyframes scalaragentslidein-1d883a00 {
11881
+ @keyframes scalaragentslidein-8e55af28 {
11865
11882
  from {
11866
11883
  transform: translate3d(
11867
11884
  calc(-100% + var(--scalar-sidebar-width, 288px)),
@@ -11873,7 +11890,7 @@ to {
11873
11890
  transform: translate3d(0, 0, 0);
11874
11891
  }
11875
11892
  }
11876
- @keyframes scalardrawerexitfadein-1d883a00 {
11893
+ @keyframes scalardrawerexitfadein-8e55af28 {
11877
11894
  from {
11878
11895
  opacity: 0;
11879
11896
  }
@@ -11881,11 +11898,11 @@ to {
11881
11898
  opacity: 1;
11882
11899
  }
11883
11900
  }
11884
- .app-exit-button[data-v-1d883a00] {
11901
+ .app-exit-button[data-v-8e55af28] {
11885
11902
  color: white;
11886
11903
  background: rgba(0, 0, 0, 0.1);
11887
11904
  }
11888
- .app-exit-button[data-v-1d883a00]:hover {
11905
+ .app-exit-button[data-v-8e55af28]:hover {
11889
11906
  background: rgba(255, 255, 255, 0.1);
11890
11907
  }
11891
11908
 
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.44.0",
23
+ "version": "1.44.2",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -85,22 +85,22 @@
85
85
  "microdiff": "^1.5.0",
86
86
  "nanoid": "^5.1.6",
87
87
  "vue": "^3.5.26",
88
- "@scalar/agent-chat": "0.4.0",
88
+ "@scalar/agent-chat": "0.4.2",
89
+ "@scalar/api-client": "2.22.1",
90
+ "@scalar/code-highlight": "0.2.2",
89
91
  "@scalar/components": "0.17.0",
90
- "@scalar/api-client": "2.22.0",
91
92
  "@scalar/helpers": "0.2.9",
92
- "@scalar/code-highlight": "0.2.2",
93
+ "@scalar/icons": "0.5.2",
93
94
  "@scalar/oas-utils": "0.6.30",
94
- "@scalar/openapi-types": "0.5.3",
95
95
  "@scalar/openapi-parser": "0.24.5",
96
- "@scalar/icons": "0.5.2",
96
+ "@scalar/openapi-types": "0.5.3",
97
97
  "@scalar/sidebar": "0.7.23",
98
98
  "@scalar/snippetz": "0.6.9",
99
- "@scalar/types": "0.6.0",
100
99
  "@scalar/themes": "0.14.0",
101
- "@scalar/use-hooks": "0.3.6",
100
+ "@scalar/types": "0.6.0",
102
101
  "@scalar/use-toasts": "0.9.1",
103
- "@scalar/workspace-store": "0.27.2"
102
+ "@scalar/workspace-store": "0.27.2",
103
+ "@scalar/use-hooks": "0.3.6"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@hono/node-server": "^1.19.7",