@scalar/api-client 2.0.15 → 2.0.17

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 (124) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +46 -3
  3. package/dist/App/ApiClientApp.vue.d.ts +3 -0
  4. package/dist/App/ApiClientApp.vue.d.ts.map +1 -0
  5. package/dist/App/ApiClientApp.vue.js +56 -0
  6. package/dist/App/ApiClientApp.vue3.js +5 -0
  7. package/dist/App/createApiClientApp.d.ts +16 -0
  8. package/dist/App/createApiClientApp.d.ts.map +1 -0
  9. package/dist/App/createApiClientApp.js +62 -0
  10. package/dist/App/index.d.ts +3 -0
  11. package/dist/App/index.d.ts.map +1 -0
  12. package/dist/App/index.js +6 -0
  13. package/dist/App.vue.d.ts.map +1 -1
  14. package/dist/App.vue.js +49 -33
  15. package/dist/Modal/api-client-modal.d.ts +1 -1
  16. package/dist/Modal/api-client-modal.d.ts.map +1 -1
  17. package/dist/Modal/api-client-modal.js +7 -7
  18. package/dist/Modal/index.js +4 -4
  19. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  20. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  21. package/dist/components/AddressBar/AddressBar.vue2.js +2 -2
  22. package/dist/components/CodeInput/CodeInput.vue.d.ts +40 -4
  23. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  24. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  25. package/dist/components/CodeInput/CodeInput.vue2.js +87 -38
  26. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +17 -0
  27. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +1 -0
  28. package/dist/components/CommandPalette/CommandPalette.vue.js +7 -0
  29. package/dist/components/CommandPalette/CommandPalette.vue2.js +184 -0
  30. package/dist/components/{ActionModal/ActionModalImport.vue.d.ts → CommandPalette/CommandPaletteCollection.vue.d.ts} +1 -1
  31. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -0
  32. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +66 -0
  33. package/dist/components/CommandPalette/CommandPaletteCollection.vue2.js +4 -0
  34. package/dist/components/{ActionModal/ActionModalCollection.vue.d.ts → CommandPalette/CommandPaletteExample.vue.d.ts} +1 -1
  35. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -0
  36. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +107 -0
  37. package/dist/components/CommandPalette/CommandPaletteExample.vue2.js +4 -0
  38. package/dist/components/{ActionModal/ActionModalRequest.vue.d.ts → CommandPalette/CommandPaletteFolder.vue.d.ts} +1 -1
  39. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -0
  40. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +104 -0
  41. package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +4 -0
  42. package/dist/components/{ActionModal/ActionModalVariant.vue.d.ts → CommandPalette/CommandPaletteImport.vue.d.ts} +1 -1
  43. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -0
  44. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +86 -0
  45. package/dist/components/CommandPalette/CommandPaletteImport.vue2.js +4 -0
  46. package/dist/components/{ActionModal/ActionModalFolder.vue.d.ts → CommandPalette/CommandPaletteRequest.vue.d.ts} +1 -1
  47. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -0
  48. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +119 -0
  49. package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +4 -0
  50. package/dist/components/ContextBar.vue.js +5 -5
  51. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +6 -6
  52. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  53. package/dist/components/DataTable/DataTableCell.vue.js +4 -4
  54. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  55. package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
  56. package/dist/components/DataTable/{DataTableInputEnumSelect.vue.d.ts → DataTableInputSelect.vue.d.ts} +3 -3
  57. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -0
  58. package/dist/components/DataTable/DataTableInputSelect.vue.js +109 -0
  59. package/dist/components/DataTable/DataTableInputSelect.vue2.js +4 -0
  60. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  61. package/dist/components/SideNav/SideNavLink.vue.js +3 -3
  62. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  63. package/dist/components/TopNav/TopNav.vue.js +1 -1
  64. package/dist/components/TopNav/TopNav.vue2.js +26 -26
  65. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  66. package/dist/components/TopNav/TopNavItem.vue2.js +8 -8
  67. package/dist/hooks/index.d.ts +0 -1
  68. package/dist/hooks/index.d.ts.map +1 -1
  69. package/dist/hooks/index.js +6 -9
  70. package/dist/index.d.ts +1 -0
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +11 -6
  73. package/dist/router.d.ts +4 -1
  74. package/dist/router.d.ts.map +1 -1
  75. package/dist/store/workspace.d.ts +52 -2
  76. package/dist/store/workspace.d.ts.map +1 -1
  77. package/dist/store/workspace.js +74 -73
  78. package/dist/style.css +1 -1
  79. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  80. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +32 -31
  81. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  82. package/dist/views/Request/Request.vue.js +2 -2
  83. package/dist/views/Request/Request.vue2.js +68 -74
  84. package/dist/views/Request/RequestSection/RequestSection.vue.js +7 -7
  85. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  86. package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -5
  87. package/dist/views/Request/RequestSection/RequestTable.vue2.js +80 -63
  88. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  89. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  90. package/dist/views/Request/RequestSidebarItem.vue2.js +48 -48
  91. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  92. package/dist/views/Request/RequestSidebarItemMenu.vue.js +41 -68
  93. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  94. package/package.json +11 -6
  95. package/dist/assets/ascii/collection.ascii.js +0 -10
  96. package/dist/assets/ascii/folder.ascii.js +0 -10
  97. package/dist/assets/ascii/import.ascii.js +0 -10
  98. package/dist/assets/ascii/request.ascii.js +0 -10
  99. package/dist/assets/ascii/variant.ascii.js +0 -10
  100. package/dist/components/ActionModal/ActionModal.vue.d.ts +0 -21
  101. package/dist/components/ActionModal/ActionModal.vue.d.ts.map +0 -1
  102. package/dist/components/ActionModal/ActionModal.vue.js +0 -7
  103. package/dist/components/ActionModal/ActionModal.vue2.js +0 -117
  104. package/dist/components/ActionModal/ActionModalCollection.vue.d.ts.map +0 -1
  105. package/dist/components/ActionModal/ActionModalCollection.vue.js +0 -54
  106. package/dist/components/ActionModal/ActionModalCollection.vue2.js +0 -4
  107. package/dist/components/ActionModal/ActionModalFolder.vue.d.ts.map +0 -1
  108. package/dist/components/ActionModal/ActionModalFolder.vue.js +0 -92
  109. package/dist/components/ActionModal/ActionModalFolder.vue2.js +0 -4
  110. package/dist/components/ActionModal/ActionModalImport.vue.d.ts.map +0 -1
  111. package/dist/components/ActionModal/ActionModalImport.vue.js +0 -70
  112. package/dist/components/ActionModal/ActionModalImport.vue2.js +0 -4
  113. package/dist/components/ActionModal/ActionModalRequest.vue.d.ts.map +0 -1
  114. package/dist/components/ActionModal/ActionModalRequest.vue.js +0 -108
  115. package/dist/components/ActionModal/ActionModalRequest.vue2.js +0 -4
  116. package/dist/components/ActionModal/ActionModalVariant.vue.d.ts.map +0 -1
  117. package/dist/components/ActionModal/ActionModalVariant.vue.js +0 -93
  118. package/dist/components/ActionModal/ActionModalVariant.vue2.js +0 -4
  119. package/dist/components/DataTable/DataTableInputEnumSelect.vue.d.ts.map +0 -1
  120. package/dist/components/DataTable/DataTableInputEnumSelect.vue.js +0 -102
  121. package/dist/components/DataTable/DataTableInputEnumSelect.vue2.js +0 -4
  122. package/dist/hooks/useActionModal.d.ts +0 -16
  123. package/dist/hooks/useActionModal.d.ts.map +0 -1
  124. package/dist/hooks/useActionModal.js +0 -25
