@scalar/api-client 3.6.1 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +157 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
- package/dist/components/HttpMethod/index.js +2 -0
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.d.ts.map +1 -0
- package/dist/components/{ScalarAsciiArt.vue.js → ScalarAsciiArt/ScalarAsciiArt.vue.js} +3 -3
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.js.map +1 -0
- package/dist/components/{ScalarAsciiArt.vue.script.js → ScalarAsciiArt/ScalarAsciiArt.vue.script.js} +1 -1
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.script.js.map +1 -0
- package/dist/components/ScalarAsciiArt/index.d.ts +2 -0
- package/dist/components/ScalarAsciiArt/index.d.ts.map +1 -0
- package/dist/components/ScalarAsciiArt/index.js +2 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +2 -2
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/Sidebar/index.js +2 -0
- package/dist/components/ViewLayout/index.d.ts +4 -0
- package/dist/components/ViewLayout/index.d.ts.map +1 -0
- package/dist/components/ViewLayout/index.js +4 -0
- package/dist/plugins/posthog/index.d.ts.map +1 -1
- package/dist/plugins/posthog/index.js +21 -12
- package/dist/plugins/posthog/index.js.map +1 -1
- package/dist/plugins/posthog/sanitize-event-payload.d.ts +25 -0
- package/dist/plugins/posthog/sanitize-event-payload.d.ts.map +1 -0
- package/dist/plugins/posthog/sanitize-event-payload.js +136 -0
- package/dist/plugins/posthog/sanitize-event-payload.js.map +1 -0
- package/dist/style.css +214 -1651
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +72 -32
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js +1 -1
- package/dist/v2/blocks/operation-block/index.d.ts +1 -0
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/index.js +2 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.script.js +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +15 -9
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +2 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +30 -17
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +43 -10
- package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.script.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +4 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js +4 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +42 -13
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts +14 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js +136 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js +12 -10
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +2 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js +17 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts +3 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js +21 -9
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +2 -2
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js +1 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +14 -7
- package/dist/v2/blocks/response-block/helpers/media-types.js.map +1 -1
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.d.ts +6 -0
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.js +22 -0
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +124 -91
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +30 -20
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +43 -21
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +15 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +74 -28
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +30 -20
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +190 -72
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +7 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +26 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +25 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +12 -3
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +4 -4
- package/dist/v2/components/code-input/CodeInput.vue.script.js +1 -1
- package/dist/v2/components/code-input/code-variable-widget.js +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +2 -2
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.script.js +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.script.js +4 -3
- package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -1
- package/dist/v2/constants.js +1 -1
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +2 -2
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +2 -2
- package/dist/v2/features/command-palette/index.d.ts +0 -2
- package/dist/v2/features/command-palette/index.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.js +1 -3
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +2 -2
- package/dist/v2/features/modal/Modal.vue.d.ts +5 -7
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue.script.js +3 -3
- package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -3
- package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -1
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts +5 -1
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +15 -4
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js.map +1 -1
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +5 -1
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js.map +1 -1
- package/dist/v2/features/modal/index.js +1 -1
- package/dist/v2/features/modal/modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/modal-events.js +10 -6
- package/dist/v2/features/modal/modal-events.js.map +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts +35 -3
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js.map +1 -1
- package/dist/v2/features/operation/Operation.vue.script.js +1 -9
- package/dist/v2/features/operation/Operation.vue.script.js.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +4 -0
- package/dist/v2/helpers/handle-hotkeys.js.map +1 -1
- package/dist/v2/helpers/test-utils.d.ts +2 -0
- package/dist/v2/helpers/test-utils.d.ts.map +1 -1
- package/dist/v2/helpers/test-utils.js +18 -0
- package/dist/v2/helpers/test-utils.js.map +1 -0
- package/dist/v2/hooks/index.d.ts +2 -0
- package/dist/v2/hooks/index.d.ts.map +1 -0
- package/dist/v2/hooks/index.js +2 -0
- package/dist/v2/types/options.d.ts +1 -1
- package/dist/v2/types/options.d.ts.map +1 -1
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +2 -0
- package/dist/v2/workspace-events.js.map +1 -1
- package/dist/vue-styles.css +108 -658
- package/package.json +68 -97
- package/dist/components/IconSelector.vue.d.ts +0 -27
- package/dist/components/IconSelector.vue.d.ts.map +0 -1
- package/dist/components/IconSelector.vue.js +0 -7
- package/dist/components/IconSelector.vue.js.map +0 -1
- package/dist/components/IconSelector.vue.script.js +0 -65
- package/dist/components/IconSelector.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +0 -7
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +0 -7
- package/dist/components/ImportCollection/IntegrationLogo.vue.js.map +0 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.script.js +0 -50
- package/dist/components/ImportCollection/IntegrationLogo.vue.script.js.map +0 -1
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +0 -1
- package/dist/components/ScalarAsciiArt.vue.js.map +0 -1
- package/dist/components/ScalarAsciiArt.vue.script.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/monacoeditorwork/editor.worker.bundle.js +0 -14319
- package/dist/monacoeditorwork/json.worker.bundle.js +0 -22098
- package/dist/monacoeditorwork/yaml.worker.bundle.js +0 -38414
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +0 -42
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +0 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +0 -61
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +0 -1
- package/dist/v2/features/app/App.vue.d.ts +0 -75
- package/dist/v2/features/app/App.vue.d.ts.map +0 -1
- package/dist/v2/features/app/App.vue.js +0 -8
- package/dist/v2/features/app/App.vue.js.map +0 -1
- package/dist/v2/features/app/App.vue.script.js +0 -284
- package/dist/v2/features/app/App.vue.script.js.map +0 -1
- package/dist/v2/features/app/app-events.d.ts +0 -20
- package/dist/v2/features/app/app-events.d.ts.map +0 -1
- package/dist/v2/features/app/app-events.js +0 -254
- package/dist/v2/features/app/app-events.js.map +0 -1
- package/dist/v2/features/app/app-state.d.ts +0 -156
- package/dist/v2/features/app/app-state.d.ts.map +0 -1
- package/dist/v2/features/app/app-state.js +0 -717
- package/dist/v2/features/app/app-state.js.map +0 -1
- package/dist/v2/features/app/components/AppHeader.vue.d.ts +0 -43
- package/dist/v2/features/app/components/AppHeader.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/AppHeader.vue.js +0 -7
- package/dist/v2/features/app/components/AppHeader.vue.js.map +0 -1
- package/dist/v2/features/app/components/AppHeader.vue.script.js +0 -53
- package/dist/v2/features/app/components/AppHeader.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/AppHeaderActions.vue.d.ts +0 -32
- package/dist/v2/features/app/components/AppHeaderActions.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/AppHeaderActions.vue.js +0 -7
- package/dist/v2/features/app/components/AppHeaderActions.vue.js.map +0 -1
- package/dist/v2/features/app/components/AppHeaderActions.vue.script.js +0 -172
- package/dist/v2/features/app/components/AppHeaderActions.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +0 -37
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +0 -9
- package/dist/v2/features/app/components/AppSidebar.vue.js.map +0 -1
- package/dist/v2/features/app/components/AppSidebar.vue.script.js +0 -466
- package/dist/v2/features/app/components/AppSidebar.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/CreateVersionModal.vue.d.ts +0 -28
- package/dist/v2/features/app/components/CreateVersionModal.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/CreateVersionModal.vue.js +0 -7
- package/dist/v2/features/app/components/CreateVersionModal.vue.js.map +0 -1
- package/dist/v2/features/app/components/CreateVersionModal.vue.script.js +0 -84
- package/dist/v2/features/app/components/CreateVersionModal.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +0 -16
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +0 -7
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +0 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +0 -58
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts +0 -27
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/DesktopTab.vue.js +0 -9
- package/dist/v2/features/app/components/DesktopTab.vue.js.map +0 -1
- package/dist/v2/features/app/components/DesktopTab.vue.script.js +0 -121
- package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +0 -14
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +0 -7
- package/dist/v2/features/app/components/DesktopTabs.vue.js.map +0 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.script.js +0 -75
- package/dist/v2/features/app/components/DesktopTabs.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.d.ts +0 -25
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.js +0 -9
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.js.map +0 -1
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.script.js +0 -345
- package/dist/v2/features/app/components/DocumentBreadcrumb.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/DocumentSyncIndicator.vue.d.ts +0 -16
- package/dist/v2/features/app/components/DocumentSyncIndicator.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/PublishDocumentModal.vue.d.ts +0 -77
- package/dist/v2/features/app/components/PublishDocumentModal.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/PublishDocumentModal.vue.js +0 -7
- package/dist/v2/features/app/components/PublishDocumentModal.vue.js.map +0 -1
- package/dist/v2/features/app/components/PublishDocumentModal.vue.script.js +0 -209
- package/dist/v2/features/app/components/PublishDocumentModal.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/SidebarDocument.vue.d.ts +0 -45
- package/dist/v2/features/app/components/SidebarDocument.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/SidebarDocument.vue.js +0 -7
- package/dist/v2/features/app/components/SidebarDocument.vue.js.map +0 -1
- package/dist/v2/features/app/components/SidebarDocument.vue.script.js +0 -137
- package/dist/v2/features/app/components/SidebarDocument.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts +0 -26
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +0 -7
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js.map +0 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js +0 -175
- package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts +0 -4
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/SplashScreen.vue.js +0 -9
- package/dist/v2/features/app/components/SplashScreen.vue.js.map +0 -1
- package/dist/v2/features/app/components/SplashScreen.vue.script.js +0 -20
- package/dist/v2/features/app/components/SplashScreen.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.d.ts +0 -18
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.js +0 -9
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.js.map +0 -1
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.script.js +0 -136
- package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.script.js.map +0 -1
- package/dist/v2/features/app/components/index.d.ts +0 -2
- package/dist/v2/features/app/components/index.d.ts.map +0 -1
- package/dist/v2/features/app/components/index.js +0 -2
- package/dist/v2/features/app/helpers/check-version-conflict.d.ts +0 -54
- package/dist/v2/features/app/helpers/check-version-conflict.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/check-version-conflict.js +0 -82
- package/dist/v2/features/app/helpers/check-version-conflict.js.map +0 -1
- package/dist/v2/features/app/helpers/compute-version-status.d.ts +0 -45
- package/dist/v2/features/app/helpers/compute-version-status.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/compute-version-status.js +0 -18
- package/dist/v2/features/app/helpers/compute-version-status.js.map +0 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +0 -59
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +0 -55
- package/dist/v2/features/app/helpers/create-api-client-app.js.map +0 -1
- package/dist/v2/features/app/helpers/create-draft-registry-document.d.ts +0 -39
- package/dist/v2/features/app/helpers/create-draft-registry-document.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/create-draft-registry-document.js +0 -64
- package/dist/v2/features/app/helpers/create-draft-registry-document.js.map +0 -1
- package/dist/v2/features/app/helpers/create-temp-operation.d.ts +0 -14
- package/dist/v2/features/app/helpers/create-temp-operation.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/create-temp-operation.js +0 -52
- package/dist/v2/features/app/helpers/create-temp-operation.js.map +0 -1
- package/dist/v2/features/app/helpers/detect-document-conflicts.d.ts +0 -26
- package/dist/v2/features/app/helpers/detect-document-conflicts.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/detect-document-conflicts.js +0 -27
- package/dist/v2/features/app/helpers/detect-document-conflicts.js.map +0 -1
- package/dist/v2/features/app/helpers/filter-workspaces.d.ts +0 -49
- package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/filter-workspaces.js +0 -55
- package/dist/v2/features/app/helpers/filter-workspaces.js.map +0 -1
- package/dist/v2/features/app/helpers/get-route-param.d.ts +0 -7
- package/dist/v2/features/app/helpers/get-route-param.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/get-route-param.js +0 -12
- package/dist/v2/features/app/helpers/get-route-param.js.map +0 -1
- package/dist/v2/features/app/helpers/group-workspaces.d.ts +0 -44
- package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/group-workspaces.js +0 -53
- package/dist/v2/features/app/helpers/group-workspaces.js.map +0 -1
- package/dist/v2/features/app/helpers/load-registry-document.d.ts +0 -24
- package/dist/v2/features/app/helpers/load-registry-document.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/load-registry-document.js +0 -47
- package/dist/v2/features/app/helpers/load-registry-document.js.map +0 -1
- package/dist/v2/features/app/helpers/registry-error-messages.d.ts +0 -23
- package/dist/v2/features/app/helpers/registry-error-messages.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/registry-error-messages.js +0 -63
- package/dist/v2/features/app/helpers/registry-error-messages.js.map +0 -1
- package/dist/v2/features/app/helpers/routes.d.ts +0 -184
- package/dist/v2/features/app/helpers/routes.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/routes.js +0 -153
- package/dist/v2/features/app/helpers/routes.js.map +0 -1
- package/dist/v2/features/app/helpers/version-status-presentation.d.ts +0 -24
- package/dist/v2/features/app/helpers/version-status-presentation.d.ts.map +0 -1
- package/dist/v2/features/app/helpers/version-status-presentation.js +0 -43
- package/dist/v2/features/app/helpers/version-status-presentation.js.map +0 -1
- package/dist/v2/features/app/hooks/use-active-document-version.d.ts +0 -42
- package/dist/v2/features/app/hooks/use-active-document-version.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-active-document-version.js +0 -60
- package/dist/v2/features/app/hooks/use-active-document-version.js.map +0 -1
- package/dist/v2/features/app/hooks/use-document-filter.d.ts +0 -38
- package/dist/v2/features/app/hooks/use-document-filter.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-document-filter.js +0 -63
- package/dist/v2/features/app/hooks/use-document-filter.js.map +0 -1
- package/dist/v2/features/app/hooks/use-document-sync.d.ts +0 -126
- package/dist/v2/features/app/hooks/use-document-sync.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-document-sync.js +0 -448
- package/dist/v2/features/app/hooks/use-document-sync.js.map +0 -1
- package/dist/v2/features/app/hooks/use-document-watcher.d.ts +0 -30
- package/dist/v2/features/app/hooks/use-document-watcher.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-document-watcher.js +0 -168
- package/dist/v2/features/app/hooks/use-document-watcher.js.map +0 -1
- package/dist/v2/features/app/hooks/use-network-status.d.ts +0 -29
- package/dist/v2/features/app/hooks/use-network-status.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-network-status.js +0 -58
- package/dist/v2/features/app/hooks/use-network-status.js.map +0 -1
- package/dist/v2/features/app/hooks/use-sidebar-context-menu.d.ts +0 -17258
- package/dist/v2/features/app/hooks/use-sidebar-context-menu.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-sidebar-context-menu.js +0 -107
- package/dist/v2/features/app/hooks/use-sidebar-context-menu.js.map +0 -1
- package/dist/v2/features/app/hooks/use-sidebar-documents.d.ts +0 -119
- package/dist/v2/features/app/hooks/use-sidebar-documents.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-sidebar-documents.js +0 -219
- package/dist/v2/features/app/hooks/use-sidebar-documents.js.map +0 -1
- package/dist/v2/features/app/hooks/use-theme.d.ts +0 -56
- package/dist/v2/features/app/hooks/use-theme.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-theme.js +0 -94
- package/dist/v2/features/app/hooks/use-theme.js.map +0 -1
- package/dist/v2/features/app/hooks/use-version-conflict-check.d.ts +0 -35
- package/dist/v2/features/app/hooks/use-version-conflict-check.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-version-conflict-check.js +0 -62
- package/dist/v2/features/app/hooks/use-version-conflict-check.js.map +0 -1
- package/dist/v2/features/app/index.d.ts +0 -10
- package/dist/v2/features/app/index.d.ts.map +0 -1
- package/dist/v2/features/app/index.js +0 -8
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +0 -13
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +0 -8
- package/dist/v2/features/collection/DocumentCollection.vue.js.map +0 -1
- package/dist/v2/features/collection/DocumentCollection.vue.script.js +0 -112
- package/dist/v2/features/collection/DocumentCollection.vue.script.js.map +0 -1
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +0 -6
- package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/OperationCollection.vue.js +0 -7
- package/dist/v2/features/collection/OperationCollection.vue.js.map +0 -1
- package/dist/v2/features/collection/OperationCollection.vue.script.js +0 -95
- package/dist/v2/features/collection/OperationCollection.vue.script.js.map +0 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +0 -6
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +0 -7
- package/dist/v2/features/collection/WorkspaceCollection.vue.js.map +0 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.script.js +0 -74
- package/dist/v2/features/collection/WorkspaceCollection.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +0 -9
- package/dist/v2/features/collection/components/Authentication.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Authentication.vue.script.js +0 -174
- package/dist/v2/features/collection/components/Authentication.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +0 -21
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +0 -7
- package/dist/v2/features/collection/components/Cookies.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Cookies.vue.script.js +0 -58
- package/dist/v2/features/collection/components/Cookies.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.d.ts +0 -12
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.js +0 -9
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.js.map +0 -1
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.script.js +0 -174
- package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/Editor.vue.js +0 -9
- package/dist/v2/features/collection/components/Editor/Editor.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/Editor.vue.script.js +0 -361
- package/dist/v2/features/collection/components/Editor/Editor.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts +0 -19
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +0 -7
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js +0 -69
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +0 -7
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js +0 -91
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts +0 -12
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +0 -22
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts +0 -11
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +0 -17
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts +0 -7
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +0 -17
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts +0 -10
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +0 -34
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts +0 -10
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +0 -18
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts +0 -15
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +0 -36
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js.map +0 -1
- package/dist/v2/features/collection/components/Editor/index.d.ts +0 -2
- package/dist/v2/features/collection/components/Editor/index.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Editor/index.js +0 -2
- package/dist/v2/features/collection/components/Environment.vue.d.ts +0 -21
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Environment.vue.js +0 -7
- package/dist/v2/features/collection/components/Environment.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Environment.vue.script.js +0 -61
- package/dist/v2/features/collection/components/Environment.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Form.vue.d.ts +0 -29
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Form.vue.js +0 -7
- package/dist/v2/features/collection/components/Form.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Form.vue.script.js +0 -78
- package/dist/v2/features/collection/components/Form.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/GetStarted.vue.d.ts +0 -21
- package/dist/v2/features/collection/components/GetStarted.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/GetStarted.vue.js +0 -7
- package/dist/v2/features/collection/components/GetStarted.vue.js.map +0 -1
- package/dist/v2/features/collection/components/GetStarted.vue.script.js +0 -144
- package/dist/v2/features/collection/components/GetStarted.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +0 -18
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.vue.js +0 -9
- package/dist/v2/features/collection/components/LabelInput.vue.js.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.vue.script.js +0 -38
- package/dist/v2/features/collection/components/LabelInput.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Overview.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Overview.vue.js +0 -9
- package/dist/v2/features/collection/components/Overview.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Overview.vue.script.js +0 -204
- package/dist/v2/features/collection/components/Overview.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js +0 -223
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts +0 -20
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js +0 -45
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts +0 -19
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js +0 -73
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js +0 -124
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts +0 -17
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js +0 -126
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts +0 -18
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js +0 -180
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts +0 -14
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js +0 -44
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts +0 -19
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js +0 -53
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts +0 -23
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js +0 -7
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js +0 -75
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/index.d.ts +0 -3
- package/dist/v2/features/collection/components/Runner/hooks/index.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts +0 -75
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js +0 -191
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts +0 -46
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js +0 -114
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js.map +0 -1
- package/dist/v2/features/collection/components/Runner/index.d.ts +0 -2
- package/dist/v2/features/collection/components/Runner/index.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Scripts.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Scripts.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Scripts.vue.js +0 -7
- package/dist/v2/features/collection/components/Scripts.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Scripts.vue.script.js +0 -49
- package/dist/v2/features/collection/components/Scripts.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Servers.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Servers.vue.js +0 -7
- package/dist/v2/features/collection/components/Servers.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Servers.vue.script.js +0 -219
- package/dist/v2/features/collection/components/Servers.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Settings.vue.d.ts +0 -16
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Settings.vue.js +0 -7
- package/dist/v2/features/collection/components/Settings.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Settings.vue.script.js +0 -81
- package/dist/v2/features/collection/components/Settings.vue.script.js.map +0 -1
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +0 -8
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Tabs.vue.js +0 -7
- package/dist/v2/features/collection/components/Tabs.vue.js.map +0 -1
- package/dist/v2/features/collection/components/Tabs.vue.script.js +0 -55
- package/dist/v2/features/collection/components/Tabs.vue.script.js.map +0 -1
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +0 -12
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +0 -1
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +0 -19
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js.map +0 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +0 -42
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js +0 -9
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js.map +0 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +0 -189
- package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +0 -49
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js +0 -225
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +0 -53
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +0 -227
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +0 -44
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +0 -9
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js +0 -137
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts +0 -30
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js +0 -156
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts +0 -37
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +0 -105
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +0 -48
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js +0 -228
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +0 -65
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js +0 -142
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts +0 -58
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js +0 -9
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js +0 -142
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts +0 -23
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js +0 -9
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js +0 -138
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +0 -34
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +0 -7
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js.map +0 -1
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js +0 -39
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.d.ts +0 -20
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +0 -33
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts +0 -11
- package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-merge-key.js +0 -32
- package/dist/v2/features/command-palette/helpers/get-merge-key.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +0 -24
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +0 -56
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +0 -24
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +0 -22
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts +0 -26
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +0 -119
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts +0 -14
- package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js +0 -19
- package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +0 -28
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +0 -36
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.d.ts +0 -30
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +0 -70
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +0 -20
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js +0 -72
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/parse-curl.d.ts +0 -14
- package/dist/v2/features/command-palette/helpers/parse-curl.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/parse-curl.js +0 -106
- package/dist/v2/features/command-palette/helpers/parse-curl.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts +0 -11
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.js +0 -35
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.js.map +0 -1
- package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts +0 -41
- package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts.map +0 -1
- package/dist/v2/features/command-palette/helpers/postman-request-tree.js +0 -139
- package/dist/v2/features/command-palette/helpers/postman-request-tree.js.map +0 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +0 -426
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +0 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -207
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js.map +0 -1
- package/dist/v2/features/editor/config.d.ts +0 -16
- package/dist/v2/features/editor/config.d.ts.map +0 -1
- package/dist/v2/features/editor/config.js +0 -19
- package/dist/v2/features/editor/config.js.map +0 -1
- package/dist/v2/features/editor/helpers/configure-language-support.d.ts +0 -13
- package/dist/v2/features/editor/helpers/configure-language-support.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/configure-language-support.js +0 -48
- package/dist/v2/features/editor/helpers/configure-language-support.js.map +0 -1
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.d.ts +0 -6
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +0 -21
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +0 -12
- package/dist/v2/features/editor/helpers/json/create-json-model.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/create-json-model.js +0 -31
- package/dist/v2/features/editor/helpers/json/create-json-model.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +0 -14
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +0 -22
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-ast.d.ts +0 -12
- package/dist/v2/features/editor/helpers/json/json-ast.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-ast.js +0 -32
- package/dist/v2/features/editor/helpers/json/json-ast.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-links.d.ts +0 -15
- package/dist/v2/features/editor/helpers/json/json-pointer-links.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-links.js +0 -104
- package/dist/v2/features/editor/helpers/json/json-pointer-links.js.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts +0 -7
- package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-path.js +0 -27
- package/dist/v2/features/editor/helpers/json/json-pointer-path.js.map +0 -1
- package/dist/v2/features/editor/helpers/model.d.ts +0 -9
- package/dist/v2/features/editor/helpers/model.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/range-to-whole-line.d.ts +0 -14
- package/dist/v2/features/editor/helpers/range-to-whole-line.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/range-to-whole-line.js +0 -27
- package/dist/v2/features/editor/helpers/range-to-whole-line.js.map +0 -1
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.d.ts +0 -16
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +0 -84
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js.map +0 -1
- package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts +0 -36
- package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/theme/load-css-variables.js +0 -117
- package/dist/v2/features/editor/helpers/theme/load-css-variables.js.map +0 -1
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +0 -13
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +0 -32
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js.map +0 -1
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +0 -19
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts.map +0 -1
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +0 -70
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js.map +0 -1
- package/dist/v2/features/editor/hooks/use-editor-markers.d.ts +0 -152
- package/dist/v2/features/editor/hooks/use-editor-markers.d.ts.map +0 -1
- package/dist/v2/features/editor/hooks/use-editor-markers.js +0 -37
- package/dist/v2/features/editor/hooks/use-editor-markers.js.map +0 -1
- package/dist/v2/features/editor/hooks/use-editor.d.ts +0 -39
- package/dist/v2/features/editor/hooks/use-editor.d.ts.map +0 -1
- package/dist/v2/features/editor/hooks/use-editor.js +0 -133
- package/dist/v2/features/editor/hooks/use-editor.js.map +0 -1
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +0 -16
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts.map +0 -1
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +0 -45
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js.map +0 -1
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.d.ts +0 -77
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.d.ts.map +0 -1
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +0 -396
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js.map +0 -1
- package/dist/v2/features/editor/index.d.ts +0 -5
- package/dist/v2/features/editor/index.d.ts.map +0 -1
- package/dist/v2/features/editor/index.js +0 -5
- package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +0 -51
- package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +0 -10
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +0 -9
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js +0 -188
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js.map +0 -1
- package/dist/v2/features/global-cookies/index.d.ts +0 -2
- package/dist/v2/features/global-cookies/index.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/index.js +0 -2
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts +0 -28
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +0 -7
- package/dist/v2/features/settings/CollectionSettings.vue.js.map +0 -1
- package/dist/v2/features/settings/CollectionSettings.vue.script.js +0 -229
- package/dist/v2/features/settings/CollectionSettings.vue.script.js.map +0 -1
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts +0 -20
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +0 -7
- package/dist/v2/features/settings/DocumentSettings.vue.js.map +0 -1
- package/dist/v2/features/settings/DocumentSettings.vue.script.js +0 -92
- package/dist/v2/features/settings/DocumentSettings.vue.script.js.map +0 -1
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +0 -11
- package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/components/Appearance.vue.js +0 -7
- package/dist/v2/features/settings/components/Appearance.vue.js.map +0 -1
- package/dist/v2/features/settings/components/Appearance.vue.script.js +0 -63
- package/dist/v2/features/settings/components/Appearance.vue.script.js.map +0 -1
- package/dist/v2/features/settings/components/Section.vue.d.ts +0 -16
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/components/Section.vue.js +0 -7
- package/dist/v2/features/settings/components/Section.vue.js.map +0 -1
- package/dist/v2/features/settings/components/Section.vue.script.js +0 -30
- package/dist/v2/features/settings/components/Section.vue.script.js.map +0 -1
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +0 -10
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +0 -1
- package/dist/v2/features/settings/helpers/get-theme-colors.js +0 -68
- package/dist/v2/features/settings/helpers/get-theme-colors.js.map +0 -1
- package/dist/v2/features/settings/index.d.ts +0 -3
- package/dist/v2/features/settings/index.d.ts.map +0 -1
- package/dist/v2/features/settings/index.js +0 -3
- package/dist/v2/helpers/download-document.d.ts +0 -2
- package/dist/v2/helpers/download-document.d.ts.map +0 -1
- package/dist/v2/helpers/download-document.js +0 -42
- package/dist/v2/helpers/download-document.js.map +0 -1
- package/dist/v2/helpers/drag-handle-factory.d.ts +0 -16
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +0 -1
- package/dist/v2/helpers/drag-handle-factory.js +0 -258
- package/dist/v2/helpers/drag-handle-factory.js.map +0 -1
- package/dist/v2/helpers/get-tab-details.d.ts +0 -43
- package/dist/v2/helpers/get-tab-details.d.ts.map +0 -1
- package/dist/v2/helpers/get-tab-details.js +0 -54
- package/dist/v2/helpers/get-tab-details.js.map +0 -1
- package/dist/v2/helpers/is-url.d.ts +0 -2
- package/dist/v2/helpers/is-url.d.ts.map +0 -1
- package/dist/v2/helpers/is-url.js +0 -10
- package/dist/v2/helpers/is-url.js.map +0 -1
- package/dist/v2/helpers/safe-run.d.ts +0 -34
- package/dist/v2/helpers/safe-run.d.ts.map +0 -1
- package/dist/v2/helpers/safe-run.js +0 -43
- package/dist/v2/helpers/safe-run.js.map +0 -1
- package/dist/v2/helpers/storage.d.ts +0 -31
- package/dist/v2/helpers/storage.d.ts.map +0 -1
- package/dist/v2/helpers/storage.js +0 -37
- package/dist/v2/helpers/storage.js.map +0 -1
- package/dist/v2/hooks/use-color-mode.d.ts +0 -20
- package/dist/v2/hooks/use-color-mode.d.ts.map +0 -1
- package/dist/v2/hooks/use-color-mode.js +0 -72
- package/dist/v2/hooks/use-color-mode.js.map +0 -1
- package/dist/v2/types/configuration.d.ts +0 -278
- package/dist/v2/types/configuration.d.ts.map +0 -1
- /package/dist/components/{ScalarAsciiArt.vue.d.ts → ScalarAsciiArt/ScalarAsciiArt.vue.d.ts} +0 -0
- /package/dist/{index.js → types/index.js} +0 -0
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
import { useActiveDocumentVersion } from "./use-active-document-version.js";
|
|
2
|
-
import { messageForFetchError, messageForPublishDocumentError, messageForPublishVersionError } from "../helpers/registry-error-messages.js";
|
|
3
|
-
import { useNetworkStatus } from "./use-network-status.js";
|
|
4
|
-
import { computed, ref } from "vue";
|
|
5
|
-
import { useModal } from "@scalar/components";
|
|
6
|
-
import { useToasts } from "@scalar/use-toasts";
|
|
7
|
-
import { apply } from "@scalar/json-magic/diff";
|
|
8
|
-
import { deepClone } from "@scalar/workspace-store/helpers/deep-clone";
|
|
9
|
-
//#region src/v2/features/app/hooks/use-document-sync.ts
|
|
10
|
-
/**
|
|
11
|
-
* Default namespaces state surfaced when the host application has not
|
|
12
|
-
* wired a registry adapter up yet. Keeping this as a constant (rather
|
|
13
|
-
* than recomputing every render) lets the publish modal mount with a
|
|
14
|
-
* stable reference and avoids triggering its `watch` for nothing.
|
|
15
|
-
*/
|
|
16
|
-
var EMPTY_NAMESPACES_STATE = {
|
|
17
|
-
status: "success",
|
|
18
|
-
namespaces: []
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Owns the document-level sync flow for the API client header: save,
|
|
22
|
-
* revert, pull, push, and first-time publish. The top-level `App.vue`
|
|
23
|
-
* was accumulating all five flows alongside its routing / layout glue,
|
|
24
|
-
* which made the file hard to reason about in isolation - extracting
|
|
25
|
-
* the registry-bound logic into a single hook keeps the component
|
|
26
|
-
* declarative and gives the flow a single place to test against.
|
|
27
|
-
*
|
|
28
|
-
* The hook owns:
|
|
29
|
-
* - the visibility computeds for each header action cluster,
|
|
30
|
-
* - the network-aware enable / disable gates (`canPullActiveDocument`,
|
|
31
|
-
* `canPushActiveDocument`),
|
|
32
|
-
* - the modal states for the publish + sync-conflict flows,
|
|
33
|
-
* - the pending pull state captured while the three-way merge editor
|
|
34
|
-
* is open,
|
|
35
|
-
* - and every async handler invoked from the header buttons / modals.
|
|
36
|
-
*/
|
|
37
|
-
var useDocumentSync = ({ app, registry, registryDocuments }) => {
|
|
38
|
-
const { toast } = useToasts();
|
|
39
|
-
/**
|
|
40
|
-
* Resolves the registry meta and sync status for the active document.
|
|
41
|
-
* The breadcrumb already drives this composable for its version picker;
|
|
42
|
-
* we reuse it here so the header action cluster reads from exactly the
|
|
43
|
-
* same `pull` / `push` / `synced` source of truth that the picker rows
|
|
44
|
-
* and the inline status icons do.
|
|
45
|
-
*/
|
|
46
|
-
const { activeRegistryMeta, activeVersion } = useActiveDocumentVersion({
|
|
47
|
-
app,
|
|
48
|
-
registryDocuments
|
|
49
|
-
});
|
|
50
|
-
const publishDocumentModalState = useModal();
|
|
51
|
-
const syncConflictModalState = useModal();
|
|
52
|
-
/** Whether the route currently resolves to a document. */
|
|
53
|
-
const hasActiveDocument = computed(() => Boolean(app.activeEntities.documentSlug.value));
|
|
54
|
-
/** Whether the active document has unsaved local edits. */
|
|
55
|
-
const isActiveDocumentDirty = computed(() => app.store.value?.workspace.activeDocument?.["x-scalar-is-dirty"] === true);
|
|
56
|
-
/**
|
|
57
|
-
* Save / Revert cluster for local workspaces. Mirrors the save-prompt UX
|
|
58
|
-
* of the document collection page: Save is always mounted while a doc is
|
|
59
|
-
* active and gets disabled when there is nothing to persist; Revert only
|
|
60
|
-
* shows up while the document is dirty.
|
|
61
|
-
*/
|
|
62
|
-
const showLocalSaveActions = computed(() => !app.workspace.isTeamWorkspace.value && hasActiveDocument.value);
|
|
63
|
-
/**
|
|
64
|
-
* Pull / Push cluster for team workspace documents that already have a
|
|
65
|
-
* registry relationship. The same `Revert` button as local workspaces
|
|
66
|
-
* sits in front of it so a dirty document can be discarded without going
|
|
67
|
-
* through the registry round-trip.
|
|
68
|
-
*/
|
|
69
|
-
const showTeamSyncActions = computed(() => app.workspace.isTeamWorkspace.value && hasActiveDocument.value && Boolean(activeRegistryMeta.value));
|
|
70
|
-
/**
|
|
71
|
-
* Publish cluster for team workspace documents that do not yet have a
|
|
72
|
-
* registry entry. We surface it as a single "Publish" affordance instead
|
|
73
|
-
* of the Pull / Push pair because there is no upstream version to sync
|
|
74
|
-
* against - the action is simply "create the registry version".
|
|
75
|
-
*/
|
|
76
|
-
const showTeamPublishAction = computed(() => app.workspace.isTeamWorkspace.value && hasActiveDocument.value && !activeRegistryMeta.value);
|
|
77
|
-
/**
|
|
78
|
-
* Reactive online / offline status for the browser. Registry-bound
|
|
79
|
-
* actions (Pull, Push, Publish) all need a live network connection, so
|
|
80
|
-
* we surface a single source of truth here and let the per-action
|
|
81
|
-
* `canX` computeds AND the icon swaps below consume it.
|
|
82
|
-
*/
|
|
83
|
-
const { isOnline, isOffline } = useNetworkStatus();
|
|
84
|
-
/**
|
|
85
|
-
* Pull is enabled while the registry advertises a different commit hash
|
|
86
|
-
* than the local one, regardless of whether the local document is dirty.
|
|
87
|
-
* `conflict` is treated the same as `pull` here so the user can always
|
|
88
|
-
* reach the conflict-resolution flow from the header. We additionally
|
|
89
|
-
* gate on `isOnline` so the button stops responding the moment the
|
|
90
|
-
* browser reports an offline transition - any click we accepted would
|
|
91
|
-
* fail the `fetchDocument` adapter call anyway.
|
|
92
|
-
*/
|
|
93
|
-
const canPullActiveDocument = computed(() => {
|
|
94
|
-
if (!isOnline.value) return false;
|
|
95
|
-
const status = activeVersion.value?.status;
|
|
96
|
-
return status === "pull" || status === "conflict";
|
|
97
|
-
});
|
|
98
|
-
/**
|
|
99
|
-
* Push is only enabled when the document is dirty *and* there are no
|
|
100
|
-
* upstream changes - mirroring `computeVersionStatus`'s `'push'` outcome,
|
|
101
|
-
* which already encodes that combination. Pushing while upstream has
|
|
102
|
-
* moved on would clobber the registry version, so we lock the button
|
|
103
|
-
* until the user has pulled / resolved. We also gate on `isOnline` so a
|
|
104
|
-
* disconnected client cannot trigger a publish attempt that we know
|
|
105
|
-
* will fail.
|
|
106
|
-
*/
|
|
107
|
-
const canPushActiveDocument = computed(() => isOnline.value && activeVersion.value?.status === "push");
|
|
108
|
-
/**
|
|
109
|
-
* Truthy when *any* trailing action cluster is renderable. Used to gate
|
|
110
|
-
* the leading edge of the header end slot (and the divider against the
|
|
111
|
-
* consumer-provided `header-end` cluster) without re-deriving the same
|
|
112
|
-
* conditions in the template.
|
|
113
|
-
*/
|
|
114
|
-
const hasHeaderActionCluster = computed(() => showLocalSaveActions.value || showTeamSyncActions.value || showTeamPublishAction.value);
|
|
115
|
-
const handleSaveDocument = async () => {
|
|
116
|
-
const slug = app.activeEntities.documentSlug.value;
|
|
117
|
-
if (!slug || !app.store.value) return;
|
|
118
|
-
await app.store.value.saveDocument(slug);
|
|
119
|
-
};
|
|
120
|
-
const handleRevertDocument = async () => {
|
|
121
|
-
const slug = app.activeEntities.documentSlug.value;
|
|
122
|
-
if (!slug || !app.store.value) return;
|
|
123
|
-
await app.store.value.revertDocumentChanges(slug);
|
|
124
|
-
};
|
|
125
|
-
const pendingPullState = ref(null);
|
|
126
|
-
/**
|
|
127
|
-
* Stamp the registry's advertised commit hash onto the active document
|
|
128
|
-
* after a successful pull. Extracted out of `handlePullDocument`
|
|
129
|
-
* because the post-rebase work happens in two different places now:
|
|
130
|
-
* inline when the rebase auto-merges cleanly, and from the conflict
|
|
131
|
-
* modal's `applyChanges` callback once the user has resolved everything
|
|
132
|
-
* by hand.
|
|
133
|
-
*
|
|
134
|
-
* We only update when the listing actually advertised a hash and the
|
|
135
|
-
* meta still has a concrete `version` to write into; otherwise we leave
|
|
136
|
-
* the previous value alone so a missing hash does not erase one we
|
|
137
|
-
* already had.
|
|
138
|
-
*
|
|
139
|
-
* We deliberately do *not* call `saveDocument` here: `rebaseDocument`
|
|
140
|
-
* has already written the merged content to `originalDocuments` and
|
|
141
|
-
* decided whether the document should stay dirty (local edits folded on
|
|
142
|
-
* top of upstream) or clean (pure fast-forward). Calling `saveDocument`
|
|
143
|
-
* would clobber that dirty flag and make the push button disappear
|
|
144
|
-
* whenever a rebase replayed local commits.
|
|
145
|
-
*/
|
|
146
|
-
const stampPostPullCommitHash = (params) => {
|
|
147
|
-
const { meta, slug, incomingCommitHash } = params;
|
|
148
|
-
const store = app.store.value;
|
|
149
|
-
if (!store) return;
|
|
150
|
-
if (!incomingCommitHash || incomingCommitHash === meta.commitHash || !meta.version) return;
|
|
151
|
-
store.updateDocument(slug, "x-scalar-registry-meta", {
|
|
152
|
-
...meta,
|
|
153
|
-
version: meta.version,
|
|
154
|
-
commitHash: incomingCommitHash
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Pulls the active document's latest version from the registry and
|
|
159
|
-
* rebases local edits on top of it.
|
|
160
|
-
*
|
|
161
|
-
* The flow mirrors a `git pull --rebase`:
|
|
162
|
-
* 1. Fetch the upstream snapshot for the active version through the
|
|
163
|
-
* registry adapter.
|
|
164
|
-
* 2. Hand the snapshot to `workspaceStore.rebaseDocument`, which
|
|
165
|
-
* diffs it against the last saved baseline and the in-memory
|
|
166
|
-
* edits so local work is preserved.
|
|
167
|
-
* 3. Apply the auto-merged diffs immediately when the rebase has no
|
|
168
|
-
* conflicts. When `result.conflicts` is non-empty we open the
|
|
169
|
-
* three-way merge editor instead and let the user resolve every
|
|
170
|
-
* conflict by hand; the editor's `applyChanges` callback is what
|
|
171
|
-
* actually commits the rebase in that branch.
|
|
172
|
-
*/
|
|
173
|
-
const handlePullDocument = async () => {
|
|
174
|
-
if (!canPullActiveDocument.value) return;
|
|
175
|
-
const meta = activeRegistryMeta.value;
|
|
176
|
-
const slug = app.activeEntities.documentSlug.value;
|
|
177
|
-
const store = app.store.value;
|
|
178
|
-
if (!meta || !slug || !registry || !store) return;
|
|
179
|
-
const fetched = await registry.fetchDocument({
|
|
180
|
-
namespace: meta.namespace,
|
|
181
|
-
slug: meta.slug,
|
|
182
|
-
version: meta.version
|
|
183
|
-
});
|
|
184
|
-
if (!fetched.ok) {
|
|
185
|
-
toast(messageForFetchError(fetched.error, fetched.message), "error");
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
const result = await store.rebaseDocument({
|
|
189
|
-
name: slug,
|
|
190
|
-
document: fetched.data.document
|
|
191
|
-
});
|
|
192
|
-
const incomingCommitHash = fetched.data.versionSha;
|
|
193
|
-
if (!result.ok) {
|
|
194
|
-
if (result.type === "NO_CHANGES_DETECTED") {
|
|
195
|
-
stampPostPullCommitHash({
|
|
196
|
-
meta,
|
|
197
|
-
slug,
|
|
198
|
-
incomingCommitHash
|
|
199
|
-
});
|
|
200
|
-
app.eventBus.emit("hooks:on:rebase:document:complete", { meta: { documentName: slug } });
|
|
201
|
-
toast("Already up to date with the registry.", "info");
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
if (result.type === "CORRUPTED_STATE") {
|
|
205
|
-
toast("The document state appears to be missing locally. Try reloading the workspace.", "error");
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
toast(`Pull failed: ${result.message}`, "error");
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
if (result.conflicts.length > 0) {
|
|
212
|
-
const originalDocument = store.getOriginalDocument(slug) ?? {};
|
|
213
|
-
pendingPullState.value = {
|
|
214
|
-
rebaseResult: {
|
|
215
|
-
originalDocument,
|
|
216
|
-
resolvedDocument: apply(deepClone(originalDocument), result.changes),
|
|
217
|
-
conflicts: result.conflicts,
|
|
218
|
-
applyChanges: result.applyChanges
|
|
219
|
-
},
|
|
220
|
-
meta,
|
|
221
|
-
slug,
|
|
222
|
-
incomingCommitHash
|
|
223
|
-
};
|
|
224
|
-
syncConflictModalState.show();
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
await result.applyChanges({ resolvedConflicts: [] });
|
|
228
|
-
stampPostPullCommitHash({
|
|
229
|
-
meta,
|
|
230
|
-
slug,
|
|
231
|
-
incomingCommitHash
|
|
232
|
-
});
|
|
233
|
-
app.eventBus.emit("hooks:on:rebase:document:complete", { meta: { documentName: slug } });
|
|
234
|
-
toast("Pulled latest changes from the registry.", "info");
|
|
235
|
-
};
|
|
236
|
-
/**
|
|
237
|
-
* Apply callback wired up to `SyncConflictResolutionEditor`. The user
|
|
238
|
-
* has resolved every conflict at this point, so the merge editor hands
|
|
239
|
-
* us back the fully resolved document. We commit it through the same
|
|
240
|
-
* `applyChanges` the rebase exposed, then stamp the upstream commit
|
|
241
|
-
* hash and toast - exactly like the auto-merge branch above.
|
|
242
|
-
*/
|
|
243
|
-
const handleSyncConflictApplyChanges = async ({ resolvedDocument }) => {
|
|
244
|
-
const pending = pendingPullState.value;
|
|
245
|
-
if (!pending) return;
|
|
246
|
-
await pending.rebaseResult.applyChanges({ resolvedDocument });
|
|
247
|
-
stampPostPullCommitHash({
|
|
248
|
-
meta: pending.meta,
|
|
249
|
-
slug: pending.slug,
|
|
250
|
-
incomingCommitHash: pending.incomingCommitHash
|
|
251
|
-
});
|
|
252
|
-
syncConflictModalState.hide();
|
|
253
|
-
app.eventBus.emit("hooks:on:rebase:document:complete", { meta: { documentName: pending.slug } });
|
|
254
|
-
pendingPullState.value = null;
|
|
255
|
-
toast("Pulled latest changes from the registry.", "info");
|
|
256
|
-
};
|
|
257
|
-
/**
|
|
258
|
-
* Reset the pending pull when the conflict modal closes without an
|
|
259
|
-
* apply. The workspace store only mutates inside `applyChanges`, so
|
|
260
|
-
* dropping the captured rebase result is enough to leave the local
|
|
261
|
-
* document untouched.
|
|
262
|
-
*/
|
|
263
|
-
const handleSyncConflictModalClose = () => {
|
|
264
|
-
pendingPullState.value = null;
|
|
265
|
-
};
|
|
266
|
-
/**
|
|
267
|
-
* Pushes the active document up to the registry as the next commit on
|
|
268
|
-
* the current version.
|
|
269
|
-
*
|
|
270
|
-
* The local `commitHash` is sent along with the publish call so the
|
|
271
|
-
* registry can do optimistic concurrency: a `CONFLICT` response means
|
|
272
|
-
* somebody pushed in the meantime and the user is expected to pull
|
|
273
|
-
* before retrying. On success two writes happen locally:
|
|
274
|
-
*
|
|
275
|
-
* 1. The freshly returned commit hash is stamped onto the active
|
|
276
|
-
* document's `x-scalar-registry-meta` so subsequent sync checks
|
|
277
|
-
* compare against the right base. This write goes through
|
|
278
|
-
* `updateDocument`, which is metadata-only and does not flip the
|
|
279
|
-
* dirty flag.
|
|
280
|
-
* 2. `saveDocument` promotes the active document to the new saved
|
|
281
|
-
* baseline (and clears `x-scalar-is-dirty`), so a later revert
|
|
282
|
-
* restores to the post-push state instead of pre-push edits.
|
|
283
|
-
*/
|
|
284
|
-
const handlePushDocument = async () => {
|
|
285
|
-
if (!canPushActiveDocument.value) return;
|
|
286
|
-
const meta = activeRegistryMeta.value;
|
|
287
|
-
const slug = app.activeEntities.documentSlug.value;
|
|
288
|
-
const store = app.store.value;
|
|
289
|
-
if (!meta || !slug || !registry || !store) return;
|
|
290
|
-
const { namespace, slug: registrySlug, version } = meta;
|
|
291
|
-
if (!version) {
|
|
292
|
-
toast("This document is missing a version - cannot push without one.", "error");
|
|
293
|
-
return;
|
|
294
|
-
}
|
|
295
|
-
const documentBody = await store.getEditableDocument(slug);
|
|
296
|
-
if (!documentBody) {
|
|
297
|
-
toast("Could not read the active document. Please reload and try again.", "error");
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
const result = await registry.publishVersion({
|
|
301
|
-
namespace,
|
|
302
|
-
slug: registrySlug,
|
|
303
|
-
version,
|
|
304
|
-
commitHash: meta.commitHash,
|
|
305
|
-
document: documentBody
|
|
306
|
-
});
|
|
307
|
-
if (!result.ok) {
|
|
308
|
-
if (result.error === "CONFLICT") await registry.refreshDocuments?.();
|
|
309
|
-
toast(messageForPublishVersionError(result.error, result.message), "error");
|
|
310
|
-
return;
|
|
311
|
-
}
|
|
312
|
-
store.updateDocument(slug, "x-scalar-registry-meta", {
|
|
313
|
-
...meta,
|
|
314
|
-
version,
|
|
315
|
-
commitHash: result.data.commitHash
|
|
316
|
-
});
|
|
317
|
-
await store.saveDocument(slug);
|
|
318
|
-
await registry.refreshDocuments?.();
|
|
319
|
-
toast("Pushed changes to the registry.", "info");
|
|
320
|
-
};
|
|
321
|
-
/**
|
|
322
|
-
* Reactive view of the namespaces the user can publish to. Falls back
|
|
323
|
-
* to an empty success state when no adapter is wired up so the publish
|
|
324
|
-
* modal can still mount without `null`-checks.
|
|
325
|
-
*/
|
|
326
|
-
const registryNamespaces = computed(() => registry?.namespaces ?? EMPTY_NAMESPACES_STATE);
|
|
327
|
-
/**
|
|
328
|
-
* Default slug surfaced inside the publish modal. The active document's
|
|
329
|
-
* title is the most recognisable value so we pre-slugify it; the user
|
|
330
|
-
* can still rewrite it before confirming.
|
|
331
|
-
*/
|
|
332
|
-
const publishDefaultSlug = computed(() => {
|
|
333
|
-
const title = app.store.value?.workspace.activeDocument?.info?.title;
|
|
334
|
-
return typeof title === "string" ? title : "";
|
|
335
|
-
});
|
|
336
|
-
/**
|
|
337
|
-
* Default version surfaced inside the publish modal. Mirrors the
|
|
338
|
-
* document's `info.version` when one is set so the form opens
|
|
339
|
-
* pre-filled with what the user has been working with locally.
|
|
340
|
-
*/
|
|
341
|
-
const publishDefaultVersion = computed(() => {
|
|
342
|
-
const value = app.store.value?.workspace.activeDocument?.info?.version;
|
|
343
|
-
return typeof value === "string" && value.trim().length > 0 ? value : "1.0.0";
|
|
344
|
-
});
|
|
345
|
-
/**
|
|
346
|
-
* Opens the publish modal for the active document. The actual publish
|
|
347
|
-
* call happens in `handlePublishDocumentSubmit` once the user has
|
|
348
|
-
* confirmed their inputs.
|
|
349
|
-
*/
|
|
350
|
-
const handlePublishDocument = () => {
|
|
351
|
-
if (!registry) return;
|
|
352
|
-
publishDocumentModalState.show();
|
|
353
|
-
};
|
|
354
|
-
/**
|
|
355
|
-
* Submit handler invoked by the publish modal once the user confirms
|
|
356
|
-
* the namespace, slug, and version. We:
|
|
357
|
-
*
|
|
358
|
-
* 1. Apply the chosen `version` to `info.version` locally so the
|
|
359
|
-
* document we send to the registry already advertises the right
|
|
360
|
-
* version field.
|
|
361
|
-
* 2. Snapshot the editable document and call `registry.publishDocument`
|
|
362
|
-
* with the meta plus the document body.
|
|
363
|
-
* 3. On success: stamp the new registry meta onto the active
|
|
364
|
-
* document and `saveDocument` so it becomes the new baseline. The
|
|
365
|
-
* modal is closed via the `done` callback.
|
|
366
|
-
* 4. On failure: forward the discriminated error code to the modal
|
|
367
|
-
* so the user sees a meaningful inline message and can fix the
|
|
368
|
-
* input without losing what they typed.
|
|
369
|
-
*/
|
|
370
|
-
const handlePublishDocumentSubmit = async ({ input, done }) => {
|
|
371
|
-
const documentSlug = app.activeEntities.documentSlug.value;
|
|
372
|
-
const store = app.store.value;
|
|
373
|
-
if (!registry || !documentSlug || !store) {
|
|
374
|
-
done({
|
|
375
|
-
ok: false,
|
|
376
|
-
message: "Cannot publish - the workspace is not ready yet. Please try again in a moment."
|
|
377
|
-
});
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
const activeDocument = store.workspace.documents[documentSlug];
|
|
381
|
-
if (!activeDocument) {
|
|
382
|
-
done({
|
|
383
|
-
ok: false,
|
|
384
|
-
message: "Could not read the active document. Please reload the workspace and try again."
|
|
385
|
-
});
|
|
386
|
-
return;
|
|
387
|
-
}
|
|
388
|
-
const documentBody = await store.getEditableDocument(documentSlug);
|
|
389
|
-
if (!documentBody) {
|
|
390
|
-
done({
|
|
391
|
-
ok: false,
|
|
392
|
-
message: "Could not read the active document. Please reload the workspace and try again."
|
|
393
|
-
});
|
|
394
|
-
return;
|
|
395
|
-
}
|
|
396
|
-
documentBody.info.version = input.version;
|
|
397
|
-
const result = await registry.publishDocument({
|
|
398
|
-
...input,
|
|
399
|
-
document: documentBody
|
|
400
|
-
});
|
|
401
|
-
if (!result.ok) {
|
|
402
|
-
done({
|
|
403
|
-
ok: false,
|
|
404
|
-
message: messageForPublishDocumentError(result.error, result.message)
|
|
405
|
-
});
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
|
-
activeDocument.info.version = input.version;
|
|
409
|
-
store.updateDocument(documentSlug, "x-scalar-registry-meta", {
|
|
410
|
-
namespace: input.namespace,
|
|
411
|
-
slug: input.slug,
|
|
412
|
-
version: input.version,
|
|
413
|
-
...result.data.commitHash ? { commitHash: result.data.commitHash } : {}
|
|
414
|
-
});
|
|
415
|
-
await store.saveDocument(documentSlug);
|
|
416
|
-
toast(`Published to ${input.namespace}/${input.slug}.`, "info");
|
|
417
|
-
done({ ok: true });
|
|
418
|
-
};
|
|
419
|
-
return {
|
|
420
|
-
showLocalSaveActions,
|
|
421
|
-
showTeamSyncActions,
|
|
422
|
-
showTeamPublishAction,
|
|
423
|
-
hasHeaderActionCluster,
|
|
424
|
-
isActiveDocumentDirty,
|
|
425
|
-
isOnline,
|
|
426
|
-
isOffline,
|
|
427
|
-
canPullActiveDocument,
|
|
428
|
-
canPushActiveDocument,
|
|
429
|
-
publishDocumentModalState,
|
|
430
|
-
syncConflictModalState,
|
|
431
|
-
pendingPullState,
|
|
432
|
-
publishDefaultSlug,
|
|
433
|
-
publishDefaultVersion,
|
|
434
|
-
registryNamespaces,
|
|
435
|
-
handleSaveDocument,
|
|
436
|
-
handleRevertDocument,
|
|
437
|
-
handlePullDocument,
|
|
438
|
-
handlePushDocument,
|
|
439
|
-
handlePublishDocument,
|
|
440
|
-
handlePublishDocumentSubmit,
|
|
441
|
-
handleSyncConflictApplyChanges,
|
|
442
|
-
handleSyncConflictModalClose
|
|
443
|
-
};
|
|
444
|
-
};
|
|
445
|
-
//#endregion
|
|
446
|
-
export { useDocumentSync };
|
|
447
|
-
|
|
448
|
-
//# sourceMappingURL=use-document-sync.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-document-sync.js","names":[],"sources":["../../../../../src/v2/features/app/hooks/use-document-sync.ts"],"sourcesContent":["import { useModal } from '@scalar/components'\nimport { apply, type merge } from '@scalar/json-magic/diff'\nimport { useToasts } from '@scalar/use-toasts'\nimport { deepClone } from '@scalar/workspace-store/helpers/deep-clone'\nimport { type ComputedRef, type Ref, computed, ref } from 'vue'\n\nimport type { AppState } from '@/v2/features/app/app-state'\nimport {\n messageForFetchError,\n messageForPublishDocumentError,\n messageForPublishVersionError,\n} from '@/v2/features/app/helpers/registry-error-messages'\nimport { useActiveDocumentVersion } from '@/v2/features/app/hooks/use-active-document-version'\nimport { useNetworkStatus } from '@/v2/features/app/hooks/use-network-status'\nimport type { RegistryAdapter, RegistryDocumentsState, RegistryNamespacesState } from '@/v2/types/configuration'\n\n/**\n * Default namespaces state surfaced when the host application has not\n * wired a registry adapter up yet. Keeping this as a constant (rather\n * than recomputing every render) lets the publish modal mount with a\n * stable reference and avoids triggering its `watch` for nothing.\n */\nconst EMPTY_NAMESPACES_STATE: RegistryNamespacesState = {\n status: 'success',\n namespaces: [],\n}\n\n/**\n * Registry meta as it was when a pull began. Captures the same shape\n * `activeRegistryMeta` returns so we can hand it to the post-pull\n * commit-hash stamp without re-deriving (and possibly missing) it once\n * the rebase has finished mutating the active document.\n */\ntype PendingPullRegistryMeta = NonNullable<ReturnType<typeof useActiveDocumentVersion>['activeRegistryMeta']['value']>\n\n/**\n * In-flight pull state captured while the three-way merge editor is on\n * screen. We need to hold onto the rebase result (so the user-resolved\n * document can still be applied), the registry meta and slug we were\n * pulling against, and the upstream commit hash advertised by the\n * listing - none of those are reachable from inside the conflict\n * modal once the surrounding closure has unwound.\n *\n * `null` while no pull is awaiting user input. The modal-close handler\n * resets it so a dismissed pull cleanly aborts without applying any\n * changes (the workspace store only mutates when `applyChanges` is\n * actually invoked).\n */\ntype PendingPullState = {\n rebaseResult: {\n originalDocument: Record<string, unknown>\n resolvedDocument: Record<string, unknown>\n conflicts: ReturnType<typeof merge>['conflicts']\n applyChanges: (input: { resolvedDocument: Record<string, unknown> }) => Promise<void>\n }\n meta: PendingPullRegistryMeta\n slug: string\n incomingCommitHash: string | undefined\n}\n\n/**\n * Owns the document-level sync flow for the API client header: save,\n * revert, pull, push, and first-time publish. The top-level `App.vue`\n * was accumulating all five flows alongside its routing / layout glue,\n * which made the file hard to reason about in isolation - extracting\n * the registry-bound logic into a single hook keeps the component\n * declarative and gives the flow a single place to test against.\n *\n * The hook owns:\n * - the visibility computeds for each header action cluster,\n * - the network-aware enable / disable gates (`canPullActiveDocument`,\n * `canPushActiveDocument`),\n * - the modal states for the publish + sync-conflict flows,\n * - the pending pull state captured while the three-way merge editor\n * is open,\n * - and every async handler invoked from the header buttons / modals.\n */\nexport const useDocumentSync = ({\n app,\n registry,\n registryDocuments,\n}: {\n app: AppState\n /** Registry adapter wired up by the host application; `undefined` when registry features are disabled. */\n registry: RegistryAdapter | undefined\n /** Reactive accessor — components pass a getter so the hook stays prop-driven. */\n registryDocuments: () => RegistryDocumentsState\n}): {\n /** Whether the local-workspace Save / Revert cluster should mount. */\n showLocalSaveActions: ComputedRef<boolean>\n /** Whether the team-workspace Pull / Push cluster should mount. */\n showTeamSyncActions: ComputedRef<boolean>\n /** Whether the team-workspace Publish cluster (no registry meta yet) should mount. */\n showTeamPublishAction: ComputedRef<boolean>\n /** Truthy when at least one of the action clusters is renderable. */\n hasHeaderActionCluster: ComputedRef<boolean>\n /** Whether the active document has unsaved local edits. */\n isActiveDocumentDirty: ComputedRef<boolean>\n /** Reactive online status. */\n isOnline: Ref<boolean>\n /** Reactive offline status (inverse of `isOnline`). */\n isOffline: ComputedRef<boolean>\n /** Whether the pull button should be clickable. */\n canPullActiveDocument: ComputedRef<boolean>\n /** Whether the push button should be clickable. */\n canPushActiveDocument: ComputedRef<boolean>\n /** Modal state for the first-time publish modal. */\n publishDocumentModalState: ReturnType<typeof useModal>\n /** Modal state for the three-way merge editor. */\n syncConflictModalState: ReturnType<typeof useModal>\n /** In-flight pull state shared with the three-way merge editor. */\n pendingPullState: Ref<PendingPullState | null>\n /** Default slug pre-filled into the publish modal. */\n publishDefaultSlug: ComputedRef<string>\n /** Default version pre-filled into the publish modal. */\n publishDefaultVersion: ComputedRef<string>\n /** Reactive view of the namespaces the user can publish to. */\n registryNamespaces: ComputedRef<RegistryNamespacesState>\n /** Persists local edits on the active document. */\n handleSaveDocument: () => Promise<void>\n /** Discards local edits and restores the saved baseline. */\n handleRevertDocument: () => Promise<void>\n /** Pulls the active document from the registry and rebases local edits. */\n handlePullDocument: () => Promise<void>\n /** Publishes the active document as the next commit on the current registry version. */\n handlePushDocument: () => Promise<void>\n /** Opens the publish modal for the active document. */\n handlePublishDocument: () => void\n /** Submit handler invoked by the publish modal once the user confirms their inputs. */\n handlePublishDocumentSubmit: (params: {\n input: { namespace: string; slug: string; version: string }\n done: (outcome: { ok: true } | { ok: false; message: string }) => void\n }) => Promise<void>\n /** Apply callback wired up to the three-way merge editor. */\n handleSyncConflictApplyChanges: (params: { resolvedDocument: Record<string, unknown> }) => Promise<void>\n /** Reset the pending pull when the conflict modal closes without an apply. */\n handleSyncConflictModalClose: () => void\n} => {\n const { toast } = useToasts()\n\n /**\n * Resolves the registry meta and sync status for the active document.\n * The breadcrumb already drives this composable for its version picker;\n * we reuse it here so the header action cluster reads from exactly the\n * same `pull` / `push` / `synced` source of truth that the picker rows\n * and the inline status icons do.\n */\n const { activeRegistryMeta, activeVersion } = useActiveDocumentVersion({\n app,\n registryDocuments,\n })\n\n const publishDocumentModalState = useModal()\n const syncConflictModalState = useModal()\n\n /** Whether the route currently resolves to a document. */\n const hasActiveDocument = computed(() => Boolean(app.activeEntities.documentSlug.value))\n\n /** Whether the active document has unsaved local edits. */\n const isActiveDocumentDirty = computed(\n () => app.store.value?.workspace.activeDocument?.['x-scalar-is-dirty'] === true,\n )\n\n /**\n * Save / Revert cluster for local workspaces. Mirrors the save-prompt UX\n * of the document collection page: Save is always mounted while a doc is\n * active and gets disabled when there is nothing to persist; Revert only\n * shows up while the document is dirty.\n */\n const showLocalSaveActions = computed(() => !app.workspace.isTeamWorkspace.value && hasActiveDocument.value)\n\n /**\n * Pull / Push cluster for team workspace documents that already have a\n * registry relationship. The same `Revert` button as local workspaces\n * sits in front of it so a dirty document can be discarded without going\n * through the registry round-trip.\n */\n const showTeamSyncActions = computed(\n () => app.workspace.isTeamWorkspace.value && hasActiveDocument.value && Boolean(activeRegistryMeta.value),\n )\n\n /**\n * Publish cluster for team workspace documents that do not yet have a\n * registry entry. We surface it as a single \"Publish\" affordance instead\n * of the Pull / Push pair because there is no upstream version to sync\n * against - the action is simply \"create the registry version\".\n */\n const showTeamPublishAction = computed(\n () => app.workspace.isTeamWorkspace.value && hasActiveDocument.value && !activeRegistryMeta.value,\n )\n\n /**\n * Reactive online / offline status for the browser. Registry-bound\n * actions (Pull, Push, Publish) all need a live network connection, so\n * we surface a single source of truth here and let the per-action\n * `canX` computeds AND the icon swaps below consume it.\n */\n const { isOnline, isOffline } = useNetworkStatus()\n\n /**\n * Pull is enabled while the registry advertises a different commit hash\n * than the local one, regardless of whether the local document is dirty.\n * `conflict` is treated the same as `pull` here so the user can always\n * reach the conflict-resolution flow from the header. We additionally\n * gate on `isOnline` so the button stops responding the moment the\n * browser reports an offline transition - any click we accepted would\n * fail the `fetchDocument` adapter call anyway.\n */\n const canPullActiveDocument = computed(() => {\n if (!isOnline.value) {\n return false\n }\n const status = activeVersion.value?.status\n return status === 'pull' || status === 'conflict'\n })\n\n /**\n * Push is only enabled when the document is dirty *and* there are no\n * upstream changes - mirroring `computeVersionStatus`'s `'push'` outcome,\n * which already encodes that combination. Pushing while upstream has\n * moved on would clobber the registry version, so we lock the button\n * until the user has pulled / resolved. We also gate on `isOnline` so a\n * disconnected client cannot trigger a publish attempt that we know\n * will fail.\n */\n const canPushActiveDocument = computed(() => isOnline.value && activeVersion.value?.status === 'push')\n\n /**\n * Truthy when *any* trailing action cluster is renderable. Used to gate\n * the leading edge of the header end slot (and the divider against the\n * consumer-provided `header-end` cluster) without re-deriving the same\n * conditions in the template.\n */\n const hasHeaderActionCluster = computed(\n () => showLocalSaveActions.value || showTeamSyncActions.value || showTeamPublishAction.value,\n )\n\n const handleSaveDocument = async (): Promise<void> => {\n const slug = app.activeEntities.documentSlug.value\n if (!slug || !app.store.value) {\n return\n }\n await app.store.value.saveDocument(slug)\n }\n\n const handleRevertDocument = async (): Promise<void> => {\n const slug = app.activeEntities.documentSlug.value\n if (!slug || !app.store.value) {\n return\n }\n await app.store.value.revertDocumentChanges(slug)\n }\n\n const pendingPullState = ref<PendingPullState | null>(null)\n\n /**\n * Stamp the registry's advertised commit hash onto the active document\n * after a successful pull. Extracted out of `handlePullDocument`\n * because the post-rebase work happens in two different places now:\n * inline when the rebase auto-merges cleanly, and from the conflict\n * modal's `applyChanges` callback once the user has resolved everything\n * by hand.\n *\n * We only update when the listing actually advertised a hash and the\n * meta still has a concrete `version` to write into; otherwise we leave\n * the previous value alone so a missing hash does not erase one we\n * already had.\n *\n * We deliberately do *not* call `saveDocument` here: `rebaseDocument`\n * has already written the merged content to `originalDocuments` and\n * decided whether the document should stay dirty (local edits folded on\n * top of upstream) or clean (pure fast-forward). Calling `saveDocument`\n * would clobber that dirty flag and make the push button disappear\n * whenever a rebase replayed local commits.\n */\n const stampPostPullCommitHash = (params: {\n meta: PendingPullRegistryMeta\n slug: string\n incomingCommitHash: string | undefined\n }): void => {\n const { meta, slug, incomingCommitHash } = params\n const store = app.store.value\n if (!store) {\n return\n }\n if (!incomingCommitHash || incomingCommitHash === meta.commitHash || !meta.version) {\n return\n }\n store.updateDocument(slug, 'x-scalar-registry-meta', {\n ...meta,\n version: meta.version,\n commitHash: incomingCommitHash,\n })\n }\n\n /**\n * Pulls the active document's latest version from the registry and\n * rebases local edits on top of it.\n *\n * The flow mirrors a `git pull --rebase`:\n * 1. Fetch the upstream snapshot for the active version through the\n * registry adapter.\n * 2. Hand the snapshot to `workspaceStore.rebaseDocument`, which\n * diffs it against the last saved baseline and the in-memory\n * edits so local work is preserved.\n * 3. Apply the auto-merged diffs immediately when the rebase has no\n * conflicts. When `result.conflicts` is non-empty we open the\n * three-way merge editor instead and let the user resolve every\n * conflict by hand; the editor's `applyChanges` callback is what\n * actually commits the rebase in that branch.\n */\n const handlePullDocument = async (): Promise<void> => {\n // ScalarButton renders `:disabled` as `aria-disabled` only - the\n // underlying element still receives clicks - so we mirror the same\n // gate the button reads from to block accidental triggers (offline,\n // already up to date, or no active version).\n if (!canPullActiveDocument.value) {\n return\n }\n const meta = activeRegistryMeta.value\n const slug = app.activeEntities.documentSlug.value\n const store = app.store.value\n if (!meta || !slug || !registry || !store) {\n return\n }\n\n const fetched = await registry.fetchDocument({\n namespace: meta.namespace,\n slug: meta.slug,\n version: meta.version,\n })\n if (!fetched.ok) {\n toast(messageForFetchError(fetched.error, fetched.message), 'error')\n return\n }\n\n // Feed the fetched document inline so `rebaseDocument` skips its own\n // network round-trip and treats the registry response as the new\n // upstream baseline.\n const result = await store.rebaseDocument({\n name: slug,\n document: fetched.data.document,\n })\n\n // Snapshot the registry-advertised hash before we kick off the fetch.\n // The version listing is the source of truth for \"what hash we are\n // pulling against\" - the per-document fetch payload itself does not\n // carry one - and `activeVersion` may re-derive once `rebaseDocument`\n // mutates the active document, so we capture it up front.\n const incomingCommitHash = fetched.data.versionSha\n\n if (!result.ok) {\n if (result.type === 'NO_CHANGES_DETECTED') {\n // Already up to date payload-wise. Still refresh the commit hash\n // because the listing might advertise a re-encoded hash even when\n // the bytes are identical, so the sync indicator can clear.\n stampPostPullCommitHash({ meta, slug, incomingCommitHash })\n // External consumers subscribe to this hook to react to any\n // rebase landing on the active document - including the no-op\n // case where local matched upstream - so we keep the emit on\n // this branch in line with the legacy `DocumentCollection.vue`\n // sync flow.\n app.eventBus.emit('hooks:on:rebase:document:complete', {\n meta: { documentName: slug },\n })\n toast('Already up to date with the registry.', 'info')\n return\n }\n if (result.type === 'CORRUPTED_STATE') {\n toast('The document state appears to be missing locally. Try reloading the workspace.', 'error')\n return\n }\n toast(`Pull failed: ${result.message}`, 'error')\n return\n }\n\n // Conflicts: stash everything we will need after the user has\n // resolved them and hand control to the three-way merge editor. The\n // commit-hash stamp and the success toast happen from the modal's\n // apply callback, mirroring the auto-merge branch below.\n if (result.conflicts.length > 0) {\n const originalDocument = store.getOriginalDocument(slug) ?? {}\n pendingPullState.value = {\n rebaseResult: {\n originalDocument,\n resolvedDocument: apply(deepClone(originalDocument), result.changes),\n conflicts: result.conflicts,\n applyChanges: result.applyChanges,\n },\n meta,\n slug,\n incomingCommitHash,\n }\n syncConflictModalState.show()\n return\n }\n\n // No conflicts: apply the auto-merged diffs directly.\n await result.applyChanges({ resolvedConflicts: [] })\n\n stampPostPullCommitHash({ meta, slug, incomingCommitHash })\n\n // Public lifecycle hook for downstream consumers (analytics, custom\n // refresh logic, ...). Emitted after the rebase has been committed\n // and the post-pull commit hash has been stamped so any handler\n // re-reading the active document sees the post-rebase state.\n app.eventBus.emit('hooks:on:rebase:document:complete', {\n meta: { documentName: slug },\n })\n\n toast('Pulled latest changes from the registry.', 'info')\n }\n\n /**\n * Apply callback wired up to `SyncConflictResolutionEditor`. The user\n * has resolved every conflict at this point, so the merge editor hands\n * us back the fully resolved document. We commit it through the same\n * `applyChanges` the rebase exposed, then stamp the upstream commit\n * hash and toast - exactly like the auto-merge branch above.\n */\n const handleSyncConflictApplyChanges = async ({\n resolvedDocument,\n }: {\n resolvedDocument: Record<string, unknown>\n }): Promise<void> => {\n const pending = pendingPullState.value\n if (!pending) {\n return\n }\n\n await pending.rebaseResult.applyChanges({ resolvedDocument })\n stampPostPullCommitHash({\n meta: pending.meta,\n slug: pending.slug,\n incomingCommitHash: pending.incomingCommitHash,\n })\n\n syncConflictModalState.hide()\n // Mirror the auto-merge branch above: external listeners subscribe\n // to this hook to react to any successful rebase, regardless of\n // whether the user had to resolve conflicts to get there.\n app.eventBus.emit('hooks:on:rebase:document:complete', {\n meta: { documentName: pending.slug },\n })\n pendingPullState.value = null\n\n toast('Pulled latest changes from the registry.', 'info')\n }\n\n /**\n * Reset the pending pull when the conflict modal closes without an\n * apply. The workspace store only mutates inside `applyChanges`, so\n * dropping the captured rebase result is enough to leave the local\n * document untouched.\n */\n const handleSyncConflictModalClose = (): void => {\n pendingPullState.value = null\n }\n\n /**\n * Pushes the active document up to the registry as the next commit on\n * the current version.\n *\n * The local `commitHash` is sent along with the publish call so the\n * registry can do optimistic concurrency: a `CONFLICT` response means\n * somebody pushed in the meantime and the user is expected to pull\n * before retrying. On success two writes happen locally:\n *\n * 1. The freshly returned commit hash is stamped onto the active\n * document's `x-scalar-registry-meta` so subsequent sync checks\n * compare against the right base. This write goes through\n * `updateDocument`, which is metadata-only and does not flip the\n * dirty flag.\n * 2. `saveDocument` promotes the active document to the new saved\n * baseline (and clears `x-scalar-is-dirty`), so a later revert\n * restores to the post-push state instead of pre-push edits.\n */\n const handlePushDocument = async (): Promise<void> => {\n // Same `aria-disabled`-only caveat as Pull: short-circuit on the\n // computed gate so a click on a visually disabled button cannot\n // sneak past and hit the registry adapter.\n if (!canPushActiveDocument.value) {\n return\n }\n const meta = activeRegistryMeta.value\n const slug = app.activeEntities.documentSlug.value\n const store = app.store.value\n if (!meta || !slug || !registry || !store) {\n return\n }\n\n // `version` is required on the registry meta schema but the surrounding\n // composable types it as optional, so we narrow it explicitly here.\n const { namespace, slug: registrySlug, version } = meta\n if (!version) {\n toast('This document is missing a version - cannot push without one.', 'error')\n return\n }\n\n // `commitHash` is intentionally allowed to be missing here. A\n // brand-new local version (e.g. one the user just created against an\n // existing registry document) has no upstream hash yet, so we forward\n // `undefined` to the registry and let it skip the optimistic\n // concurrency check for this first push. Subsequent pushes get\n // anchored once the registry hands back the new hash below.\n\n // Snapshot the editable document so the registry receives the\n // current in-memory state - this is what the user just confirmed they\n // want to push, before `saveDocument` rewrites the baseline.\n const documentBody = await store.getEditableDocument(slug)\n if (!documentBody) {\n toast('Could not read the active document. Please reload and try again.', 'error')\n return\n }\n\n const result = await registry.publishVersion({\n namespace,\n slug: registrySlug,\n version,\n commitHash: meta.commitHash,\n document: documentBody as Record<string, unknown>,\n })\n if (!result.ok) {\n // CONFLICT means our local commit hash is stale - somebody pushed\n // in the meantime. Force a registry-listing refresh so the\n // host's cache picks up the new upstream commit hash; once that\n // lands `computeVersionStatus` will see `localHash !== registryHash`\n // and naturally flip the Pull button on, no separate \"needs pull\"\n // overlay required. The host adapter is free to skip the hook\n // (it is optional), in which case the user falls back to waiting\n // for the listing's normal refetch interval.\n if (result.error === 'CONFLICT') {\n await registry.refreshDocuments?.()\n }\n toast(messageForPublishVersionError(result.error, result.message), 'error')\n return\n }\n\n // Stamp the new commit hash before saving so the freshly published\n // hash is part of the new baseline.\n store.updateDocument(slug, 'x-scalar-registry-meta', {\n ...meta,\n version,\n commitHash: result.data.commitHash,\n })\n\n await store.saveDocument(slug)\n\n // Ask the host to refetch its registry listing so the cached\n // registry commit hash catches up with the one we just wrote\n // locally. Without this, `computeVersionStatus` compares our fresh\n // `localHash` against the stale listing hash, concludes the hashes\n // diverged, and re-enables the Pull button right after a successful\n // push. Mirrors the CONFLICT branch above; the hook is optional so\n // hosts that do not wire it up simply wait for the next poll.\n await registry.refreshDocuments?.()\n\n toast('Pushed changes to the registry.', 'info')\n }\n\n /**\n * Reactive view of the namespaces the user can publish to. Falls back\n * to an empty success state when no adapter is wired up so the publish\n * modal can still mount without `null`-checks.\n */\n const registryNamespaces = computed<RegistryNamespacesState>(() => registry?.namespaces ?? EMPTY_NAMESPACES_STATE)\n\n /**\n * Default slug surfaced inside the publish modal. The active document's\n * title is the most recognisable value so we pre-slugify it; the user\n * can still rewrite it before confirming.\n */\n const publishDefaultSlug = computed(() => {\n const title = app.store.value?.workspace.activeDocument?.info?.title\n return typeof title === 'string' ? title : ''\n })\n\n /**\n * Default version surfaced inside the publish modal. Mirrors the\n * document's `info.version` when one is set so the form opens\n * pre-filled with what the user has been working with locally.\n */\n const publishDefaultVersion = computed(() => {\n const value = app.store.value?.workspace.activeDocument?.info?.version\n return typeof value === 'string' && value.trim().length > 0 ? value : '1.0.0'\n })\n\n /**\n * Opens the publish modal for the active document. The actual publish\n * call happens in `handlePublishDocumentSubmit` once the user has\n * confirmed their inputs.\n */\n const handlePublishDocument = (): void => {\n if (!registry) {\n return\n }\n publishDocumentModalState.show()\n }\n\n /**\n * Submit handler invoked by the publish modal once the user confirms\n * the namespace, slug, and version. We:\n *\n * 1. Apply the chosen `version` to `info.version` locally so the\n * document we send to the registry already advertises the right\n * version field.\n * 2. Snapshot the editable document and call `registry.publishDocument`\n * with the meta plus the document body.\n * 3. On success: stamp the new registry meta onto the active\n * document and `saveDocument` so it becomes the new baseline. The\n * modal is closed via the `done` callback.\n * 4. On failure: forward the discriminated error code to the modal\n * so the user sees a meaningful inline message and can fix the\n * input without losing what they typed.\n */\n const handlePublishDocumentSubmit = async ({\n input,\n done,\n }: {\n input: { namespace: string; slug: string; version: string }\n done: (outcome: { ok: true } | { ok: false; message: string }) => void\n }): Promise<void> => {\n const documentSlug = app.activeEntities.documentSlug.value\n const store = app.store.value\n if (!registry || !documentSlug || !store) {\n done({\n ok: false,\n message: 'Cannot publish - the workspace is not ready yet. Please try again in a moment.',\n })\n return\n }\n\n // Mirror the chosen version onto `info.version` BEFORE snapshotting\n // the document so the registry receives a body whose `info.version`\n // already matches what the modal advertised. We write the field\n // directly (rather than replacing the whole `info` object) to keep\n // the workspace store's reactive proxy intact for any other\n // subscribers watching `info.title`, contact info, etc.\n const activeDocument = store.workspace.documents[documentSlug]\n if (!activeDocument) {\n done({\n ok: false,\n message: 'Could not read the active document. Please reload the workspace and try again.',\n })\n return\n }\n\n const documentBody = await store.getEditableDocument(documentSlug)\n if (!documentBody) {\n done({\n ok: false,\n message: 'Could not read the active document. Please reload the workspace and try again.',\n })\n return\n }\n\n // Update the document version of the document body (this is not the actual active document but a deep clone)\n documentBody.info.version = input.version\n\n const result = await registry.publishDocument({\n ...input,\n document: documentBody as Record<string, unknown>,\n })\n if (!result.ok) {\n done({\n ok: false,\n message: messageForPublishDocumentError(result.error, result.message),\n })\n return\n }\n\n // Now update the actual active document version with the new version\n activeDocument.info.version = input.version\n\n // Stamp the registry meta on the active document. The registry may\n // or may not have advertised a commit hash for the freshly created\n // entry; persist it when present so subsequent sync checks compare\n // against the right base.\n store.updateDocument(documentSlug, 'x-scalar-registry-meta', {\n namespace: input.namespace,\n slug: input.slug,\n version: input.version,\n ...(result.data.commitHash ? { commitHash: result.data.commitHash } : {}),\n })\n\n await store.saveDocument(documentSlug)\n\n toast(`Published to ${input.namespace}/${input.slug}.`, 'info')\n done({ ok: true })\n }\n\n return {\n showLocalSaveActions,\n showTeamSyncActions,\n showTeamPublishAction,\n hasHeaderActionCluster,\n isActiveDocumentDirty,\n isOnline,\n isOffline,\n canPullActiveDocument,\n canPushActiveDocument,\n publishDocumentModalState,\n syncConflictModalState,\n pendingPullState,\n publishDefaultSlug,\n publishDefaultVersion,\n registryNamespaces,\n handleSaveDocument,\n handleRevertDocument,\n handlePullDocument,\n handlePushDocument,\n handlePublishDocument,\n handlePublishDocumentSubmit,\n handleSyncConflictApplyChanges,\n handleSyncConflictModalClose,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAsBA,IAAM,yBAAkD;CACtD,QAAQ;CACR,YAAY,EAAE;CACf;;;;;;;;;;;;;;;;;;AAoDD,IAAa,mBAAmB,EAC9B,KACA,UACA,wBAyDG;CACH,MAAM,EAAE,UAAU,WAAW;;;;;;;;CAS7B,MAAM,EAAE,oBAAoB,kBAAkB,yBAAyB;EACrE;EACA;EACD,CAAC;CAEF,MAAM,4BAA4B,UAAU;CAC5C,MAAM,yBAAyB,UAAU;;CAGzC,MAAM,oBAAoB,eAAe,QAAQ,IAAI,eAAe,aAAa,MAAM,CAAC;;CAGxF,MAAM,wBAAwB,eACtB,IAAI,MAAM,OAAO,UAAU,iBAAiB,yBAAyB,KAC5E;;;;;;;CAQD,MAAM,uBAAuB,eAAe,CAAC,IAAI,UAAU,gBAAgB,SAAS,kBAAkB,MAAM;;;;;;;CAQ5G,MAAM,sBAAsB,eACpB,IAAI,UAAU,gBAAgB,SAAS,kBAAkB,SAAS,QAAQ,mBAAmB,MAAM,CAC1G;;;;;;;CAQD,MAAM,wBAAwB,eACtB,IAAI,UAAU,gBAAgB,SAAS,kBAAkB,SAAS,CAAC,mBAAmB,MAC7F;;;;;;;CAQD,MAAM,EAAE,UAAU,cAAc,kBAAkB;;;;;;;;;;CAWlD,MAAM,wBAAwB,eAAe;AAC3C,MAAI,CAAC,SAAS,MACZ,QAAO;EAET,MAAM,SAAS,cAAc,OAAO;AACpC,SAAO,WAAW,UAAU,WAAW;GACvC;;;;;;;;;;CAWF,MAAM,wBAAwB,eAAe,SAAS,SAAS,cAAc,OAAO,WAAW,OAAO;;;;;;;CAQtG,MAAM,yBAAyB,eACvB,qBAAqB,SAAS,oBAAoB,SAAS,sBAAsB,MACxF;CAED,MAAM,qBAAqB,YAA2B;EACpD,MAAM,OAAO,IAAI,eAAe,aAAa;AAC7C,MAAI,CAAC,QAAQ,CAAC,IAAI,MAAM,MACtB;AAEF,QAAM,IAAI,MAAM,MAAM,aAAa,KAAK;;CAG1C,MAAM,uBAAuB,YAA2B;EACtD,MAAM,OAAO,IAAI,eAAe,aAAa;AAC7C,MAAI,CAAC,QAAQ,CAAC,IAAI,MAAM,MACtB;AAEF,QAAM,IAAI,MAAM,MAAM,sBAAsB,KAAK;;CAGnD,MAAM,mBAAmB,IAA6B,KAAK;;;;;;;;;;;;;;;;;;;;;CAsB3D,MAAM,2BAA2B,WAIrB;EACV,MAAM,EAAE,MAAM,MAAM,uBAAuB;EAC3C,MAAM,QAAQ,IAAI,MAAM;AACxB,MAAI,CAAC,MACH;AAEF,MAAI,CAAC,sBAAsB,uBAAuB,KAAK,cAAc,CAAC,KAAK,QACzE;AAEF,QAAM,eAAe,MAAM,0BAA0B;GACnD,GAAG;GACH,SAAS,KAAK;GACd,YAAY;GACb,CAAC;;;;;;;;;;;;;;;;;;CAmBJ,MAAM,qBAAqB,YAA2B;AAKpD,MAAI,CAAC,sBAAsB,MACzB;EAEF,MAAM,OAAO,mBAAmB;EAChC,MAAM,OAAO,IAAI,eAAe,aAAa;EAC7C,MAAM,QAAQ,IAAI,MAAM;AACxB,MAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,MAClC;EAGF,MAAM,UAAU,MAAM,SAAS,cAAc;GAC3C,WAAW,KAAK;GAChB,MAAM,KAAK;GACX,SAAS,KAAK;GACf,CAAC;AACF,MAAI,CAAC,QAAQ,IAAI;AACf,SAAM,qBAAqB,QAAQ,OAAO,QAAQ,QAAQ,EAAE,QAAQ;AACpE;;EAMF,MAAM,SAAS,MAAM,MAAM,eAAe;GACxC,MAAM;GACN,UAAU,QAAQ,KAAK;GACxB,CAAC;EAOF,MAAM,qBAAqB,QAAQ,KAAK;AAExC,MAAI,CAAC,OAAO,IAAI;AACd,OAAI,OAAO,SAAS,uBAAuB;AAIzC,4BAAwB;KAAE;KAAM;KAAM;KAAoB,CAAC;AAM3D,QAAI,SAAS,KAAK,qCAAqC,EACrD,MAAM,EAAE,cAAc,MAAM,EAC7B,CAAC;AACF,UAAM,yCAAyC,OAAO;AACtD;;AAEF,OAAI,OAAO,SAAS,mBAAmB;AACrC,UAAM,kFAAkF,QAAQ;AAChG;;AAEF,SAAM,gBAAgB,OAAO,WAAW,QAAQ;AAChD;;AAOF,MAAI,OAAO,UAAU,SAAS,GAAG;GAC/B,MAAM,mBAAmB,MAAM,oBAAoB,KAAK,IAAI,EAAE;AAC9D,oBAAiB,QAAQ;IACvB,cAAc;KACZ;KACA,kBAAkB,MAAM,UAAU,iBAAiB,EAAE,OAAO,QAAQ;KACpE,WAAW,OAAO;KAClB,cAAc,OAAO;KACtB;IACD;IACA;IACA;IACD;AACD,0BAAuB,MAAM;AAC7B;;AAIF,QAAM,OAAO,aAAa,EAAE,mBAAmB,EAAE,EAAE,CAAC;AAEpD,0BAAwB;GAAE;GAAM;GAAM;GAAoB,CAAC;AAM3D,MAAI,SAAS,KAAK,qCAAqC,EACrD,MAAM,EAAE,cAAc,MAAM,EAC7B,CAAC;AAEF,QAAM,4CAA4C,OAAO;;;;;;;;;CAU3D,MAAM,iCAAiC,OAAO,EAC5C,uBAGmB;EACnB,MAAM,UAAU,iBAAiB;AACjC,MAAI,CAAC,QACH;AAGF,QAAM,QAAQ,aAAa,aAAa,EAAE,kBAAkB,CAAC;AAC7D,0BAAwB;GACtB,MAAM,QAAQ;GACd,MAAM,QAAQ;GACd,oBAAoB,QAAQ;GAC7B,CAAC;AAEF,yBAAuB,MAAM;AAI7B,MAAI,SAAS,KAAK,qCAAqC,EACrD,MAAM,EAAE,cAAc,QAAQ,MAAM,EACrC,CAAC;AACF,mBAAiB,QAAQ;AAEzB,QAAM,4CAA4C,OAAO;;;;;;;;CAS3D,MAAM,qCAA2C;AAC/C,mBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;;CAqB3B,MAAM,qBAAqB,YAA2B;AAIpD,MAAI,CAAC,sBAAsB,MACzB;EAEF,MAAM,OAAO,mBAAmB;EAChC,MAAM,OAAO,IAAI,eAAe,aAAa;EAC7C,MAAM,QAAQ,IAAI,MAAM;AACxB,MAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,MAClC;EAKF,MAAM,EAAE,WAAW,MAAM,cAAc,YAAY;AACnD,MAAI,CAAC,SAAS;AACZ,SAAM,iEAAiE,QAAQ;AAC/E;;EAaF,MAAM,eAAe,MAAM,MAAM,oBAAoB,KAAK;AAC1D,MAAI,CAAC,cAAc;AACjB,SAAM,oEAAoE,QAAQ;AAClF;;EAGF,MAAM,SAAS,MAAM,SAAS,eAAe;GAC3C;GACA,MAAM;GACN;GACA,YAAY,KAAK;GACjB,UAAU;GACX,CAAC;AACF,MAAI,CAAC,OAAO,IAAI;AASd,OAAI,OAAO,UAAU,WACnB,OAAM,SAAS,oBAAoB;AAErC,SAAM,8BAA8B,OAAO,OAAO,OAAO,QAAQ,EAAE,QAAQ;AAC3E;;AAKF,QAAM,eAAe,MAAM,0BAA0B;GACnD,GAAG;GACH;GACA,YAAY,OAAO,KAAK;GACzB,CAAC;AAEF,QAAM,MAAM,aAAa,KAAK;AAS9B,QAAM,SAAS,oBAAoB;AAEnC,QAAM,mCAAmC,OAAO;;;;;;;CAQlD,MAAM,qBAAqB,eAAwC,UAAU,cAAc,uBAAuB;;;;;;CAOlH,MAAM,qBAAqB,eAAe;EACxC,MAAM,QAAQ,IAAI,MAAM,OAAO,UAAU,gBAAgB,MAAM;AAC/D,SAAO,OAAO,UAAU,WAAW,QAAQ;GAC3C;;;;;;CAOF,MAAM,wBAAwB,eAAe;EAC3C,MAAM,QAAQ,IAAI,MAAM,OAAO,UAAU,gBAAgB,MAAM;AAC/D,SAAO,OAAO,UAAU,YAAY,MAAM,MAAM,CAAC,SAAS,IAAI,QAAQ;GACtE;;;;;;CAOF,MAAM,8BAAoC;AACxC,MAAI,CAAC,SACH;AAEF,4BAA0B,MAAM;;;;;;;;;;;;;;;;;;CAmBlC,MAAM,8BAA8B,OAAO,EACzC,OACA,WAImB;EACnB,MAAM,eAAe,IAAI,eAAe,aAAa;EACrD,MAAM,QAAQ,IAAI,MAAM;AACxB,MAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,OAAO;AACxC,QAAK;IACH,IAAI;IACJ,SAAS;IACV,CAAC;AACF;;EASF,MAAM,iBAAiB,MAAM,UAAU,UAAU;AACjD,MAAI,CAAC,gBAAgB;AACnB,QAAK;IACH,IAAI;IACJ,SAAS;IACV,CAAC;AACF;;EAGF,MAAM,eAAe,MAAM,MAAM,oBAAoB,aAAa;AAClE,MAAI,CAAC,cAAc;AACjB,QAAK;IACH,IAAI;IACJ,SAAS;IACV,CAAC;AACF;;AAIF,eAAa,KAAK,UAAU,MAAM;EAElC,MAAM,SAAS,MAAM,SAAS,gBAAgB;GAC5C,GAAG;GACH,UAAU;GACX,CAAC;AACF,MAAI,CAAC,OAAO,IAAI;AACd,QAAK;IACH,IAAI;IACJ,SAAS,+BAA+B,OAAO,OAAO,OAAO,QAAQ;IACtE,CAAC;AACF;;AAIF,iBAAe,KAAK,UAAU,MAAM;AAMpC,QAAM,eAAe,cAAc,0BAA0B;GAC3D,WAAW,MAAM;GACjB,MAAM,MAAM;GACZ,SAAS,MAAM;GACf,GAAI,OAAO,KAAK,aAAa,EAAE,YAAY,OAAO,KAAK,YAAY,GAAG,EAAE;GACzE,CAAC;AAEF,QAAM,MAAM,aAAa,aAAa;AAEtC,QAAM,gBAAgB,MAAM,UAAU,GAAG,MAAM,KAAK,IAAI,OAAO;AAC/D,OAAK,EAAE,IAAI,MAAM,CAAC;;AAGpB,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
-
import { type MaybeRefOrGetter } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* Watches the specified document in the workspace store and periodically rebases it with its remote source.
|
|
5
|
-
*
|
|
6
|
-
* This utility sets up a watcher on the given document. If the document specifies an 'x-scalar-original-source-url'
|
|
7
|
-
* and watch mode is enabled, this hook polls the remote source and calls `store.rebaseDocument`.
|
|
8
|
-
* If rebase conflicts are detected, it applies automatic conflict resolution by preferring remote changes.
|
|
9
|
-
* Uses exponential backoff on failures to avoid overwhelming the server.
|
|
10
|
-
*
|
|
11
|
-
* @param params - Configuration object for the document watcher.
|
|
12
|
-
* @param params.documentName - The name/key of the document to watch and rebase.
|
|
13
|
-
* @param params.store - The WorkspaceStore instance.
|
|
14
|
-
* @param params.initialTimeout - Initial delay before the first poll attempt (default: 5000ms).
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { useDocumentWatcher } from '@/hooks/use-document-watcher'
|
|
19
|
-
* import { useScalarWorkspaceStore } from '@scalar/workspace-store'
|
|
20
|
-
*
|
|
21
|
-
* const store = useScalarWorkspaceStore()
|
|
22
|
-
* useDocumentWatcher({ documentName: 'myApi', store })
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare const useDocumentWatcher: ({ documentName, store, initialTimeout, }: {
|
|
26
|
-
documentName: MaybeRefOrGetter<string | undefined>;
|
|
27
|
-
store: MaybeRefOrGetter<WorkspaceStore | null>;
|
|
28
|
-
initialTimeout?: number;
|
|
29
|
-
}) => void;
|
|
30
|
-
//# sourceMappingURL=use-document-watcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-document-watcher.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/hooks/use-document-watcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,gBAAgB,EAA6C,MAAM,KAAK,CAAA;AA6FtF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,kBAAkB,GAAI,0CAIhC;IACD,YAAY,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAClD,KAAK,EAAE,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,KAAG,IA6FH,CAAA"}
|