@scalar/api-client 2.26.2 → 2.29.1

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 (164) hide show
  1. package/CHANGELOG.md +218 -0
  2. package/dist/components/Server/ServerSelector.vue.js +6 -6
  3. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
  4. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  5. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  6. package/dist/libs/local-storage.js +3 -3
  7. package/dist/style.css +1 -1
  8. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  9. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
  10. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
  12. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
  13. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
  14. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
  15. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  16. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +26 -26
  17. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  18. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  19. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +88 -103
  20. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -0
  21. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -0
  23. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  24. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +1 -1
  25. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
  26. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +20 -19
  27. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  28. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +7 -7
  29. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  31. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +2 -0
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +52 -54
  35. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
  36. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  37. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +106 -86
  38. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
  41. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
  42. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  43. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
  44. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
  45. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
  46. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
  47. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
  48. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
  49. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
  50. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
  51. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
  52. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
  53. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
  54. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
  55. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
  56. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
  57. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +4 -3
  58. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  59. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +32 -40
  60. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  61. package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
  62. package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
  63. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  64. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  65. package/dist/v2/components/sidebar/Sidebar.vue.js +25 -24
  66. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
  67. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  68. package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
  69. package/dist/v2/features/app/App.vue.d.ts +5 -0
  70. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  71. package/dist/v2/features/app/App.vue.js +80 -78
  72. package/dist/v2/features/app/app-events.d.ts +2 -1
  73. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  74. package/dist/v2/features/app/app-events.js +89 -64
  75. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  76. package/dist/v2/features/app/app-state.js +172 -151
  77. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  78. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  79. package/dist/v2/features/app/components/AppSidebar.vue2.js +99 -97
  80. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  81. package/dist/v2/features/app/components/DesktopTabs.vue.js +4 -4
  82. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -1
  83. package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
  84. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +9 -9
  85. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
  86. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +71 -43
  87. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +11 -1
  88. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  89. package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
  90. package/dist/v2/features/app/helpers/routes.d.ts +2 -0
  91. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  92. package/dist/v2/features/app/helpers/routes.js +11 -11
  93. package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
  94. package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
  95. package/dist/v2/features/app/hooks/use-theme.js +34 -0
  96. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  97. package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
  98. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -6
  99. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  100. package/dist/v2/features/collection/WorkspaceCollection.vue.js +41 -22
  101. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  102. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  103. package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
  104. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  105. package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
  106. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  107. package/dist/v2/features/collection/components/Environment.vue.js +27 -15
  108. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +3 -0
  109. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
  110. package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
  111. package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -16
  112. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  113. package/dist/v2/features/collection/components/Overview.vue.js +2 -2
  114. package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
  115. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  116. package/dist/v2/features/collection/components/Servers.vue.js +93 -88
  117. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  118. package/dist/v2/features/collection/components/Settings.vue.js +19 -17
  119. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +7 -2
  120. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  121. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +70 -71
  122. package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.d.ts → CommandPaletteOpenApiDocument.vue.d.ts} +3 -3
  123. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +1 -0
  124. package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.js → CommandPaletteOpenApiDocument.vue.js} +15 -15
  125. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +4 -0
  126. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +2 -2
  127. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
  128. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +10 -10
  129. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +27 -5
  130. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
  131. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +80 -53
  132. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +34 -9
  133. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  134. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +50 -44
  135. package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
  136. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  137. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
  138. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
  139. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  140. package/dist/v2/features/modal/Modal.vue.js +15 -15
  141. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  142. package/dist/v2/features/operation/Operation.vue.js +30 -33
  143. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
  144. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  145. package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
  146. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  147. package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
  148. package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
  149. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
  150. package/dist/v2/features/settings/components/Section.vue.js +26 -15
  151. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
  152. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
  153. package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
  154. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  155. package/dist/v2/helpers/handle-hotkeys.js +2 -2
  156. package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
  157. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
  158. package/dist/v2/hooks/use-global-hot-keys.js +8 -6
  159. package/dist/v2/workspace-events.d.ts.map +1 -1
  160. package/dist/v2/workspace-events.js +132 -115
  161. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  162. package/package.json +17 -16
  163. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +0 -1
  164. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +0 -4
