@scalar/api-client 2.14.1 → 2.15.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 (67) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/style.css +1 -1
  3. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  4. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +28 -51
  5. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +0 -12
  6. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
  8. package/dist/v2/blocks/operation-block/components/Header.vue2.js +26 -28
  9. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  10. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  11. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +134 -125
  12. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
  13. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  15. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +1 -1
  16. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
  17. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  18. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -4
  19. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
  21. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  22. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  23. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +10 -10
  24. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
  25. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  26. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +21 -15
  27. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -13
  28. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  29. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  30. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +106 -70
  31. package/dist/v2/components/code-input/CodeInput.vue.d.ts +10 -1
  32. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  33. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  34. package/dist/v2/components/code-input/CodeInput.vue2.js +65 -51
  35. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +4 -0
  36. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  37. package/dist/v2/components/sidebar/Sidebar.vue.js +42 -39
  38. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  39. package/dist/v2/features/app/App.vue.js +64 -66
  40. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  41. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  42. package/dist/v2/features/app/components/AppSidebar.vue2.js +193 -106
  43. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts +22 -0
  44. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts.map +1 -0
  45. package/dist/v2/features/app/components/ItemDecorator.vue.js +138 -0
  46. package/dist/v2/features/app/components/ItemDecorator.vue2.js +4 -0
  47. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +8 -0
  48. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  49. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +76 -68
  50. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +8 -0
  51. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
  52. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +83 -75
  53. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +4 -0
  54. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
  55. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +32 -34
  56. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +16 -0
  57. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  58. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +24 -21
  59. package/dist/v2/features/operation/Operation.vue.js +1 -1
  60. package/dist/v2/features/settings/DocumentSettings.vue.js +2 -2
  61. package/dist/v2/features/settings/DocumentSettings.vue2.js +1 -1
  62. package/dist/v2/helpers/storage.d.ts.map +1 -1
  63. package/dist/v2/helpers/storage.js +5 -5
  64. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  65. package/dist/v2/hooks/use-workspace-client-events.js +102 -61
  66. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  67. package/package.json +16 -16
@@ -1,62 +1,60 @@
1
- import { defineComponent as S, ref as f, computed as i, createBlock as x, openBlock as g, withCtx as l, createVNode as n, createTextVNode as w, unref as m, createElementVNode as V, normalizeClass as C, toDisplayString as B } from "vue";
1
+ import { defineComponent as g, ref as f, computed as i, createBlock as k, openBlock as S, withCtx as l, createVNode as n, createTextVNode as w, unref as c, createElementVNode as V, normalizeClass as C, toDisplayString as B } from "vue";
2
2
  import { ScalarListbox as D, ScalarButton as N, ScalarIcon as T } from "@scalar/components";
3
- import _ from "./CommandActionForm.vue.js";
3
+ import I from "./CommandActionForm.vue.js";
4
4
  import h from "./CommandActionInput.vue.js";
