@scalar/api-client 2.10.0 → 2.11.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 (156) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  3. package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
  4. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  5. package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
  6. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  7. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  8. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
  9. package/dist/hooks/useClientConfig.d.ts +3 -3
  10. package/dist/layouts/App/create-api-client-app.d.ts +1 -1
  11. package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
  12. package/dist/libs/create-client.d.ts +1 -1
  13. package/dist/store/store.d.ts +1 -1
  14. package/dist/style.css +1 -1
  15. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -6
  16. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  17. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +24 -27
  18. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +3 -6
  19. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  21. package/dist/v2/blocks/operation-block/components/Header.vue2.js +10 -12
  22. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
  23. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
  24. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -5
  25. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  26. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  27. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +45 -47
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -9
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -179
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +11 -6
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  35. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
  36. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -85
  37. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
  38. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +133 -142
  41. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
  42. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  43. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
  44. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +2 -16
  45. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  46. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  47. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +202 -229
  48. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +3 -5
  49. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
  50. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  51. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +81 -85
  52. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +2 -5
  53. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
  54. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +32 -34
  55. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +2 -5
  56. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
  57. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +2 -2
  58. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +31 -33
  59. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +2 -5
  60. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
  61. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +42 -45
  62. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +2 -2
  63. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -1
  64. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +9 -9
  65. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -1
  66. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +2 -2
  67. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +18 -18
  68. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
  69. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +14 -14
  70. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
  71. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +12 -12
  72. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -1
  73. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +13 -13
  74. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
  75. package/dist/v2/components/data-table/DataTable.vue.js +4 -4
  76. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
  77. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  78. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
  79. package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
  80. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
  81. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
  82. package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
  83. package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
  84. package/dist/v2/components/forms/index.d.ts +2 -0
  85. package/dist/v2/components/forms/index.d.ts.map +1 -0
  86. package/dist/v2/components/forms/index.js +4 -0
  87. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
  88. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
  89. package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
  90. package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
  91. package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
  92. package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
  93. package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
  94. package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
  95. package/dist/v2/components/layout/index.d.ts +2 -0
  96. package/dist/v2/components/layout/index.d.ts.map +1 -0
  97. package/dist/v2/components/layout/index.js +4 -0
  98. package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
  99. package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
  100. package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
  101. package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
  102. package/dist/v2/components/modals/index.d.ts +2 -0
  103. package/dist/v2/components/modals/index.d.ts.map +1 -0
  104. package/dist/v2/components/modals/index.js +4 -0
  105. package/dist/v2/components/server/ServerDropdown.vue.d.ts +4 -2
  106. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  107. package/dist/v2/components/server/ServerDropdown.vue.js +31 -31
  108. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -6
  109. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  110. package/dist/v2/components/server/ServerDropdownItem.vue.js +1 -1
  111. package/dist/v2/components/server/ServerDropdownItem.vue2.js +16 -16
  112. package/dist/v2/components/server/index.d.ts.map +1 -1
  113. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +6 -2
  114. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  115. package/dist/v2/components/sidebar/Sidebar.vue.js +45 -55
  116. package/dist/v2/features/app/App.vue.d.ts +2 -2
  117. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  118. package/dist/v2/features/app/App.vue.js +89 -74
  119. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -2
  120. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  121. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  122. package/dist/v2/features/app/components/AppSidebar.vue2.js +50 -47
  123. package/dist/v2/features/app/helpers/routes.d.ts +0 -10
  124. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  125. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  126. package/dist/v2/features/collection/DocumentCollection.vue2.js +75 -73
  127. package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -25
  128. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  129. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  130. package/dist/v2/features/collection/components/Authentication.vue2.js +47 -35
  131. package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
  132. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
  133. package/dist/v2/features/collection/components/Form.vue.js +28 -33
  134. package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
  135. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  136. package/dist/v2/features/collection/components/Servers.vue2.js +103 -82
  137. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
  138. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
  139. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  140. package/dist/v2/features/modal/Modal.vue.js +3 -3
  141. package/dist/v2/features/modal/Modal.vue2.js +40 -32
  142. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  143. package/dist/v2/features/operation/Operation.vue.js +22 -28
  144. package/dist/v2/hooks/use-sidebar-state.d.ts +47 -0
  145. package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
  146. package/dist/v2/hooks/use-sidebar-state.js +112 -0
  147. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  148. package/dist/v2/hooks/use-workspace-client-events.js +75 -107
  149. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  150. package/package.json +17 -17
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
  155. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
  156. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as O, computed as m, createBlock as v, openBlock as u, withCtx as i, createVNode as d, unref as l, createElementVNode as f, toDisplayString as c, createElementBlock as w, Fragment as D, createTextVNode as g } from "vue";
