@scalar/api-client 3.6.1 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +157 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
- package/dist/components/HttpMethod/index.js +2 -0
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.d.ts.map +1 -0
- package/dist/components/{ScalarAsciiArt.vue.js → ScalarAsciiArt/ScalarAsciiArt.vue.js} +3 -3
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.js.map +1 -0
- package/dist/components/{ScalarAsciiArt.vue.script.js → ScalarAsciiArt/ScalarAsciiArt.vue.script.js} +1 -1
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.script.js.map +1 -0
- package/dist/components/ScalarAsciiArt/index.d.ts +2 -0
- package/dist/components/ScalarAsciiArt/index.d.ts.map +1 -0
- package/dist/components/ScalarAsciiArt/index.js +2 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +2 -2
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/Sidebar/index.js +2 -0
- package/dist/components/ViewLayout/index.d.ts +4 -0
- package/dist/components/ViewLayout/index.d.ts.map +1 -0
- package/dist/components/ViewLayout/index.js +4 -0
- package/dist/plugins/posthog/index.d.ts.map +1 -1
- package/dist/plugins/posthog/index.js +21 -12
- package/dist/plugins/posthog/index.js.map +1 -1
- package/dist/plugins/posthog/sanitize-event-payload.d.ts +25 -0
- package/dist/plugins/posthog/sanitize-event-payload.d.ts.map +1 -0
- package/dist/plugins/posthog/sanitize-event-payload.js +136 -0
- package/dist/plugins/posthog/sanitize-event-payload.js.map +1 -0
- package/dist/style.css +214 -1651
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +72 -32
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js +1 -1
- package/dist/v2/blocks/operation-block/index.d.ts +1 -0
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/index.js +2 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.script.js +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
- 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 +15 -9
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js.map +1 -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 +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +2 -1
- 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.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +30 -17
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +43 -10
- package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.script.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +4 -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.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js +4 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -1
- 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 +42 -13
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts +14 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js +136 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js +12 -10
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +2 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js +17 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts +3 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js +21 -9
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +2 -2
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js +1 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +14 -7
- package/dist/v2/blocks/response-block/helpers/media-types.js.map +1 -1
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.d.ts +6 -0
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.js +22 -0
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -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 +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +124 -91
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +30 -20
- 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/OAuth2.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +43 -21
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +15 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +74 -28
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +30 -20
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +190 -72
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -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.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +7 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +26 -10
- 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.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +25 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
- 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 +12 -3
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +4 -4
- package/dist/v2/components/code-input/CodeInput.vue.script.js +1 -1
- package/dist/v2/components/code-input/code-variable-widget.js +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +2 -2
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.script.js +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.script.js +4 -3
- package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -1
- package/dist/v2/constants.js +1 -1
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +2 -2
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +2 -2
- package/dist/v2/features/command-palette/index.d.ts +0 -2
- package/dist/v2/features/command-palette/index.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.js +1 -3
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +2 -2
- package/dist/v2/features/modal/Modal.vue.d.ts +5 -7
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue.script.js +3 -3
- package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +1 -1
- 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 +8 -3
- package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -1
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts +5 -1
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +15 -4
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js.map +1 -1
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +5 -1
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js.map +1 -1
- package/dist/v2/features/modal/index.js +1 -1
- package/dist/v2/features/modal/modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/modal-events.js +10 -6
- package/dist/v2/features/modal/modal-events.js.map +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts +35 -3
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js.map +1 -1
- package/dist/v2/features/operation/Operation.vue.script.js +1 -9
- package/dist/v2/features/operation/Operation.vue.script.js.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +4 -0
- package/dist/v2/helpers/handle-hotkeys.js.map +1 -1
- package/dist/v2/helpers/test-utils.d.ts +2 -0
- package/dist/v2/helpers/test-utils.d.ts.map +1 -1
- package/dist/v2/helpers/test-utils.js +18 -0
- package/dist/v2/helpers/test-utils.js.map +1 -0
- package/dist/v2/hooks/index.d.ts +2 -0
- package/dist/v2/hooks/index.d.ts.map +1 -0
- package/dist/v2/hooks/index.js +2 -0
- package/dist/v2/types/options.d.ts +1 -1
- package/dist/v2/types/options.d.ts.map +1 -1
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +2 -0
- package/dist/v2/workspace-events.js.map +1 -1
- package/dist/vue-styles.css +108 -658
- package/package.json +68 -97
- package/dist/components/IconSelector.vue.d.ts +0 -27
- package/dist/components/IconSelector.vue.d.ts.map +0 -1
- package/dist/components/IconSelector.vue.js +0 -7
- package/dist/components/IconSelector.vue.js.map +0 -1
- package/dist/components/IconSelector.vue.script.js +0 -65
- package/dist/components/IconSelector.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +0 -7
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +0 -7
- package/dist/components/ImportCollection/IntegrationLogo.vue.js.map +0 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.script.js +0 -50
- package/dist/components/ImportCollection/IntegrationLogo.vue.script.js.map +0 -1
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +0 -1
- package/dist/components/ScalarAsciiArt.vue.js.map +0 -1
- package/dist/components/ScalarAsciiArt.vue.script.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/monacoeditorwork/editor.worker.bundle.js +0 -14319
- package/dist/monacoeditorwork/json.worker.bundle.js +0 -22098
- package/dist/monacoeditorwork/yaml.worker.bundle.js +0 -38414
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +0 -42
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +0 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +0 -61
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +0 -1
- package/dist/v2/features/app/App.vue.d.ts +0 -75
- package/dist/v2/features/app/App.vue.d.ts.map +0 -1
- package/dist/v2/features/app/App.vue.js +0 -8
- package/dist/v2/features/app/App.vue.js.map +0 -1
- package/dist/v2/features/app/App.vue.script.js +0 -284
- package/dist/v2/features/app/App.vue.script.js.map +0 -1
- package/dist/v2/features/app/app-events.d.ts +0 -20
- package/dist/v2/features/app/app-events.d.ts.map +0 -1
- package/dist/v2/features/app/app-events.js +0 -254
- package/dist/v2/features/app/app-events.js.map +0 -1
- package/dist/v2/features/app/app-state.d.ts +0 -156
- package/dist/v2/features/app/app-state.d.ts.map +0 -1
- package/dist/v2/features/app/app-state.js +0 -717
- package/dist/v2/features/app/app-state.js.map +0 -1
- package/dist/v2/features/app/components/AppHeader.vue.d.ts +0 -43
- package/dist/v2/features/app/components/AppHeader.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/AppHeader.vue.js +0 -7
- package/dist/v2/features/app/components/AppHeader.vue.js.map +0 -1
- package/dist/v2/features/app/components/AppHeader.vue.script.js +0 -53
- package/dist/v2/features/app/components/AppHeader.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/AppHeaderActions.vue.d.ts +0 -32
- package/dist/v2/features/app/components/AppHeaderActions.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/AppHeaderActions.vue.js +0 -7
- package/dist/v2/features/app/components/AppHeaderActions.vue.js.map +0 -1
- package/dist/v2/features/app/components/AppHeaderActions.vue.script.js +0 -172
- package/dist/v2/features/app/components/AppHeaderActions.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +0 -37
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +0 -9
- package/dist/v2/features/app/components/AppSidebar.vue.js.map +0 -1
- package/dist/v2/features/app/components/AppSidebar.vue.script.js +0 -466
- package/dist/v2/features/app/components/AppSidebar.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/CreateVersionModal.vue.d.ts +0 -28
- package/dist/v2/features/app/components/CreateVersionModal.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/CreateVersionModal.vue.js +0 -7
- package/dist/v2/features/app/components/CreateVersionModal.vue.js.map +0 -1
- package/dist/v2/features/app/components/CreateVersionModal.vue.script.js +0 -84
- package/dist/v2/features/app/components/CreateVersionModal.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +0 -16
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +0 -7
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +0 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +0 -58
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts +0 -27
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/DesktopTab.vue.js +0 -9
- package/dist/v2/features/app/components/DesktopTab.vue.js.map +0 -1
- package/dist/v2/features/app/components/DesktopTab.vue.script.js +0 -121
- package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +0 -14
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +0 -7
- package/dist/v2/features/app/components/DesktopTabs.vue.js.map +0 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.script.js +0 -75
- package/dist/v2/features/app/components/DesktopTabs.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.d.ts +0 -25
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.js +0 -9
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.js.map +0 -1
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.script.js +0 -345
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/DocumentSyncIndicator.vue.d.ts +0 -16
- package/dist/v2/features/app/components/DocumentSyncIndicator.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/PublishDocumentModal.vue.d.ts +0 -77
- package/dist/v2/features/app/components/PublishDocumentModal.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/PublishDocumentModal.vue.js +0 -7
- package/dist/v2/features/app/components/PublishDocumentModal.vue.js.map +0 -1
- package/dist/v2/features/app/components/PublishDocumentModal.vue.script.js +0 -209
- package/dist/v2/features/app/components/PublishDocumentModal.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/SidebarDocument.vue.d.ts +0 -45
- package/dist/v2/features/app/components/SidebarDocument.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/SidebarDocument.vue.js +0 -7
- package/dist/v2/features/app/components/SidebarDocument.vue.js.map +0 -1
- package/dist/v2/features/app/components/SidebarDocument.vue.script.js +0 -137
- package/dist/v2/features/app/components/SidebarDocument.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts +0 -26
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +0 -7
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js.map +0 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js +0 -175
- package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts +0 -4
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/SplashScreen.vue.js +0 -9
- package/dist/v2/features/app/components/SplashScreen.vue.js.map +0 -1
- package/dist/v2/features/app/components/SplashScreen.vue.script.js +0 -20
- package/dist/v2/features/app/components/SplashScreen.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.d.ts +0 -18
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.js +0 -9
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.js.map +0 -1
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.script.js +0 -136
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/index.d.ts +0 -2
- package/dist/v2/features/app/components/index.d.ts.map +0 -1
- package/dist/v2/features/app/components/index.js +0 -2
- package/dist/v2/features/app/helpers/check-version-conflict.d.ts +0 -54
- package/dist/v2/features/app/helpers/check-version-conflict.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/check-version-conflict.js +0 -82
- package/dist/v2/features/app/helpers/check-version-conflict.js.map +0 -1
- package/dist/v2/features/app/helpers/compute-version-status.d.ts +0 -45
- package/dist/v2/features/app/helpers/compute-version-status.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/compute-version-status.js +0 -18
- package/dist/v2/features/app/helpers/compute-version-status.js.map +0 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +0 -59
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +0 -55
- package/dist/v2/features/app/helpers/create-api-client-app.js.map +0 -1
- package/dist/v2/features/app/helpers/create-draft-registry-document.d.ts +0 -39
- package/dist/v2/features/app/helpers/create-draft-registry-document.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/create-draft-registry-document.js +0 -64
- package/dist/v2/features/app/helpers/create-draft-registry-document.js.map +0 -1
- package/dist/v2/features/app/helpers/create-temp-operation.d.ts +0 -14
- package/dist/v2/features/app/helpers/create-temp-operation.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/create-temp-operation.js +0 -52
- package/dist/v2/features/app/helpers/create-temp-operation.js.map +0 -1
- package/dist/v2/features/app/helpers/detect-document-conflicts.d.ts +0 -26
- package/dist/v2/features/app/helpers/detect-document-conflicts.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/detect-document-conflicts.js +0 -27
- package/dist/v2/features/app/helpers/detect-document-conflicts.js.map +0 -1
- package/dist/v2/features/app/helpers/filter-workspaces.d.ts +0 -49
- package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/filter-workspaces.js +0 -55
- package/dist/v2/features/app/helpers/filter-workspaces.js.map +0 -1
- package/dist/v2/features/app/helpers/get-route-param.d.ts +0 -7
- package/dist/v2/features/app/helpers/get-route-param.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/get-route-param.js +0 -12
- package/dist/v2/features/app/helpers/get-route-param.js.map +0 -1
- package/dist/v2/features/app/helpers/group-workspaces.d.ts +0 -44
- package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/group-workspaces.js +0 -53
- package/dist/v2/features/app/helpers/group-workspaces.js.map +0 -1
- package/dist/v2/features/app/helpers/load-registry-document.d.ts +0 -24
- package/dist/v2/features/app/helpers/load-registry-document.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/load-registry-document.js +0 -47
- package/dist/v2/features/app/helpers/load-registry-document.js.map +0 -1
- package/dist/v2/features/app/helpers/registry-error-messages.d.ts +0 -23
- package/dist/v2/features/app/helpers/registry-error-messages.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/registry-error-messages.js +0 -63
- package/dist/v2/features/app/helpers/registry-error-messages.js.map +0 -1
- package/dist/v2/features/app/helpers/routes.d.ts +0 -184
- package/dist/v2/features/app/helpers/routes.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/routes.js +0 -153
- package/dist/v2/features/app/helpers/routes.js.map +0 -1
- package/dist/v2/features/app/helpers/version-status-presentation.d.ts +0 -24
- package/dist/v2/features/app/helpers/version-status-presentation.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/version-status-presentation.js +0 -43
- package/dist/v2/features/app/helpers/version-status-presentation.js.map +0 -1
- package/dist/v2/features/app/hooks/use-active-document-version.d.ts +0 -42
- package/dist/v2/features/app/hooks/use-active-document-version.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-active-document-version.js +0 -60
- package/dist/v2/features/app/hooks/use-active-document-version.js.map +0 -1
- package/dist/v2/features/app/hooks/use-document-filter.d.ts +0 -38
- package/dist/v2/features/app/hooks/use-document-filter.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-document-filter.js +0 -63
- package/dist/v2/features/app/hooks/use-document-filter.js.map +0 -1
- package/dist/v2/features/app/hooks/use-document-sync.d.ts +0 -126
- package/dist/v2/features/app/hooks/use-document-sync.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-document-sync.js +0 -448
- package/dist/v2/features/app/hooks/use-document-sync.js.map +0 -1
- package/dist/v2/features/app/hooks/use-document-watcher.d.ts +0 -30
- package/dist/v2/features/app/hooks/use-document-watcher.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-document-watcher.js +0 -168
- package/dist/v2/features/app/hooks/use-document-watcher.js.map +0 -1
- package/dist/v2/features/app/hooks/use-network-status.d.ts +0 -29
- package/dist/v2/features/app/hooks/use-network-status.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-network-status.js +0 -58
- package/dist/v2/features/app/hooks/use-network-status.js.map +0 -1
- package/dist/v2/features/app/hooks/use-sidebar-context-menu.d.ts +0 -17258
- package/dist/v2/features/app/hooks/use-sidebar-context-menu.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-sidebar-context-menu.js +0 -107
- package/dist/v2/features/app/hooks/use-sidebar-context-menu.js.map +0 -1
- package/dist/v2/features/app/hooks/use-sidebar-documents.d.ts +0 -119
- package/dist/v2/features/app/hooks/use-sidebar-documents.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-sidebar-documents.js +0 -219
- package/dist/v2/features/app/hooks/use-sidebar-documents.js.map +0 -1
- package/dist/v2/features/app/hooks/use-theme.d.ts +0 -56
- package/dist/v2/features/app/hooks/use-theme.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-theme.js +0 -94
- package/dist/v2/features/app/hooks/use-theme.js.map +0 -1
- package/dist/v2/features/app/hooks/use-version-conflict-check.d.ts +0 -35
- package/dist/v2/features/app/hooks/use-version-conflict-check.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-version-conflict-check.js +0 -62
- package/dist/v2/features/app/hooks/use-version-conflict-check.js.map +0 -1
- package/dist/v2/features/app/index.d.ts +0 -10
- package/dist/v2/features/app/index.d.ts.map +0 -1
- package/dist/v2/features/app/index.js +0 -8
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +0 -13
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +0 -8
- package/dist/v2/features/collection/DocumentCollection.vue.js.map +0 -1
- package/dist/v2/features/collection/DocumentCollection.vue.script.js +0 -112
- package/dist/v2/features/collection/DocumentCollection.vue.script.js.map +0 -1
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +0 -6
- package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/OperationCollection.vue.js +0 -7
- package/dist/v2/features/collection/OperationCollection.vue.js.map +0 -1
- package/dist/v2/features/collection/OperationCollection.vue.script.js +0 -95
- package/dist/v2/features/collection/OperationCollection.vue.script.js.map +0 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +0 -6
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +0 -7
- package/dist/v2/features/collection/WorkspaceCollection.vue.js.map +0 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.script.js +0 -74
- package/dist/v2/features/collection/WorkspaceCollection.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +0 -9
- package/dist/v2/features/collection/components/Authentication.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Authentication.vue.script.js +0 -174
- package/dist/v2/features/collection/components/Authentication.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +0 -21
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +0 -7
- package/dist/v2/features/collection/components/Cookies.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Cookies.vue.script.js +0 -58
- package/dist/v2/features/collection/components/Cookies.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.d.ts +0 -12
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.js +0 -9
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.js.map +0 -1
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.script.js +0 -174
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/Editor.vue.js +0 -9
- package/dist/v2/features/collection/components/Editor/Editor.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/Editor.vue.script.js +0 -361
- package/dist/v2/features/collection/components/Editor/Editor.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts +0 -19
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +0 -7
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js +0 -69
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +0 -7
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js +0 -91
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts +0 -12
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +0 -22
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts +0 -11
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +0 -17
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts +0 -7
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +0 -17
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts +0 -10
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +0 -34
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts +0 -10
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +0 -18
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts +0 -15
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +0 -36
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/index.d.ts +0 -2
- package/dist/v2/features/collection/components/Editor/index.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/index.js +0 -2
- package/dist/v2/features/collection/components/Environment.vue.d.ts +0 -21
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Environment.vue.js +0 -7
- package/dist/v2/features/collection/components/Environment.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Environment.vue.script.js +0 -61
- package/dist/v2/features/collection/components/Environment.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Form.vue.d.ts +0 -29
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Form.vue.js +0 -7
- package/dist/v2/features/collection/components/Form.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Form.vue.script.js +0 -78
- package/dist/v2/features/collection/components/Form.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/GetStarted.vue.d.ts +0 -21
- package/dist/v2/features/collection/components/GetStarted.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/GetStarted.vue.js +0 -7
- package/dist/v2/features/collection/components/GetStarted.vue.js.map +0 -1
- package/dist/v2/features/collection/components/GetStarted.vue.script.js +0 -144
- package/dist/v2/features/collection/components/GetStarted.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +0 -18
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.vue.js +0 -9
- package/dist/v2/features/collection/components/LabelInput.vue.js.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.vue.script.js +0 -38
- package/dist/v2/features/collection/components/LabelInput.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Overview.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Overview.vue.js +0 -9
- package/dist/v2/features/collection/components/Overview.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Overview.vue.script.js +0 -204
- package/dist/v2/features/collection/components/Overview.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js +0 -223
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts +0 -20
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js +0 -45
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts +0 -19
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js +0 -73
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js +0 -124
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts +0 -17
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js +0 -126
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts +0 -18
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js +0 -180
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts +0 -14
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js +0 -44
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts +0 -19
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js +0 -53
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts +0 -23
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js +0 -75
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/index.d.ts +0 -3
- package/dist/v2/features/collection/components/Runner/hooks/index.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts +0 -75
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js +0 -191
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts +0 -46
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js +0 -114
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/index.d.ts +0 -2
- package/dist/v2/features/collection/components/Runner/index.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Scripts.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Scripts.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Scripts.vue.js +0 -7
- package/dist/v2/features/collection/components/Scripts.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Scripts.vue.script.js +0 -49
- package/dist/v2/features/collection/components/Scripts.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Servers.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Servers.vue.js +0 -7
- package/dist/v2/features/collection/components/Servers.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Servers.vue.script.js +0 -219
- package/dist/v2/features/collection/components/Servers.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Settings.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Settings.vue.js +0 -7
- package/dist/v2/features/collection/components/Settings.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Settings.vue.script.js +0 -81
- package/dist/v2/features/collection/components/Settings.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +0 -8
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Tabs.vue.js +0 -7
- package/dist/v2/features/collection/components/Tabs.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Tabs.vue.script.js +0 -55
- package/dist/v2/features/collection/components/Tabs.vue.script.js.map +0 -1
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +0 -12
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +0 -1
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +0 -19
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js.map +0 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +0 -42
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js +0 -9
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js.map +0 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +0 -189
- package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +0 -49
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js +0 -225
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +0 -53
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +0 -227
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +0 -44
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +0 -9
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js +0 -137
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts +0 -30
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js +0 -156
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts +0 -37
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +0 -105
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +0 -48
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js +0 -228
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +0 -65
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js +0 -142
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts +0 -58
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js +0 -9
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js +0 -142
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts +0 -23
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js +0 -9
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js +0 -138
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +0 -34
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +0 -7
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js +0 -39
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.d.ts +0 -20
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +0 -33
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts +0 -11
- package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-merge-key.js +0 -32
- package/dist/v2/features/command-palette/helpers/get-merge-key.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +0 -24
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +0 -56
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +0 -24
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +0 -22
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts +0 -26
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +0 -119
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts +0 -14
- package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js +0 -19
- package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +0 -28
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +0 -36
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.d.ts +0 -30
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +0 -70
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +0 -20
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js +0 -72
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/parse-curl.d.ts +0 -14
- package/dist/v2/features/command-palette/helpers/parse-curl.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/parse-curl.js +0 -106
- package/dist/v2/features/command-palette/helpers/parse-curl.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts +0 -11
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.js +0 -35
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts +0 -41
- package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/postman-request-tree.js +0 -139
- package/dist/v2/features/command-palette/helpers/postman-request-tree.js.map +0 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +0 -426
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +0 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -207
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js.map +0 -1
- package/dist/v2/features/editor/config.d.ts +0 -16
- package/dist/v2/features/editor/config.d.ts.map +0 -1
- package/dist/v2/features/editor/config.js +0 -19
- package/dist/v2/features/editor/config.js.map +0 -1
- package/dist/v2/features/editor/helpers/configure-language-support.d.ts +0 -13
- package/dist/v2/features/editor/helpers/configure-language-support.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/configure-language-support.js +0 -48
- package/dist/v2/features/editor/helpers/configure-language-support.js.map +0 -1
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.d.ts +0 -6
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +0 -21
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +0 -12
- package/dist/v2/features/editor/helpers/json/create-json-model.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/create-json-model.js +0 -31
- package/dist/v2/features/editor/helpers/json/create-json-model.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +0 -14
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +0 -22
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-ast.d.ts +0 -12
- package/dist/v2/features/editor/helpers/json/json-ast.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-ast.js +0 -32
- package/dist/v2/features/editor/helpers/json/json-ast.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-links.d.ts +0 -15
- package/dist/v2/features/editor/helpers/json/json-pointer-links.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-links.js +0 -104
- package/dist/v2/features/editor/helpers/json/json-pointer-links.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts +0 -7
- package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-path.js +0 -27
- package/dist/v2/features/editor/helpers/json/json-pointer-path.js.map +0 -1
- package/dist/v2/features/editor/helpers/model.d.ts +0 -9
- package/dist/v2/features/editor/helpers/model.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/range-to-whole-line.d.ts +0 -14
- package/dist/v2/features/editor/helpers/range-to-whole-line.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/range-to-whole-line.js +0 -27
- package/dist/v2/features/editor/helpers/range-to-whole-line.js.map +0 -1
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.d.ts +0 -16
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +0 -84
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js.map +0 -1
- package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts +0 -36
- package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/theme/load-css-variables.js +0 -117
- package/dist/v2/features/editor/helpers/theme/load-css-variables.js.map +0 -1
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +0 -13
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +0 -32
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js.map +0 -1
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +0 -19
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +0 -70
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js.map +0 -1
- package/dist/v2/features/editor/hooks/use-editor-markers.d.ts +0 -152
- package/dist/v2/features/editor/hooks/use-editor-markers.d.ts.map +0 -1
- package/dist/v2/features/editor/hooks/use-editor-markers.js +0 -37
- package/dist/v2/features/editor/hooks/use-editor-markers.js.map +0 -1
- package/dist/v2/features/editor/hooks/use-editor.d.ts +0 -39
- package/dist/v2/features/editor/hooks/use-editor.d.ts.map +0 -1
- package/dist/v2/features/editor/hooks/use-editor.js +0 -133
- package/dist/v2/features/editor/hooks/use-editor.js.map +0 -1
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +0 -16
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts.map +0 -1
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +0 -45
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js.map +0 -1
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.d.ts +0 -77
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.d.ts.map +0 -1
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +0 -396
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js.map +0 -1
- package/dist/v2/features/editor/index.d.ts +0 -5
- package/dist/v2/features/editor/index.d.ts.map +0 -1
- package/dist/v2/features/editor/index.js +0 -5
- package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +0 -51
- package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +0 -10
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +0 -9
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js +0 -188
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js.map +0 -1
- package/dist/v2/features/global-cookies/index.d.ts +0 -2
- package/dist/v2/features/global-cookies/index.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/index.js +0 -2
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts +0 -28
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +0 -7
- package/dist/v2/features/settings/CollectionSettings.vue.js.map +0 -1
- package/dist/v2/features/settings/CollectionSettings.vue.script.js +0 -229
- package/dist/v2/features/settings/CollectionSettings.vue.script.js.map +0 -1
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts +0 -20
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +0 -7
- package/dist/v2/features/settings/DocumentSettings.vue.js.map +0 -1
- package/dist/v2/features/settings/DocumentSettings.vue.script.js +0 -92
- package/dist/v2/features/settings/DocumentSettings.vue.script.js.map +0 -1
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +0 -11
- package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/components/Appearance.vue.js +0 -7
- package/dist/v2/features/settings/components/Appearance.vue.js.map +0 -1
- package/dist/v2/features/settings/components/Appearance.vue.script.js +0 -63
- package/dist/v2/features/settings/components/Appearance.vue.script.js.map +0 -1
- package/dist/v2/features/settings/components/Section.vue.d.ts +0 -16
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/components/Section.vue.js +0 -7
- package/dist/v2/features/settings/components/Section.vue.js.map +0 -1
- package/dist/v2/features/settings/components/Section.vue.script.js +0 -30
- package/dist/v2/features/settings/components/Section.vue.script.js.map +0 -1
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +0 -10
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +0 -1
- package/dist/v2/features/settings/helpers/get-theme-colors.js +0 -68
- package/dist/v2/features/settings/helpers/get-theme-colors.js.map +0 -1
- package/dist/v2/features/settings/index.d.ts +0 -3
- package/dist/v2/features/settings/index.d.ts.map +0 -1
- package/dist/v2/features/settings/index.js +0 -3
- package/dist/v2/helpers/download-document.d.ts +0 -2
- package/dist/v2/helpers/download-document.d.ts.map +0 -1
- package/dist/v2/helpers/download-document.js +0 -42
- package/dist/v2/helpers/download-document.js.map +0 -1
- package/dist/v2/helpers/drag-handle-factory.d.ts +0 -16
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +0 -1
- package/dist/v2/helpers/drag-handle-factory.js +0 -258
- package/dist/v2/helpers/drag-handle-factory.js.map +0 -1
- package/dist/v2/helpers/get-tab-details.d.ts +0 -43
- package/dist/v2/helpers/get-tab-details.d.ts.map +0 -1
- package/dist/v2/helpers/get-tab-details.js +0 -54
- package/dist/v2/helpers/get-tab-details.js.map +0 -1
- package/dist/v2/helpers/is-url.d.ts +0 -2
- package/dist/v2/helpers/is-url.d.ts.map +0 -1
- package/dist/v2/helpers/is-url.js +0 -10
- package/dist/v2/helpers/is-url.js.map +0 -1
- package/dist/v2/helpers/safe-run.d.ts +0 -34
- package/dist/v2/helpers/safe-run.d.ts.map +0 -1
- package/dist/v2/helpers/safe-run.js +0 -43
- package/dist/v2/helpers/safe-run.js.map +0 -1
- package/dist/v2/helpers/storage.d.ts +0 -31
- package/dist/v2/helpers/storage.d.ts.map +0 -1
- package/dist/v2/helpers/storage.js +0 -37
- package/dist/v2/helpers/storage.js.map +0 -1
- package/dist/v2/hooks/use-color-mode.d.ts +0 -20
- package/dist/v2/hooks/use-color-mode.d.ts.map +0 -1
- package/dist/v2/hooks/use-color-mode.js +0 -72
- package/dist/v2/hooks/use-color-mode.js.map +0 -1
- package/dist/v2/types/configuration.d.ts +0 -278
- package/dist/v2/types/configuration.d.ts.map +0 -1
- /package/dist/components/{ScalarAsciiArt.vue.d.ts → ScalarAsciiArt/ScalarAsciiArt.vue.d.ts} +0 -0
- /package/dist/{index.js → types/index.js} +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import CommandActionForm_default from "../../command-palette/components/CommandActionForm.vue.js";
|
|
2
|
-
import CommandActionInput_default from "../../command-palette/components/CommandActionInput.vue.js";
|
|
3
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, toDisplayString, unref, watch, withCtx } from "vue";
|
|
4
|
-
import { ScalarModal } from "@scalar/components";
|
|
5
|
-
//#region src/v2/features/app/components/CreateVersionModal.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var _hoisted_1 = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "text-c-2 text-xs"
|
|
9
|
-
};
|
|
10
|
-
var _hoisted_2 = { class: "text-c-1 font-medium" };
|
|
11
|
-
var _hoisted_3 = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "text-red text-xs",
|
|
14
|
-
role: "alert"
|
|
15
|
-
};
|
|
16
|
-
var CreateVersionModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "CreateVersionModal",
|
|
18
|
-
props: {
|
|
19
|
-
state: {},
|
|
20
|
-
existingVersions: {},
|
|
21
|
-
sourceVersion: {}
|
|
22
|
-
},
|
|
23
|
-
emits: ["create"],
|
|
24
|
-
setup(__props, { emit: __emit }) {
|
|
25
|
-
const emit = __emit;
|
|
26
|
-
/** Raw input value for the version field. */
|
|
27
|
-
const version = ref("");
|
|
28
|
-
/** Trimmed input. The form treats whitespace-only input as empty. */
|
|
29
|
-
const trimmed = computed(() => version.value.trim());
|
|
30
|
-
/**
|
|
31
|
-
* Validation message surfaced under the input.
|
|
32
|
-
*
|
|
33
|
-
* Resolves to `null` when the form is valid; otherwise to a human-readable
|
|
34
|
-
* reason that doubles as the disabled-state explanation.
|
|
35
|
-
*/
|
|
36
|
-
const errorMessage = computed(() => {
|
|
37
|
-
if (trimmed.value.length === 0) return null;
|
|
38
|
-
if (__props.existingVersions.includes(trimmed.value)) return `Version "${trimmed.value}" is already loaded in the workspace.`;
|
|
39
|
-
return null;
|
|
40
|
-
});
|
|
41
|
-
/** Submit is blocked while the input is empty or the version already exists locally. */
|
|
42
|
-
const isDisabled = computed(() => trimmed.value.length === 0 || errorMessage.value !== null);
|
|
43
|
-
/** Reset the field whenever the modal opens so stale input never leaks across sessions. */
|
|
44
|
-
watch(() => __props.state.open, (isOpen) => {
|
|
45
|
-
if (isOpen) version.value = "";
|
|
46
|
-
});
|
|
47
|
-
const handleSubmit = () => {
|
|
48
|
-
if (isDisabled.value) return;
|
|
49
|
-
emit("create", trimmed.value);
|
|
50
|
-
__props.state.hide();
|
|
51
|
-
};
|
|
52
|
-
return (_ctx, _cache) => {
|
|
53
|
-
return openBlock(), createBlock(unref(ScalarModal), {
|
|
54
|
-
bodyClass: "border-t-0 rounded-t-lg",
|
|
55
|
-
size: "xs",
|
|
56
|
-
state: __props.state,
|
|
57
|
-
title: "Create new version"
|
|
58
|
-
}, {
|
|
59
|
-
default: withCtx(() => [createVNode(unref(CommandActionForm_default), {
|
|
60
|
-
disabled: isDisabled.value,
|
|
61
|
-
onSubmit: handleSubmit
|
|
62
|
-
}, {
|
|
63
|
-
submit: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode("Create version", -1)])]),
|
|
64
|
-
default: withCtx(() => [
|
|
65
|
-
createVNode(unref(CommandActionInput_default), {
|
|
66
|
-
modelValue: version.value,
|
|
67
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => version.value = $event),
|
|
68
|
-
class: "-mt-[.5px] !p-0",
|
|
69
|
-
placeholder: "Version (e.g. 2.1.0)"
|
|
70
|
-
}, null, 8, ["modelValue"]),
|
|
71
|
-
__props.sourceVersion ? (openBlock(), createElementBlock("p", _hoisted_1, [_cache[1] || (_cache[1] = createTextVNode(" Branching from version ", -1)), createElementVNode("span", _hoisted_2, toDisplayString(__props.sourceVersion), 1)])) : createCommentVNode("", true),
|
|
72
|
-
errorMessage.value ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(errorMessage.value), 1)) : createCommentVNode("", true)
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
}, 8, ["disabled"])]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["state"]);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
//#endregion
|
|
82
|
-
export { CreateVersionModal_vue_vue_type_script_setup_true_lang_default as default };
|
|
83
|
-
|
|
84
|
-
//# sourceMappingURL=CreateVersionModal.vue.script.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateVersionModal.vue.script.js","names":[],"sources":["../../../../../src/v2/features/app/components/CreateVersionModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarModal, type ModalState } from '@scalar/components'\nimport { computed, ref, watch, type ComputedRef, type Ref } from 'vue'\n\nimport {\n CommandActionForm,\n CommandActionInput,\n} from '@/v2/features/command-palette'\n\nconst { state, existingVersions, sourceVersion } = defineProps<{\n /** Modal lifecycle state from `useModal()`. */\n state: ModalState\n /**\n * Versions already loaded into the workspace store for the active document\n * group. Submitting a duplicate would silently collide with an existing\n * workspace document, so we reject it up front. Versions that exist only on\n * the registry (not loaded locally) are intentionally allowed - that is the\n * conflict-resolution path the create-draft flow opts into.\n */\n existingVersions: string[]\n /**\n * Version the new draft will be branched from. Surfaced to the user so it\n * is obvious which document the draft inherits its body from before they\n * commit to a new version string. Optional because the modal can be\n * reused in flows that do not branch from an existing version.\n */\n sourceVersion?: string\n}>()\n\nconst emit = defineEmits<{\n /** Fired after the user submits a non-empty, non-duplicate version string. */\n (event: 'create', version: string): void\n}>()\n\n/** Raw input value for the version field. */\nconst version: Ref<string> = ref('')\n\n/** Trimmed input. The form treats whitespace-only input as empty. */\nconst trimmed: ComputedRef<string> = computed(() => version.value.trim())\n\n/**\n * Validation message surfaced under the input.\n *\n * Resolves to `null` when the form is valid; otherwise to a human-readable\n * reason that doubles as the disabled-state explanation.\n */\nconst errorMessage: ComputedRef<string | null> = computed(() => {\n if (trimmed.value.length === 0) {\n // Empty input is the default state, so we keep the field free of error\n // styling and only block submission via `isDisabled` below.\n return null\n }\n if (existingVersions.includes(trimmed.value)) {\n return `Version \"${trimmed.value}\" is already loaded in the workspace.`\n }\n return null\n})\n\n/** Submit is blocked while the input is empty or the version already exists locally. */\nconst isDisabled: ComputedRef<boolean> = computed(\n () => trimmed.value.length === 0 || errorMessage.value !== null,\n)\n\n/** Reset the field whenever the modal opens so stale input never leaks across sessions. */\nwatch(\n () => state.open,\n (isOpen) => {\n if (isOpen) {\n version.value = ''\n }\n },\n)\n\nconst handleSubmit = (): void => {\n if (isDisabled.value) {\n return\n }\n emit('create', trimmed.value)\n state.hide()\n}\n</script>\n\n<template>\n <ScalarModal\n bodyClass=\"border-t-0 rounded-t-lg\"\n size=\"xs\"\n :state=\"state\"\n title=\"Create new version\">\n <CommandActionForm\n :disabled=\"isDisabled\"\n @submit=\"handleSubmit\">\n <CommandActionInput\n v-model=\"version\"\n class=\"-mt-[.5px] !p-0\"\n placeholder=\"Version (e.g. 2.1.0)\" />\n\n <p\n v-if=\"sourceVersion\"\n class=\"text-c-2 text-xs\">\n Branching from version\n <span class=\"text-c-1 font-medium\">{{ sourceVersion }}</span>\n </p>\n\n <p\n v-if=\"errorMessage\"\n class=\"text-red text-xs\"\n role=\"alert\">\n {{ errorMessage }}\n </p>\n\n <template #submit>Create version</template>\n </CommandActionForm>\n </ScalarModal>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;EA6BA,MAAM,OAAO;;EAMb,MAAM,UAAuB,IAAI,GAAE;;EAGnC,MAAM,UAA+B,eAAe,QAAQ,MAAM,MAAM,CAAA;;;;;;;EAQxE,MAAM,eAA2C,eAAe;AAC9D,OAAI,QAAQ,MAAM,WAAW,EAG3B,QAAO;AAET,OAAI,QAAA,iBAAiB,SAAS,QAAQ,MAAM,CAC1C,QAAO,YAAY,QAAQ,MAAM;AAEnC,UAAO;IACR;;EAGD,MAAM,aAAmC,eACjC,QAAQ,MAAM,WAAW,KAAK,aAAa,UAAU,KAC7D;;AAGA,cACQ,QAAA,MAAM,OACX,WAAW;AACV,OAAI,OACF,SAAQ,QAAQ;IAGtB;EAEA,MAAM,qBAA2B;AAC/B,OAAI,WAAW,MACb;AAEF,QAAK,UAAU,QAAQ,MAAK;AAC5B,WAAA,MAAM,MAAK;;;uBAKX,YA6Bc,MAAA,YAAA,EAAA;IA5BZ,WAAU;IACV,MAAK;IACJ,OAAO,QAAA;IACR,OAAM;;2BAwBc,CAvBpB,YAuBoB,MAAA,0BAAA,EAAA;KAtBjB,UAAU,WAAA;KACV,UAAQ;;KAoBE,QAAM,cAAe,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAd,kBAAc,GAAA,CAAA,EAAA,CAAA;4BAhBO;MAHvC,YAGuC,MAAA,2BAAA,EAAA;mBAF5B,QAAA;4EAAO,QAAA;OAChB,OAAM;OACN,aAAY;;MAGN,QAAA,iBAAA,WAAA,EADR,mBAKI,KALJ,YAKI,CAAA,OAAA,OAAA,OAAA,KAAA,gBAHuB,4BAEzB,GAAA,GAAA,mBAA6D,QAA7D,YAA6D,gBAAvB,QAAA,cAAa,EAAA,EAAA,CAAA,CAAA,IAAA,mBAAA,IAAA,KAAA;MAI7C,aAAA,SAAA,WAAA,EADR,mBAKI,KALJ,YAKI,gBADC,aAAA,MAAY,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type ModalState } from '@scalar/components';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
state: ModalState;
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
-
"create:workspace": (payload: {
|
|
7
|
-
name: string;
|
|
8
|
-
}) => any;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
"onCreate:workspace"?: ((payload: {
|
|
11
|
-
name: string;
|
|
12
|
-
}) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
15
|
-
export default _default;
|
|
16
|
-
//# sourceMappingURL=CreateWorkspaceModal.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateWorkspaceModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/CreateWorkspaceModal.vue"],"names":[],"mappings":"AAAA,OA2EO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;CAClB,CAAC;AAsIF,QAAA,MAAM,YAAY;;cAjIyB,MAAM;;;;cAAN,MAAM;;kFAoI/C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import CreateWorkspaceModal_vue_vue_type_script_setup_true_lang_default from "./CreateWorkspaceModal.vue.script.js";
|
|
2
|
-
//#region src/v2/features/app/components/CreateWorkspaceModal.vue
|
|
3
|
-
var CreateWorkspaceModal_default = CreateWorkspaceModal_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { CreateWorkspaceModal_default as default };
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=CreateWorkspaceModal.vue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateWorkspaceModal.vue.js","names":[],"sources":["../../../../../src/v2/features/app/components/CreateWorkspaceModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarModal, type ModalState } from '@scalar/components'\nimport { computed, ref, watch, type ComputedRef, type Ref } from 'vue'\n\nimport {\n CommandActionForm,\n CommandActionInput,\n} from '@/v2/features/command-palette'\n\nconst { state } = defineProps<{\n state: ModalState\n}>()\n\nconst emit = defineEmits<{\n (e: 'create:workspace', payload: { name: string }): void\n}>()\n\n/** Name input for the new workspace. Resets whenever the modal opens. */\nconst name: Ref<string> = ref('')\n\n/** Trimmed version of the name to avoid repeating .trim() in multiple places. */\nconst trimmedName: ComputedRef<string> = computed(() => name.value.trim())\n\n/** Disable submit when the name is empty after trimming. */\nconst isDisabled: ComputedRef<boolean> = computed(\n () => trimmedName.value.length === 0,\n)\n\n/**\n * Ensure the form is reset whenever the modal opens.\n * Avoids stale state if the modal is reopened.\n */\nwatch(\n () => state.open,\n (isOpen) => {\n if (isOpen) {\n name.value = ''\n }\n },\n)\n\n/** Emits an event to create the workspace with the provided name */\nconst handleSubmit = (): void => {\n if (!trimmedName.value) {\n return\n }\n\n emit('create:workspace', {\n name: trimmedName.value,\n })\n state.hide()\n}\n</script>\n\n<template>\n <ScalarModal\n bodyClass=\"border-t-0 rounded-t-lg\"\n size=\"xs\"\n :state=\"state\">\n <CommandActionForm\n :disabled=\"isDisabled\"\n @submit=\"handleSubmit\">\n <CommandActionInput\n v-model=\"name\"\n class=\"-mt-[.5px] !p-0\"\n placeholder=\"Workspace name\" />\n\n <!-- Submit button -->\n <template #submit>Add Workspace</template>\n </CommandActionForm>\n </ScalarModal>\n</template>\n"],"mappings":""}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import CommandActionForm_default from "../../command-palette/components/CommandActionForm.vue.js";
|
|
2
|
-
import CommandActionInput_default from "../../command-palette/components/CommandActionInput.vue.js";
|
|
3
|
-
import { computed, createBlock, createTextVNode, createVNode, defineComponent, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
4
|
-
import { ScalarModal } from "@scalar/components";
|
|
5
|
-
//#region src/v2/features/app/components/CreateWorkspaceModal.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var CreateWorkspaceModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "CreateWorkspaceModal",
|
|
8
|
-
props: { state: {} },
|
|
9
|
-
emits: ["create:workspace"],
|
|
10
|
-
setup(__props, { emit: __emit }) {
|
|
11
|
-
const emit = __emit;
|
|
12
|
-
/** Name input for the new workspace. Resets whenever the modal opens. */
|
|
13
|
-
const name = ref("");
|
|
14
|
-
/** Trimmed version of the name to avoid repeating .trim() in multiple places. */
|
|
15
|
-
const trimmedName = computed(() => name.value.trim());
|
|
16
|
-
/** Disable submit when the name is empty after trimming. */
|
|
17
|
-
const isDisabled = computed(() => trimmedName.value.length === 0);
|
|
18
|
-
/**
|
|
19
|
-
* Ensure the form is reset whenever the modal opens.
|
|
20
|
-
* Avoids stale state if the modal is reopened.
|
|
21
|
-
*/
|
|
22
|
-
watch(() => __props.state.open, (isOpen) => {
|
|
23
|
-
if (isOpen) name.value = "";
|
|
24
|
-
});
|
|
25
|
-
/** Emits an event to create the workspace with the provided name */
|
|
26
|
-
const handleSubmit = () => {
|
|
27
|
-
if (!trimmedName.value) return;
|
|
28
|
-
emit("create:workspace", { name: trimmedName.value });
|
|
29
|
-
__props.state.hide();
|
|
30
|
-
};
|
|
31
|
-
return (_ctx, _cache) => {
|
|
32
|
-
return openBlock(), createBlock(unref(ScalarModal), {
|
|
33
|
-
bodyClass: "border-t-0 rounded-t-lg",
|
|
34
|
-
size: "xs",
|
|
35
|
-
state: __props.state
|
|
36
|
-
}, {
|
|
37
|
-
default: withCtx(() => [createVNode(unref(CommandActionForm_default), {
|
|
38
|
-
disabled: isDisabled.value,
|
|
39
|
-
onSubmit: handleSubmit
|
|
40
|
-
}, {
|
|
41
|
-
submit: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode("Add Workspace", -1)])]),
|
|
42
|
-
default: withCtx(() => [createVNode(unref(CommandActionInput_default), {
|
|
43
|
-
modelValue: name.value,
|
|
44
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => name.value = $event),
|
|
45
|
-
class: "-mt-[.5px] !p-0",
|
|
46
|
-
placeholder: "Workspace name"
|
|
47
|
-
}, null, 8, ["modelValue"])]),
|
|
48
|
-
_: 1
|
|
49
|
-
}, 8, ["disabled"])]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["state"]);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
//#endregion
|
|
56
|
-
export { CreateWorkspaceModal_vue_vue_type_script_setup_true_lang_default as default };
|
|
57
|
-
|
|
58
|
-
//# sourceMappingURL=CreateWorkspaceModal.vue.script.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateWorkspaceModal.vue.script.js","names":[],"sources":["../../../../../src/v2/features/app/components/CreateWorkspaceModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarModal, type ModalState } from '@scalar/components'\nimport { computed, ref, watch, type ComputedRef, type Ref } from 'vue'\n\nimport {\n CommandActionForm,\n CommandActionInput,\n} from '@/v2/features/command-palette'\n\nconst { state } = defineProps<{\n state: ModalState\n}>()\n\nconst emit = defineEmits<{\n (e: 'create:workspace', payload: { name: string }): void\n}>()\n\n/** Name input for the new workspace. Resets whenever the modal opens. */\nconst name: Ref<string> = ref('')\n\n/** Trimmed version of the name to avoid repeating .trim() in multiple places. */\nconst trimmedName: ComputedRef<string> = computed(() => name.value.trim())\n\n/** Disable submit when the name is empty after trimming. */\nconst isDisabled: ComputedRef<boolean> = computed(\n () => trimmedName.value.length === 0,\n)\n\n/**\n * Ensure the form is reset whenever the modal opens.\n * Avoids stale state if the modal is reopened.\n */\nwatch(\n () => state.open,\n (isOpen) => {\n if (isOpen) {\n name.value = ''\n }\n },\n)\n\n/** Emits an event to create the workspace with the provided name */\nconst handleSubmit = (): void => {\n if (!trimmedName.value) {\n return\n }\n\n emit('create:workspace', {\n name: trimmedName.value,\n })\n state.hide()\n}\n</script>\n\n<template>\n <ScalarModal\n bodyClass=\"border-t-0 rounded-t-lg\"\n size=\"xs\"\n :state=\"state\">\n <CommandActionForm\n :disabled=\"isDisabled\"\n @submit=\"handleSubmit\">\n <CommandActionInput\n v-model=\"name\"\n class=\"-mt-[.5px] !p-0\"\n placeholder=\"Workspace name\" />\n\n <!-- Submit button -->\n <template #submit>Add Workspace</template>\n </CommandActionForm>\n </ScalarModal>\n</template>\n"],"mappings":";;;;;;;;;;EAaA,MAAM,OAAO;;EAKb,MAAM,OAAoB,IAAI,GAAE;;EAGhC,MAAM,cAAmC,eAAe,KAAK,MAAM,MAAM,CAAA;;EAGzE,MAAM,aAAmC,eACjC,YAAY,MAAM,WAAW,EACrC;;;;;AAMA,cACQ,QAAA,MAAM,OACX,WAAW;AACV,OAAI,OACF,MAAK,QAAQ;IAGnB;;EAGA,MAAM,qBAA2B;AAC/B,OAAI,CAAC,YAAY,MACf;AAGF,QAAK,oBAAoB,EACvB,MAAM,YAAY,OACnB,CAAA;AACD,WAAA,MAAM,MAAK;;;uBAKX,YAec,MAAA,YAAA,EAAA;IAdZ,WAAU;IACV,MAAK;IACJ,OAAO,QAAA;;2BAWY,CAVpB,YAUoB,MAAA,0BAAA,EAAA;KATjB,UAAU,WAAA;KACV,UAAQ;;KAOE,QAAM,cAAc,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAb,iBAAa,GAAA,CAAA,EAAA,CAAA;4BAHE,CAHjC,YAGiC,MAAA,2BAAA,EAAA;kBAFtB,KAAA;wEAAI,QAAA;MACb,OAAM;MACN,aAAY"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Tab } from '@scalar/workspace-store/schemas/extensions/workspace';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
/** Optional keyboard shortcut number for the tab */
|
|
4
|
-
hotkey?: string;
|
|
5
|
-
/** Whether this tab is currently active */
|
|
6
|
-
active: boolean;
|
|
7
|
-
/** Whether this is the only tab (changes styling to header-like appearance) */
|
|
8
|
-
isSingleTab?: boolean;
|
|
9
|
-
/** The tab data */
|
|
10
|
-
tab: Tab;
|
|
11
|
-
};
|
|
12
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
-
click: () => any;
|
|
14
|
-
close: () => any;
|
|
15
|
-
copyUrl: () => any;
|
|
16
|
-
newTab: () => any;
|
|
17
|
-
closeOtherTabs: () => any;
|
|
18
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onClick?: (() => any) | undefined;
|
|
20
|
-
onClose?: (() => any) | undefined;
|
|
21
|
-
onCopyUrl?: (() => any) | undefined;
|
|
22
|
-
onNewTab?: (() => any) | undefined;
|
|
23
|
-
onCloseOtherTabs?: (() => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
declare const _default: typeof __VLS_export;
|
|
26
|
-
export default _default;
|
|
27
|
-
//# sourceMappingURL=DesktopTab.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DesktopTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DesktopTab.vue"],"names":[],"mappings":"AA0TA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sDAAsD,CAAA;AAK/E,KAAK,WAAW,GAAG;IACjB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAA;IACf,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB;IACnB,GAAG,EAAE,GAAG,CAAA;CACT,CAAC;AAwZF,QAAA,MAAM,YAAY;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import DesktopTab_vue_vue_type_script_setup_true_lang_default from "./DesktopTab.vue.script.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
//#region src/v2/features/app/components/DesktopTab.vue
|
|
5
|
-
var DesktopTab_default = /* @__PURE__ */ _plugin_vue_export_helper_default(DesktopTab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-2d65f302"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { DesktopTab_default as default };
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=DesktopTab.vue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DesktopTab.vue.js","names":[],"sources":["../../../../../src/v2/features/app/components/DesktopTab.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n ScalarDropdownButton,\n ScalarDropdownDivider,\n ScalarDropdownMenu,\n ScalarFloating,\n ScalarHotkey,\n ScalarTooltip,\n} from '@scalar/components'\nimport { isMacOS } from '@scalar/helpers/general/is-mac-os'\nimport {\n ScalarIconArrowUpRight,\n ScalarIconFolderSimple,\n ScalarIconLinkSimple,\n ScalarIconPlusSquare,\n ScalarIconTabs,\n ScalarIconX,\n ScalarIconXSquare,\n} from '@scalar/icons'\nimport type { ScalarIconComponent } from '@scalar/icons/types'\nimport type { Tab } from '@scalar/workspace-store/schemas/extensions/workspace'\nimport { computed } from 'vue'\n\nimport { ContextMenu } from '@/v2/components/context-menu'\n\nconst {\n hotkey,\n active,\n tab,\n isSingleTab = false,\n} = defineProps<{\n /** Optional keyboard shortcut number for the tab */\n hotkey?: string\n /** Whether this tab is currently active */\n active: boolean\n /** Whether this is the only tab (changes styling to header-like appearance) */\n isSingleTab?: boolean\n /** The tab data */\n tab: Tab\n}>()\n\nconst emit = defineEmits<{\n /** Fired when the tab is clicked to activate it */\n (e: 'click'): void\n /** Fired when the close button is clicked */\n (e: 'close'): void\n /** Fired when \"New Tab\" is selected from context menu */\n (e: 'newTab'): void\n /** Fired when \"Copy URL\" is selected from context menu */\n (e: 'copyUrl'): void\n /** Fired when \"Close Other Tabs\" is selected from context menu */\n (e: 'closeOtherTabs'): void\n}>()\n\nconst ICONS: Record<NonNullable<Tab['icon']>, ScalarIconComponent> = {\n request: ScalarIconArrowUpRight,\n document: ScalarIconFolderSimple,\n}\n\n/** Display the appropriate modifier key based on the operating system */\nconst modifierKey = computed(() => (isMacOS() ? '⌘' : '^'))\n\n/** The tooltip content showing the keyboard shortcut */\nconst tooltipContent = computed(() =>\n hotkey ? `${modifierKey.value} ${hotkey}` : '',\n)\n\n/**\n * Handle the close button click.\n * We stop propagation to prevent triggering the tab activation click.\n */\nconst handleClose = (event: MouseEvent): void => {\n event.stopPropagation()\n emit('close')\n}\n</script>\n\n<template>\n <!-- Context menu wrapper provides right-click menu functionality -->\n <ContextMenu\n triggerClass=\"overflow-hidden w-full flex-1 select-none\n\">\n <!-- Tab button trigger with tooltip showing keyboard shortcut -->\n <template #trigger>\n <component\n :is=\"isSingleTab ? 'div' : ScalarTooltip\"\n :content=\"tooltipContent\"\n placement=\"bottom\">\n <!-- Main tab container - clickable area to activate the tab -->\n <div\n :class=\"[\n isSingleTab\n ? 'nav-single-tab mac:app-drag-region'\n : 'nav-item app-no-drag-region',\n { 'nav-item__active': active && !isSingleTab },\n ]\"\n @click=\"!isSingleTab && emit('click')\">\n <!-- Icon and label container with gradient mask for text overflow -->\n <div\n :class=\"[\n 'flex items-center justify-center gap-1.5',\n isSingleTab\n ? 'custom-scroll h-full w-full whitespace-nowrap'\n : 'nav-item-icon-copy flex-1',\n ]\">\n <component\n :is=\"ICONS[tab.icon]\"\n v-if=\"tab.icon && ICONS[tab.icon]\" />\n <span\n :class=\"[\n isSingleTab ? '' : 'custom-scroll nav-item-copy',\n 'text-sm',\n ]\">\n {{ tab.title }}\n </span>\n </div>\n\n <!-- Close button - appears on hover, stops propagation to prevent tab activation -->\n <!-- Hidden for single tabs -->\n <button\n v-if=\"!isSingleTab\"\n class=\"nav-item-close\"\n type=\"button\"\n @click=\"handleClose\">\n <component :is=\"ScalarIconX\" />\n </button>\n </div>\n </component>\n </template>\n\n <!-- Context menu content shown on right-click -->\n <template #content>\n <ScalarFloating placement=\"right-start\">\n <template #floating>\n <ScalarDropdownMenu class=\"scalar-app scalar-client\">\n <!-- New Tab action (Cmd/Ctrl + T) -->\n <ScalarDropdownButton\n class=\"flex items-center gap-1.5\"\n @click=\"emit('newTab')\">\n <component :is=\"ScalarIconPlusSquare\" />\n New Tab\n <ScalarHotkey\n class=\"bg-b-2 ml-auto\"\n hotkey=\"T\" />\n </ScalarDropdownButton>\n\n <!-- Copy URL action -->\n <ScalarDropdownButton\n class=\"flex items-center gap-1.5\"\n @click=\"emit('copyUrl')\">\n <component :is=\"ScalarIconLinkSimple\" />\n Copy URL\n </ScalarDropdownButton>\n\n <template v-if=\"!isSingleTab\">\n <ScalarDropdownDivider />\n\n <!-- Close Tab action (Cmd/Ctrl + W) -->\n <!-- Hidden for single tabs -->\n <ScalarDropdownButton\n class=\"flex items-center gap-1.5\"\n @click=\"emit('close')\">\n <component :is=\"ScalarIconXSquare\" />\n Close Tab\n <ScalarHotkey\n class=\"bg-b-2 ml-auto\"\n hotkey=\"W\" />\n </ScalarDropdownButton>\n\n <!-- Close Other Tabs action -->\n <!-- Hidden for single tabs -->\n <ScalarDropdownButton\n class=\"flex items-center gap-1.5\"\n @click=\"emit('closeOtherTabs')\">\n <component :is=\"ScalarIconTabs\" />\n Close Other Tabs\n </ScalarDropdownButton>\n </template>\n </ScalarDropdownMenu>\n </template>\n </ScalarFloating>\n </template>\n </ContextMenu>\n</template>\n\n<style scoped>\n/** Single tab styling - appears as a header without tab-like appearance */\n.nav-single-tab {\n display: flex;\n height: 100%;\n width: 100%;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n color: var(--scalar-color-1);\n}\n\n/** Base tab styling with subtle background and border */\n.nav-item {\n padding: 4.5px 1rem;\n cursor: pointer;\n flex: 1;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: var(--scalar-radius-lg);\n background: var(--scalar-background-3);\n border: var(--scalar-border-width) solid var(--scalar-background-2);\n color: var(--scalar-color-3);\n min-width: 0;\n overflow: hidden;\n position: relative;\n}\n\n.dark-mode .nav-item {\n background: color-mix(in srgb, var(--scalar-background-2), transparent);\n}\n\n/**\n * Container for the icon and label.\n * Uses a mask gradient to fade out text on the right side,\n * making room for the close button that appears on hover.\n */\n.nav-item-icon-copy {\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n mask-image: linear-gradient(\n to left,\n transparent 0,\n var(--scalar-background-2) 20px\n );\n}\n\n/** On hover, shift the gradient to make more room for the close button */\n.nav-item:hover .nav-item-icon-copy {\n mask-image: linear-gradient(\n to left,\n transparent 20px,\n var(--scalar-background-2) 40px\n );\n}\n\n/** Label text with constrained width to prevent overflow */\n.nav-item-copy {\n max-width: calc(100% - 20px);\n}\n\n.nav-item:hover {\n color: var(--scalar-color-1);\n}\n\n/** Active tab state with brighter background and border */\n.nav-item__active {\n background-color: var(--scalar-background-1);\n color: var(--scalar-color-1);\n border-color: var(--scalar-border-color);\n}\n\n.dark-mode .nav-item__active {\n background-color: var(--scalar-background-2);\n}\n\n/**\n * Close button positioned absolutely on the right.\n * Hidden by default, revealed on tab hover.\n */\n.nav-item-close {\n position: absolute;\n right: 3px;\n padding: 2px;\n border-radius: var(--scalar-radius);\n background: transparent;\n max-width: 20px;\n stroke-width: 1.5px;\n color: var(--scalar-color-3);\n margin-left: -20px;\n opacity: 0;\n}\n\n.nav-item:hover .nav-item-close {\n opacity: 1;\n}\n\n.nav-item-close:hover {\n background-color: var(--scalar-background-4);\n}\n\n.nav-item__active .nav-item-close:hover {\n background-color: var(--scalar-background-2);\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import ContextMenu_default from "../../../components/context-menu/ContextMenu.vue.js";
|
|
2
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
3
|
-
import { ScalarDropdownButton, ScalarDropdownDivider, ScalarDropdownMenu, ScalarFloating, ScalarHotkey, ScalarTooltip } from "@scalar/components";
|
|
4
|
-
import { ScalarIconArrowUpRight, ScalarIconFolderSimple, ScalarIconLinkSimple, ScalarIconPlusSquare, ScalarIconTabs, ScalarIconX, ScalarIconXSquare } from "@scalar/icons";
|
|
5
|
-
import { isMacOS } from "@scalar/helpers/general/is-mac-os";
|
|
6
|
-
//#region src/v2/features/app/components/DesktopTab.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var DesktopTab_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "DesktopTab",
|
|
9
|
-
props: {
|
|
10
|
-
hotkey: {},
|
|
11
|
-
active: { type: Boolean },
|
|
12
|
-
isSingleTab: {
|
|
13
|
-
type: Boolean,
|
|
14
|
-
default: false
|
|
15
|
-
},
|
|
16
|
-
tab: {}
|
|
17
|
-
},
|
|
18
|
-
emits: [
|
|
19
|
-
"click",
|
|
20
|
-
"close",
|
|
21
|
-
"newTab",
|
|
22
|
-
"copyUrl",
|
|
23
|
-
"closeOtherTabs"
|
|
24
|
-
],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
const emit = __emit;
|
|
27
|
-
const ICONS = {
|
|
28
|
-
request: ScalarIconArrowUpRight,
|
|
29
|
-
document: ScalarIconFolderSimple
|
|
30
|
-
};
|
|
31
|
-
/** Display the appropriate modifier key based on the operating system */
|
|
32
|
-
const modifierKey = computed(() => isMacOS() ? "⌘" : "^");
|
|
33
|
-
/** The tooltip content showing the keyboard shortcut */
|
|
34
|
-
const tooltipContent = computed(() => __props.hotkey ? `${modifierKey.value} ${__props.hotkey}` : "");
|
|
35
|
-
/**
|
|
36
|
-
* Handle the close button click.
|
|
37
|
-
* We stop propagation to prevent triggering the tab activation click.
|
|
38
|
-
*/
|
|
39
|
-
const handleClose = (event) => {
|
|
40
|
-
event.stopPropagation();
|
|
41
|
-
emit("close");
|
|
42
|
-
};
|
|
43
|
-
return (_ctx, _cache) => {
|
|
44
|
-
return openBlock(), createBlock(unref(ContextMenu_default), { triggerClass: "overflow-hidden w-full flex-1 select-none\n" }, {
|
|
45
|
-
trigger: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(__props.isSingleTab ? "div" : unref(ScalarTooltip)), {
|
|
46
|
-
content: tooltipContent.value,
|
|
47
|
-
placement: "bottom"
|
|
48
|
-
}, {
|
|
49
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
50
|
-
class: normalizeClass([__props.isSingleTab ? "nav-single-tab mac:app-drag-region" : "nav-item app-no-drag-region", { "nav-item__active": __props.active && !__props.isSingleTab }]),
|
|
51
|
-
onClick: _cache[0] || (_cache[0] = ($event) => !__props.isSingleTab && emit("click"))
|
|
52
|
-
}, [createElementVNode("div", { class: normalizeClass(["flex items-center justify-center gap-1.5", __props.isSingleTab ? "custom-scroll h-full w-full whitespace-nowrap" : "nav-item-icon-copy flex-1"]) }, [__props.tab.icon && ICONS[__props.tab.icon] ? (openBlock(), createBlock(resolveDynamicComponent(ICONS[__props.tab.icon]), { key: 0 })) : createCommentVNode("", true), createElementVNode("span", { class: normalizeClass([__props.isSingleTab ? "" : "custom-scroll nav-item-copy", "text-sm"]) }, toDisplayString(__props.tab.title), 3)], 2), !__props.isSingleTab ? (openBlock(), createElementBlock("button", {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "nav-item-close",
|
|
55
|
-
type: "button",
|
|
56
|
-
onClick: handleClose
|
|
57
|
-
}, [(openBlock(), createBlock(resolveDynamicComponent(unref(ScalarIconX))))])) : createCommentVNode("", true)], 2)]),
|
|
58
|
-
_: 1
|
|
59
|
-
}, 8, ["content"]))]),
|
|
60
|
-
content: withCtx(() => [createVNode(unref(ScalarFloating), { placement: "right-start" }, {
|
|
61
|
-
floating: withCtx(() => [createVNode(unref(ScalarDropdownMenu), { class: "scalar-app scalar-client" }, {
|
|
62
|
-
default: withCtx(() => [
|
|
63
|
-
createVNode(unref(ScalarDropdownButton), {
|
|
64
|
-
class: "flex items-center gap-1.5",
|
|
65
|
-
onClick: _cache[1] || (_cache[1] = ($event) => emit("newTab"))
|
|
66
|
-
}, {
|
|
67
|
-
default: withCtx(() => [
|
|
68
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(ScalarIconPlusSquare)))),
|
|
69
|
-
_cache[5] || (_cache[5] = createTextVNode(" New Tab ", -1)),
|
|
70
|
-
createVNode(unref(ScalarHotkey), {
|
|
71
|
-
class: "bg-b-2 ml-auto",
|
|
72
|
-
hotkey: "T"
|
|
73
|
-
})
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
}),
|
|
77
|
-
createVNode(unref(ScalarDropdownButton), {
|
|
78
|
-
class: "flex items-center gap-1.5",
|
|
79
|
-
onClick: _cache[2] || (_cache[2] = ($event) => emit("copyUrl"))
|
|
80
|
-
}, {
|
|
81
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(unref(ScalarIconLinkSimple)))), _cache[6] || (_cache[6] = createTextVNode(" Copy URL ", -1))]),
|
|
82
|
-
_: 1
|
|
83
|
-
}),
|
|
84
|
-
!__props.isSingleTab ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
85
|
-
createVNode(unref(ScalarDropdownDivider)),
|
|
86
|
-
createVNode(unref(ScalarDropdownButton), {
|
|
87
|
-
class: "flex items-center gap-1.5",
|
|
88
|
-
onClick: _cache[3] || (_cache[3] = ($event) => emit("close"))
|
|
89
|
-
}, {
|
|
90
|
-
default: withCtx(() => [
|
|
91
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(ScalarIconXSquare)))),
|
|
92
|
-
_cache[7] || (_cache[7] = createTextVNode(" Close Tab ", -1)),
|
|
93
|
-
createVNode(unref(ScalarHotkey), {
|
|
94
|
-
class: "bg-b-2 ml-auto",
|
|
95
|
-
hotkey: "W"
|
|
96
|
-
})
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}),
|
|
100
|
-
createVNode(unref(ScalarDropdownButton), {
|
|
101
|
-
class: "flex items-center gap-1.5",
|
|
102
|
-
onClick: _cache[4] || (_cache[4] = ($event) => emit("closeOtherTabs"))
|
|
103
|
-
}, {
|
|
104
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(unref(ScalarIconTabs)))), _cache[8] || (_cache[8] = createTextVNode(" Close Other Tabs ", -1))]),
|
|
105
|
-
_: 1
|
|
106
|
-
})
|
|
107
|
-
], 64)) : createCommentVNode("", true)
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})]),
|
|
111
|
-
_: 1
|
|
112
|
-
})]),
|
|
113
|
-
_: 1
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
//#endregion
|
|
119
|
-
export { DesktopTab_vue_vue_type_script_setup_true_lang_default as default };
|
|
120
|
-
|
|
121
|
-
//# sourceMappingURL=DesktopTab.vue.script.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DesktopTab.vue.script.js","names":[],"sources":["../../../../../src/v2/features/app/components/DesktopTab.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n ScalarDropdownButton,\n ScalarDropdownDivider,\n ScalarDropdownMenu,\n ScalarFloating,\n ScalarHotkey,\n ScalarTooltip,\n} from '@scalar/components'\nimport { isMacOS } from '@scalar/helpers/general/is-mac-os'\nimport {\n ScalarIconArrowUpRight,\n ScalarIconFolderSimple,\n ScalarIconLinkSimple,\n ScalarIconPlusSquare,\n ScalarIconTabs,\n ScalarIconX,\n ScalarIconXSquare,\n} from '@scalar/icons'\nimport type { ScalarIconComponent } from '@scalar/icons/types'\nimport type { Tab } from '@scalar/workspace-store/schemas/extensions/workspace'\nimport { computed } from 'vue'\n\nimport { ContextMenu } from '@/v2/components/context-menu'\n\nconst {\n hotkey,\n active,\n tab,\n isSingleTab = false,\n} = defineProps<{\n /** Optional keyboard shortcut number for the tab */\n hotkey?: string\n /** Whether this tab is currently active */\n active: boolean\n /** Whether this is the only tab (changes styling to header-like appearance) */\n isSingleTab?: boolean\n /** The tab data */\n tab: Tab\n}>()\n\nconst emit = defineEmits<{\n /** Fired when the tab is clicked to activate it */\n (e: 'click'): void\n /** Fired when the close button is clicked */\n (e: 'close'): void\n /** Fired when \"New Tab\" is selected from context menu */\n (e: 'newTab'): void\n /** Fired when \"Copy URL\" is selected from context menu */\n (e: 'copyUrl'): void\n /** Fired when \"Close Other Tabs\" is selected from context menu */\n (e: 'closeOtherTabs'): void\n}>()\n\nconst ICONS: Record<NonNullable<Tab['icon']>, ScalarIconComponent> = {\n request: ScalarIconArrowUpRight,\n document: ScalarIconFolderSimple,\n}\n\n/** Display the appropriate modifier key based on the operating system */\nconst modifierKey = computed(() => (isMacOS() ? '⌘' : '^'))\n\n/** The tooltip content showing the keyboard shortcut */\nconst tooltipContent = computed(() =>\n hotkey ? `${modifierKey.value} ${hotkey}` : '',\n)\n\n/**\n * Handle the close button click.\n * We stop propagation to prevent triggering the tab activation click.\n */\nconst handleClose = (event: MouseEvent): void => {\n event.stopPropagation()\n emit('close')\n}\n</script>\n\n<template>\n <!-- Context menu wrapper provides right-click menu functionality -->\n <ContextMenu\n triggerClass=\"overflow-hidden w-full flex-1 select-none\n\">\n <!-- Tab button trigger with tooltip showing keyboard shortcut -->\n <template #trigger>\n <component\n :is=\"isSingleTab ? 'div' : ScalarTooltip\"\n :content=\"tooltipContent\"\n placement=\"bottom\">\n <!-- Main tab container - clickable area to activate the tab -->\n <div\n :class=\"[\n isSingleTab\n ? 'nav-single-tab mac:app-drag-region'\n : 'nav-item app-no-drag-region',\n { 'nav-item__active': active && !isSingleTab },\n ]\"\n @click=\"!isSingleTab && emit('click')\">\n <!-- Icon and label container with gradient mask for text overflow -->\n <div\n :class=\"[\n 'flex items-center justify-center gap-1.5',\n isSingleTab\n ? 'custom-scroll h-full w-full whitespace-nowrap'\n : 'nav-item-icon-copy flex-1',\n ]\">\n <component\n :is=\"ICONS[tab.icon]\"\n v-if=\"tab.icon && ICONS[tab.icon]\" />\n <span\n :class=\"[\n isSingleTab ? '' : 'custom-scroll nav-item-copy',\n 'text-sm',\n ]\">\n {{ tab.title }}\n </span>\n </div>\n\n <!-- Close button - appears on hover, stops propagation to prevent tab activation -->\n <!-- Hidden for single tabs -->\n <button\n v-if=\"!isSingleTab\"\n class=\"nav-item-close\"\n type=\"button\"\n @click=\"handleClose\">\n <component :is=\"ScalarIconX\" />\n </button>\n </div>\n </component>\n </template>\n\n <!-- Context menu content shown on right-click -->\n <template #content>\n <ScalarFloating placement=\"right-start\">\n <template #floating>\n <ScalarDropdownMenu class=\"scalar-app scalar-client\">\n <!-- New Tab action (Cmd/Ctrl + T) -->\n <ScalarDropdownButton\n class=\"flex items-center gap-1.5\"\n @click=\"emit('newTab')\">\n <component :is=\"ScalarIconPlusSquare\" />\n New Tab\n <ScalarHotkey\n class=\"bg-b-2 ml-auto\"\n hotkey=\"T\" />\n </ScalarDropdownButton>\n\n <!-- Copy URL action -->\n <ScalarDropdownButton\n class=\"flex items-center gap-1.5\"\n @click=\"emit('copyUrl')\">\n <component :is=\"ScalarIconLinkSimple\" />\n Copy URL\n </ScalarDropdownButton>\n\n <template v-if=\"!isSingleTab\">\n <ScalarDropdownDivider />\n\n <!-- Close Tab action (Cmd/Ctrl + W) -->\n <!-- Hidden for single tabs -->\n <ScalarDropdownButton\n class=\"flex items-center gap-1.5\"\n @click=\"emit('close')\">\n <component :is=\"ScalarIconXSquare\" />\n Close Tab\n <ScalarHotkey\n class=\"bg-b-2 ml-auto\"\n hotkey=\"W\" />\n </ScalarDropdownButton>\n\n <!-- Close Other Tabs action -->\n <!-- Hidden for single tabs -->\n <ScalarDropdownButton\n class=\"flex items-center gap-1.5\"\n @click=\"emit('closeOtherTabs')\">\n <component :is=\"ScalarIconTabs\" />\n Close Other Tabs\n </ScalarDropdownButton>\n </template>\n </ScalarDropdownMenu>\n </template>\n </ScalarFloating>\n </template>\n </ContextMenu>\n</template>\n\n<style scoped>\n/** Single tab styling - appears as a header without tab-like appearance */\n.nav-single-tab {\n display: flex;\n height: 100%;\n width: 100%;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n color: var(--scalar-color-1);\n}\n\n/** Base tab styling with subtle background and border */\n.nav-item {\n padding: 4.5px 1rem;\n cursor: pointer;\n flex: 1;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: var(--scalar-radius-lg);\n background: var(--scalar-background-3);\n border: var(--scalar-border-width) solid var(--scalar-background-2);\n color: var(--scalar-color-3);\n min-width: 0;\n overflow: hidden;\n position: relative;\n}\n\n.dark-mode .nav-item {\n background: color-mix(in srgb, var(--scalar-background-2), transparent);\n}\n\n/**\n * Container for the icon and label.\n * Uses a mask gradient to fade out text on the right side,\n * making room for the close button that appears on hover.\n */\n.nav-item-icon-copy {\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n mask-image: linear-gradient(\n to left,\n transparent 0,\n var(--scalar-background-2) 20px\n );\n}\n\n/** On hover, shift the gradient to make more room for the close button */\n.nav-item:hover .nav-item-icon-copy {\n mask-image: linear-gradient(\n to left,\n transparent 20px,\n var(--scalar-background-2) 40px\n );\n}\n\n/** Label text with constrained width to prevent overflow */\n.nav-item-copy {\n max-width: calc(100% - 20px);\n}\n\n.nav-item:hover {\n color: var(--scalar-color-1);\n}\n\n/** Active tab state with brighter background and border */\n.nav-item__active {\n background-color: var(--scalar-background-1);\n color: var(--scalar-color-1);\n border-color: var(--scalar-border-color);\n}\n\n.dark-mode .nav-item__active {\n background-color: var(--scalar-background-2);\n}\n\n/**\n * Close button positioned absolutely on the right.\n * Hidden by default, revealed on tab hover.\n */\n.nav-item-close {\n position: absolute;\n right: 3px;\n padding: 2px;\n border-radius: var(--scalar-radius);\n background: transparent;\n max-width: 20px;\n stroke-width: 1.5px;\n color: var(--scalar-color-3);\n margin-left: -20px;\n opacity: 0;\n}\n\n.nav-item:hover .nav-item-close {\n opacity: 1;\n}\n\n.nav-item-close:hover {\n background-color: var(--scalar-background-4);\n}\n\n.nav-item__active .nav-item-close:hover {\n background-color: var(--scalar-background-2);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAyCA,MAAM,OAAO;EAab,MAAM,QAA+D;GACnE,SAAS;GACT,UAAU;GACZ;;EAGA,MAAM,cAAc,eAAgB,SAAS,GAAG,MAAM,IAAI;;EAG1D,MAAM,iBAAiB,eACrB,QAAA,SAAS,GAAG,YAAY,MAAM,GAAG,QAAA,WAAW,GAC9C;;;;;EAMA,MAAM,eAAe,UAA4B;AAC/C,SAAM,iBAAgB;AACtB,QAAK,QAAO;;;uBAMZ,YAuGc,MAAA,oBAAA,EAAA,EAtGZ,cAAa,+CAChB,EAAA;IAEc,SAAO,cA4CJ,EAAA,WAAA,EA3CZ,YA2CY,wBA1CL,QAAA,cAAW,QAAW,MAAA,cAAa,CAAA,EAAA;KACvC,SAAS,eAAA;KACV,WAAU;;4BAuCJ,CArCN,mBAqCM,OAAA;MApCH,OAAK,eAAA,CAAgB,QAAA,cAAA,uCAAA,+BAAA,EAAA,oBAAkJ,QAAA,UAAM,CAAK,QAAA,aAAW,CAAA,CAAA;MAM7L,SAAK,OAAA,OAAA,OAAA,MAAA,WAAA,CAAG,QAAA,eAAe,KAAI,QAAA;SAE5B,mBAiBM,OAAA,EAhBH,OAAK,eAAA,CAAA,4CAA4E,QAAA,cAAA,kDAAA,4BAAA,CAAA,EAAA,EAAA,CAQ1E,QAAA,IAAI,QAAQ,MAAM,QAAA,IAAI,SAAA,WAAA,EAF9B,YAEuC,wBADhC,MAAM,QAAA,IAAI,MAAI,EAAA,EAAA,KAAA,GAAA,CAAA,IAAA,mBAAA,IAAA,KAAA,EAErB,mBAMO,QAAA,EALJ,OAAK,eAAA,CAAoB,QAAA,cAAW,KAAA,+BAAA,UAAA,CAAA,EAAA,EAAA,gBAIlC,QAAA,IAAI,MAAK,EAAA,EAAA,CAAA,EAAA,EAAA,EAAA,CAOP,QAAA,eAAA,WAAA,EADT,mBAMS,UAAA;;MAJP,OAAM;MACN,MAAK;MACJ,SAAO;uBACR,YAA+B,wBAAf,MAAA,YAAW,CAAA,CAAA,EAAA,CAAA,IAAA,mBAAA,IAAA,KAAA,CAAA,EAAA,EAAA,CAAA,CAAA;;;IAOxB,SAAO,cAiDC,CAhDjB,YAgDiB,MAAA,eAAA,EAAA,EAhDD,WAAU,eAAa,EAAA;KAC1B,UAAQ,cA6CI,CA5CrB,YA4CqB,MAAA,mBAAA,EAAA,EA5CD,OAAM,4BAA0B,EAAA;6BAU3B;OARvB,YAQuB,MAAA,qBAAA,EAAA;QAPrB,OAAM;QACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,SAAA;;+BAC4B;uBAAxC,YAAwC,wBAAxB,MAAA,qBAAoB,CAAA,CAAA;mDAAI,aAExC,GAAA;SAAA,YAEe,MAAA,aAAA,EAAA;UADb,OAAM;UACN,QAAO;;;;;OAIX,YAKuB,MAAA,qBAAA,EAAA;QAJrB,OAAM;QACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,UAAA;;+BAC4B,EAAA,WAAA,EAAxC,YAAwC,wBAAxB,MAAA,qBAAoB,CAAA,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,gBAAI,cAE1C,GAAA,EAAA,CAAA;;;QAEiB,QAAA,eAAA,WAAA,EAAjB,mBAuBW,UAAA,EAAA,KAAA,GAAA,EAAA;QAtBT,YAAyB,MAAA,sBAAA,CAAA;QAIzB,YAQuB,MAAA,qBAAA,EAAA;SAPrB,OAAM;SACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,QAAA;;gCACyB;wBAArC,YAAqC,wBAArB,MAAA,kBAAiB,CAAA,CAAA;oDAAI,eAErC,GAAA;UAAA,YAEe,MAAA,aAAA,EAAA;WADb,OAAM;WACN,QAAO;;;;;QAKX,YAKuB,MAAA,qBAAA,EAAA;SAJrB,OAAM;SACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,iBAAA;;gCACsB,EAAA,WAAA,EAAlC,YAAkC,wBAAlB,MAAA,eAAc,CAAA,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,gBAAI,sBAEpC,GAAA,EAAA,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type { Tab } from '@scalar/workspace-store/schemas/extensions/workspace/x-scalar-tabs';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
/** Tabs state */
|
|
5
|
-
tabs: Tab[];
|
|
6
|
-
/** Current active tab index */
|
|
7
|
-
activeTabIndex: number;
|
|
8
|
-
/** Workspace event bus for emitting tab-related events */
|
|
9
|
-
eventBus: WorkspaceEventBus;
|
|
10
|
-
};
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
declare const _default: typeof __VLS_export;
|
|
13
|
-
export default _default;
|
|
14
|
-
//# sourceMappingURL=DesktopTabs.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DesktopTabs.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DesktopTabs.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oEAAoE,CAAA;AAK7F,KAAK,WAAW,GAAG;IACjB,iBAAiB;IACjB,IAAI,EAAE,GAAG,EAAE,CAAA;IACX,+BAA+B;IAC/B,cAAc,EAAE,MAAM,CAAA;IACtB,0DAA0D;IAC1D,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;AAgKF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import DesktopTabs_vue_vue_type_script_setup_true_lang_default from "./DesktopTabs.vue.script.js";
|
|
2
|
-
//#region src/v2/features/app/components/DesktopTabs.vue
|
|
3
|
-
var DesktopTabs_default = DesktopTabs_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { DesktopTabs_default as default };
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=DesktopTabs.vue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DesktopTabs.vue.js","names":[],"sources":["../../../../../src/v2/features/app/components/DesktopTabs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarIcon } from '@scalar/components'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { Tab } from '@scalar/workspace-store/schemas/extensions/workspace/x-scalar-tabs'\nimport { computed } from 'vue'\n\nimport DesktopTab from '@/v2/features/app/components/DesktopTab.vue'\n\nconst { tabs, eventBus } = defineProps<{\n /** Tabs state */\n tabs: Tab[]\n /** Current active tab index */\n activeTabIndex: number\n /** Workspace event bus for emitting tab-related events */\n eventBus: WorkspaceEventBus\n}>()\n\n/** Whether there is only a single tab open */\nconst isSingleTab = computed((): boolean => tabs.length === 1)\n\n/** Adds a new tab */\nconst handleAddTab = (): void => {\n eventBus.emit('tabs:add:tab', undefined)\n}\n\n/** Switches to the tab at the specified index */\nconst switchTab = (index: number): void => {\n eventBus.emit('tabs:focus:tab', { index })\n}\n\n/** Closes the tab at the specified index */\nconst handleCloseTab = (index: number): void => {\n eventBus.emit('tabs:close:tab', { index })\n}\n\n/** Closes all tabs except the one at the specified index */\nconst handleCloseOtherTabs = (index: number): void => {\n eventBus.emit('tabs:close:other-tabs', { index })\n}\n\nconst handleCopyTabUrl = (index: number): void => {\n eventBus.emit('tabs:copy:url', { index })\n}\n</script>\n\n<template>\n <nav class=\"z-10\">\n <!-- drag region (macos) -->\n <div class=\"mac:app-drag-region mac:pl-[72px]\">\n <div class=\"z-1 flex h-10 items-center gap-2 px-2\">\n <DesktopTab\n v-for=\"(tab, index) in tabs\"\n :key=\"index\"\n :active=\"index === activeTabIndex\"\n :hotkey=\"!isSingleTab && index < 9 ? String(index + 1) : undefined\"\n :isSingleTab=\"isSingleTab\"\n :tab=\"tab\"\n @click=\"switchTab(index)\"\n @close=\"handleCloseTab(index)\"\n @closeOtherTabs=\"handleCloseOtherTabs(index)\"\n @copyUrl=\"() => handleCopyTabUrl(index)\"\n @newTab=\"handleAddTab\" />\n\n <button\n class=\"text-c-3 hover:bg-b-3 app-no-drag-region rounded p-1.5\"\n type=\"button\"\n @click=\"handleAddTab\">\n <ScalarIcon\n icon=\"Add\"\n size=\"sm\"\n thickness=\"2.5\" />\n </button>\n </div>\n </div>\n </nav>\n</template>\n"],"mappings":""}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import DesktopTab_default from "./DesktopTab.vue.js";
|
|
2
|
-
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, renderList, unref } from "vue";
|
|
3
|
-
import { ScalarIcon } from "@scalar/components";
|
|
4
|
-
//#region src/v2/features/app/components/DesktopTabs.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var _hoisted_1 = { class: "z-10" };
|
|
6
|
-
var _hoisted_2 = { class: "mac:app-drag-region mac:pl-[72px]" };
|
|
7
|
-
var _hoisted_3 = { class: "z-1 flex h-10 items-center gap-2 px-2" };
|
|
8
|
-
var DesktopTabs_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "DesktopTabs",
|
|
10
|
-
props: {
|
|
11
|
-
tabs: {},
|
|
12
|
-
activeTabIndex: {},
|
|
13
|
-
eventBus: {}
|
|
14
|
-
},
|
|
15
|
-
setup(__props) {
|
|
16
|
-
/** Whether there is only a single tab open */
|
|
17
|
-
const isSingleTab = computed(() => __props.tabs.length === 1);
|
|
18
|
-
/** Adds a new tab */
|
|
19
|
-
const handleAddTab = () => {
|
|
20
|
-
__props.eventBus.emit("tabs:add:tab", void 0);
|
|
21
|
-
};
|
|
22
|
-
/** Switches to the tab at the specified index */
|
|
23
|
-
const switchTab = (index) => {
|
|
24
|
-
__props.eventBus.emit("tabs:focus:tab", { index });
|
|
25
|
-
};
|
|
26
|
-
/** Closes the tab at the specified index */
|
|
27
|
-
const handleCloseTab = (index) => {
|
|
28
|
-
__props.eventBus.emit("tabs:close:tab", { index });
|
|
29
|
-
};
|
|
30
|
-
/** Closes all tabs except the one at the specified index */
|
|
31
|
-
const handleCloseOtherTabs = (index) => {
|
|
32
|
-
__props.eventBus.emit("tabs:close:other-tabs", { index });
|
|
33
|
-
};
|
|
34
|
-
const handleCopyTabUrl = (index) => {
|
|
35
|
-
__props.eventBus.emit("tabs:copy:url", { index });
|
|
36
|
-
};
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createElementBlock("nav", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab, index) => {
|
|
39
|
-
return openBlock(), createBlock(DesktopTab_default, {
|
|
40
|
-
key: index,
|
|
41
|
-
active: index === __props.activeTabIndex,
|
|
42
|
-
hotkey: !isSingleTab.value && index < 9 ? String(index + 1) : void 0,
|
|
43
|
-
isSingleTab: isSingleTab.value,
|
|
44
|
-
tab,
|
|
45
|
-
onClick: ($event) => switchTab(index),
|
|
46
|
-
onClose: ($event) => handleCloseTab(index),
|
|
47
|
-
onCloseOtherTabs: ($event) => handleCloseOtherTabs(index),
|
|
48
|
-
onCopyUrl: () => handleCopyTabUrl(index),
|
|
49
|
-
onNewTab: handleAddTab
|
|
50
|
-
}, null, 8, [
|
|
51
|
-
"active",
|
|
52
|
-
"hotkey",
|
|
53
|
-
"isSingleTab",
|
|
54
|
-
"tab",
|
|
55
|
-
"onClick",
|
|
56
|
-
"onClose",
|
|
57
|
-
"onCloseOtherTabs",
|
|
58
|
-
"onCopyUrl"
|
|
59
|
-
]);
|
|
60
|
-
}), 128)), createElementVNode("button", {
|
|
61
|
-
class: "text-c-3 hover:bg-b-3 app-no-drag-region rounded p-1.5",
|
|
62
|
-
type: "button",
|
|
63
|
-
onClick: handleAddTab
|
|
64
|
-
}, [createVNode(unref(ScalarIcon), {
|
|
65
|
-
icon: "Add",
|
|
66
|
-
size: "sm",
|
|
67
|
-
thickness: "2.5"
|
|
68
|
-
})])])])]);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
//#endregion
|
|
73
|
-
export { DesktopTabs_vue_vue_type_script_setup_true_lang_default as default };
|
|
74
|
-
|
|
75
|
-
//# sourceMappingURL=DesktopTabs.vue.script.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DesktopTabs.vue.script.js","names":[],"sources":["../../../../../src/v2/features/app/components/DesktopTabs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarIcon } from '@scalar/components'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { Tab } from '@scalar/workspace-store/schemas/extensions/workspace/x-scalar-tabs'\nimport { computed } from 'vue'\n\nimport DesktopTab from '@/v2/features/app/components/DesktopTab.vue'\n\nconst { tabs, eventBus } = defineProps<{\n /** Tabs state */\n tabs: Tab[]\n /** Current active tab index */\n activeTabIndex: number\n /** Workspace event bus for emitting tab-related events */\n eventBus: WorkspaceEventBus\n}>()\n\n/** Whether there is only a single tab open */\nconst isSingleTab = computed((): boolean => tabs.length === 1)\n\n/** Adds a new tab */\nconst handleAddTab = (): void => {\n eventBus.emit('tabs:add:tab', undefined)\n}\n\n/** Switches to the tab at the specified index */\nconst switchTab = (index: number): void => {\n eventBus.emit('tabs:focus:tab', { index })\n}\n\n/** Closes the tab at the specified index */\nconst handleCloseTab = (index: number): void => {\n eventBus.emit('tabs:close:tab', { index })\n}\n\n/** Closes all tabs except the one at the specified index */\nconst handleCloseOtherTabs = (index: number): void => {\n eventBus.emit('tabs:close:other-tabs', { index })\n}\n\nconst handleCopyTabUrl = (index: number): void => {\n eventBus.emit('tabs:copy:url', { index })\n}\n</script>\n\n<template>\n <nav class=\"z-10\">\n <!-- drag region (macos) -->\n <div class=\"mac:app-drag-region mac:pl-[72px]\">\n <div class=\"z-1 flex h-10 items-center gap-2 px-2\">\n <DesktopTab\n v-for=\"(tab, index) in tabs\"\n :key=\"index\"\n :active=\"index === activeTabIndex\"\n :hotkey=\"!isSingleTab && index < 9 ? String(index + 1) : undefined\"\n :isSingleTab=\"isSingleTab\"\n :tab=\"tab\"\n @click=\"switchTab(index)\"\n @close=\"handleCloseTab(index)\"\n @closeOtherTabs=\"handleCloseOtherTabs(index)\"\n @copyUrl=\"() => handleCopyTabUrl(index)\"\n @newTab=\"handleAddTab\" />\n\n <button\n class=\"text-c-3 hover:bg-b-3 app-no-drag-region rounded p-1.5\"\n type=\"button\"\n @click=\"handleAddTab\">\n <ScalarIcon\n icon=\"Add\"\n size=\"sm\"\n thickness=\"2.5\" />\n </button>\n </div>\n </div>\n </nav>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EAkBA,MAAM,cAAc,eAAwB,QAAA,KAAK,WAAW,EAAC;;EAG7D,MAAM,qBAA2B;AAC/B,WAAA,SAAS,KAAK,gBAAgB,KAAA,EAAS;;;EAIzC,MAAM,aAAa,UAAwB;AACzC,WAAA,SAAS,KAAK,kBAAkB,EAAE,OAAO,CAAA;;;EAI3C,MAAM,kBAAkB,UAAwB;AAC9C,WAAA,SAAS,KAAK,kBAAkB,EAAE,OAAO,CAAA;;;EAI3C,MAAM,wBAAwB,UAAwB;AACpD,WAAA,SAAS,KAAK,yBAAyB,EAAE,OAAO,CAAA;;EAGlD,MAAM,oBAAoB,UAAwB;AAChD,WAAA,SAAS,KAAK,iBAAiB,EAAE,OAAO,CAAA;;;uBAKxC,mBA4BM,OA5BN,YA4BM,CA1BJ,mBAyBM,OAzBN,YAyBM,CAxBJ,mBAuBM,OAvBN,YAuBM,EAAA,UAAA,KAAA,EAtBJ,mBAW2B,UAAA,MAAA,WAVF,QAAA,OAAf,KAAK,UAAK;wBADpB,YAW2B,oBAAA;KATxB,KAAK;KACL,QAAQ,UAAU,QAAA;KAClB,QAAM,CAAG,YAAA,SAAe,QAAK,IAAO,OAAO,QAAK,EAAA,GAAQ,KAAA;KACxD,aAAa,YAAA;KACR;KACL,UAAK,WAAE,UAAU,MAAK;KACtB,UAAK,WAAE,eAAe,MAAK;KAC3B,mBAAc,WAAE,qBAAqB,MAAK;KAC1C,iBAAe,iBAAiB,MAAK;KACrC,UAAQ;;;;;;;;;;;cAEX,mBAQS,UAAA;IAPP,OAAM;IACN,MAAK;IACJ,SAAO;OACR,YAGoB,MAAA,WAAA,EAAA;IAFlB,MAAK;IACL,MAAK;IACL,WAAU"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type AppState } from '../../../../v2/features/app/app-state.js';
|
|
2
|
-
import type { ImportDocumentFromRegistry, RegistryDocumentsState } from '../../../../v2/types/configuration';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
/** The app state used to read the active document and emit navigation events. */
|
|
5
|
-
app: AppState;
|
|
6
|
-
/**
|
|
7
|
-
* The list of all available registry documents. Used to merge advertised
|
|
8
|
-
* versions with loaded workspace documents so the picker can offer every
|
|
9
|
-
* known version of the active document.
|
|
10
|
-
*/
|
|
11
|
-
registryDocuments?: RegistryDocumentsState;
|
|
12
|
-
/**
|
|
13
|
-
* Fetcher used to import a version from the registry when the user picks
|
|
14
|
-
* one that has not been loaded into the local workspace store yet.
|
|
15
|
-
*/
|
|
16
|
-
fetchRegistryDocument?: ImportDocumentFromRegistry;
|
|
17
|
-
};
|
|
18
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
-
createWorkspace: () => any;
|
|
20
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
onCreateWorkspace?: (() => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const _default: typeof __VLS_export;
|
|
24
|
-
export default _default;
|
|
25
|
-
//# sourceMappingURL=DocumentBreadcrumb.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentBreadcrumb.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DocumentBreadcrumb.vue"],"names":[],"mappings":"AA8hBA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAQ3D,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,0BAA0B,CAAA;AAIjC,KAAK,WAAW,GAAG;IACjB,iFAAiF;IACjF,GAAG,EAAE,QAAQ,CAAA;IACb;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;IAC1C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;CACnD,CAAC;AAyqBF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import DocumentBreadcrumb_vue_vue_type_script_setup_true_lang_default from "./DocumentBreadcrumb.vue.script.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
//#region src/v2/features/app/components/DocumentBreadcrumb.vue
|
|
5
|
-
var DocumentBreadcrumb_default = /* @__PURE__ */ _plugin_vue_export_helper_default(DocumentBreadcrumb_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-28138913"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { DocumentBreadcrumb_default as default };
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=DocumentBreadcrumb.vue.js.map
|