@scalar/api-reference 1.22.48 → 1.22.50

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/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export { default as RenderedReference } from './components/Content/Content.vue';
6
6
  export { default as SearchModal } from './components/SearchModal.vue';
7
7
  export { default as SearchButton } from './components/SearchButton.vue';
8
8
  export { default as GettingStarted } from './components/GettingStarted.vue';
9
+ export { createScalarReferences } from './esm';
9
10
  export { useReactiveSpec } from './hooks/useReactiveSpec';
10
11
  export * from './components/DarkModeToggle';
11
12
  export * from './components/Sidebar';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AAEvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AAEvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aA as d, aB as i, aC as b, aM as l, aO as n, aP as p, aN as c, aR as S, aQ as g, aK as m, aJ as C, ba as M, aH as u, bb as L, aD as A, aE as O, aG as T, aF as h, aL as R, aT as B, aV as F, aW as H, bf as f, bg as D, aX as I, aY as _, aZ as k, a_ as v, a$ as w, b0 as y, b1 as E, b2 as U, b3 as N, b4 as V, b5 as Y, b6 as j, b7 as G, b8 as W, b9 as q, bc as x, bd as J, be as K, bh as P, au as Q, aS as X, aI as Z, aU as $ } from "./index-DysFamqR.js";
1
+ import { aA as d, aB as i, aC as b, aN as l, aP as c, aQ as n, aO as p, aS as S, aR as g, aL as m, aK as C, bb as M, aH as u, bc as L, aD as A, aE as O, aG as R, aF as T, aM as h, aU as f, aW as B, aI as F, aX as H, bg as D, bh as I, aY as _, aZ as k, a_ as v, a$ as w, b0 as y, b1 as E, b2 as U, b3 as N, b4 as V, b5 as Y, b6 as j, b7 as G, b8 as W, b9 as q, ba as x, bd as J, be as K, bf as P, bi as Q, au as X, aT as Z, aJ as $, aV as z } from "./index-BKO1A6N2.js";
2
2
  import "vue";
3
3
  import "@headlessui/vue";
4
4
  import "@vueuse/core";
@@ -8,9 +8,9 @@ export {
8
8
  i as ApiReference,
9
9
  b as ApiReferenceLayout,
10
10
  l as Card,
11
- n as CardContent,
12
- p as CardFooter,
13
- c as CardHeader,
11
+ c as CardContent,
12
+ n as CardFooter,
13
+ p as CardHeader,
14
14
  S as CardTab,
15
15
  g as CardTabHeader,
16
16
  m as DarkModeIconToggle,
@@ -20,35 +20,36 @@ export {
20
20
  L as HIDE_DOWNLOAD_BUTTON_SYMBOL,
21
21
  A as ModernLayout,
22
22
  O as RenderedReference,
23
- T as SearchButton,
24
- h as SearchModal,
25
- R as Sidebar,
26
- B as createEmptyServerState,
27
- F as createEmptySpecification,
23
+ R as SearchButton,
24
+ T as SearchModal,
25
+ h as Sidebar,
26
+ f as createEmptyServerState,
27
+ B as createEmptySpecification,
28
+ F as createScalarReferences,
28
29
  H as deepMerge,
29
- f as downloadSpecBus,
30
- D as downloadSpecFile,
31
- I as getApiClientRequest,
32
- _ as getHeadingsFromMarkdown,
33
- k as getLowestHeadingLevel,
34
- v as getModels,
35
- w as getUrlFromServerState,
36
- y as getVariableNames,
37
- E as hasModels,
38
- U as hasSecuritySchemes,
39
- N as hasWebhooks,
40
- V as isValidUrl,
41
- Y as mapFromObject,
42
- j as mergeAllObjects,
43
- G as objectMerge,
44
- W as openClientFor,
45
- q as parse,
46
- x as replaceVariables,
47
- J as scrollToId,
48
- K as sleep,
49
- P as splitMarkdownInSections,
50
- Q as useApiClientStore,
51
- X as useHttpClientStore,
52
- Z as useReactiveSpec,
53
- $ as useServerStore
30
+ D as downloadSpecBus,
31
+ I as downloadSpecFile,
32
+ _ as getApiClientRequest,
33
+ k as getHeadingsFromMarkdown,
34
+ v as getLowestHeadingLevel,
35
+ w as getModels,
36
+ y as getUrlFromServerState,
37
+ E as getVariableNames,
38
+ U as hasModels,
39
+ N as hasSecuritySchemes,
40
+ V as hasWebhooks,
41
+ Y as isValidUrl,
42
+ j as mapFromObject,
43
+ G as mergeAllObjects,
44
+ W as objectMerge,
45
+ q as openClientFor,
46
+ x as parse,
47
+ J as replaceVariables,
48
+ K as scrollToId,
49
+ P as sleep,
50
+ Q as splitMarkdownInSections,
51
+ X as useApiClientStore,
52
+ Z as useHttpClientStore,
53
+ $ as useReactiveSpec,
54
+ z as useServerStore
54
55
  };
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.22.48",
23
+ "version": "1.22.50",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  },
@@ -69,11 +69,11 @@
69
69
  "remark-stringify": "^11.0.0",
70
70
  "unhead": "^1.8.3",
71
71
  "unified": "^11.0.4",