@@ -1,55 +1,59 @@
1
- import { defineComponent as y, computed as p, createBlock as d, openBlock as i, unref as t, withCtx as m, createElementVNode as l, createVNode as r, createElementBlock as u, renderSlot as v, createCommentVNode as k, normalizeProps as T, guardReactiveProps as W } from "vue";
2
- import { useModal as x, ScalarTeleportRoot as g } from "@scalar/components";
3
- import { getThemeStyles as B } from "@scalar/themes";
1
+ import { defineComponent as b, computed as T, createBlock as m, openBlock as c, unref as t, withCtx as p, createElementVNode as i, createVNode as n, createElementBlock as d, renderSlot as v, createCommentVNode as g, normalizeProps as W, guardReactiveProps as y } from "vue";
2
+ import { useModal as x, ScalarTeleportRoot as B } from "@scalar/components";
4
3
  import { ScalarToasts as C } from "@scalar/use-toasts";
5
- import { extensions as _ } from "@scalar/workspace-store/schemas/extensions";
6
- import { RouterView as E } from "vue-router";
4
+ import { extensions as E } from "@scalar/workspace-store/schemas/extensions";
5
+ import { RouterView as O } from "vue-router";
7
6
  import A from "./components/CreateWorkspaceModal.vue.js";
8
- import O from "./components/SplashScreen.vue.js";
9
- import { useDocumentWatcher as M } from "./hooks/use-document-watcher.js";
10
- import U from "../command-palette/TheCommandPalette.vue.js";
11
- import { useColorMode as D } from "../../hooks/use-color-mode.js";
12
- import { useGlobalHotKeys as I } from "../../hooks/use-global-hot-keys.js";
13
- import N from "./components/AppSidebar.vue.js";
14
- import P from "./components/DesktopTabs.vue.js";
15
- import $ from "./components/DownloadAppButton.vue.js";
16
- import { mergeSecurity as H } from "../../blocks/scalar-auth-selector-block/helpers/merge-security.js";
17
- const L = ["innerHTML"], V = { key: 0 }, F = { class: "flex h-dvh w-dvw flex-1 flex-col" }, R = { class: "flex min-h-0 flex-1 flex-row" }, G = { class: "flex flex-1 flex-col" }, j = {
18
- key: 0,
19
- class: "flex h-12 items-center justify-end border-b p-2"
20
- }, z = { class: "bg-b-1 min-h-0 flex-1" }, K = { key: 1 }, q = {}, de = /* @__PURE__ */ y({
21
- ...q,
7
+ import M from "./components/SplashScreen.vue.js";
8
+ import { useDocumentWatcher as U } from "./hooks/use-document-watcher.js";
9
+ import { useTheme as _ } from "./hooks/use-theme.js";
10
+ import D from "../command-palette/TheCommandPalette.vue.js";
11
+ import { useColorMode as I } from "../../hooks/use-color-mode.js";
12
+ import { useGlobalHotKeys as N } from "../../hooks/use-global-hot-keys.js";
13
+ import P from "./components/AppSidebar.vue.js";
14
+ import H from "./components/DesktopTabs.vue.js";
15
+ import { mergeSecurity as L } from "../../blocks/scalar-auth-selector-block/helpers/merge-security.js";
16
+ const V = ["innerHTML"], $ = { key: 0 }, F = { class: "flex h-dvh w-dvw flex-1 flex-col" }, R = { class: "flex min-h-0 flex-1 flex-row" }, G = { class: "flex flex-1 flex-col" }, z = { class: "bg-b-1 min-h-0 flex-1" }, K = { key: 1 }, j = {}, ue = /* @__PURE__ */ b({
17
+ ...j,
22
18
  __name: "App",
23
19
  props: {
24
20
  layout: {},
25
21
  plugins: { default: () => [] },
22
+ customThemes: { default: () => [] },
23
+ fallbackThemeSlug: { default: "default" },
26
24
  getAppState: { type: Function },
27
25
  getCommandPaletteState: { type: Function }
28
26
  },
29
- setup(s, { expose: f }) {
30
- f({
31
- openCreateWorkspace: () => c.show()
27
+ setup(o, { expose: k }) {
28
+ k({
29
+ openCreateWorkspace: () => l.show()
32
30
  });
33
- const e = s.getAppState(), w = s.getCommandPaletteState();
34
- typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), I(e.eventBus, s.layout), M({
35
- documentName: () => e.store.value?.workspace[_.workspace.activeDocument],
31
+ const e = o.getAppState(), f = o.getCommandPaletteState();
32
+ typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), N(e.eventBus, o.layout), U({
33
+ documentName: () => e.store.value?.workspace[E.workspace.activeDocument],
36
34
  store: e.store,
37
35
  initialTimeout: 5e3
38
- }), D({ workspaceStore: e.store });
39
- const S = p(() => {
40
- if (e.store.value === null)
41
- return "";
42
- const a = e.store.value.workspace["x-scalar-theme"];
43
- return a ? `<style>${B(a)}</style>` : "";
44
- }), h = (a) => {
45
- if (!a)
36
+ }), I({ workspaceStore: e.store });
37
+ const { themeStyleTag: w } = _({
38
+ fallbackThemeSlug: () => o.fallbackThemeSlug,
39
+ customThemes: () => o.customThemes,
40
+ store: e.store
41
+ }), u = (s, a) => {
42
+ e.eventBus.emit("ui:navigate", {
43
+ page: "workspace",
44
+ path: "environment",
45
+ namespace: s,
46
+ workspaceSlug: a
47
+ });
48
+ }, S = (s) => {
49
+ if (!s)
46
50
  return;
47
- const o = e.workspace.workspaceList.value?.find(
48
- (n) => n.id === a
51
+ const a = e.workspace.workspaceList.value?.find(
52
+ (r) => r.id === s
49
53
  );
50
- o && e.workspace.navigateToWorkspace(o.namespace, o.slug);
51
- }, c = x(), b = p(() => {
52
- const a = e.store.value?.auth ? H(
54
+ a && u(a.namespace, a.slug);
55
+ }, l = x(), h = T(() => {
56
+ const s = e.store.value?.auth ? L(
53
57
  e.document.value?.components?.securitySchemes ?? {},
54
58
  {},
55
59
  e.store.value.auth,
@@ -61,73 +65,71 @@ const L = ["innerHTML"], V = { key: 0 }, F = { class: "flex h-dvh w-dvw flex-1 f
61
65
  environment: e.environment.value,
62
66
  eventBus: e.eventBus,
63
67
  exampleName: e.activeEntities.exampleName.value,
64
- layout: s.layout,
68
+ layout: o.layout,
65
69
  method: e.activeEntities.method.value,
66
70
  path: e.activeEntities.path.value,
67
71
  workspaceStore: e.store.value,
68
72
  activeWorkspace: e.workspace.activeWorkspace.value,
69
- plugins: s.plugins,
70
- securitySchemes: a
73
+ plugins: o.plugins,
74
+ securitySchemes: s,
75
+ customThemes: o.customThemes
71
76
  };
72
77
  });
73
- return (a, o) => (i(), d(t(g), null, {
74
- default: m(() => [
75
- l("div", { innerHTML: S.value }, null, 8, L),
76
- r(t(C)),
77
- t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (i(), u("main", V, [
78
- l("div", F, [
79
- s.layout === "desktop" ? (i(), d(P, {
80
- key: 0,
81
- activeTabIndex: t(e).tabs.activeTabIndex.value,
82
- eventBus: t(e).eventBus,
83
- tabs: t(e).tabs.state.value
84
- }, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : k("", !0),
85
- l("div", R, [
86
- r(N, {
78
+ return (s, a) => (c(), m(t(B), null, {
79
+ default: p(() => [
80
+ i("div", { innerHTML: t(w) }, null, 8, V),
81
+ n(t(C)),
82
+ t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (c(), d("main", $, [
83
+ i("div", F, [
84
+ i("div", R, [
85
+ n(P, {
87
86
  isSidebarOpen: t(e).sidebar.isOpen.value,
88
- "onUpdate:isSidebarOpen": o[0] || (o[0] = (n) => t(e).sidebar.isOpen.value = n),
87
+ "onUpdate:isSidebarOpen": a[0] || (a[0] = (r) => t(e).sidebar.isOpen.value = r),
89
88
  activeWorkspace: t(e).workspace.activeWorkspace.value,
90
89
  eventBus: t(e).eventBus,
91
90
  isWorkspaceOpen: t(e).workspace.isOpen.value,
92
- layout: s.layout,
91
+ layout: o.layout,
93
92
  sidebarState: t(e).sidebar.state,
94
93
  sidebarWidth: t(e).sidebar.width.value,
95
94
  store: t(e).store.value,
96
95
  workspaces: t(e).workspace.workspaceGroups.value,
97
- "onClick:workspace": t(e).workspace.navigateToWorkspace,
98
- "onCreate:workspace": o[1] || (o[1] = (n) => t(c).show()),
99
- "onSelect:workspace": h,
96
+ "onClick:workspace": u,
97
+ "onCreate:workspace": a[1] || (a[1] = (r) => t(l).show()),
98
+ "onSelect:workspace": S,
100
99
  onSelectItem: t(e).sidebar.handleSelectItem,
101
100
  "onUpdate:sidebarWidth": t(e).sidebar.handleSidebarWidthUpdate
102
101
  }, {
103
- sidebarMenuActions: m(() => [
104
- v(a.$slots, "sidebar-menu-actions")
102
+ sidebarMenuActions: p(() => [
103
+ v(s.$slots, "sidebar-menu-actions")
105
104
  ]),
106
105
  _: 3
107
- }, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onClick:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
108
- l("div", G, [
109
- s.layout === "web" ? (i(), u("nav", j, [
110
- r($)
111
- ])) : k("", !0),
112
- l("div", z, [
113
- r(t(E), T(W(b.value)), null, 16)
106
+ }, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onSelectItem", "onUpdate:sidebarWidth"]),
107
+ i("div", G, [
108
+ o.layout === "desktop" ? (c(), m(H, {
109
+ key: 0,
110
+ activeTabIndex: t(e).tabs.activeTabIndex.value,
111
+ eventBus: t(e).eventBus,
112
+ tabs: t(e).tabs.state.value
113
+ }, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : g("", !0),
114
+ i("div", z, [
115
+ n(t(O), W(y(h.value)), null, 16)
114
116
  ])
115
117
  ])
116
118
  ])
117
119
  ]),
118
- v(a.$slots, "create-workspace", { state: t(c) }, () => [
119
- r(A, {
120
- state: t(c),
121
- "onCreate:workspace": o[2] || (o[2] = (n) => t(e).workspace.create(n))
120
+ v(s.$slots, "create-workspace", { state: t(l) }, () => [
121
+ n(A, {
122
+ state: t(l),
123
+ "onCreate:workspace": a[2] || (a[2] = (r) => t(e).workspace.create(r))
122
124
  }, null, 8, ["state"])
123
125
  ]),
124
- r(U, {
126
+ n(D, {
125
127
  eventBus: t(e).eventBus,
126
- paletteState: t(w),
128
+ paletteState: t(f),
127
129
  workspaceStore: t(e).store.value
128
130
  }, null, 8, ["eventBus", "paletteState", "workspaceStore"])
129
- ])) : (i(), u("main", K, [
130
- r(O)
131
+ ])) : (c(), d("main", K, [
132
+ n(M)
131
133
  ]))
132
134
  ]),
133
135
  _: 3
@@ -135,5 +137,5 @@ const L = ["innerHTML"], V = { key: 0 }, F = { class: "flex h-dvh w-dvw flex-1 f
135
137
  }
136
138
  });
137
139
  export {
138
- de as default
140
+ ue as default
139
141
  };
@@ -2,7 +2,7 @@ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
2
  import type { OperationExampleMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
3
3
  import { type ShallowRef } from 'vue';
4
4
  import { type Router } from 'vue-router';
5
- export declare function initializeAppEventHandlers({ eventBus, store, router, rebuildSidebar, navigateToCurrentTab, onSelectSidebarItem, onAfterExampleCreation, onCopyTabUrl, onToggleSidebar, }: {
5
+ export declare function initializeAppEventHandlers({ eventBus, store, router, rebuildSidebar, navigateToCurrentTab, onSelectSidebarItem, onAfterExampleCreation, onCopyTabUrl, onToggleSidebar, renameWorkspace, }: {
6
6
  eventBus: WorkspaceEventBus;
7
7
  store: ShallowRef<WorkspaceStore | null>;
8
8
  router: Router;
@@ -12,5 +12,6 @@ export declare function initializeAppEventHandlers({ eventBus, store, router, re
12
12
  onAfterExampleCreation: (o: OperationExampleMeta) => void;
13
13
  onCopyTabUrl: (tabIndex: number) => void;
14
14
  onToggleSidebar: () => void;
15
+ renameWorkspace: (name: string) => Promise<void>;
15
16
  }): void;
16
17
  //# sourceMappingURL=app-events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-events.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAC7F,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAiD,KAAK,MAAM,EAAE,MAAM,YAAY,CAAA;AAKvF,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,KAAK,EACL,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,EACZ,eAAe,GAChB,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACxC,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,sBAAsB,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,QAkRA"}
1
+ {"version":3,"file":"app-events.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAC7F,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAiD,KAAK,MAAM,EAAE,MAAM,YAAY,CAAA;AAKvF,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,KAAK,EACL,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACxC,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,sBAAsB,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACjD,QA6TA"}
@@ -1,33 +1,34 @@
1
- import { computed as x } from "vue";
2
- import { NavigationFailureType as w } from "vue-router";
3
- import { initializeWorkspaceEventHandlers as g } from "../../workspace-events.js";
4
- function A({
5
- eventBus: s,
6
- store: r,
7
- router: n,
1
+ import { computed as w } from "vue";
2
+ import { NavigationFailureType as v } from "vue-router";
3
+ import { initializeWorkspaceEventHandlers as k } from "../../workspace-events.js";
4
+ function S({
5
+ eventBus: r,
6
+ store: f,
7
+ router: m,
8
8
  rebuildSidebar: u,
9
- navigateToCurrentTab: m,
10
- onSelectSidebarItem: f,
9
+ navigateToCurrentTab: o,
10
+ onSelectSidebarItem: d,
11
11
  onAfterExampleCreation: i,
12
- onCopyTabUrl: h,
13
- onToggleSidebar: l
12
+ onCopyTabUrl: l,
13
+ onToggleSidebar: x,
14
+ renameWorkspace: h
14
15
  }) {
15
- const o = x(() => n.currentRoute?.value), p = ({
16
+ const s = w(() => m.currentRoute?.value), p = ({
16
17
  documentName: e,
17
- path: a,
18
+ path: c,
18
19
  method: t,
19
- exampleName: c
20
- }) => !(e !== void 0 && e !== o.value?.params.documentSlug || a !== void 0 && encodeURIComponent(a) !== o.value?.params.pathEncoded || t !== void 0 && t !== o.value?.params.method || c !== void 0 && c !== o.value?.params.exampleName);
21
- g({
22
- eventBus: s,
23
- store: r,
20
+ exampleName: a
21
+ }) => !(e !== void 0 && e !== s.value?.params.documentSlug || c !== void 0 && encodeURIComponent(c) !== s.value?.params.pathEncoded || t !== void 0 && t !== s.value?.params.method || a !== void 0 && a !== s.value?.params.exampleName);
22
+ k({
23
+ eventBus: r,
24
+ store: f,
24
25
  hooks: {
25
26
  //------------------------------------------------------------------------------------
26
27
  // Document Related Hooks
27
28
  //------------------------------------------------------------------------------------
28
29
  "document:delete:document": {
29
30
  onAfterExecute: async (e) => {
30
- o?.value?.params.documentSlug === e.name && await n.push({
31
+ s?.value?.params.documentSlug === e.name && await m.push({
31
32
  name: "workspace.environment"
32
33
  });
33
34
  }
@@ -38,15 +39,15 @@ function A({
38
39
  "operation:update:pathMethod": {
39
40
  onBeforeExecute: (e) => ({
40
41
  ...e,
41
- callback: async (a) => {
42
- a === "success" && (await n.replace({
42
+ callback: async (c) => {
43
+ c === "success" && (await m.replace({
43
44
  name: "example",
44
45
  params: {
45
46
  method: e.payload.method,
46
47
  pathEncoded: encodeURIComponent(e.payload.path),
47
- exampleName: o.value?.params.exampleName
48
+ exampleName: s.value?.params.exampleName
48
49
  }
49
- }), u(r.value?.workspace.activeDocument?.["x-scalar-navigation"]?.name)), e.callback(a);
50
+ }), u(f.value?.workspace.activeDocument?.["x-scalar-navigation"]?.name)), e.callback(c);
50
51
  }
51
52
  })
52
53
  },
@@ -63,17 +64,30 @@ function A({
63
64
  onAfterExecute: async (e) => {
64
65
  u(e.documentName);
65
66
  const {
66
- documentName: a,
67
- meta: { path: t, method: c }
67
+ documentName: c,
68
+ meta: { path: t, method: a }
68
69
  } = e;
69
70
  p({
70
- documentName: a,
71
+ documentName: c,
71
72
  path: t,
72
- method: c
73
- }) && await n.replace({
73
+ method: a
74
+ }) && await m.replace({
74
75
  name: "document.overview",
75
76
  params: {
76
- documentSlug: a
77
+ documentSlug: c
78
+ }
79
+ });
80
+ }
81
+ },
82
+ "operation:create:draft-example": {
83
+ onAfterExecute: async (e) => {
84
+ i({ ...e.meta, exampleKey: e.exampleName }), await m.push({
85
+ name: "example",
86
+ params: {
87
+ documentSlug: e.documentName,
88
+ pathEncoded: encodeURIComponent(e.meta.path),
89
+ method: e.meta.method,
90
+ exampleName: e.exampleName
77
91
  }
78
92
  });
79
93
  }
@@ -82,20 +96,20 @@ function A({
82
96
  onAfterExecute: async (e) => {
83
97
  u(e.documentName);
84
98
  const {
85
- documentName: a,
86
- meta: { path: t, method: c, exampleKey: d }
99
+ documentName: c,
100
+ meta: { path: t, method: a, exampleKey: n }
87
101
  } = e;
88
102
  p({
89
- documentName: a,
103
+ documentName: c,
90
104
  path: t,
91
- method: c,
92
- exampleName: d
93
- }) && await n.replace({
105
+ method: a,
106
+ exampleName: n
107
+ }) && await m.replace({
94
108
  name: "example",
95
109
  params: {
96
110
  pathEncoded: encodeURIComponent(t),
97
- method: c,
98
- documentSlug: a,
111
+ method: a,
112
+ documentSlug: c,
99
113
  exampleName: "default"
100
114
  }
101
115
  });
@@ -116,6 +130,17 @@ function A({
116
130
  "tag:create:tag": {
117
131
  onAfterExecute: (e) => u(e.documentName)
118
132
  },
133
+ "tag:edit:tag": {
134
+ onAfterExecute: async (e) => {
135
+ u(e.documentName), e.tag.children?.some(
136
+ (t) => t.type === "operation" && p({
137
+ documentName: e.documentName,
138
+ path: t.path,
139
+ method: t.method
140
+ })
141
+ ) && await m.replace({ ...s.value });
142
+ }
143
+ },
119
144
  "tag:delete:tag": {
120
145
  onAfterExecute: (e) => u(e.documentName)
121
146
  },
@@ -123,64 +148,64 @@ function A({
123
148
  // Tabs Related Event Hooks
124
149
  //------------------------------------------------------------------------------------
125
150
  "tabs:add:tab": {
126
- onAfterExecute: m
151
+ onAfterExecute: o
127
152
  },
128
153
  "tabs:close:tab": {
129
- onAfterExecute: m
154
+ onAfterExecute: o
130
155
  },
131
156
  "tabs:focus:tab": {
132
- onAfterExecute: m
157
+ onAfterExecute: o
133
158
  },
134
159
  "tabs:focus:tab-last": {
135
- onAfterExecute: m
160
+ onAfterExecute: o
136
161
  },
137
162
  "tabs:navigate:previous": {
138
- onAfterExecute: m
163
+ onAfterExecute: o
139
164
  },
140
165
  "tabs:navigate:next": {
141
- onAfterExecute: m
166
+ onAfterExecute: o
142
167
  },
143
168
  "tabs:update:tabs": {
144
- onAfterExecute: m
169
+ onAfterExecute: o
145
170
  }
146
171
  }
147
- }), s.on("scroll-to:nav-item", ({ id: e }) => f(e)), s.on("ui:toggle:sidebar", l), s.on("ui:navigate", async (e) => {
148
- const a = (t) => {
149
- if (!t)
172
+ }), r.on("workspace:update:name", (e) => h(e)), r.on("scroll-to:nav-item", ({ id: e }) => d(e)), r.on("ui:toggle:sidebar", x), r.on("ui:navigate", async (e) => {
173
+ const { replace: c = !1 } = e, t = c ? m.replace : m.push, a = (n) => {
174
+ if (!n)
150
175
  return e.callback?.("success");
151
- const c = w.duplicated;
152
- return t.type !== c ? e.callback?.("error") : e.callback?.("success");
176
+ const g = v.duplicated;
177
+ return n.type !== g ? e.callback?.("error") : e.callback?.("success");
153
178
  };
154
179
  if (e.page === "document") {
155
- const t = {
180
+ const n = {
156
181
  documentSlug: e.documentSlug,
157
182
  workspaceSlug: e.workspaceSlug,
158
183
  namespace: e.namespace
159
184
  };
160
185
  if (e.path === "overview")
161
- return a(await n.push({ name: "document.overview", params: t }));
186
+ return a(await t({ name: "document.overview", params: n }));
162
187
  if (e.path === "servers")
163
- return a(await n.push({ name: "document.servers", params: t }));
188
+ return a(await t({ name: "document.servers", params: n }));
164
189
  if (e.path === "environment")
165
- return a(await n.push({ name: "document.environment", params: t }));
190
+ return a(await t({ name: "document.environment", params: n }));
166
191
  if (e.path === "authentication")
167
- return a(await n.push({ name: "document.authentication", params: t }));
192
+ return a(await t({ name: "document.authentication", params: n }));
168
193
  if (e.path === "cookies")
169
- return a(await n.push({ name: "document.cookies", params: t }));
194
+ return a(await t({ name: "document.cookies", params: n }));
170
195
  if (e.path === "settings")
171
- return a(await n.push({ name: "document.settings", params: t }));
196
+ return a(await t({ name: "document.settings", params: n }));
172
197
  }
173
198
  if (e.page === "workspace") {
174
- const t = { workspaceSlug: e.workspaceSlug, namespace: e.namespace };
199
+ const n = { workspaceSlug: e.workspaceSlug, namespace: e.namespace };
175
200
  if (e.path === "environment")
176
- return a(await n.push({ name: "workspace.environment", params: t }));
201
+ return a(await t({ name: "workspace.environment", params: n }));
177
202
  if (e.path === "cookies")
178
- return a(await n.push({ name: "workspace.cookies", params: t }));
203
+ return a(await t({ name: "workspace.cookies", params: n }));
179
204
  if (e.path === "settings")
180
- return a(await n.push({ name: "workspace.settings", params: t }));
205
+ return a(await t({ name: "workspace.settings", params: n }));
181
206
  }
182
207
  if (e.page === "example") {
183
- const t = {
208
+ const n = {
184
209
  namespace: e.namespace,
185
210
  workspaceSlug: e.workspaceSlug,
186
211
  documentSlug: e.documentSlug,
@@ -188,10 +213,10 @@ function A({
188
213
  method: e.method,
189
214
  exampleName: e.exampleName
190
215
  };
191
- return a(await n.push({ name: "example", params: t }));
216
+ return a(await t({ name: "example", params: n }));
192
217
  }
193
- }), s.on("tabs:copy:url", (e) => h(e.index));
218
+ }), r.on("tabs:copy:url", (e) => l(e.index));
194
219
  }
195
220
  export {
196
- A as initializeAppEventHandlers
221
+ S as initializeAppEventHandlers
197
222
  };
@@ -1 +1 @@
1
- {"version":3,"file":"app-state.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,M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