@scalar/api-client 2.18.1 → 2.18.4
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.
- package/CHANGELOG.md +80 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
- package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
- package/dist/components/DataTable/DataTable.vue.js +17 -17
- package/dist/components/DataTable/DataTableCell.vue.js +9 -9
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
- package/dist/components/DataTable/DataTableText.vue.js +10 -10
- package/dist/components/Form/Form.vue.js +32 -32
- package/dist/components/Form/LabelInput.vue2.js +15 -15
- package/dist/components/HelpfulLink.vue.js +7 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
- package/dist/components/IconSelector.vue.js +16 -16
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
- package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
- package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +16 -16
- package/dist/components/SectionFilter.vue2.js +21 -21
- package/dist/components/SectionFilterButton.vue.js +7 -7
- package/dist/components/Server/ServerDropdown.vue.js +32 -32
- package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
- package/dist/components/Server/ServerSelector.vue.js +27 -27
- package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
- package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
- package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
- package/dist/components/Server/types.d.ts +2 -1
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -18
- package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
- package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
- package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
- package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
- package/dist/data/httpHeaders.d.ts +2 -1
- package/dist/data/httpHeaders.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.js +4 -4
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-manager.d.ts +0 -2
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/routes.d.ts +0 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +0 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
- package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +69 -69
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +29 -29
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +75 -75
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
- package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
- package/dist/v2/components/data-table/DataTable.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
- package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
- package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
- package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
- package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
- package/dist/v2/components/resize/Resize.vue2.js +11 -11
- package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +39 -34
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +11 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +34 -35
- package/dist/v2/features/app/App.vue.d.ts +16 -2
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +50 -45
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +55 -61
- package/dist/v2/features/app/app-state.d.ts +2 -1
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +10 -10
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +11 -1
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +113 -110
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
- package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
- package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
- package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +3 -60
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
- package/dist/v2/features/app/index.d.ts +5 -1
- package/dist/v2/features/app/index.d.ts.map +1 -1
- package/dist/v2/features/app/index.js +8 -2
- package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
- package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
- package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
- package/dist/v2/features/collection/components/Environment.vue.js +10 -10
- package/dist/v2/features/collection/components/Form.vue.js +21 -21
- package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
- package/dist/v2/features/collection/components/Servers.vue.js +37 -37
- package/dist/v2/features/collection/components/Settings.vue.js +22 -22
- package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
- package/dist/v2/features/command-palette/types.d.ts +11 -10
- package/dist/v2/features/command-palette/types.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
- package/dist/v2/features/environments/components/Environment.vue.js +16 -16
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
- package/dist/v2/features/modal/Modal.vue2.js +56 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
- package/dist/v2/features/operation/Operation.vue.js +34 -34
- package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
- package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
- package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
- package/dist/v2/features/search/types.d.ts +5 -4
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
- package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
- package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +0 -2
- package/dist/v2/helpers/plugins.d.ts +2 -2
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
- package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
- package/dist/views/Cookies/CookieModal.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
- package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
- package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
- package/dist/views/Request/Request.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
- package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
- package/dist/views/Request/RequestSection/index.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
- package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
- package/package.json +24 -24
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
- package/dist/components/ScreenReader.vue.d.ts +0 -20
- package/dist/components/ScreenReader.vue.d.ts.map +0 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
|
@@ -39,6 +39,8 @@ type __VLS_Slots = {
|
|
|
39
39
|
empty?(props: {
|
|
40
40
|
item: TraversedEntry;
|
|
41
41
|
}): unknown;
|
|
42
|
+
/** Slot for customizing the actions section of the sidebar menu. */
|
|
43
|
+
sidebarMenuActions?(): unknown;
|
|
42
44
|
};
|
|
43
45
|
type __VLS_PublicProps = __VLS_Props & {
|
|
44
46
|
/** Controls the width of the sidebar */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AA4JA,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE/E,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,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIrD,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;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,2CAA2C;IAC3C,UAAU,EAAE,mBAAmB,EAAE,CAAA;IACjC,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,sDAAsD;IACtD,SAAS,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;IACpD,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;IAClB,yDAAyD;IACzD,KAAK,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;IAChD,oEAAoE;IACpE,kBAAkB,CAAC,IAAI,OAAO,CAAA;CAC/B,CAAC;AAiBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AA2NF,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,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as y, mergeModels as
|
|
2
|
-
import { ScalarIconButton as
|
|
3
|
-
import { ScalarIconMagnifyingGlass as
|
|
4
|
-
import { ScalarSidebar as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as y, mergeModels as f, useSlots as g, ref as B, useModel as x, createBlock as n, openBlock as r, unref as i, withCtx as s, createVNode as W, createSlots as $, renderSlot as l, normalizeProps as b, guardReactiveProps as p, createElementVNode as k, createCommentVNode as u, createElementBlock as D } from "vue";
|
|
2
|
+
import { ScalarIconButton as M } from "@scalar/components";
|
|
3
|
+
import { ScalarIconMagnifyingGlass as C } from "@scalar/icons";
|
|
4
|
+
import { ScalarSidebar as E } from "@scalar/sidebar";
|
|
5
|
+
import I from "./SidebarMenu.vue.js";
|
|
6
|
+
import h from "../resize/Resize.vue.js";
|
|
7
|
+
import V from "../../features/search/components/SearchButton.vue.js";
|
|
8
|
+
const z = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, N = { class: "flex items-center justify-between" }, R = { key: 1 }, H = /* @__PURE__ */ y({
|
|
9
9
|
__name: "Sidebar",
|
|
10
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ f({
|
|
11
11
|
sidebarState: {},
|
|
12
12
|
layout: {},
|
|
13
13
|
activeWorkspace: {},
|
|
@@ -22,16 +22,16 @@ const N = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, R =
|
|
|
22
22
|
},
|
|
23
23
|
sidebarWidthModifiers: {}
|
|
24
24
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
return (
|
|
25
|
+
emits: /* @__PURE__ */ f(["selectItem", "select:workspace", "create:workspace", "reorder"], ["update:sidebarWidth"]),
|
|
26
|
+
setup(e, { emit: v }) {
|
|
27
|
+
const d = v, w = g(), c = B(!1), m = x(e, "sidebarWidth");
|
|
28
|
+
return (a, o) => (r(), n(i(h), {
|
|
29
29
|
width: m.value,
|
|
30
30
|
"onUpdate:width": o[5] || (o[5] = (t) => m.value = t),
|
|
31
31
|
class: "flex flex-col"
|
|
32
32
|
}, {
|
|
33
33
|
default: s(() => [
|
|
34
|
-
|
|
34
|
+
W(i(E), {
|
|
35
35
|
class: "flex w-auto flex-1 pt-2",
|
|
36
36
|
indent: 15,
|
|
37
37
|
isDraggable: e.layout !== "modal",
|
|
@@ -40,48 +40,53 @@ const N = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, R =
|
|
|
40
40
|
isSelected: e.sidebarState.isSelected,
|
|
41
41
|
items: e.sidebarState.items.value,
|
|
42
42
|
layout: "client",
|
|
43
|
-
onReorder: o[3] || (o[3] = (t, S) =>
|
|
44
|
-
onSelectItem: o[4] || (o[4] = (t) =>
|
|
45
|
-
},
|
|
43
|
+
onReorder: o[3] || (o[3] = (t, S) => d("reorder", t, S)),
|
|
44
|
+
onSelectItem: o[4] || (o[4] = (t) => d("selectItem", t))
|
|
45
|
+
}, $({
|
|
46
46
|
header: s(() => [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
e.layout === "desktop" ? (r(),
|
|
47
|
+
k("div", z, [
|
|
48
|
+
k("div", N, [
|
|
49
|
+
e.layout === "desktop" ? (r(), n(I, {
|
|
50
50
|
key: 0,
|
|
51
51
|
activeWorkspace: e.activeWorkspace,
|
|
52
52
|
workspaces: e.workspaces,
|
|
53
|
-
"onCreate:workspace": o[0] || (o[0] = (t) =>
|
|
54
|
-
"onSelect:workspace": o[1] || (o[1] = (t) =>
|
|
55
|
-
},
|
|
56
|
-
|
|
53
|
+
"onCreate:workspace": o[0] || (o[0] = (t) => d("create:workspace")),
|
|
54
|
+
"onSelect:workspace": o[1] || (o[1] = (t) => d("select:workspace", t))
|
|
55
|
+
}, {
|
|
56
|
+
sidebarMenuActions: s(() => [
|
|
57
|
+
l(a.$slots, "sidebarMenuActions")
|
|
58
|
+
]),
|
|
59
|
+
_: 3
|
|
60
|
+
}, 8, ["activeWorkspace", "workspaces"])) : e.layout === "modal" ? (r(), D("div", R)) : u("", !0),
|
|
61
|
+
e.layout !== "web" ? (r(), n(i(M), {
|
|
57
62
|
key: 2,
|
|
58
|
-
icon:
|
|
63
|
+
icon: i(C),
|
|
59
64
|
label: "Search",
|
|
60
|
-
onClick: o[2] || (o[2] = (t) =>
|
|
61
|
-
}, null, 8, ["icon"])) :
|
|
65
|
+
onClick: o[2] || (o[2] = (t) => c.value = !c.value)
|
|
66
|
+
}, null, 8, ["icon"])) : u("", !0)
|
|
62
67
|
]),
|
|
63
|
-
|
|
68
|
+
c.value || e.layout === "web" ? (r(), n(i(V), {
|
|
64
69
|
key: 0,
|
|
65
70
|
documents: e.documents,
|
|
66
71
|
eventBus: e.eventBus
|
|
67
|
-
}, null, 8, ["documents", "eventBus"])) :
|
|
72
|
+
}, null, 8, ["documents", "eventBus"])) : u("", !0)
|
|
68
73
|
])
|
|
69
74
|
]),
|
|
70
75
|
decorator: s((t) => [
|
|
71
|
-
|
|
76
|
+
l(a.$slots, "decorator", b(p(t)))
|
|
72
77
|
]),
|
|
73
78
|
before: s(() => [
|
|
74
|
-
|
|
79
|
+
l(a.$slots, "workspaceButton")
|
|
75
80
|
]),
|
|
76
81
|
footer: s(() => [
|
|
77
|
-
|
|
82
|
+
l(a.$slots, "footer")
|
|
78
83
|
]),
|
|
79
84
|
_: 2
|
|
80
85
|
}, [
|
|
81
86
|
w.empty ? {
|
|
82
87
|
name: "empty",
|
|
83
88
|
fn: s((t) => [
|
|
84
|
-
|
|
89
|
+
l(a.$slots, "empty", b(p(t)))
|
|
85
90
|
]),
|
|
86
91
|
key: "0"
|
|
87
92
|
} : void 0
|
|
@@ -92,5 +97,5 @@ const N = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, R =
|
|
|
92
97
|
}
|
|
93
98
|
});
|
|
94
99
|
export {
|
|
95
|
-
|
|
100
|
+
H as default
|
|
96
101
|
};
|
|
@@ -13,12 +13,22 @@ type __VLS_Props = {
|
|
|
13
13
|
*/
|
|
14
14
|
workspaces: ScalarListboxOption[];
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type __VLS_Slots = {
|
|
17
|
+
/** Slot for customizing the actions section of the sidebar menu. */
|
|
18
|
+
sidebarMenuActions?(): unknown;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
21
|
"create:workspace": () => any;
|
|
18
22
|
"select:workspace": (id?: string | undefined) => any;
|
|
19
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
24
|
"onCreate:workspace"?: (() => any) | undefined;
|
|
21
25
|
"onSelect:workspace"?: ((id?: string | undefined) => any) | undefined;
|
|
22
26
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
28
|
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
24
34
|
//# sourceMappingURL=SidebarMenu.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"AAoEA,OAAO,EAOL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAI3B,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B;;;OAGG;IACH,UAAU,EAAE,mBAAmB,EAAE,CAAA;CAClC,CAAC;AAWF,KAAK,WAAW,GAAG;IACjB,oEAAoE;IACpE,kBAAkB,CAAC,IAAI,OAAO,CAAA;CAC/B,CAAC;AA8HF,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,48 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMenu as
|
|
3
|
-
import { ScalarIconGear as
|
|
4
|
-
import { RouterLink as
|
|
5
|
-
const L = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as p, createBlock as u, openBlock as k, unref as o, withCtx as t, createVNode as r, renderSlot as m, createTextVNode as d } from "vue";
|
|
2
|
+
import { ScalarMenu as S, ScalarMenuSection as f, ScalarMenuWorkspacePicker as w, ScalarMenuLink as M, ScalarMenuResources as C, ScalarMenuSupport as V } from "@scalar/components";
|
|
3
|
+
import { ScalarIconGear as W } from "@scalar/icons";
|
|
4
|
+
import { RouterLink as v } from "vue-router";
|
|
5
|
+
const L = /* @__PURE__ */ p({
|
|
6
6
|
__name: "SidebarMenu",
|
|
7
7
|
props: {
|
|
8
8
|
activeWorkspace: {},
|
|
9
9
|
workspaces: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["create:workspace", "select:workspace"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
return (
|
|
15
|
-
products:
|
|
16
|
-
sections:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
])
|
|
37
|
-
|
|
38
|
-
}, 8, ["is", "icon", "onClick"])
|
|
12
|
+
setup(a, { emit: i }) {
|
|
13
|
+
const n = i;
|
|
14
|
+
return (c, e) => (k(), u(o(S), null, {
|
|
15
|
+
products: t(() => [...e[2] || (e[2] = [])]),
|
|
16
|
+
sections: t(({ close: l }) => [
|
|
17
|
+
r(o(f), null, {
|
|
18
|
+
default: t(() => [
|
|
19
|
+
m(c.$slots, "sidebarMenuActions", {}, () => [
|
|
20
|
+
r(o(w), {
|
|
21
|
+
modelValue: a.activeWorkspace.id,
|
|
22
|
+
workspaceOptions: a.workspaces,
|
|
23
|
+
onCreateWorkspace: e[0] || (e[0] = (s) => n("create:workspace")),
|
|
24
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => n("select:workspace", s))
|
|
25
|
+
}, null, 8, ["modelValue", "workspaceOptions"]),
|
|
26
|
+
r(o(M), {
|
|
27
|
+
is: o(v),
|
|
28
|
+
icon: o(W),
|
|
29
|
+
to: "/settings",
|
|
30
|
+
onClick: l
|
|
31
|
+
}, {
|
|
32
|
+
default: t(() => [...e[3] || (e[3] = [
|
|
33
|
+
d(" Settings ", -1)
|
|
34
|
+
])]),
|
|
35
|
+
_: 1
|
|
36
|
+
}, 8, ["is", "icon", "onClick"])
|
|
37
|
+
])
|
|
39
38
|
]),
|
|
40
39
|
_: 2
|
|
41
40
|
}, 1024),
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
r(o(C)),
|
|
42
|
+
r(o(V))
|
|
44
43
|
]),
|
|
45
|
-
_:
|
|
44
|
+
_: 3
|
|
46
45
|
}));
|
|
47
46
|
}
|
|
48
47
|
});
|
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
import type { ClientPlugin } from '../../../v2/helpers/plugins.js';
|
|
2
2
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
3
|
+
import { type AppState } from './app-state.js';
|
|
3
4
|
/**
|
|
4
5
|
* Main entry point for the API client for electron and web.
|
|
5
6
|
*
|
|
6
7
|
* This component handles all events and store business logic for the application.
|
|
7
8
|
*/
|
|
8
|
-
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
9
10
|
layout: Exclude<ClientLayout, "modal">;
|
|
10
11
|
plugins?: ClientPlugin[];
|
|
12
|
+
getAppState: () => AppState;
|
|
11
13
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
12
14
|
layout: Exclude<ClientLayout, "modal">;
|
|
13
15
|
plugins?: ClientPlugin[];
|
|
14
|
-
|
|
16
|
+
getAppState: () => AppState;
|
|
17
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
18
|
+
/**
|
|
19
|
+
* Slot for customizing the actions section of the sidebar menu.
|
|
20
|
+
* This slot is used to render custom actions or components within the actions section.
|
|
21
|
+
*/
|
|
22
|
+
'sidebar-menu-actions': [];
|
|
23
|
+
}>;
|
|
15
24
|
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
16
30
|
//# sourceMappingURL=App.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAM3C;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;;YAFnB,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;;IAS3B;;;OAGG;4BACqB,EAAE;;AAjB5B,wBAuUC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,111 +1,116 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { getThemeStyles as
|
|
1
|
+
import { defineComponent as w, computed as p, createElementBlock as S, createBlock as c, unref as t, openBlock as i, Fragment as f, createElementVNode as u, createVNode as s, withCtx as m, renderSlot as b, normalizeProps as h, guardReactiveProps as W } from "vue";
|
|
2
|
+
import { useModal as y, ScalarTeleportRoot as T } from "@scalar/components";
|
|
3
|
+
import { getThemeStyles as g } from "@scalar/themes";
|
|
4
4
|
import { ScalarToasts as B } from "@scalar/use-toasts";
|
|
5
|
-
import { extensions as
|
|
6
|
-
import { RouterView as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useDocumentWatcher as
|
|
10
|
-
import
|
|
11
|
-
import { useColorMode as
|
|
12
|
-
import { useGlobalHotKeys as
|
|
13
|
-
import
|
|
14
|
-
import A from "./components/AppSidebar.vue.js";
|
|
5
|
+
import { extensions as C } from "@scalar/workspace-store/schemas/extensions";
|
|
6
|
+
import { RouterView as E } from "vue-router";
|
|
7
|
+
import x from "./components/CreateWorkspaceModal.vue.js";
|
|
8
|
+
import O from "./components/SplashScreen.vue.js";
|
|
9
|
+
import { useDocumentWatcher as I } from "./hooks/use-document-watcher.js";
|
|
10
|
+
import _ from "../command-palette/components/TheCommandPalette.vue.js";
|
|
11
|
+
import { useColorMode as U } from "../../hooks/use-color-mode.js";
|
|
12
|
+
import { useGlobalHotKeys as A } from "../../hooks/use-global-hot-keys.js";
|
|
13
|
+
import M from "./components/AppSidebar.vue.js";
|
|
15
14
|
import D from "./components/DesktopTabs.vue.js";
|
|
16
15
|
import N from "./components/WebTopNav.vue.js";
|
|
17
|
-
const
|
|
16
|
+
const $ = ["innerHTML"], L = { class: "flex min-h-0 flex-1" }, H = { class: "bg-b-1 flex-1" }, P = {}, oe = /* @__PURE__ */ w({
|
|
18
17
|
...P,
|
|
19
18
|
__name: "App",
|
|
20
19
|
props: {
|
|
21
20
|
layout: {},
|
|
22
|
-
plugins: { default: () => [] }
|
|
21
|
+
plugins: { default: () => [] },
|
|
22
|
+
getAppState: { type: Function }
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const e =
|
|
26
|
-
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e),
|
|
27
|
-
documentName: () => e.store.value?.workspace[
|
|
24
|
+
setup(o) {
|
|
25
|
+
const e = o.getAppState();
|
|
26
|
+
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), U({ workspaceStore: e.store }), A(e.eventBus, o.layout), I({
|
|
27
|
+
documentName: () => e.store.value?.workspace[C.workspace.activeDocument],
|
|
28
28
|
store: e.store,
|
|
29
29
|
initialTimeout: 5e3
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const d = p(() => {
|
|
32
32
|
if (e.store.value === null)
|
|
33
33
|
return "";
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
}),
|
|
34
|
+
const n = e.store.value.workspace["x-scalar-theme"];
|
|
35
|
+
return n ? `<style>${g(n)}</style>` : "";
|
|
36
|
+
}), v = () => e.router.value?.push({
|
|
37
37
|
name: "workspace.environment",
|
|
38
38
|
params: {
|
|
39
39
|
workspaceSlug: e.activeEntities.workspaceSlug.value
|
|
40
40
|
}
|
|
41
|
-
}), l =
|
|
41
|
+
}), l = y(), k = p(() => ({
|
|
42
42
|
documentSlug: e.activeEntities.documentSlug.value ?? "",
|
|
43
43
|
document: e.store.value?.workspace.activeDocument ?? null,
|
|
44
44
|
environment: e.environment.value,
|
|
45
45
|
eventBus: e.eventBus,
|
|
46
46
|
exampleName: e.activeEntities.exampleName.value,
|
|
47
|
-
layout:
|
|
47
|
+
layout: o.layout,
|
|
48
48
|
method: e.activeEntities.method.value,
|
|
49
49
|
path: e.activeEntities.path.value,
|
|
50
50
|
workspaceStore: e.store.value,
|
|
51
51
|
activeWorkspace: e.workspace.activeWorkspace.value,
|
|
52
|
-
plugins:
|
|
52
|
+
plugins: o.plugins,
|
|
53
53
|
securitySchemes: e.document.value?.components?.securitySchemes ?? {}
|
|
54
54
|
}));
|
|
55
|
-
return (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
default:
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
return (n, a) => t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (i(), S(f, { key: 0 }, [
|
|
56
|
+
u("div", { innerHTML: d.value }, null, 8, $),
|
|
57
|
+
s(t(T), null, {
|
|
58
|
+
default: m(() => [
|
|
59
|
+
s(t(B)),
|
|
60
|
+
o.layout === "desktop" ? (i(), c(D, {
|
|
61
61
|
key: 0,
|
|
62
62
|
activeTabIndex: t(e).tabs.activeTabIndex.value,
|
|
63
63
|
eventBus: t(e).eventBus,
|
|
64
64
|
tabs: t(e).tabs.state.value
|
|
65
|
-
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (
|
|
65
|
+
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (i(), c(N, {
|
|
66
66
|
key: 1,
|
|
67
67
|
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
68
68
|
workspaces: t(e).workspace.workspaceList.value,
|
|
69
69
|
"onCreate:workspace": a[0] || (a[0] = (r) => t(l).show()),
|
|
70
70
|
"onSelect:workspace": t(e).workspace.setId
|
|
71
71
|
}, null, 8, ["activeWorkspace", "workspaces", "onSelect:workspace"])),
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
u("main", L, [
|
|
73
|
+
s(M, {
|
|
74
74
|
isSidebarOpen: t(e).sidebar.isOpen.value,
|
|
75
75
|
"onUpdate:isSidebarOpen": a[1] || (a[1] = (r) => t(e).sidebar.isOpen.value = r),
|
|
76
76
|
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
77
77
|
eventBus: t(e).eventBus,
|
|
78
78
|
isWorkspaceOpen: t(e).workspace.isOpen.value,
|
|
79
|
-
layout:
|
|
79
|
+
layout: o.layout,
|
|
80
80
|
sidebarState: t(e).sidebar.state,
|
|
81
81
|
sidebarWidth: t(e).sidebar.width.value,
|
|
82
82
|
store: t(e).store.value,
|
|
83
83
|
workspaces: t(e).workspace.workspaceList.value,
|
|
84
|
-
"onClick:workspace":
|
|
84
|
+
"onClick:workspace": v,
|
|
85
85
|
"onCreate:workspace": a[2] || (a[2] = (r) => t(l).show()),
|
|
86
86
|
"onSelect:workspace": t(e).workspace.setId,
|
|
87
87
|
onSelectItem: t(e).sidebar.handleSelectItem,
|
|
88
88
|
"onUpdate:sidebarWidth": t(e).sidebar.handleSidebarWidthUpdate
|
|
89
|
-
},
|
|
90
|
-
|
|
89
|
+
}, {
|
|
90
|
+
"sidebar-menu-actions": m(() => [
|
|
91
|
+
b(n.$slots, "sidebar-menu-actions")
|
|
92
|
+
]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onSelect:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
|
|
95
|
+
s(x, {
|
|
91
96
|
state: t(l),
|
|
92
97
|
"onCreate:workspace": a[3] || (a[3] = (r) => t(e).workspace.create(r))
|
|
93
98
|
}, null, 8, ["state"]),
|
|
94
|
-
|
|
99
|
+
s(_, {
|
|
95
100
|
eventBus: t(e).eventBus,
|
|
96
101
|
paletteState: t(e).commandPalette,
|
|
97
102
|
workspaceStore: t(e).store.value
|
|
98
103
|
}, null, 8, ["eventBus", "paletteState", "workspaceStore"]),
|
|
99
|
-
|
|
100
|
-
|
|
104
|
+
u("div", H, [
|
|
105
|
+
s(t(E), h(W(k.value)), null, 16)
|
|
101
106
|
])
|
|
102
107
|
])
|
|
103
108
|
]),
|
|
104
|
-
_:
|
|
109
|
+
_: 3
|
|
105
110
|
})
|
|
106
|
-
], 64)) : (
|
|
111
|
+
], 64)) : (i(), c(O, { key: 1 }));
|
|
107
112
|
}
|
|
108
113
|
});
|
|
109
114
|
export {
|
|
110
|
-
|
|
115
|
+
oe as default
|
|
111
116
|
};
|
|
@@ -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,EAAwC,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7G,OAAO,EACL,KAAK,oBAAoB,
|
|
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,EAAwC,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7G,OAAO,EACL,KAAK,oBAAoB,EA8C1B,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAClF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAY,MAAM,KAAK,CAAA;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAA;AAErF,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,YAAY,EACZ,eAAe,GAChB,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,QAAQ,EAAE,MAAM,cAAc,GAAG,IAAI,CAAA;IACrC,8BAA8B;IAC9B,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IACjC,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,cAAc,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,sBAAsB,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD,oBAAoB,EAAE,WAAW,CAAA;IACjC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,QAmSA"}
|