@scalar/api-client 2.19.2 → 2.20.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 (148) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  4. package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts.map +1 -1
  5. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  6. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  7. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  8. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  9. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  10. package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
  11. package/dist/components/SectionFilterButton.vue.d.ts.map +1 -1
  12. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  13. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
  14. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
  15. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  16. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  17. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  18. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  19. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  20. package/dist/hooks/useFileDialog.d.ts +4 -4
  21. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +0 -9
  24. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  25. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +126 -67
  26. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +6 -0
  27. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  28. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  29. package/dist/v2/blocks/operation-block/components/Header.vue2.js +25 -24
  30. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +1 -1
  31. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -1
  32. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +1 -1
  33. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +0 -1
  34. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
  35. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +96 -48
  36. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  37. package/dist/v2/blocks/operation-block/helpers/build-request.js +41 -39
  38. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.d.ts +42 -0
  39. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.d.ts.map +1 -0
  40. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +31 -0
  41. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +66 -0
  42. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts.map +1 -0
  43. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +43 -0
  44. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -0
  45. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
  46. package/dist/v2/blocks/operation-block/helpers/send-request.js +40 -38
  47. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.d.ts +96 -0
  48. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.d.ts.map +1 -0
  49. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js +49 -0
  50. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  51. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +16 -17
  52. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -2
  53. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  54. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +109 -152
  55. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  56. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  57. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
  58. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
  59. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -1
  60. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  61. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +6 -0
  62. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  63. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  64. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +24 -23
  65. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts +2 -3
  66. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts.map +1 -1
  67. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +2 -2
  68. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +20 -20
  69. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  70. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  71. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  72. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  73. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  74. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
  75. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  76. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  77. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -0
  78. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  79. package/dist/v2/components/sidebar/Sidebar.vue.js +60 -54
  80. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  81. package/dist/v2/features/app/app-events.js +53 -42
  82. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  83. package/dist/v2/features/app/app-state.js +72 -72
  84. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  85. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  86. package/dist/v2/features/app/components/AppSidebar.vue2.js +84 -76
  87. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -1
  88. package/dist/v2/features/app/helpers/routes.d.ts +2 -2
  89. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  90. package/dist/v2/features/collection/DocumentCollection.vue.js +82 -43
  91. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  92. package/dist/v2/features/collection/components/Settings.vue.js +9 -10
  93. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +1 -3
  94. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  95. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts.map +1 -1
  96. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +1 -1
  97. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -1
  98. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  99. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  100. package/dist/v2/features/modal/Modal.vue.js +2 -2
  101. package/dist/v2/features/modal/Modal.vue2.js +31 -31
  102. package/dist/v2/features/modal/helpers/map-hidden-clients-config.d.ts +8 -0
  103. package/dist/v2/features/modal/helpers/map-hidden-clients-config.d.ts.map +1 -0
  104. package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +36 -0
  105. package/dist/v2/features/modal/index.d.ts +1 -0
  106. package/dist/v2/features/modal/index.d.ts.map +1 -1
  107. package/dist/v2/features/modal/index.js +4 -2
  108. package/dist/v2/features/operation/Operation.vue.d.ts +5 -2
  109. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  110. package/dist/v2/features/operation/Operation.vue.js +48 -35
  111. package/dist/v2/features/operation/helpers/get-selected-server.d.ts +2 -1
  112. package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
  113. package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
  114. package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -1
  115. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +0 -2
  116. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  117. package/dist/v2/features/settings/CollectionSettings.vue.js +110 -135
  118. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -1
  119. package/dist/v2/helpers/get-servers.d.ts +23 -0
  120. package/dist/v2/helpers/get-servers.d.ts.map +1 -0
  121. package/dist/v2/helpers/get-servers.js +66 -0
  122. package/dist/v2/helpers/index.d.ts +1 -0
  123. package/dist/v2/helpers/index.d.ts.map +1 -1
  124. package/dist/v2/helpers/index.js +4 -2
  125. package/dist/v2/workspace-events.d.ts.map +1 -1
  126. package/dist/v2/workspace-events.js +12 -6
  127. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +1 -1
  128. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  129. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  130. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  131. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  132. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  135. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  136. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  138. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  139. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  140. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  141. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -1
  142. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  143. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  144. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  145. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  146. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -1
  147. package/package.json +12 -12
  148. package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -15
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, mergeModels as x, computed as b, capitalize as V, useModel as C, ref as G, createElementBlock as W, openBlock as m, createVNode as l, createBlock as g, createCommentVNode as f, unref as i, createSlots as R, withCtx as r, createTextVNode as y, withKeys as k, withModifiers as c, toDisplayString as j, renderSlot as F, createElementVNode as d, normalizeClass as H, nextTick as L } from "vue";
1
+ import { defineComponent as q, mergeModels as C, computed as f, capitalize as V, useModel as W, ref as G, createElementBlock as g, openBlock as u, createVNode as l, createBlock as B, createCommentVNode as c, unref as i, createSlots as R, withCtx as r, createTextVNode as y, createElementVNode as d, withKeys as k, withModifiers as p, toDisplayString as j, renderSlot as F, normalizeClass as H, nextTick as L } from "vue";
2
2
  import { useModal as U, ScalarSidebarItem as I, ScalarIconButton as J, ScalarButton as $, ScalarModal as Y } from "@scalar/components";
