@scalar/api-client 2.3.26 → 2.3.28

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 (96) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +4 -1
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CodeInput/CodeInput.vue2.js +76 -72
  6. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  7. package/dist/components/CodeInput/codeVariableWidget.js +48 -45
  8. package/dist/components/CodeInput/index.d.ts +2 -0
  9. package/dist/components/CodeInput/index.d.ts.map +1 -0
  10. package/dist/components/CodeInput/index.js +4 -0
  11. package/dist/components/DataTable/DataTableInput.vue.d.ts +8 -1
  12. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  13. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  14. package/dist/components/DataTable/DataTableInput.vue2.js +46 -43
  15. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +1 -1
  16. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  17. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +82 -92
  18. package/dist/components/Form/Form.vue.d.ts +2 -2
  19. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  20. package/dist/components/Form/Form.vue.js +17 -14
  21. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  22. package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -1
  23. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  24. package/dist/components/SideNav/SideNav.vue.js +30 -30
  25. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +16 -0
  26. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  27. package/dist/components/Sidebar/SidebarListElement.vue.js +3 -2
  28. package/dist/components/Sidebar/SidebarListElement.vue2.js +76 -54
  29. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +2 -2
  30. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  31. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +5 -4
  32. package/dist/components/ViewLayout/index.d.ts +2 -0
  33. package/dist/components/ViewLayout/index.d.ts.map +1 -0
  34. package/dist/components/ViewLayout/index.js +4 -0
  35. package/dist/hooks/useClientConfig.d.ts +6 -6
  36. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  37. package/dist/layouts/App/create-api-client-app.d.ts +13 -13
  38. package/dist/layouts/Modal/create-api-client-modal.d.ts +26 -26
  39. package/dist/layouts/Web/create-api-client-web.d.ts +13 -13
  40. package/dist/libs/create-client.d.ts +13 -13
  41. package/dist/libs/env-helpers.d.ts +10 -2
  42. package/dist/libs/env-helpers.d.ts.map +1 -1
  43. package/dist/libs/env-helpers.js +4 -2
  44. package/dist/libs/environment-parser.d.ts +1 -1
  45. package/dist/libs/hot-keys.d.ts +1 -1
  46. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  47. package/dist/libs/send-request/create-request-operation.js +9 -9
  48. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  49. package/dist/libs/string-template.d.ts.map +1 -1
  50. package/dist/libs/string-template.js +35 -21
  51. package/dist/routes.d.ts +10 -10
  52. package/dist/store/active-entities.js +34 -34
  53. package/dist/store/environment.js +1 -1
  54. package/dist/store/security-schemes.d.ts +10 -10
  55. package/dist/store/store.d.ts +13 -13
  56. package/dist/store/workspace.d.ts +2 -2
  57. package/dist/style.css +1 -1
  58. package/dist/views/Collection/CollectionCookies.vue.d.ts +1 -1
  59. package/dist/views/Collection/CollectionEnvironment.vue.d.ts +1 -1
  60. package/dist/views/Collection/CollectionOverview.vue.d.ts +1 -1
  61. package/dist/views/Collection/CollectionScripts.vue.d.ts +1 -1
  62. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  63. package/dist/views/Collection/CollectionServerForm.vue.js +39 -34
  64. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  65. package/dist/views/Collection/CollectionServers.vue2.js +58 -78
  66. package/dist/views/Collection/CollectionSync.vue.d.ts +1 -1
  67. package/dist/views/Cookies/CookieForm.vue.d.ts +1 -1
  68. package/dist/views/Cookies/CookieRaw.vue.d.ts +1 -1
  69. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  70. package/dist/views/Environment/Environment.vue2.js +208 -188
  71. package/dist/views/Environment/EnvironmentColors.vue.js +5 -5
  72. package/dist/views/Environment/EnvironmentModal.vue.js +21 -21
  73. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  74. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
  75. package/dist/views/Environment/handle-drag.d.ts +13 -0
  76. package/dist/views/Environment/handle-drag.d.ts.map +1 -0
  77. package/dist/views/Environment/handle-drag.js +32 -0
  78. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  79. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +23 -22
  80. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  81. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -88
  82. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  83. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +1 -0
  84. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  85. package/dist/views/Request/RequestSection/RequestParams.vue.js +62 -56
  86. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  87. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  88. package/dist/views/Request/RequestSection/RequestSection.vue.js +4 -4
  89. package/dist/views/Request/RequestSection/RequestSection.vue2.js +42 -47
  90. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  91. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  92. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
  93. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
  94. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +10 -10
  95. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  96. package/package.json +24 -14
