@scalar/api-reference 1.38.0 → 1.38.1

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":"ApiReferenceWorkspace.vue.d.ts","sourceRoot":"","sources":["../../src/v2/ApiReferenceWorkspace.vue"],"names":[],"mappings":"AAwWA,OAAO,KAAK,EACV,4BAA4B,EAG7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAyBpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAkVF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC9G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8B/C,QAAA,MAAM,eAAe;;;;kFAOnB,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":"ApiReferenceWorkspace.vue.d.ts","sourceRoot":"","sources":["../../src/v2/ApiReferenceWorkspace.vue"],"names":[],"mappings":"AAqXA,OAAO,KAAK,EACV,4BAA4B,EAG7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAyBpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AA+VF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC9G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8B/C,QAAA,MAAM,eAAe;;;;kFAOnB,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,88 +1,99 @@
1
- import { defineComponent as w, ref as m, toRef as I, provide as N, useTemplateRef as P, onBeforeMount as L, watch as s, computed as U, createElementBlock as V, openBlock as C, createBlock as A, createCommentVNode as B, createVNode as f, unref as n, resolveDynamicComponent as _, withCtx as i, createTextVNode as H, toDisplayString as K, renderSlot as u, isRef as O } from "vue";
2
- import { isClient as D } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
- import { safeLocalStorage as F, REFERENCE_LS_KEYS as W } from "@scalar/helpers/object/local-storage";
4
- import { makeUrlAbsolute as Y } from "@scalar/helpers/url/make-url-absolute";
5
- import { redirectToProxy as z } from "@scalar/oas-utils/helpers";
6
- import { useColorMode as j } from "@scalar/use-hooks/useColorMode";
7
- import { useSeoMeta as q } from "@unhead/vue";
8
- import { useFavicon as G } from "@vueuse/core";
9
- import J from "../components/ApiReferenceLayout.vue.js";
10
- import Q from "../features/toolbar/ApiReferenceToolbar.vue.js";
11
- import { NAV_STATE_SYMBOL as X } from "../hooks/useNavState.js";
12
- import { getDocumentName as Z } from "./helpers/get-document-name.js";
13
- import { mapConfiguration as E } from "./helpers/map-configuration.js";
14
- import { normalizeContent as ee } from "./helpers/normalize-content.js";
15
- import { useWorkspaceStoreEvents as te } from "./hooks/use-workspace-store-events.js";
16
- import { useMultipleDocuments as oe } from "../features/multiple-documents/useMultipleDocuments.js";
17
- import re from "../features/multiple-documents/DocumentSelector.vue.js";
18
- const Se = /* @__PURE__ */ w({
1
+ import { defineComponent as I, ref as d, toRef as N, provide as P, useTemplateRef as L, onBeforeMount as U, watch as u, computed as V, createElementBlock as A, openBlock as D, createBlock as B, createCommentVNode as _, createVNode as v, unref as n, resolveDynamicComponent as H, withCtx as i, createTextVNode as K, toDisplayString as O, renderSlot as l, isRef as F } from "vue";
2
+ import { isClient as b } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
+ import { safeLocalStorage as W, REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
4
+ import { makeUrlAbsolute as z } from "@scalar/helpers/url/make-url-absolute";
5
+ import { redirectToProxy as j } from "@scalar/oas-utils/helpers";
6
+ import { useColorMode as q } from "@scalar/use-hooks/useColorMode";
7
+ import { useSeoMeta as G } from "@unhead/vue";
8
+ import { useFavicon as J } from "@vueuse/core";
9
+ import Q from "../components/ApiReferenceLayout.vue.js";
10
+ import X from "../features/toolbar/ApiReferenceToolbar.vue.js";
11
+ import { NAV_STATE_SYMBOL as Z } from "../hooks/useNavState.js";
12
+ import { getDocumentName as ee } from "./helpers/get-document-name.js";
13
+ import { mapConfiguration as c } from "./helpers/map-configuration.js";
14
+ import { normalizeContent as te } from "./helpers/normalize-content.js";
15
+ import { useWorkspaceStoreEvents as oe } from "./hooks/use-workspace-store-events.js";
16
+ import { useMultipleDocuments as re } from "../features/multiple-documents/useMultipleDocuments.js";
17
+ import ae from "../features/multiple-documents/DocumentSelector.vue.js";
18
+ const Me = /* @__PURE__ */ I({
19
19
  __name: "ApiReferenceWorkspace",
20
20
  props: {
21
21
  configuration: {},
22
22
  store: {}
23
23
  },
24
24
  emits: ["updateContent"],
25
- setup(S) {
26
- const p = S, d = m({}), {
27
- availableDocuments: v,
25
+ setup(E) {
26
+ const g = E, f = d({}), {
27
+ availableDocuments: k,
28
28
  selectedConfiguration: o,
29
- selectedDocumentIndex: l,
30
- isIntersectionEnabled: c,
31
- hash: h,
32
- hashPrefix: M
33
- } = oe({
34
- configuration: I(p, "configuration"),
35
- configurationOverrides: d,
36
- isIntersectionEnabled: m(!1),
37
- hash: m(""),
38
- hashPrefix: m("")
39
- }), b = (e, t) => fetch(
40
- z(o.value.proxyUrl, e.toString()),
29
+ selectedDocumentIndex: m,
30
+ isIntersectionEnabled: p,
31
+ hash: M,
32
+ hashPrefix: S
33
+ } = re({
34
+ configuration: N(g, "configuration"),
35
+ configurationOverrides: f,
36
+ isIntersectionEnabled: d(!1),
37
+ hash: d(""),
38
+ hashPrefix: d("")
39
+ }), h = (e, t) => fetch(
40
+ j(o.value.proxyUrl, e.toString()),
41
41
  t
42
42
  );
43
- N(X, {
44
- isIntersectionEnabled: c,
45
- hash: h,
46
- hashPrefix: M,
43
+ P(Z, {
44
+ isIntersectionEnabled: p,
45
+ hash: M,
46
+ hashPrefix: S,
47
47
  basePath: () => o.value.pathRouting?.basePath,
48
48
  generateHeadingSlug: () => o.value.generateHeadingSlug
49
49
  });
50
- const g = P("root"), r = p.store;
51
- L(() => {
52
- const e = F().getItem(
53
- W.SELECTED_CLIENT
50
+ const C = L("root"), r = g.store;
51
+ U(() => {
52
+ const e = W().getItem(
53
+ Y.SELECTED_CLIENT
54
54
  );
55
- D(e) && !r.workspace["x-scalar-default-client"] && r.update("x-scalar-default-client", e);
55
+ b(e) && !r.workspace["x-scalar-default-client"] && r.update("x-scalar-default-client", e);
56
56
  });
57
57
  const x = async (e) => {
58
- const t = ee(e.content), a = Z({
58
+ const t = te(e.content), a = ee({
59
59
  name: e.slug || e.title,
60
60
  url: e.url,
61
61
  document: t
62
62
  });
63
63
  if (r.workspace.documents[a]) {
64
- t && (c.value = !1, r.replaceDocument(a, t), r.update("x-scalar-active-document", a), setTimeout(() => {
65
- c.value = !0;
66
- }, 300));
64
+ if (t) {
65
+ p.value = !1;
66
+ const s = await r.rebaseDocument({
67
+ name: a,
68
+ document: t,
69
+ config: c(e)
70
+ });
71
+ s && await r.rebaseDocument(
72
+ { name: a, document: t, config: c(e) },
73
+ s.flatMap((T) => T[0])
74
+ ), r.update("x-scalar-active-document", a), setTimeout(() => {
75
+ p.value = !0;
76
+ }, 300);
77
+ }
67
78
  return;
68
79
  }
69
80
  if (t)
70
81
  return await r.addDocument({
71
82
  name: a,
72
83
  document: t,
73
- config: E(e)
84
+ config: c(e)
74
85
  });
75
86
  if (e.url)
76
87
  return await r.addDocument({
77
88
  name: e.slug ?? "default",
78
- url: Y(e.url, {
89
+ url: z(e.url, {
79
90
  basePath: o.value.pathRouting?.basePath
80
91
  }),
81
- fetch: e.fetch ?? b,
82
- config: E(e)
92
+ fetch: e.fetch ?? h,
93
+ config: c(e)
83
94
  });
84
95
  };
85
- s(
96
+ u(
86
97
  [
87
98
  () => o.value.slug,
88
99
  () => o.value.url,
@@ -92,12 +103,12 @@ const Se = /* @__PURE__ */ w({
92
103
  (e || t || a) && x(o.value);
93
104
  },
94
105
  { immediate: !0 }
95
- ), te(r, g), s(
106
+ ), oe(r, C, o.value), u(
96
107
  () => o.value.defaultHttpClient,
97
108
  (e) => {
98
109
  if (e) {
99
- const { targetKey: t, clientKey: a } = e, k = `${t}/${a}`;
100
- D(k) && r.update("x-scalar-default-client", k);
110
+ const { targetKey: t, clientKey: a } = e, s = `${t}/${a}`;
111
+ b(s) && r.update("x-scalar-default-client", s);
101
112
  }
102
113
  },
103
114
  { immediate: !0 }
@@ -108,70 +119,70 @@ const Se = /* @__PURE__ */ w({
108
119
  if (e === !1)
109
120
  return "light";
110
121
  }
111
- const { toggleColorMode: $, isDarkMode: R } = j({
122
+ const { toggleColorMode: w, isDarkMode: $ } = q({
112
123
  initialColorMode: y(o.value.darkMode),
113
124
  overrideColorMode: o.value.forceDarkModeState
114
125
  });
115
- s(
126
+ u(
116
127
  () => o.value.darkMode,
117
128
  (e) => r.update("x-scalar-dark-mode", !!e)
118
- ), s(
119
- () => R.value,
129
+ ), u(
130
+ () => $.value,
120
131
  (e) => r.update("x-scalar-dark-mode", e),
121
132
  { immediate: !0 }
122
- ), s(
123
- () => l.value,
133
+ ), u(
134
+ () => m.value,
124
135
  (e) => r.update(
125
136
  "x-scalar-active-document",
126
- v.value[e]?.slug
137
+ k.value[e]?.slug
127
138
  ),
128
139
  { immediate: !0 }
129
- ), o.value.metaData && q(o.value.metaData);
130
- const T = U(() => o.value.favicon);
131
- return G(T), (e, t) => (C(), V("div", {
140
+ ), o.value.metaData && G(o.value.metaData);
141
+ const R = V(() => o.value.favicon);
142
+ return J(R), (e, t) => (D(), A("div", {
132
143
  ref_key: "root",
133
- ref: g
144
+ ref: C
134
145
  }, [
135
- n(o)?.customCss ? (C(), A(_("style"), { key: 0 }, {
146
+ n(o)?.customCss ? (D(), B(H("style"), { key: 0 }, {
136
147
  default: i(() => [
137
- H(K(n(o).customCss), 1)
148
+ K(O(n(o).customCss), 1)
138
149
  ]),
139
150
  _: 1
140
- })) : B("", !0),
141
- f(J, {
151
+ })) : _("", !0),
152
+ v(Q, {
142
153
  configuration: n(o),
143
154
  isDark: !!n(r).workspace["x-scalar-dark-mode"],
144
155
  store: n(r),
145
- onToggleDarkMode: t[2] || (t[2] = () => n($)()),
156
+ onToggleDarkMode: t[2] || (t[2] = () => n(w)()),
146
157
  onUpdateContent: t[3] || (t[3] = (a) => e.$emit("updateContent", a))
147
158
  }, {
148
159
  "document-selector": i(() => [
149
- f(n(re), {
150
- modelValue: n(l),
151
- "onUpdate:modelValue": t[0] || (t[0] = (a) => O(l) ? l.value = a : null),
152
- options: n(v)
160
+ v(n(ae), {
161
+ modelValue: n(m),
162
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => F(m) ? m.value = a : null),
163
+ options: n(k)
153
164
  }, null, 8, ["modelValue", "options"])
154
165
  ]),
155
166
  "content-start": i(() => [
156
- f(Q, {
157
- overrides: d.value,
158
- "onUpdate:overrides": t[1] || (t[1] = (a) => d.value = a),
167
+ v(X, {
168
+ overrides: f.value,
169
+ "onUpdate:overrides": t[1] || (t[1] = (a) => f.value = a),
159
170
  configuration: n(o),
160
171
  workspace: n(r)
161
172
  }, null, 8, ["overrides", "configuration", "workspace"]),
162
- u(e.$slots, "content-start")
173
+ l(e.$slots, "content-start")
163
174
  ]),
164
175
  "content-end": i(() => [
165
- u(e.$slots, "content-end")
176
+ l(e.$slots, "content-end")
166
177
  ]),
167
178
  "sidebar-start": i(() => [
168
- u(e.$slots, "sidebar-start")
179
+ l(e.$slots, "sidebar-start")
169
180
  ]),
170
181
  "sidebar-end": i(() => [
171
- u(e.$slots, "sidebar-end")
182
+ l(e.$slots, "sidebar-end")
172
183
  ]),
173
184
  footer: i(() => [
174
- u(e.$slots, "footer")
185
+ l(e.$slots, "footer")
175
186
  ]),
176
187
  _: 3
177
188
  }, 8, ["configuration", "isDark", "store"])
@@ -179,5 +190,5 @@ const Se = /* @__PURE__ */ w({
179
190
  }
180
191
  });
181
192
  export {
182
- Se as default
193
+ Me as default
183
194
  };
@@ -1,4 +1,5 @@
1
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
1
2
  import { type WorkspaceStore } from '@scalar/workspace-store/client';
2
3
  import type { Ref } from 'vue';
3
- export declare const useWorkspaceStoreEvents: (store: WorkspaceStore, root: Ref<HTMLElement | null>) => void;
4
+ export declare const useWorkspaceStoreEvents: (store: WorkspaceStore, root: Ref<HTMLElement | null>, configuration: ApiReferenceConfiguration) => void;
4
5
  //# sourceMappingURL=use-workspace-store-events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-workspace-store-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-store-events.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,eAAO,MAAM,uBAAuB,GAAI,OAAO,cAAc,EAAE,MAAM,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,SAsG3F,CAAA"}
1
+ {"version":3,"file":"use-workspace-store-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-store-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,gCAAgC,CAAA;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,eAAO,MAAM,uBAAuB,GAClC,OAAO,cAAc,EACrB,MAAM,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC7B,eAAe,yBAAyB,SA4GzC,CAAA"}
@@ -1,20 +1,20 @@
1
- import { safeLocalStorage as v, REFERENCE_LS_KEYS as d } from "@scalar/helpers/object/local-storage";
2
- import { generateClientMutators as u } from "@scalar/workspace-store/client";
1
+ import { safeLocalStorage as d, REFERENCE_LS_KEYS as u } from "@scalar/helpers/object/local-storage";
2
+ import { generateClientMutators as n } from "@scalar/workspace-store/client";
3
3
  import { onCustomEvent as c } from "@scalar/workspace-store/events";
4
- const p = (r, t) => {
5
- const i = u(r);
4
+ const f = (r, t, i) => {
5
+ const v = n(r);
6
6
  c(t, "scalar-update-dark-mode", (e) => {
7
7
  r.update("x-scalar-dark-mode", e.detail.value);
8
8
  }), c(t, "scalar-update-active-document", (e) => {
9
9
  r.update("x-scalar-active-document", e.detail.value);
10
10
  }), c(t, "scalar-update-selected-client", (e) => {
11
- r.update("x-scalar-default-client", e.detail), v().setItem(d.SELECTED_CLIENT, e.detail);
11
+ r.update("x-scalar-default-client", e.detail), d().setItem(u.SELECTED_CLIENT, e.detail);
12
12
  }), c(t, "scalar-replace-servers", (e) => {
13
13
  const a = r.workspace.activeDocument;
14
14
  a && (a.servers = e.detail.servers, a["x-scalar-active-server"] = e.detail.servers.at(-1)?.url);
15
15
  }), c(t, "scalar-update-selected-server", (e) => {
16
16
  const a = r.workspace.activeDocument;
17
- a && (a["x-scalar-active-server"] = e.detail.value);
17
+ a && (a["x-scalar-active-server"] = e.detail.value), i.onServerChange && i.onServerChange(e.detail.value ?? "");
18
18
  }), c(t, "store-update-selected-server-properties", (e) => {
19
19
  const a = r.workspace.activeDocument;
20
20
  if (!a)
@@ -28,13 +28,13 @@ const p = (r, t) => {
28
28
  const s = a.servers?.find((l) => l.url === a["x-scalar-active-server"]);
29
29
  s && s.variables?.[e.detail.key] && (s.variables[e.detail.key].default = e.detail.value);
30
30
  }), c(t, "scalar-add-server", (e) => {
31
- i.active().serverMutators.addServer(e.detail.server);
31
+ v.active().serverMutators.addServer(e.detail.server);
32
32
  const a = r.workspace.activeDocument;
33
33
  a && (a["x-scalar-active-server"] = e.detail.server.url);
34
34
  }), c(t, "scalar-delete-server", (e) => {
35
- i.active().serverMutators.deleteServer(e.detail.url);
35
+ v.active().serverMutators.deleteServer(e.detail.url);
36
36
  });
37
37
  };
38
38
  export {
39
- p as useWorkspaceStoreEvents
39
+ f as useWorkspaceStoreEvents
40
40
  };
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.38.0",
23
+ "version": "1.38.1",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -53,26 +53,26 @@
53
53
  "js-base64": "^3.7.8",
54
54
  "microdiff": "^1.5.0",
55
55
  "nanoid": "5.1.5",
56
- "type-fest": "^4.41.0",
56
+ "type-fest": "5.0.0",
57
57
  "vue": "^3.5.17",
58
58
  "zod": "4.1.11",
59
+ "@scalar/api-client": "2.8.1",
60
+ "@scalar/helpers": "0.0.12",
61
+ "@scalar/components": "0.15.1",
59
62
  "@scalar/code-highlight": "0.2.0",
60
- "@scalar/api-client": "2.8.0",
61
- "@scalar/components": "0.15.0",
62
- "@scalar/helpers": "0.0.11",
63
- "@scalar/json-magic": "0.6.0",
64
- "@scalar/oas-utils": "0.5.1",
63
+ "@scalar/oas-utils": "0.5.2",
65
64
  "@scalar/icons": "0.4.7",
66
- "@scalar/openapi-parser": "0.22.2",
67
- "@scalar/object-utils": "1.2.7",
68
- "@scalar/openapi-types": "0.4.1",
69
- "@scalar/snippetz": "0.5.0",
70
- "@scalar/themes": "0.13.21",
65
+ "@scalar/object-utils": "1.2.8",
66
+ "@scalar/json-magic": "0.6.1",
67
+ "@scalar/openapi-types": "0.5.0",
68
+ "@scalar/openapi-parser": "0.22.3",
69
+ "@scalar/openapi-upgrader": "0.1.3",
70
+ "@scalar/snippetz": "0.5.1",
71
+ "@scalar/themes": "0.13.22",
71
72
  "@scalar/use-hooks": "0.2.5",
72
- "@scalar/openapi-upgrader": "0.1.2",
73
- "@scalar/types": "0.3.1",
73
+ "@scalar/types": "0.3.2",
74
74
  "@scalar/use-toasts": "0.8.0",
75
- "@scalar/workspace-store": "0.17.0"
75
+ "@scalar/workspace-store": "0.17.1"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@hono/node-server": "^1.11.0",
@@ -92,9 +92,9 @@
92
92
  "vite-plugin-banner": "^0.7.1",
93
93
  "vite-plugin-css-injected-by-js": "^3.4.0",
94
94
  "vitest": "3.2.4",
95
- "@scalar/core": "0.3.19",
96
95
  "@scalar/build-tooling": "0.2.7",
97
- "@scalar/galaxy": "0.5.8",
96
+ "@scalar/core": "0.3.20",
97
+ "@scalar/galaxy": "0.5.9",
98
98
  "@scalar/react-renderer": "0.2.1"
99
99
  },
100
100
  "scripts": {
@@ -1,9 +0,0 @@
1
- export declare const ERRORS: {
2
- NO_ELEMENT_PROVIDED: string;
3
- NO_URL_PROVIDED: string;
4
- EMPTY_PATH: string;
5
- };
6
- export declare const WARNINGS: {
7
- ELEMENT_NOT_FOUND: string;
8
- };
9
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/blocks/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;CAMlB,CAAA;AAED,eAAO,MAAM,QAAQ;;CAEpB,CAAA"}
@@ -1,22 +0,0 @@
1
- import type { OpenAPI } from '@scalar/openapi-types';
2
- /**
3
- * Pass an array of strings to get a valid OpenAPI pointer.
4
- *
5
- * Works with any path, but is typed to allow the paths that we support.
6
- *
7
- * @example
8
- * ['paths', '/planets/{foo}', 'get'] > '#/paths/~1planets~1{foo}/get'
9
- * ['components', 'schemas', 'Planet] > '#/components/schemas/Planet'
10
- */
11
- type ValidOpenApiPaths = ['paths' | 'webhooks', string, Lowercase<OpenAPI.HttpMethod> | string] | ['components', 'schemas', string];
12
- /**
13
- * Encodes a location string with paths
14
- *
15
- * @example
16
- * getPointer(['paths', '/planets/{foo}', 'get'])
17
- *
18
- * '#/paths/~1planets~1{foo}/get'
19
- */
20
- export declare function getPointer(path: ValidOpenApiPaths): `#/${string}`;
21
- export {};
22
- //# sourceMappingURL=getPointer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPointer.d.ts","sourceRoot":"","sources":["../../../src/blocks/helpers/getPointer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAIpD;;;;;;;;GAQG;AACH,KAAK,iBAAiB,GAClB,CAAC,OAAO,GAAG,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,GACtE,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;AAErC;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAY9B,KAAK,MAAM,EAAE,CAChC"}