@scalar/api-client 2.15.0 → 2.17.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.
- package/CHANGELOG.md +150 -0
- package/dist/hooks/useResponseBody.js +6 -6
- package/dist/libs/errors.d.ts +1 -0
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/errors.js +1 -0
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +41 -35
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +28 -38
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +84 -45
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +1 -11
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +28 -35
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts +10 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +22 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +31 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +31 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +3 -9
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +56 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +10 -3
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +46 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +45 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.js +66 -0
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +9 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.d.ts +16 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +4 -0
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +17 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts +9 -3
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +21 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +53 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.js +120 -0
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +89 -110
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +8 -13
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +22 -28
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +19 -8
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +30 -24
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +12 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +20 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.d.ts +10 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +4 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +14 -12
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +191 -169
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +10 -10
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +2 -1
- 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 +15 -19
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +2 -2
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/types.d.ts +16 -0
- package/dist/v2/blocks/operation-code-sample/types.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +15 -10
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +158 -125
- 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 +59 -50
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +8 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +127 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +24 -23
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +148 -149
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +28 -27
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -2
- 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 +13 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +4 -4
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +41 -45
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue.js +27 -27
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +1 -1
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.d.ts +18 -0
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +12 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -87
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts +19 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +24 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +59 -56
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -24
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +44 -43
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.d.ts +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +4 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -2
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +7 -6
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +61 -59
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +2 -2
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +44 -44
- package/dist/v2/components/resize/index.d.ts +0 -1
- package/dist/v2/components/resize/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -5
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +49 -47
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.d.ts +3 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +128 -139
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +103 -80
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +1 -1
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
- 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/helpers/routes.d.ts +32 -6
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +25 -16
- package/dist/v2/{hooks/use-sidebar-state.d.ts → features/app/hooks/use-app-sidebar.d.ts} +10 -11
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +1 -0
- package/dist/v2/{hooks/use-sidebar-state.js → features/app/hooks/use-app-sidebar.js} +19 -19
- package/dist/v2/features/app/hooks/use-document-watcher.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-sync-path.d.ts +2 -2
- package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-sync-path.js +52 -0
- package/dist/v2/{hooks → features/app/hooks}/use-tabs.d.ts +2 -2
- package/dist/v2/features/app/hooks/use-tabs.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-tabs.js +1 -1
- package/dist/v2/{hooks/use-workspace-client-events.d.ts → features/app/hooks/use-workspace-client-app-events.d.ts} +5 -5
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +1 -0
- package/dist/v2/{hooks/use-workspace-client-events.js → features/app/hooks/use-workspace-client-app-events.js} +48 -45
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-workspace-selector.js +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +92 -2
- package/dist/v2/features/collection/DocumentCollection.vue2.js +2 -91
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +42 -2
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +2 -41
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +14 -12
- package/dist/v2/features/collection/components/Cookies.vue.js +30 -1
- package/dist/v2/features/collection/components/Cookies.vue2.js +1 -29
- package/dist/v2/features/collection/components/Environment.vue.js +32 -1
- package/dist/v2/features/collection/components/Environment.vue2.js +1 -31
- package/dist/v2/features/collection/components/Overview.vue2.js +5 -4
- package/dist/v2/features/collection/components/Servers.vue.js +142 -2
- package/dist/v2/features/collection/components/Servers.vue2.js +2 -141
- package/dist/v2/features/collection/components/Settings.vue.js +58 -2
- package/dist/v2/features/collection/components/Settings.vue2.js +2 -57
- package/dist/v2/features/modal/Modal.vue.d.ts +23 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +118 -31
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +18 -32
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -26
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts +55 -0
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts.map +1 -0
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +29 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +42 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts.map +1 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +93 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +18 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +30 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +59 -28
- package/dist/v2/features/operation/helpers/get-operation-header.d.ts +17 -0
- package/dist/v2/features/operation/helpers/get-operation-header.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-operation-header.js +12 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +1 -1
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +7 -0
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-selected-security.js +19 -0
- package/dist/v2/features/operation/index.d.ts +0 -1
- package/dist/v2/features/operation/index.d.ts.map +1 -1
- package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/v2/features/search/components/SearchModal.vue.js +3 -3
- package/dist/v2/features/search/components/SearchModal.vue2.js +45 -44
- package/dist/v2/helpers/generate-location-id.d.ts +19 -0
- package/dist/v2/helpers/generate-location-id.d.ts.map +1 -0
- package/dist/v2/helpers/generate-location-id.js +10 -0
- package/dist/v2/helpers/get-active-environment.d.ts +5 -0
- package/dist/v2/helpers/get-active-environment.d.ts.map +1 -0
- package/dist/v2/helpers/get-active-environment.js +22 -0
- package/dist/v2/helpers/get-tab-details.d.ts +2 -2
- package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +1 -1
- package/dist/v2/helpers/plugins.d.ts +59 -0
- package/dist/v2/helpers/plugins.d.ts.map +1 -0
- package/dist/v2/helpers/plugins.js +11 -0
- package/dist/v2/hooks/use-scroll-lock.d.ts +28 -0
- package/dist/v2/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/v2/hooks/use-scroll-lock.js +21 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +18 -18
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts +0 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.js +0 -28
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts +0 -6
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +0 -1
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.js +0 -12
- package/dist/v2/hooks/use-document-watcher.d.ts.map +0 -1
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +0 -1
- package/dist/v2/hooks/use-sync-path.d.ts.map +0 -1
- package/dist/v2/hooks/use-sync-path.js +0 -51
- package/dist/v2/hooks/use-tabs.d.ts.map +0 -1
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +0 -1
- package/dist/v2/hooks/use-workspace-selector.d.ts.map +0 -1
- package/dist/v2/plugins.d.ts +0 -44
- package/dist/v2/plugins.d.ts.map +0 -1
- /package/dist/v2/{hooks → features/app/hooks}/use-document-watcher.d.ts +0 -0
- /package/dist/v2/{hooks → features/app/hooks}/use-document-watcher.js +0 -0
- /package/dist/v2/{hooks → features/app/hooks}/use-workspace-selector.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAE/E,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,eAAe,EAAE,SAAS,CAAA;IAC1B;;;OAGG;IACH,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB,CAAC;;;;;;;;AAgJF,wBAOG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ClientPlugin } from '../../../v2/helpers/plugins.js';
|
|
1
2
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
2
3
|
/**
|
|
3
4
|
* Main entry point for the API client for electron and web.
|
|
@@ -6,8 +7,10 @@ import type { ClientLayout } from '../../../v2/types/layout';
|
|
|
6
7
|
*/
|
|
7
8
|
declare const _default: import("vue").DefineComponent<{
|
|
8
9
|
layout: Exclude<ClientLayout, "modal">;
|
|
10
|
+
plugins?: ClientPlugin[];
|
|
9
11
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
10
12
|
layout: Exclude<ClientLayout, "modal">;
|
|
13
|
+
plugins?: ClientPlugin[];
|
|
11
14
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
15
|
export default _default;
|
|
13
16
|
//# 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":"AA8UA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AASrD;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;;YADhB,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;;AAH1B,wBA8aC"}
|
|
@@ -1,171 +1,160 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { isHttpMethod as
|
|
4
|
-
import { getThemeStyles as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import re from "./components/
|
|
10
|
-
import se from "./
|
|
11
|
-
import ne from "
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import Se from "./components/
|
|
22
|
-
import fe from "./
|
|
23
|
-
import we from "./
|
|
24
|
-
const he = ["innerHTML"],
|
|
25
|
-
...
|
|
1
|
+
import { defineComponent as $, ref as F, computed as r, createElementBlock as V, createBlock as W, unref as e, openBlock as m, Fragment as z, createElementVNode as y, createVNode as l, withCtx as G, normalizeProps as K, guardReactiveProps as j } from "vue";
|
|
2
|
+
import { useModal as q, ScalarTeleportRoot as J } from "@scalar/components";
|
|
3
|
+
import { isHttpMethod as Q } from "@scalar/helpers/http/is-http-method";
|
|
4
|
+
import { getThemeStyles as X } from "@scalar/themes";
|
|
5
|
+
import { ScalarToasts as Y } from "@scalar/use-toasts";
|
|
6
|
+
import { createWorkspaceEventBus as Z } from "@scalar/workspace-store/events";
|
|
7
|
+
import { useRoute as ee, useRouter as te, RouterView as oe } from "vue-router";
|
|
8
|
+
import ae from "./components/CreateWorkspaceModal.vue.js";
|
|
9
|
+
import re from "./components/SplashScreen.vue.js";
|
|
10
|
+
import { useAppSidebar as se } from "./hooks/use-app-sidebar.js";
|
|
11
|
+
import { useDocumentWatcher as ne } from "./hooks/use-document-watcher.js";
|
|
12
|
+
import { useSyncPath as le } from "./hooks/use-sync-path.js";
|
|
13
|
+
import { useWorkspaceSelector as ce } from "./hooks/use-workspace-selector.js";
|
|
14
|
+
import ue from "../command-palette/components/TheCommandPalette.vue.js";
|
|
15
|
+
import { useCommandPaletteState as pe } from "../command-palette/hooks/use-command-palette-state.js";
|
|
16
|
+
import { getActiveEnvironment as ie } from "../../helpers/get-active-environment.js";
|
|
17
|
+
import { useColorMode as me } from "../../hooks/use-color-mode.js";
|
|
18
|
+
import { useGlobalHotKeys as de } from "../../hooks/use-global-hot-keys.js";
|
|
19
|
+
import ve from "./components/AppSidebar.vue.js";
|
|
20
|
+
import ke from "./components/DesktopTabs.vue.js";
|
|
21
|
+
import Se from "./components/WebTopNav.vue.js";
|
|
22
|
+
import { useTabs as fe } from "./hooks/use-tabs.js";
|
|
23
|
+
import { useWorkspaceClientAppEvents as we } from "./hooks/use-workspace-client-app-events.js";
|
|
24
|
+
const he = ["innerHTML"], We = { class: "flex min-h-0 flex-1" }, ye = { class: "bg-b-1 flex-1" }, be = {}, je = /* @__PURE__ */ $({
|
|
25
|
+
...be,
|
|
26
26
|
__name: "App",
|
|
27
27
|
props: {
|
|
28
|
-
layout: {}
|
|
28
|
+
layout: {},
|
|
29
|
+
plugins: { default: () => [] }
|
|
29
30
|
},
|
|
30
|
-
setup(
|
|
31
|
+
setup(d) {
|
|
31
32
|
typeof window < "u" && (window.dataDumpWorkspace = () => o.value);
|
|
32
|
-
const
|
|
33
|
+
const s = Z({
|
|
33
34
|
debug: !1
|
|
34
|
-
}),
|
|
35
|
-
const a =
|
|
35
|
+
}), v = F(!0), B = ee(), A = te(), c = (t) => {
|
|
36
|
+
const a = B.params[t];
|
|
36
37
|
return typeof a == "string" ? a : void 0;
|
|
37
|
-
},
|
|
38
|
-
const
|
|
39
|
-
return
|
|
40
|
-
}),
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
const
|
|
38
|
+
}, k = r(() => c("workspaceSlug")), n = r(() => c("documentSlug")), S = r(() => !n.value || o.value === null ? null : o.value.workspace.documents[n.value] ?? null), f = r(() => {
|
|
39
|
+
const t = c("pathEncoded");
|
|
40
|
+
return t ? decodeURIComponent(t) : void 0;
|
|
41
|
+
}), w = r(() => {
|
|
42
|
+
const t = c("method");
|
|
43
|
+
return t && Q(t) ? t : void 0;
|
|
44
|
+
}), b = r(() => c("exampleName")), g = ce(), { store: o, workspaces: T, activeWorkspace: p, setWorkspaceId: O, createWorkspace: U } = g;
|
|
45
|
+
me({ workspaceStore: o });
|
|
46
|
+
const i = se({
|
|
46
47
|
workspaceStore: o,
|
|
47
|
-
documentSlug:
|
|
48
|
-
path:
|
|
49
|
-
method:
|
|
50
|
-
exampleName:
|
|
51
|
-
}),
|
|
48
|
+
documentSlug: n,
|
|
49
|
+
path: f,
|
|
50
|
+
method: w,
|
|
51
|
+
exampleName: b
|
|
52
|
+
}), E = fe({
|
|
52
53
|
workspaceStore: o,
|
|
53
|
-
getEntryByLocation:
|
|
54
|
-
workspaceSlug:
|
|
55
|
-
documentSlug:
|
|
56
|
-
path:
|
|
57
|
-
method:
|
|
58
|
-
}), { isLoading:
|
|
59
|
-
workspaceSelectorState:
|
|
60
|
-
tabsState:
|
|
61
|
-
eventBus:
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
eventBus:
|
|
65
|
-
document:
|
|
54
|
+
getEntryByLocation: i.getEntryByLocation,
|
|
55
|
+
workspaceSlug: k,
|
|
56
|
+
documentSlug: n,
|
|
57
|
+
path: f,
|
|
58
|
+
method: w
|
|
59
|
+
}), { isLoading: x } = le({
|
|
60
|
+
workspaceSelectorState: g,
|
|
61
|
+
tabsState: E,
|
|
62
|
+
eventBus: s
|
|
63
|
+
}), _ = pe();
|
|
64
|
+
we({
|
|
65
|
+
eventBus: s,
|
|
66
|
+
document: S,
|
|
66
67
|
workspaceStore: o,
|
|
67
|
-
isSidebarOpen:
|
|
68
|
-
commandPaletteState:
|
|
69
|
-
sidebarState:
|
|
70
|
-
}),
|
|
71
|
-
documentName:
|
|
68
|
+
isSidebarOpen: v,
|
|
69
|
+
commandPaletteState: _,
|
|
70
|
+
sidebarState: i
|
|
71
|
+
}), de(s, d.layout), ne({
|
|
72
|
+
documentName: n,
|
|
72
73
|
store: o,
|
|
73
74
|
initialTimeout: 5e3
|
|
74
75
|
});
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const e = o.value.workspace["x-scalar-active-environment"];
|
|
79
|
-
if (!e)
|
|
80
|
-
return y(W, {});
|
|
81
|
-
const a = o.value.workspace["x-scalar-environments"]?.[e] ?? {
|
|
82
|
-
variables: []
|
|
83
|
-
}, s = k.value?.["x-scalar-environments"]?.[e] ?? {
|
|
84
|
-
variables: []
|
|
85
|
-
};
|
|
86
|
-
return y(W, {
|
|
87
|
-
...a,
|
|
88
|
-
...s,
|
|
89
|
-
variables: [...a.variables, ...s.variables]
|
|
90
|
-
});
|
|
91
|
-
}), L = r(() => {
|
|
76
|
+
const I = r(
|
|
77
|
+
() => ie(o.value, S.value)
|
|
78
|
+
), M = r(() => {
|
|
92
79
|
if (o.value === null)
|
|
93
80
|
return "";
|
|
94
|
-
const
|
|
95
|
-
return
|
|
96
|
-
}),
|
|
97
|
-
() => o.value?.workspace?.["x-scalar-sidebar-width"] ??
|
|
98
|
-
),
|
|
99
|
-
() => !!(
|
|
100
|
-
),
|
|
81
|
+
const t = o.value.workspace["x-scalar-theme"];
|
|
82
|
+
return t ? `<style>${X(t)}</style>` : "";
|
|
83
|
+
}), P = 288, D = r(
|
|
84
|
+
() => o.value?.workspace?.["x-scalar-sidebar-width"] ?? P
|
|
85
|
+
), L = r(
|
|
86
|
+
() => !!(k.value && !n.value)
|
|
87
|
+
), N = (t) => o.value?.update("x-scalar-sidebar-width", t), R = () => A.push({
|
|
101
88
|
name: "workspace.environment",
|
|
102
|
-
params: { workspaceSlug:
|
|
103
|
-
}),
|
|
104
|
-
|
|
105
|
-
},
|
|
89
|
+
params: { workspaceSlug: k.value }
|
|
90
|
+
}), C = (t) => {
|
|
91
|
+
t && O(t);
|
|
92
|
+
}, H = r(
|
|
106
93
|
() => ({
|
|
107
|
-
documentSlug:
|
|
108
|
-
document:
|
|
109
|
-
environment:
|
|
110
|
-
eventBus:
|
|
111
|
-
exampleName:
|
|
112
|
-
layout:
|
|
113
|
-
method:
|
|
114
|
-
path:
|
|
94
|
+
documentSlug: n.value ?? "",
|
|
95
|
+
document: S.value,
|
|
96
|
+
environment: I.value,
|
|
97
|
+
eventBus: s,
|
|
98
|
+
exampleName: b.value,
|
|
99
|
+
layout: d.layout,
|
|
100
|
+
method: w.value,
|
|
101
|
+
path: f.value,
|
|
115
102
|
workspaceStore: o.value,
|
|
116
|
-
activeWorkspace:
|
|
103
|
+
activeWorkspace: p.value,
|
|
104
|
+
plugins: d.plugins
|
|
117
105
|
})
|
|
118
|
-
),
|
|
119
|
-
return (
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
default:
|
|
123
|
-
e
|
|
106
|
+
), h = q();
|
|
107
|
+
return (t, a) => e(o) !== null && e(p) !== null && !e(x) ? (m(), V(z, { key: 0 }, [
|
|
108
|
+
y("div", { innerHTML: M.value }, null, 8, he),
|
|
109
|
+
l(e(J), null, {
|
|
110
|
+
default: G(() => [
|
|
111
|
+
l(e(Y)),
|
|
112
|
+
t.layout === "desktop" ? (m(), W(ke, {
|
|
124
113
|
key: 0,
|
|
125
|
-
eventBus:
|
|
126
|
-
tabsState:
|
|
127
|
-
}, null, 8, ["eventBus", "tabsState"])) : (m(),
|
|
114
|
+
eventBus: e(s),
|
|
115
|
+
tabsState: e(E)
|
|
116
|
+
}, null, 8, ["eventBus", "tabsState"])) : (m(), W(Se, {
|
|
128
117
|
key: 1,
|
|
129
|
-
activeWorkspace:
|
|
130
|
-
workspaces:
|
|
131
|
-
"onCreate:workspace": a[0] || (a[0] = (
|
|
132
|
-
"onSelect:workspace":
|
|
118
|
+
activeWorkspace: e(p),
|
|
119
|
+
workspaces: e(T),
|
|
120
|
+
"onCreate:workspace": a[0] || (a[0] = (u) => e(h).show()),
|
|
121
|
+
"onSelect:workspace": C
|
|
133
122
|
}, null, 8, ["activeWorkspace", "workspaces"])),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
isSidebarOpen:
|
|
137
|
-
"onUpdate:isSidebarOpen": a[1] || (a[1] = (
|
|
138
|
-
activeWorkspace:
|
|
139
|
-
eventBus:
|
|
140
|
-
isWorkspaceOpen:
|
|
141
|
-
layout:
|
|
142
|
-
sidebarState:
|
|
143
|
-
sidebarWidth:
|
|
144
|
-
store:
|
|
145
|
-
workspaces:
|
|
146
|
-
"onClick:workspace":
|
|
147
|
-
"onCreate:workspace": a[2] || (a[2] = (
|
|
148
|
-
"onSelect:workspace":
|
|
149
|
-
onSelectItem:
|
|
150
|
-
"onUpdate:sidebarWidth":
|
|
123
|
+
y("main", We, [
|
|
124
|
+
l(ve, {
|
|
125
|
+
isSidebarOpen: v.value,
|
|
126
|
+
"onUpdate:isSidebarOpen": a[1] || (a[1] = (u) => v.value = u),
|
|
127
|
+
activeWorkspace: e(p),
|
|
128
|
+
eventBus: e(s),
|
|
129
|
+
isWorkspaceOpen: L.value,
|
|
130
|
+
layout: t.layout,
|
|
131
|
+
sidebarState: e(i).state,
|
|
132
|
+
sidebarWidth: D.value,
|
|
133
|
+
store: e(o),
|
|
134
|
+
workspaces: e(T),
|
|
135
|
+
"onClick:workspace": R,
|
|
136
|
+
"onCreate:workspace": a[2] || (a[2] = (u) => e(h).show()),
|
|
137
|
+
"onSelect:workspace": C,
|
|
138
|
+
onSelectItem: e(i).handleSelectItem,
|
|
139
|
+
"onUpdate:sidebarWidth": N
|
|
151
140
|
}, null, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onSelectItem"]),
|
|
152
|
-
|
|
153
|
-
state:
|
|
154
|
-
"onCreate:workspace": a[3] || (a[3] = (
|
|
141
|
+
l(ae, {
|
|
142
|
+
state: e(h),
|
|
143
|
+
"onCreate:workspace": a[3] || (a[3] = (u) => e(U)(u))
|
|
155
144
|
}, null, 8, ["state"]),
|
|
156
|
-
|
|
157
|
-
eventBus:
|
|
158
|
-
paletteState:
|
|
159
|
-
workspaceStore:
|
|
145
|
+
l(ue, {
|
|
146
|
+
eventBus: e(s),
|
|
147
|
+
paletteState: e(_),
|
|
148
|
+
workspaceStore: e(o)
|
|
160
149
|
}, null, 8, ["eventBus", "paletteState", "workspaceStore"]),
|
|
161
|
-
|
|
162
|
-
|
|
150
|
+
y("div", ye, [
|
|
151
|
+
l(e(oe), K(j(H.value)), null, 16)
|
|
163
152
|
])
|
|
164
153
|
])
|
|
165
154
|
]),
|
|
166
155
|
_: 1
|
|
167
156
|
})
|
|
168
|
-
], 64)) : (m(),
|
|
157
|
+
], 64)) : (m(), W(re, { key: 1 }));
|
|
169
158
|
}
|
|
170
159
|
});
|
|
171
160
|
export {
|
|
@@ -2,7 +2,7 @@ import type { SidebarState } from '@scalar/sidebar';
|
|
|
2
2
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
3
3
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
4
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
5
|
-
import type { Workspace } from '../../../../v2/hooks/use-workspace-selector.js';
|
|
5
|
+
import type { Workspace } from '../../../../v2/features/app/hooks/use-workspace-selector.js';
|
|
6
6
|
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
7
7
|
type __VLS_Props = {
|
|
8
8
|
/**
|
|
@@ -45,8 +45,8 @@ type __VLS_PublicProps = __VLS_Props & {
|
|
|
45
45
|
'sidebarWidth': number;
|
|
46
46
|
};
|
|
47
47
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
-
"update:isSidebarOpen": (value: boolean) => any;
|
|
49
48
|
"update:sidebarWidth": (value: number) => any;
|
|
49
|
+
"update:isSidebarOpen": (value: boolean) => any;
|
|
50
50
|
} & {
|
|
51
51
|
"create:workspace": () => any;
|
|
52
52
|
"select:workspace": (id?: string | undefined) => any;
|
|
@@ -56,9 +56,9 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
56
56
|
"onCreate:workspace"?: (() => any) | undefined;
|
|
57
57
|
"onSelect:workspace"?: ((id?: string | undefined) => any) | undefined;
|
|
58
58
|
onSelectItem?: ((id: string) => any) | undefined;
|
|
59
|
-
"onUpdate:isSidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
60
59
|
"onUpdate:sidebarWidth"?: ((value: number) => any) | undefined;
|
|
61
60
|
"onClick:workspace"?: (() => any) | undefined;
|
|
61
|
+
"onUpdate:isSidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
62
62
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
63
|
export default _default;
|
|
64
64
|
//# sourceMappingURL=AppSidebar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/AppSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/AppSidebar.vue"],"names":[],"mappings":"AAobA,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;AAShF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,WAAW,GAAG;IACjB;;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,SAAS,CAAA;IAC1B;;;OAGG;IACH,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB;;;OAGG;IACH,QAAQ,EAAE,iBAAiB,CAAA;IAC3B;;;OAGG;IACH,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AA8KF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;;;;;;;;;;;;;;;;;AA6aF,wBAOG"}
|
|
@@ -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
|
|
4
|
+
const m = /* @__PURE__ */ p(o, [["__scopeId", "data-v-39643b43"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|