@@ -1,22 +1,22 @@
1
- import { defineComponent as k, openBlock as r, createElementBlock as a, normalizeClass as d, unref as e, createVNode as t, withCtx as s, createElementVNode as n, Fragment as w, renderList as b, createTextVNode as u, toDisplayString as y, createCommentVNode as S } from "vue";
2
- import { ScalarIcon as C } from "@scalar/components";
3
- import { useRouter as N } from "vue-router";
1
+ import { defineComponent as w, openBlock as r, createElementBlock as n, normalizeClass as d, unref as e, createVNode as t, withCtx as a, createElementVNode as c, Fragment as k, renderList as b, createTextVNode as u, toDisplayString as y, createCommentVNode as C } from "vue";
2
+ import { ScalarIcon as S } from "@scalar/components";
3
+ import { useRouter as L } from "vue-router";
4
4
  import { ROUTES as B } from "../../constants.js";
5
5
  import { PathId as _ } from "../../routes.js";
6
6
  import E from "./DownloadAppButton.vue.js";
7
- import L from "./SideHelp.vue.js";
7
+ import N from "./SideHelp.vue.js";
8
8
  import g from "./SideNavGroup.vue.js";
9
- import x from "./SideNavRouterLink.vue.js";
9
+ import v from "./SideNavRouterLink.vue.js";
10
10
  import { useActiveEntities as V } from "../../store/active-entities.js";
11
11
  import { useLayout as j } from "../../hooks/useLayout.js";
