@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-merge-key.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/get-merge-key.ts"],"sourcesContent":["import { HTTP_METHODS } from '@scalar/helpers/http/http-methods'\nimport { extractPathFromUrl, normalizePath } from '@scalar/postman-to-openapi'\nimport type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport { extractRequestMethod } from '@/v2/features/command-palette/helpers/postman-request-tree'\n\n/**\n * Extracts all path + method merge keys from an OpenAPI document.\n * Returns a Set of merge keys in the format: `${method}\\0${path}`\n */\nexport const getOpenApiMergeKeys = (document: OpenApiDocument): Set<string> => {\n const keys = new Set<string>()\n\n if (!document.paths) {\n return keys\n }\n\n for (const [path, pathItem] of Object.entries(document.paths)) {\n if (!pathItem) {\n continue\n }\n\n for (const method of HTTP_METHODS) {\n if (method in pathItem && pathItem[method]) {\n const mergeKey = `${method}\\0${path}`\n keys.add(mergeKey)\n }\n }\n }\n\n return keys\n}\n\n/**\n * Resolves merge key and server usage for a Postman collection item that has a `request` field.\n */\nexport const getPostmanMergeKeys = (item: unknown) => {\n if (!item || typeof item !== 'object' || !('request' in item)) {\n return undefined\n }\n\n const request = item.request\n const method = extractRequestMethod(request).toLowerCase()\n\n const requestUrl =\n typeof request === 'string'\n ? request\n : typeof (request as { url?: unknown }).url === 'string'\n ? (request as { url: string }).url\n : ((request as { url?: { raw?: string } }).url?.raw ?? '')\n\n const path = extractPathFromUrl(requestUrl)\n const normalizedPath = normalizePath(path)\n\n return `${method}\\0${normalizedPath}`\n}\n"],"mappings":";;;;;;;;AAUA,IAAa,uBAAuB,aAA2C;CAC7E,MAAM,uBAAO,IAAI,KAAa;AAE9B,KAAI,CAAC,SAAS,MACZ,QAAO;AAGT,MAAK,MAAM,CAAC,MAAM,aAAa,OAAO,QAAQ,SAAS,MAAM,EAAE;AAC7D,MAAI,CAAC,SACH;AAGF,OAAK,MAAM,UAAU,aACnB,KAAI,UAAU,YAAY,SAAS,SAAS;GAC1C,MAAM,WAAW,GAAG,OAAO,IAAI;AAC/B,QAAK,IAAI,SAAS;;;AAKxB,QAAO;;;;;AAMT,IAAa,uBAAuB,SAAkB;AACpD,KAAI,CAAC,QAAQ,OAAO,SAAS,YAAY,EAAE,aAAa,MACtD;CAGF,MAAM,UAAU,KAAK;AAarB,QAAO,GAZQ,qBAAqB,QAAQ,CAAC,aAAa,CAYzC,IAFM,cADV,mBANX,OAAO,YAAY,WACf,UACA,OAAQ,QAA8B,QAAQ,WAC3C,QAA4B,MAC3B,QAAuC,KAAK,OAAO,GAElB,CACD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents parsed details from an OpenAPI or Swagger specification.
|
|
3
|
-
* Used to display information about imported API descriptions in the command palette.
|
|
4
|
-
*/
|
|
5
|
-
type OpenApiDocumentDetails = {
|
|
6
|
-
/** The API specification version (e.g., "OpenAPI 3.1.0" or "Swagger 2.0"). */
|
|
7
|
-
version: string;
|
|
8
|
-
/** The format of the specification document. */
|
|
9
|
-
type: 'json' | 'yaml';
|
|
10
|
-
/** The API title extracted from the info object, if available. */
|
|
11
|
-
title: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Extracts OpenAPI or Swagger specification details from a string.
|
|
15
|
-
* Attempts to parse as JSON first, then YAML if JSON parsing fails.
|
|
16
|
-
*
|
|
17
|
-
* Returns undefined if:
|
|
18
|
-
* - Input is null, empty, or a URL
|
|
19
|
-
* - Input is not a valid JSON or YAML document
|
|
20
|
-
* - Document does not contain OpenAPI or Swagger version information
|
|
21
|
-
*/
|
|
22
|
-
export declare const getOpenApiDocumentDetails: (input: string | null) => OpenApiDocumentDetails | undefined;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=get-openapi-document-details.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-openapi-document-details.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/get-openapi-document-details.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,KAAK,sBAAsB,GAAG;IAC5B,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,kEAAkE;IAClE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAA;AAmED;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,GAAI,OAAO,MAAM,GAAG,IAAI,KAAG,sBAAsB,GAAG,SAazF,CAAA"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { isUrl } from "../../../helpers/is-url.js";
|
|
2
|
-
import { json, yaml } from "@scalar/oas-utils/helpers";
|
|
3
|
-
//#region src/v2/features/command-palette/helpers/get-openapi-document-details.ts
|
|
4
|
-
/**
|
|
5
|
-
* Extracts the title from the info object of an API description.
|
|
6
|
-
* Returns undefined if the title is not a string or does not exist.
|
|
7
|
-
*/
|
|
8
|
-
var extractTitle = (info) => {
|
|
9
|
-
return typeof info?.title === "string" ? info.title : void 0;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Attempts to extract OpenAPI document details from a parsed document.
|
|
13
|
-
* Checks for both OpenAPI and Swagger specifications.
|
|
14
|
-
*/
|
|
15
|
-
var parseDocumentDetails = (document, type) => {
|
|
16
|
-
if (typeof document.openapi === "string") return {
|
|
17
|
-
version: `OpenAPI ${document.openapi}`,
|
|
18
|
-
type,
|
|
19
|
-
title: extractTitle(document.info)
|
|
20
|
-
};
|
|
21
|
-
if (typeof document.swagger === "string") return {
|
|
22
|
-
version: `Swagger ${document.swagger}`,
|
|
23
|
-
type,
|
|
24
|
-
title: extractTitle(document.info)
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Attempts to parse the input string with the given parser function.
|
|
29
|
-
* Returns undefined if parsing fails.
|
|
30
|
-
*/
|
|
31
|
-
var tryParse = (input, parser, type) => {
|
|
32
|
-
try {
|
|
33
|
-
return parseDocumentDetails(parser(input), type);
|
|
34
|
-
} catch {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Extracts OpenAPI or Swagger specification details from a string.
|
|
40
|
-
* Attempts to parse as JSON first, then YAML if JSON parsing fails.
|
|
41
|
-
*
|
|
42
|
-
* Returns undefined if:
|
|
43
|
-
* - Input is null, empty, or a URL
|
|
44
|
-
* - Input is not a valid JSON or YAML document
|
|
45
|
-
* - Document does not contain OpenAPI or Swagger version information
|
|
46
|
-
*/
|
|
47
|
-
var getOpenApiDocumentDetails = (input) => {
|
|
48
|
-
if (!input || isUrl(input)) return;
|
|
49
|
-
const jsonResult = tryParse(input, json.parse, "json");
|
|
50
|
-
if (jsonResult) return jsonResult;
|
|
51
|
-
return tryParse(input, yaml.parse, "yaml");
|
|
52
|
-
};
|
|
53
|
-
//#endregion
|
|
54
|
-
export { getOpenApiDocumentDetails };
|
|
55
|
-
|
|
56
|
-
//# sourceMappingURL=get-openapi-document-details.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-openapi-document-details.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/get-openapi-document-details.ts"],"sourcesContent":["import { json, yaml } from '@scalar/oas-utils/helpers'\n\nimport { isUrl } from '@/v2/helpers/is-url'\n\n/**\n * Represents parsed details from an OpenAPI or Swagger specification.\n * Used to display information about imported API descriptions in the command palette.\n */\ntype OpenApiDocumentDetails = {\n /** The API specification version (e.g., \"OpenAPI 3.1.0\" or \"Swagger 2.0\"). */\n version: string\n /** The format of the specification document. */\n type: 'json' | 'yaml'\n /** The API title extracted from the info object, if available. */\n title: string | undefined\n}\n\n/**\n * Represents the minimal structure of a parsed API description document.\n * Used for type safety when checking for OpenAPI or Swagger properties.\n */\ntype ParsedApiDocument = {\n openapi?: string\n swagger?: string\n info?: {\n title?: string\n }\n}\n\n/**\n * Extracts the title from the info object of an API description.\n * Returns undefined if the title is not a string or does not exist.\n */\nconst extractTitle = (info: ParsedApiDocument['info']): string | undefined => {\n return typeof info?.title === 'string' ? info.title : undefined\n}\n\n/**\n * Attempts to extract OpenAPI document details from a parsed document.\n * Checks for both OpenAPI and Swagger specifications.\n */\nconst parseDocumentDetails = (\n document: ParsedApiDocument,\n type: 'json' | 'yaml',\n): OpenApiDocumentDetails | undefined => {\n if (typeof document.openapi === 'string') {\n return {\n version: `OpenAPI ${document.openapi}`,\n type,\n title: extractTitle(document.info),\n }\n }\n\n if (typeof document.swagger === 'string') {\n return {\n version: `Swagger ${document.swagger}`,\n type,\n title: extractTitle(document.info),\n }\n }\n\n return undefined\n}\n\n/**\n * Attempts to parse the input string with the given parser function.\n * Returns undefined if parsing fails.\n */\nconst tryParse = (\n input: string,\n parser: (input: string) => unknown,\n type: 'json' | 'yaml',\n): OpenApiDocumentDetails | undefined => {\n try {\n const result = parser(input) as ParsedApiDocument\n return parseDocumentDetails(result, type)\n } catch {\n // Parsing failed, which is expected for invalid or non-matching formats\n return undefined\n }\n}\n\n/**\n * Extracts OpenAPI or Swagger specification details from a string.\n * Attempts to parse as JSON first, then YAML if JSON parsing fails.\n *\n * Returns undefined if:\n * - Input is null, empty, or a URL\n * - Input is not a valid JSON or YAML document\n * - Document does not contain OpenAPI or Swagger version information\n */\nexport const getOpenApiDocumentDetails = (input: string | null): OpenApiDocumentDetails | undefined => {\n if (!input || isUrl(input)) {\n return undefined\n }\n\n // Try parsing as JSON first\n const jsonResult = tryParse(input, json.parse, 'json')\n if (jsonResult) {\n return jsonResult\n }\n\n // Fall back to YAML parsing\n return tryParse(input, yaml.parse, 'yaml')\n}\n"],"mappings":";;;;;;;AAiCA,IAAM,gBAAgB,SAAwD;AAC5E,QAAO,OAAO,MAAM,UAAU,WAAW,KAAK,QAAQ,KAAA;;;;;;AAOxD,IAAM,wBACJ,UACA,SACuC;AACvC,KAAI,OAAO,SAAS,YAAY,SAC9B,QAAO;EACL,SAAS,WAAW,SAAS;EAC7B;EACA,OAAO,aAAa,SAAS,KAAK;EACnC;AAGH,KAAI,OAAO,SAAS,YAAY,SAC9B,QAAO;EACL,SAAS,WAAW,SAAS;EAC7B;EACA,OAAO,aAAa,SAAS,KAAK;EACnC;;;;;;AAUL,IAAM,YACJ,OACA,QACA,SACuC;AACvC,KAAI;AAEF,SAAO,qBADQ,OAAO,MAAM,EACQ,KAAK;SACnC;AAEN;;;;;;;;;;;;AAaJ,IAAa,6BAA6B,UAA6D;AACrG,KAAI,CAAC,SAAS,MAAM,MAAM,CACxB;CAIF,MAAM,aAAa,SAAS,OAAO,KAAK,OAAO,OAAO;AACtD,KAAI,WACF,QAAO;AAIT,QAAO,SAAS,OAAO,KAAK,OAAO,OAAO"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type ConvertOptions } from '@scalar/postman-to-openapi';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a Postman collection JSON string to an OpenAPI specification document.
|
|
4
|
-
*
|
|
5
|
-
* This function transforms a Postman collection into a valid OpenAPI 3.1 document
|
|
6
|
-
* that can be used throughout the application. The convert function handles parsing
|
|
7
|
-
* and transformation internally.
|
|
8
|
-
*
|
|
9
|
-
* Returns null if the conversion fails due to invalid Postman collection structure
|
|
10
|
-
*/
|
|
11
|
-
export declare const getOpenApiFromPostman: (postmanJson: string, convertOptions?: ConvertOptions) => (Omit<Omit<import("@scalar/openapi-types").OpenAPIV3.Document<{}>, "components" | "paths">, keyof {
|
|
12
|
-
[customExtension: `x-${string}`]: any;
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
15
|
-
openapi?: "3.1.0" | "3.1.1" | "3.1.2";
|
|
16
|
-
swagger?: never;
|
|
17
|
-
info?: import("@scalar/openapi-types").OpenAPIV3_1.InfoObject;
|
|
18
|
-
jsonSchemaDialect?: string;
|
|
19
|
-
servers?: import("@scalar/openapi-types").OpenAPIV3_1.ServerObject[];
|
|
20
|
-
} & Pick<import("@scalar/openapi-types").OpenAPIV3_1.PathsWebhooksComponents<{}>, "paths"> & Omit<Partial<import("@scalar/openapi-types").OpenAPIV3_1.PathsWebhooksComponents<{}>>, "paths"> & {
|
|
21
|
-
[customExtension: `x-${string}`]: any;
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}) | null;
|
|
24
|
-
//# sourceMappingURL=get-openapi-from-postman.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-openapi-from-postman.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/get-openapi-from-postman.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAW,MAAM,4BAA4B,CAAA;AAEzE;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAAI,aAAa,MAAM,EAAE,iBAAiB,cAAc;;;;;;;;;;;;SAMzF,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { convert } from "@scalar/postman-to-openapi";
|
|
2
|
-
//#region src/v2/features/command-palette/helpers/get-openapi-from-postman.ts
|
|
3
|
-
/**
|
|
4
|
-
* Converts a Postman collection JSON string to an OpenAPI specification document.
|
|
5
|
-
*
|
|
6
|
-
* This function transforms a Postman collection into a valid OpenAPI 3.1 document
|
|
7
|
-
* that can be used throughout the application. The convert function handles parsing
|
|
8
|
-
* and transformation internally.
|
|
9
|
-
*
|
|
10
|
-
* Returns null if the conversion fails due to invalid Postman collection structure
|
|
11
|
-
*/
|
|
12
|
-
var getOpenApiFromPostman = (postmanJson, convertOptions) => {
|
|
13
|
-
try {
|
|
14
|
-
return convert(postmanJson, convertOptions);
|
|
15
|
-
} catch {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { getOpenApiFromPostman };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=get-openapi-from-postman.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-openapi-from-postman.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/get-openapi-from-postman.ts"],"sourcesContent":["import { type ConvertOptions, convert } from '@scalar/postman-to-openapi'\n\n/**\n * Converts a Postman collection JSON string to an OpenAPI specification document.\n *\n * This function transforms a Postman collection into a valid OpenAPI 3.1 document\n * that can be used throughout the application. The convert function handles parsing\n * and transformation internally.\n *\n * Returns null if the conversion fails due to invalid Postman collection structure\n */\nexport const getOpenApiFromPostman = (postmanJson: string, convertOptions?: ConvertOptions) => {\n try {\n return convert(postmanJson, convertOptions)\n } catch {\n return null\n }\n}\n"],"mappings":";;;;;;;;;;;AAWA,IAAa,yBAAyB,aAAqB,mBAAoC;AAC7F,KAAI;AACF,SAAO,QAAQ,aAAa,eAAe;SACrC;AACN,SAAO"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the result of parsing a cURL command into an OpenAPI operation.
|
|
5
|
-
*/
|
|
6
|
-
type CurlOperationResult = {
|
|
7
|
-
/** The URL path extracted from the cURL command. */
|
|
8
|
-
path: string;
|
|
9
|
-
/** The HTTP method (GET, POST, etc.). */
|
|
10
|
-
method: HttpMethod;
|
|
11
|
-
/** The OpenAPI operation object with parameters, body, and servers. */
|
|
12
|
-
operation: OperationObject;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Converts a cURL command string into an OpenAPI operation object.
|
|
16
|
-
*
|
|
17
|
-
* This function parses a cURL command and extracts all relevant information
|
|
18
|
-
* (path, method, headers, query parameters, request body) to create a complete
|
|
19
|
-
* OpenAPI operation that can be used to populate a request in the API client.
|
|
20
|
-
*
|
|
21
|
-
* The exampleKey is used to namespace the example values in the operation object,
|
|
22
|
-
* allowing multiple examples to coexist if needed.
|
|
23
|
-
*/
|
|
24
|
-
export declare const getOperationFromCurl: (curl: string, exampleKey?: string) => CurlOperationResult;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=get-operation-from-curl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-operation-from-curl.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/get-operation-from-curl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,8DAA8D,CAAA;AAIrE;;GAEG;AACH,KAAK,mBAAmB,GAAG;IACzB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAA;IACZ,yCAAyC;IACzC,MAAM,EAAE,UAAU,CAAA;IAClB,uEAAuE;IACvE,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAA;AAgJD;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,EAAE,mBAAmB,KAAG,mBAoCxE,CAAA"}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { parseCurlCommand } from "./parse-curl.js";
|
|
2
|
-
//#region src/v2/features/command-palette/helpers/get-operation-from-curl.ts
|
|
3
|
-
/**
|
|
4
|
-
* Parses request body data from a string.
|
|
5
|
-
* Attempts JSON parsing first, then falls back to form-encoded parsing.
|
|
6
|
-
*
|
|
7
|
-
* Form-encoded data is expected in the format: key1=value1&key2=value2
|
|
8
|
-
*/
|
|
9
|
-
var parseRequestBodyData = (data) => {
|
|
10
|
-
try {
|
|
11
|
-
return JSON.parse(data);
|
|
12
|
-
} catch {
|
|
13
|
-
const result = {};
|
|
14
|
-
data.split("&").forEach((pair) => {
|
|
15
|
-
const [key, value] = pair.split("=");
|
|
16
|
-
if (key && value) result[decodeURIComponent(key)] = decodeURIComponent(value);
|
|
17
|
-
});
|
|
18
|
-
return result;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Determines the content type based on the request body structure.
|
|
23
|
-
* Returns form-encoded if the body looks like form data, JSON if the body looks like JSON,
|
|
24
|
-
* otherwise uses the header value.
|
|
25
|
-
*/
|
|
26
|
-
var detectContentType = (body, headers) => {
|
|
27
|
-
if (headers["Content-Type"]) return headers["Content-Type"];
|
|
28
|
-
const trimmedBody = body.trim();
|
|
29
|
-
if (trimmedBody.startsWith("{") || trimmedBody.startsWith("[")) return "application/json";
|
|
30
|
-
return body.includes("=") && !trimmedBody.startsWith("{") ? "application/x-www-form-urlencoded" : "";
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Infers a JSON Schema type from a JavaScript value.
|
|
34
|
-
* Maps JavaScript typeof results to JSON Schema primitive types.
|
|
35
|
-
*/
|
|
36
|
-
var inferSchemaType = (value) => {
|
|
37
|
-
const jsType = typeof value;
|
|
38
|
-
if (jsType === "string") return "string";
|
|
39
|
-
if (jsType === "number") return "number";
|
|
40
|
-
if (jsType === "boolean") return "boolean";
|
|
41
|
-
if (value === null) return "null";
|
|
42
|
-
if (Array.isArray(value)) return "array";
|
|
43
|
-
if (jsType === "object") return "object";
|
|
44
|
-
return "string";
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Creates query and header parameters from parsed cURL data.
|
|
48
|
-
* Each parameter includes a schema with inferred type and an example value.
|
|
49
|
-
*/
|
|
50
|
-
var createParameters = (queryParameters, headers, exampleKey) => {
|
|
51
|
-
const queryParams = Array.isArray(queryParameters) ? queryParameters.map(({ key, value }) => ({
|
|
52
|
-
name: key,
|
|
53
|
-
in: "query",
|
|
54
|
-
schema: { type: inferSchemaType(value) },
|
|
55
|
-
examples: { [exampleKey]: { value } }
|
|
56
|
-
})) : [];
|
|
57
|
-
const headerParams = Object.entries(headers || {}).map(([key, value]) => ({
|
|
58
|
-
name: key,
|
|
59
|
-
in: "header",
|
|
60
|
-
schema: { type: inferSchemaType(value) },
|
|
61
|
-
examples: { [exampleKey]: { value } }
|
|
62
|
-
}));
|
|
63
|
-
return [...queryParams, ...headerParams];
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Creates a request body schema from parsed data.
|
|
67
|
-
* Generates an object schema with properties inferred from the data structure.
|
|
68
|
-
*/
|
|
69
|
-
var createRequestBodySchema = (data) => {
|
|
70
|
-
return {
|
|
71
|
-
type: "object",
|
|
72
|
-
properties: Object.fromEntries(Object.entries(data).map(([key, value]) => [key, { type: inferSchemaType(value) }]))
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
/** Don't want to throw for invalid URLs */
|
|
76
|
-
var safePathname = (url) => {
|
|
77
|
-
try {
|
|
78
|
-
return new URL(url).pathname;
|
|
79
|
-
} catch {
|
|
80
|
-
return "/";
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Converts a cURL command string into an OpenAPI operation object.
|
|
85
|
-
*
|
|
86
|
-
* This function parses a cURL command and extracts all relevant information
|
|
87
|
-
* (path, method, headers, query parameters, request body) to create a complete
|
|
88
|
-
* OpenAPI operation that can be used to populate a request in the API client.
|
|
89
|
-
*
|
|
90
|
-
* The exampleKey is used to namespace the example values in the operation object,
|
|
91
|
-
* allowing multiple examples to coexist if needed.
|
|
92
|
-
*/
|
|
93
|
-
var getOperationFromCurl = (curl, exampleKey = "curl") => {
|
|
94
|
-
const { method = "get", url, body = "", headers = {}, servers = [], queryParameters = [] } = parseCurlCommand(curl);
|
|
95
|
-
const path = safePathname(url);
|
|
96
|
-
const contentType = detectContentType(body, headers);
|
|
97
|
-
const requestBodyData = body ? parseRequestBodyData(body) : {};
|
|
98
|
-
const parameters = createParameters(queryParameters, headers, exampleKey);
|
|
99
|
-
const serverObjects = servers.map((server) => ({ url: server }));
|
|
100
|
-
return {
|
|
101
|
-
path,
|
|
102
|
-
method,
|
|
103
|
-
operation: {
|
|
104
|
-
parameters,
|
|
105
|
-
requestBody: {
|
|
106
|
-
content: { [contentType]: {
|
|
107
|
-
schema: createRequestBodySchema(requestBodyData),
|
|
108
|
-
examples: { [exampleKey]: { value: requestBodyData } }
|
|
109
|
-
} },
|
|
110
|
-
"x-scalar-selected-content-type": { [exampleKey]: contentType }
|
|
111
|
-
},
|
|
112
|
-
servers: serverObjects.length ? serverObjects : void 0
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
//#endregion
|
|
117
|
-
export { getOperationFromCurl };
|
|
118
|
-
|
|
119
|
-
//# sourceMappingURL=get-operation-from-curl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-operation-from-curl.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/get-operation-from-curl.ts"],"sourcesContent":["import type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type {\n OperationObject,\n ParameterObject,\n SchemaObject,\n ServerObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport { parseCurlCommand } from './parse-curl'\n\n/**\n * Represents the result of parsing a cURL command into an OpenAPI operation.\n */\ntype CurlOperationResult = {\n /** The URL path extracted from the cURL command. */\n path: string\n /** The HTTP method (GET, POST, etc.). */\n method: HttpMethod\n /** The OpenAPI operation object with parameters, body, and servers. */\n operation: OperationObject\n}\n\n/**\n * Represents data that can be either JSON or form-encoded key-value pairs.\n */\ntype ParsedData = Record<string, unknown>\n\n/**\n * Parses request body data from a string.\n * Attempts JSON parsing first, then falls back to form-encoded parsing.\n *\n * Form-encoded data is expected in the format: key1=value1&key2=value2\n */\nconst parseRequestBodyData = (data: string): ParsedData => {\n try {\n // Try parsing as JSON first\n return JSON.parse(data) as ParsedData\n } catch {\n // If JSON parsing fails, parse as form-encoded data (key=value&key2=value2)\n const result: Record<string, string> = {}\n\n data.split('&').forEach((pair) => {\n const [key, value] = pair.split('=')\n if (key && value) {\n result[decodeURIComponent(key)] = decodeURIComponent(value)\n }\n })\n\n return result\n }\n}\n\n/**\n * Determines the content type based on the request body structure.\n * Returns form-encoded if the body looks like form data, JSON if the body looks like JSON,\n * otherwise uses the header value.\n */\nconst detectContentType = (body: string, headers: Record<string, string>): string => {\n // If Content-Type header is explicitly provided, use it\n if (headers['Content-Type']) {\n return headers['Content-Type']\n }\n\n // Check if body looks like JSON (starts with { or [)\n const trimmedBody = body.trim()\n const isJson = trimmedBody.startsWith('{') || trimmedBody.startsWith('[')\n\n if (isJson) {\n return 'application/json'\n }\n\n // Check if body looks like form-encoded data (contains = but does not start with {)\n const isFormEncoded = body.includes('=') && !trimmedBody.startsWith('{')\n\n return isFormEncoded ? 'application/x-www-form-urlencoded' : ''\n}\n\n/**\n * Infers a JSON Schema type from a JavaScript value.\n * Maps JavaScript typeof results to JSON Schema primitive types.\n */\nconst inferSchemaType = (value: unknown): string => {\n const jsType = typeof value\n\n // Map JavaScript types to JSON Schema types\n if (jsType === 'string') {\n return 'string'\n }\n if (jsType === 'number') {\n return 'number'\n }\n if (jsType === 'boolean') {\n return 'boolean'\n }\n if (value === null) {\n return 'null'\n }\n if (Array.isArray(value)) {\n return 'array'\n }\n if (jsType === 'object') {\n return 'object'\n }\n\n // Default fallback for any other types\n return 'string'\n}\n\n/**\n * Creates query and header parameters from parsed cURL data.\n * Each parameter includes a schema with inferred type and an example value.\n */\nconst createParameters = (\n queryParameters: Array<{ key: string; value: string }>,\n headers: Record<string, string>,\n exampleKey: string,\n): ParameterObject[] => {\n const queryParams = Array.isArray(queryParameters)\n ? queryParameters.map(({ key, value }) => ({\n name: key,\n in: 'query' as const,\n schema: { type: inferSchemaType(value) },\n examples: {\n [exampleKey]: { value },\n },\n }))\n : []\n\n const headerParams = Object.entries(headers || {}).map(([key, value]) => ({\n name: key,\n in: 'header' as const,\n schema: { type: inferSchemaType(value) },\n examples: {\n [exampleKey]: { value },\n },\n }))\n\n return [...queryParams, ...headerParams]\n}\n\n/**\n * Creates a request body schema from parsed data.\n * Generates an object schema with properties inferred from the data structure.\n */\nconst createRequestBodySchema = (data: ParsedData): SchemaObject => {\n const properties = Object.fromEntries(\n Object.entries(data).map(([key, value]) => [key, { type: inferSchemaType(value) } as SchemaObject]),\n )\n\n return {\n type: 'object',\n properties,\n }\n}\n\n/** Don't want to throw for invalid URLs */\nconst safePathname = (url: string) => {\n try {\n return new URL(url).pathname\n } catch {\n return '/'\n }\n}\n\n/**\n * Converts a cURL command string into an OpenAPI operation object.\n *\n * This function parses a cURL command and extracts all relevant information\n * (path, method, headers, query parameters, request body) to create a complete\n * OpenAPI operation that can be used to populate a request in the API client.\n *\n * The exampleKey is used to namespace the example values in the operation object,\n * allowing multiple examples to coexist if needed.\n */\nexport const getOperationFromCurl = (curl: string, exampleKey = 'curl'): CurlOperationResult => {\n const parsedCurl = parseCurlCommand(curl)\n\n const { method = 'get', url, body = '', headers = {}, servers = [], queryParameters = [] } = parsedCurl\n\n const path = safePathname(url)\n const contentType = detectContentType(body, headers)\n const requestBodyData = body ? parseRequestBodyData(body) : {}\n\n const parameters = createParameters(queryParameters, headers, exampleKey)\n\n const serverObjects: ServerObject[] = servers.map((server) => ({\n url: server,\n }))\n\n return {\n path,\n method,\n operation: {\n parameters,\n requestBody: {\n content: {\n [contentType]: {\n schema: createRequestBodySchema(requestBodyData),\n examples: {\n [exampleKey]: { value: requestBodyData },\n },\n },\n },\n 'x-scalar-selected-content-type': {\n [exampleKey]: contentType,\n },\n },\n servers: serverObjects.length ? serverObjects : undefined,\n },\n }\n}\n"],"mappings":";;;;;;;;AAiCA,IAAM,wBAAwB,SAA6B;AACzD,KAAI;AAEF,SAAO,KAAK,MAAM,KAAK;SACjB;EAEN,MAAM,SAAiC,EAAE;AAEzC,OAAK,MAAM,IAAI,CAAC,SAAS,SAAS;GAChC,MAAM,CAAC,KAAK,SAAS,KAAK,MAAM,IAAI;AACpC,OAAI,OAAO,MACT,QAAO,mBAAmB,IAAI,IAAI,mBAAmB,MAAM;IAE7D;AAEF,SAAO;;;;;;;;AASX,IAAM,qBAAqB,MAAc,YAA4C;AAEnF,KAAI,QAAQ,gBACV,QAAO,QAAQ;CAIjB,MAAM,cAAc,KAAK,MAAM;AAG/B,KAFe,YAAY,WAAW,IAAI,IAAI,YAAY,WAAW,IAAI,CAGvE,QAAO;AAMT,QAFsB,KAAK,SAAS,IAAI,IAAI,CAAC,YAAY,WAAW,IAAI,GAEjD,sCAAsC;;;;;;AAO/D,IAAM,mBAAmB,UAA2B;CAClD,MAAM,SAAS,OAAO;AAGtB,KAAI,WAAW,SACb,QAAO;AAET,KAAI,WAAW,SACb,QAAO;AAET,KAAI,WAAW,UACb,QAAO;AAET,KAAI,UAAU,KACZ,QAAO;AAET,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO;AAET,KAAI,WAAW,SACb,QAAO;AAIT,QAAO;;;;;;AAOT,IAAM,oBACJ,iBACA,SACA,eACsB;CACtB,MAAM,cAAc,MAAM,QAAQ,gBAAgB,GAC9C,gBAAgB,KAAK,EAAE,KAAK,aAAa;EACvC,MAAM;EACN,IAAI;EACJ,QAAQ,EAAE,MAAM,gBAAgB,MAAM,EAAE;EACxC,UAAU,GACP,aAAa,EAAE,OAAO,EACxB;EACF,EAAE,GACH,EAAE;CAEN,MAAM,eAAe,OAAO,QAAQ,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY;EACxE,MAAM;EACN,IAAI;EACJ,QAAQ,EAAE,MAAM,gBAAgB,MAAM,EAAE;EACxC,UAAU,GACP,aAAa,EAAE,OAAO,EACxB;EACF,EAAE;AAEH,QAAO,CAAC,GAAG,aAAa,GAAG,aAAa;;;;;;AAO1C,IAAM,2BAA2B,SAAmC;AAKlE,QAAO;EACL,MAAM;EACN,YANiB,OAAO,YACxB,OAAO,QAAQ,KAAK,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,EAAE,MAAM,gBAAgB,MAAM,EAAE,CAAiB,CAAC,CACpG;EAKA;;;AAIH,IAAM,gBAAgB,QAAgB;AACpC,KAAI;AACF,SAAO,IAAI,IAAI,IAAI,CAAC;SACd;AACN,SAAO;;;;;;;;;;;;;AAcX,IAAa,wBAAwB,MAAc,aAAa,WAAgC;CAG9F,MAAM,EAAE,SAAS,OAAO,KAAK,OAAO,IAAI,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,kBAAkB,EAAE,KAFrE,iBAAiB,KAAK;CAIzC,MAAM,OAAO,aAAa,IAAI;CAC9B,MAAM,cAAc,kBAAkB,MAAM,QAAQ;CACpD,MAAM,kBAAkB,OAAO,qBAAqB,KAAK,GAAG,EAAE;CAE9D,MAAM,aAAa,iBAAiB,iBAAiB,SAAS,WAAW;CAEzE,MAAM,gBAAgC,QAAQ,KAAK,YAAY,EAC7D,KAAK,QACN,EAAE;AAEH,QAAO;EACL;EACA;EACA,WAAW;GACT;GACA,aAAa;IACX,SAAS,GACN,cAAc;KACb,QAAQ,wBAAwB,gBAAgB;KAChD,UAAU,GACP,aAAa,EAAE,OAAO,iBAAiB,EACzC;KACF,EACF;IACD,kCAAkC,GAC/B,aAAa,aACf;IACF;GACD,SAAS,cAAc,SAAS,gBAAgB,KAAA;GACjD;EACF"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ConvertOptions } from '@scalar/postman-to-openapi';
|
|
2
|
-
type GetPostmanConvertOptionsInput = {
|
|
3
|
-
document?: ConvertOptions['document'] | null;
|
|
4
|
-
mergeOperation: boolean;
|
|
5
|
-
importPathKeys: readonly string[];
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Builds Postman conversion options from command palette state.
|
|
9
|
-
*
|
|
10
|
-
* An empty selection means "import all requests", so we omit requestIndexPaths.
|
|
11
|
-
*/
|
|
12
|
-
export declare const getPostmanConvertOptions: ({ document, mergeOperation, importPathKeys, }: GetPostmanConvertOptionsInput) => ConvertOptions;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=get-postman-convert-options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-postman-convert-options.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/get-postman-convert-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAIhE,KAAK,6BAA6B,GAAG;IACnC,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAA;IAC5C,cAAc,EAAE,OAAO,CAAA;IACvB,cAAc,EAAE,SAAS,MAAM,EAAE,CAAA;CAClC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,+CAItC,6BAA6B,KAAG,cAQlC,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { pathKeysToRequestIndexPaths } from "./postman-request-tree.js";
|
|
2
|
-
//#region src/v2/features/command-palette/helpers/get-postman-convert-options.ts
|
|
3
|
-
/**
|
|
4
|
-
* Builds Postman conversion options from command palette state.
|
|
5
|
-
*
|
|
6
|
-
* An empty selection means "import all requests", so we omit requestIndexPaths.
|
|
7
|
-
*/
|
|
8
|
-
var getPostmanConvertOptions = ({ document, mergeOperation, importPathKeys }) => {
|
|
9
|
-
const requestIndexPaths = importPathKeys.length > 0 ? pathKeysToRequestIndexPaths(importPathKeys) : void 0;
|
|
10
|
-
return {
|
|
11
|
-
document: document ?? void 0,
|
|
12
|
-
mergeOperation,
|
|
13
|
-
requestIndexPaths
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
//#endregion
|
|
17
|
-
export { getPostmanConvertOptions };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=get-postman-convert-options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-postman-convert-options.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/get-postman-convert-options.ts"],"sourcesContent":["import type { ConvertOptions } from '@scalar/postman-to-openapi'\n\nimport { pathKeysToRequestIndexPaths } from '@/v2/features/command-palette/helpers/postman-request-tree'\n\ntype GetPostmanConvertOptionsInput = {\n document?: ConvertOptions['document'] | null\n mergeOperation: boolean\n importPathKeys: readonly string[]\n}\n\n/**\n * Builds Postman conversion options from command palette state.\n *\n * An empty selection means \"import all requests\", so we omit requestIndexPaths.\n */\nexport const getPostmanConvertOptions = ({\n document,\n mergeOperation,\n importPathKeys,\n}: GetPostmanConvertOptionsInput): ConvertOptions => {\n const requestIndexPaths = importPathKeys.length > 0 ? pathKeysToRequestIndexPaths(importPathKeys) : undefined\n\n return {\n document: document ?? undefined,\n mergeOperation,\n requestIndexPaths,\n }\n}\n"],"mappings":";;;;;;;AAeA,IAAa,4BAA4B,EACvC,UACA,gBACA,qBACmD;CACnD,MAAM,oBAAoB,eAAe,SAAS,IAAI,4BAA4B,eAAe,GAAG,KAAA;AAEpG,QAAO;EACL,UAAU,YAAY,KAAA;EACtB;EACA;EACD"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents the extracted details from a Postman collection.
|
|
3
|
-
* Used to display collection metadata in the command palette import UI.
|
|
4
|
-
*/
|
|
5
|
-
type PostmanDocumentDetails = {
|
|
6
|
-
/** The document format type. */
|
|
7
|
-
type: string;
|
|
8
|
-
/** The name of the Postman collection. */
|
|
9
|
-
title: string;
|
|
10
|
-
/** The version of the Postman collection. */
|
|
11
|
-
version: string;
|
|
12
|
-
/** Postman collection schema segment from `info.schema` (e.g. `v2.1.0`), when present. */
|
|
13
|
-
schemaLabel?: string;
|
|
14
|
-
/** The collection items. */
|
|
15
|
-
collection: unknown[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Extracts document details from a Postman collection JSON string.
|
|
19
|
-
*
|
|
20
|
-
* We parse and validate in a single pass to avoid the performance cost
|
|
21
|
-
* of parsing the JSON twice.
|
|
22
|
-
*
|
|
23
|
-
* @param content - The JSON string representing the Postman collection
|
|
24
|
-
* @returns The collection details if valid, null otherwise
|
|
25
|
-
*/
|
|
26
|
-
export declare const getPostmanDocumentDetails: (content: string) => PostmanDocumentDetails | null;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=get-postman-document-details.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-postman-document-details.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/get-postman-document-details.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,KAAK,sBAAsB,GAAG;IAC5B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAA;IACf,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4BAA4B;IAC5B,UAAU,EAAE,OAAO,EAAE,CAAA;CACtB,CAAA;AAUD;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,GAAI,SAAS,MAAM,KAAG,sBAAsB,GAAG,IAsBpF,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { isPostmanCollection } from "@scalar/postman-to-openapi";
|
|
2
|
-
//#region src/v2/features/command-palette/helpers/get-postman-document-details.ts
|
|
3
|
-
var extractSchemaLabel = (schema) => {
|
|
4
|
-
if (typeof schema !== "string") return;
|
|
5
|
-
return schema.match(/\/collection\/(v[\d.]+)\//i)?.[1];
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Extracts document details from a Postman collection JSON string.
|
|
9
|
-
*
|
|
10
|
-
* We parse and validate in a single pass to avoid the performance cost
|
|
11
|
-
* of parsing the JSON twice.
|
|
12
|
-
*
|
|
13
|
-
* @param content - The JSON string representing the Postman collection
|
|
14
|
-
* @returns The collection details if valid, null otherwise
|
|
15
|
-
*/
|
|
16
|
-
var getPostmanDocumentDetails = (content) => {
|
|
17
|
-
if (!isPostmanCollection(content)) return null;
|
|
18
|
-
try {
|
|
19
|
-
const parsed = JSON.parse(content);
|
|
20
|
-
const schemaLabel = extractSchemaLabel(parsed.info?.schema);
|
|
21
|
-
const collectionItems = Array.isArray(parsed.item) ? parsed.item : [];
|
|
22
|
-
return {
|
|
23
|
-
type: "json",
|
|
24
|
-
title: parsed.info?.name || "Postman Collection",
|
|
25
|
-
version: parsed.info?.version || "1.0",
|
|
26
|
-
schemaLabel: schemaLabel ?? void 0,
|
|
27
|
-
collection: collectionItems
|
|
28
|
-
};
|
|
29
|
-
} catch {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
export { getPostmanDocumentDetails };
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=get-postman-document-details.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-postman-document-details.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/get-postman-document-details.ts"],"sourcesContent":["import { isPostmanCollection } from '@scalar/postman-to-openapi'\n\n/**\n * Represents the extracted details from a Postman collection.\n * Used to display collection metadata in the command palette import UI.\n */\ntype PostmanDocumentDetails = {\n /** The document format type. */\n type: string\n /** The name of the Postman collection. */\n title: string\n /** The version of the Postman collection. */\n version: string\n /** Postman collection schema segment from `info.schema` (e.g. `v2.1.0`), when present. */\n schemaLabel?: string\n /** The collection items. */\n collection: unknown[]\n}\n\nconst extractSchemaLabel = (schema: unknown): string | undefined => {\n if (typeof schema !== 'string') {\n return undefined\n }\n const match = schema.match(/\\/collection\\/(v[\\d.]+)\\//i)\n return match?.[1]\n}\n\n/**\n * Extracts document details from a Postman collection JSON string.\n *\n * We parse and validate in a single pass to avoid the performance cost\n * of parsing the JSON twice.\n *\n * @param content - The JSON string representing the Postman collection\n * @returns The collection details if valid, null otherwise\n */\nexport const getPostmanDocumentDetails = (content: string): PostmanDocumentDetails | null => {\n if (!isPostmanCollection(content)) {\n return null\n }\n\n try {\n const parsed = JSON.parse(content)\n\n const schemaLabel = extractSchemaLabel(parsed.info?.schema)\n\n const collectionItems = Array.isArray(parsed.item) ? parsed.item : []\n\n return {\n type: 'json',\n title: parsed.info?.name || 'Postman Collection',\n version: parsed.info?.version || '1.0',\n schemaLabel: schemaLabel ?? undefined,\n collection: collectionItems,\n }\n } catch {\n return null\n }\n}\n"],"mappings":";;AAmBA,IAAM,sBAAsB,WAAwC;AAClE,KAAI,OAAO,WAAW,SACpB;AAGF,QADc,OAAO,MAAM,6BAA6B,GACzC;;;;;;;;;;;AAYjB,IAAa,6BAA6B,YAAmD;AAC3F,KAAI,CAAC,oBAAoB,QAAQ,CAC/B,QAAO;AAGT,KAAI;EACF,MAAM,SAAS,KAAK,MAAM,QAAQ;EAElC,MAAM,cAAc,mBAAmB,OAAO,MAAM,OAAO;EAE3D,MAAM,kBAAkB,MAAM,QAAQ,OAAO,KAAK,GAAG,OAAO,OAAO,EAAE;AAErE,SAAO;GACL,MAAM;GACN,OAAO,OAAO,MAAM,QAAQ;GAC5B,SAAS,OAAO,MAAM,WAAW;GACjC,aAAa,eAAe,KAAA;GAC5B,YAAY;GACb;SACK;AACN,SAAO"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
-
import type { InMemoryWorkspace } from '@scalar/workspace-store/schemas/inmemory-workspace';
|
|
3
|
-
/**
|
|
4
|
-
* Imports a single document from a workspace state into the current workspace.
|
|
5
|
-
*
|
|
6
|
-
* This function handles the complete import process including slug generation,
|
|
7
|
-
* document loading, and sidebar updates. It ensures the imported document does not
|
|
8
|
-
* conflict with existing documents by generating a unique slug.
|
|
9
|
-
*
|
|
10
|
-
* The meta from the importing workspace is intentionally excluded to preserve
|
|
11
|
-
* the current workspace settings and avoid unintended configuration changes.
|
|
12
|
-
*
|
|
13
|
-
* @param workspaceStore - The active workspace store where the document will be imported
|
|
14
|
-
* @param workspaceState - The in-memory workspace containing the document to import
|
|
15
|
-
* @param name - The original slug/name of the document in the source workspace state
|
|
16
|
-
*
|
|
17
|
-
* @returns Promise that resolves to the slug of the imported document
|
|
18
|
-
*/
|
|
19
|
-
export declare const importDocumentToWorkspace: ({ workspaceStore, workspaceState, name, }: {
|
|
20
|
-
workspaceStore: WorkspaceStore | null;
|
|
21
|
-
workspaceState: InMemoryWorkspace;
|
|
22
|
-
name: string;
|
|
23
|
-
}) => Promise<{
|
|
24
|
-
ok: true;
|
|
25
|
-
slug: string;
|
|
26
|
-
} | {
|
|
27
|
-
ok: false;
|
|
28
|
-
error: string;
|
|
29
|
-
}>;
|
|
30
|
-
//# sourceMappingURL=import-document-to-workspace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import-document-to-workspace.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/import-document-to-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAI3F;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,GAAU,2CAI7C;IACD,cAAc,EAAE,cAAc,GAAG,IAAI,CAAA;IACrC,cAAc,EAAE,iBAAiB,CAAA;IACjC,IAAI,EAAE,MAAM,CAAA;CACb,KAAG,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAwDpE,CAAA"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { generateUniqueSlug } from "./generate-unique-slug.js";
|
|
2
|
-
//#region src/v2/features/command-palette/helpers/import-document-to-workspace.ts
|
|
3
|
-
/**
|
|
4
|
-
* Imports a single document from a workspace state into the current workspace.
|
|
5
|
-
*
|
|
6
|
-
* This function handles the complete import process including slug generation,
|
|
7
|
-
* document loading, and sidebar updates. It ensures the imported document does not
|
|
8
|
-
* conflict with existing documents by generating a unique slug.
|
|
9
|
-
*
|
|
10
|
-
* The meta from the importing workspace is intentionally excluded to preserve
|
|
11
|
-
* the current workspace settings and avoid unintended configuration changes.
|
|
12
|
-
*
|
|
13
|
-
* @param workspaceStore - The active workspace store where the document will be imported
|
|
14
|
-
* @param workspaceState - The in-memory workspace containing the document to import
|
|
15
|
-
* @param name - The original slug/name of the document in the source workspace state
|
|
16
|
-
*
|
|
17
|
-
* @returns Promise that resolves to the slug of the imported document
|
|
18
|
-
*/
|
|
19
|
-
var importDocumentToWorkspace = async ({ workspaceStore, workspaceState, name }) => {
|
|
20
|
-
if (!workspaceStore) return {
|
|
21
|
-
ok: false,
|
|
22
|
-
error: "Workspace store is not available"
|
|
23
|
-
};
|
|
24
|
-
const importingDocument = workspaceState.documents[name];
|
|
25
|
-
if (!importingDocument) return {
|
|
26
|
-
ok: false,
|
|
27
|
-
error: "Importing document not found in workspace state"
|
|
28
|
-
};
|
|
29
|
-
const currentDocuments = new Set(Object.keys(workspaceStore.workspace.documents));
|
|
30
|
-
/**
|
|
31
|
-
* Generate a unique slug to avoid naming conflicts with existing documents.
|
|
32
|
-
* The slug is based on the document title but modified if necessary to ensure uniqueness.
|
|
33
|
-
*/
|
|
34
|
-
const slug = await generateUniqueSlug(importingDocument.info.title || "default", currentDocuments);
|
|
35
|
-
if (!slug) return {
|
|
36
|
-
ok: false,
|
|
37
|
-
error: "Failed to generate a unique slug for the importing document"
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Load the document along with all its associated data structures.
|
|
41
|
-
* We intentionally pass an empty meta object to preserve the current workspace settings.
|
|
42
|
-
*/
|
|
43
|
-
workspaceStore.loadWorkspace({
|
|
44
|
-
meta: {},
|
|
45
|
-
documents: { [slug]: importingDocument },
|
|
46
|
-
intermediateDocuments: { [slug]: workspaceState.intermediateDocuments[name] ?? {} },
|
|
47
|
-
originalDocuments: { [slug]: workspaceState.originalDocuments[name] ?? {} },
|
|
48
|
-
overrides: { [slug]: workspaceState.overrides[name] ?? {} },
|
|
49
|
-
history: {},
|
|
50
|
-
auth: {}
|
|
51
|
-
});
|
|
52
|
-
/**
|
|
53
|
-
* Rebuild the sidebar to update all internal references from the old slug to the new one.
|
|
54
|
-
* This ensures the document appears correctly in the sidebar navigation.
|
|
55
|
-
*/
|
|
56
|
-
workspaceStore.buildSidebar(slug);
|
|
57
|
-
/**
|
|
58
|
-
* Persist the imported document and the changes made during sidebar rebuilding.
|
|
59
|
-
* Without this, the import would be lost on page refresh.
|
|
60
|
-
*/
|
|
61
|
-
await workspaceStore.saveDocument(slug);
|
|
62
|
-
return {
|
|
63
|
-
ok: true,
|
|
64
|
-
slug
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
//#endregion
|
|
68
|
-
export { importDocumentToWorkspace };
|
|
69
|
-
|
|
70
|
-
//# sourceMappingURL=import-document-to-workspace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import-document-to-workspace.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/import-document-to-workspace.ts"],"sourcesContent":["import type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { InMemoryWorkspace } from '@scalar/workspace-store/schemas/inmemory-workspace'\n\nimport { generateUniqueSlug } from '@/v2/features/command-palette/helpers/generate-unique-slug'\n\n/**\n * Imports a single document from a workspace state into the current workspace.\n *\n * This function handles the complete import process including slug generation,\n * document loading, and sidebar updates. It ensures the imported document does not\n * conflict with existing documents by generating a unique slug.\n *\n * The meta from the importing workspace is intentionally excluded to preserve\n * the current workspace settings and avoid unintended configuration changes.\n *\n * @param workspaceStore - The active workspace store where the document will be imported\n * @param workspaceState - The in-memory workspace containing the document to import\n * @param name - The original slug/name of the document in the source workspace state\n *\n * @returns Promise that resolves to the slug of the imported document\n */\nexport const importDocumentToWorkspace = async ({\n workspaceStore,\n workspaceState,\n name,\n}: {\n workspaceStore: WorkspaceStore | null\n workspaceState: InMemoryWorkspace\n name: string\n}): Promise<{ ok: true; slug: string } | { ok: false; error: string }> => {\n if (!workspaceStore) {\n return { ok: false, error: 'Workspace store is not available' }\n }\n\n const importingDocument = workspaceState.documents[name]\n if (!importingDocument) {\n return { ok: false, error: 'Importing document not found in workspace state' }\n }\n\n const currentDocuments = new Set(Object.keys(workspaceStore.workspace.documents))\n\n /**\n * Generate a unique slug to avoid naming conflicts with existing documents.\n * The slug is based on the document title but modified if necessary to ensure uniqueness.\n */\n const slug = await generateUniqueSlug(importingDocument.info.title || 'default', currentDocuments)\n if (!slug) {\n return { ok: false, error: 'Failed to generate a unique slug for the importing document' }\n }\n\n /**\n * Load the document along with all its associated data structures.\n * We intentionally pass an empty meta object to preserve the current workspace settings.\n */\n workspaceStore.loadWorkspace({\n meta: {},\n documents: {\n [slug]: importingDocument,\n },\n intermediateDocuments: {\n [slug]: workspaceState.intermediateDocuments[name] ?? {},\n },\n originalDocuments: {\n [slug]: workspaceState.originalDocuments[name] ?? {},\n },\n overrides: {\n [slug]: workspaceState.overrides[name] ?? {},\n },\n history: {},\n auth: {},\n })\n\n /**\n * Rebuild the sidebar to update all internal references from the old slug to the new one.\n * This ensures the document appears correctly in the sidebar navigation.\n */\n workspaceStore.buildSidebar(slug)\n\n /**\n * Persist the imported document and the changes made during sidebar rebuilding.\n * Without this, the import would be lost on page refresh.\n */\n await workspaceStore.saveDocument(slug)\n\n return { ok: true, slug }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,IAAa,4BAA4B,OAAO,EAC9C,gBACA,gBACA,WAKwE;AACxE,KAAI,CAAC,eACH,QAAO;EAAE,IAAI;EAAO,OAAO;EAAoC;CAGjE,MAAM,oBAAoB,eAAe,UAAU;AACnD,KAAI,CAAC,kBACH,QAAO;EAAE,IAAI;EAAO,OAAO;EAAmD;CAGhF,MAAM,mBAAmB,IAAI,IAAI,OAAO,KAAK,eAAe,UAAU,UAAU,CAAC;;;;;CAMjF,MAAM,OAAO,MAAM,mBAAmB,kBAAkB,KAAK,SAAS,WAAW,iBAAiB;AAClG,KAAI,CAAC,KACH,QAAO;EAAE,IAAI;EAAO,OAAO;EAA+D;;;;;AAO5F,gBAAe,cAAc;EAC3B,MAAM,EAAE;EACR,WAAW,GACR,OAAO,mBACT;EACD,uBAAuB,GACpB,OAAO,eAAe,sBAAsB,SAAS,EAAE,EACzD;EACD,mBAAmB,GAChB,OAAO,eAAe,kBAAkB,SAAS,EAAE,EACrD;EACD,WAAW,GACR,OAAO,eAAe,UAAU,SAAS,EAAE,EAC7C;EACD,SAAS,EAAE;EACX,MAAM,EAAE;EACT,CAAC;;;;;AAMF,gBAAe,aAAa,KAAK;;;;;AAMjC,OAAM,eAAe,aAAa,KAAK;AAEvC,QAAO;EAAE,IAAI;EAAM;EAAM"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
-
export type ImportEventData = {
|
|
3
|
-
source: string;
|
|
4
|
-
type: 'url' | 'file' | 'raw';
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Attempts to add a document to the workspace from a given source, which may be a URL or raw content.
|
|
8
|
-
*
|
|
9
|
-
* - If the source is a URL, adds the document by its URL and includes a watch mode flag as metadata.
|
|
10
|
-
* - If the source is a Postman collection, transforms it to OpenAPI and adds it as a document.
|
|
11
|
-
* - For other raw sources (such as pasted JSON or YAML), attempts to normalize and add them as a document.
|
|
12
|
-
*
|
|
13
|
-
* @param workspaceStore The workspace store where the document will be added.
|
|
14
|
-
* @param source The document source (URL, Postman Collection, JSON, or YAML string).
|
|
15
|
-
* @param name The display name for the new document.
|
|
16
|
-
* @param watchMode Whether to enable watch mode (applies only to URL sources).
|
|
17
|
-
* @returns Promise resolving to true if the document was successfully added, or false if the operation failed.
|
|
18
|
-
*/
|
|
19
|
-
export declare const loadDocumentFromSource: (workspaceStore: WorkspaceStore, importEventData: ImportEventData, name: string, watchMode: boolean) => Promise<boolean>;
|
|
20
|
-
//# sourceMappingURL=load-document-from-source.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load-document-from-source.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/load-document-from-source.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAIpE,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;CAC7B,CAAA;AAiCD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GACjC,gBAAgB,cAAc,EAC9B,iBAAiB,eAAe,EAChC,MAAM,MAAM,EACZ,WAAW,OAAO,KACjB,OAAO,CAAC,OAAO,CAsDjB,CAAA"}
|