@scalar/api-client 2.24.0 → 2.26.0

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.
Files changed (81) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  3. package/dist/components/DataTable/DataTableCheckbox.vue.js +8 -8
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +28 -19
  7. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  8. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
  9. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
  10. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
  11. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +18 -18
  12. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  13. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +2 -2
  15. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +19 -19
  16. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  17. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +26 -26
  18. package/dist/v2/components/callout/Callout.vue.d.ts +17 -0
  19. package/dist/v2/components/callout/Callout.vue.d.ts.map +1 -0
  20. package/dist/v2/components/callout/Callout.vue.js +7 -0
  21. package/dist/v2/components/callout/Callout.vue2.js +43 -0
  22. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -1
  23. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +8 -8
  24. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -2
  25. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  26. package/dist/v2/components/sidebar/Sidebar.vue.js +40 -41
  27. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -2
  28. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  29. package/dist/v2/components/sidebar/SidebarMenu.vue.js +6 -6
  30. package/dist/v2/features/app/App.vue.d.ts +6 -3
  31. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  32. package/dist/v2/features/app/App.vue.js +87 -86
  33. package/dist/v2/features/app/app-events.d.ts +1 -1
  34. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  35. package/dist/v2/features/app/app-events.js +10 -10
  36. package/dist/v2/features/app/app-state.d.ts +77 -96
  37. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  38. package/dist/v2/features/app/app-state.js +339 -322
  39. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +2 -2
  40. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  41. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  42. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  43. package/dist/v2/features/app/components/DesktopTabs.vue.js +1 -1
  44. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
  45. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  46. package/dist/v2/features/app/helpers/create-api-client-app.js +9 -9
  47. package/dist/v2/features/app/helpers/filter-workspaces.d.ts +49 -0
  48. package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +1 -0
  49. package/dist/v2/features/app/helpers/filter-workspaces.js +5 -0
  50. package/dist/v2/features/app/helpers/get-route-param.d.ts +7 -0
  51. package/dist/v2/features/app/helpers/get-route-param.d.ts.map +1 -0
  52. package/dist/v2/features/app/helpers/get-route-param.js +9 -0
  53. package/dist/v2/features/app/helpers/group-workspaces.d.ts +24 -0
  54. package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +1 -0
  55. package/dist/v2/features/app/helpers/group-workspaces.js +23 -0
  56. package/dist/v2/features/app/index.d.ts +1 -1
  57. package/dist/v2/features/app/index.d.ts.map +1 -1
  58. package/dist/v2/features/app/index.js +12 -12
  59. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  60. package/dist/v2/features/collection/DocumentCollection.vue.js +72 -65
  61. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +29 -2
  62. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  63. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +110 -106
  64. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +5 -1
  65. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -1
  66. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +41 -23
  67. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +41 -8
  68. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  69. package/dist/v2/features/command-palette/index.d.ts +1 -2
  70. package/dist/v2/features/command-palette/index.d.ts.map +1 -1
  71. package/dist/v2/features/command-palette/index.js +4 -6
  72. package/dist/v2/features/operation/Operation.vue.js +1 -1
  73. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  74. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
  75. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +24 -23
  76. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  77. package/package.json +10 -10
  78. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +0 -41
  79. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +0 -1
  80. package/dist/v2/features/app/components/WebTopNav.vue.js +0 -27
  81. package/dist/v2/features/app/components/WebTopNav.vue2.js +0 -4