12
12
  const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W = {
13
13
  key: 0,
14
14
  class: "hidden items-center justify-center sm:ml-1.5 sm:flex"
15
- }, K = /* @__PURE__ */ k({
15
+ }, K = /* @__PURE__ */ w({
16
16
  __name: "SideNav",
17
17
  setup($) {
18
- const { currentRoute: m } = N(), { layout: i } = j(), { activeWorkspace: c } = V();
19
- return (z, l) => (r(), a("nav", {
18
+ const { currentRoute: s } = L(), { layout: i } = j(), { activeWorkspace: l } = V();
19
+ return (z, p) => (r(), n("nav", {
20
20
  "aria-label": "App Navigation",
21
21
  class: d([
22
22
  "app-drag-region flex items-center justify-center gap-1.5 pt-2 sm:justify-between",
@@ -25,36 +25,36 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
25
25
  role: "navigation"
26
26
  }, [
27
27
  t(g, { class: "app-no-drag-region" }, {
28
- default: s(() => [
29
- n("a", {
28
+ default: a(() => [
29
+ c("a", {
30
30
  class: d(["ml-1 mr-3 hidden items-center", {
31
31
  "sm:flex": e(i) === "web"
32
32
  }]),
33
33
  href: "https://www.scalar.com",
34
34
  target: "_blank"
35
35
  }, [
36
- t(e(C), {
36
+ t(e(S), {
37
37
  icon: "Logo",
38
38
  size: "xl"
39
39
  })
40
40
  ], 2),
41
- (r(!0), a(w, null, b(e(B).filter(
41
+ (r(!0), n(k, null, b(e(B).filter(
42
42
  (o) => o.to.name !== "settings.default"
43
- ), ({ icon: o, to: h, displayName: p }, v) => {
43
+ ), ({ icon: o, to: x, displayName: m }, h) => {
44
44
  var f;
45
- return r(), a("li", { key: v }, [
46
- t(x, {
47
- active: e(m).name === p.toLowerCase(),
45
+ return r(), n("li", { key: h }, [
46
+ t(v, {
47
+ active: e(s).name === m.toLowerCase() || m.toLowerCase() === "environment" && e(s).name === "environment.collection",
48
48
  icon: o,
49
49
  to: {
50
- ...h,
50
+ ...x,
51
51
  params: {
52
- [e(_).Workspace]: ((f = e(c)) == null ? void 0 : f.uid) ?? "default"
52
+ [e(_).Workspace]: ((f = e(l)) == null ? void 0 : f.uid) ?? "default"
53
53
  }
54
54
  }
55
55
  }, {
56
- default: s(() => [
57
- u(y(p), 1)
56
+ default: a(() => [
57
+ u(y(m), 1)
58
58
  ]),
59
59
  _: 2
60
60
  }, 1032, ["active", "icon", "to"])
@@ -64,32 +64,32 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
64
64
  _: 1
65
65
  }),
66
66
  t(g, { class: "app-no-drag-region" }, {
67
- default: s(() => {
67
+ default: a(() => {
68
68
  var o;
69
69
  return [
70
- n("li", A, [
71
- t(x, {
72
- active: e(m).name === "settings",
70
+ c("li", A, [
71
+ t(v, {
72
+ active: e(s).name === "settings",
73
73
  icon: "Settings",
74
74
  to: {
75
75
  name: "settings.default",
76
76
  params: {
77
- [e(_).Workspace]: (o = e(c)) == null ? void 0 : o.uid
77
+ [e(_).Workspace]: (o = e(l)) == null ? void 0 : o.uid
78
78
  }
79
79
  }
80
80
  }, {
81
- default: s(() => l[0] || (l[0] = [
81
+ default: a(() => p[0] || (p[0] = [
82
82
  u(" Settings ")
83
83
  ])),
84
84
  _: 1
85
85
  }, 8, ["active", "to"])
86
86
  ]),
87
- n("li", R, [
88
- t(L)
87
+ c("li", R, [
88
+ t(N)
89
89
  ]),
90
- e(i) !== "desktop" ? (r(), a("li", W, [
90
+ e(i) !== "desktop" ? (r(), n("li", W, [
91
91
  t(E)
92
- ])) : S("", !0)
92
+ ])) : C("", !0)
93
93
  ];
94
94
  }),
95
95
  _: 1
@@ -1,4 +1,5 @@
1
1
  import { type Icon } from '@scalar/components';
2
+ import { type DraggableProps, type DraggingItem, type HoveredItem } from '@scalar/draggable';
2
3
  import { type RouteLocationRaw } from 'vue-router';
3
4
  type __VLS_Props = {
4
5
  variable: {
@@ -13,13 +14,28 @@ type __VLS_Props = {
13
14
  isDeletable?: boolean;
14
15
  isCopyable?: boolean;
15
16
  isRenameable?: boolean;
17
+ /**
18
+ * Toggle dragging on and off
19
+ *
20
+ * @default false
21
+ */
22
+ isDraggable?: boolean;
23
+ /**
24
+ * Prevents items from being hovered and dropped into
25
+ *
26
+ * @default false
27
+ */
28
+ isDroppable?: DraggableProps['isDroppable'];
29
+ collectionId?: string;
16
30
  };
17
31
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
32
  delete: (id: string) => any;
33
+ onDragEnd: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => any;
19
34
  rename: (id: string) => any;
20
35
  colorModal: (id: string) => any;
21
36
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
37
  onDelete?: (id: string) => any;
38
+ onOnDragEnd?: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => any;
23
39
  onRename?: (id: string) => any;
24
40
  onColorModal?: (id: string) => any;
25
41
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AAgGA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAM7D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,EAAE,EAAE,gBAAgB,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;;;;;;AAiMF,wBAQG"}
1
+ {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AAmJA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAM7D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,EAAE,EAAE,gBAAgB,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;;;;;;;AAgPF,wBAQG"}
@@ -1,7 +1,8 @@
1
1
  import t from "./SidebarListElement.vue2.js";
2
2
  /* empty css */
3
+ /* empty css */
3
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-245380f1"]]);
5
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6742391f"]]);
5
6
  export {
6
- a as default
7
+ p as default
7
8
  };
@@ -1,8 +1,9 @@
1
- import { defineComponent as y, resolveComponent as C, openBlock as l, createElementBlock as i, createVNode as s, normalizeClass as k, withModifiers as h, withCtx as w, createElementVNode as m, normalizeStyle as B, createCommentVNode as b, createBlock as D, unref as M, toDisplayString as R } from "vue";
2
- import { ScalarIcon as N } from "@scalar/components";
3
- import { useRouter as S } from "vue-router";
4
- import z from "./SidebarListElementActions.vue.js";
5
- const E = { class: "empty-variable-name line-clamp-1 break-all text-sm group-hover:pr-5" }, K = /* @__PURE__ */ y({
1
+ import { defineComponent as C, ref as B, computed as h, resolveComponent as w, openBlock as n, createElementBlock as b, createVNode as r, unref as p, withCtx as d, normalizeClass as R, withModifiers as M, createElementVNode as m, normalizeStyle as E, createCommentVNode as g, createBlock as I, toDisplayString as N } from "vue";
2
+ import { ScalarIcon as S } from "@scalar/components";
3
+ import { Draggable as z } from "@scalar/draggable";
4
+ import { useRouter as V } from "vue-router";
5
+ import $ from "./SidebarListElementActions.vue.js";
6
+ const O = { class: "empty-variable-name line-clamp-1 break-all text-sm group-hover:pr-5" }, q = /* @__PURE__ */ C({
6
7
  __name: "SidebarListElement",
7
8
  props: {
8
9
  variable: {},
@@ -10,63 +11,84 @@ const E = { class: "empty-variable-name line-clamp-1 break-all text-sm group-hov
10
11
  to: {},
11
12
  isDeletable: { type: Boolean },
12
13
  isCopyable: { type: Boolean },
13
- isRenameable: { type: Boolean }
14
+ isRenameable: { type: Boolean },
15
+ isDraggable: { type: Boolean, default: !1 },
16
+ isDroppable: { type: [Boolean, Function], default: !1 },
17
+ collectionId: {}
14
18
  },
15
- emits: ["delete", "colorModal", "rename"],
16
- setup(p, { emit: u }) {
17
- const n = p, a = u, r = S(), c = (e) => {
18
- e.metaKey ? window.open(r.resolve(n.to).href, "_blank") : r.push(n.to);
19
- }, d = (e) => {
20
- a("delete", e);
19
+ emits: ["delete", "colorModal", "rename", "onDragEnd"],
20
+ setup(i, { emit: u }) {
21
+ const o = u, t = V(), f = (e) => {
22
+ e.metaKey ? window.open(t.resolve(i.to).href, "_blank") : t.push(i.to);
23
+ }, c = (e) => {
24
+ o("delete", e);
21
25
  }, v = (e) => {
22
- a("colorModal", e);
23
- }, f = (e) => {
24
- a("rename", e);
25
- };
26
- return (e, o) => {
27
- const g = C("router-link");
28
- return l(), i("li", null, [
29
- s(g, {
30
- class: k(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-1.5"]]),
31
- exactActiveClass: "bg-b-2 text-c-1",
32
- role: "button",
33
- to: e.to,
34
- onClick: o[1] || (o[1] = h((t) => c(t), ["prevent"]))
26
+ o("colorModal", e);
27
+ }, D = (e) => {
28
+ o("rename", e);
29
+ }, y = B(null), s = h(() => ({
30
+ ceiling: 0.5,
31
+ floor: 0.5
32
+ }));
33
+ return (e, l) => {
34
+ const k = w("router-link");
35
+ return n(), b("li", null, [
36
+ r(p(z), {
37
+ id: e.variable.uid,
38
+ ref_key: "draggableRef",
39
+ ref: y,
40
+ ceiling: s.value.ceiling,
41
+ floor: s.value.floor,
42
+ isDraggable: e.isDraggable,
43
+ isDroppable: e.isDroppable,
44
+ parentIds: e.collectionId ? [e.collectionId] : [],
45
+ onOnDragEnd: l[2] || (l[2] = (...a) => e.$emit("onDragEnd", ...a))
35
46
  }, {
36
- default: w(() => [
37
- e.variable.color ? (l(), i("button", {
38
- key: 0,
39
- class: "hover:bg-b-3 rounded p-1.5",
40
- type: "button",
41
- onClick: o[0] || (o[0] = (t) => v(e.variable.uid))
42
- }, [
43
- m("div", {
44
- class: "h-2.5 w-2.5 rounded-xl",
45
- style: B({ backgroundColor: e.variable.color })
46
- }, null, 4)
47
- ])) : b("", !0),
48
- e.variable.icon ? (l(), D(M(N), {
49
- key: 1,
50
- class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
51
- icon: e.variable.icon
52
- }, null, 8, ["icon"])) : b("", !0),
53
- m("span", E, R(e.variable.name), 1),
54
- s(z, {
55
- isCopyable: !!e.isCopyable,
56
- isDeletable: !!e.isDeletable,
57
- isRenameable: !!e.isRenameable,
58
- variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
59
- warningMessage: e.warningMessage,
60
- onDelete: d,
61
- onRename: f
62
- }, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
47
+ default: d(() => [
48
+ r(k, {
49
+ class: R(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-5" : "pl-1.5"]]),
50
+ exactActiveClass: "bg-b-2 !text-c-1",
51
+ role: "button",
52
+ to: e.to,
53
+ onClick: l[1] || (l[1] = M((a) => f(a), ["prevent"]))
54
+ }, {
55
+ default: d(() => [
56
+ e.variable.color ? (n(), b("button", {
57
+ key: 0,
58
+ class: "hover:bg-b-3 rounded p-1.5",
59
+ type: "button",
60
+ onClick: l[0] || (l[0] = (a) => v(e.variable.uid))
61
+ }, [
62
+ m("div", {
63
+ class: "h-2.5 w-2.5 rounded-xl",
64
+ style: E({ backgroundColor: e.variable.color })
65
+ }, null, 4)
66
+ ])) : g("", !0),
67
+ e.variable.icon ? (n(), I(p(S), {
68
+ key: 1,
69
+ class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
70
+ icon: e.variable.icon
71
+ }, null, 8, ["icon"])) : g("", !0),
72
+ m("span", O, N(e.variable.name), 1),
73
+ r($, {
74
+ isCopyable: !!e.isCopyable,
75
+ isDeletable: !!e.isDeletable,
76
+ isRenameable: !!e.isRenameable,
77
+ variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
78
+ warningMessage: e.warningMessage,
79
+ onDelete: c,
80
+ onRename: D
81
+ }, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
82
+ ]),
83
+ _: 1
84
+ }, 8, ["class", "to"])
63
85
  ]),
64
86
  _: 1
65
- }, 8, ["class", "to"])
87
+ }, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
66
88
  ]);
67
89
  };
68
90
  }
69
91
  });
70
92
  export {
71
- K as default
93
+ q as default
72
94
  };
@@ -5,10 +5,10 @@ declare function __VLS_template(): {
5
5
  default?(_: {}): any;
6
6
  };
7
7
  refs: {};
8
- rootEl: HTMLElement;
8
+ rootEl: any;
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLElement>;
11
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
13
  export default _default;
14
14
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAgCA,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAoCA,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,16 +1,17 @@
1
1
  import { defineComponent as n, openBlock as t, createElementBlock as o, normalizeProps as l, guardReactiveProps as i, unref as c, renderSlot as r, createCommentVNode as m } from "vue";
2
- import { useBindCx as u } from "@scalar/components";
3
- const a = {
2
+ import { useBindCx as a } from "@scalar/components";
3
+ const u = {
4
4
  key: 0,
5
5
  class: "request-response-header bg-b-1 z-1 sticky top-0 flex min-h-11 items-center border-b px-2.5 text-sm font-medium xl:rounded-none"
6
6
  }, _ = /* @__PURE__ */ n({
7
+ inheritAttrs: !1,
7
8
  __name: "ViewLayoutSection",
8
9
  setup(d) {
9
- const { cx: s } = u();
10
+ const { cx: s } = a();
10
11
  return (e, f) => (t(), o("section", l(i(
11
12
  c(s)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0")
12
13
  )), [
13
- e.$slots.title ? (t(), o("div", a, [
14
+ e.$slots.title ? (t(), o("div", u, [
14
15
  r(e.$slots, "title")
15
16
  ])) : m("", !0),
16
17
  r(e.$slots, "default")
@@ -0,0 +1,2 @@
1
+ export { default as ViewLayoutCollapse } from './ViewLayoutCollapse.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./ViewLayoutCollapse.vue.js";
2
+ export {
3
+ o as ViewLayoutCollapse
4
+ };
@@ -19,9 +19,9 @@ export declare const useClientConfig: () => Ref<{
19
19
  authentication?: any;
20
20
  baseServerURL?: string | undefined;
21
21
  proxyUrl?: string | undefined;
22
- searchHotKey?: "c" | "r" | "o" | "n" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
22
+ searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
23
23
  servers?: any[] | undefined;
24
- _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
24
+ _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
25
25
  onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
26
26
  }, {
27
27
  hideClientButton: boolean;
@@ -40,9 +40,9 @@ export declare const useClientConfig: () => Ref<{
40
40
  authentication?: any;
41
41
  baseServerURL?: string | undefined;
42
42
  proxyUrl?: string | undefined;
43
- searchHotKey?: "c" | "r" | "o" | "n" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
43
+ searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
44
44
  servers?: any[] | undefined;
45
- _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
45
+ _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
46
46
  onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
47
47
  } | {
48
48
  hideClientButton: boolean;
@@ -61,9 +61,9 @@ export declare const useClientConfig: () => Ref<{
61
61
  authentication?: any;
62
62
  baseServerURL?: string | undefined;
63
63
  proxyUrl?: string | undefined;
64
- searchHotKey?: "c" | "r" | "o" | "n" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
64
+ searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
65
65
  servers?: any[] | undefined;
66
- _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
66
+ _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
67
67
  onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
68
68
  }>;
69
69
  //# sourceMappingURL=useClientConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;+CAC0/O,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAAgwB,GAAI;;;;;;+CAAx+B,GAAG;;;;WAAoJ,CAAC;eAAqC,CAAC,mCAAmC,GAAG;aAA0E,CAAC;YAAkC,CAAC;;;;;;;;sCAAkpB,GAAI;;;;;;+CAAx+B,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAAgwB,GAAI;EADz4Q,CAAA"}
1
+ {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;+CACogP,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAA2wB,GAAI;;;;;;+CAAn/B,GAAG;;;;WAAoJ,CAAC;eAAqC,CAAC,mCAAmC,GAAG;aAA0E,CAAC;YAAkC,CAAC;;;;;;;;sCAA6pB,GAAI;;;;;;+CAAn/B,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAA2wB,GAAI;EAD95Q,CAAA"}