@@ -1,12 +1,12 @@
1
- import { defineComponent as _, openBlock as u, createBlock as r, unref as i, withCtx as d, createElementBlock as b, Fragment as y, renderList as F, createCommentVNode as m, createVNode as c, createSlots as x, createTextVNode as U, toDisplayString as w, createElementVNode as p, computed as I, pushScopeId as C, popScopeId as E } from "vue";
2
- import N from "../../../components/DataTable/DataTable.vue.js";
3
- import T from "../../../components/DataTable/DataTableCell.vue.js";
4
- import q from "../../../components/DataTable/DataTableCheckbox.vue.js";
5
- import V from "../../../components/DataTable/DataTableInput.vue.js";
1
+ import { defineComponent as F, openBlock as u, createBlock as d, unref as m, withCtx as r, createElementBlock as y, Fragment as w, renderList as I, createCommentVNode as c, createVNode as i, createSlots as C, createTextVNode as U, toDisplayString as V, createElementVNode as p, computed as x, pushScopeId as E, popScopeId as T } from "vue";
2
+ import k from "../../../components/CodeInput/CodeInput.vue.js";
3
+ import q from "../../../components/DataTable/DataTable.vue.js";
4
+ import f from "../../../components/DataTable/DataTableCell.vue.js";
5
+ import N from "../../../components/DataTable/DataTableCheckbox.vue.js";
6
6
  import D from "../../../components/DataTable/DataTableRow.vue.js";
7
7
  import { ScalarButton as H, ScalarIcon as z } from "@scalar/components";
8
8
  import A from "./RequestTableTooltip.vue.js";
