@scalar/api-reference 1.44.7 → 1.44.9

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.
@@ -9,7 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  return openBlock(), createElementBlock("button", {
10
10
  class: "bg-sidebar-b-search text-sidebar-c-2 hover:text-sidebar-c-1 flex items-center gap-1.5 rounded border px-2 text-base whitespace-nowrap",
11
11
  type: "button",
12
- onClick: _cache[0] || (_cache[0] = ($event) => unref(agentContext)?.openAgent())
12
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(agentContext)?.toggleAgent())
13
13
  }, [
14
14
  createVNode(unref(ScalarIconSparkle)),
15
15
  _cache[1] || (_cache[1] = createTextVNode(" Ask AI ", -1))
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAisCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AA4BpC,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;AAyvCF,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":"AAqsCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AA4BpC,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;AA6vCF,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-b69294a9"]]);
7
+ const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-99c427c5"]]);
8
8
  export {
9
9
  ApiReference as default
10
10
  };
@@ -453,6 +453,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
453
453
  mergedConfig.value.onSidebarClick?.(url.toString());
454
454
  }
455
455
  }
456
+ if (agent.showAgent.value) {
457
+ agent.closeAgent();
458
+ }
456
459
  };
457
460
  eventBus.on("select:nav-item", ({ id }) => handleSelectItem(id));
458
461
  eventBus.on("scroll-to:nav-item", ({ id }) => handleSelectItem(id));