2
- import { ScalarListbox as S, ScalarButton as b, ScalarIcon as V } from "@scalar/components";
3
- import { unpackProxyObject as k } from "@scalar/workspace-store/helpers/unpack-proxy";
4
- import q from "../../../../components/CodeInput/CodeInput.vue.js";
5
- import A from "../../../../components/DataTable/DataTable.vue.js";
6
- import E from "../../../../components/DataTable/DataTableHeader.vue.js";
7
- import L from "../../../../components/DataTable/DataTableRow.vue.js";
8
- import M from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
9
- import B from "./OperationTable.vue.js";
10
- import { getFileName as F } from "../helpers/files.js";
11
- import { getExampleFromBody as z } from "../helpers/get-request-body-example.js";
1
+ import { defineComponent as O, computed as s, createBlock as v, openBlock as i, unref as n, withCtx as u, createVNode as d, createElementVNode as f, toDisplayString as c, createElementBlock as w, Fragment as D, createTextVNode as g } from "vue";
2
+ import { ScalarListbox as S, ScalarButton as x, ScalarIcon as k } from "@scalar/components";
3
+ import { unpackProxyObject as B } from "@scalar/workspace-store/helpers/unpack-proxy";
4
+ import F from "./OperationTable.vue.js";
5
+ import { getFileName as N } from "../helpers/files.js";
6
+ import { getExampleFromBody as q } from "../helpers/get-request-body-example.js";
7
+ import A from "../../../components/layout/CollapsibleSection.vue.js";
8
+ import E from "../../../components/data-table/DataTable.vue.js";
9
+ import L from "../../../components/data-table/DataTableHeader.vue.js";
10
+ import M from "../../../components/data-table/DataTableRow.vue.js";
11
+ import z from "../../../components/code-input/CodeInput.vue.js";
12
12
  import { useFileDialog as $ } from "../../../../hooks/useFileDialog.js";