3
3
  import { ScalarIconPlus as Q, ScalarIconDotsThree as X, ScalarIconGlobe as Z } from "@scalar/icons";
4
4
  import { getParentEntry as w } from "@scalar/workspace-store/navigation";
@@ -10,11 +10,14 @@ import ae from "./SidebarItemMenu.vue.js";
10
10
  import { dragHandleFactory as oe } from "../../../helpers/drag-handle-factory.js";
11
11
  import ne from "../../../components/sidebar/Sidebar.vue.js";
12
12
  const ie = { class: "flex" }, se = {
13
+ key: 0,
14
+ class: "flex items-center"
15
+ }, re = {
13
16
  key: 0,
14
17
  class: "empty-sidebar-item-content overflow-hidden px-2.5 py-2.5"
15
- }, re = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, le = { class: "gap-1.5 p-2" }, Se = /* @__PURE__ */ q({
18
+ }, le = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, de = { class: "gap-1.5 p-2" }, ge = /* @__PURE__ */ q({
16
19
  __name: "AppSidebar",
17
- props: /* @__PURE__ */ x({
20
+ props: /* @__PURE__ */ C({
18
21
  layout: {},
19
22
  sidebarState: {},
20
23
  isWorkspaceOpen: { type: Boolean },
@@ -31,65 +34,65 @@ const ie = { class: "flex" }, se = {
31
34
  },
32
35
  sidebarWidthModifiers: {}
33
36
  }),
34
- emits: /* @__PURE__ */ x(["click:workspace", "selectItem", "select:workspace", "create:workspace"], ["update:isSidebarOpen", "update:sidebarWidth"]),
35
- setup(o, { emit: O }) {
36
- const p = O, A = b(() => V(o.activeWorkspace.label)), B = C(o, "isSidebarOpen"), M = C(o, "sidebarWidth"), S = b(() => o.sidebarState.items.value.length <= 1), h = b(
37
+ emits: /* @__PURE__ */ C(["click:workspace", "selectItem", "select:workspace", "create:workspace"], ["update:isSidebarOpen", "update:sidebarWidth"]),
38
+ setup(a, { emit: O }) {
39
+ const v = O, A = f(() => V(a.activeWorkspace.label)), M = W(a, "isSidebarOpen"), h = W(a, "sidebarWidth"), S = f(() => a.sidebarState.items.value.length <= 1), x = f(
37
40
  () => oe({
38
- store: o.store,
39
- sidebarState: o.sidebarState
41
+ store: a.store,
42
+ sidebarState: a.sidebarState
40
43
  })
41
- ), D = (a, e) => h.value.handleDragEnd(a, e), N = (a, e) => h.value.isDroppable(a, e), s = G(null), v = U(), T = b(() => {
42
- const a = s.value?.item;
43
- return a?.type === "document" ? "This cannot be undone. You're about to delete the document and all tags and operations inside it." : `Are you sure you want to delete this ${a?.type ?? "item"}? This action cannot be undone.`;
44
+ ), D = (o, e) => x.value.handleDragEnd(o, e), N = (o, e) => x.value.isDroppable(o, e), s = G(null), b = U(), T = f(() => {
45
+ const o = s.value?.item;
46
+ return o?.type === "document" ? "This cannot be undone. You're about to delete the document and all tags and operations inside it." : `Are you sure you want to delete this ${o?.type ?? "item"}? This action cannot be undone.`;
44
47
  }), z = () => {
45
- const a = s.value?.item;
46
- if (!a)
48
+ const o = s.value?.item;
49
+ if (!o)
47
50
  return;
48
- const e = o.sidebarState.getEntryById(a.id), t = w("document", e), n = w("operation", e);
51
+ const e = a.sidebarState.getEntryById(o.id), t = w("document", e), n = w("operation", e);
49
52
  if (t) {
50
- if (a.type === "document")
51
- o.eventBus.emit("document:delete:document", { name: t.name });
52
- else if (a.type === "tag")
53
- o.eventBus.emit("tag:delete:tag", {
53
+ if (o.type === "document")
54
+ a.eventBus.emit("document:delete:document", { name: t.name });
55
+ else if (o.type === "tag")
56
+ a.eventBus.emit("tag:delete:tag", {
54
57
  documentName: t.name,
55
- name: a.name
58
+ name: o.name
56
59
  });
57
- else if (a.type === "operation") {
60
+ else if (o.type === "operation") {
58
61
  if (!n)
59
62
  return;
60
- o.eventBus.emit("operation:delete:operation", {
63
+ a.eventBus.emit("operation:delete:operation", {
61
64
  meta: {
62
65
  method: n.method,
63
66
  path: n.path
64
67
  },
65
68
  documentName: t.name
66
69
  });
67
- } else if (a.type === "example") {
70
+ } else if (o.type === "example") {
68
71
  if (!n)
69
72
  return;
70
- o.eventBus.emit("operation:delete:example", {
73
+ a.eventBus.emit("operation:delete:example", {
71
74
  meta: {
72
75
  method: n.method,
73
76
  path: n.path,
74
- exampleKey: a.name
77
+ exampleKey: o.name
75
78
  },
76
79
  documentName: t.name
77
80
  });
78
81
  }
79
- v.hide(), s.value = null;
82
+ b.hide(), s.value = null;
80
83
  }
81
- }, u = async (a, e) => {
84
+ }, m = async (o, e) => {
82
85
  if (s.value?.showMenu)
83
86
  return;
84
- const t = a.currentTarget;
87
+ const t = o.currentTarget;
85
88
  s.value = { item: e, el: t, showMenu: !0 }, await L();
86
- const n = a instanceof MouseEvent ? new MouseEvent(a.type, a) : new KeyboardEvent(a.type, a);
89
+ const n = o instanceof MouseEvent ? new MouseEvent(o.type, o) : new KeyboardEvent(o.type, o);
87
90
  s.value?.el.dispatchEvent(n);
88
91
  }, K = () => {
89
92
  s.value && (s.value.showMenu = !1);
90
- }, P = (a) => {
91
- const e = o.sidebarState.getEntryById(a.id), t = w("document", e), n = w("tag", e);
92
- o.eventBus.emit("ui:open:command-palette", {
93
+ }, P = (o) => {
94
+ const e = a.sidebarState.getEntryById(o.id), t = w("document", e), n = w("tag", e);
95
+ a.eventBus.emit("ui:open:command-palette", {
93
96
  action: "create-request",
94
97
  payload: {
95
98
  documentId: t?.id,
@@ -97,33 +100,33 @@ const ie = { class: "flex" }, se = {
97
100
  }
98
101
  });
99
102
  };
100
- return (a, e) => (m(), W("div", ie, [
103
+ return (o, e) => (u(), g("div", ie, [
101
104
  l(i(ne), {
102
- isSidebarOpen: B.value,
103
- "onUpdate:isSidebarOpen": e[3] || (e[3] = (t) => B.value = t),
104
- sidebarWidth: M.value,
105
- "onUpdate:sidebarWidth": e[4] || (e[4] = (t) => M.value = t),
106
- activeWorkspace: o.activeWorkspace,
107
- documents: Object.values(o.store.workspace.documents),
108
- eventBus: o.eventBus,
105
+ isSidebarOpen: M.value,
106
+ "onUpdate:isSidebarOpen": e[3] || (e[3] = (t) => M.value = t),
107
+ sidebarWidth: h.value,
108
+ "onUpdate:sidebarWidth": e[4] || (e[4] = (t) => h.value = t),
109
+ activeWorkspace: a.activeWorkspace,
110
+ documents: Object.values(a.store.workspace.documents),
111
+ eventBus: a.eventBus,
109
112
  isDroppable: N,
110
- layout: o.layout,
111
- sidebarState: o.sidebarState,
112
- workspaces: o.workspaces,
113
- "onCreate:workspace": e[5] || (e[5] = (t) => p("create:workspace")),
113
+ layout: a.layout,
114
+ sidebarState: a.sidebarState,
115
+ workspaces: a.workspaces,
116
+ "onCreate:workspace": e[5] || (e[5] = (t) => v("create:workspace")),
114
117
  onReorder: e[6] || (e[6] = (t, n) => D(t, n)),
115
- "onSelect:workspace": e[7] || (e[7] = (t) => p("select:workspace", t)),
116
- onSelectItem: e[8] || (e[8] = (t) => p("selectItem", t))
118
+ "onSelect:workspace": e[7] || (e[7] = (t) => v("select:workspace", t)),
119
+ onSelectItem: e[8] || (e[8] = (t) => v("selectItem", t))
117
120
  }, R({
118
121
  sidebarMenuActions: r(() => [
119
- F(a.$slots, "sidebarMenuActions", {}, void 0, !0)
122
+ F(o.$slots, "sidebarMenuActions", {}, void 0, !0)
120
123
  ]),
121
124
  workspaceButton: r(() => [
122
125
  l(i(I), {
123
126
  is: "button",
124
- active: o.isWorkspaceOpen,
127
+ active: a.isWorkspaceOpen,
125
128
  icon: i(Z),
126
- onClick: e[0] || (e[0] = (t) => p("click:workspace"))
129
+ onClick: e[0] || (e[0] = (t) => v("click:workspace"))
127
130
  }, {
128
131
  default: r(() => [
129
132
  y(j(A.value), 1)
@@ -139,15 +142,20 @@ const ie = { class: "flex" }, se = {
139
142
  label: "More options",
140
143
  size: "sm",
141
144
  weight: "bold",
142
- onClick: c((n) => u(n, t), ["stop"]),
145
+ onClick: p((n) => m(n, t), ["stop"]),
143
146
  onKeydown: [
144
- k(c((n) => u(n, t), ["stop"]), ["down"]),
145
- k(c((n) => u(n, t), ["stop"]), ["enter"]),
146
- k(c((n) => u(n, t), ["stop"]), ["space"]),
147
- k(c((n) => u(n, t), ["stop"]), ["up"])
147
+ k(p((n) => m(n, t), ["stop"]), ["down"]),
148
+ k(p((n) => m(n, t), ["stop"]), ["enter"]),
149
+ k(p((n) => m(n, t), ["stop"]), ["space"]),
150
+ k(p((n) => m(n, t), ["stop"]), ["up"])
148
151
  ]
149
152
  }, null, 8, ["icon", "onClick", "onKeydown"])
150
153
  ]),
154
+ icon: r(({ item: t }) => [
155
+ t.type === "document" && a.store.workspace.documents[t.name]?.["x-scalar-is-dirty"] === !0 ? (u(), g("div", se, [...e[11] || (e[11] = [
156
+ d("div", { class: "h-2 w-2 rounded-full bg-white" }, null, -1)
157
+ ])])) : c("", !0)
158
+ ]),
151
159
  empty: r(({ item: t }) => [
152
160
  l(i(I), {
153
161
  is: "button",
@@ -156,7 +164,7 @@ const ie = { class: "flex" }, se = {
156
164
  icon: r(() => [
157
165
  l(i(Q))
158
166
  ]),
159
- default: r(() => [...e[11] || (e[11] = [
167
+ default: r(() => [...e[12] || (e[12] = [
160
168
  y("Add operation", -1)
161
169
  ])]),
162
170
  _: 1
@@ -164,7 +172,7 @@ const ie = { class: "flex" }, se = {
164
172
  ]),
165
173
  _: 2
166
174
  }, [
167
- o.layout !== "modal" ? {
175
+ a.layout !== "modal" ? {
168
176
  name: "footer",
169
177
  fn: r(() => [
170
178
  d("div", {
@@ -172,8 +180,8 @@ const ie = { class: "flex" }, se = {
172
180
  "empty-sidebar-item border-t": S.value
173
181
  })
174
182
  }, [
175
- S.value ? (m(), W("div", se, [
176
- d("div", re, [
183
+ S.value ? (u(), g("div", re, [
184
+ d("div", le, [
177
185
  l(E, {
178
186
  art: i(_),
179
187
  class: "rabbitsit font-bold"
@@ -183,34 +191,34 @@ const ie = { class: "flex" }, se = {
183
191
  class: "rabbitjump absolute top-0 left-0 font-bold"
184
192
  }, null, 8, ["art"])
185
193
  ]),
186
- e[12] || (e[12] = d("div", { class: "mt-2 mb-2 text-center text-sm text-balance" }, [
194
+ e[13] || (e[13] = d("div", { class: "mt-2 mb-2 text-center text-sm text-balance" }, [
187
195
  d("b", { class: "font-medium" }, "Let's Get Started"),
188
196
  d("p", { class: "mt-2 leading-3" }, " Create request, folder, collection or import from OpenAPI/Postman ")
189
197
  ], -1))
190
- ])) : f("", !0),
191
- d("div", le, [
192
- S.value ? (m(), g(i($), {
198
+ ])) : c("", !0),
199
+ d("div", de, [
200
+ S.value ? (u(), B(i($), {
193
201
  key: 0,
194
202
  class: "w-full",
195
203
  size: "sm",
196
- onClick: e[1] || (e[1] = (t) => o.eventBus.emit("ui:open:command-palette", {
204
+ onClick: e[1] || (e[1] = (t) => a.eventBus.emit("ui:open:command-palette", {
197
205
  action: "import-from-openapi-swagger-postman-curl",
198
206
  payload: void 0
199
207
  }))
200
208
  }, {
201
- default: r(() => [...e[13] || (e[13] = [
209
+ default: r(() => [...e[14] || (e[14] = [
202
210
  y(" Import Collection ", -1)
203
211
  ])]),
204
212
  _: 1
205
- })) : f("", !0),
213
+ })) : c("", !0),
206
214
  l(i($), {
207
215
  class: "w-full",
208
216
  hotkey: "K",
209
217
  size: "sm",
210
218
  variant: "outlined",
211
- onClick: e[2] || (e[2] = (t) => o.eventBus.emit("ui:open:command-palette"))
219
+ onClick: e[2] || (e[2] = (t) => a.eventBus.emit("ui:open:command-palette"))
212
220
  }, {
213
- default: r(() => [...e[14] || (e[14] = [
221
+ default: r(() => [...e[15] || (e[15] = [
214
222
  y(" Add Item ", -1)
215
223
  ])]),
216
224
  _: 1
@@ -221,34 +229,34 @@ const ie = { class: "flex" }, se = {
221
229
  key: "0"
222
230
  } : void 0
223
231
  ]), 1032, ["isSidebarOpen", "sidebarWidth", "activeWorkspace", "documents", "eventBus", "layout", "sidebarState", "workspaces"]),
224
- s.value?.showMenu ? (m(), g(ae, {
232
+ s.value?.showMenu ? (u(), B(ae, {
225
233
  key: 0,
226
- eventBus: o.eventBus,
234
+ eventBus: a.eventBus,
227
235
  item: s.value.item,
228
- sidebarState: o.sidebarState,
236
+ sidebarState: a.sidebarState,
229
237
  target: s.value.el,
230
238
  onCloseMenu: K,
231
- onShowDeleteModal: e[9] || (e[9] = (t) => i(v).show())
232
- }, null, 8, ["eventBus", "item", "sidebarState", "target"])) : f("", !0),
233
- s.value ? (m(), g(i(Y), {
239
+ onShowDeleteModal: e[9] || (e[9] = (t) => i(b).show())
240
+ }, null, 8, ["eventBus", "item", "sidebarState", "target"])) : c("", !0),
241
+ s.value ? (u(), B(i(Y), {
234
242
  key: 1,
235
243
  size: "xxs",
236
- state: i(v),
244
+ state: i(b),
237
245
  title: `Delete ${s.value.item.title}`
238
246
  }, {
239
247
  default: r(() => [
240
248
  l(te, {
241
249
  variableName: s.value.item.title,
242
250
  warningMessage: T.value,
243
- onClose: e[10] || (e[10] = (t) => i(v).hide()),
251
+ onClose: e[10] || (e[10] = (t) => i(b).hide()),
244
252
  onDelete: z
245
253
  }, null, 8, ["variableName", "warningMessage"])
246
254
  ]),
247
255
  _: 1
248
- }, 8, ["state", "title"])) : f("", !0)
256
+ }, 8, ["state", "title"])) : c("", !0)
249
257
  ]));
250
258
  }
251
259
  });
252
260
  export {
253
- Se as default
261
+ ge as default
254
262
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DesktopTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DesktopTab.vue"],"names":[],"mappings":"AAwTA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sDAAsD,CAAA;AAG/E,KAAK,WAAW,GAAG;IACjB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAA;IACf,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB;IACnB,GAAG,EAAE,GAAG,CAAA;CACT,CAAC;;;;;;;;;;;;;;AAmXF,wBAOG"}
1
+ {"version":3,"file":"DesktopTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DesktopTab.vue"],"names":[],"mappings":"AAwTA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sDAAsD,CAAA;AAG/E,KAAK,WAAW,GAAG;IACjB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAA;IACf,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB;IACnB,GAAG,EAAE,GAAG,CAAA;CACT,CAAC;;;;;;;;;;;;;;AA6WF,wBAOG"}
@@ -42,9 +42,9 @@ export declare const ROUTES: ({
42
42
  name: string;
43
43
  path: string;
44
44
  component: import("vue").DefineComponent<RouteProps & {
45
- hideClientButton?: boolean;
45
+ options?: import("../../modal/Modal.vue.js").ModalProps["options"];
46
46
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps & {
47
- hideClientButton?: boolean;
47
+ options?: import("../../modal/Modal.vue.js").ModalProps["options"];
48
48
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
49
49
  children?: undefined;
50
50
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/DocumentCollection.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAMlE;;;;;;;GAOG;;AACH,wBAqPC"}
1
+ {"version":3,"file":"DocumentCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/DocumentCollection.vue"],"names":[],"mappings":"AAiJA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAMlE;;;;;;;GAOG;;AACH,wBAmVC"}
@@ -1,20 +1,21 @@
1
- import { defineComponent as f, computed as d, createElementBlock as c, openBlock as s, createElementVNode as e, createVNode as o, withCtx as r, unref as m, createBlock as p, resolveDynamicComponent as x, mergeProps as v } from "vue";
2
- import { ScalarButton as h } from "@scalar/components";
1
+ import { defineComponent as g, computed as f, createElementBlock as i, openBlock as u, createElementVNode as t, createVNode as o, createBlock as p, createCommentVNode as h, unref as l, withCtx as s, resolveDynamicComponent as y, mergeProps as k } from "vue";
2
+ import { ScalarFormError as w, ScalarButton as m } from "@scalar/components";
3
+ import { ScalarIconArrowLeft as b, ScalarIconFloppyDisk as S } from "@scalar/icons";
3
4
  import { LibraryIcon as _ } from "@scalar/icons/library";
4
- import { RouterView as b } from "vue-router";
5
- import y from "../../../components/IconSelector.vue.js";
6
- import w from "./components/LabelInput.vue.js";
7
- import g from "./components/Tabs.vue.js";
8
- const k = { class: "custom-scroll h-full" }, V = {
5
+ import { RouterView as C } from "vue-router";
6
+ import V from "../../../components/IconSelector.vue.js";
7
+ import B from "./components/LabelInput.vue.js";
8
+ import D from "./components/Tabs.vue.js";
9
+ const I = { class: "custom-scroll h-full" }, N = {
9
10
  key: 0,
10
11
  class: "w-full md:mx-auto md:max-w-[720px]"
11
- }, B = ["aria-label"], C = { class: "flex flex-row items-center gap-2" }, D = { class: "group relative ml-1.25" }, N = { class: "px-1.5 py-8" }, S = {
12
+ }, U = ["aria-label"], z = { class: "flex" }, E = { class: "flex flex-row items-center gap-2" }, L = { class: "group relative ml-1.25" }, $ = { class: "px-1.5 py-8" }, j = {
12
13
  key: 1,
13
14
  class: "flex w-full flex-1 items-center justify-center"
14
- }, I = {
15
+ }, F = {
15
16
  name: "DocumentCollection"
16
- }, P = /* @__PURE__ */ f({
17
- ...I,
17
+ }, J = /* @__PURE__ */ g({
18
+ ...F,
18
19
  props: {
19
20
  documentSlug: {},
20
21
  document: {},
@@ -29,31 +30,69 @@ const k = { class: "custom-scroll h-full" }, V = {
29
30
  activeWorkspace: {},
30
31
  plugins: {}
31
32
  },
32
- setup(n) {
33
- const a = n, u = d(() => a.document?.info?.title || "Untitled Document"), i = d(
34
- () => a.document?.["x-scalar-icon"] || "interface-content-folder"
35
- );
36
- return (U, t) => (s(), c("div", k, [
37
- n.document ? (s(), c("div", V, [
38
- e("div", {
39
- "aria-label": `title: ${u.value}`,
33
+ setup(a) {
34
+ const n = a, c = f(() => n.document?.info?.title || "Untitled Document"), d = f(
35
+ () => n.document?.["x-scalar-icon"] || "interface-content-folder"
36
+ ), v = () => {
37
+ n.workspaceStore.revertDocumentChanges(n.documentSlug);
38
+ }, x = () => {
39
+ n.workspaceStore.saveDocument(n.documentSlug);
40
+ };
41
+ return (T, e) => (u(), i("div", I, [
42
+ a.document ? (u(), i("div", N, [
43
+ t("div", {
44
+ "aria-label": `title: ${c.value}`,
40
45
  class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
41
46
  }, [
42
- e("div", C, [
43
- o(y, {
44
- modelValue: i.value,
47
+ a.document["x-scalar-is-dirty"] ? (u(), p(l(w), {
48
+ key: 0,
49
+ variant: "warning"
50
+ }, {
51
+ default: s(() => [
52
+ e[4] || (e[4] = t("div", null, " You have unsaved changes. Save your work to keep your changes, or undo to revert them. ", -1)),
53
+ e[5] || (e[5] = t("div", { class: "flex-1" }, null, -1)),
54
+ t("div", z, [
55
+ o(l(m), {
56
+ size: "sm",
57
+ variant: "ghost",
58
+ onClick: v
59
+ }, {
60
+ default: s(() => [
61
+ o(l(b)),
62
+ e[2] || (e[2] = t("span", null, "Undo", -1))
63
+ ]),
64
+ _: 1
65
+ }),
66
+ o(l(m), {
67
+ size: "sm",
68
+ variant: "ghost",
69
+ onClick: x
70
+ }, {
71
+ default: s(() => [
72
+ o(l(S)),
73
+ e[3] || (e[3] = t("span", null, "Save", -1))
74
+ ]),
75
+ _: 1
76
+ })
77
+ ])
78
+ ]),
79
+ _: 1
80
+ })) : h("", !0),
81
+ t("div", E, [
82
+ o(V, {
83
+ modelValue: d.value,
45
84
  placement: "bottom-start",
46
- "onUpdate:modelValue": t[0] || (t[0] = (l) => n.eventBus.emit("document:update:icon", l))
85
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => a.eventBus.emit("document:update:icon", r))
47
86
  }, {
48
- default: r(() => [
49
- o(m(h), {
87
+ default: s(() => [
88
+ o(l(m), {
50
89
  class: "hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",
51
90
  variant: "ghost"
52
91
  }, {
53
- default: r(() => [
54
- o(m(_), {
92
+ default: s(() => [
93
+ o(l(_), {
55
94
  class: "text-c-2 size-5",
56
- src: i.value,
95
+ src: d.value,
57
96
  "stroke-width": "2"
58
97
  }, null, 8, ["src"])
59
98
  ]),
@@ -63,33 +102,33 @@ const k = { class: "custom-scroll h-full" }, V = {
63
102
  _: 1
64
103
  }, 8, ["modelValue"])
65
104
  ]),
66
- e("div", D, [
67
- o(w, {
105
+ t("div", L, [
106
+ o(B, {
68
107
  class: "text-xl font-bold",
69
108
  inputId: "documentName",
70
- modelValue: u.value,
71
- "onUpdate:modelValue": t[1] || (t[1] = (l) => n.eventBus.emit("document:update:info", { title: l }))
109
+ modelValue: c.value,
110
+ "onUpdate:modelValue": e[1] || (e[1] = (r) => a.eventBus.emit("document:update:info", { title: r }))
72
111
  }, null, 8, ["modelValue"])
73
112
  ])
74
- ], 8, B),
75
- o(g, { type: "document" }),
76
- e("div", N, [
77
- o(m(b), null, {
78
- default: r(({ Component: l }) => [
79
- (s(), p(x(l), v(a, { collectionType: "document" }), null, 16))
113
+ ], 8, U),
114
+ o(D, { type: "document" }),
115
+ t("div", $, [
116
+ o(l(C), null, {
117
+ default: s(({ Component: r }) => [
118
+ (u(), p(y(r), k(n, { collectionType: "document" }), null, 16))
80
119
  ]),
81
120
  _: 1
82
121
  })
83
122
  ])
84
- ])) : (s(), c("div", S, [...t[2] || (t[2] = [
85
- e("div", { class: "flex h-full flex-col items-center justify-center" }, [
86
- e("h1", { class: "text-2xl font-bold" }, "Document not found"),
87
- e("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
123
+ ])) : (u(), i("div", j, [...e[6] || (e[6] = [
124
+ t("div", { class: "flex h-full flex-col items-center justify-center" }, [
125
+ t("h1", { class: "text-2xl font-bold" }, "Document not found"),
126
+ t("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
88
127
  ], -1)
89
128
  ])]))
90
129
  ]));
91
130
  }
92
131
  });
93
132
  export {
94
- P as default
133
+ J as default
95
134
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Settings.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAwNA,wBAMG"}
1
+ {"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Settings.vue"],"names":[],"mappings":";;;;;;;;;;;;;AA+MA,wBAMG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as s, createBlock as o, openBlock as c, unref as a } from "vue";
2
- import { useRouter as i } from "vue-router";
1
+ import { defineComponent as i, createBlock as o, openBlock as c, unref as a } from "vue";
2
+ import { useRouter as s } from "vue-router";
3
3
  import h from "../../settings/DocumentSettings.vue.js";
4
4
  import k from "../../settings/CollectionSettings.vue.js";
5
- const y = /* @__PURE__ */ s({
5
+ const y = /* @__PURE__ */ i({
6
6
  __name: "Settings",
7
7
  props: {
8
8
  documentSlug: {},
@@ -24,11 +24,11 @@ const y = /* @__PURE__ */ s({
24
24
  e.eventBus.emit("document:update:watch-mode", t);
25
25
  }, r = (t) => {
26
26
  e.eventBus.emit("workspace:update:theme", t);
27
- }, m = (t) => {
28
- e.eventBus.emit("workspace:update:active-proxy", t);
29
27
  }, d = (t) => {
28
+ e.eventBus.emit("workspace:update:active-proxy", t);
29
+ }, m = (t) => {
30
30
  e.eventBus.emit("workspace:update:color-mode", t);
31
- }, l = i(), u = () => {
31
+ }, l = s(), u = () => {
32
32
  e.workspaceStore.deleteDocument(e.documentSlug), l.push({
33
33
  name: "workspace.environment",
34
34
  params: {
@@ -49,11 +49,10 @@ const y = /* @__PURE__ */ s({
49
49
  activeProxyUrl: e.workspaceStore.workspace["x-scalar-active-proxy"],
50
50
  activeThemeId: e.workspaceStore.workspace["x-scalar-theme"] ?? "default",
51
51
  colorMode: e.workspaceStore.workspace["x-scalar-color-mode"] ?? "system",
52
- customProxyUrl: e.workspaceStore.config["x-scalar-reference-config"].settings.proxyUrl,
53
- "onUpdate:colorMode": d,
54
- "onUpdate:proxyUrl": m,
52
+ "onUpdate:colorMode": m,
53
+ "onUpdate:proxyUrl": d,
55
54
  "onUpdate:themeId": r
56
- }, null, 8, ["activeProxyUrl", "activeThemeId", "colorMode", "customProxyUrl"]));
55
+ }, null, 8, ["activeProxyUrl", "activeThemeId", "colorMode"]));
57
56
  }
58
57
  });
59
58
  export {
@@ -20,9 +20,7 @@ import type { WorkspaceStore } from '@scalar/workspace-store/client';
20
20
  declare const _default: import("vue").DefineComponent<{
21
21
  /** The workspace store for adding documents */
22
22
  workspaceStore: WorkspaceStore;
23
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
- [x: string]: any;
25
- } & {
23
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
26
24
  [x: string]: any;
27
25
  }, string, import("vue").PublicProps, Readonly<{
28
26
  /** The workspace store for adding documents */
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteImport.vue"],"names":[],"mappings":"AAmYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAmBpE;;;;;;;;;;;;;;;;;GAiBG;;IAMD,+CAA+C;oBAC/B,cAAc;;;;;;IAD9B,+CAA+C;oBAC/B,cAAc;;;;AANhC,wBAogBC"}
1
+ {"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteImport.vue"],"names":[],"mappings":"AAmYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAmBpE;;;;;;;;;;;;;;;;;GAiBG;;IAMD,+CAA+C;oBAC/B,cAAc;;;;IAD9B,+CAA+C;oBAC/B,cAAc;;;;AANhC,wBAogBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/TheCommandPalette.vue"],"names":[],"mappings":"AAoXA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAUvE,OAAO,KAAK,EAKV,4BAA4B,EAC7B,MAAM,+DAA+D,CAAA;AAItE;;;;;;;;;;;;;;;;;;;;GAoBG;;IAGD,gDAAgD;kBAClC,4BAA4B;IAC1C,iEAAiE;oBACjD,cAAc;IAC9B,8CAA8C;cACpC,iBAAiB;;IAL3B,gDAAgD;kBAClC,4BAA4B;IAC1C,iEAAiE;oBACjD,cAAc;IAC9B,8CAA8C;cACpC,iBAAiB;;AAP7B,wBA8dC"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/TheCommandPalette.vue"],"names":[],"mappings":"AAoXA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAUvE,OAAO,KAAK,EAKV,4BAA4B,EAC7B,MAAM,+DAA+D,CAAA;AAItE;;;;;;;;;;;;;;;;;;;;GAoBG;;IAGD,gDAAgD;kBAClC,4BAA4B;IAC1C,iEAAiE;oBACjD,cAAc;IAC9B,8CAA8C;cACpC,iBAAiB;;IAL3B,gDAAgD;kBAClC,4BAA4B;IAC1C,iEAAiE;oBACjD,cAAc;IAC9B,8CAA8C;cACpC,iBAAiB;;AAP7B,wBA6dC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WatchModeToggle.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/WatchModeToggle.vue"],"names":[],"mappings":"AAuEA;;;;;;;;;;;;;;;GAeG;;IAGD,8CAA8C;gBAClC,OAAO;IACnB,iEAAiE;eACtD,OAAO;;;;IAHlB,8CAA8C;gBAClC,OAAO;IACnB,iEAAiE;eACtD,OAAO;;;;AALpB,wBA8GC"}
1
+ {"version":3,"file":"WatchModeToggle.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/WatchModeToggle.vue"],"names":[],"mappings":"AAuEA;;;;;;;;;;;;;;;GAeG;;IAGD,8CAA8C;gBAClC,OAAO;IACnB,iEAAiE;eACtD,OAAO;;;;IAHlB,8CAA8C;gBAClC,OAAO;IACnB,iEAAiE;eACtD,OAAO;;;;AALpB,wBA6GC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariablesDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"names":[],"mappings":"AAkKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAKnH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAqDiC,IAAI,GAAG,MAAM;;;;;;;;;AA0OhD,wBAQG"}
1
+ {"version":3,"file":"EnvironmentVariablesDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"names":[],"mappings":"AAkKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAKnH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAqDiC,IAAI,GAAG,MAAM;;;;;;;;;AAyOhD,wBAQG"}
@@ -27,7 +27,7 @@ export type ModalProps = {
27
27
  /** Api client plugins to include in the modal */
28
28
  plugins: ClientPlugin[];
29
29
  /** Subset of the configuration options for the modal */
30
- options: MaybeRefOrGetter<Partial<Pick<ApiReferenceConfigurationRaw, 'authentication' | 'hideClientButton'>>>;
30
+ options: MaybeRefOrGetter<Partial<Pick<ApiReferenceConfigurationRaw, 'authentication' | 'baseServerURL' | 'hideClientButton' | 'hiddenClients' | 'servers'>>>;
31
31
  };
32
32
  /**
33
33
  * Scalar Api Client Modal
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AAsYA,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAExE,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAA;AAIZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAIxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKxD,MAAM,MAAM,UAAU,GAAG;IACvB,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,iDAAiD;IACjD,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3C,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAA;IACtB,0DAA0D;IAC1D,YAAY,EAAE,qBAAqB,CAAA;IACnC,iDAAiD;IACjD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CACvB,OAAO,CACL,IAAI,CAAC,4BAA4B,EAAE,gBAAgB,GAAG,kBAAkB,CAAC,CAC1E,CACF,CAAA;CACF,CAAA;AAED;;;;GAIG;;;;;AACH,wBAsWC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AA6YA,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAExE,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAA;AAIZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAIxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKxD,MAAM,MAAM,UAAU,GAAG;IACvB,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,iDAAiD;IACjD,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3C,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAA;IACtB,0DAA0D;IAC1D,YAAY,EAAE,qBAAqB,CAAA;IACnC,iDAAiD;IACjD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CACvB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,SAAS,CACZ,CACF,CACF,CAAA;CACF,CAAA;AAED;;;;GAIG;;;;;AACH,wBAqWC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Modal.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6c81e410"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9f4696a7"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };