@scalar/api-client 2.12.0 → 2.14.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 (184) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +2 -2
  5. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  6. package/dist/components/CommandPalette/CommandActionForm.vue.js +14 -14
  7. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +38 -38
  8. package/dist/components/EmptyState.vue.d.ts.map +1 -1
  9. package/dist/components/EmptyState.vue.js +2 -2
  10. package/dist/components/EmptyState.vue2.js +27 -16
  11. package/dist/components/TopNav/TopNav.vue.js +33 -33
  12. package/dist/layouts/App/create-api-client-app.d.ts +28 -28
  13. package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
  14. package/dist/libs/create-client.d.ts +28 -28
  15. package/dist/libs/hot-keys.d.ts +2 -2
  16. package/dist/libs/send-request/create-fetch-body.d.ts +2 -2
  17. package/dist/store/active-entities.d.ts +2 -2
  18. package/dist/store/collections.d.ts +4 -4
  19. package/dist/store/index.d.ts +1 -1
  20. package/dist/store/index.d.ts.map +1 -1
  21. package/dist/store/index.js +8 -8
  22. package/dist/store/request-example.d.ts +12 -12
  23. package/dist/store/store.d.ts +28 -28
  24. package/dist/store/workspace.d.ts +12 -12
  25. package/dist/style.css +1 -1
  26. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +1 -2
  27. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  28. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +9 -8
  29. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +1 -1
  30. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  31. package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
  32. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  33. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
  34. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  35. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +14 -11
  36. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +22 -22
  37. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +2 -2
  38. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  39. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +2 -2
  40. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +18 -15
  41. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +2 -2
  42. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +17 -17
  43. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  44. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  45. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +17 -12
  46. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  47. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +205 -0
  48. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
  49. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +52 -52
  50. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +1 -1
  51. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  52. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +205 -0
  53. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
  54. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
  55. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  56. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +90 -75
  57. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
  58. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +1 -2
  59. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  60. package/dist/v2/components/sidebar/Sidebar.vue.js +1 -1
  61. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  62. package/dist/v2/features/app/App.vue.js +126 -103
  63. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +0 -2
  64. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  65. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  66. package/dist/v2/features/app/components/AppSidebar.vue2.js +56 -53
  67. package/dist/v2/features/app/components/DesktopTab.vue.d.ts +26 -0
  68. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -0
  69. package/dist/v2/features/app/components/DesktopTab.vue.js +7 -0
  70. package/dist/v2/features/app/components/DesktopTab.vue2.js +134 -0
  71. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +9 -4
  72. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  73. package/dist/v2/features/app/components/DesktopTabs.vue.js +47 -13
  74. package/dist/v2/features/app/components/DesktopTabs.vue2.js +2 -4
  75. package/dist/v2/features/app/components/SplashScreen.vue.js +2 -2
  76. package/dist/v2/features/app/components/SplashScreen.vue2.js +2 -2
  77. package/dist/v2/features/app/helpers/routes.js +1 -1
  78. package/dist/v2/features/collection/components/Settings.vue2.js +3 -3
  79. package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +61 -0
  80. package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts.map +1 -0
  81. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +48 -0
  82. package/dist/v2/features/command-palette/components/CommandActionForm.vue2.js +4 -0
  83. package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +39 -0
  84. package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts.map +1 -0
  85. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +52 -0
  86. package/dist/v2/features/command-palette/components/CommandActionInput.vue2.js +4 -0
  87. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts +36 -0
  88. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +1 -0
  89. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.js +78 -0
  90. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +4 -0
  91. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +30 -0
  92. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -0
  93. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +169 -0
  94. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue2.js +4 -0
  95. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +34 -0
  96. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -0
  97. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +175 -0
  98. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue2.js +4 -0
  99. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +43 -0
  100. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +1 -0
  101. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +7 -0
  102. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue2.js +115 -0
  103. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +39 -0
  104. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -0
  105. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +213 -0
  106. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue2.js +4 -0
  107. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +38 -0
  108. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -0
  109. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +89 -0
  110. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue2.js +4 -0
  111. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts +41 -0
  112. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts.map +1 -0
  113. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.js +7 -0
  114. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +172 -0
  115. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +33 -0
  116. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +1 -0
  117. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +40 -0
  118. package/dist/v2/features/command-palette/components/WatchModeToggle.vue2.js +4 -0
  119. package/dist/v2/features/command-palette/components/index.d.ts +2 -0
  120. package/dist/v2/features/command-palette/components/index.d.ts.map +1 -0
  121. package/dist/v2/features/command-palette/components/index.js +4 -0
  122. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +23 -0
  123. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -0
  124. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +31 -0
  125. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +13 -0
  126. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -0
  127. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +12 -0
  128. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts +26 -0
  129. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts.map +1 -0
  130. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +70 -0
  131. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +23 -0
  132. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -0
  133. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +18 -0
  134. package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts +11 -0
  135. package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts.map +1 -0
  136. package/dist/v2/features/command-palette/helpers/is-postman-collection.js +11 -0
  137. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +202 -0
  138. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -0
  139. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +109 -0
  140. package/dist/v2/features/command-palette/types.d.ts +82 -0
  141. package/dist/v2/features/command-palette/types.d.ts.map +1 -0
  142. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  143. package/dist/v2/features/operation/Operation.vue.js +24 -20
  144. package/dist/v2/helpers/drag-handle-factory.d.ts +1 -2
  145. package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
  146. package/dist/v2/helpers/drag-handle-factory.js +84 -99
  147. package/dist/v2/helpers/get-tab-details.d.ts +43 -0
  148. package/dist/v2/helpers/get-tab-details.d.ts.map +1 -0
  149. package/dist/v2/helpers/get-tab-details.js +34 -0
  150. package/dist/v2/helpers/handle-hotkeys.js +1 -1
  151. package/dist/v2/helpers/is-url.d.ts +2 -0
  152. package/dist/v2/helpers/is-url.d.ts.map +1 -0
  153. package/dist/v2/helpers/is-url.js +5 -0
  154. package/dist/v2/helpers/remove-circular.d.ts +15 -0
  155. package/dist/v2/helpers/remove-circular.d.ts.map +1 -0
  156. package/dist/v2/helpers/remove-circular.js +18 -0
  157. package/dist/v2/helpers/storage.d.ts +4 -6
  158. package/dist/v2/helpers/storage.d.ts.map +1 -1
  159. package/dist/v2/helpers/storage.js +8 -12
  160. package/dist/v2/hooks/use-sidebar-state.d.ts +12 -19
  161. package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -1
  162. package/dist/v2/hooks/use-sidebar-state.js +36 -30
  163. package/dist/v2/hooks/use-sync-path.d.ts +11 -0
  164. package/dist/v2/hooks/use-sync-path.d.ts.map +1 -0
  165. package/dist/v2/hooks/use-sync-path.js +51 -0
  166. package/dist/v2/hooks/use-tabs.d.ts +31 -0
  167. package/dist/v2/hooks/use-tabs.d.ts.map +1 -0
  168. package/dist/v2/hooks/use-tabs.js +44 -0
  169. package/dist/v2/hooks/use-workspace-client-events.d.ts +5 -2
  170. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  171. package/dist/v2/hooks/use-workspace-client-events.js +91 -36
  172. package/dist/v2/hooks/use-workspace-selector.d.ts +16 -6
  173. package/dist/v2/hooks/use-workspace-selector.d.ts.map +1 -1
  174. package/dist/v2/hooks/use-workspace-selector.js +58 -64
  175. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  176. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +78 -78
  177. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +29 -29
  178. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  179. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
  180. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +19 -19
  181. package/dist/views/Request/libs/oauth2.d.ts +2 -2
  182. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  183. package/dist/views/Request/libs/oauth2.js +66 -53
  184. package/package.json +134 -44
