@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,33 +1,33 @@
1
1
  import { computed as E } from "vue";
2
2
  import { initializeWorkspaceEventHandlers as h } from "../../workspace-events.js";
3
3
  function g({
4
- eventBus: n,
5
- store: l,
6
- router: m,
4
+ eventBus: o,
5
+ store: r,
6
+ router: c,
7
7
  rebuildSidebar: p,
8
- navigateToCurrentTab: a,
8
+ navigateToCurrentTab: n,
9
9
  onSelectSidebarItem: i,
10
10
  onAfterExampleCreation: s,
11
- onOpenCommandPalette: r,
11
+ onOpenCommandPalette: l,
12
12
  onCopyTabUrl: f,
13
13
  onToggleSidebar: x
14
14
  }) {
15
- const u = E(() => m.value?.currentRoute?.value), d = ({
15
+ const u = E(() => c.value?.currentRoute?.value), d = ({
16
16
  documentName: e,
17
- path: t,
18
- method: o,
19
- exampleName: c
20
- }) => !(e !== void 0 && e !== u.value?.params.documentSlug || t !== void 0 && encodeURIComponent(t) !== u.value?.params.pathEncoded || o !== void 0 && o !== u.value?.params.method || c !== void 0 && c !== u.value?.params.exampleName);
17
+ path: a,
18
+ method: t,
19
+ exampleName: m
20
+ }) => !(e !== void 0 && e !== u.value?.params.documentSlug || a !== void 0 && encodeURIComponent(a) !== u.value?.params.pathEncoded || t !== void 0 && t !== u.value?.params.method || m !== void 0 && m !== u.value?.params.exampleName);
21
21
  h({
22
- eventBus: n,
23
- store: l,
22
+ eventBus: o,
23
+ store: r,
24
24
  hooks: {
25
25
  //------------------------------------------------------------------------------------
26
26
  // Document Related Hooks
27
27
  //------------------------------------------------------------------------------------
28
28
  "document:delete:document": {
29
29
  onAfterExecute: async (e) => {
30
- u?.value?.params.documentSlug === e.name && await m.value?.push({
30
+ u?.value?.params.documentSlug === e.name && await c.value?.push({
31
31
  name: "workspace.environment"
32
32
  });
33
33
  }
@@ -38,15 +38,15 @@ function g({
38
38
  "operation:update:pathMethod": {
39
39
  onBeforeExecute: (e) => ({
40
40
  ...e,
41
- callback: async (t) => {
42
- t === "success" && (await m.value?.replace({
41
+ callback: async (a) => {
42
+ a === "success" && (await c.value?.replace({
43
43
  name: "example",
44
44
  params: {
45
45
  method: e.payload.method,
46
46
  pathEncoded: encodeURIComponent(e.payload.path),
47
47
  exampleName: u.value?.params.exampleName
48
48
  }
49
- }), p(l.value?.workspace.activeDocument?.["x-scalar-navigation"]?.name)), e.callback(t);
49
+ }), p(r.value?.workspace.activeDocument?.["x-scalar-navigation"]?.name)), e.callback(a);
50
50
  }
51
51
  })
52
52
  },
@@ -56,21 +56,24 @@ function g({
56
56
  "operation:update:extra-parameters": {
57
57
  onAfterExecute: (e) => s(e.meta)
58
58
  },
59
+ "operation:reload:history": {
60
+ onAfterExecute: (e) => s({ ...e.meta, exampleKey: "draft" })
61
+ },
59
62
  "operation:delete:operation": {
60
63
  onAfterExecute: async (e) => {
61
64
  p(e.documentName);
62
65
  const {
63
- documentName: t,
64
- meta: { path: o, method: c }
66
+ documentName: a,
67
+ meta: { path: t, method: m }
65
68
  } = e;
66
69
  d({
67
- documentName: t,
68
- path: o,
69
- method: c
70
- }) && await m.value?.replace({
70
+ documentName: a,
71
+ path: t,
72
+ method: m
73
+ }) && await c.value?.replace({
71
74
  name: "document.overview",
72
75
  params: {
73
- documentSlug: t
76
+ documentSlug: a
74
77
  }
75
78
  });
76
79
  }
@@ -79,20 +82,20 @@ function g({
79
82
  onAfterExecute: async (e) => {
80
83
  p(e.documentName);
81
84
  const {
82
- documentName: t,
83
- meta: { path: o, method: c, exampleKey: v }
85
+ documentName: a,
86
+ meta: { path: t, method: m, exampleKey: v }
84
87
  } = e;
85
88
  d({
86
- documentName: t,
87
- path: o,
88
- method: c,
89
+ documentName: a,
90
+ path: t,
91
+ method: m,
89
92
  exampleName: v
90
- }) && await m.value?.replace({
93
+ }) && await c.value?.replace({
91
94
  name: "example",
92
95
  params: {
93
- pathEncoded: encodeURIComponent(o),
94
- method: c,
95
- documentSlug: t,
96
+ pathEncoded: encodeURIComponent(t),
97
+ method: m,
98
+ documentSlug: a,
96
99
  exampleName: "default"
97
100
  }
98
101
  });
@@ -120,33 +123,41 @@ function g({
120
123
  // Tabs Related Event Hooks
121
124
  //------------------------------------------------------------------------------------
122
125
  "tabs:add:tab": {
123
- onAfterExecute: a
126
+ onAfterExecute: n
124
127
  },
125
128
  "tabs:close:tab": {
126
- onAfterExecute: a
129
+ onAfterExecute: n
127
130
  },
128
131
  "tabs:focus:tab": {
129
- onAfterExecute: a
132
+ onAfterExecute: n
130
133
  },
131
134
  "tabs:focus:tab-last": {
132
- onAfterExecute: a
135
+ onAfterExecute: n
133
136
  },
134
137
  "tabs:navigate:previous": {
135
- onAfterExecute: a
138
+ onAfterExecute: n
136
139
  },
137
140
  "tabs:navigate:next": {
138
- onAfterExecute: a
141
+ onAfterExecute: n
139
142
  },
140
143
  "tabs:update:tabs": {
141
- onAfterExecute: a
144
+ onAfterExecute: n
142
145
  }
143
146
  }
144
- }), n.on("scroll-to:nav-item", ({ id: e }) => i(e)), n.on("ui:toggle:sidebar", x), n.on(
147
+ }), o.on("scroll-to:nav-item", ({ id: e }) => i(e)), o.on("ui:toggle:sidebar", x), o.on(
145
148
  "ui:open:command-palette",
146
149
  (e) => {
147
- e ? r(e.action, e.payload) : r();
150
+ e ? l(e.action, e.payload) : l();
148
151
  }
149
- ), n.on("ui:route:page", ({ name: e }) => m.value?.push({ name: e })), n.on("tabs:copy:url", (e) => f(e.index));
152
+ ), o.on("ui:route:page", ({ name: e }) => c.value?.push({ name: e })), o.on("ui:route:example", async ({ exampleName: e, callback: a }) => {
153
+ const t = await c.value?.replace({
154
+ name: "example",
155
+ params: {
156
+ exampleName: e
157
+ }
158
+ });
159
+ a(t ? "error" : "success");
160
+ }), o.on("tabs:copy:url", (e) => f(e.index));
150
161
  }
151
162
  export {
152
163
  g as initializeAppEventHandlers
@@ -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,MAAM,oBAAoB,CAAA;AAG7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gCAAgC,CAAA;AAC1F,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,gCAAgC,CAAA;AAKvC,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oEAAoE,CAAA;AAC7F,OAAO,KAAK,E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BAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,CA0CrD"}
@@ -1,49 +1,49 @@
1
1
  import { isDefined as C } from "@scalar/helpers/array/is-defined";
2
- import { sortByOrder as $ } from "@scalar/helpers/array/sort-by-order";
3
- import { isHttpMethod as H } from "@scalar/helpers/http/is-http-method";
4
- import { createSidebarState as V, generateReverseIndex as Y } from "@scalar/sidebar";
2
+ import { sortByOrder as H } from "@scalar/helpers/array/sort-by-order";
3
+ import { isHttpMethod as V } from "@scalar/helpers/http/is-http-method";
4
+ import { createSidebarState as Y, generateReverseIndex as j } from "@scalar/sidebar";
5
5
  import { createWorkspaceStore as D } from "@scalar/workspace-store/client";
6
- import { createWorkspaceEventBus as j } from "@scalar/workspace-store/events";
7
- import { generateUniqueValue as q } from "@scalar/workspace-store/helpers/generate-unique-value";
6
+ import { createWorkspaceEventBus as q } from "@scalar/workspace-store/events";
7
+ import { generateUniqueValue as z } from "@scalar/workspace-store/helpers/generate-unique-value";
8
8
  import { getParentEntry as p } from "@scalar/workspace-store/navigation";
9
- import { createWorkspaceStorePersistence as z } from "@scalar/workspace-store/persistence";
10
- import { persistencePlugin as J } from "@scalar/workspace-store/plugins/client";
11
- import { extensions as M } from "@scalar/workspace-store/schemas/extensions";
12
- import { shallowRef as g, computed as i, ref as u, watch as G } from "vue";
13
- import { getActiveEnvironment as Q } from "../../helpers/get-active-environment.js";
14
- import { getTabDetails as X } from "../../helpers/get-tab-details.js";
15
- import { slugify as Z } from "../../helpers/slugify.js";
16
- import { workspaceStorage as ee } from "../../helpers/storage.js";
17
- import { useCommandPaletteState as te } from "../command-palette/hooks/use-command-palette-state.js";
18
- import { initializeAppEventHandlers as ae } from "./app-events.js";
19
- const ne = 1e3, m = j({
9
+ import { createWorkspaceStorePersistence as J } from "@scalar/workspace-store/persistence";
10
+ import { persistencePlugin as M } from "@scalar/workspace-store/plugins/client";
11
+ import { extensions as G } from "@scalar/workspace-store/schemas/extensions";
12
+ import { shallowRef as g, computed as i, ref as u, watch as Q } from "vue";
13
+ import { getActiveEnvironment as X } from "../../helpers/get-active-environment.js";
14
+ import { getTabDetails as Z } from "../../helpers/get-tab-details.js";
15
+ import { slugify as ee } from "../../helpers/slugify.js";
16
+ import { workspaceStorage as te } from "../../helpers/storage.js";
17
+ import { useCommandPaletteState as ae } from "../command-palette/hooks/use-command-palette-state.js";
18
+ import { initializeAppEventHandlers as ne } from "./app-events.js";
19
+ const re = 1e3, v = q({
20
20
  debug: !1
21
- }), x = u(void 0), v = u(void 0), R = u(void 0), A = u(void 0), U = u(void 0), d = u(!1), c = g(null);
22
- G(c, (e) => {
23
- e && e.afterEach((t) => we(t));
21
+ }), x = u(void 0), f = u(void 0), R = u(void 0), A = u(void 0), U = u(void 0), m = u(!1), c = g(null);
22
+ Q(c, (e) => {
23
+ e && e.afterEach((t) => xe(t));
24
24
  });
25
- const f = i(() => c.value?.currentRoute.value ?? null);
25
+ const d = i(() => c.value?.currentRoute.value ?? null);
26
26
  function s(e, t) {
27
27
  const a = t?.params[e];
28
28
  if (typeof a == "string")
29
- return e === "method" ? a && H(a) ? a : void 0 : decodeURIComponent(a);
29
+ return e === "method" ? a && V(a) ? a : void 0 : decodeURIComponent(a);
30
30
  }
31
- const S = g(null), y = u([]), n = g(null), E = i(() => n.value?.workspace.documents[v.value ?? ""] || null), re = i(() => Q(n.value, E.value)), { workspace: h } = await z();
31
+ const S = g(null), y = u([]), n = g(null), E = i(() => n.value?.workspace.documents[f.value ?? ""] || null), oe = i(() => X(n.value, E.value)), { workspace: h } = await J();
32
32
  y.value = await h.getAll().then((e) => e.map(({ id: t, name: a }) => ({ id: t, label: a })));
33
- const oe = async ({ workspaceId: e }) => D({
34
- plugins: [await J({ workspaceId: e, debounceDelay: ne })]
35
- }), se = async (e) => {
33
+ const se = async ({ workspaceId: e }) => D({
34
+ plugins: [await M({ workspaceId: e, debounceDelay: re })]
35
+ }), ce = async (e) => {
36
36
  const t = await h.getItem(e);
37
37
  if (!t)
38
38
  return {
39
39
  success: !1
40
40
  };
41
- const a = await oe({ workspaceId: e });
41
+ const a = await se({ workspaceId: e });
42
42
  return a.loadWorkspace(t.workspace), S.value = { id: e, label: t.name }, n.value = a, {
43
43
  success: !0,
44
44
  workspace: a.workspace
45
45
  };
46
- }, ce = async ({ id: e, name: t }) => {
46
+ }, ie = async ({ id: e, name: t }) => {
47
47
  const a = D();
48
48
  await a.addDocument({
49
49
  name: "drafts",
@@ -75,35 +75,35 @@ const oe = async ({ workspaceId: e }) => D({
75
75
  name: t
76
76
  }) => {
77
77
  n.value = null;
78
- const a = await q({
78
+ const a = await z({
79
79
  defaultValue: e ?? t,
80
80
  // Use the provided id if it exists, otherwise use the name
81
81
  validation: async (l) => !await h.has(l),
82
82
  maxRetries: 100,
83
- transformation: Z
83
+ transformation: ee
84
84
  });
85
85
  if (!a)
86
86
  return;
87
87
  const o = { id: a, name: t };
88
- return await ce(o), await B(a), o;
89
- }, ie = async (e) => {
90
- n.value = null, d.value = !0;
91
- const t = await se(e);
88
+ return await ie(o), await B(a), o;
89
+ }, le = async (e) => {
90
+ n.value = null, m.value = !0;
91
+ const t = await ce(e);
92
92
  if (t.success) {
93
93
  const o = t.workspace["x-scalar-active-tab"] ?? 0, l = t.workspace["x-scalar-tabs"], W = l?.[o];
94
- W && await c.value?.replace(W.path), l && o >= l.length && m.emit("tabs:update:tabs", {
94
+ W && await c.value?.replace(W.path), l && o >= l.length && v.emit("tabs:update:tabs", {
95
95
  "x-scalar-active-tab": 0
96
- }), l || m.emit("tabs:update:tabs", {
97
- "x-scalar-tabs": [I(f.value)],
96
+ }), l || v.emit("tabs:update:tabs", {
97
+ "x-scalar-tabs": [I(d.value)],
98
98
  "x-scalar-active-tab": 0
99
- }), d.value = !1;
99
+ }), m.value = !1;
100
100
  return;
101
101
  }
102
102
  const a = await P({
103
103
  name: "Default Workspace",
104
104
  id: "default"
105
105
  });
106
- if (d.value = !1, !a)
106
+ if (m.value = !1, !a)
107
107
  return console.error("Failed to create the default workspace, something went wrong, can not load the workspace");
108
108
  r.reset();
109
109
  }, O = i(() => {
@@ -111,14 +111,14 @@ const oe = async ({ workspaceId: e }) => D({
111
111
  if (!e)
112
112
  return [];
113
113
  const t = e.workspace["x-scalar-order"] ?? Object.keys(e.workspace.documents);
114
- return $(Object.keys(e.workspace.documents), t, (a) => a).map((a) => e.workspace.documents[a]?.["x-scalar-navigation"]).filter(C);
115
- }), r = V(O), b = ({
114
+ return H(Object.keys(e.workspace.documents), t, (a) => a).map((a) => e.workspace.documents[a]?.["x-scalar-navigation"]).filter(C);
115
+ }), r = Y(O), b = ({
116
116
  document: e,
117
117
  path: t,
118
118
  method: a,
119
119
  example: o
120
120
  }) => JSON.stringify([e, t, a, o].filter(C)), T = i(
121
- () => Y({
121
+ () => j({
122
122
  items: O.value,
123
123
  nestedKey: "children",
124
124
  filter: (e) => e.type === "document" || e.type === "operation" || e.type === "example",
@@ -189,14 +189,14 @@ const oe = async ({ workspaceId: e }) => D({
189
189
  }
190
190
  });
191
191
  r.setExpanded(e, !r.isExpanded(e));
192
- }, le = async () => {
192
+ }, ue = async () => {
193
193
  if (!n.value)
194
194
  return;
195
195
  const e = n.value.workspace["x-scalar-active-tab"] ?? 0, t = n.value.workspace["x-scalar-tabs"]?.[e];
196
196
  t && await c.value?.replace(t.path);
197
197
  }, N = (e) => {
198
198
  e && n.value?.buildSidebar(e);
199
- }, ue = (e) => {
199
+ }, pe = (e) => {
200
200
  const t = E.value?.["x-scalar-navigation"]?.name;
201
201
  if (!t)
202
202
  return;
@@ -206,20 +206,20 @@ const oe = async ({ workspaceId: e }) => D({
206
206
  method: e.method,
207
207
  example: e.exampleKey
208
208
  });
209
- (!a || a.type !== "example") && N(t);
210
- }, pe = 288, de = i(() => n.value?.workspace?.["x-scalar-sidebar-width"] ?? pe), me = (e) => n.value?.update("x-scalar-sidebar-width", e), k = u(!0), ve = "x-scalar-tabs", fe = "x-scalar-active-tab", I = (e) => {
209
+ (!a || a.type !== "example") && (N(t), d.value && K(d.value));
210
+ }, de = 288, me = i(() => n.value?.workspace?.["x-scalar-sidebar-width"] ?? de), ve = (e) => n.value?.update("x-scalar-sidebar-width", e), k = u(!0), fe = "x-scalar-tabs", he = "x-scalar-active-tab", I = (e) => {
211
211
  const t = s("method", e), a = s("pathEncoded", e), o = s("documentSlug", e), l = s("workspaceSlug", e);
212
212
  return {
213
- ...X({
213
+ ...Z({
214
214
  workspace: l,
215
215
  document: o,
216
216
  path: a,
217
217
  method: t,
218
218
  getEntryByLocation: w
219
219
  }),
220
- path: f.value?.path ?? ""
220
+ path: d.value?.path ?? ""
221
221
  };
222
- }, _ = i(() => n.value?.workspace[ve] ?? [I(f.value)]), he = i(() => n.value?.workspace[fe] ?? 0), F = async (e) => {
222
+ }, _ = i(() => n.value?.workspace[fe] ?? [I(d.value)]), we = i(() => n.value?.workspace[he] ?? 0), F = async (e) => {
223
223
  const t = _.value[e];
224
224
  if (!t) {
225
225
  console.warn(`Cannot copy URL: tab at index ${e} does not exist`);
@@ -231,19 +231,19 @@ const oe = async ({ workspaceId: e }) => D({
231
231
  } catch (o) {
232
232
  console.error("Failed to copy URL to clipboard:", o);
233
233
  }
234
- }, we = (e) => {
234
+ }, xe = (e) => {
235
235
  const t = s("workspaceSlug", e), a = s("documentSlug", e);
236
- if (x.value = t, v.value = a, R.value = s("method", e), A.value = s("pathEncoded", e), U.value = s("exampleName", e), !!t) {
237
- if (e.path !== "" && ee.setCurrentPath(e.path), t !== S.value?.id)
238
- return ie(t);
239
- if (a && a !== n.value?.workspace[M.workspace.activeDocument])
236
+ if (x.value = t, f.value = a, R.value = s("method", e), A.value = s("pathEncoded", e), U.value = s("exampleName", e), !!t) {
237
+ if (e.path !== "" && te.setCurrentPath(e.path), t !== S.value?.id)
238
+ return le(t);
239
+ if (a && a !== n.value?.workspace[G.workspace.activeDocument])
240
240
  return n?.value?.update("x-scalar-active-document", a);
241
- xe(e), be(e);
241
+ be(e), K(e);
242
242
  }
243
- }, xe = (e) => {
243
+ }, be = (e) => {
244
244
  const t = n.value?.workspace["x-scalar-tabs"] ?? [], a = n.value?.workspace["x-scalar-active-tab"] ?? 0, o = t[a];
245
245
  !o || o.path === e.path || (t[a] = I(e));
246
- }, be = (e) => {
246
+ }, K = (e) => {
247
247
  const t = s("documentSlug", e);
248
248
  if (!t) {
249
249
  r.setSelected(null);
@@ -256,15 +256,15 @@ const oe = async ({ workspaceId: e }) => D({
256
256
  example: s("exampleName", e)
257
257
  });
258
258
  a && (r.setSelected(a.id), r.setExpanded(a.id, !0));
259
- }, K = te();
260
- ae({
261
- eventBus: m,
259
+ }, $ = ae();
260
+ ne({
261
+ eventBus: v,
262
262
  router: c,
263
263
  store: n,
264
- navigateToCurrentTab: le,
264
+ navigateToCurrentTab: ue,
265
265
  rebuildSidebar: N,
266
- onAfterExampleCreation: ue,
267
- onOpenCommandPalette: K.open,
266
+ onAfterExampleCreation: pe,
267
+ onOpenCommandPalette: $.open,
268
268
  onSelectSidebarItem: L,
269
269
  onCopyTabUrl: (e) => F(e),
270
270
  onToggleSidebar: () => k.value = !k.value
@@ -275,15 +275,15 @@ function _e(e) {
275
275
  store: n,
276
276
  sidebar: {
277
277
  state: r,
278
- width: de,
278
+ width: me,
279
279
  isOpen: k,
280
280
  handleSelectItem: L,
281
- handleSidebarWidthUpdate: me,
281
+ handleSidebarWidthUpdate: ve,
282
282
  getEntryByLocation: w
283
283
  },
284
284
  tabs: {
285
285
  state: _,
286
- activeTabIndex: he,
286
+ activeTabIndex: we,
287
287
  copyTabUrl: F
288
288
  },
289
289
  workspace: {
@@ -291,21 +291,21 @@ function _e(e) {
291
291
  workspaceList: y,
292
292
  activeWorkspace: S,
293
293
  setId: B,
294
- isOpen: i(() => !!(x.value && !v.value))
294
+ isOpen: i(() => !!(x.value && !f.value))
295
295
  },
296
- commandPalette: K,
297
- eventBus: m,
296
+ commandPalette: $,
297
+ eventBus: v,
298
298
  router: c,
299
- currentRoute: f,
300
- loading: d,
299
+ currentRoute: d,
300
+ loading: m,
301
301
  activeEntities: {
302
302
  workspaceSlug: x,
303
- documentSlug: v,
303
+ documentSlug: f,
304
304
  path: A,
305
305
  method: R,
306
306
  exampleName: U
307
307
  },
308
- environment: re,
308
+ environment: oe,
309
309
  document: E
310
310
  };
311
311
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/AppSidebar.vue"],"names":[],"mappings":"AAwcA,OAAO,EAML,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAM3B,OAAO,KAAK,EAA6B,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAUhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,WAAW,GAAG;IACf;;OAEG;IACH,MAAM,EAAE,YAAY,CAAA;IAEpB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAE1C;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C;;;OAGG;IACH,UAAU,EAAE,mBAAmB,EAAE,CAAA;IACjC;;;OAGG;IACH,QAAQ,EAAE,iBAAiB,CAAA;IAC3B;;;OAGG;IACH,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAgBJ,KAAK,WAAW,GAAG;IACjB,oEAAoE;IACpE,kBAAkB,CAAC,IAAI,OAAO,CAAA;CAC/B,CAAC;AAmLF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,6CAA6C;IAC7C,eAAe,EA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ACjB,oEAAoE;IACpE,kBAAkB,CAAC,IAAI,OAAO,CAAA;CAC/B,CAAC;AAmLF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AAwdF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AppSidebar.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ p(o, [["__scopeId", "data-v-59eb2624"]]);
4
+ const e = /* @__PURE__ */ p(o, [["__scopeId", "data-v-e30bf25b"]]);
5
5
  export {
6
6
  e as default
7
7
  };