9
- const M = (s) => (C("data-v-9b63a166"), s = s(), E(), s), O = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, j = ["onClick"], K = /* @__PURE__ */ M(() => /* @__PURE__ */ p("span", null, "File", -1)), Z = /* @__PURE__ */ _({
9
+ const M = (s) => (E("data-v-fe74a9ea"), s = s(), T(), s), O = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, j = ["onClick"], K = /* @__PURE__ */ M(() => /* @__PURE__ */ p("span", null, "File", -1)), Z = /* @__PURE__ */ F({
10
10
  __name: "RequestTable",
11
11
  props: {
12
12
  items: {},
@@ -14,12 +14,12 @@ const M = (s) => (C("data-v-9b63a166"), s = s(), E(), s), O = { class: "text-c-2
14
14
  showUploadButton: { type: Boolean, default: !1 }
15
15
  },
16
16
  emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
17
- setup(s, { emit: k }) {
18
- const g = s, t = k, h = g.isEnabledHidden ? ["", ""] : ["", "", "36px"], f = (e, n, l) => {
17
+ setup(s, { emit: g }) {
18
+ const h = s, t = g, B = h.isEnabledHidden ? ["", ""] : ["", "", "36px"], b = (e, n, l) => {
19
19
  t("updateRow", e, n, l);
20
- }, $ = (e) => {
20
+ }, _ = (e) => {
21
21
  t("uploadFile", e);
22
- }, B = (e) => !!(e.description || e.type || e.default || e.format), v = (e) => I(() => {
22
+ }, $ = (e) => !!(e.description || e.type || e.default || e.format), v = (e) => x(() => {
23
23
  if (e.type === "integer" && e.value !== void 0) {
24
24
  const n = Number(e.value);
25
25
  if (e.minimum !== void 0 && n < e.minimum)
@@ -29,83 +29,100 @@ const M = (s) => (C("data-v-9b63a166"), s = s(), E(), s), O = { class: "text-c-2
29
29
  }
30
30
  return !1;
31
31
  }), R = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
32
- return (e, n) => (u(), r(N, {
32
+ return (e, n) => (u(), d(q, {
33
33
  class: "flex-1",
34
- columns: i(h)
34
+ columns: m(B)
35
35
  }, {
36
- default: d(() => [
37
- (u(!0), b(y, null, F(e.items, (l, a) => (u(), r(D, { key: a }, {
38
- default: d(() => [
39
- e.isEnabledHidden ? m("", !0) : (u(), r(q, {
36
+ default: r(() => [
37
+ (u(!0), y(w, null, I(e.items, (l, a) => (u(), d(D, { key: a }, {
38
+ default: r(() => [
39
+ e.isEnabledHidden ? c("", !0) : (u(), d(N, {
40
40
  key: 0,
41
- modelValue: l.enabled,
41
+ modelValue: !!l.required,
42
42
  "onUpdate:modelValue": (o) => t("toggleRow", a, o)
43
43
  }, null, 8, ["modelValue", "onUpdate:modelValue"])),
44
- c(V, {
45
- modelValue: l.key,
46
- placeholder: "Key",
47
- required: l.required,
48
- onBlur: n[0] || (n[0] = (o) => t("inputBlur")),
49
- onFocus: n[1] || (n[1] = (o) => t("inputFocus")),
50
- onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
51
- onSelectVariable: (o) => f(a, "key", o),
52
- "onUpdate:modelValue": (o) => t("updateRow", a, "key", o)
53
- }, null, 8, ["modelValue", "required", "onInput", "onSelectVariable", "onUpdate:modelValue"]),
54
- c(V, {
55
- enum: l.enum,
56
- max: l.maximum,
57
- min: l.minimum,
58
- modelValue: l.value,
59
- placeholder: "Value",
60
- type: l.type === "integer" ? "number" : "text",
61
- onBlur: n[2] || (n[2] = (o) => t("inputBlur")),
62
- onFocus: n[3] || (n[3] = (o) => t("inputFocus")),
63
- onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
64
- onSelectVariable: (o) => f(a, "value", o),
65
- "onUpdate:modelValue": (o) => t("updateRow", a, "value", o)
66
- }, x({
67
- icon: d(() => [
68
- B(l) ? (u(), r(A, {
69
- key: 0,
70
- item: { ...l, default: R(l) }
71
- }, null, 8, ["item"])) : m("", !0)
44
+ i(f, null, {
45
+ default: r(() => [
46
+ i(k, {
47
+ disableCloseBrackets: "",
48
+ disableEnter: "",
49
+ disableTabIndent: "",
50
+ modelValue: l.key,
51
+ placeholder: "Key",
52
+ required: l.required,
53
+ onBlur: n[0] || (n[0] = (o) => t("inputBlur")),
54
+ onFocus: n[1] || (n[1] = (o) => t("inputFocus")),
55
+ onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
56
+ onSelectVariable: (o) => b(a, "key", o),
57
+ "onUpdate:modelValue": (o) => t("updateRow", a, "key", o)
58
+ }, null, 8, ["modelValue", "required", "onInput", "onSelectVariable", "onUpdate:modelValue"])
72
59
  ]),
73
60
  _: 2
74
- }, [
75
- v(l).value ? {
76
- name: "warning",
77
- fn: d(() => [
78
- U(w(v(l).value), 1)
79
- ]),
80
- key: "0"
81
- } : void 0
82
- ]), 1032, ["enum", "max", "min", "modelValue", "type", "onInput", "onSelectVariable", "onUpdate:modelValue"]),
83
- e.showUploadButton ? (u(), r(T, {
61
+ }, 1024),
62
+ i(f, null, {
63
+ default: r(() => [
64
+ i(k, {
65
+ disableCloseBrackets: "",
66
+ disableEnter: "",
67
+ disableTabIndent: "",
68
+ enum: l.enum,
69
+ max: l.maximum,
70
+ min: l.minimum,
71
+ modelValue: l.value,
72
+ nullable: l.nullable,
73
+ placeholder: "Value",
74
+ type: l.type,
75
+ onBlur: n[2] || (n[2] = (o) => t("inputBlur")),
76
+ onFocus: n[3] || (n[3] = (o) => t("inputFocus")),
77
+ onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
78
+ onSelectVariable: (o) => b(a, "value", o),
79
+ "onUpdate:modelValue": (o) => t("updateRow", a, "value", o)
80
+ }, C({
81
+ icon: r(() => [
82
+ $(l) ? (u(), d(A, {
83
+ key: 0,
84
+ item: { ...l, default: R(l) }
85
+ }, null, 8, ["item"])) : c("", !0)
86
+ ]),
87
+ _: 2
88
+ }, [
89
+ v(l).value ? {
90
+ name: "warning",
91
+ fn: r(() => [
92
+ U(V(v(l).value), 1)
93
+ ]),
94
+ key: "0"
95
+ } : void 0
96
+ ]), 1032, ["enum", "max", "min", "modelValue", "nullable", "type", "onInput", "onSelectVariable", "onUpdate:modelValue"])
97
+ ]),
98
+ _: 2
99
+ }, 1024),
100
+ e.showUploadButton ? (u(), d(f, {
84
101
  key: 1,
85
102
  class: "group/upload p-1 overflow-hidden relative text-ellipsis whitespace-nowrap"
86
103
  }, {
87
- default: d(() => {
104
+ default: r(() => {
88
105
  var o;
89
106
  return [
90
- l.file ? (u(), b(y, { key: 0 }, [
107
+ l.file ? (u(), y(w, { key: 0 }, [
91
108
  p("div", O, [
92
- p("span", null, w((o = l.file) == null ? void 0 : o.name), 1)
109
+ p("span", null, V((o = l.file) == null ? void 0 : o.name), 1)
93
110
  ]),
94
111
  p("button", {
95
112
  class: "absolute bg-b-2 font-medium centered-x centered-y hidden rounded text-center p-0.5 w-[calc(100%_-_8px)] group-hover/upload:block text-xs",
96
113
  type: "button",
97
114
  onClick: (S) => t("removeFile", a)
98
115
  }, " Delete ", 8, j)
99
- ], 64)) : (u(), r(i(H), {
116
+ ], 64)) : (u(), d(m(H), {
100
117
  key: 1,
101
118
  class: "bg-b-2 hover:bg-b-3 border-0 py-px text-c-2",
102
119
  size: "sm",
103
120
  variant: "outlined",
104
- onClick: (S) => $(a)
121
+ onClick: (S) => _(a)
105
122
  }, {
106
- default: d(() => [
123
+ default: r(() => [
107
124
  K,
108
- c(i(z), {
125
+ i(m(z), {
109
126
  class: "ml-1 stroke-[2.5]",
110
127
  icon: "UploadSimple",
111
128
  size: "xs"
@@ -116,7 +133,7 @@ const M = (s) => (C("data-v-9b63a166"), s = s(), E(), s), O = { class: "text-c-2
116
133
  ];
117
134
  }),
118
135
  _: 2
119
- }, 1024)) : m("", !0)
136
+ }, 1024)) : c("", !0)
120
137
  ]),
121
138
  _: 2
122
139
  }, 1024))), 128))
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAmOA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AA0GlD,iBAA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I,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b4b0220b"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-13538653"]]);
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as V, useCssVars as x, computed as l, resolveComponent as O, openBlock as o, createElementBlock as d, normalizeClass as p, unref as r, createVNode as u, withCtx as U, createBlock as f, createElementVNode as n, toDisplayString as y, createCommentVNode as b, createTextVNode as q, renderSlot as j, withDirectives as F, Fragment as L, renderList as T, vShow as K } from "vue";
2
- import { useWorkspace as W } from "../../store/workspace.js";
3
- import { ScalarIcon as A } from "@scalar/components";
4
- import { Draggable as G } from "@scalar/draggable";
5
- import { useRouter as H, RouterLink as J } from "vue-router";
6
- import M from "./RequestSidebarItemMenu.vue.js";
7
- import P from "../../components/HttpMethod/HttpMethod.vue.js";
8
- import { useSidebar as Q } from "../../hooks/useSidebar.js";
9
- const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y = { class: "relative" }, Z = { class: "flex" }, _ = { class: "z-10 mr-[-.5px] flex h-fit items-center justify-center" }, ee = { class: "z-10 font-medium" }, te = { key: 2 }, k = "hover:before:bg-sidebar-active-b before:absolute before:inset-0 before:rounded before-left-offset", pe = /* @__PURE__ */ V({
1
+ import { defineComponent as O, useCssVars as V, computed as l, resolveComponent as j, openBlock as n, createElementBlock as d, normalizeClass as p, unref as r, createVNode as m, withCtx as U, createBlock as f, createElementVNode as o, toDisplayString as y, createCommentVNode as b, createTextVNode as q, renderSlot as F, withDirectives as L, Fragment as T, renderList as K, vShow as W } from "vue";
2
+ import { useWorkspace as A } from "../../store/workspace.js";
3
+ import { ScalarIcon as G } from "@scalar/components";
4
+ import { Draggable as H } from "@scalar/draggable";
5
+ import { useRouter as J, RouterLink as M } from "vue-router";
6
+ import P from "./RequestSidebarItemMenu.vue.js";
7
+ import Q from "../../components/HttpMethod/HttpMethod.vue.js";
8
+ import { useSidebar as X } from "../../hooks/useSidebar.js";
9
+ const Y = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" }, Z = { class: "relative" }, _ = { class: "flex" }, ee = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, te = { class: "z-10 font-medium" }, re = { key: 2 }, w = "hover:bg-sidebar-active-b indent-padding-left", ue = /* @__PURE__ */ O({
10
10
  __name: "RequestSidebarItem",
11
11
  props: {
12
12
  isDraggable: { type: Boolean, default: !1 },
@@ -15,29 +15,30 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
15
15
  item: {}
16
16
  },
17
17
  emits: ["onDragEnd"],
18
- setup(w) {
19
- x((e) => ({
20
- "1aa238fc": R.value
18
+ setup(k) {
19
+ V((e) => ({
20
+ "3ec1394c": E.value,
21
+ "4a0da8f2": R.value
21
22
  }));
22
- const s = w, { activeRequest: g, folders: C, isReadOnly: a, requests: c, requestExamples: $ } = W(), { collapsedSidebarFolders: h, toggleSidebarFolder: S } = Q(), E = H(), v = l(() => "childUids" in s.item), R = l(() => s.parentUids.length ? a ? `-${(s.parentUids.length - 1) * 16}px` : `-${s.parentUids.length * 16}px` : "0px"), z = (e, t) => {
23
- e.metaKey ? window.open(`/request/${t}`, "_blank") : E.push(`/request/${t}`);
23
+ const i = k, { activeRequest: g, folders: $, isReadOnly: a, requests: c, requestExamples: C } = A(), { collapsedSidebarFolders: h, toggleSidebarFolder: S } = X(), x = J(), v = l(() => "childUids" in i.item), E = l(() => i.parentUids.length ? a.value ? `${(i.parentUids.length - 1) * 12}px` : `${i.parentUids.length * 12}px` : "12px"), R = l(() => i.parentUids.length ? a.value ? `${(i.parentUids.length - 1) * 12}px` : `${i.parentUids.length * 12}px` : "0px"), z = (e, t) => {
24
+ e.metaKey ? window.open(`/request/${t}`, "_blank") : x.push(`/request/${t}`);
24
25
  }, D = (e) => {
25
26
  var t;
26
27
  return "spec" in e ? (t = e.spec.info) == null ? void 0 : t.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
27
- }, I = l(() => ("requestUid" in s.item ? c[s.item.requestUid] : s.item).method), B = l(
28
+ }, I = l(() => ("requestUid" in i.item ? c[i.item.requestUid] : i.item).method), B = l(
28
29
  () => {
29
30
  var e;
30
- return h[s.item.uid] || ((e = g.value) == null ? void 0 : e.uid) === s.item.uid && s.item.childUids.length > 1;
31
+ return h[i.item.uid] || ((e = g.value) == null ? void 0 : e.uid) === i.item.uid && i.item.childUids.length > 1;
31
32
  }
32
33
  );
33
34
  return (e, t) => {
34
- const N = O("RequestSidebarItem", !0);
35
- return o(), d("div", {
35
+ const N = j("RequestSidebarItem", !0);
36
+ return n(), d("div", {
36
37
  class: p(["relative flex flex-row", [
37
- r(a) && e.parentUids.length > 1 || !r(a) && e.parentUids.length ? "before:bg-b-3 pl-4 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-px mb-[.5px] last:mb-0" : ""
38
+ r(a) && e.parentUids.length > 1 || !r(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-px mb-[.5px] last:mb-0 indent-border-line-offset" : ""
38
39
  ]])
39
40
  }, [
40
- u(r(G), {
41
+ m(r(H), {
41
42
  id: e.item.uid,
42
43
  ceiling: v.value ? 0.8 : 0.5,
43
44
  class: "flex flex-1 flex-col gap-[.5px] text-sm",
@@ -45,35 +46,34 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
45
46
  isDraggable: e.parentUids.length > 0 && e.isDraggable,
46
47
  isDroppable: e.isDroppable,
47
48
  parentIds: e.parentUids,
48
- onOnDragEnd: t[3] || (t[3] = (...i) => e.$emit("onDragEnd", ...i))
49
+ onOnDragEnd: t[3] || (t[3] = (...s) => e.$emit("onDragEnd", ...s))
49
50
  }, {
50
51
  default: U(() => [
51
- "summary" in e.item || "requestUid" in e.item ? (o(), f(r(J), {
52
+ "summary" in e.item || "requestUid" in e.item ? (n(), f(r(M), {
52
53
  key: 0,
53
54
  custom: "",
54
55
  to: `/request/${e.item.uid}`
55
56
  }, {
56
57
  default: U(() => {
57
- var i;
58
+ var s;
58
59
  return [
59
- n("div", {
60
+ o("div", {
60
61
  class: p(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover", [
61
- k,
62
- ((i = r(g)) == null ? void 0 : i.uid) === e.item.uid ? "before:bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2",
63
- (e.isDroppable, "pl-3")
62
+ w,
63
+ ((s = r(g)) == null ? void 0 : s.uid) === e.item.uid ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
64
64
  ]]),
65
65
  tabindex: "0",
66
- onClick: t[0] || (t[0] = (m) => z(m, e.item.uid))
66
+ onClick: t[0] || (t[0] = (u) => z(u, e.item.uid))
67
67
  }, [
68
- n("span", X, y(D(e.item)), 1),
69
- n("div", Y, [
70
- r(a) ? b("", !0) : (o(), f(M, {
68
+ o("span", Y, y(D(e.item)), 1),
69
+ o("div", Z, [
70
+ r(a) ? b("", !0) : (n(), f(P, {
71
71
  key: 0,
72
72
  item: e.item
73
73
  }, null, 8, ["item"])),
74
- n("span", Z, [
74
+ o("span", _, [
75
75
  q("   "),
76
- u(r(P), {
76
+ m(r(Q), {
77
77
  class: "font-bold",
78
78
  method: I.value
79
79
  }, null, 8, ["method"])
@@ -83,20 +83,20 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
83
83
  ];
84
84
  }),
85
85
  _: 1
86
- }, 8, ["to"])) : !r(a) || e.parentUids.length ? (o(), d("button", {
86
+ }, 8, ["to"])) : !r(a) || e.parentUids.length ? (n(), d("button", {
87
87
  key: 1,
88
- class: p(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", k]),
88
+ class: p(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", w]),
89
89
  type: "button",
90
- onClick: t[1] || (t[1] = (i) => r(S)(e.item.uid))
90
+ onClick: t[1] || (t[1] = (s) => r(S)(e.item.uid))
91
91
  }, [
92
- n("span", _, [
93
- j(e.$slots, "leftIcon", {}, () => [
94
- n("div", {
92
+ o("span", ee, [
93
+ F(e.$slots, "leftIcon", {}, () => [
94
+ o("div", {
95
95
  class: p({
96
96
  "rotate-90": r(h)[e.item.uid]
97
97
  })
98
98
  }, [
99
- u(r(A), {
99
+ m(r(G), {
100
100
  class: "text-c-3 text-sm",
101
101
  icon: "ChevronRight",
102
102
  size: "sm"
@@ -105,19 +105,19 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
105
105
  ], !0),
106
106
  q("   ")
107
107
  ]),
108
- n("span", ee, y(D(e.item)), 1)
108
+ o("span", te, y(D(e.item)), 1)
109
109
  ])) : b("", !0),
110
- "childUids" in e.item ? F((o(), d("div", te, [
111
- (o(!0), d(L, null, T(e.item.childUids, (i) => (o(), f(N, {
112
- key: i,
110
+ "childUids" in e.item ? L((n(), d("div", re, [
111
+ (n(!0), d(T, null, K(e.item.childUids, (s) => (n(), f(N, {
112
+ key: s,
113
113
  isDraggable: e.isDraggable,
114
114
  isDroppable: e.isDroppable,
115
- item: r(C)[i] || r(c)[i] || r($)[i],
115
+ item: r($)[s] || r(c)[s] || r(C)[s],
116
116
  parentUids: [...e.parentUids, e.item.uid],
117
- onOnDragEnd: t[2] || (t[2] = (...m) => e.$emit("onDragEnd", ...m))
117
+ onOnDragEnd: t[2] || (t[2] = (...u) => e.$emit("onDragEnd", ...u))
118
118
  }, null, 8, ["isDraggable", "isDroppable", "item", "parentUids"]))), 128))
119
119
  ], 512)), [
120
- [K, B.value]
120
+ [W, B.value]
121
121
  ]) : b("", !0)
122
122
  ]),
123
123
  _: 3
@@ -127,5 +127,5 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
127
127
  }
128
128
  });
129
129
  export {
130
- pe as default
130
+ ue as default
131
131
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],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EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,109 +1,82 @@
1
- import { defineComponent as y, computed as D, openBlock as p, createBlock as m, unref as t, withCtx as s, createVNode as e, createCommentVNode as b, withModifiers as z, createElementVNode as i } from "vue";
2
- import a from "../../components/ScalarHotkey.vue.js";
3
- import { useWorkspace as E } from "../../store/workspace.js";
4
- import { ScalarDropdown as I, ScalarDropdownItem as n, ScalarIcon as l, ScalarDropdownDivider as S, ScalarButton as v } from "@scalar/components";
5
- const w = /* @__PURE__ */ i("span", null, "Add Example", -1), C = /* @__PURE__ */ i("span", null, "Rename", -1), R = /* @__PURE__ */ i("span", null, "Duplicate", -1), q = /* @__PURE__ */ i("span", null, "Delete", -1), N = /* @__PURE__ */ y({
1
+ import { defineComponent as _, computed as h, openBlock as c, createBlock as m, unref as e, withCtx as s, createVNode as t, createCommentVNode as k, withModifiers as g, createElementVNode as a } from "vue";
2
+ import { useWorkspace as z } from "../../store/workspace.js";
3
+ import { ScalarDropdown as D, ScalarDropdownItem as o, ScalarIcon as i, ScalarDropdownDivider as E, ScalarButton as S } from "@scalar/components";
4
+ const v = /* @__PURE__ */ a("span", null, "Add Example", -1), w = /* @__PURE__ */ a("span", null, "Rename", -1), C = /* @__PURE__ */ a("span", null, "Duplicate", -1), b = /* @__PURE__ */ a("span", null, "Delete", -1), B = /* @__PURE__ */ _({
6
5
  __name: "RequestSidebarItemMenu",
7
6
  props: {
8
7
  item: {}
9
8
  },
10
- setup(u) {
11
- const o = u, { createExampleFromRequest: x, requestMutators: f } = E(), c = () => {
12
- if (!("summary" in o.item)) return;
13
- const r = x(o.item);
14
- f.edit(o.item.uid, "childUids", [
15
- ...o.item.childUids,
16
- r.uid
9
+ setup(d) {
10
+ const l = d, { createExampleFromRequest: u, requestMutators: p } = z(), f = () => {
11
+ if (!("summary" in l.item)) return;
12
+ const n = u(l.item);
13
+ p.edit(l.item.uid, "childUids", [
14
+ ...l.item.childUids,
15
+ n.uid
17
16
  ]);
18
- }, h = () => {
19
- console.log("rename");
20
- }, _ = () => {
21
- console.log("duplicate");
22
- }, g = () => {
23
- console.log("delete");
24
- }, k = D(() => "summary" in o.item);
25
- return (r, d) => (p(), m(t(I), { teleport: "#scalar-client" }, {
17
+ }, x = h(() => "summary" in l.item);
18
+ return (n, r) => (c(), m(e(D), { teleport: "#scalar-client" }, {
26
19
  items: s(() => [
27
- k.value ? (p(), m(t(n), {
20
+ x.value ? (c(), m(e(o), {
28
21
  key: 0,
29
22
  class: "flex !gap-2",
30
- onClick: c
23
+ onClick: f
31
24
  }, {
32
25
  default: s(() => [
33
- e(t(l), {
34
- class: "text-c-2 inline-flex p-px",
35
- icon: "Add",
36
- size: "xs"
26
+ t(e(i), {
27
+ class: "inline-flex !stroke-[1.5]",
28
+ icon: "AddLine",
29
+ size: "sm"
37
30
  }),
38
- w,
39
- e(a, {
40
- class: "absolute right-2 text-c-3",
41
- hotkey: "1",
42
- onHotkeyPressed: c
43
- })
31
+ v
44
32
  ]),
45
33
  _: 1
46
- })) : b("", !0),
47
- e(t(n), { class: "flex !gap-2" }, {
34
+ })) : k("", !0),
35
+ t(e(o), { class: "flex !gap-2" }, {
48
36
  default: s(() => [
49
- e(t(l), {
50
- class: "text-c-2 inline-flex p-px",
37
+ t(e(i), {
38
+ class: "inline-flex !stroke-[1.5]",
51
39
  icon: "Edit",
52
- size: "xs"
40
+ size: "sm"
53
41
  }),
54
- C,
55
- e(a, {
56
- class: "absolute right-2 text-c-3",
57
- hotkey: "2",
58
- onHotkeyPressed: h
59
- })
42
+ w
60
43
  ]),
61
44
  _: 1
62
45
  }),
63
- e(t(n), { class: "flex !gap-2" }, {
46
+ t(e(o), { class: "flex !gap-2" }, {
64
47
  default: s(() => [
65
- e(t(l), {
66
- class: "text-c-2 inline-flex p-px",
48
+ t(e(i), {
49
+ class: "inline-flex !stroke-[1.5]",
67
50
  icon: "Duplicate",
68
- size: "xs"
51
+ size: "sm"
69
52
  }),
70
- R,
71
- e(a, {
72
- class: "absolute right-2 text-c-3",
73
- hotkey: "3",
74
- onHotkeyPressed: _
75
- })
53
+ C
76
54
  ]),
77
55
  _: 1
78
56
  }),
79
- e(t(S)),
80
- e(t(n), { class: "flex !gap-2" }, {
57
+ t(e(E)),
58
+ t(e(o), { class: "flex !gap-2" }, {
81
59
  default: s(() => [
82
- e(t(l), {
83
- class: "text-c-2 inline-flex p-px",
60
+ t(e(i), {
61
+ class: "inline-flex !stroke-[1.5]",
84
62
  icon: "Trash",
85
- size: "xs"
63
+ size: "sm"
86
64
  }),
87
- q,
88
- e(a, {
89
- class: "absolute right-2 text-c-3",
90
- hotkey: "4",
91
- onHotkeyPressed: g
92
- })
65
+ b
93
66
  ]),
94
67
  _: 1
95
68
  })
96
69
  ]),
97
70
  default: s(() => [
98
- e(t(v), {
71
+ t(e(S), {
99
72
  class: "z-10 hover:bg-b-3 transition-none p-1 group-hover:flex ui-open:flex absolute left-0 hidden -translate-x-full -ml-1",
100
73
  size: "sm",
101
74
  variant: "ghost",
102
- onClick: d[0] || (d[0] = z(() => {
75
+ onClick: r[0] || (r[0] = g(() => {
103
76
  }, ["stop"]))
104
77
  }, {
105
78
  default: s(() => [
106
- e(t(l), {
79
+ t(e(i), {
107
80
  icon: "Ellipses",
108
81
  size: "sm"
109
82
  })
@@ -116,5 +89,5 @@ const w = /* @__PURE__ */ i("span", null, "Add Example", -1), C = /* @__PURE__ *
116
89
  }
117
90
  });
118
91
  export {
119
- N as default
92
+ B as default
120
93
  };
@@ -43,9 +43,9 @@ const E = { class: "flex items-center flex-1" }, H = { class: "custom-scroll fle
43
43
  return (e, o) => (r(), n(g, null, {
44
44
  title: u(() => [
45
45
  p(S(R), {
46
- class: "text-c-3 mr-1.5 rotate-180 stroke-2",
46
+ class: "text-c-3 mr-2 rotate-180 stroke-[2]",
47
47
  icon: "ExternalLink",
48
- size: "md"
48
+ size: "sm"
49
49
  }),
50
50
  f("div", E, [
51
51
  C(" Response "),
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.0.15",
21
+ "version": "2.0.17",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -81,6 +81,10 @@
81
81
  "import": "./dist/Modal/index.js",
82
82
  "types": "./dist/Modal/index.d.ts"
83
83
  },
84
+ "./App": {
85
+ "import": "./dist/App/index.js",
86
+ "types": "./dist/App/index.d.ts"
87
+ },
84
88
  "./css/*.css": {
85
89
  "import": "./dist/css/*.css",
86
90
  "require": "./dist/css/*.css"
@@ -110,14 +114,14 @@
110
114
  "vue": "^3.4.22",
111
115
  "vue-router": "^4.3.0",
112
116
  "zod": "^3.22.4",
113
- "@scalar/components": "0.12.12",
117
+ "@scalar/components": "0.12.13",
114
118
  "@scalar/draggable": "0.1.3",
115
- "@scalar/oas-utils": "0.2.13",
116
119
  "@scalar/object-utils": "1.1.4",
117
120
  "@scalar/themes": "0.9.13",
121
+ "@scalar/use-codemirror": "0.11.6",
122
+ "@scalar/oas-utils": "0.2.13",
118
123
  "@scalar/use-toasts": "0.7.4",
119
- "@scalar/use-tooltip": "1.0.2",
120
- "@scalar/use-codemirror": "0.11.5"
124
+ "@scalar/use-tooltip": "1.0.2"
121
125
  },
122
126
  "devDependencies": {
123
127
  "@types/content-type": "^1.1.8",
@@ -139,9 +143,10 @@
139
143
  "scripts": {
140
144
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
141
145
  "dev": "vite",
142
- "dev:modal": "vite ./playground -c ./vite.config.ts",
143
146
  "lint:check": "eslint .",
144
147
  "lint:fix": "eslint . --fix",
148
+ "playground:app": "vite ./playground/app -c ./vite.config.ts",
149
+ "playground:modal": "vite ./playground/modal -c ./vite.config.ts",
145
150
  "preview": "vite preview",
146
151
  "test": "vitest",
147
152
  "types:build": "vue-tsc -p tsconfig.build.json",