72
- "@scalar/api-client": "1.2.32",
73
- "@scalar/components": "0.7.12",
74
- "@scalar/themes": "0.7.11",
75
- "@scalar/use-modal": "0.3.3",
72
+ "@scalar/api-client": "1.2.34",
73
+ "@scalar/components": "0.7.13",
76
74
  "@scalar/oas-utils": "0.1.14",
75
+ "@scalar/use-modal": "0.3.3",
76
+ "@scalar/themes": "0.7.11",
77
77
  "@scalar/use-toasts": "0.6.6",
78
78
  "@scalar/use-tooltip": "0.6.2"
79
79
  },
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},r=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.264 1.324a.75.75 0 0 1 1.06-1.06l2.629 2.628C4.86 2.393 5.893 2.04 7 2.04c1.532 0 2.92.676 4.035 1.48 1.118.805 2.003 1.769 2.539 2.416l.004.006c.24.298.366.675.366 1.058s-.126.76-.366 1.058l-.004.006a14.5 14.5 0 0 1-2.249 2.2l2.411 2.412a.75.75 0 1 1-1.06 1.06zm8.753 6.632a2.232 2.232 0 0 0-2.974-2.974zm-8.59-2.02c.319-.386.762-.884 1.305-1.394l7.104 7.104A5.7 5.7 0 0 1 7 11.96c-1.532 0-2.92-.676-4.035-1.48C1.847 9.676.962 8.712.426 8.065l-.004-.006A1.7 1.7 0 0 1 .056 7c0-.383.126-.76.366-1.058l.004-.006Z","clip-rule":"evenodd"},null,-1),t=[r];function l(c,d){return e.openBlock(),e.createElementBlock("svg",n,[...t])}const o={render:l};exports.default=o;exports.render=l;
@@ -1,21 +0,0 @@
1
- import { openBlock as e, createElementBlock as l, createElementVNode as n } from "vue";
2
- const r = {
3
- xmlns: "http://www.w3.org/2000/svg",
4
- fill: "none",
5
- viewBox: "0 0 14 14"
6
- }, o = /* @__PURE__ */ n("path", {
7
- fill: "currentColor",
8
- "fill-rule": "evenodd",
9
- d: "M.264 1.324a.75.75 0 0 1 1.06-1.06l2.629 2.628C4.86 2.393 5.893 2.04 7 2.04c1.532 0 2.92.676 4.035 1.48 1.118.805 2.003 1.769 2.539 2.416l.004.006c.24.298.366.675.366 1.058s-.126.76-.366 1.058l-.004.006a14.5 14.5 0 0 1-2.249 2.2l2.411 2.412a.75.75 0 1 1-1.06 1.06zm8.753 6.632a2.232 2.232 0 0 0-2.974-2.974zm-8.59-2.02c.319-.386.762-.884 1.305-1.394l7.104 7.104A5.7 5.7 0 0 1 7 11.96c-1.532 0-2.92-.676-4.035-1.48C1.847 9.676.962 8.712.426 8.065l-.004-.006A1.7 1.7 0 0 1 .056 7c0-.383.126-.76.366-1.058l.004-.006Z",
10
- "clip-rule": "evenodd"
11
- }, null, -1), t = [
12
- o
13
- ];
14
- function c(a, d) {
15
- return e(), l("svg", r, [...t]);
16
- }
17
- const i = { render: c };
18
- export {
19
- i as default,
20
- c as render
21
- };
@@ -1,21 +0,0 @@
1
- import { openBlock as e, createElementBlock as l, createElementVNode as n } from "vue";
2
- const r = {
3
- xmlns: "http://www.w3.org/2000/svg",
4
- fill: "none",
5
- viewBox: "0 0 14 14"
6
- }, o = /* @__PURE__ */ n("path", {
7
- fill: "currentColor",
8
- "fill-rule": "evenodd",
9
- d: "M2.933 3.491C4.056 2.681 5.456 2 7 2s2.944.682 4.067 1.491c1.128.812 2.02 1.784 2.56 2.437l.005.005c.241.3.368.681.368 1.067s-.127.766-.368 1.067l-.005.005c-.54.653-1.432 1.625-2.56 2.437C9.944 11.32 8.544 12 7 12s-2.944-.682-4.067-1.49C1.805 9.696.913 8.724.373 8.071l-.005-.005A1.7 1.7 0 0 1 0 7c0-.386.127-.766.368-1.067l.005-.005c.54-.653 1.432-1.625 2.56-2.437M7 9.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5",
10
- "clip-rule": "evenodd"
11
- }, null, -1), t = [
12
- o
13
- ];
14
- function c(s, d) {
15
- return e(), l("svg", r, [...t]);
16
- }
17
- const i = { render: c };
18
- export {
19
- i as default,
20
- c as render
21
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},r=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M2.933 3.491C4.056 2.681 5.456 2 7 2s2.944.682 4.067 1.491c1.128.812 2.02 1.784 2.56 2.437l.005.005c.241.3.368.681.368 1.067s-.127.766-.368 1.067l-.005.005c-.54.653-1.432 1.625-2.56 2.437C9.944 11.32 8.544 12 7 12s-2.944-.682-4.067-1.49C1.805 9.696.913 8.724.373 8.071l-.005-.005A1.7 1.7 0 0 1 0 7c0-.386.127-.766.368-1.067l.005-.005c.54-.653 1.432-1.625 2.56-2.437M7 9.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5","clip-rule":"evenodd"},null,-1),t=[r];function l(c,d){return e.openBlock(),e.createElementBlock("svg",n,[...t])}const o={render:l};exports.default=o;exports.render=l;