13
13
  const K = {
14
14
  key: 0,
@@ -22,12 +22,11 @@ const K = {
22
22
  requestBody: {},
23
23
  exampleKey: {},
24
24
  title: {},
25
- environment: {},
26
- envVariables: {}
25
+ environment: {}
27
26
  },
28
27
  emits: ["update:contentType", "update:value", "add:formRow", "update:formRow", "delete:fromRow"],
29
- setup(s, { emit: N }) {
30
- const a = N, U = {
28
+ setup(m, { emit: U }) {
29
+ const a = U, V = {
31
30
  "application/json": "json",
32
31
  "application/xml": "xml",
33
32
  "application/yaml": "yaml"
@@ -41,63 +40,63 @@ const K = {
41
40
  "application/edn": "EDN",
42
41
  other: "Other",
43
42
  none: "None"
44
- }, o = m(() => s.requestBody?.["x-scalar-selected-content-type"]?.[s.exampleKey] ?? Object.keys(s.requestBody?.content ?? {})[0] ?? "other"), y = Object.entries(j).map(([n, e]) => ({
45
- id: n,
43
+ }, o = s(() => m.requestBody?.["x-scalar-selected-content-type"]?.[m.exampleKey] ?? Object.keys(m.requestBody?.content ?? {})[0] ?? "other"), y = Object.entries(j).map(([l, e]) => ({
44
+ id: l,
46
45
  label: e
47
- })), x = m({
46
+ })), b = s({
48
47
  get: () => y.find(
49
48
  (e) => e.id === o.value
50
49
  ) ?? y.at(-1),
51
- set: (n) => {
52
- a("update:contentType", { value: n.id });
50
+ set: (l) => {
51
+ a("update:contentType", { value: l.id });
53
52
  }
54
53
  });
55
- function T(n) {
54
+ function T(l) {
56
55
  const { open: e } = $({
57
56
  onChange: (t) => {
58
57
  const r = t?.[0];
59
- r && n(r);
58
+ r && l(r);
60
59
  },
61
60
  multiple: !1,
62
61
  accept: "*/*"
63
62
  });
64
63
  e();
65
64
  }
66
- const p = m(
67
- () => s.requestBody && z(s.requestBody, o.value, s.exampleKey)
68
- ), C = m(() => {
65
+ const p = s(
66
+ () => m.requestBody && q(m.requestBody, o.value, m.exampleKey)
67
+ ), C = s(() => {
69
68
  if (!p.value)
70
69
  return "";
71
- const n = p.value.value;
72
- return typeof n == "string" ? n : JSON.stringify(n, null, 2);
73
- }), R = m(() => p.value ? Array.isArray(p.value.value) ? p.value.value : [] : []);
74
- return (n, e) => (u(), v(M, null, {
75
- title: i(() => [
76
- g(c(n.title), 1)
70
+ const l = p.value.value;
71
+ return typeof l == "string" ? l : JSON.stringify(l, null, 2);
72
+ }), R = s(() => p.value ? Array.isArray(p.value.value) ? p.value.value : [] : []);
73
+ return (l, e) => (i(), v(n(A), null, {
74
+ title: u(() => [
75
+ g(c(l.title), 1)
77
76
  ]),
78
- default: i(() => [
79
- d(A, {
77
+ default: u(() => [
78
+ d(n(E), {
80
79
  columns: [""],
81
80
  presentational: ""
82
81
  }, {
83
- default: i(() => [
84
- d(E, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
85
- default: i(() => [
86
- d(l(S), {
87
- modelValue: x.value,
88
- "onUpdate:modelValue": e[0] || (e[0] = (t) => x.value = t),
89
- options: l(y),
82
+ default: u(() => [
83
+ d(n(L), { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
84
+ default: u(() => [
85
+ d(n(S), {
86
+ modelValue: b.value,
87
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => b.value = t),
88
+ options: n(y),
90
89
  teleport: ""
91
90
  }, {
92
- default: i(() => [
93
- d(l(b), {
91
+ default: u(() => [
92
+ d(n(x), {
94
93
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
95
94
  fullWidth: "",
96
95
  variant: "ghost"
97
96
  }, {
98
- default: i(() => [
97
+ default: u(() => [
99
98
  f("span", null, c(o.value), 1),
100
- d(l(V), {
99
+ d(n(k), {
101
100
  icon: "ChevronDown",
102
101
  size: "md"
103
102
  })
@@ -110,14 +109,14 @@ const K = {
110
109
  ]),
111
110
  _: 1
112
111
  }),
113
- d(L, null, {
114
- default: i(() => [
115
- o.value === "none" ? (u(), w("div", K, [...e[12] || (e[12] = [
112
+ d(n(M), null, {
113
+ default: u(() => [
114
+ o.value === "none" ? (i(), w("div", K, [...e[12] || (e[12] = [
116
115
  f("span", null, "No Body", -1)
117
- ])])) : o.value === "application/octet-stream" ? (u(), w("div", I, [
118
- l(F)(l(k)(p.value?.value)) !== void 0 ? (u(), w(D, { key: 0 }, [
119
- f("span", J, c(l(F)(l(k)(p.value?.value))), 1),
120
- d(l(b), {
116
+ ])])) : o.value === "application/octet-stream" ? (i(), w("div", I, [
117
+ n(N)(n(B)(p.value?.value)) !== void 0 ? (i(), w(D, { key: 0 }, [
118
+ f("span", J, c(n(N)(n(B)(p.value?.value))), 1),
119
+ d(n(x), {
121
120
  class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
122
121
  size: "sm",
123
122
  variant: "outlined",
@@ -126,12 +125,12 @@ const K = {
126
125
  contentType: o.value
127
126
  }))
128
127
  }, {
129
- default: i(() => [...e[13] || (e[13] = [
128
+ default: u(() => [...e[13] || (e[13] = [
130
129
  g(" Delete ", -1)
131
130
  ])]),
132
131
  _: 1
133
132
  })
134
- ], 64)) : (u(), v(l(b), {
133
+ ], 64)) : (i(), v(n(x), {
135
134
  key: 1,
136
135
  class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",
137
136
  size: "sm",
@@ -143,9 +142,9 @@ const K = {
143
142
  })
144
143
  ))
145
144
  }, {
146
- default: i(() => [
145
+ default: u(() => [
147
146
  e[14] || (e[14] = f("span", null, "Upload File", -1)),
148
- d(l(V), {
147
+ d(n(k), {
149
148
  class: "ml-1",
150
149
  icon: "Upload",
151
150
  size: "xs",
@@ -154,22 +153,32 @@ const K = {
154
153
  ]),
155
154
  _: 1
156
155
  }))
157
- ])) : o.value === "multipart/form-data" ? (u(), v(B, {
156
+ ])) : o.value === "multipart/form-data" ? (i(), v(F, {
158
157
  key: 2,
159
158
  data: R.value,
160
- envVariables: n.envVariables,
161
- environment: n.environment,
159
+ environment: l.environment,
162
160
  showUploadButton: "",
163
161
  onAddRow: e[3] || (e[3] = (t) => a("add:formRow", {
164
162
  data: t,
165
163
  contentType: o.value
166
164
  })),
167
- onUpdateRow: e[4] || (e[4] = (t, r) => a("update:formRow", {
165
+ onDeleteRow: e[4] || (e[4] = (t) => a("delete:fromRow", {
166
+ contentType: o.value,
167
+ index: t
168
+ })),
169
+ onRemoveFile: e[5] || (e[5] = (t) => a("update:formRow", {
170
+ contentType: o.value,
171
+ index: t,
172
+ data: {
173
+ value: null
174
+ }
175
+ })),
176
+ onUpdateRow: e[6] || (e[6] = (t, r) => a("update:formRow", {
168
177
  index: t,
169
178
  data: r,
170
179
  contentType: o.value
171
180
  })),
172
- onUploadFile: e[5] || (e[5] = (t) => T((r) => {
181
+ onUploadFile: e[7] || (e[7] = (t) => T((r) => {
173
182
  if (t !== void 0)
174
183
  return a("update:formRow", {
175
184
  index: t,
@@ -180,43 +189,30 @@ const K = {
180
189
  data: { value: r ?? void 0 },
181
190
  contentType: o.value
182
191
  });
183
- })),
184
- onRemoveFile: e[6] || (e[6] = (t) => a("update:formRow", {
185
- contentType: o.value,
186
- index: t,
187
- data: {
188
- value: null
189
- }
190
- })),
191
- onDeleteRow: e[7] || (e[7] = (t) => a("delete:fromRow", {
192
- contentType: o.value,
193
- index: t
194
192
  }))
195
- }, null, 8, ["data", "envVariables", "environment"])) : o.value === "application/x-www-form-urlencoded" ? (u(), v(B, {
193
+ }, null, 8, ["data", "environment"])) : o.value === "application/x-www-form-urlencoded" ? (i(), v(F, {
196
194
  key: 3,
197
195
  data: R.value,
196
+ environment: l.environment,
198
197
  onAddRow: e[8] || (e[8] = (t) => a("add:formRow", {
199
198
  data: t,
200
199
  contentType: o.value
201
200
  })),
202
- onUpdateRow: e[9] || (e[9] = (t, r) => a("update:formRow", {
203
- index: t,
204
- data: r,
205
- contentType: o.value
206
- })),
207
- onDeleteRow: e[10] || (e[10] = (t) => a("delete:fromRow", {
201
+ onDeleteRow: e[9] || (e[9] = (t) => a("delete:fromRow", {
208
202
  contentType: o.value,
209
203
  index: t
210
204
  })),
211
- envVariables: n.envVariables,
212
- environment: n.environment
213
- }, null, 8, ["data", "envVariables", "environment"])) : (u(), v(q, {
205
+ onUpdateRow: e[10] || (e[10] = (t, r) => a("update:formRow", {
206
+ index: t,
207
+ data: r,
208
+ contentType: o.value
209
+ }))
210
+ }, null, 8, ["data", "environment"])) : (i(), v(n(z), {
214
211
  key: 4,
215
212
  class: "border-t px-3",
216
213
  content: "",
217
- envVariables: n.envVariables,
218
- environment: n.environment,
219
- language: U[o.value] ?? "plaintext",
214
+ environment: l.environment,
215
+ language: V[o.value] ?? "plaintext",
220
216
  lineNumbers: "",
221
217
  lint: "",
222
218
  modelValue: C.value,
@@ -224,7 +220,7 @@ const K = {
224
220
  value: t,
225
221
  contentType: o.value
226
222
  }))
227
- }, null, 8, ["envVariables", "environment", "language", "modelValue"]))
223
+ }, null, 8, ["environment", "language", "modelValue"]))
228
224
  ]),
229
225
  _: 1
230
226
  })
@@ -1,6 +1,5 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
1
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
2
2
  import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
- import type { EnvVariable } from '../../../../store/active-entities.js';
4
3
  type __VLS_Props = {
5
4
  parameters: ParameterObject[];
6
5
  exampleKey: string;
@@ -9,9 +8,7 @@ type __VLS_Props = {
9
8
  invalidParams?: Set<string>;
10
9
  globalRoute?: string;
11
10
  showAddRowPlaceholder?: boolean;
12
- /** TODO: remove as soon as we migrate to everything to the new store */
13
- environment: Environment;
14
- envVariables: EnvVariable[];
11
+ environment: XScalarEnvironment;
15
12
  };
16
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
14
  delete: (payload: {
@@ -1 +1 @@
1
- {"version":3,"file":"OperationParams.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationParams.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAInG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAM1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,wEAAwE;IACxE,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;eAoBgC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC;;;;;eAGxC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC;;;;AAsL1E,wBAOG"}
1
+ {"version":3,"file":"OperationParams.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationParams.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AASnG,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;eAmBgC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC;;;;;eAGxC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC;;;;AAqL1E,wBAOG"}
@@ -1,10 +1,10 @@
1
- import { defineComponent as c, computed as n, createBlock as s, openBlock as i, withCtx as l, createVNode as m, createElementVNode as d, createCommentVNode as g, unref as p, withModifiers as h, createTextVNode as u, toDisplayString as f } from "vue";
1
+ import { defineComponent as R, computed as s, createBlock as i, openBlock as m, unref as n, withCtx as o, createVNode as d, createElementVNode as p, createCommentVNode as g, withModifiers as h, createTextVNode as u, toDisplayString as f } from "vue";
2
2
  import { ScalarTooltip as y, ScalarButton as P } from "@scalar/components";
3
- import A from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
- import C from "./OperationTable.vue.js";
5
- import { getParameterExample as V } from "../helpers/get-parameter-example.js";
3
+ import A from "./OperationTable.vue.js";
4
+ import { getParameterExample as C } from "../helpers/get-parameter-example.js";
6
5
  import { getParameterSchema as x } from "../helpers/get-parameter-schema.js";
7
- const K = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100" }, k = { class: "sr-only" }, E = /* @__PURE__ */ c({
6
+ import K from "../../../components/layout/CollapsibleSection.vue.js";
7
+ const k = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100" }, B = { class: "sr-only" }, E = /* @__PURE__ */ R({
8
8
  __name: "OperationParams",
9
9
  props: {
10
10
  parameters: {},
@@ -14,48 +14,47 @@ const K = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
14
14
  invalidParams: {},
15
15
  globalRoute: {},
16
16
  showAddRowPlaceholder: { type: Boolean, default: !0 },
17
- environment: {},
18
- envVariables: {}
17
+ environment: {}
19
18
  },
20
19
  emits: ["add", "update", "delete", "deleteAll"],
21
- setup(o, { emit: v }) {
22
- const r = v, b = n(
23
- () => o.parameters.map((e) => {
24
- const a = V(e, o.exampleKey);
20
+ setup(l, { emit: v }) {
21
+ const r = v, w = s(
22
+ () => l.parameters.map((e) => {
23
+ const t = C(e, l.exampleKey);
25
24
  return {
26
25
  name: e.name,
27
- value: a?.value ?? "",
28
- globalRoute: o.globalRoute,
26
+ value: t?.value ?? "",
27
+ globalRoute: l.globalRoute,
29
28
  schema: x(e),
30
29
  isRequired: e.required,
31
- isDisabled: a?.["x-disabled"] ?? !1
30
+ isDisabled: t?.["x-disabled"] ?? !1
32
31
  };
33
32
  })
34
- ), w = n(() => o.parameters.length > 1);
35
- return (e, a) => (i(), s(A, {
33
+ ), b = s(() => l.parameters.length > 1);
34
+ return (e, t) => (m(), i(n(K), {
36
35
  class: "group/params",
37
36
  itemCount: e.parameters.length
38
37
  }, {
39
- title: l(() => [
38
+ title: o(() => [
40
39
  u(f(e.title), 1)
41
40
  ]),
42
- actions: l(() => [
43
- d("div", K, [
44
- w.value ? (i(), s(p(y), {
41
+ actions: o(() => [
42
+ p("div", k, [
43
+ b.value ? (m(), i(n(y), {
45
44
  key: 0,
46
45
  content: "Clear optional parameters",
47
46
  placement: "left"
48
47
  }, {
49
- default: l(() => [
50
- m(p(P), {
48
+ default: o(() => [
49
+ d(n(P), {
51
50
  class: "pr-0.75 pl-1 transition-none",
52
51
  size: "sm",
53
52
  variant: "ghost",
54
- onClick: a[0] || (a[0] = h((t) => r("deleteAll"), ["stop"]))
53
+ onClick: t[0] || (t[0] = h((a) => r("deleteAll"), ["stop"]))
55
54
  }, {
56
- default: l(() => [
57
- a[4] || (a[4] = u(" Clear ", -1)),
58
- d("span", k, "All " + f(e.title), 1)
55
+ default: o(() => [
56
+ t[4] || (t[4] = u(" Clear ", -1)),
57
+ p("span", B, "All " + f(e.title), 1)
59
58
  ]),
60
59
  _: 1
61
60
  })
@@ -64,22 +63,21 @@ const K = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
64
63
  })) : g("", !0)
65
64
  ])
66
65
  ]),
67
- default: l(() => [
68
- m(C, {
66
+ default: o(() => [
67
+ d(A, {
69
68
  class: "flex-1",
70
69
  columns: ["32px", "", ""],
71
- data: b.value,
72
- envVariables: e.envVariables,
70
+ data: w.value,
73
71
  environment: e.environment,
74
72
  exampleKey: e.exampleKey,
75
73
  globalRoute: e.globalRoute,
76
74
  invalidParams: e.invalidParams,
77
75
  label: e.label,
78
76
  showAddRowPlaceholder: e.showAddRowPlaceholder,
79
- onAddRow: a[1] || (a[1] = (t) => r("add", t)),
80
- onDeleteRow: a[2] || (a[2] = (t) => r("delete", { index: t })),
81
- onUpdateRow: a[3] || (a[3] = (t, R) => r("update", { index: t, payload: R }))
82
- }, null, 8, ["data", "envVariables", "environment", "exampleKey", "globalRoute", "invalidParams", "label", "showAddRowPlaceholder"])
77
+ onAddRow: t[1] || (t[1] = (a) => r("add", a)),
78
+ onDeleteRow: t[2] || (t[2] = (a) => r("delete", { index: a })),
79
+ onUpdateRow: t[3] || (t[3] = (a, c) => r("update", { index: a, payload: c }))
80
+ }, null, 8, ["data", "environment", "exampleKey", "globalRoute", "invalidParams", "label", "showAddRowPlaceholder"])
83
81
  ]),
84
82
  _: 1
85
83
  }, 8, ["itemCount"]));
@@ -1,5 +1,4 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
2
- import type { EnvVariable } from '../../../../store/active-entities.js';
1
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
3
2
  import { type TableRow } from '../../../../v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js';
4
3
  type __VLS_Props = {
5
4
  data: TableRow[];
@@ -10,9 +9,7 @@ type __VLS_Props = {
10
9
  label?: string;
11
10
  showUploadButton?: boolean;
12
11
  showAddRowPlaceholder?: boolean;
13
- /** TODO: remove once we migrate */
14
- environment: Environment;
15
- envVariables: EnvVariable[];
12
+ environment: XScalarEnvironment;
16
13
  };
17
14
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
15
  updateRow: (index: number, payload: Partial<{
@@ -1 +1 @@
1
- {"version":3,"file":"OperationTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationTable.vue"],"names":[],"mappings":"AA2KA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAMzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAA0B,EACxB,KAAK,QAAQ,EACd,MAAM,qEAAqE,CAAA;AAE5E,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAE1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;aAqB0B,MAAM;eAAS,MAAM;mBAAa,OAAO;;;aALzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;;aAKzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;aALzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;AA6NrE,wBAOG"}
1
+ {"version":3,"file":"OperationTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationTable.vue"],"names":[],"mappings":"AAwKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAA0B,EACxB,KAAK,QAAQ,EACd,MAAM,qEAAqE,CAAA;AAO5E,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;aAsB0B,MAAM;eAAS,MAAM;mBAAa,OAAO;;;aALzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;;aAKzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;aALzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;AAgOrE,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationTable.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f9602b0"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-46e149be"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as y, computed as b, createBlock as c, openBlock as i, withCtx as n, createVNode as t, createElementBlock as B, createTextVNode as s, toDisplayString as u, Fragment as D, renderList as F } from "vue";
2
- import k from "../../../../components/DataTable/DataTable.vue.js";
3
- import m from "../../../../components/DataTable/DataTableHeader.vue.js";
4
- import U from "../../../../components/DataTable/DataTableRow.vue.js";
5
- import V from "./OperationTableRow.vue.js";
6
- const A = /* @__PURE__ */ y({
1
+ import { defineComponent as B, computed as p, createBlock as f, openBlock as u, unref as t, withCtx as n, createVNode as d, createElementBlock as D, createTextVNode as s, toDisplayString as m, Fragment as F, renderList as k } from "vue";
2
+ import U from "./OperationTableRow.vue.js";
3
+ import C from "../../../components/data-table/DataTable.vue.js";
4
+ import O from "../../../components/data-table/DataTableRow.vue.js";
5
+ import c from "../../../components/data-table/DataTableHeader.vue.js";
6
+ const V = /* @__PURE__ */ B({
7
7
  __name: "OperationTable",
8
8
  props: {
9
9
  data: {},
@@ -13,76 +13,74 @@ const A = /* @__PURE__ */ y({
13
13
  label: {},
14
14
  showUploadButton: { type: Boolean },
15
15
  showAddRowPlaceholder: { type: Boolean, default: !0 },
16
- environment: {},
17
- envVariables: {}
16
+ environment: {}
18
17
  },
19
18
  emits: ["addRow", "updateRow", "deleteRow", "uploadFile", "removeFile"],
20
- setup(a, { emit: p }) {
21
- const l = p, f = (e) => {
19
+ setup(a, { emit: b }) {
20
+ const l = b, w = (e) => {
22
21
  l("uploadFile", e);
23
- }, v = b(() => a.showUploadButton ? ["36px", "", "", "auto"] : ["36px", "", ""]), w = b(() => {
22
+ }, h = p(() => a.showUploadButton ? ["36px", "", "", "auto"] : ["36px", "", ""]), R = p(() => {
24
23
  if (!a.showAddRowPlaceholder)
25
24
  return a.data;
26
25
  const e = a.data.at(-1);
27
26
  return !e || e.name !== "" || e.value !== "" ? [...a.data, { name: "", value: "", isDisabled: !0 }] : a.data;
28
- }), h = ({
27
+ }), v = ({
29
28
  index: e,
30
- payload: d
29
+ payload: r
31
30
  }) => {
32
31
  if (e >= a.data.length) {
33
- l("addRow", d);
32
+ l("addRow", r);
34
33
  return;
35
34
  }
36
- l("updateRow", e, d);
35
+ l("updateRow", e, r);
37
36
  };
38
- return (e, d) => (i(), c(k, {
37
+ return (e, r) => (u(), f(t(C), {
39
38
  class: "group/table flex-1",
40
- columns: v.value
39
+ columns: h.value
41
40
  }, {
42
41
  default: n(() => [
43
- t(U, { class: "sr-only !block" }, {
42
+ d(t(O), { class: "sr-only !block" }, {
44
43
  default: n(() => [
45
- t(m, null, {
44
+ d(t(c), null, {
46
45
  default: n(() => [
47
- s(u(e.label) + " Enabled", 1)
46
+ s(m(e.label) + " Enabled", 1)
48
47
  ]),
49
48
  _: 1
50
49
  }),
51
- t(m, null, {
50
+ d(t(c), null, {
52
51
  default: n(() => [
53
- s(u(e.label) + " Key", 1)
52
+ s(m(e.label) + " Key", 1)
54
53
  ]),
55
54
  _: 1
56
55
  }),
57
- t(m, null, {
56
+ d(t(c), null, {
58
57
  default: n(() => [
59
- s(u(e.label) + " Value", 1)
58
+ s(m(e.label) + " Value", 1)
60
59
  ]),
61
60
  _: 1
62
61
  })
63
62
  ]),
64
63
  _: 1
65
64
  }),
66
- (i(!0), B(D, null, F(w.value, (R, o) => (i(), c(V, {
65
+ (u(!0), D(F, null, k(R.value, (y, o) => (u(), f(U, {
67
66
  key: o,
68
- data: R,
69
- envVariables: e.envVariables,
67
+ data: y,
70
68
  environment: e.environment,
71
69
  hasCheckboxDisabled: e.hasCheckboxDisabled,
72
70
  invalidParams: e.invalidParams,
73
71
  isReadOnly: e.isReadOnly,
74
72
  label: e.label,
75
73
  showUploadButton: e.showUploadButton,
76
- onDeleteRow: (r) => l("deleteRow", o),
77
- onRemoveFile: (r) => l("removeFile", o),
78
- onUpdateRow: (r) => h({ index: o, payload: r }),
79
- onUploadFile: () => f(o)
80
- }, null, 8, ["data", "envVariables", "environment", "hasCheckboxDisabled", "invalidParams", "isReadOnly", "label", "showUploadButton", "onDeleteRow", "onRemoveFile", "onUpdateRow", "onUploadFile"]))), 128))
74
+ onDeleteRow: (i) => l("deleteRow", o),
75
+ onRemoveFile: (i) => l("removeFile", o),
76
+ onUpdateRow: (i) => v({ index: o, payload: i }),
77
+ onUploadFile: () => w(o)
78
+ }, null, 8, ["data", "environment", "hasCheckboxDisabled", "invalidParams", "isReadOnly", "label", "showUploadButton", "onDeleteRow", "onRemoveFile", "onUpdateRow", "onUploadFile"]))), 128))
81
79
  ]),
82
80
  _: 1
83
81
  }, 8, ["columns"]));
84
82
  }
85
83
  });
86
84
  export {
87
- A as default
85
+ V as default
88
86
  };
@@ -1,15 +1,12 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
1
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
2
2
  import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
- import type { EnvVariable } from '../../../../store/index.js';
4
3
  type __VLS_Props = {
5
4
  data: TableRow;
6
5
  isReadOnly?: boolean;
7
6
  hasCheckboxDisabled?: boolean;
8
7
  invalidParams?: Set<string>;
9
8
  label?: string;
10
- /** TODO: remove as soon as we migrate to the new store */
11
- environment: Environment;
12
- envVariables: EnvVariable[];
9
+ environment: XScalarEnvironment;
13
10
  showUploadButton?: boolean;
14
11
  };
15
12
  export type TableRow = {
@@ -1 +1 @@
1
- {"version":3,"file":"OperationTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationTableRow.vue"],"names":[],"mappings":"AA4NA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAShG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0DAA0D;IAC1D,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAoBF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAf2B,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;;aAAzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;AA+erE,wBAOG"}
1
+ {"version":3,"file":"OperationTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationTableRow.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAahG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAqBF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAf2B,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;;aAAzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;AA2erE,wBAOG"}