@scalar/api-client 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +161 -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 +218 -1638
- 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/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 +67 -96
- 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 -282
- 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 -52
- 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 -170
- package/dist/v2/features/app/components/AppHeaderActions.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +0 -39
- 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 -470
- 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 -207
- 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 -225
- 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 -125
- 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 -226
- 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 -126
- 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 -71
- 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 -9
- 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,174 +0,0 @@
|
|
|
1
|
-
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, shallowRef, unref, watch } from "vue";
|
|
2
|
-
import { ScalarIconArrowRight, ScalarIconCheckCircle } from "@scalar/icons";
|
|
3
|
-
import * as monaco from "monaco-editor";
|
|
4
|
-
//#region src/v2/features/collection/components/DocumentScriptsEditors.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var _hoisted_1 = { class: "document-scripts-editors flex flex-col gap-5" };
|
|
6
|
-
var _hoisted_2 = {
|
|
7
|
-
"aria-label": "Script type",
|
|
8
|
-
class: "document-scripts-editors__tabs flex shrink-0 gap-0.5 rounded-xl border border-[var(--scalar-border-color)] bg-[var(--scalar-background-2)] p-1",
|
|
9
|
-
role: "tablist"
|
|
10
|
-
};
|
|
11
|
-
var _hoisted_3 = ["aria-selected"];
|
|
12
|
-
var _hoisted_4 = {
|
|
13
|
-
key: 0,
|
|
14
|
-
"aria-hidden": "true",
|
|
15
|
-
class: "h-2 w-2 shrink-0 rounded-full bg-[var(--scalar-color-green)]",
|
|
16
|
-
title: "Has content"
|
|
17
|
-
};
|
|
18
|
-
var _hoisted_5 = ["aria-selected"];
|
|
19
|
-
var _hoisted_6 = {
|
|
20
|
-
key: 0,
|
|
21
|
-
"aria-hidden": "true",
|
|
22
|
-
class: "h-2 w-2 shrink-0 rounded-full bg-[var(--scalar-color-green)]",
|
|
23
|
-
title: "Has content"
|
|
24
|
-
};
|
|
25
|
-
var _hoisted_7 = { class: "document-scripts-editors__card flex flex-col overflow-hidden rounded-xl border border-[var(--scalar-border-color)] bg-[var(--scalar-background-1)] shadow-[var(--scalar-shadow-1)]" };
|
|
26
|
-
var _hoisted_8 = { class: "document-scripts-editors__card-header flex min-h-[4rem] shrink-0 items-center justify-between border-b border-[var(--scalar-border-color)] bg-[var(--scalar-background-2)] px-4 py-3" };
|
|
27
|
-
var _hoisted_9 = { class: "text-c-2 text-sm leading-snug" };
|
|
28
|
-
var DocumentScriptsEditors_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
29
|
-
__name: "DocumentScriptsEditors",
|
|
30
|
-
props: { document: {} },
|
|
31
|
-
emits: ["update:extension"],
|
|
32
|
-
setup(__props, { emit: __emit }) {
|
|
33
|
-
const emit = __emit;
|
|
34
|
-
const activeTab = ref("pre");
|
|
35
|
-
const editorContainerRef = ref(null);
|
|
36
|
-
const editor = shallowRef(null);
|
|
37
|
-
const preModel = shallowRef(null);
|
|
38
|
-
const postModel = shallowRef(null);
|
|
39
|
-
/** Local content state so the indicator updates immediately on type, before document prop syncs */
|
|
40
|
-
const preHasContent = ref(false);
|
|
41
|
-
const postHasContent = ref(false);
|
|
42
|
-
const preValue = () => __props.document?.["x-pre-request"] ?? "";
|
|
43
|
-
const postValue = () => __props.document?.["x-post-response"] ?? "";
|
|
44
|
-
/** Content indicators: true when the script has non-whitespace content */
|
|
45
|
-
const hasPreContent = computed(() => preHasContent.value || preValue().trim().length > 0);
|
|
46
|
-
const hasPostContent = computed(() => postHasContent.value || postValue().trim().length > 0);
|
|
47
|
-
/**
|
|
48
|
-
* Creates Monaco text models for pre-request and post-response scripts.
|
|
49
|
-
* Each model maintains its own content, undo history, and cursor state.
|
|
50
|
-
* Change listeners emit updates to sync content with the parent component.
|
|
51
|
-
*/
|
|
52
|
-
const createModels = () => {
|
|
53
|
-
preModel.value = monaco.editor.createModel(preValue(), "javascript");
|
|
54
|
-
postModel.value = monaco.editor.createModel(postValue(), "javascript");
|
|
55
|
-
preHasContent.value = preValue().trim().length > 0;
|
|
56
|
-
postHasContent.value = postValue().trim().length > 0;
|
|
57
|
-
preModel.value.onDidChangeContent(() => {
|
|
58
|
-
const newValue = preModel.value?.getValue() ?? "";
|
|
59
|
-
preHasContent.value = newValue.trim().length > 0;
|
|
60
|
-
emit("update:extension", { "x-pre-request": newValue });
|
|
61
|
-
});
|
|
62
|
-
postModel.value.onDidChangeContent(() => {
|
|
63
|
-
const newValue = postModel.value?.getValue() ?? "";
|
|
64
|
-
postHasContent.value = newValue.trim().length > 0;
|
|
65
|
-
emit("update:extension", { "x-post-response": newValue });
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Initializes the Monaco editor instance with both models.
|
|
70
|
-
* The editor is created once and reused; tab switching swaps models instead of recreating the editor.
|
|
71
|
-
*/
|
|
72
|
-
const createEditor = () => {
|
|
73
|
-
if (!editorContainerRef.value) return;
|
|
74
|
-
createModels();
|
|
75
|
-
const initialModel = activeTab.value === "pre" ? preModel : postModel;
|
|
76
|
-
editor.value = monaco.editor.create(editorContainerRef.value, {
|
|
77
|
-
automaticLayout: true,
|
|
78
|
-
minimap: { enabled: false },
|
|
79
|
-
lineNumbers: "on",
|
|
80
|
-
scrollBeyondLastLine: false,
|
|
81
|
-
folding: true,
|
|
82
|
-
showFoldingControls: "always",
|
|
83
|
-
fontSize: 13,
|
|
84
|
-
lineHeight: 20,
|
|
85
|
-
fontFamily: "'JetBrains Mono', monospace",
|
|
86
|
-
scrollbar: {
|
|
87
|
-
useShadows: false,
|
|
88
|
-
verticalScrollbarSize: 8,
|
|
89
|
-
horizontalScrollbarSize: 8
|
|
90
|
-
},
|
|
91
|
-
padding: {
|
|
92
|
-
top: 12,
|
|
93
|
-
bottom: 12
|
|
94
|
-
},
|
|
95
|
-
renderLineHighlight: "none",
|
|
96
|
-
wordWrap: "on",
|
|
97
|
-
model: initialModel.value
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Switches the active tab by swapping the model on the existing editor.
|
|
102
|
-
* This preserves each model's undo history, cursor position, and scroll state.
|
|
103
|
-
*/
|
|
104
|
-
const switchTo = (tab) => {
|
|
105
|
-
if (activeTab.value === tab || !editor.value) return;
|
|
106
|
-
activeTab.value = tab;
|
|
107
|
-
const model = tab === "pre" ? preModel : postModel;
|
|
108
|
-
if (model.value) editor.value.setModel(model.value);
|
|
109
|
-
};
|
|
110
|
-
/** Cleans up Monaco resources when the component unmounts. */
|
|
111
|
-
const disposeAll = () => {
|
|
112
|
-
preModel.value?.dispose();
|
|
113
|
-
postModel.value?.dispose();
|
|
114
|
-
editor.value?.dispose();
|
|
115
|
-
editor.value = null;
|
|
116
|
-
preModel.value = null;
|
|
117
|
-
postModel.value = null;
|
|
118
|
-
};
|
|
119
|
-
onMounted(() => {
|
|
120
|
-
createEditor();
|
|
121
|
-
});
|
|
122
|
-
onBeforeUnmount(() => {
|
|
123
|
-
disposeAll();
|
|
124
|
-
});
|
|
125
|
-
watch(() => [__props.document?.["x-pre-request"], __props.document?.["x-post-response"]], ([nextPre, nextPost]) => {
|
|
126
|
-
const preStr = nextPre ?? "";
|
|
127
|
-
const postStr = nextPost ?? "";
|
|
128
|
-
preHasContent.value = preStr.trim().length > 0;
|
|
129
|
-
postHasContent.value = postStr.trim().length > 0;
|
|
130
|
-
if (preModel.value && preModel.value.getValue() !== preStr) preModel.value.setValue(preStr);
|
|
131
|
-
if (postModel.value && postModel.value.getValue() !== postStr) postModel.value.setValue(postStr);
|
|
132
|
-
}, { flush: "post" });
|
|
133
|
-
return (_ctx, _cache) => {
|
|
134
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("button", {
|
|
135
|
-
"aria-selected": activeTab.value === "pre",
|
|
136
|
-
class: normalizeClass(["flex min-w-0 flex-1 items-center justify-center gap-2 rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-150", activeTab.value === "pre" ? "text-c-1 bg-[var(--scalar-background-1)] shadow-[var(--scalar-shadow-1)]" : "text-c-2 hover:text-c-1 hover:bg-[var(--scalar-background-3)]"]),
|
|
137
|
-
role: "tab",
|
|
138
|
-
type: "button",
|
|
139
|
-
onClick: _cache[0] || (_cache[0] = ($event) => switchTo("pre"))
|
|
140
|
-
}, [
|
|
141
|
-
createVNode(unref(ScalarIconArrowRight), {
|
|
142
|
-
"aria-hidden": "true",
|
|
143
|
-
class: "size-4 shrink-0 opacity-80"
|
|
144
|
-
}),
|
|
145
|
-
_cache[2] || (_cache[2] = createElementVNode("span", { class: "truncate" }, "Pre-request", -1)),
|
|
146
|
-
hasPreContent.value ? (openBlock(), createElementBlock("span", _hoisted_4)) : createCommentVNode("", true)
|
|
147
|
-
], 10, _hoisted_3), createElementVNode("button", {
|
|
148
|
-
"aria-selected": activeTab.value === "post",
|
|
149
|
-
class: normalizeClass(["flex min-w-0 flex-1 items-center justify-center gap-2 rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-150", activeTab.value === "post" ? "text-c-1 bg-[var(--scalar-background-1)] shadow-[var(--scalar-shadow-1)]" : "text-c-2 hover:text-c-1 hover:bg-[var(--scalar-background-3)]"]),
|
|
150
|
-
role: "tab",
|
|
151
|
-
type: "button",
|
|
152
|
-
onClick: _cache[1] || (_cache[1] = ($event) => switchTo("post"))
|
|
153
|
-
}, [
|
|
154
|
-
createVNode(unref(ScalarIconCheckCircle), {
|
|
155
|
-
"aria-hidden": "true",
|
|
156
|
-
class: "size-4 shrink-0 opacity-80"
|
|
157
|
-
}),
|
|
158
|
-
_cache[3] || (_cache[3] = createElementVNode("span", { class: "truncate" }, "Post-response", -1)),
|
|
159
|
-
hasPostContent.value ? (openBlock(), createElementBlock("span", _hoisted_6)) : createCommentVNode("", true)
|
|
160
|
-
], 10, _hoisted_5)]), createElementVNode("div", _hoisted_7, [createElementVNode("div", _hoisted_8, [createElementVNode("p", _hoisted_9, [activeTab.value === "pre" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(" Runs before each request in this document. Use it to set variables, headers, or modify the request. ")], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(" Runs after each response. Use it for tests, assertions, or saving data from the response. ")], 64))]), _cache[4] || (_cache[4] = createElementVNode("span", {
|
|
161
|
-
"aria-hidden": "true",
|
|
162
|
-
class: "text-c-2 rounded bg-[var(--scalar-background-3)] px-2 py-1 font-mono text-xs"
|
|
163
|
-
}, " JavaScript ", -1))]), createElementVNode("div", {
|
|
164
|
-
ref_key: "editorContainerRef",
|
|
165
|
-
ref: editorContainerRef,
|
|
166
|
-
class: "document-scripts-editors__container min-h-[300px] flex-1"
|
|
167
|
-
}, null, 512)])]);
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
//#endregion
|
|
172
|
-
export { DocumentScriptsEditors_vue_vue_type_script_setup_true_lang_default as default };
|
|
173
|
-
|
|
174
|
-
//# sourceMappingURL=DocumentScriptsEditors.vue.script.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentScriptsEditors.vue.script.js","names":[],"sources":["../../../../../src/v2/features/collection/components/DocumentScriptsEditors.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarIconArrowRight, ScalarIconCheckCircle } from '@scalar/icons'\nimport type { WorkspaceDocument } from '@scalar/workspace-store/schemas'\nimport * as monaco from 'monaco-editor'\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\n\nconst { document } = defineProps<{\n document: WorkspaceDocument | null\n}>()\n\nconst emit = defineEmits<{\n (e: 'update:extension', payload: Record<string, unknown>): void\n}>()\n\ntype ScriptTab = 'pre' | 'post'\n\nconst activeTab = ref<ScriptTab>('pre')\nconst editorContainerRef = ref<HTMLElement | null>(null)\n\nconst editor = shallowRef<monaco.editor.IStandaloneCodeEditor | null>(null)\nconst preModel = shallowRef<monaco.editor.ITextModel | null>(null)\nconst postModel = shallowRef<monaco.editor.ITextModel | null>(null)\n\n/** Local content state so the indicator updates immediately on type, before document prop syncs */\nconst preHasContent = ref(false)\nconst postHasContent = ref(false)\nconst preValue = (): string => (document?.['x-pre-request'] as string) ?? ''\nconst postValue = (): string => (document?.['x-post-response'] as string) ?? ''\n\n/** Content indicators: true when the script has non-whitespace content */\nconst hasPreContent = computed(\n () => preHasContent.value || preValue().trim().length > 0,\n)\n\nconst hasPostContent = computed(\n () => postHasContent.value || postValue().trim().length > 0,\n)\n\n/**\n * Creates Monaco text models for pre-request and post-response scripts.\n * Each model maintains its own content, undo history, and cursor state.\n * Change listeners emit updates to sync content with the parent component.\n */\nconst createModels = () => {\n preModel.value = monaco.editor.createModel(preValue(), 'javascript')\n postModel.value = monaco.editor.createModel(postValue(), 'javascript')\n\n preHasContent.value = preValue().trim().length > 0\n postHasContent.value = postValue().trim().length > 0\n\n preModel.value.onDidChangeContent(() => {\n const newValue = preModel.value?.getValue() ?? ''\n preHasContent.value = newValue.trim().length > 0\n emit('update:extension', { 'x-pre-request': newValue })\n })\n\n postModel.value.onDidChangeContent(() => {\n const newValue = postModel.value?.getValue() ?? ''\n postHasContent.value = newValue.trim().length > 0\n emit('update:extension', { 'x-post-response': newValue })\n })\n}\n\n/**\n * Initializes the Monaco editor instance with both models.\n * The editor is created once and reused; tab switching swaps models instead of recreating the editor.\n */\nconst createEditor = () => {\n if (!editorContainerRef.value) {\n return\n }\n\n createModels()\n\n const initialModel = activeTab.value === 'pre' ? preModel : postModel\n editor.value = monaco.editor.create(editorContainerRef.value, {\n automaticLayout: true,\n minimap: { enabled: false },\n lineNumbers: 'on',\n scrollBeyondLastLine: false,\n folding: true,\n showFoldingControls: 'always',\n fontSize: 13,\n lineHeight: 20,\n fontFamily: \"'JetBrains Mono', monospace\",\n scrollbar: {\n useShadows: false,\n verticalScrollbarSize: 8,\n horizontalScrollbarSize: 8,\n },\n padding: { top: 12, bottom: 12 },\n renderLineHighlight: 'none',\n wordWrap: 'on',\n model: initialModel.value,\n })\n}\n\n/**\n * Switches the active tab by swapping the model on the existing editor.\n * This preserves each model's undo history, cursor position, and scroll state.\n */\nconst switchTo = (tab: ScriptTab) => {\n if (activeTab.value === tab || !editor.value) {\n return\n }\n activeTab.value = tab\n const model = tab === 'pre' ? preModel : postModel\n if (model.value) {\n editor.value.setModel(model.value)\n }\n}\n\n/** Cleans up Monaco resources when the component unmounts. */\nconst disposeAll = () => {\n preModel.value?.dispose()\n postModel.value?.dispose()\n editor.value?.dispose()\n editor.value = null\n preModel.value = null\n postModel.value = null\n}\n\nonMounted(() => {\n createEditor()\n})\n\nonBeforeUnmount(() => {\n disposeAll()\n})\n\nwatch(\n () => [document?.['x-pre-request'], document?.['x-post-response']] as const,\n ([nextPre, nextPost]) => {\n const preStr = (nextPre as string) ?? ''\n const postStr = (nextPost as string) ?? ''\n preHasContent.value = preStr.trim().length > 0\n postHasContent.value = postStr.trim().length > 0\n\n if (preModel.value && preModel.value.getValue() !== preStr) {\n preModel.value.setValue(preStr)\n }\n if (postModel.value && postModel.value.getValue() !== postStr) {\n postModel.value.setValue(postStr)\n }\n },\n { flush: 'post' },\n)\n</script>\n\n<template>\n <div class=\"document-scripts-editors flex flex-col gap-5\">\n <!-- Tabs with icons and content indicators -->\n <div\n aria-label=\"Script type\"\n class=\"document-scripts-editors__tabs flex shrink-0 gap-0.5 rounded-xl border border-[var(--scalar-border-color)] bg-[var(--scalar-background-2)] p-1\"\n role=\"tablist\">\n <button\n :aria-selected=\"activeTab === 'pre'\"\n class=\"flex min-w-0 flex-1 items-center justify-center gap-2 rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-150\"\n :class=\"\n activeTab === 'pre'\n ? 'text-c-1 bg-[var(--scalar-background-1)] shadow-[var(--scalar-shadow-1)]'\n : 'text-c-2 hover:text-c-1 hover:bg-[var(--scalar-background-3)]'\n \"\n role=\"tab\"\n type=\"button\"\n @click=\"switchTo('pre')\">\n <ScalarIconArrowRight\n aria-hidden=\"true\"\n class=\"size-4 shrink-0 opacity-80\" />\n <span class=\"truncate\">Pre-request</span>\n <span\n v-if=\"hasPreContent\"\n aria-hidden=\"true\"\n class=\"h-2 w-2 shrink-0 rounded-full bg-[var(--scalar-color-green)]\"\n title=\"Has content\" />\n </button>\n <button\n :aria-selected=\"activeTab === 'post'\"\n class=\"flex min-w-0 flex-1 items-center justify-center gap-2 rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-150\"\n :class=\"\n activeTab === 'post'\n ? 'text-c-1 bg-[var(--scalar-background-1)] shadow-[var(--scalar-shadow-1)]'\n : 'text-c-2 hover:text-c-1 hover:bg-[var(--scalar-background-3)]'\n \"\n role=\"tab\"\n type=\"button\"\n @click=\"switchTo('post')\">\n <ScalarIconCheckCircle\n aria-hidden=\"true\"\n class=\"size-4 shrink-0 opacity-80\" />\n <span class=\"truncate\">Post-response</span>\n <span\n v-if=\"hasPostContent\"\n aria-hidden=\"true\"\n class=\"h-2 w-2 shrink-0 rounded-full bg-[var(--scalar-color-green)]\"\n title=\"Has content\" />\n </button>\n </div>\n\n <!-- Description and editor card -->\n <div\n class=\"document-scripts-editors__card flex flex-col overflow-hidden rounded-xl border border-[var(--scalar-border-color)] bg-[var(--scalar-background-1)] shadow-[var(--scalar-shadow-1)]\">\n <div\n class=\"document-scripts-editors__card-header flex min-h-[4rem] shrink-0 items-center justify-between border-b border-[var(--scalar-border-color)] bg-[var(--scalar-background-2)] px-4 py-3\">\n <p class=\"text-c-2 text-sm leading-snug\">\n <template v-if=\"activeTab === 'pre'\">\n Runs before each request in this document. Use it to set variables,\n headers, or modify the request.\n </template>\n <template v-else>\n Runs after each response. Use it for tests, assertions, or saving\n data from the response.\n </template>\n </p>\n <span\n aria-hidden=\"true\"\n class=\"text-c-2 rounded bg-[var(--scalar-background-3)] px-2 py-1 font-mono text-xs\">\n JavaScript\n </span>\n </div>\n <div\n ref=\"editorContainerRef\"\n class=\"document-scripts-editors__container min-h-[300px] flex-1\" />\n </div>\n </div>\n</template>\n\n<style scoped>\n.document-scripts-editors__container {\n min-height: 300px;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBA,MAAM,OAAO;EAMb,MAAM,YAAY,IAAe,MAAK;EACtC,MAAM,qBAAqB,IAAwB,KAAI;EAEvD,MAAM,SAAS,WAAuD,KAAI;EAC1E,MAAM,WAAW,WAA4C,KAAI;EACjE,MAAM,YAAY,WAA4C,KAAI;;EAGlE,MAAM,gBAAgB,IAAI,MAAK;EAC/B,MAAM,iBAAiB,IAAI,MAAK;EAChC,MAAM,iBAA0B,QAAA,WAAW,oBAA+B;EAC1E,MAAM,kBAA2B,QAAA,WAAW,sBAAiC;;EAG7E,MAAM,gBAAgB,eACd,cAAc,SAAS,UAAU,CAAC,MAAM,CAAC,SAAS,EAC1D;EAEA,MAAM,iBAAiB,eACf,eAAe,SAAS,WAAW,CAAC,MAAM,CAAC,SAAS,EAC5D;;;;;;EAOA,MAAM,qBAAqB;AACzB,YAAS,QAAQ,OAAO,OAAO,YAAY,UAAU,EAAE,aAAY;AACnE,aAAU,QAAQ,OAAO,OAAO,YAAY,WAAW,EAAE,aAAY;AAErE,iBAAc,QAAQ,UAAU,CAAC,MAAM,CAAC,SAAS;AACjD,kBAAe,QAAQ,WAAW,CAAC,MAAM,CAAC,SAAS;AAEnD,YAAS,MAAM,yBAAyB;IACtC,MAAM,WAAW,SAAS,OAAO,UAAU,IAAI;AAC/C,kBAAc,QAAQ,SAAS,MAAM,CAAC,SAAS;AAC/C,SAAK,oBAAoB,EAAE,iBAAiB,UAAU,CAAA;KACvD;AAED,aAAU,MAAM,yBAAyB;IACvC,MAAM,WAAW,UAAU,OAAO,UAAU,IAAI;AAChD,mBAAe,QAAQ,SAAS,MAAM,CAAC,SAAS;AAChD,SAAK,oBAAoB,EAAE,mBAAmB,UAAU,CAAA;KACzD;;;;;;EAOH,MAAM,qBAAqB;AACzB,OAAI,CAAC,mBAAmB,MACtB;AAGF,iBAAa;GAEb,MAAM,eAAe,UAAU,UAAU,QAAQ,WAAW;AAC5D,UAAO,QAAQ,OAAO,OAAO,OAAO,mBAAmB,OAAO;IAC5D,iBAAiB;IACjB,SAAS,EAAE,SAAS,OAAO;IAC3B,aAAa;IACb,sBAAsB;IACtB,SAAS;IACT,qBAAqB;IACrB,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,WAAW;KACT,YAAY;KACZ,uBAAuB;KACvB,yBAAyB;KAC1B;IACD,SAAS;KAAE,KAAK;KAAI,QAAQ;KAAI;IAChC,qBAAqB;IACrB,UAAU;IACV,OAAO,aAAa;IACrB,CAAA;;;;;;EAOH,MAAM,YAAY,QAAmB;AACnC,OAAI,UAAU,UAAU,OAAO,CAAC,OAAO,MACrC;AAEF,aAAU,QAAQ;GAClB,MAAM,QAAQ,QAAQ,QAAQ,WAAW;AACzC,OAAI,MAAM,MACR,QAAO,MAAM,SAAS,MAAM,MAAK;;;EAKrC,MAAM,mBAAmB;AACvB,YAAS,OAAO,SAAQ;AACxB,aAAU,OAAO,SAAQ;AACzB,UAAO,OAAO,SAAQ;AACtB,UAAO,QAAQ;AACf,YAAS,QAAQ;AACjB,aAAU,QAAQ;;AAGpB,kBAAgB;AACd,iBAAa;IACd;AAED,wBAAsB;AACpB,eAAW;IACZ;AAED,cACQ,CAAC,QAAA,WAAW,kBAAkB,QAAA,WAAW,mBAAmB,GACjE,CAAC,SAAS,cAAc;GACvB,MAAM,SAAU,WAAsB;GACtC,MAAM,UAAW,YAAuB;AACxC,iBAAc,QAAQ,OAAO,MAAM,CAAC,SAAS;AAC7C,kBAAe,QAAQ,QAAQ,MAAM,CAAC,SAAS;AAE/C,OAAI,SAAS,SAAS,SAAS,MAAM,UAAU,KAAK,OAClD,UAAS,MAAM,SAAS,OAAM;AAEhC,OAAI,UAAU,SAAS,UAAU,MAAM,UAAU,KAAK,QACpD,WAAU,MAAM,SAAS,QAAO;KAGpC,EAAE,OAAO,QAAQ,CACnB;;uBAIE,mBA2EM,OA3EN,YA2EM,CAzEJ,mBA8CM,OA9CN,YA8CM,CA1CJ,mBAoBS,UAAA;IAnBN,iBAAe,UAAA,UAAS;IACzB,OAAK,eAAA,CAAC,gIACa,UAAA,UAAS,QAAA,6EAAA,gEAAA,CAAA;IAK5B,MAAK;IACL,MAAK;IACJ,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,SAAQ,MAAA;;IAChB,YAEuC,MAAA,qBAAA,EAAA;KADrC,eAAY;KACZ,OAAM;;8BACR,mBAAyC,QAAA,EAAnC,OAAM,YAAU,EAAC,eAAW,GAAA;IAE1B,cAAA,SAAA,WAAA,EADR,mBAIwB,QAJxB,WAIwB,IAAA,mBAAA,IAAA,KAAA;uBAE1B,mBAoBS,UAAA;IAnBN,iBAAe,UAAA,UAAS;IACzB,OAAK,eAAA,CAAC,gIACa,UAAA,UAAS,SAAA,6EAAA,gEAAA,CAAA;IAK5B,MAAK;IACL,MAAK;IACJ,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,SAAQ,OAAA;;IAChB,YAEuC,MAAA,sBAAA,EAAA;KADrC,eAAY;KACZ,OAAM;;8BACR,mBAA2C,QAAA,EAArC,OAAM,YAAU,EAAC,iBAAa,GAAA;IAE5B,eAAA,SAAA,WAAA,EADR,mBAIwB,QAJxB,WAIwB,IAAA,mBAAA,IAAA,KAAA;yBAK5B,mBAuBM,OAvBN,YAuBM,CArBJ,mBAiBM,OAjBN,YAiBM,CAfJ,mBASI,KATJ,YASI,CARc,UAAA,UAAS,SAAA,WAAA,EAAzB,mBAGW,UAAA,EAAA,KAAA,GAAA,EAAA,CAAA,gBAH0B,wGAGrC,CAAA,EAAA,GAAA,KAAA,WAAA,EACA,mBAGW,UAAA,EAAA,KAAA,GAAA,EAAA,CAAA,gBAHM,8FAGjB,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,OAAA,OAAA,OAAA,KAEF,mBAIO,QAAA;IAHL,eAAY;IACZ,OAAM;MAA+E,gBAEvF,GAAA,EAAA,CAAA,EAEF,mBAEqE,OAAA;aAD/D;IAAJ,KAAI;IACJ,OAAM"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<(import("../../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
2
|
-
collectionType: "document" | "operation";
|
|
3
|
-
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
4
|
-
}) | (import("../../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
5
|
-
collectionType: "workspace";
|
|
6
|
-
document: null;
|
|
7
|
-
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
8
|
-
collectionType: "document" | "operation";
|
|
9
|
-
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
10
|
-
}) | (import("../../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
11
|
-
collectionType: "workspace";
|
|
12
|
-
document: null;
|
|
13
|
-
})> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
15
|
-
export default _default;
|
|
16
|
-
//# sourceMappingURL=Editor.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/collection/components/Editor/Editor.vue"],"names":[],"mappings":"AA4xCA,QAAA,MAAM,YAAY;;;;;;;;;;;;kGAEhB,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 Editor_vue_vue_type_script_setup_true_lang_default from "./Editor.vue.script.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
//#region src/v2/features/collection/components/Editor/Editor.vue
|
|
5
|
-
var Editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-e99ee660"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { Editor_default as default };
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=Editor.vue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.vue.js","names":[],"sources":["../../../../../../src/v2/features/collection/components/Editor/Editor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, ScalarHotkey, useLoadingState } from '@scalar/components'\nimport { debounce } from '@scalar/helpers/general/debounce'\nimport { isObject } from '@scalar/helpers/object/is-object'\nimport { ScalarIconArrowsIn, ScalarIconArrowsOut } from '@scalar/icons'\nimport * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\nimport {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\n\nimport type { CollectionProps } from '@/v2/features/app/helpers/routes'\nimport { useEditor, useJsonPointerLinkSupport } from '@/v2/features/editor'\nimport { createJsonModel } from '@/v2/features/editor/helpers/json/create-json-model'\nimport { createYamlModel } from '@/v2/features/editor/helpers/yaml/create-yaml-model'\nimport { useEditorMarkers } from '@/v2/features/editor/hooks/use-editor-markers'\n\nimport EditorDiagnosticsPanel from './components/EditorDiagnosticsPanel.vue'\nimport EditorSavePanel from './components/EditorSavePanel.vue'\nimport { getDiagnosticCounts } from './helpers/get-diagnostic-counts'\nimport { getOperationContext } from './helpers/get-operation-context'\nimport { getVisibleDiagnostics } from './helpers/get-visible-diagnostics'\nimport { parseEditorObject } from './helpers/parse-editor-object'\nimport { stringifyDocument } from './helpers/stringify-document'\nimport { useEditorState } from './hooks/use-editor-state'\n\nconst { collectionType, documentSlug, method, path, workspaceStore } =\n defineProps<CollectionProps>()\n\nconst MAX_VISIBLE_DIAGNOSTICS = 6\nconst EDITOR_PERSIST_DEBOUNCE_KEY = 'editor:replace-document'\n\nconst monacoEditorRef = ref<HTMLElement>()\nconst editorApi = shallowRef<ReturnType<typeof useEditor>>()\n\nconst saveLoader = useLoadingState()\nconst {\n isAutoSaveEnabled,\n isDirty,\n editorLanguage,\n isDiagnosticsPaneExpanded,\n isEditorMaximized,\n isYamlMode,\n editorBottomPadding,\n editorRootClass,\n getLanguageToggleClass,\n toggleEditorMaximized,\n} = useEditorState()\n\nconst jsonModel = createJsonModel()\nconst yamlModel = createYamlModel()\n\nconst selectedLanguage = ref<'json' | 'yaml'>('json')\n\nconst currentModel = computed(() => {\n return selectedLanguage.value === 'json' ? jsonModel : yamlModel\n})\n\nconst monacoEditorInstance = computed(() => editorApi.value?.editor)\nconst { markers: diagnostics } = useEditorMarkers(monacoEditorInstance)\n\nconst syncEditorBottomPadding = () => {\n editorApi.value?.editor.updateOptions({\n padding: {\n top: 0,\n bottom: editorBottomPadding.value,\n },\n })\n}\n\nconst diagnosticCounts = computed(() => getDiagnosticCounts(diagnostics.value))\nconst visibleDiagnostics = computed(() =>\n getVisibleDiagnostics(diagnostics.value, MAX_VISIBLE_DIAGNOSTICS),\n)\n\nconst focusDiagnostic = (marker: monaco.editor.IMarker) => {\n const editor = editorApi.value?.editor\n if (!editor) {\n return\n }\n editor.setSelection({\n startLineNumber: marker.startLineNumber,\n startColumn: marker.startColumn,\n endLineNumber: marker.endLineNumber,\n endColumn: marker.endColumn,\n })\n editor.revealPositionInCenter({\n lineNumber: marker.startLineNumber,\n column: marker.startColumn,\n })\n}\n\nconst getEditorValue = (): string | null => currentModel.value.model.getValue()\n\n/** Value from the editor for a specific language (use when switching to avoid reading the wrong model). */\nconst getEditorValueForLanguage = (language: 'json' | 'yaml'): string | null =>\n (language === 'json' ? jsonModel : yamlModel).model.getValue()\n\nconst getDocumentValue = async (\n language?: 'json' | 'yaml',\n): Promise<string> => {\n const document = await workspaceStore.getEditableDocument(documentSlug)\n return stringifyDocument(document, language ?? selectedLanguage.value)\n}\n\nconst debouncedPersist = debounce({ delay: 1500 })\n\nconst applyProgrammaticEditorValue = (value: string): void => {\n // Cancel pending auto-save work so synthetic model updates do not persist stale data.\n debouncedPersist.cleanup()\n editorApi.value?.setValue(value, true)\n}\n\nconst loadDocumentIntoEditor = async () => {\n applyProgrammaticEditorValue(await getDocumentValue())\n isDirty.value = false\n await focusOperation()\n}\n\nconst formatDocument = async () => {\n await editorApi.value?.formatDocument()\n}\n\nconst focusOperation = async () => {\n const operationContext = getOperationContext(path, method)\n if (!operationContext) {\n return\n }\n\n await editorApi.value?.focusPath([\n 'paths',\n operationContext.path,\n operationContext.method,\n ])\n}\n\nconst persistEditorToWorkspace = async (value: string) => {\n const parsed = parseEditorObject(value, editorLanguage.value)\n if (!parsed) {\n const firstError = diagnostics.value.find(\n (m) => m.severity === monaco.MarkerSeverity.Error,\n )\n if (firstError) {\n focusDiagnostic(firstError)\n }\n await saveLoader.invalidate()\n return\n }\n\n saveLoader.start()\n await workspaceStore.replaceDocument(documentSlug, parsed)\n isDirty.value = false\n await saveLoader.validate({ duration: 900 })\n}\n\nconst saveNow = async () => {\n const value = getEditorValue()\n if (!value) {\n return\n }\n await persistEditorToWorkspace(value)\n}\n\nconst handleEditorChange = (value: string) => {\n isDirty.value = true\n\n if (!isAutoSaveEnabled.value) {\n return\n }\n\n debouncedPersist.execute(EDITOR_PERSIST_DEBOUNCE_KEY, () =>\n persistEditorToWorkspace(value),\n )\n}\n\nconst focusOperationServers = async () => {\n const operationContext = getOperationContext(path, method)\n if (!operationContext) {\n return\n }\n\n const value = getEditorValue()\n if (!value) {\n return\n }\n\n const parsed = parseEditorObject(value, editorLanguage.value)\n\n if (!parsed || !isObject(parsed.paths)) {\n return\n }\n\n const pathsObject = parsed.paths as Record<string, unknown>\n const operationPathItem = pathsObject[operationContext.path]\n if (!isObject(operationPathItem)) {\n return\n }\n\n const operation = operationPathItem[operationContext.method]\n if (!isObject(operation)) {\n return\n }\n\n // Add default servers if not present\n operation.servers ??= []\n\n // Update the editor value\n editorApi.value?.setValue(stringifyDocument(parsed, editorLanguage.value))\n await editorApi.value?.focusPath([\n 'paths',\n operationContext.path,\n operationContext.method,\n 'servers',\n ])\n}\n\nuseJsonPointerLinkSupport(editorApi, currentModel)\n\nonMounted(() => {\n editorApi.value = useEditor({\n element: monacoEditorRef.value ?? document.createElement('div'),\n onChange: handleEditorChange,\n model: currentModel,\n actions: [\n {\n id: 'scalar.editor.focusOperation',\n label: 'Focus Operation',\n keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyO],\n run: async () => {\n await focusOperation()\n },\n },\n {\n id: 'scalar.editor.focusOperationServers',\n label: 'Focus Operation Servers',\n keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyS],\n run: async () => {\n await focusOperationServers()\n },\n },\n {\n id: 'scalar.editor.formatDocument',\n label: 'Format Document',\n keybindings: [\n monaco.KeyMod.Alt | monaco.KeyMod.Shift | monaco.KeyCode.KeyF,\n ],\n run: async () => {\n await formatDocument()\n },\n },\n ],\n })\n\n syncEditorBottomPadding()\n void loadDocumentIntoEditor()\n})\n\nonBeforeUnmount(() => {\n debouncedPersist.cleanup()\n\n // Persist if there is a pending save\n if (isDirty.value && isAutoSaveEnabled.value) {\n void saveNow()\n }\n editorApi.value?.dispose?.()\n // Dispose models created at setup; useEditor only disposes the editor widget, not external models.\n jsonModel.model.dispose()\n yamlModel.model.dispose()\n})\n\nwatch(() => documentSlug, loadDocumentIntoEditor)\n\nwatch(\n () => [path, method] as const,\n async () => {\n await focusOperation()\n },\n)\n\nwatch(isDiagnosticsPaneExpanded, () => {\n syncEditorBottomPadding()\n})\n\nwatch(editorLanguage, async (nextLanguage, previousLanguage) => {\n const wasDirty = isDirty.value\n // Read from the previous model before switching; getEditorValue() would use currentModel\n // which changes with selectedLanguage, so we would read the (empty) new model otherwise.\n const value = getEditorValueForLanguage(previousLanguage ?? 'json')\n if (!value) {\n selectedLanguage.value = nextLanguage\n await nextTick()\n await focusOperation()\n return\n }\n\n const parsed = parseEditorObject(value, previousLanguage ?? 'json')\n selectedLanguage.value = nextLanguage\n await nextTick()\n if (parsed) {\n applyProgrammaticEditorValue(stringifyDocument(parsed, nextLanguage))\n isDirty.value = wasDirty\n }\n await focusOperation()\n})\n\nwatch(\n isAutoSaveEnabled,\n (isEnabled) => {\n if (!isEnabled) {\n debouncedPersist.cleanup()\n return\n }\n\n if (isDirty.value) {\n const value = getEditorValue()\n if (!value) {\n return\n }\n debouncedPersist.execute(EDITOR_PERSIST_DEBOUNCE_KEY, () =>\n persistEditorToWorkspace(value),\n )\n }\n },\n { flush: 'post' },\n)\n</script>\n\n<template>\n <div\n v-if=\"\n collectionType === 'operation' &&\n getOperationContext(path, method) !== null\n \"\n class=\"flex w-full min-w-0 flex-1 flex-col gap-2\"\n :class=\"editorRootClass\">\n <div\n class=\"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3\">\n <div\n class=\"flex min-w-0 items-center gap-1 overflow-x-auto whitespace-nowrap\">\n <span class=\"text-c-2 text-xs font-medium whitespace-nowrap\">\n Shortcuts\n </span>\n\n <ScalarButton\n class=\"whitespace-nowrap\"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"focusOperation\">\n <span>Operation</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"O\"\n :modifier=\"['Alt']\" />\n </span>\n </ScalarButton>\n\n <ScalarButton\n class=\"whitespace-nowrap\"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"focusOperationServers\">\n <span>Servers</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"S\"\n :modifier=\"['Alt']\" />\n </span>\n </ScalarButton>\n </div>\n\n <div\n aria-label=\"Editor language\"\n class=\"bg-b-1 shadow-border flex items-center justify-self-center overflow-hidden rounded-lg p-0.5\"\n role=\"tablist\">\n <ScalarButton\n :aria-selected=\"!isYamlMode\"\n :class=\"getLanguageToggleClass(!isYamlMode)\"\n role=\"tab\"\n size=\"xs\"\n type=\"button\"\n variant=\"ghost\"\n @click=\"editorLanguage = 'json'\">\n JSON\n </ScalarButton>\n <ScalarButton\n :aria-selected=\"isYamlMode\"\n :class=\"getLanguageToggleClass(isYamlMode)\"\n role=\"tab\"\n size=\"xs\"\n type=\"button\"\n variant=\"ghost\"\n @click=\"editorLanguage = 'yaml'\">\n YAML\n </ScalarButton>\n </div>\n\n <div class=\"flex min-w-0 shrink-0 items-center gap-2 justify-self-end\">\n <ScalarButton\n size=\"xs\"\n variant=\"ghost\"\n @click=\"formatDocument\">\n <span>Format {{ isYamlMode ? 'YAML' : 'JSON' }}</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"F\"\n :modifier=\"['Alt', 'Shift']\" />\n </span>\n </ScalarButton>\n <ScalarButton\n :aria-label=\"\n isEditorMaximized ? 'Restore editor size' : 'Maximize editor'\n \"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"toggleEditorMaximized\">\n <span>{{ isEditorMaximized ? 'Restore' : 'Maximize' }}</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarIconArrowsIn\n v-if=\"isEditorMaximized\"\n class=\"size-3.5\" />\n <ScalarIconArrowsOut\n v-else\n class=\"size-3.5\" />\n </span>\n </ScalarButton>\n </div>\n </div>\n\n <div class=\"flex min-h-0 w-full min-w-0 flex-1 rounded-lg border\">\n <div\n class=\"relative w-full min-w-0 flex-1\"\n :class=\"isEditorMaximized ? 'h-full min-h-0' : 'h-125'\">\n <div class=\"pointer-events-none absolute top-2 right-2 z-10\">\n <EditorSavePanel\n :isAutoSaveEnabled=\"isAutoSaveEnabled\"\n :isDirty=\"isDirty\"\n :saveLoader=\"saveLoader\"\n @saveNow=\"saveNow\"\n @update:isAutoSaveEnabled=\"isAutoSaveEnabled = $event\" />\n </div>\n\n <EditorDiagnosticsPanel\n :diagnosticCounts=\"diagnosticCounts\"\n :expanded=\"isDiagnosticsPaneExpanded\"\n :visibleDiagnostics=\"visibleDiagnostics\"\n @focusDiagnostic=\"focusDiagnostic\"\n @toggle=\"isDiagnosticsPaneExpanded = !isDiagnosticsPaneExpanded\" />\n\n <div\n ref=\"monacoEditorRef\"\n class=\"h-full w-full min-w-0 flex-1 [&_.monaco-editor]:rounded-lg [&_.overflow-guard]:rounded-lg\" />\n </div>\n </div>\n </div>\n <div v-else>No operation context found</div>\n</template>\n<style scoped>\n.editor-container {\n width: 100%;\n height: 100%;\n}\n\n:deep(.json-path-highlight) {\n background-color: rgba(255, 200, 0, 0.35);\n border-radius: 4px;\n}\n\n:deep(.json-focus-highlight) {\n background-color: color-mix(\n in srgb,\n var(--scalar-color-accent, #24b47e) 18%,\n transparent\n );\n border-radius: 4px;\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
import { useEditor } from "../../../editor/hooks/use-editor.js";
|
|
2
|
-
import { useJsonPointerLinkSupport } from "../../../editor/hooks/use-json-pointer-link-support.js";
|
|
3
|
-
import { createJsonModel } from "../../../editor/helpers/json/create-json-model.js";
|
|
4
|
-
import { createYamlModel } from "../../../editor/helpers/yaml/create-yaml-model.js";
|
|
5
|
-
import { useEditorMarkers } from "../../../editor/hooks/use-editor-markers.js";
|
|
6
|
-
import EditorDiagnosticsPanel_default from "./components/EditorDiagnosticsPanel.vue.js";
|
|
7
|
-
import EditorSavePanel_default from "./components/EditorSavePanel.vue.js";
|
|
8
|
-
import { getDiagnosticCounts } from "./helpers/get-diagnostic-counts.js";
|
|
9
|
-
import { getOperationContext } from "./helpers/get-operation-context.js";
|
|
10
|
-
import { getVisibleDiagnostics } from "./helpers/get-visible-diagnostics.js";
|
|
11
|
-
import { parseEditorObject } from "./helpers/parse-editor-object.js";
|
|
12
|
-
import { stringifyDocument } from "./helpers/stringify-document.js";
|
|
13
|
-
import { useEditorState } from "./hooks/use-editor-state.js";
|
|
14
|
-
import { computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
15
|
-
import { ScalarButton, ScalarHotkey, useLoadingState } from "@scalar/components";
|
|
16
|
-
import { ScalarIconArrowsIn, ScalarIconArrowsOut } from "@scalar/icons";
|
|
17
|
-
import { isObject } from "@scalar/helpers/object/is-object";
|
|
18
|
-
import { debounce } from "@scalar/helpers/general/debounce";
|
|
19
|
-
import * as monaco from "monaco-editor/esm/vs/editor/editor.api.js";
|
|
20
|
-
//#region src/v2/features/collection/components/Editor/Editor.vue?vue&type=script&setup=true&lang.ts
|
|
21
|
-
var _hoisted_1 = { class: "grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3" };
|
|
22
|
-
var _hoisted_2 = { class: "flex min-w-0 items-center gap-1 overflow-x-auto whitespace-nowrap" };
|
|
23
|
-
var _hoisted_3 = { class: "text-c-3 ml-2 text-[11px]" };
|
|
24
|
-
var _hoisted_4 = { class: "text-c-3 ml-2 text-[11px]" };
|
|
25
|
-
var _hoisted_5 = {
|
|
26
|
-
"aria-label": "Editor language",
|
|
27
|
-
class: "bg-b-1 shadow-border flex items-center justify-self-center overflow-hidden rounded-lg p-0.5",
|
|
28
|
-
role: "tablist"
|
|
29
|
-
};
|
|
30
|
-
var _hoisted_6 = { class: "flex min-w-0 shrink-0 items-center gap-2 justify-self-end" };
|
|
31
|
-
var _hoisted_7 = { class: "text-c-3 ml-2 text-[11px]" };
|
|
32
|
-
var _hoisted_8 = { class: "text-c-3 ml-2 text-[11px]" };
|
|
33
|
-
var _hoisted_9 = { class: "flex min-h-0 w-full min-w-0 flex-1 rounded-lg border" };
|
|
34
|
-
var _hoisted_10 = { class: "pointer-events-none absolute top-2 right-2 z-10" };
|
|
35
|
-
var _hoisted_11 = { key: 1 };
|
|
36
|
-
var MAX_VISIBLE_DIAGNOSTICS = 6;
|
|
37
|
-
var EDITOR_PERSIST_DEBOUNCE_KEY = "editor:replace-document";
|
|
38
|
-
var Editor_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
39
|
-
__name: "Editor",
|
|
40
|
-
props: {
|
|
41
|
-
documentSlug: {},
|
|
42
|
-
document: {},
|
|
43
|
-
eventBus: {},
|
|
44
|
-
layout: {},
|
|
45
|
-
path: {},
|
|
46
|
-
method: {},
|
|
47
|
-
exampleName: {},
|
|
48
|
-
environment: {},
|
|
49
|
-
workspaceStore: {},
|
|
50
|
-
activeWorkspace: {},
|
|
51
|
-
isTeamWorkspace: { type: Boolean },
|
|
52
|
-
plugins: {},
|
|
53
|
-
customThemes: {},
|
|
54
|
-
currentTheme: {},
|
|
55
|
-
isDarkMode: { type: Boolean },
|
|
56
|
-
fetchRegistryDocument: { type: Function },
|
|
57
|
-
telemetry: { type: Boolean },
|
|
58
|
-
onUpdateTelemetry: { type: Function },
|
|
59
|
-
options: {},
|
|
60
|
-
collectionType: {}
|
|
61
|
-
},
|
|
62
|
-
setup(__props) {
|
|
63
|
-
const monacoEditorRef = ref();
|
|
64
|
-
const editorApi = shallowRef();
|
|
65
|
-
const saveLoader = useLoadingState();
|
|
66
|
-
const { isAutoSaveEnabled, isDirty, editorLanguage, isDiagnosticsPaneExpanded, isEditorMaximized, isYamlMode, editorBottomPadding, editorRootClass, getLanguageToggleClass, toggleEditorMaximized } = useEditorState();
|
|
67
|
-
const jsonModel = createJsonModel();
|
|
68
|
-
const yamlModel = createYamlModel();
|
|
69
|
-
const selectedLanguage = ref("json");
|
|
70
|
-
const currentModel = computed(() => {
|
|
71
|
-
return selectedLanguage.value === "json" ? jsonModel : yamlModel;
|
|
72
|
-
});
|
|
73
|
-
const { markers: diagnostics } = useEditorMarkers(computed(() => editorApi.value?.editor));
|
|
74
|
-
const syncEditorBottomPadding = () => {
|
|
75
|
-
editorApi.value?.editor.updateOptions({ padding: {
|
|
76
|
-
top: 0,
|
|
77
|
-
bottom: editorBottomPadding.value
|
|
78
|
-
} });
|
|
79
|
-
};
|
|
80
|
-
const diagnosticCounts = computed(() => getDiagnosticCounts(diagnostics.value));
|
|
81
|
-
const visibleDiagnostics = computed(() => getVisibleDiagnostics(diagnostics.value, MAX_VISIBLE_DIAGNOSTICS));
|
|
82
|
-
const focusDiagnostic = (marker) => {
|
|
83
|
-
const editor = editorApi.value?.editor;
|
|
84
|
-
if (!editor) return;
|
|
85
|
-
editor.setSelection({
|
|
86
|
-
startLineNumber: marker.startLineNumber,
|
|
87
|
-
startColumn: marker.startColumn,
|
|
88
|
-
endLineNumber: marker.endLineNumber,
|
|
89
|
-
endColumn: marker.endColumn
|
|
90
|
-
});
|
|
91
|
-
editor.revealPositionInCenter({
|
|
92
|
-
lineNumber: marker.startLineNumber,
|
|
93
|
-
column: marker.startColumn
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
const getEditorValue = () => currentModel.value.model.getValue();
|
|
97
|
-
/** Value from the editor for a specific language (use when switching to avoid reading the wrong model). */
|
|
98
|
-
const getEditorValueForLanguage = (language) => (language === "json" ? jsonModel : yamlModel).model.getValue();
|
|
99
|
-
const getDocumentValue = async (language) => {
|
|
100
|
-
return stringifyDocument(await __props.workspaceStore.getEditableDocument(__props.documentSlug), language ?? selectedLanguage.value);
|
|
101
|
-
};
|
|
102
|
-
const debouncedPersist = debounce({ delay: 1500 });
|
|
103
|
-
const applyProgrammaticEditorValue = (value) => {
|
|
104
|
-
debouncedPersist.cleanup();
|
|
105
|
-
editorApi.value?.setValue(value, true);
|
|
106
|
-
};
|
|
107
|
-
const loadDocumentIntoEditor = async () => {
|
|
108
|
-
applyProgrammaticEditorValue(await getDocumentValue());
|
|
109
|
-
isDirty.value = false;
|
|
110
|
-
await focusOperation();
|
|
111
|
-
};
|
|
112
|
-
const formatDocument = async () => {
|
|
113
|
-
await editorApi.value?.formatDocument();
|
|
114
|
-
};
|
|
115
|
-
const focusOperation = async () => {
|
|
116
|
-
const operationContext = getOperationContext(__props.path, __props.method);
|
|
117
|
-
if (!operationContext) return;
|
|
118
|
-
await editorApi.value?.focusPath([
|
|
119
|
-
"paths",
|
|
120
|
-
operationContext.path,
|
|
121
|
-
operationContext.method
|
|
122
|
-
]);
|
|
123
|
-
};
|
|
124
|
-
const persistEditorToWorkspace = async (value) => {
|
|
125
|
-
const parsed = parseEditorObject(value, editorLanguage.value);
|
|
126
|
-
if (!parsed) {
|
|
127
|
-
const firstError = diagnostics.value.find((m) => m.severity === monaco.MarkerSeverity.Error);
|
|
128
|
-
if (firstError) focusDiagnostic(firstError);
|
|
129
|
-
await saveLoader.invalidate();
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
saveLoader.start();
|
|
133
|
-
await __props.workspaceStore.replaceDocument(__props.documentSlug, parsed);
|
|
134
|
-
isDirty.value = false;
|
|
135
|
-
await saveLoader.validate({ duration: 900 });
|
|
136
|
-
};
|
|
137
|
-
const saveNow = async () => {
|
|
138
|
-
const value = getEditorValue();
|
|
139
|
-
if (!value) return;
|
|
140
|
-
await persistEditorToWorkspace(value);
|
|
141
|
-
};
|
|
142
|
-
const handleEditorChange = (value) => {
|
|
143
|
-
isDirty.value = true;
|
|
144
|
-
if (!isAutoSaveEnabled.value) return;
|
|
145
|
-
debouncedPersist.execute(EDITOR_PERSIST_DEBOUNCE_KEY, () => persistEditorToWorkspace(value));
|
|
146
|
-
};
|
|
147
|
-
const focusOperationServers = async () => {
|
|
148
|
-
const operationContext = getOperationContext(__props.path, __props.method);
|
|
149
|
-
if (!operationContext) return;
|
|
150
|
-
const value = getEditorValue();
|
|
151
|
-
if (!value) return;
|
|
152
|
-
const parsed = parseEditorObject(value, editorLanguage.value);
|
|
153
|
-
if (!parsed || !isObject(parsed.paths)) return;
|
|
154
|
-
const operationPathItem = parsed.paths[operationContext.path];
|
|
155
|
-
if (!isObject(operationPathItem)) return;
|
|
156
|
-
const operation = operationPathItem[operationContext.method];
|
|
157
|
-
if (!isObject(operation)) return;
|
|
158
|
-
operation.servers ??= [];
|
|
159
|
-
editorApi.value?.setValue(stringifyDocument(parsed, editorLanguage.value));
|
|
160
|
-
await editorApi.value?.focusPath([
|
|
161
|
-
"paths",
|
|
162
|
-
operationContext.path,
|
|
163
|
-
operationContext.method,
|
|
164
|
-
"servers"
|
|
165
|
-
]);
|
|
166
|
-
};
|
|
167
|
-
useJsonPointerLinkSupport(editorApi, currentModel);
|
|
168
|
-
onMounted(() => {
|
|
169
|
-
editorApi.value = useEditor({
|
|
170
|
-
element: monacoEditorRef.value ?? document.createElement("div"),
|
|
171
|
-
onChange: handleEditorChange,
|
|
172
|
-
model: currentModel,
|
|
173
|
-
actions: [
|
|
174
|
-
{
|
|
175
|
-
id: "scalar.editor.focusOperation",
|
|
176
|
-
label: "Focus Operation",
|
|
177
|
-
keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyO],
|
|
178
|
-
run: async () => {
|
|
179
|
-
await focusOperation();
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
id: "scalar.editor.focusOperationServers",
|
|
184
|
-
label: "Focus Operation Servers",
|
|
185
|
-
keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyS],
|
|
186
|
-
run: async () => {
|
|
187
|
-
await focusOperationServers();
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
id: "scalar.editor.formatDocument",
|
|
192
|
-
label: "Format Document",
|
|
193
|
-
keybindings: [monaco.KeyMod.Alt | monaco.KeyMod.Shift | monaco.KeyCode.KeyF],
|
|
194
|
-
run: async () => {
|
|
195
|
-
await formatDocument();
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
]
|
|
199
|
-
});
|
|
200
|
-
syncEditorBottomPadding();
|
|
201
|
-
loadDocumentIntoEditor();
|
|
202
|
-
});
|
|
203
|
-
onBeforeUnmount(() => {
|
|
204
|
-
debouncedPersist.cleanup();
|
|
205
|
-
if (isDirty.value && isAutoSaveEnabled.value) saveNow();
|
|
206
|
-
editorApi.value?.dispose?.();
|
|
207
|
-
jsonModel.model.dispose();
|
|
208
|
-
yamlModel.model.dispose();
|
|
209
|
-
});
|
|
210
|
-
watch(() => __props.documentSlug, loadDocumentIntoEditor);
|
|
211
|
-
watch(() => [__props.path, __props.method], async () => {
|
|
212
|
-
await focusOperation();
|
|
213
|
-
});
|
|
214
|
-
watch(isDiagnosticsPaneExpanded, () => {
|
|
215
|
-
syncEditorBottomPadding();
|
|
216
|
-
});
|
|
217
|
-
watch(editorLanguage, async (nextLanguage, previousLanguage) => {
|
|
218
|
-
const wasDirty = isDirty.value;
|
|
219
|
-
const value = getEditorValueForLanguage(previousLanguage ?? "json");
|
|
220
|
-
if (!value) {
|
|
221
|
-
selectedLanguage.value = nextLanguage;
|
|
222
|
-
await nextTick();
|
|
223
|
-
await focusOperation();
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
const parsed = parseEditorObject(value, previousLanguage ?? "json");
|
|
227
|
-
selectedLanguage.value = nextLanguage;
|
|
228
|
-
await nextTick();
|
|
229
|
-
if (parsed) {
|
|
230
|
-
applyProgrammaticEditorValue(stringifyDocument(parsed, nextLanguage));
|
|
231
|
-
isDirty.value = wasDirty;
|
|
232
|
-
}
|
|
233
|
-
await focusOperation();
|
|
234
|
-
});
|
|
235
|
-
watch(isAutoSaveEnabled, (isEnabled) => {
|
|
236
|
-
if (!isEnabled) {
|
|
237
|
-
debouncedPersist.cleanup();
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
if (isDirty.value) {
|
|
241
|
-
const value = getEditorValue();
|
|
242
|
-
if (!value) return;
|
|
243
|
-
debouncedPersist.execute(EDITOR_PERSIST_DEBOUNCE_KEY, () => persistEditorToWorkspace(value));
|
|
244
|
-
}
|
|
245
|
-
}, { flush: "post" });
|
|
246
|
-
return (_ctx, _cache) => {
|
|
247
|
-
return __props.collectionType === "operation" && unref(getOperationContext)(__props.path, __props.method) !== null ? (openBlock(), createElementBlock("div", {
|
|
248
|
-
key: 0,
|
|
249
|
-
class: normalizeClass(["flex w-full min-w-0 flex-1 flex-col gap-2", unref(editorRootClass)])
|
|
250
|
-
}, [createElementVNode("div", _hoisted_1, [
|
|
251
|
-
createElementVNode("div", _hoisted_2, [
|
|
252
|
-
_cache[6] || (_cache[6] = createElementVNode("span", { class: "text-c-2 text-xs font-medium whitespace-nowrap" }, " Shortcuts ", -1)),
|
|
253
|
-
createVNode(unref(ScalarButton), {
|
|
254
|
-
class: "whitespace-nowrap",
|
|
255
|
-
size: "xs",
|
|
256
|
-
variant: "ghost",
|
|
257
|
-
onClick: focusOperation
|
|
258
|
-
}, {
|
|
259
|
-
default: withCtx(() => [_cache[4] || (_cache[4] = createElementVNode("span", null, "Operation", -1)), createElementVNode("span", _hoisted_3, [createVNode(unref(ScalarHotkey), {
|
|
260
|
-
hotkey: "O",
|
|
261
|
-
modifier: ["Alt"]
|
|
262
|
-
})])]),
|
|
263
|
-
_: 1
|
|
264
|
-
}),
|
|
265
|
-
createVNode(unref(ScalarButton), {
|
|
266
|
-
class: "whitespace-nowrap",
|
|
267
|
-
size: "xs",
|
|
268
|
-
variant: "ghost",
|
|
269
|
-
onClick: focusOperationServers
|
|
270
|
-
}, {
|
|
271
|
-
default: withCtx(() => [_cache[5] || (_cache[5] = createElementVNode("span", null, "Servers", -1)), createElementVNode("span", _hoisted_4, [createVNode(unref(ScalarHotkey), {
|
|
272
|
-
hotkey: "S",
|
|
273
|
-
modifier: ["Alt"]
|
|
274
|
-
})])]),
|
|
275
|
-
_: 1
|
|
276
|
-
})
|
|
277
|
-
]),
|
|
278
|
-
createElementVNode("div", _hoisted_5, [createVNode(unref(ScalarButton), {
|
|
279
|
-
"aria-selected": !unref(isYamlMode),
|
|
280
|
-
class: normalizeClass(unref(getLanguageToggleClass)(!unref(isYamlMode))),
|
|
281
|
-
role: "tab",
|
|
282
|
-
size: "xs",
|
|
283
|
-
type: "button",
|
|
284
|
-
variant: "ghost",
|
|
285
|
-
onClick: _cache[0] || (_cache[0] = ($event) => editorLanguage.value = "json")
|
|
286
|
-
}, {
|
|
287
|
-
default: withCtx(() => [..._cache[7] || (_cache[7] = [createTextVNode(" JSON ", -1)])]),
|
|
288
|
-
_: 1
|
|
289
|
-
}, 8, ["aria-selected", "class"]), createVNode(unref(ScalarButton), {
|
|
290
|
-
"aria-selected": unref(isYamlMode),
|
|
291
|
-
class: normalizeClass(unref(getLanguageToggleClass)(unref(isYamlMode))),
|
|
292
|
-
role: "tab",
|
|
293
|
-
size: "xs",
|
|
294
|
-
type: "button",
|
|
295
|
-
variant: "ghost",
|
|
296
|
-
onClick: _cache[1] || (_cache[1] = ($event) => editorLanguage.value = "yaml")
|
|
297
|
-
}, {
|
|
298
|
-
default: withCtx(() => [..._cache[8] || (_cache[8] = [createTextVNode(" YAML ", -1)])]),
|
|
299
|
-
_: 1
|
|
300
|
-
}, 8, ["aria-selected", "class"])]),
|
|
301
|
-
createElementVNode("div", _hoisted_6, [createVNode(unref(ScalarButton), {
|
|
302
|
-
size: "xs",
|
|
303
|
-
variant: "ghost",
|
|
304
|
-
onClick: formatDocument
|
|
305
|
-
}, {
|
|
306
|
-
default: withCtx(() => [createElementVNode("span", null, "Format " + toDisplayString(unref(isYamlMode) ? "YAML" : "JSON"), 1), createElementVNode("span", _hoisted_7, [createVNode(unref(ScalarHotkey), {
|
|
307
|
-
hotkey: "F",
|
|
308
|
-
modifier: ["Alt", "Shift"]
|
|
309
|
-
})])]),
|
|
310
|
-
_: 1
|
|
311
|
-
}), createVNode(unref(ScalarButton), {
|
|
312
|
-
"aria-label": unref(isEditorMaximized) ? "Restore editor size" : "Maximize editor",
|
|
313
|
-
size: "xs",
|
|
314
|
-
variant: "ghost",
|
|
315
|
-
onClick: unref(toggleEditorMaximized)
|
|
316
|
-
}, {
|
|
317
|
-
default: withCtx(() => [createElementVNode("span", null, toDisplayString(unref(isEditorMaximized) ? "Restore" : "Maximize"), 1), createElementVNode("span", _hoisted_8, [unref(isEditorMaximized) ? (openBlock(), createBlock(unref(ScalarIconArrowsIn), {
|
|
318
|
-
key: 0,
|
|
319
|
-
class: "size-3.5"
|
|
320
|
-
})) : (openBlock(), createBlock(unref(ScalarIconArrowsOut), {
|
|
321
|
-
key: 1,
|
|
322
|
-
class: "size-3.5"
|
|
323
|
-
}))])]),
|
|
324
|
-
_: 1
|
|
325
|
-
}, 8, ["aria-label", "onClick"])])
|
|
326
|
-
]), createElementVNode("div", _hoisted_9, [createElementVNode("div", { class: normalizeClass(["relative w-full min-w-0 flex-1", unref(isEditorMaximized) ? "h-full min-h-0" : "h-125"]) }, [
|
|
327
|
-
createElementVNode("div", _hoisted_10, [createVNode(EditorSavePanel_default, {
|
|
328
|
-
isAutoSaveEnabled: unref(isAutoSaveEnabled),
|
|
329
|
-
isDirty: unref(isDirty),
|
|
330
|
-
saveLoader: unref(saveLoader),
|
|
331
|
-
onSaveNow: saveNow,
|
|
332
|
-
"onUpdate:isAutoSaveEnabled": _cache[2] || (_cache[2] = ($event) => isAutoSaveEnabled.value = $event)
|
|
333
|
-
}, null, 8, [
|
|
334
|
-
"isAutoSaveEnabled",
|
|
335
|
-
"isDirty",
|
|
336
|
-
"saveLoader"
|
|
337
|
-
])]),
|
|
338
|
-
createVNode(EditorDiagnosticsPanel_default, {
|
|
339
|
-
diagnosticCounts: diagnosticCounts.value,
|
|
340
|
-
expanded: unref(isDiagnosticsPaneExpanded),
|
|
341
|
-
visibleDiagnostics: visibleDiagnostics.value,
|
|
342
|
-
onFocusDiagnostic: focusDiagnostic,
|
|
343
|
-
onToggle: _cache[3] || (_cache[3] = ($event) => isDiagnosticsPaneExpanded.value = !unref(isDiagnosticsPaneExpanded))
|
|
344
|
-
}, null, 8, [
|
|
345
|
-
"diagnosticCounts",
|
|
346
|
-
"expanded",
|
|
347
|
-
"visibleDiagnostics"
|
|
348
|
-
]),
|
|
349
|
-
createElementVNode("div", {
|
|
350
|
-
ref_key: "monacoEditorRef",
|
|
351
|
-
ref: monacoEditorRef,
|
|
352
|
-
class: "h-full w-full min-w-0 flex-1 [&_.monaco-editor]:rounded-lg [&_.overflow-guard]:rounded-lg"
|
|
353
|
-
}, null, 512)
|
|
354
|
-
], 2)])], 2)) : (openBlock(), createElementBlock("div", _hoisted_11, "No operation context found"));
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
//#endregion
|
|
359
|
-
export { Editor_vue_vue_type_script_setup_true_lang_default as default };
|
|
360
|
-
|
|
361
|
-
//# sourceMappingURL=Editor.vue.script.js.map
|