5
5
  const j = {
6
6
  name: "CommandPaletteTag"
7
- }, E = /* @__PURE__ */ S({
7
+ }, E = /* @__PURE__ */ g({
8
8
  ...j,
9
9
  props: {
10
10
  workspaceStore: {},
11
- eventBus: {}
11
+ eventBus: {},
12
+ documentId: {}
12
13
  },
13
14
  emits: ["close", "back"],
14
15
  setup(o, { emit: p }) {
15
- const c = p, u = f(""), r = i(() => u.value.trim()), d = i(
16
+ const d = p, u = f(""), m = i(() => u.value.trim()), s = i(
16
17
  () => Object.entries(o.workspaceStore.workspace.documents).map(
17
- ([t, a]) => ({
18
- id: t,
19
- label: a.info.title || t
18
+ ([e, t]) => ({
19
+ id: e,
20
+ label: t.info.title || e
20
21
  })
21
22
  )
22
- ), e = f(
23
- d.value[0] ?? void 0
23
+ ), a = f(
24
+ o.documentId ? s.value.find((e) => e.id === o.documentId) : s.value[0] ?? void 0
24
25
  ), v = i(() => {
25
- if (!r.value || !e.value)
26
+ if (!m.value || !a.value)
26
27
  return !0;
27
- const t = o.workspaceStore.workspace.documents[e.value.id];
28
- return !!(!t || t.tags?.some((a) => a.name === r.value));
28
+ const e = o.workspaceStore.workspace.documents[a.value.id];
29
+ return !!(!e || e.tags?.some((t) => t.name === m.value));
29
30
  }), b = () => {
30
- v.value || !e.value || (o.eventBus.emit("tag:create:tag", {
31
- name: r.value,
32
- documentName: e.value.id,
33
- callback: (t) => {
34
- t && o.workspaceStore.buildSidebar(e.value?.id ?? "");
35
- }
36
- }), c("close"));
37
- }, k = (t) => {
38
- c("back", t);
31
+ v.value || !a.value || (o.eventBus.emit("tag:create:tag", {
32
+ name: m.value,
33
+ documentName: a.value.id
34
+ }), d("close"));
35
+ }, x = (e) => {
36
+ d("back", e);
39
37
  };
40
- return (t, a) => (g(), x(_, {
38
+ return (e, t) => (S(), k(I, {
41
39
  disabled: v.value,
42
40
  onSubmit: b
43
41
  }, {
44
42
  options: l(() => [
45
- n(m(D), {
46
- modelValue: e.value,
47
- "onUpdate:modelValue": a[1] || (a[1] = (s) => e.value = s),
48
- options: d.value
43
+ n(c(D), {
44
+ modelValue: a.value,
45
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => a.value = r),
46
+ options: s.value
49
47
  }, {
50
48
  default: l(() => [
51
- n(m(N), {
49
+ n(c(N), {
52
50
  class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
53
51
  variant: "outlined"
54
52
  }, {
55
53
  default: l(() => [
56
54
  V("span", {
57
- class: C(e.value ? "text-c-1" : "text-c-3")
58
- }, B(e.value ? e.value.label : "Select Collection"), 3),
59
- n(m(T), {
55
+ class: C(a.value ? "text-c-1" : "text-c-3")
56
+ }, B(a.value ? a.value.label : "Select Collection"), 3),
57
+ n(c(T), {
60
58
  class: "text-c-3",
61
59
  icon: "ChevronDown",
62
60
  size: "md"
@@ -68,16 +66,16 @@ const j = {
68
66
  _: 1
69
67
  }, 8, ["modelValue", "options"])
70
68
  ]),
71
- submit: l(() => [...a[2] || (a[2] = [
69
+ submit: l(() => [...t[2] || (t[2] = [
72
70
  w("Create Tag", -1)
73
71
  ])]),
74
72
  default: l(() => [
75
73
  n(h, {
76
74
  modelValue: u.value,
77
- "onUpdate:modelValue": a[0] || (a[0] = (s) => u.value = s),
75
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => u.value = r),
78
76
  label: "Tag Name",
79
77
  placeholder: "Tag Name",
80
- onDelete: k
78
+ onDelete: x
81
79
  }, null, 8, ["modelValue"])
82
80
  ]),
83
81
  _: 1
@@ -60,16 +60,32 @@ export declare const commands: [{
60
60
  readonly id: "add-tag";
61
61
  readonly name: "Add Tag";
62
62
  readonly icon: "Folder";
63
+ readonly props: {
64
+ /** Document id to add the tag to */
65
+ documentId?: string;
66
+ };
63
67
  }, {
64
68
  readonly type: "folder";
65
69
  readonly id: "create-request";
66
70
  readonly name: "Create Request";
67
71
  readonly icon: "ExternalLink";
72
+ readonly props: {
73
+ /** The id of the document to create the request in */
74
+ documentId?: string;
75
+ /** Tag id to add the request to (optional) */
76
+ tagId?: string;
77
+ };
68
78
  }, {
69
79
  readonly type: "folder";
70
80
  readonly id: "add-example";
71
81
  readonly name: "Add Example";
72
82
  readonly icon: "Example";
83
+ readonly props: {
84
+ /** Document id to add the example to */
85
+ documentId?: string;
86
+ /** Operation id to add the example to */
87
+ operationId?: string;
88
+ };
73
89
  }, {
74
90
  readonly type: "hidden-folder";
75
91
  readonly id: "import-curl-command";
@@ -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":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAE1D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAiB,MAAM,KAAK,CAAA;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD,6DAA6D;AAC7D,KAAK,WAAW,GAAG;IACjB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,KAAK,aAAa,GAAG,WAAW,GAAG;IACjC,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,EAAE,QAAQ,CAAA;IACd,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,KAAK,mBAAmB,GAAG,WAAW,GAAG;IACvC,IAAI,EAAE,eAAe,CAAA;IACrB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,KAAK,YAAY,GAAG,WAAW,GAAG;IAChC,IAAI,EAAE,OAAO,CAAA;IACb,EAAE,EAAE,gBAAgB,CAAA;IACpB,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,YAAY,GAAG,mBAAmB,CAAA;AAExE;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,sEAAsE;IACtE,KAAK,EAAE,MA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,GACzC,EAAE,GACF,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,KAC5B,IAAI,CAAA;AAET;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,oDAAoD;IACpD,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACpB,qEAAqE;IACrE,aAAa,EAAE,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,CAAA;IACvC,wDAAwD;IACxD,kBAAkB,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,CAAA;IACvD,yDAAyD;IACzD,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,0DAA0D;IAC1D,gBAAgB,EAAE,WAAW,CAAC,SAAS,YAAY,EAAE,CAAC,CAAA;IACtD;;;OAGG;IACH,IAAI,EAAE,WAAW,CAAA;IACjB,kDAAkD;IAClD,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,sDAAsD;IACtD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,yCAAyC;IACzC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,sBAAsB,QAAO,4BAmFzC,CAAA"}
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":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAE1D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAiB,MAAM,KAAK,CAAA;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD,6DAA6D;AAC7D,KAAK,WAAW,GAAG;IACjB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAA;I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yD;IACzD,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,0DAA0D;IAC1D,gBAAgB,EAAE,WAAW,CAAC,SAAS,YAAY,EAAE,CAAC,CAAA;IACtD;;;OAGG;IACH,IAAI,EAAE,WAAW,CAAA;IACjB,kDAAkD;IAClD,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,sDAAsD;IACtD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,yCAAyC;IACzC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,sBAAsB,QAAO,4BAmFzC,CAAA"}
@@ -1,6 +1,6 @@
1
- import { useModal as y } from "@scalar/components";
2
- import { ref as m, computed as i } from "vue";
3
- const g = () => null, v = [
1
+ import { useModal as g } from "@scalar/components";
2
+ import { ref as s, computed as c } from "vue";
3
+ const n = () => null, v = [
4
4
  {
5
5
  label: "",
6
6
  commands: [
@@ -20,26 +20,29 @@ const g = () => null, v = [
20
20
  type: "folder",
21
21
  id: "add-tag",
22
22
  name: "Add Tag",
23
- icon: "Folder"
23
+ icon: "Folder",
24
+ props: n()
24
25
  },
25
26
  {
26
27
  type: "folder",
27
28
  id: "create-request",
28
29
  name: "Create Request",
29
- icon: "ExternalLink"
30
+ icon: "ExternalLink",
31
+ props: n()
30
32
  },
31
33
  {
32
34
  type: "folder",
33
35
  id: "add-example",
34
36
  name: "Add Example",
35
- icon: "Example"
37
+ icon: "Example",
38
+ props: n()
36
39
  },
37
40
  /** Hidden commands accessible programmatically but not shown in UI */
38
41
  {
39
42
  type: "hidden-folder",
40
43
  id: "import-curl-command",
41
44
  name: "Import cURL Command",
42
- props: g()
45
+ props: n()
43
46
  }
44
47
  ]
45
48
  },
@@ -76,30 +79,30 @@ const g = () => null, v = [
76
79
  ]
77
80
  }
78
81
  ], w = () => {
79
- const n = y(), t = m(""), a = m(null), r = m(null), c = i(() => n.open), d = i(() => {
82
+ const r = g(), t = s(""), a = s(null), m = s(null), d = c(() => r.open), p = c(() => {
80
83
  const e = t.value.toLowerCase().trim();
81
84
  return v.map((o) => ({
82
85
  label: o.label,
83
- commands: o.commands.filter((s) => s.type === "hidden-folder" ? !1 : e ? s.name.toLowerCase().includes(e) : !0)
86
+ commands: o.commands.filter((i) => i.type === "hidden-folder" ? !1 : e ? i.name.toLowerCase().includes(e) : !0)
84
87
  })).filter((o) => o.commands.length > 0);
85
- }), p = (e, ...o) => {
86
- e && (a.value = e, r.value = o[0] ?? null), n.show();
87
- }, u = () => {
88
- n.hide(), l();
89
- }, f = (e) => {
88
+ }), u = (e, ...o) => {
89
+ e && (a.value = e, m.value = o[0] ?? null), r.show();
90
+ }, f = () => {
91
+ r.hide(), l();
92
+ }, y = (e) => {
90
93
  t.value = e;
91
94
  }, l = () => {
92
- t.value = "", a.value = null, r.value = null;
95
+ t.value = "", a.value = null, m.value = null;
93
96
  };
94
97
  return {
95
- isOpen: c,
98
+ isOpen: d,
96
99
  activeCommand: a,
97
- activeCommandProps: r,
100
+ activeCommandProps: m,
98
101
  filterQuery: t,
99
- filteredCommands: d,
100
- open: p,
101
- close: u,
102
- setFilterQuery: f,
102
+ filteredCommands: p,
103
+ open: u,
104
+ close: f,
105
+ setFilterQuery: y,
103
106
  reset: l
104
107
  };
105
108
  };
@@ -40,7 +40,7 @@ const g = {
40
40
  method: e.method ?? "get"
41
41
  } : {
42
42
  type: "document"
43
- }), i = "2.14.1", d = B();
43
+ }), i = "2.15.0", d = B();
44
44
  return (t, o) => t.path && t.method && t.exampleName && n.value ? (s(), h(u(R), {
45
45
  key: 0,
46
46
  appVersion: u(i),
@@ -1,7 +1,7 @@
1
1
  import t from "./DocumentSettings.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-07248003"]]);
4
+ const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-cda64f02"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -71,8 +71,8 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
71
71
  ], -1)),
72
72
  n(o(y), {
73
73
  class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
74
- variant: "danger",
75
74
  disabled: l.isDraftDocument,
75
+ variant: "danger",
76
76
  onClick: b
77
77
  }, {
78
78
  default: m(() => [...t[6] || (t[6] = [
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/storage.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;oCACoB,MAAM,KAAG,IAAI;IAIpC;;OAEG;gCACc,MAAM,GAAG,IAAI;CAGtB,CAAA"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/storage.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;oCACoB,MAAM,KAAG,IAAI;IAQpC;;OAEG;gCACc,MAAM,GAAG,IAAI;CAGtB,CAAA"}
@@ -1,15 +1,15 @@
1
- import { safeLocalStorage as t } from "@scalar/helpers/object/local-storage";
2
- const e = "scalar.currentPath", o = {
1
+ import { safeLocalStorage as e } from "@scalar/helpers/object/local-storage";
2
+ const r = "scalar.currentPath", o = {
3
3
  /**
4
4
  * We keep the currently active path so we can reload it if needed
5
5
  */
6
- setCurrentPath: (r) => {
7
- t().setItem(e, r);
6
+ setCurrentPath: (t) => {
7
+ t !== "/" && e().setItem(r, t);
8
8
  },
9
9
  /**
10
10
  * Retrieve the last active path
11
11
  */
12
- getLastPath: () => t().getItem(e)
12
+ getLastPath: () => e().getItem(r)
13
13
  };
14
14
  export {
15
15
  o as workspaceStorage
@@ -1 +1 @@
1
- {"version":3,"file":"use-workspace-client-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-client-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAwC,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAgD7G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAClF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAW,MAAM,KAAK,CAAA;AAGzD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+DAA+D,CAAA;AACjH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,2FAOtC;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,cAAc,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC1C,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAC3B,mBAAmB,EAAE,4BAA4B,CAAA;IACjD,YAAY,EAAE,qBAAqB,CAAA;CACpC,SA6PA,CAAA"}
1
+ {"version":3,"file":"use-workspace-client-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-client-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAwC,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAmD7G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAClF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAW,MAAM,KAAK,CAAA;AAGzD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+DAA+D,CAAA;AACjH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,2FAOtC;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,cAAc,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC1C,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAC3B,mBAAmB,EAAE,4BAA4B,CAAA;IACjD,YAAY,EAAE,qBAAqB,CAAA;CACpC,SAqWA,CAAA"}
@@ -1,112 +1,153 @@
1
- import { mergeObjects as v } from "@scalar/workspace-store/helpers/merge-object";
2
- import { updateActiveProxy as b, updateColorMode as h, updateTheme as y, updateDocumentIcon as f, toggleSecurity as x, updateWatchMode as T, createEmptyDocument as g, upsertEnvironment as w, upsertEnvironmentVariable as O, upsertCookie as R, deleteCookie as q, deleteSecurityScheme as C, updateSelectedAuthTab as E, updateSecurityScheme as k, updateSelectedScopes as P, updateSelectedSecuritySchemes as A, addServer as I, updateServer as F, deleteServer as M, updateServerVariables as N, updateSelectedServer as V, createOperation as D, updateOperationMethod as K, updateOperationPath as L, updateOperationSummary as W, addOperationParameter as j, updateOperationParameter as U, deleteOperationParameter as z, deleteAllOperationParameters as G, updateOperationRequestBodyContentType as H, updateOperationRequestBodyExample as J, addOperationRequestBodyFormRow as Q, updateOperationRequestBodyFormRow as X, deleteOperationRequestBodyFormRow as Y, createTag as Z, addTab as _, closeTab as $, closeOtherTabs as S, focusTab as B, focusLastTab as ee, navigatePreviousTab as ae, navigateNextTab as te, updateTabs as oe } from "@scalar/workspace-store/mutators";
3
- import { toValue as m } from "vue";
4
- import { useRouter as re } from "vue-router";
5
- const ue = ({
1
+ import { mergeObjects as x } from "@scalar/workspace-store/helpers/merge-object";
2
+ import { updateActiveProxy as g, updateColorMode as T, updateTheme as y, updateDocumentIcon as R, toggleSecurity as w, updateWatchMode as O, createEmptyDocument as N, deleteDocument as C, upsertEnvironment as E, upsertEnvironmentVariable as q, upsertCookie as P, deleteCookie as I, deleteSecurityScheme as M, updateSelectedAuthTab as k, updateSecurityScheme as A, updateSelectedScopes as D, updateSelectedSecuritySchemes as F, addServer as U, updateServer as V, deleteServer as K, updateServerVariables as L, updateSelectedServer as W, createOperation as j, updateOperationPathMethod as z, updateOperationSummary as G, deleteOperation as H, deleteOperationExample as J, addOperationParameter as Q, updateOperationParameter as S, deleteOperationParameter as X, deleteAllOperationParameters as Y, updateOperationRequestBodyContentType as Z, updateOperationRequestBodyExample as _, addOperationRequestBodyFormRow as $, updateOperationRequestBodyFormRow as B, deleteOperationRequestBodyFormRow as ee, createTag as ae, deleteTag as te, addTab as oe, closeTab as re, closeOtherTabs as ne, focusTab as le, focusLastTab as ie, navigatePreviousTab as ue, navigateNextTab as me, updateTabs as pe } from "@scalar/workspace-store/mutators";
3
+ import { toValue as f } from "vue";
4
+ import { useRouter as ce, useRoute as de } from "vue-router";
5
+ const fe = ({
6
6
  eventBus: a,
7
7
  document: t,
8
8
  workspaceStore: o,
9
- isSidebarOpen: u,
10
- commandPaletteState: c,
11
- sidebarState: d
9
+ isSidebarOpen: d,
10
+ commandPaletteState: s,
11
+ sidebarState: v
12
12
  }) => {
13
- const s = re(), i = (e, r) => {
14
- const l = m(o);
15
- return l ? r === "document" ? e.value : l.workspace : null;
16
- }, n = async () => {
17
- const e = m(o);
13
+ const m = ce(), i = de(), p = (e, r) => {
14
+ const n = f(o);
15
+ return n ? r === "document" ? e.value : n.workspace : null;
16
+ }, l = async () => {
17
+ const e = f(o);
18
18
  if (!e)
19
19
  return;
20
- const r = e.workspace["x-scalar-active-tab"] ?? 0, l = e.workspace["x-scalar-tabs"]?.[r];
21
- l && await s.replace(l.path);
22
- }, p = (e) => {
20
+ const r = e.workspace["x-scalar-active-tab"] ?? 0, n = e.workspace["x-scalar-tabs"]?.[r];
21
+ n && await m.replace(n.path);
22
+ }, u = (e) => {
23
+ e && o.value?.buildSidebar(e);
24
+ }, c = (e) => {
23
25
  const r = t.value?.["x-scalar-navigation"]?.id;
24
26
  if (!r)
25
27
  return;
26
- const l = d.getEntryByLocation({
28
+ const n = v.getEntryByLocation({
27
29
  document: r,
28
30
  path: e.path,
29
31
  method: e.method,
30
32
  example: e.exampleKey
31
33
  });
32
- (!l || l.type !== "example") && o.value?.buildSidebar(r);
33
- };
34
- a.on("scroll-to:nav-item", ({ id: e }) => d.handleSelectItem(e)), a.on(
34
+ (!n || n.type !== "example") && u(r);
35
+ }, h = ({
36
+ documentName: e,
37
+ path: r,
38
+ method: n,
39
+ exampleName: b
40
+ }) => !(e !== void 0 && e !== i.params.documentSlug || r !== void 0 && encodeURIComponent(r) !== i.params.pathEncoded || n !== void 0 && n !== i.params.method || b !== void 0 && b !== i.params.exampleName);
41
+ a.on("scroll-to:nav-item", ({ id: e }) => v.handleSelectItem(e)), a.on(
35
42
  "workspace:update:active-proxy",
36
- (e) => b(o.value?.workspace ?? null, e)
43
+ (e) => g(o.value?.workspace ?? null, e)
37
44
  ), a.on(
38
45
  "workspace:update:color-mode",
39
- (e) => h(o.value?.workspace ?? null, e)
40
- ), a.on("workspace:update:theme", (e) => y(o.value?.workspace ?? null, e)), a.on("document:update:icon", (e) => f(t.value, e)), a.on("document:update:info", (e) => t.value && v(t.value.info, e)), a.on("document:toggle:security", () => x(t.value)), a.on("document:update:watch-mode", (e) => T(t.value, e)), a.on("document:create:empty-document", (e) => g(o.value, e)), a.on("environment:upsert:environment", (e) => {
41
- o.value && w(t.value, o.value.workspace, e);
46
+ (e) => T(o.value?.workspace ?? null, e)
47
+ ), a.on("workspace:update:theme", (e) => y(o.value?.workspace ?? null, e)), a.on("document:update:icon", (e) => R(t.value, e)), a.on("document:update:info", (e) => t.value && x(t.value.info, e)), a.on("document:toggle:security", () => w(t.value)), a.on("document:update:watch-mode", (e) => O(t.value, e)), a.on("document:create:empty-document", (e) => N(o.value, e)), a.on("document:delete:document", async (e) => {
48
+ C(o.value, e), i.params.documentSlug === e.name && await m.push({
49
+ name: "workspace.environment"
50
+ });
51
+ }), a.on("environment:upsert:environment", (e) => {
52
+ o.value && E(t.value, o.value.workspace, e);
42
53
  }), a.on(
43
54
  "environment:delete:environment",
44
- ({ environmentName: e, collectionType: r }) => delete i(t, r)?.["x-scalar-environments"]?.[e]
55
+ ({ environmentName: e, collectionType: r }) => delete p(t, r)?.["x-scalar-environments"]?.[e]
45
56
  ), a.on("environment:upsert:environment-variable", (e) => {
46
- const r = i(t, e.collectionType);
47
- O(r, e);
57
+ const r = p(t, e.collectionType);
58
+ q(r, e);
48
59
  }), a.on(
49
60
  "environment:delete:environment-variable",
50
- ({ environmentName: e, index: r, collectionType: l }) => i(t, l)?.["x-scalar-environments"]?.[e]?.variables?.splice(r, 1)
61
+ ({ environmentName: e, index: r, collectionType: n }) => p(t, n)?.["x-scalar-environments"]?.[e]?.variables?.splice(r, 1)
51
62
  ), a.on("cookie:upsert:cookie", (e) => {
52
- const r = i(t, e.collectionType);
53
- R(r, e);
63
+ const r = p(t, e.collectionType);
64
+ P(r, e);
54
65
  }), a.on("cookie:delete:cookie", (e) => {
55
- const r = i(t, e.collectionType);
56
- q(r, e);
57
- }), a.on("auth:delete:security-scheme", (e) => C(t.value, e)), a.on("auth:update:active-index", (e) => E(t.value, e)), a.on("auth:update:security-scheme", (e) => k(t.value, e)), a.on("auth:update:selected-scopes", (e) => P(t.value, e)), a.on(
66
+ const r = p(t, e.collectionType);
67
+ I(r, e);
68
+ }), a.on("auth:delete:security-scheme", (e) => M(t.value, e)), a.on("auth:update:active-index", (e) => k(t.value, e)), a.on("auth:update:security-scheme", (e) => A(t.value, e)), a.on("auth:update:selected-scopes", (e) => D(t.value, e)), a.on(
58
69
  "auth:update:selected-security-schemes",
59
- async (e) => await A(t.value, e)
60
- ), a.on("server:add:server", () => I(t.value)), a.on("server:update:server", (e) => F(t.value, e)), a.on("server:delete:server", (e) => M(t.value, e)), a.on("server:update:variables", (e) => N(t.value, e)), a.on("server:update:selected", (e) => V(t.value, e)), a.on("operation:create:operation", (e) => D(o.value, e)), a.on(
61
- "operation:update:method",
62
- (e) => K(t.value, o.value, e, (r) => {
63
- r && s.replace({
70
+ async (e) => await F(t.value, e)
71
+ ), a.on("server:add:server", () => U(t.value)), a.on("server:update:server", (e) => V(t.value, e)), a.on("server:delete:server", (e) => K(t.value, e)), a.on("server:update:variables", (e) => L(t.value, e)), a.on("server:update:selected", (e) => W(t.value, e)), a.on("operation:create:operation", (e) => j(o.value, e)), a.on(
72
+ "operation:update:pathMethod",
73
+ (e) => z(t.value, o.value, e, async (r) => {
74
+ r === "success" && (await m.replace({
64
75
  name: "example",
65
76
  params: {
66
77
  method: e.payload.method,
67
- pathEncoded: encodeURIComponent(e.meta.path),
68
- exampleName: e.meta.exampleKey
78
+ pathEncoded: encodeURIComponent(e.payload.path),
79
+ exampleName: i.params.exampleName
69
80
  }
70
- });
81
+ }), u(t.value?.["x-scalar-navigation"]?.id)), e.callback(r);
71
82
  })
72
- ), a.on("operation:update:path", (e) => L(t.value, e)), a.on("operation:update:summary", (e) => W(t.value, e)), a.on("operation:add:parameter", (e) => {
73
- j(t.value, e), p(e.meta);
83
+ ), a.on("operation:update:summary", (e) => G(t.value, e)), a.on("operation:delete:operation", (e) => {
84
+ H(o.value, e), u(e.documentName), h({
85
+ documentName: e.documentName,
86
+ path: e.meta.path,
87
+ method: e.meta.method
88
+ }) && m.replace({
89
+ name: "document.overview",
90
+ params: {
91
+ documentSlug: e.documentName
92
+ }
93
+ });
94
+ }), a.on("operation:delete:example", (e) => {
95
+ J(o.value, e), u(e.documentName), h({
96
+ documentName: e.documentName,
97
+ path: e.meta.path,
98
+ method: e.meta.method,
99
+ exampleName: e.meta.exampleKey
100
+ }) && m.replace({
101
+ name: "example",
102
+ params: {
103
+ pathEncoded: encodeURIComponent(e.meta.path),
104
+ method: e.meta.method,
105
+ documentSlug: e.documentName,
106
+ exampleName: "default"
107
+ }
108
+ });
109
+ }), a.on("operation:add:parameter", (e) => {
110
+ Q(t.value, e), c(e.meta);
74
111
  }), a.on("operation:update:parameter", (e) => {
75
- U(t.value, e), p(e.meta);
76
- }), a.on("operation:delete:parameter", (e) => z(t.value, e)), a.on("operation:delete-all:parameters", (e) => G(t.value, e)), a.on(
112
+ S(t.value, e), c(e.meta);
113
+ }), a.on("operation:delete:parameter", (e) => X(t.value, e)), a.on("operation:delete-all:parameters", (e) => Y(t.value, e)), a.on(
77
114
  "operation:update:requestBody:contentType",
78
- (e) => H(t.value, e)
115
+ (e) => Z(t.value, e)
79
116
  ), a.on("operation:update:requestBody:value", (e) => {
80
- J(t.value, e), p(e.meta);
117
+ _(t.value, e), c(e.meta);
81
118
  }), a.on("operation:add:requestBody:formRow", (e) => {
82
- Q(t.value, e), p(e.meta);
119
+ $(t.value, e), c(e.meta);
83
120
  }), a.on(
84
121
  "operation:update:requestBody:formRow",
85
- (e) => X(t.value, e)
122
+ (e) => B(t.value, e)
86
123
  ), a.on(
87
124
  "operation:delete:requestBody:formRow",
88
- (e) => Y(t.value, e)
89
- ), a.on("tag:create:tag", (e) => Z(o.value, e)), a.on("ui:toggle:sidebar", () => u.value = !u.value), a.on(
125
+ (e) => ee(t.value, e)
126
+ ), a.on("tag:create:tag", (e) => {
127
+ ae(o.value, e), u(e.documentName);
128
+ }), a.on("tag:delete:tag", (e) => {
129
+ te(o.value, e), u(e.documentName);
130
+ }), a.on("ui:toggle:sidebar", () => d.value = !d.value), a.on(
90
131
  "ui:open:command-palette",
91
132
  (e) => {
92
- e ? c.open(e.action, e.payload) : c.open();
133
+ e ? s.open(e.action, e.payload) : s.open();
93
134
  }
94
135
  ), a.on("tabs:add:tab", async (e) => {
95
- _(o.value?.workspace ?? null, e), await n();
136
+ oe(o.value?.workspace ?? null, e), await l();
96
137
  }), a.on("tabs:close:tab", async (e) => {
97
- $(o.value?.workspace ?? null, e), await n();
98
- }), a.on("tabs:close:other-tabs", (e) => S(o.value?.workspace ?? null, e)), a.on("tabs:focus:tab", async (e) => {
99
- B(o.value?.workspace ?? null, e), await n();
138
+ re(o.value?.workspace ?? null, e), await l();
139
+ }), a.on("tabs:close:other-tabs", (e) => ne(o.value?.workspace ?? null, e)), a.on("tabs:focus:tab", async (e) => {
140
+ le(o.value?.workspace ?? null, e), await l();
100
141
  }), a.on("tabs:focus:tab-last", async (e) => {
101
- ee(o.value?.workspace ?? null, e), await n();
142
+ ie(o.value?.workspace ?? null, e), await l();
102
143
  }), a.on("tabs:navigate:previous", async (e) => {
103
- ae(o.value?.workspace ?? null, e), await n();
144
+ ue(o.value?.workspace ?? null, e), await l();
104
145
  }), a.on("tabs:navigate:next", async (e) => {
105
- te(o.value?.workspace ?? null, e), await n();
146
+ me(o.value?.workspace ?? null, e), await l();
106
147
  }), a.on("tabs:update:tabs", async (e) => {
107
- oe(o.value?.workspace ?? null, e), await n();
148
+ pe(o.value?.workspace ?? null, e), await l();
108
149
  });
109
150
  };
110
151
  export {
111
- ue as useWorkspaceClientEvents
152
+ fe as useWorkspaceClientEvents
112
153
  };
@@ -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 = (o) => {
35
35
  o?.createNew && g.name === "request" && d();
36
- }, v = "2.14.1";
36
+ }, v = "2.15.0";
37
37
  return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (o, e) => (i(), l("div", W, [
38
38
  s("div", {
39
39
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.14.1",
21
+ "version": "2.15.0",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -322,25 +322,25 @@
322
322
  "yaml": "^2.8.0",
323
323
  "zod": "^4.1.11",
324
324
  "@scalar/analytics-client": "1.0.1",
325
- "@scalar/components": "0.16.7",
325
+ "@scalar/helpers": "0.2.2",
326
326
  "@scalar/draggable": "0.3.0",
327
- "@scalar/helpers": "0.2.1",
327
+ "@scalar/components": "0.16.8",
328
328
  "@scalar/icons": "0.5.0",
329
- "@scalar/import": "0.4.38",
330
- "@scalar/json-magic": "0.8.5",
331
- "@scalar/oas-utils": "0.6.7",
332
- "@scalar/object-utils": "1.2.15",
329
+ "@scalar/import": "0.4.39",
330
+ "@scalar/json-magic": "0.8.6",
331
+ "@scalar/object-utils": "1.2.16",
332
+ "@scalar/oas-utils": "0.6.8",
333
333
  "@scalar/openapi-types": "0.5.3",
334
- "@scalar/openapi-parser": "0.23.6",
335
- "@scalar/postman-to-openapi": "0.3.48",
336
- "@scalar/sidebar": "0.5.2",
334
+ "@scalar/postman-to-openapi": "0.3.49",
335
+ "@scalar/openapi-parser": "0.23.7",
336
+ "@scalar/sidebar": "0.6.0",
337
337
  "@scalar/snippetz": "0.5.5",
338
- "@scalar/themes": "0.13.25",
339
338
  "@scalar/types": "0.5.2",
339
+ "@scalar/use-codemirror": "0.13.2",
340
340
  "@scalar/use-hooks": "0.3.3",
341
- "@scalar/use-toasts": "0.9.1",
342
- "@scalar/workspace-store": "0.22.2",
343
- "@scalar/use-codemirror": "0.13.1"
341
+ "@scalar/themes": "0.13.26",
342
+ "@scalar/workspace-store": "0.23.0",
343
+ "@scalar/use-toasts": "0.9.1"
344
344
  },
345
345
  "devDependencies": {
346
346
  "@tailwindcss/vite": "^4.1.7",
@@ -355,8 +355,8 @@
355
355
  "vite": "7.1.11",
356
356
  "vite-svg-loader": "5.1.0",
357
357
  "vitest": "3.2.4",
358
- "@scalar/build-tooling": "0.3.1",
359
- "@scalar/galaxy": "0.5.12"
358
+ "@scalar/galaxy": "0.5.12",
359
+ "@scalar/build-tooling": "0.3.1"
360
360
  },
361
361
  "scripts": {
362
362
  "build": "scalar-build-vite",