@@ -0,0 +1,205 @@
1
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
2
+ import type { ApiKeyObject, ComponentsObject, HttpObject, SecurityRequirementObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ type __VLS_Props = {
4
+ environment: XScalarEnvironment;
5
+ /** Controls the display of certain borders which are used when we are non-collapsible */
6
+ isStatic: boolean;
7
+ selectedSecuritySchemas: SecurityRequirementObject;
8
+ securitySchemes: NonNullable<ComponentsObject['securitySchemes']>;
9
+ server: ServerObject | undefined;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ "update:selectedScopes": (payload: Omit<{
13
+ id: string[];
14
+ name: string;
15
+ scopes: string[];
16
+ meta: import("@scalar/workspace-store/mutators").AuthMeta;
17
+ }, "meta">) => any;
18
+ "update:securityScheme": (payload: ({
19
+ type: "http";
20
+ } & Partial<Omit<HttpObject, "type">>) | ({
21
+ type: "apiKey";
22
+ } & Partial<Omit<ApiKeyObject, "type">>) | ({
23
+ type: "oauth2";
24
+ } & {
25
+ description?: string | undefined;
26
+ 'x-default-scopes'?: string[] | undefined;
27
+ flows?: {
28
+ implicit?: {
29
+ refreshUrl?: string | undefined;
30
+ scopes?: {
31
+ [x: string]: string | undefined;
32
+ } | undefined;
33
+ 'x-scalar-secret-client-id'?: string | undefined;
34
+ 'x-scalar-secret-token'?: string | undefined;
35
+ 'x-scalar-security-query'?: {
36
+ [x: string]: string | undefined;
37
+ } | undefined;
38
+ 'x-scalar-security-body'?: {
39
+ [x: string]: string | undefined;
40
+ } | undefined;
41
+ 'x-tokenName'?: string | undefined;
42
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
43
+ authorizationUrl?: string | undefined;
44
+ 'x-scalar-secret-redirect-uri'?: string | undefined;
45
+ } | undefined;
46
+ password?: {
47
+ refreshUrl?: string | undefined;
48
+ scopes?: {
49
+ [x: string]: string | undefined;
50
+ } | undefined;
51
+ 'x-scalar-secret-client-id'?: string | undefined;
52
+ 'x-scalar-secret-token'?: string | undefined;
53
+ 'x-scalar-security-query'?: {
54
+ [x: string]: string | undefined;
55
+ } | undefined;
56
+ 'x-scalar-security-body'?: {
57
+ [x: string]: string | undefined;
58
+ } | undefined;
59
+ 'x-tokenName'?: string | undefined;
60
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
61
+ tokenUrl?: string | undefined;
62
+ 'x-scalar-secret-username'?: string | undefined;
63
+ 'x-scalar-secret-password'?: string | undefined;
64
+ 'x-scalar-secret-client-secret'?: string | undefined;
65
+ } | undefined;
66
+ clientCredentials?: {
67
+ refreshUrl?: string | undefined;
68
+ scopes?: {
69
+ [x: string]: string | undefined;
70
+ } | undefined;
71
+ 'x-scalar-secret-client-id'?: string | undefined;
72
+ 'x-scalar-secret-token'?: string | undefined;
73
+ 'x-scalar-security-query'?: {
74
+ [x: string]: string | undefined;
75
+ } | undefined;
76
+ 'x-scalar-security-body'?: {
77
+ [x: string]: string | undefined;
78
+ } | undefined;
79
+ 'x-tokenName'?: string | undefined;
80
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
81
+ tokenUrl?: string | undefined;
82
+ 'x-scalar-secret-client-secret'?: string | undefined;
83
+ } | undefined;
84
+ authorizationCode?: {
85
+ refreshUrl?: string | undefined;
86
+ scopes?: {
87
+ [x: string]: string | undefined;
88
+ } | undefined;
89
+ 'x-scalar-secret-client-id'?: string | undefined;
90
+ 'x-scalar-secret-token'?: string | undefined;
91
+ 'x-scalar-security-query'?: {
92
+ [x: string]: string | undefined;
93
+ } | undefined;
94
+ 'x-scalar-security-body'?: {
95
+ [x: string]: string | undefined;
96
+ } | undefined;
97
+ 'x-tokenName'?: string | undefined;
98
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
99
+ authorizationUrl?: string | undefined;
100
+ tokenUrl?: string | undefined;
101
+ 'x-scalar-secret-client-secret'?: string | undefined;
102
+ 'x-scalar-secret-redirect-uri'?: string | undefined;
103
+ 'x-usePkce'?: "SHA-256" | "plain" | "no" | undefined;
104
+ } | undefined;
105
+ } | undefined;
106
+ })) => any;
107
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
108
+ "onUpdate:selectedScopes"?: ((payload: Omit<{
109
+ id: string[];
110
+ name: string;
111
+ scopes: string[];
112
+ meta: import("@scalar/workspace-store/mutators").AuthMeta;
113
+ }, "meta">) => any) | undefined;
114
+ "onUpdate:securityScheme"?: ((payload: ({
115
+ type: "http";
116
+ } & Partial<Omit<HttpObject, "type">>) | ({
117
+ type: "apiKey";
118
+ } & Partial<Omit<ApiKeyObject, "type">>) | ({
119
+ type: "oauth2";
120
+ } & {
121
+ description?: string | undefined;
122
+ 'x-default-scopes'?: string[] | undefined;
123
+ flows?: {
124
+ implicit?: {
125
+ refreshUrl?: string | undefined;
126
+ scopes?: {
127
+ [x: string]: string | undefined;
128
+ } | undefined;
129
+ 'x-scalar-secret-client-id'?: string | undefined;
130
+ 'x-scalar-secret-token'?: string | undefined;
131
+ 'x-scalar-security-query'?: {
132
+ [x: string]: string | undefined;
133
+ } | undefined;
134
+ 'x-scalar-security-body'?: {
135
+ [x: string]: string | undefined;
136
+ } | undefined;
137
+ 'x-tokenName'?: string | undefined;
138
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
139
+ authorizationUrl?: string | undefined;
140
+ 'x-scalar-secret-redirect-uri'?: string | undefined;
141
+ } | undefined;
142
+ password?: {
143
+ refreshUrl?: string | undefined;
144
+ scopes?: {
145
+ [x: string]: string | undefined;
146
+ } | undefined;
147
+ 'x-scalar-secret-client-id'?: string | undefined;
148
+ 'x-scalar-secret-token'?: string | undefined;
149
+ 'x-scalar-security-query'?: {
150
+ [x: string]: string | undefined;
151
+ } | undefined;
152
+ 'x-scalar-security-body'?: {
153
+ [x: string]: string | undefined;
154
+ } | undefined;
155
+ 'x-tokenName'?: string | undefined;
156
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
157
+ tokenUrl?: string | undefined;
158
+ 'x-scalar-secret-username'?: string | undefined;
159
+ 'x-scalar-secret-password'?: string | undefined;
160
+ 'x-scalar-secret-client-secret'?: string | undefined;
161
+ } | undefined;
162
+ clientCredentials?: {
163
+ refreshUrl?: string | undefined;
164
+ scopes?: {
165
+ [x: string]: string | undefined;
166
+ } | undefined;
167
+ 'x-scalar-secret-client-id'?: string | undefined;
168
+ 'x-scalar-secret-token'?: string | undefined;
169
+ 'x-scalar-security-query'?: {
170
+ [x: string]: string | undefined;
171
+ } | undefined;
172
+ 'x-scalar-security-body'?: {
173
+ [x: string]: string | undefined;
174
+ } | undefined;
175
+ 'x-tokenName'?: string | undefined;
176
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
177
+ tokenUrl?: string | undefined;
178
+ 'x-scalar-secret-client-secret'?: string | undefined;
179
+ } | undefined;
180
+ authorizationCode?: {
181
+ refreshUrl?: string | undefined;
182
+ scopes?: {
183
+ [x: string]: string | undefined;
184
+ } | undefined;
185
+ 'x-scalar-secret-client-id'?: string | undefined;
186
+ 'x-scalar-secret-token'?: string | undefined;
187
+ 'x-scalar-security-query'?: {
188
+ [x: string]: string | undefined;
189
+ } | undefined;
190
+ 'x-scalar-security-body'?: {
191
+ [x: string]: string | undefined;
192
+ } | undefined;
193
+ 'x-tokenName'?: string | undefined;
194
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
195
+ authorizationUrl?: string | undefined;
196
+ tokenUrl?: string | undefined;
197
+ 'x-scalar-secret-client-secret'?: string | undefined;
198
+ 'x-scalar-secret-redirect-uri'?: string | undefined;
199
+ 'x-usePkce'?: "SHA-256" | "plain" | "no" | undefined;
200
+ } | undefined;
201
+ } | undefined;
202
+ })) => any) | undefined;
203
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
204
+ export default _default;
205
+ //# sourceMappingURL=RequestAuthTab.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAEzB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,uBAAuB,EAAE,yBAAyB,CAAA;IAClD,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;CACjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkiBF,wBAOG"}
@@ -25,10 +25,10 @@ proxyUrl?: string) => Promise<ErrorResponse<string>>;
25
25
  * Makes the BE authorization call to grab the token server to server
26
26
  * Used for clientCredentials and authorizationCode
27
27
  */
28
- export declare const authorizeServers: (flows: NonImplicitFlow, type: keyof NonImplicitFlow, scopes: string, { code, pkce, proxyUrl, }?: {
28
+ export declare const authorizeServers: (flows: NonImplicitFlow, type: keyof NonImplicitFlow, scopes: string, { code, pkce, proxyUrl, }: {
29
29
  code?: string;
30
30
  pkce?: PKCEState | null;
31
31
  proxyUrl?: string | undefined;
32
- }) => Promise<ErrorResponse<string>>;
32
+ } | undefined, activeServer: ServerObject | undefined) => Promise<ErrorResponse<string>>;
33
33
  export {};
34
34
  //# sourceMappingURL=oauth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,SAAS;AACtC,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAkK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8F/B,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,SAAS;AACtC,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAmL/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,2BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,YAAK,EACN,cAAc,YAAY,GAAG,SAAS,KACrC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+F/B,CAAA"}
@@ -1,113 +1,128 @@
1
- import { shouldUseProxy as U } from "@scalar/oas-utils/helpers";
2
- import { encode as A, fromUint8Array as S } from "js-base64";
3
- const C = () => {
4
- const a = new Uint8Array(32);
5
- return crypto.getRandomValues(a), S(a, !0);
6
- }, E = async (a, t) => {
1
+ import { makeUrlAbsolute as A } from "@scalar/helpers/url/make-url-absolute";
2
+ import { shouldUseProxy as b } from "@scalar/oas-utils/helpers";
3
+ import { encode as C, fromUint8Array as S } from "js-base64";
4
+ const E = () => {
5
+ const r = new Uint8Array(32);
6
+ return crypto.getRandomValues(r), S(r, !0);
7
+ }, z = async (r, t) => {
7
8
  if (t === "plain")
8
- return a;
9
+ return r;
9
10
  if (typeof crypto?.subtle?.digest != "function")
10
- return console.warn("SHA-256 is only supported when using https, using a plain text code challenge instead."), a;
11
- const f = new TextEncoder().encode(a), h = await crypto.subtle.digest("SHA-256", f);
12
- return S(new Uint8Array(h), !0);
13
- }, z = async (a, t, m, f, h) => {
14
- const i = a[t];
11
+ return console.warn("SHA-256 is only supported when using https, using a plain text code challenge instead."), r;
12
+ const l = new TextEncoder().encode(r), w = await crypto.subtle.digest("SHA-256", l);
13
+ return S(new Uint8Array(w), !0);
14
+ }, $ = async (r, t, p, l, w) => {
15
+ const d = r[t];
15
16
  try {
16
- if (!i)
17
+ if (!d)
17
18
  return [new Error("Flow not found"), null];
18
- const e = m.join(" ");
19
+ const f = p.join(" ");
19
20
  if (t === "clientCredentials" || t === "password")
20
- return k(a, t, e, {
21
- proxyUrl: h
22
- });
23
- const r = (Math.random() + 1).toString(36).substring(2, 10), c = new URL(a[t].authorizationUrl);
21
+ return U(
22
+ r,
23
+ t,
24
+ f,
25
+ {
26
+ proxyUrl: w
27
+ },
28
+ l
29
+ );
30
+ const e = (Math.random() + 1).toString(36).substring(2, 10), a = A(r[t].authorizationUrl, {
31
+ baseUrl: l?.url
32
+ }), n = new URL(a);
24
33
  let o = null;
25
34
  if (t === "implicit")
26
- c.searchParams.set("response_type", "token");
35
+ n.searchParams.set("response_type", "token");
27
36
  else if (t === "authorizationCode") {
28
- const s = a[t];
29
- if (c.searchParams.set("response_type", "code"), s["x-usePkce"] !== "no") {
30
- const n = C(), l = await E(n, s["x-usePkce"]);
37
+ const s = r[t];
38
+ if (n.searchParams.set("response_type", "code"), s["x-usePkce"] !== "no") {
39
+ const c = E(), i = await z(c, s["x-usePkce"]);
31
40
  o = {
32
- codeVerifier: n,
33
- codeChallenge: l,
41
+ codeVerifier: c,
42
+ codeChallenge: i,
34
43
  codeChallengeMethod: s["x-usePkce"] === "SHA-256" ? "S256" : "plain"
35
- }, c.searchParams.set("code_challenge", l), c.searchParams.set("code_challenge_method", o.codeChallengeMethod);
44
+ }, n.searchParams.set("code_challenge", i), n.searchParams.set("code_challenge_method", o.codeChallengeMethod);
36
45
  }
37
46
  }
38
- const w = a[t];
39
- if (w["x-scalar-secret-redirect-uri"].startsWith("/")) {
40
- const s = f?.url || window.location.origin + window.location.pathname, n = new URL(w["x-scalar-secret-redirect-uri"], s).toString();
41
- c.searchParams.set("redirect_uri", n);
47
+ const m = r[t];
48
+ if (m["x-scalar-secret-redirect-uri"].startsWith("/")) {
49
+ const s = l?.url || window.location.origin + window.location.pathname, c = new URL(m["x-scalar-secret-redirect-uri"], s).toString();
50
+ n.searchParams.set("redirect_uri", c);
42
51
  } else
43
- c.searchParams.set("redirect_uri", w["x-scalar-secret-redirect-uri"]);
44
- i["x-scalar-security-query"] && Object.keys(i["x-scalar-security-query"]).forEach((s) => {
45
- const n = i["x-scalar-security-query"]?.[s];
46
- n && c.searchParams.set(s, n);
47
- }), c.searchParams.set("client_id", i["x-scalar-secret-client-id"]), c.searchParams.set("state", r), e && c.searchParams.set("scope", e);
48
- const d = window.open(c, "openAuth2Window", "left=100,top=100,width=800,height=600");
49
- return d ? new Promise((s) => {
50
- const n = setInterval(() => {
51
- let l = null, g = null, x = null, p = null;
52
+ n.searchParams.set("redirect_uri", m["x-scalar-secret-redirect-uri"]);
53
+ d["x-scalar-security-query"] && Object.keys(d["x-scalar-security-query"]).forEach((s) => {
54
+ const c = d["x-scalar-security-query"]?.[s];
55
+ c && n.searchParams.set(s, c);
56
+ }), n.searchParams.set("client_id", d["x-scalar-secret-client-id"]), n.searchParams.set("state", e), f && n.searchParams.set("scope", f);
57
+ const u = window.open(n, "openAuth2Window", "left=100,top=100,width=800,height=600");
58
+ return u ? new Promise((s) => {
59
+ const c = setInterval(() => {
60
+ let i = null, g = null, x = null, P = null;
52
61
  try {
53
- const u = new URL(d.location.href).searchParams, y = i["x-tokenName"] || "access_token";
54
- l = u.get(y), g = u.get("code"), x = u.get("error"), p = u.get("error_description");
55
- const _ = new URLSearchParams(d.location.href.split("#")[1]);
56
- l ||= _.get(y), g ||= _.get("code"), x ||= _.get("error"), p ||= _.get("error_description");
62
+ const h = new URL(u.location.href).searchParams, k = d["x-tokenName"] || "access_token";
63
+ i = h.get(k), g = h.get("code"), x = h.get("error"), P = h.get("error_description");
64
+ const y = new URLSearchParams(u.location.href.split("#")[1]);
65
+ i ||= y.get(k), g ||= y.get("code"), x ||= y.get("error"), P ||= y.get("error_description");
57
66
  } catch {
58
67
  }
59
- if (d.closed || l || g || x)
60
- if (clearInterval(n), d.close(), x)
61
- s([new Error(`OAuth error: ${x}${p ? ` (${p})` : ""}`), null]);
62
- else if (l) {
63
- const u = d.location.href.match(/state=([^&]*)/)?.[1];
64
- s(u === r ? [null, l] : [new Error("State mismatch"), null]);
65
- } else g && t === "authorizationCode" ? new URL(d.location.href).searchParams.get("state") === r ? k(a, t, e, {
66
- code: g,
67
- pkce: o,
68
- proxyUrl: h
69
- }).then(s) : s([new Error("State mismatch"), null]) : (clearInterval(n), s([new Error("Window was closed without granting authorization"), null]));
68
+ if (u.closed || i || g || x)
69
+ if (clearInterval(c), u.close(), x)
70
+ s([new Error(`OAuth error: ${x}${P ? ` (${P})` : ""}`), null]);
71
+ else if (i) {
72
+ const h = u.location.href.match(/state=([^&]*)/)?.[1];
73
+ s(h === e ? [null, i] : [new Error("State mismatch"), null]);
74
+ } else g && t === "authorizationCode" ? new URL(u.location.href).searchParams.get("state") === e ? U(
75
+ r,
76
+ t,
77
+ f,
78
+ {
79
+ code: g,
80
+ pkce: o,
81
+ proxyUrl: w
82
+ },
83
+ l
84
+ ).then(s) : s([new Error("State mismatch"), null]) : (clearInterval(c), s([new Error("Window was closed without granting authorization"), null]));
70
85
  }, 200);
71
86
  }) : [new Error("Failed to open auth window"), null];
72
87
  } catch {
73
88
  return [new Error("Failed to authorize oauth2 flow"), null];
74
89
  }
75
- }, k = async (a, t, m, {
76
- code: f,
77
- pkce: h,
78
- proxyUrl: i
79
- } = {}) => {
80
- const e = a[t];
90
+ }, U = async (r, t, p, {
91
+ code: l,
92
+ pkce: w,
93
+ proxyUrl: d
94
+ } = {}, f) => {
95
+ const e = r[t];
81
96
  if (!e)
82
97
  return [new Error("OAuth2 flow was not defined"), null];
83
- const r = new URLSearchParams();
84
- if (r.set("client_id", e["x-scalar-secret-client-id"]), m && (t === "clientCredentials" || t === "password") && r.set("scope", m), e["x-scalar-secret-client-secret"] && (!e["x-scalar-credentials-location"] || e["x-scalar-credentials-location"] === "body") && r.set("client_secret", e["x-scalar-secret-client-secret"]), "x-scalar-secret-redirect-uri" in e && e["x-scalar-secret-redirect-uri"] && r.set("redirect_uri", e["x-scalar-secret-redirect-uri"]), f)
85
- r.set("code", f), r.set("grant_type", "authorization_code"), h && r.set("code_verifier", h.codeVerifier);
98
+ const a = new URLSearchParams();
99
+ if (a.set("client_id", e["x-scalar-secret-client-id"]), p && (t === "clientCredentials" || t === "password") && a.set("scope", p), e["x-scalar-secret-client-secret"] && (!e["x-scalar-credentials-location"] || e["x-scalar-credentials-location"] === "body") && a.set("client_secret", e["x-scalar-secret-client-secret"]), "x-scalar-secret-redirect-uri" in e && e["x-scalar-secret-redirect-uri"] && a.set("redirect_uri", e["x-scalar-secret-redirect-uri"]), l)
100
+ a.set("code", l), a.set("grant_type", "authorization_code"), w && a.set("code_verifier", w.codeVerifier);
86
101
  else if (t === "password") {
87
- const o = a[t];
88
- r.set("grant_type", "password"), r.set("username", o["x-scalar-secret-username"]), r.set("password", o["x-scalar-secret-password"]);
102
+ const o = r[t];
103
+ a.set("grant_type", "password"), a.set("username", o["x-scalar-secret-username"]), a.set("password", o["x-scalar-secret-password"]);
89
104
  } else
90
- r.set("grant_type", "client_credentials");
91
- e["x-scalar-security-body"] && Object.entries(e["x-scalar-security-body"]).forEach(([o, w]) => {
92
- w && r.set(o, w);
105
+ a.set("grant_type", "client_credentials");
106
+ e["x-scalar-security-body"] && Object.entries(e["x-scalar-security-body"]).forEach(([o, m]) => {
107
+ m && a.set(o, m);
93
108
  });
94
109
  try {
95
110
  const o = {
96
111
  "Content-Type": "application/x-www-form-urlencoded"
97
112
  };
98
- e["x-scalar-secret-client-secret"] && (!e["x-scalar-credentials-location"] || e["x-scalar-credentials-location"] === "header") && (o.Authorization = `Basic ${A(`${e["x-scalar-secret-client-id"]}:${e["x-scalar-secret-client-secret"]}`)}`);
99
- const P = U(i, e.tokenUrl) ? `${i}?${new URLSearchParams([["scalar_url", e.tokenUrl]]).toString()}` : e.tokenUrl, s = await (await fetch(P, {
113
+ e["x-scalar-secret-client-secret"] && (!e["x-scalar-credentials-location"] || e["x-scalar-credentials-location"] === "header") && (o.Authorization = `Basic ${C(`${e["x-scalar-secret-client-id"]}:${e["x-scalar-secret-client-secret"]}`)}`);
114
+ const _ = A(e.tokenUrl, { baseUrl: f?.url }), u = b(d, _) ? `${d}?${new URLSearchParams([["scalar_url", _]]).toString()}` : _, c = await (await fetch(u, {
100
115
  method: "POST",
101
116
  headers: o,
102
- body: r
103
- })).json(), n = e["x-tokenName"] || "access_token";
104
- return [null, s[n]];
117
+ body: a
118
+ })).json(), i = e["x-tokenName"] || "access_token";
119
+ return [null, c[i]];
105
120
  } catch {
106
121
  return [new Error("Failed to get an access token. Please check your credentials."), null];
107
122
  }
108
123
  };
109
124
  export {
110
- z as authorizeOauth2,
111
- k as authorizeServers,
112
- E as generateCodeChallenge
125
+ $ as authorizeOauth2,
126
+ U as authorizeServers,
127
+ z as generateCodeChallenge
113
128
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
@@ -1,5 +1,4 @@
1
- import type { DraggingItem, HoveredItem } from '@scalar/draggable';
2
- import { type SidebarState } from '@scalar/sidebar';
1
+ import { type DraggingItem, type HoveredItem, type SidebarState } from '@scalar/sidebar';
3
2
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
4
3
  import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
5
4
  import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AAwIA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAKhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKrD,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAC1C,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAA;IACpB,qCAAqC;IACrC,eAAe,EAAE,SAAS,CAAA;IAC1B,2CAA2C;IAC3C,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,kEAAkE;IAClE,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,+CAA+C;IAC/C,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EACR,OAAO,GACP,CAAC,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,CAAA;CACxE,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;CACnB,CAAC;AAsBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AA4MF,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
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AA6IA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAKhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKrD,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAC1C,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAA;IACpB,qCAAqC;IACrC,eAAe,EAAE,SAAS,CAAA;IAC1B,2CAA2C;IAC3C,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,kEAAkE;IAClE,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,+CAA+C;IAC/C,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EACR,OAAO,GACP,CAAC,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,CAAA;CACxE,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;CACnB,CAAC;AAsBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AA4MF,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"}
@@ -52,7 +52,7 @@ const O = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, D =
52
52
  key: 0,
53
53
  activeWorkspace: e.activeWorkspace,
54
54
  workspaces: e.workspaces,
55
- onCreateWorkspace: t[0] || (t[0] = (o) => i("create:workspace")),
55
+ "onCreate:workspace": t[0] || (t[0] = (o) => i("create:workspace")),
56
56
  "onSelect:workspace": t[1] || (t[1] = (o) => i("select:workspace", o))
57
57
  }, null, 8, ["activeWorkspace", "workspaces"])) : e.layout === "modal" ? (r(), s(C, {
58
58
  key: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AAwUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAOrD;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;;YAA9B,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;;AAFxC,wBAuZC"}
1
+ {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AA2WA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAQrD;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;;YAA9B,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;;AAFxC,wBA+bC"}