package/dist/style.css CHANGED
@@ -11869,7 +11869,7 @@ to {
11869
11869
 
11870
11870
  /* Configurable Layout Variables */
11871
11871
  @layer scalar-config {
11872
- .scalar-api-reference[data-v-b69294a9] {
11872
+ .scalar-api-reference[data-v-99c427c5] {
11873
11873
  /* The header height */
11874
11874
  --refs-header-height: calc(
11875
11875
  var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
@@ -11891,20 +11891,20 @@ to {
11891
11891
  /* The maximum width of the content column */
11892
11892
  --refs-content-max-width: var(--scalar-content-max-width, 1540px);
11893
11893
  }
11894
- .scalar-api-reference.references-classic[data-v-b69294a9] {
11894
+ .scalar-api-reference.references-classic[data-v-99c427c5] {
11895
11895
  /* Classic layout is wider */
11896
11896
  --refs-content-max-width: var(--scalar-content-max-width, 1420px);
11897
11897
  min-height: 100dvh;
11898
11898
  --refs-sidebar-width: 0;
11899
11899
  }
11900
11900
  }
11901
- .t-doc__sidebar[data-v-b69294a9] {
11901
+ .t-doc__sidebar[data-v-99c427c5] {
11902
11902
  z-index: 10;
11903
11903
  }
11904
11904
 
11905
11905
  /* ----------------------------------------------------- */
11906
11906
  /* References Layout */
11907
- .references-layout[data-v-b69294a9] {
11907
+ .references-layout[data-v-99c427c5] {
11908
11908
  /* Try to fill the container */
11909
11909
  min-height: 100dvh;
11910
11910
  min-width: 100%;
@@ -11928,39 +11928,39 @@ to {
11928
11928
 
11929
11929
  background: var(--scalar-background-1);
11930
11930
  }
11931
- .references-editor[data-v-b69294a9] {
11931
+ .references-editor[data-v-99c427c5] {
11932
11932
  grid-area: editor;
11933
11933
  display: flex;
11934
11934
  min-width: 0;
11935
11935
  background: var(--scalar-background-1);
11936
11936
  }
11937
- .references-rendered[data-v-b69294a9] {
11937
+ .references-rendered[data-v-99c427c5] {
11938
11938
  position: relative;
11939
11939
  grid-area: rendered;
11940
11940
  min-width: 0;
11941
11941
  background: var(--scalar-background-1);
11942
11942
  }
11943
- .scalar-api-reference.references-classic[data-v-b69294a9],
11944
- .references-classic .references-rendered[data-v-b69294a9] {
11943
+ .scalar-api-reference.references-classic[data-v-99c427c5],
11944
+ .references-classic .references-rendered[data-v-99c427c5] {
11945
11945
  height: initial !important;
11946
11946
  max-height: initial !important;
11947
11947
  }
11948
11948
  @layer scalar-config {
11949
- .references-sidebar[data-v-b69294a9] {
11949
+ .references-sidebar[data-v-99c427c5] {
11950
11950
  /* Set a default width if references are enabled */
11951
11951
  --refs-sidebar-width: var(--scalar-sidebar-width, 288px);
11952
11952
  }
11953
11953
  }
11954
11954
 
11955
11955
  /* Footer */
11956
- .references-footer[data-v-b69294a9] {
11956
+ .references-footer[data-v-99c427c5] {
11957
11957
  grid-area: footer;
11958
11958
  }
11959
11959
  /* ----------------------------------------------------- */
11960
11960
  /* Responsive / Mobile Layout */
11961
11961
  @media (max-width: 1000px) {
11962
11962
  /* Stack view on mobile */
11963
- .references-layout[data-v-b69294a9] {
11963
+ .references-layout[data-v-99c427c5] {
11964
11964
  /* Adjust the sidebar height to the viewport height minus the header height */
11965
11965
  --refs-sidebar-height: calc(
11966
11966
  var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
@@ -11975,13 +11975,13 @@ to {
11975
11975
  'rendered'
11976
11976
  'footer';
11977
11977
  }
11978
- .references-editable[data-v-b69294a9] {
11978
+ .references-editable[data-v-99c427c5] {
11979
11979
  grid-template-areas:
11980
11980
  'header'
11981
11981
  'navigation'
11982
11982
  'editor';
11983
11983
  }
11984
- .references-rendered[data-v-b69294a9] {
11984
+ .references-rendered[data-v-99c427c5] {
11985
11985
  position: static;
11986
11986
  }
11987
11987
  }
@@ -11992,12 +11992,12 @@ to {
11992
11992
  * when the new elements are available
11993
11993
  */
11994
11994
  @media (max-width: 1000px) {
11995
- .scalar-api-references-standalone-mobile[data-v-b69294a9]:not(.references-classic) {
11995
+ .scalar-api-references-standalone-mobile[data-v-99c427c5]:not(.references-classic) {
11996
11996
  --scalar-header-height: 50px;
11997
11997
  }
11998
11998
  }
11999
11999
 
12000
- .darklight-reference[data-v-b69294a9] {
12000
+ .darklight-reference[data-v-99c427c5] {
12001
12001
  width: 100%;
12002
12002
  margin-top: auto;
12003
12003
  }
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.44.7",
23
+ "version": "1.44.9",
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.7",
88
+ "@scalar/agent-chat": "0.4.8",
89
89
  "@scalar/code-highlight": "0.2.2",
90
- "@scalar/api-client": "2.23.0",
91
90
  "@scalar/components": "0.17.2",
91
+ "@scalar/api-client": "2.23.0",
92
92
  "@scalar/helpers": "0.2.10",
93
93
  "@scalar/icons": "0.5.2",
94
94
  "@scalar/oas-utils": "0.6.32",
95
- "@scalar/openapi-parser": "0.24.6",
96
95
  "@scalar/openapi-types": "0.5.3",
96
+ "@scalar/openapi-parser": "0.24.6",
97
97
  "@scalar/sidebar": "0.7.25",
98
- "@scalar/themes": "0.14.0",
99
- "@scalar/use-hooks": "0.3.7",
98
+ "@scalar/snippetz": "0.6.10",
100
99
  "@scalar/types": "0.6.1",
100
+ "@scalar/themes": "0.14.0",
101
101
  "@scalar/use-toasts": "0.9.1",
102
102
  "@scalar/workspace-store": "0.28.1",
103
- "@scalar/snippetz": "0.6.10"
103
+ "@scalar/use-hooks": "0.3.7"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@hono/node-server": "^1.19.7",
@@ -119,8 +119,8 @@
119
119
  "vite-plugin-css-injected-by-js": "^3.5.2",
120
120
  "vitest": "4.0.16",
121
121
  "@scalar/build-tooling": "0.4.1",
122
- "@scalar/core": "0.3.36",
123
122
  "@scalar/galaxy": "0.5.12",
123
+ "@scalar/core": "0.3.36",
124
124
  "@scalar/react-renderer": "0.3.0"
125
125
  },
126
126
  "scripts": {