@@ -1,124 +1,128 @@
1
- import { defineComponent as E, ref as D, computed as v, watch as O, createBlock as g, openBlock as a, unref as r, withCtx as u, createElementBlock as c, Fragment as m, createElementVNode as b, createCommentVNode as _, createVNode as f, createTextVNode as s, toDisplayString as L } from "vue";
2
- import { useLoadingState as $, ScalarButton as U, ScalarCodeBlock as j, ScalarIcon as M, ScalarTooltip as z } from "@scalar/components";
3
- import { isLocalUrl as J } from "@scalar/helpers/url/is-local-url";
4
- import { useToasts as Y } from "@scalar/use-toasts";
5
- import { createWorkspaceStore as q } from "@scalar/workspace-store/client";
6
- import { useRouter as G } from "vue-router";
7
- import { getOpenApiDocumentDetails as H } from "../helpers/get-openapi-document-details.js";
8
- import { getPostmanDocumentDetails as K } from "../helpers/get-postman-document-details.js";
9
- import { importDocumentToWorkspace as Q } from "../helpers/import-document-to-workspace.js";
10
- import { isPostmanCollection as X } from "../helpers/is-postman-collection.js";
11
- import { loadDocumentFromSource as Z } from "../helpers/load-document-from-source.js";
12
- import { isUrl as ee } from "../../../helpers/is-url.js";
13
- import te from "./CommandActionForm.vue.js";
14
- import oe from "./CommandActionInput.vue.js";
15
- import ae from "./WatchModeToggle.vue.js";
16
- import { useFileDialog as le } from "../../../../hooks/useFileDialog.js";
17
- const ne = { class: "flex justify-between" }, re = { class: "flex w-full flex-row items-center justify-between gap-3" }, se = {
1
+ import { defineComponent as O, ref as D, computed as f, watch as $, createBlock as b, openBlock as a, unref as s, withCtx as u, createElementBlock as c, Fragment as m, createElementVNode as h, createCommentVNode as j, createVNode as v, createTextVNode as i, toDisplayString as I, renderSlot as M } from "vue";
2
+ import { useLoadingState as _, ScalarButton as P, ScalarCodeBlock as z, ScalarIcon as J, ScalarTooltip as Y } from "@scalar/components";
3
+ import { isLocalUrl as q } from "@scalar/helpers/url/is-local-url";
4
+ import { useToasts as G } from "@scalar/use-toasts";
5
+ import { createWorkspaceStore as H } from "@scalar/workspace-store/client";
6
+ import { useRouter as K } from "vue-router";
7
+ import { getOpenApiDocumentDetails as Q } from "../helpers/get-openapi-document-details.js";
8
+ import { getPostmanDocumentDetails as X } from "../helpers/get-postman-document-details.js";
9
+ import { importDocumentToWorkspace as Z } from "../helpers/import-document-to-workspace.js";
10
+ import { isPostmanCollection as ee } from "../helpers/is-postman-collection.js";
11
+ import { loadDocumentFromSource as te } from "../helpers/load-document-from-source.js";
12
+ import { isUrl as oe } from "../../../helpers/is-url.js";
13
+ import ae from "./CommandActionForm.vue.js";
14
+ import le from "./CommandActionInput.vue.js";
15
+ import re from "./WatchModeToggle.vue.js";
16
+ import { useFileDialog as ne } from "../../../../hooks/useFileDialog.js";
17
+ const se = { class: "flex justify-between" }, ie = { class: "flex w-full flex-row items-center justify-between gap-3" }, ue = {
18
18
  name: "CommandPaletteImport"
19
- }, Ce = /* @__PURE__ */ E({
20
- ...se,
19
+ }, Ue = /* @__PURE__ */ O({
20
+ ...ue,
21
21
  props: {
22
22
  workspaceStore: {},
23
- eventBus: {}
23
+ eventBus: {},
24
+ fileLoader: {}
24
25
  },
25
26
  emits: ["close", "back"],
26
- setup(k, { emit: I }) {
27
- const x = I, { toast: P } = Y(), V = G(), p = $(), o = D(""), y = D(!1), i = v(() => ee(o.value)), A = v(
28
- () => i.value && J(o.value)
29
- ), l = v(() => X(o.value) ? K(o.value) : H(o.value)), S = v(
27
+ setup(y, { emit: V }) {
28
+ const w = V, { toast: T } = G(), A = K(), d = _(), o = D(""), k = D(!1), n = f(() => oe(o.value)), R = f(
29
+ () => n.value && q(o.value)
30
+ ), l = f(() => ee(o.value) ? X(o.value) : Q(o.value)), L = f(
30
31
  () => l.value ? l.value.type : "json"
31
- ), R = v(() => !o.value.trim());
32
- O(A, (t) => {
33
- y.value = t;
32
+ ), B = f(() => !o.value.trim());
33
+ $(R, (t) => {
34
+ k.value = t;
34
35
  });
35
- const h = async (t) => {
36
- console.error(t), P(t, "error"), await p.invalidate(), x("close");
37
- }, C = async (t) => {
38
- p.start();
39
- const e = "drafts", n = q({
36
+ const C = async (t) => {
37
+ console.error(t), T(t, "error"), await d.invalidate(), w("close");
38
+ }, x = async (t, e) => {
39
+ d.start();
40
+ const r = "drafts", p = H({
41
+ fileLoader: y.fileLoader,
40
42
  meta: {
41
43
  /** Ensure we use the active proxy to fetch documents */
42
- "x-scalar-active-proxy": k.workspaceStore.workspace["x-scalar-active-proxy"]
44
+ "x-scalar-active-proxy": y.workspaceStore.workspace["x-scalar-active-proxy"]
43
45
  }
44
- });
45
- if (!await Z(
46
- n,
47
- t,
48
- e,
49
- y.value
46
+ }), g = e || (n.value ? "url" : "raw");
47
+ if (!await te(
48
+ p,
49
+ { source: t, type: g },
50
+ r,
51
+ k.value
50
52
  ))
51
- return h("Failed to import document");
52
- const d = await Q({
53
- workspaceStore: k.workspaceStore,
54
- workspaceState: n.exportWorkspace(),
55
- name: e
53
+ return C("Failed to import document");
54
+ const S = await Z({
55
+ workspaceStore: y.workspaceStore,
56
+ workspaceState: p.exportWorkspace(),
57
+ name: r
56
58
  });
57
- if (!d.ok)
58
- return h(d.error);
59
- await p.validate(), T(d.slug), x("close");
60
- }, T = (t) => {
61
- V.push({
59
+ if (!S.ok)
60
+ return C(S.error);
61
+ await d.validate(), F(S.slug), w("close");
62
+ }, F = (t) => {
63
+ A.push({
62
64
  name: "document.overview",
63
65
  params: { documentSlug: t }
64
66
  });
65
- }, { open: B } = le({
67
+ }, { open: N } = ne({
66
68
  onChange: (t) => {
67
69
  const [e] = t ?? [];
68
70
  if (!e)
69
71
  return;
70
- p.start();
71
- const n = async (d) => {
72
- const W = d.target?.result;
73
- await C(W);
74
- }, w = new FileReader();
75
- w.onload = n, w.readAsText(e);
72
+ d.start();
73
+ const r = async (g) => {
74
+ const U = g.target?.result;
75
+ await x(U, "raw");
76
+ }, p = new FileReader();
77
+ p.onload = r, p.readAsText(e);
76
78
  },
77
79
  multiple: !1,
78
80
  accept: ".json,.yaml,.yml"
79
- }), F = (t) => {
81
+ }), W = (t) => {
80
82
  if (t.trim().toLowerCase().startsWith("curl"))
81
- return k.eventBus.emit("ui:open:command-palette", {
83
+ return y.eventBus.emit("ui:open:command-palette", {
82
84
  action: "import-curl-command",
83
85
  payload: {
84
86
  inputValue: t
85
87
  }
86
88
  });
87
89
  o.value = t;
88
- }, N = (t) => {
89
- x("back", t);
90
+ }, E = (t) => {
91
+ w("back", t);
90
92
  };
91
- return (t, e) => (a(), g(te, {
92
- disabled: R.value,
93
- loader: r(p),
94
- onSubmit: e[2] || (e[2] = (n) => C(o.value))
93
+ return (t, e) => (a(), b(ae, {
94
+ disabled: B.value,
95
+ loader: s(d),
96
+ onSubmit: e[2] || (e[2] = (r) => x(o.value))
95
97
  }, {
96
98
  options: u(() => [
97
- b("div", re, [
98
- f(r(U), {
99
- class: "hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs",
100
- variant: "outlined",
101
- onClick: r(B)
102
- }, {
103
- default: u(() => [
104
- e[5] || (e[5] = s(" JSON, or YAML File ", -1)),
105
- f(r(M), {
106
- class: "text-c-3",
107
- icon: "Upload",
108
- size: "md"
109
- })
110
- ]),
111
- _: 1
112
- }, 8, ["onClick"]),
113
- f(r(z), {
114
- content: i.value ? "Watch mode automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date." : "Watch mode is only available for URL imports. When enabled it automatically updates the API client when the OpenAPI URL content changes.",
99
+ h("div", ie, [
100
+ M(t.$slots, "fileUpload", { import: x }, () => [
101
+ v(s(P), {
102
+ class: "hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs",
103
+ variant: "outlined",
104
+ onClick: s(N)
105
+ }, {
106
+ default: u(() => [
107
+ e[5] || (e[5] = i(" JSON, or YAML File ", -1)),
108
+ v(s(J), {
109
+ class: "text-c-3",
110
+ icon: "Upload",
111
+ size: "md"
112
+ })
113
+ ]),
114
+ _: 1
115
+ }, 8, ["onClick"])
116
+ ]),
117
+ v(s(Y), {
118
+ content: n.value ? "Watch mode automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date." : "Watch mode is only available for URL imports. When enabled it automatically updates the API client when the OpenAPI URL content changes.",
115
119
  placement: "bottom"
116
120
  }, {
117
121
  default: u(() => [
118
- f(ae, {
119
- modelValue: y.value,
120
- "onUpdate:modelValue": e[1] || (e[1] = (n) => y.value = n),
121
- disabled: !i.value
122
+ v(re, {
123
+ modelValue: k.value,
124
+ "onUpdate:modelValue": e[1] || (e[1] = (r) => k.value = r),
125
+ disabled: !n.value
122
126
  }, null, 8, ["modelValue", "disabled"])
123
127
  ]),
124
128
  _: 1
@@ -126,53 +130,53 @@ const ne = { class: "flex justify-between" }, re = { class: "flex w-full flex-ro
126
130
  ])
127
131
  ]),
128
132
  submit: u(() => [
129
- e[6] || (e[6] = s(" Import ", -1)),
130
- i.value ? (a(), c(m, { key: 0 }, [
131
- s("from URL")
132
- ], 64)) : l.value && S.value ? (a(), c(m, { key: 1 }, [
133
+ e[6] || (e[6] = i(" Import ", -1)),
134
+ n.value ? (a(), c(m, { key: 0 }, [
135
+ i("from URL")
136
+ ], 64)) : l.value && L.value ? (a(), c(m, { key: 1 }, [
133
137
  l.value.title ? (a(), c(m, { key: 0 }, [
134
- s(' "' + L(l.value.title) + '" ', 1)
138
+ i(' "' + I(l.value.title) + '" ', 1)
135
139
  ], 64)) : (a(), c(m, { key: 1 }, [
136
- s(L(l.value.version), 1)
140
+ i(I(l.value.version), 1)
137
141
  ], 64))
138
142
  ], 64)) : (a(), c(m, { key: 2 }, [
139
- s("Collection")
143
+ i("Collection")
140
144
  ], 64))
141
145
  ]),
142
146
  default: u(() => [
143
- !l.value || i.value ? (a(), g(oe, {
147
+ !l.value || n.value ? (a(), b(le, {
144
148
  key: 0,
145
149
  modelValue: o.value,
146
150
  placeholder: "OpenAPI/Swagger/Postman URL or cURL",
147
- onDelete: N,
148
- "onUpdate:modelValue": F
151
+ onDelete: E,
152
+ "onUpdate:modelValue": W
149
153
  }, null, 8, ["modelValue"])) : (a(), c(m, { key: 1 }, [
150
- b("div", ne, [
151
- e[4] || (e[4] = b("div", { class: "text-c-2 min-h-8 w-full py-2 pl-12 text-center text-xs" }, " Preview ", -1)),
152
- f(r(U), {
154
+ h("div", se, [
155
+ e[4] || (e[4] = h("div", { class: "text-c-2 min-h-8 w-full py-2 pl-12 text-center text-xs" }, " Preview ", -1)),
156
+ v(s(P), {
153
157
  class: "hover:bg-b-2 relative ml-auto max-h-8 gap-1.5 p-2 text-xs",
154
158
  variant: "ghost",
155
- onClick: e[0] || (e[0] = (n) => o.value = "")
159
+ onClick: e[0] || (e[0] = (r) => o.value = "")
156
160
  }, {
157
161
  default: u(() => [...e[3] || (e[3] = [
158
- s(" Clear ", -1)
162
+ i(" Clear ", -1)
159
163
  ])]),
160
164
  _: 1
161
165
  })
162
166
  ]),
163
- l.value && !i.value ? (a(), g(r(j), {
167
+ l.value && !n.value ? (a(), b(s(z), {
164
168
  key: 0,
165
169
  class: "bg-b-2 mt-1 max-h-[40dvh] rounded border px-2 py-1 text-sm",
166
170
  content: o.value,
167
171
  copy: !1,
168
- lang: S.value
169
- }, null, 8, ["content", "lang"])) : _("", !0)
172
+ lang: L.value
173
+ }, null, 8, ["content", "lang"])) : j("", !0)
170
174
  ], 64))
171
175
  ]),
172
- _: 1
176
+ _: 3
173
177
  }, 8, ["disabled", "loader"]));
174
178
  }
175
179
  });
176
180
  export {
177
- Ce as default
181
+ Ue as default
178
182
  };
@@ -1,4 +1,8 @@
1
1
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ export type ImportEventData = {
3
+ source: string;
4
+ type: 'url' | 'file' | 'raw';
5
+ };
2
6
  /**
3
7
  * Attempts to add a document to the workspace from a given source, which may be a URL or raw content.
4
8
  *
@@ -12,5 +16,5 @@ import type { WorkspaceStore } from '@scalar/workspace-store/client';
12
16
  * @param watchMode Whether to enable watch mode (applies only to URL sources).
13
17
  * @returns Promise resolving to true if the document was successfully added, or false if the operation failed.
14
18
  */
15
- export declare const loadDocumentFromSource: (workspaceStore: WorkspaceStore, source: string | null, name: string, watchMode: boolean) => Promise<boolean>;
19
+ export declare const loadDocumentFromSource: (workspaceStore: WorkspaceStore, importEventData: ImportEventData, name: string, watchMode: boolean) => Promise<boolean>;
16
20
  //# sourceMappingURL=load-document-from-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-document-from-source.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/load-document-from-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GACjC,gBAAgB,cAAc,EAC9B,QAAQ,MAAM,GAAG,IAAI,EACrB,MAAM,MAAM,EACZ,WAAW,OAAO,KACjB,OAAO,CAAC,OAAO,CAiDjB,CAAA"}
1
+ {"version":3,"file":"load-document-from-source.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/load-document-from-source.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;CAC7B,CAAA;AAiCD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GACjC,gBAAgB,cAAc,EAC9B,iBAAiB,eAAe,EAChC,MAAM,MAAM,EACZ,WAAW,OAAO,KACjB,OAAO,CAAC,OAAO,CAsDjB,CAAA"}
@@ -1,34 +1,52 @@
1
- import { normalize as i } from "@scalar/openapi-parser";
2
- import { getOpenApiFromPostman as l } from "./get-openapi-from-postman.js";
3
- import { isPostmanCollection as u } from "./is-postman-collection.js";
4
- import { isUrl as d } from "../../../helpers/is-url.js";
5
- const C = async (r, t, o, m) => {
1
+ import { isObject as u } from "@scalar/helpers/object/is-object";
2
+ import { parseJson as c, parseYaml as d } from "@scalar/json-magic/bundle/plugins/browser";
3
+ import { getOpenApiFromPostman as m } from "./get-openapi-from-postman.js";
4
+ import { isPostmanCollection as f } from "./is-postman-collection.js";
5
+ const p = () => ({
6
+ type: "loader",
7
+ validate: f,
8
+ exec: (e) => {
9
+ try {
10
+ const r = m(e);
11
+ return r ? Promise.resolve({
12
+ ok: !0,
13
+ data: r,
14
+ raw: e
15
+ }) : Promise.resolve({
16
+ ok: !1
17
+ });
18
+ } catch {
19
+ return Promise.resolve({
20
+ ok: !1
21
+ });
22
+ }
23
+ }
24
+ }), h = async (e, r, o, l) => {
25
+ const { source: t, type: n } = r;
6
26
  if (!t)
7
27
  return !1;
8
- if (d(t))
9
- return await r.addDocument({
28
+ if (n === "url")
29
+ return await e.addDocument({
10
30
  name: o,
11
31
  url: t,
12
32
  meta: {
13
- "x-scalar-watch-mode": m
33
+ "x-scalar-watch-mode": l
14
34
  }
15
35
  });
16
- if (u(t)) {
17
- const n = l(t);
18
- return n === null ? !1 : await r.addDocument({ name: o, document: n });
19
- }
20
- const e = ((n) => {
21
- try {
22
- return i(n);
23
- } catch (a) {
24
- return console.error(a), null;
25
- }
26
- })(t);
27
- return e === null ? !1 : await r.addDocument({
36
+ if (n === "file")
37
+ return await e.addDocument({
38
+ name: o,
39
+ path: t
40
+ });
41
+ const s = [p(), c(), d()].find((i) => i.validate(t));
42
+ if (!s)
43
+ return !1;
44
+ const a = await s.exec(t);
45
+ return !(!a.ok || !u(a.data) || !await e.addDocument({
28
46
  name: o,
29
- document: e
30
- });
47
+ document: a.data
48
+ }));
31
49
  };
32
50
  export {
33
- C as loadDocumentFromSource
51
+ h as loadDocumentFromSource
34
52
  };
@@ -113,19 +113,52 @@ export declare const baseRoutes: CommandPaletteRoute[];
113
113
  export declare const baseClientActions: [{
114
114
  readonly id: "import-from-openapi-swagger-postman-curl";
115
115
  readonly name: "Import from OpenAPI/Swagger/Postman/cURL";
116
- readonly component: import("vue").DefineComponent<{
117
- workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
118
- eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
119
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
120
- close: () => any;
121
- back: (keyboardEvent: KeyboardEvent) => any;
122
- }, string, import("vue").PublicProps, Readonly<{
116
+ readonly component: {
117
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
118
+ workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
119
+ eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
120
+ fileLoader?: import("@scalar/json-magic/bundle").LoaderPlugin;
121
+ }> & Readonly<{
122
+ onClose?: (() => any) | undefined;
123
+ onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
124
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
125
+ close: () => any;
126
+ back: (keyboardEvent: KeyboardEvent) => any;
127
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
128
+ P: {};
129
+ B: {};
130
+ D: {};
131
+ C: {};
132
+ M: {};
133
+ Defaults: {};
134
+ }, Readonly<{
135
+ workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
136
+ eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
137
+ fileLoader?: import("@scalar/json-magic/bundle").LoaderPlugin;
138
+ }> & Readonly<{
139
+ onClose?: (() => any) | undefined;
140
+ onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
141
+ }>, {}, {}, {}, {}, {}>;
142
+ __isFragment?: never;
143
+ __isTeleport?: never;
144
+ __isSuspense?: never;
145
+ } & import("vue").ComponentOptionsBase<Readonly<{
123
146
  workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
124
147
  eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
148
+ fileLoader?: import("@scalar/json-magic/bundle").LoaderPlugin;
125
149
  }> & Readonly<{
126
150
  onClose?: (() => any) | undefined;
127
151
  onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
128
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
152
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
153
+ close: () => any;
154
+ back: (keyboardEvent: KeyboardEvent) => any;
155
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
156
+ $slots: {
157
+ fileUpload(props: {
158
+ import: (source: string, type: "file" | "raw") => Promise<void>;
159
+ }): void;
160
+ };
161
+ });
129
162
  readonly icon: {
130
163
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("@scalar/icons/types").ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
131
164
  P: {};
@@ -1 +1 @@
1
- {"version":3,"file":"use-command-palette-state.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/hooks/use-command-palette-state.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"use-command-palette-state.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/hooks/use-command-palette-state.ts"],"names":[],"mappings":"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"}
@@ -1,4 +1,3 @@
1
- export { importDocumentToWorkspace } from './helpers/import-document-to-workspace.js';
2
- export { loadDocumentFromSource } from './helpers/load-document-from-source.js';
1
+ export { default as CommandPaletteImport } from './components/CommandPaletteImport.vue.js';
3
2
  export { default as TheCommandPalette } from './TheCommandPalette.vue.js';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/command-palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/command-palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,8 +1,6 @@
1
- import { importDocumentToWorkspace as r } from "./helpers/import-document-to-workspace.js";
2
- import { loadDocumentFromSource as t } from "./helpers/load-document-from-source.js";
3
- import { default as p } from "./TheCommandPalette.vue.js";
1
+ import { default as a } from "./components/CommandPaletteImport.vue.js";
2
+ import { default as o } from "./TheCommandPalette.vue.js";
4
3
  export {
5
- p as TheCommandPalette,
6
- r as importDocumentToWorkspace,
7
- t as loadDocumentFromSource
4
+ a as CommandPaletteImport,
5
+ o as TheCommandPalette
8
6
  };
@@ -76,7 +76,7 @@ const E = {
76
76
  )
77
77
  )), S = n(
78
78
  () => C(r(e.options)?.hiddenClients)
79
- ), y = "2.24.0";
79
+ ), y = "2.26.0";
80
80
  return (t, a) => e.path && e.method && e.exampleName && u.value ? (l(), x(i(N), {
81
81
  key: 0,
82
82
  activeEnvironment: e.workspaceStore.workspace["x-scalar-active-environment"],
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAmEA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAG/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;AAsGF,wBAMG"}
1
+ {"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAoEA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAG/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;AAyGF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBodyRaw.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-85d2902e"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1399120c"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -1,38 +1,39 @@
1
- import { defineComponent as i, ref as u, useId as p, toRef as r, createElementBlock as m, openBlock as n, createBlock as f, createCommentVNode as _, createElementVNode as c, unref as l } from "vue";
2
- import { ScalarCodeBlockCopy as g } from "@scalar/components";
3
- import { prettyPrintJson as k } from "@scalar/oas-utils/helpers";
4
- import { useCodeMirror as y } from "@scalar/use-codemirror";
5
- const b = { class: "scalar-code-block group/code-block body-raw grid min-h-0 overflow-hidden p-px outline-none has-[:focus-visible]:outline" }, v = {
1
+ import { defineComponent as u, ref as d, useId as f, toRef as n, createElementBlock as m, openBlock as c, createElementVNode as l, createBlock as p, createCommentVNode as g, unref as a } from "vue";
2
+ import { ScalarCodeBlockCopy as _ } from "@scalar/components";
3
+ import { prettyPrintJson as b } from "@scalar/oas-utils/helpers";
4
+ import { useCodeMirror as k } from "@scalar/use-codemirror";
5
+ const y = { class: "scalar-code-block group/code-block body-raw flex min-h-0 flex-col overflow-hidden p-px outline-none has-focus-visible:outline" }, h = {
6
6
  class: "body-raw-scroller custom-scroll relative pr-1",
7
7
  tabindex: "0"
8
- }, M = /* @__PURE__ */ i({
8
+ }, M = /* @__PURE__ */ u({
9
9
  __name: "ResponseBodyRaw",
10
10
  props: {
11
11
  content: {},
12
12
  language: {}
13
13
  },
14
- setup(s) {
15
- const e = s, o = u(null), a = p(), { codeMirror: d } = y({
16
- codeMirrorRef: o,
14
+ setup(e) {
15
+ const o = e, t = d(null), s = f(), { codeMirror: i } = k({
16
+ codeMirrorRef: t,
17
17
  readOnly: !0,
18
18
  lineNumbers: !0,
19
- content: r(() => k(e.content)),
20
- language: r(() => e.language),
19
+ content: n(() => b(o.content)),
20
+ language: n(() => o.language),
21
21
  forceFoldGutter: !0
22
- }), t = () => d.value?.state.doc.toString() || "";
23
- return (C, h) => (n(), m("div", b, [
24
- t() ? (n(), f(l(g), {
25
- key: 0,
26
- content: t(),
27
- controls: l(a),
28
- class: "z-context top-2 mr-2"
29
- }, null, 8, ["content", "controls"])) : _("", !0),
30
- c("div", v, [
31
- c("div", {
22
+ }), r = () => i.value?.state.doc.toString() || "";
23
+ return (v, C) => (c(), m("div", y, [
24
+ l("div", h, [
25
+ l("div", {
32
26
  ref_key: "codeMirrorRef",
33
- ref: o
27
+ ref: t
34
28
  }, null, 512)
35
- ])
29
+ ]),
30
+ r() ? (c(), p(a(_), {
31
+ key: 0,
32
+ content: r(),
33
+ "aria-controls": a(s),
34
+ lang: e.language,
35
+ class: "absolute top-2 right-2"
36
+ }, null, 8, ["content", "aria-controls", "lang"])) : g("", !0)
36
37
  ]));
37
38
  }
38
39
  });
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
33
33
  }));
34
34
  }, f = (u) => {
35
35
  u?.createNew && g.name === "request" && p();
36
- }, v = "2.24.0";
36
+ }, v = "2.26.0";
37
37
  return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (u, e) => (l(), n("div", W, [
38
38
  s("div", {
39
39
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {