@scalar/api-client 2.18.0 → 2.18.3
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 +85 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
- package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
- package/dist/components/DataTable/DataTable.vue.js +17 -17
- package/dist/components/DataTable/DataTableCell.vue.js +9 -9
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
- package/dist/components/DataTable/DataTableText.vue.js +10 -10
- package/dist/components/Form/Form.vue.js +32 -32
- package/dist/components/Form/LabelInput.vue2.js +15 -15
- package/dist/components/HelpfulLink.vue.js +7 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
- package/dist/components/IconSelector.vue.js +16 -16
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
- package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
- package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +16 -16
- package/dist/components/SectionFilter.vue2.js +21 -21
- package/dist/components/SectionFilterButton.vue.js +7 -7
- package/dist/components/Server/ServerDropdown.vue.js +32 -32
- package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
- package/dist/components/Server/ServerSelector.vue.js +27 -27
- package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
- package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
- package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
- package/dist/components/Server/types.d.ts +2 -1
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -18
- package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
- package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
- package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
- package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
- package/dist/data/httpHeaders.d.ts +2 -1
- package/dist/data/httpHeaders.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.js +1 -1
- package/dist/hooks/useLayout.js +1 -1
- package/dist/hooks/useSidebar.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.js +5 -5
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-manager.d.ts +0 -2
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/routes.d.ts +0 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +0 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
- 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 +40 -32
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -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 +64 -64
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
- 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 +12 -13
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
- package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- 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 +130 -122
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
- 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 +1 -3
- package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
- package/dist/v2/components/data-table/DataTable.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
- package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
- package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
- package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
- package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
- package/dist/v2/components/resize/Resize.vue2.js +11 -11
- package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
- package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
- package/dist/v2/features/app/App.vue.js +25 -25
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +55 -61
- package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
- package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
- package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
- package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
- package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
- package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
- package/dist/v2/features/collection/components/Environment.vue.js +10 -10
- package/dist/v2/features/collection/components/Form.vue.js +21 -21
- package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
- package/dist/v2/features/collection/components/Servers.vue.js +37 -37
- package/dist/v2/features/collection/components/Settings.vue.js +22 -22
- package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
- package/dist/v2/features/command-palette/types.d.ts +11 -10
- package/dist/v2/features/command-palette/types.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
- package/dist/v2/features/environments/components/Environment.vue.js +16 -16
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +57 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
- package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +41 -39
- package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
- package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
- package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
- package/dist/v2/features/search/types.d.ts +5 -4
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
- package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
- package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +0 -2
- package/dist/v2/helpers/plugins.d.ts +2 -2
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
- package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
- package/dist/views/Cookies/CookieModal.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
- package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
- package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
- package/dist/views/Request/Request.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
- package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
- package/dist/views/Request/RequestSection/index.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
- package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
- package/package.json +24 -24
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
- package/dist/components/ScreenReader.vue.d.ts +0 -20
- package/dist/components/ScreenReader.vue.d.ts.map +0 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as r, createBlock as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { useLayout as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as r, createBlock as c, openBlock as i, resolveDynamicComponent as m, normalizeClass as t, unref as e, withCtx as l, renderSlot as a, createElementVNode as d, createVNode as u } from "vue";
|
|
2
|
+
import { ScalarIcon as f } from "@scalar/components";
|
|
3
|
+
import { useLayout as p } from "../../hooks/useLayout.js";
|
|
4
|
+
const h = /* @__PURE__ */ r({
|
|
5
5
|
__name: "SideNavLink",
|
|
6
6
|
props: {
|
|
7
7
|
is: {},
|
|
8
8
|
active: { type: Boolean },
|
|
9
9
|
icon: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const { layout:
|
|
13
|
-
return (
|
|
14
|
-
class:
|
|
15
|
-
"bg-b-3 dark:bg-b-2 text-c-1 transition-none hover:cursor-default":
|
|
16
|
-
"sm:max-w-max sm:min-w-max sm:rounded sm:py-1.5": o
|
|
11
|
+
setup(n) {
|
|
12
|
+
const { layout: o } = p();
|
|
13
|
+
return (s, b) => (i(), c(m(n.is ?? "a"), {
|
|
14
|
+
class: t(["hover:bg-b-3 hover:dark:bg-b-2 flex max-w-[37px] min-w-[37px] items-center justify-center rounded-lg p-2 no-underline", {
|
|
15
|
+
"bg-b-3 dark:bg-b-2 text-c-1 transition-none hover:cursor-default": n.active,
|
|
16
|
+
"sm:max-w-max sm:min-w-max sm:rounded sm:py-1.5": e(o) === "web"
|
|
17
17
|
}])
|
|
18
18
|
}, {
|
|
19
19
|
default: l(() => [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class:
|
|
23
|
-
icon:
|
|
20
|
+
a(s.$slots, "icon", {}, () => [
|
|
21
|
+
u(e(f), {
|
|
22
|
+
class: t(e(o) === "web" ? "sm:hidden" : ""),
|
|
23
|
+
icon: n.icon,
|
|
24
24
|
thickness: "1.5"
|
|
25
25
|
}, null, 8, ["class", "icon"])
|
|
26
26
|
]),
|
|
27
|
-
|
|
28
|
-
class:
|
|
27
|
+
d("span", {
|
|
28
|
+
class: t(["sr-only text-sm font-medium", { "sm:not-sr-only": e(o) === "web" }])
|
|
29
29
|
}, [
|
|
30
|
-
|
|
30
|
+
a(s.$slots, "default")
|
|
31
31
|
], 2)
|
|
32
32
|
]),
|
|
33
33
|
_: 3
|
|
@@ -35,5 +35,5 @@ const v = /* @__PURE__ */ r({
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
h as default
|
|
39
39
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { RouterLink as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as t, createBlock as i, openBlock as n, unref as a, withCtx as c, renderSlot as r } from "vue";
|
|
2
|
+
import { RouterLink as f } from "vue-router";
|
|
3
|
+
import m from "./SideNavLink.vue.js";
|
|
4
|
+
const p = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SideNavRouterLink",
|
|
6
6
|
props: {
|
|
7
7
|
icon: {},
|
|
8
8
|
to: {},
|
|
9
9
|
active: { type: Boolean }
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
return (o,
|
|
13
|
-
is:
|
|
14
|
-
active: !!
|
|
15
|
-
icon:
|
|
16
|
-
to:
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (o, l) => (n(), i(m, {
|
|
13
|
+
is: a(f),
|
|
14
|
+
active: !!e.active,
|
|
15
|
+
icon: e.icon,
|
|
16
|
+
to: e.to
|
|
17
17
|
}, {
|
|
18
|
-
default:
|
|
19
|
-
|
|
18
|
+
default: c(() => [
|
|
19
|
+
r(o.$slots, "default")
|
|
20
20
|
]),
|
|
21
21
|
_: 3
|
|
22
22
|
}, 8, ["is", "active", "icon", "to"]));
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
p as default
|
|
27
27
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as s, computed as m, createBlock as c, openBlock as r, withCtx as d, createElementBlock as u, createCommentVNode as g, toDisplayString as p } from "vue";
|
|
2
|
+
import b from "./SidebarListElementForm.vue.js";
|
|
3
|
+
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "text-c-2 text-sm leading-normal text-pretty"
|
|
6
|
-
}, k = /* @__PURE__ */
|
|
6
|
+
}, k = /* @__PURE__ */ s({
|
|
7
7
|
__name: "DeleteSidebarListElement",
|
|
8
8
|
props: {
|
|
9
9
|
variableName: {},
|
|
10
10
|
warningMessage: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["close", "delete"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
return (
|
|
13
|
+
setup(t, { emit: l }) {
|
|
14
|
+
const a = t, n = l, o = m(() => a.variableName.length > 18 ? a.variableName.slice(0, 18) + "…" : a.variableName);
|
|
15
|
+
return (v, e) => (r(), c(b, {
|
|
16
16
|
danger: "",
|
|
17
|
-
label: `Delete ${
|
|
18
|
-
onCancel: e[0] || (e[0] = (i) =>
|
|
19
|
-
onSubmit: e[1] || (e[1] = (i) =>
|
|
17
|
+
label: `Delete ${o.value}`,
|
|
18
|
+
onCancel: e[0] || (e[0] = (i) => n("close")),
|
|
19
|
+
onSubmit: e[1] || (e[1] = (i) => n("delete"))
|
|
20
20
|
}, {
|
|
21
21
|
default: d(() => [
|
|
22
|
-
|
|
22
|
+
t.warningMessage ? (r(), u("p", f, p(t.warningMessage), 1)) : g("", !0)
|
|
23
23
|
]),
|
|
24
24
|
_: 1
|
|
25
25
|
}, 8, ["label"]));
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
const g = { class: "flex justify-between gap-10" }, B = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as u, createElementBlock as f, openBlock as b, withModifiers as p, renderSlot as c, createElementVNode as v, createVNode as a, unref as i, withCtx as o, createTextVNode as l, toDisplayString as x } from "vue";
|
|
2
|
+
import { ScalarButton as r } from "@scalar/components";
|
|
3
|
+
const g = { class: "flex justify-between gap-10" }, B = /* @__PURE__ */ u({
|
|
4
4
|
__name: "SidebarListElementForm",
|
|
5
5
|
props: {
|
|
6
6
|
danger: { type: Boolean },
|
|
7
7
|
label: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["cancel", "submit"],
|
|
10
|
-
setup(
|
|
11
|
-
const n =
|
|
12
|
-
return (
|
|
10
|
+
setup(t, { emit: s }) {
|
|
11
|
+
const n = s;
|
|
12
|
+
return (m, e) => (b(), f("form", {
|
|
13
13
|
class: "flex flex-col gap-4 text-base",
|
|
14
|
-
onSubmit: e[1] || (e[1] =
|
|
14
|
+
onSubmit: e[1] || (e[1] = p((d) => n("submit"), ["prevent"]))
|
|
15
15
|
}, [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
c(m.$slots, "default"),
|
|
17
|
+
v("div", g, [
|
|
18
|
+
a(i(r), {
|
|
19
19
|
size: "sm",
|
|
20
20
|
type: "button",
|
|
21
21
|
variant: "outlined",
|
|
22
|
-
onClick: e[0] || (e[0] = (
|
|
22
|
+
onClick: e[0] || (e[0] = (d) => n("cancel"))
|
|
23
23
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
|
|
24
|
+
default: o(() => [...e[2] || (e[2] = [
|
|
25
|
+
l(" Cancel ", -1)
|
|
26
26
|
])]),
|
|
27
27
|
_: 1
|
|
28
28
|
}),
|
|
29
|
-
|
|
29
|
+
a(i(r), {
|
|
30
30
|
"data-testid": "sidebar-list-element-form-submit-button",
|
|
31
31
|
size: "sm",
|
|
32
32
|
type: "submit",
|
|
33
33
|
variant: t.danger ? "danger" : "solid"
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
35
|
+
default: o(() => [
|
|
36
|
+
l(x(t.label ?? "Save"), 1)
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
39
|
}, 8, ["variant"])
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBreakpoints as
|
|
3
|
-
import { useLayout as
|
|
4
|
-
import { useSidebar as
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as S, ref as h, withDirectives as D, createElementBlock as l, openBlock as m, normalizeStyle as L, normalizeClass as y, unref as t, renderSlot as r, createCommentVNode as u, createElementVNode as n, toDisplayString as _, Fragment as N, vShow as W } from "vue";
|
|
2
|
+
import { useBreakpoints as $ } from "@scalar/use-hooks/useBreakpoints";
|
|
3
|
+
import { useLayout as z } from "../../hooks/useLayout.js";
|
|
4
|
+
import { useSidebar as C } from "../../hooks/useSidebar.js";
|
|
5
|
+
import { useWorkspace as B } from "../../store/store.js";
|
|
6
|
+
const I = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5"
|
|
9
|
-
},
|
|
9
|
+
}, X = { class: "m-0 text-sm font-medium whitespace-nowrap" }, R = { class: "bg-b-1 sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5" }, q = /* @__PURE__ */ S({
|
|
10
10
|
__name: "Sidebar",
|
|
11
11
|
props: {
|
|
12
12
|
title: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const { isSidebarOpen:
|
|
14
|
+
setup(c) {
|
|
15
|
+
const { isSidebarOpen: w } = C(), { sidebarWidth: o, setSidebarWidth: i } = B(), { layout: p } = z(), a = h(!1), f = h(null), { breakpoints: d } = $(), x = (e) => {
|
|
16
16
|
e.preventDefault();
|
|
17
|
-
const
|
|
18
|
-
getComputedStyle(
|
|
17
|
+
const b = e.clientX, k = Number.parseInt(
|
|
18
|
+
getComputedStyle(f.value).width || o.value,
|
|
19
19
|
10
|
|
20
|
-
),
|
|
20
|
+
), v = (E) => {
|
|
21
21
|
a.value = !0, document.body.classList.add("dragging");
|
|
22
|
-
let s =
|
|
22
|
+
let s = k + E.clientX - b;
|
|
23
23
|
s > 420 && (s = 420 + (s - 420) * 0.2), s < 240 && (s = 240), i(`${s}px`);
|
|
24
|
-
},
|
|
25
|
-
a.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove",
|
|
24
|
+
}, g = () => {
|
|
25
|
+
a.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove", v, !1), document.documentElement.removeEventListener("mouseup", g, !1), Number.parseInt(o.value, 10) > 420 ? i("360px") : Number.parseInt(o.value, 10) < 240 && i("240px");
|
|
26
26
|
};
|
|
27
|
-
document.documentElement.addEventListener("mousemove",
|
|
27
|
+
document.documentElement.addEventListener("mousemove", v, !1), document.documentElement.addEventListener("mouseup", g, !1);
|
|
28
28
|
};
|
|
29
|
-
return (e,
|
|
29
|
+
return (e, b) => D((m(), l("aside", {
|
|
30
30
|
ref_key: "sidebarRef",
|
|
31
|
-
ref:
|
|
32
|
-
class:
|
|
33
|
-
style:
|
|
31
|
+
ref: f,
|
|
32
|
+
class: y(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-r md:border-b-0", { dragging: a.value }]),
|
|
33
|
+
style: L({ width: t(d).lg ? t(o) : "100%" })
|
|
34
34
|
}, [
|
|
35
35
|
r(e.$slots, "header", {}, void 0, !0),
|
|
36
|
-
t(
|
|
37
|
-
n("h2",
|
|
36
|
+
t(p) !== "modal" && c.title ? (m(), l("div", I, [
|
|
37
|
+
n("h2", X, _(c.title), 1),
|
|
38
38
|
t(d).lg ? u("", !0) : r(e.$slots, "button", { key: 0 }, void 0, !0)
|
|
39
39
|
])) : u("", !0),
|
|
40
40
|
n("div", {
|
|
41
|
-
class:
|
|
42
|
-
"sidebar-mask": t(
|
|
41
|
+
class: y(["custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]", {
|
|
42
|
+
"sidebar-mask": t(p) !== "modal"
|
|
43
43
|
}])
|
|
44
44
|
}, [
|
|
45
45
|
r(e.$slots, "content", {}, void 0, !0)
|
|
46
46
|
], 2),
|
|
47
|
-
t(d).lg ? (m(), l(
|
|
48
|
-
n("div",
|
|
47
|
+
t(d).lg ? (m(), l(N, { key: 1 }, [
|
|
48
|
+
n("div", R, [
|
|
49
49
|
r(e.$slots, "button", {}, void 0, !0)
|
|
50
50
|
]),
|
|
51
51
|
n("div", {
|
|
52
52
|
class: "resizer",
|
|
53
|
-
onMousedown:
|
|
53
|
+
onMousedown: x
|
|
54
54
|
}, null, 32)
|
|
55
55
|
], 64)) : u("", !0)
|
|
56
56
|
], 6)), [
|
|
57
|
-
[
|
|
57
|
+
[W, t(w)]
|
|
58
58
|
]);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as u, createBlock as o, openBlock as r, unref as e, withCtx as i, renderSlot as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
import { useLayout as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as u, createBlock as o, openBlock as r, unref as e, withCtx as i, renderSlot as d, createCommentVNode as s } from "vue";
|
|
2
|
+
import { ScalarButton as k, ScalarHotkey as m } from "@scalar/components";
|
|
3
|
+
import { useLayout as p } from "../../hooks/useLayout.js";
|
|
4
|
+
const x = /* @__PURE__ */ u({
|
|
5
5
|
__name: "SidebarButton",
|
|
6
6
|
props: {
|
|
7
7
|
click: { type: Function },
|
|
8
8
|
hotkey: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
10
|
+
setup(t) {
|
|
11
|
+
const a = t, { layout: c } = p(), l = () => {
|
|
12
|
+
a.click();
|
|
13
13
|
};
|
|
14
|
-
return (
|
|
14
|
+
return (n, h) => (r(), o(e(k), {
|
|
15
15
|
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",
|
|
16
16
|
variant: "outlined",
|
|
17
|
-
onClick:
|
|
17
|
+
onClick: l
|
|
18
18
|
}, {
|
|
19
19
|
default: i(() => [
|
|
20
|
-
|
|
21
|
-
t.hotkey && e(
|
|
20
|
+
d(n.$slots, "title"),
|
|
21
|
+
t.hotkey && e(c) === "desktop" ? (r(), o(e(m), {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:flex",
|
|
24
24
|
hotkey: t.hotkey
|
|
@@ -29,5 +29,5 @@ const g = /* @__PURE__ */ u({
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
x as default
|
|
33
33
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { Draggable as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as p, computed as h, resolveComponent as w, createElementBlock as b, openBlock as t, createVNode as i, unref as c, withCtx as d, withModifiers as x, normalizeClass as R, createCommentVNode as m, createBlock as M, createElementVNode as g, normalizeStyle as E, toDisplayString as I } from "vue";
|
|
2
|
+
import { ScalarIcon as N } from "@scalar/components";
|
|
3
|
+
import { Draggable as S } from "@scalar/draggable";
|
|
4
|
+
import { useRouter as z } from "vue-router";
|
|
5
|
+
import V from "./SidebarListElementActions.vue.js";
|
|
6
|
+
const $ = { class: "empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5" }, j = /* @__PURE__ */ B({
|
|
7
7
|
__name: "SidebarListElement",
|
|
8
8
|
props: {
|
|
9
9
|
variable: {},
|
|
@@ -17,67 +17,67 @@ const O = { class: "empty-variable-name line-clamp-1 text-sm break-all group-hov
|
|
|
17
17
|
collectionId: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["delete", "colorModal", "rename", "onDragEnd"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
},
|
|
20
|
+
setup(e, { emit: u }) {
|
|
21
|
+
const n = u, r = z(), f = (l) => {
|
|
22
|
+
l.metaKey ? window.open(r.resolve(e.to).href, "_blank") : r.push(e.to);
|
|
23
|
+
}, v = (l) => {
|
|
24
|
+
n("delete", l);
|
|
25
|
+
}, D = (l) => {
|
|
26
|
+
n("colorModal", l);
|
|
27
|
+
}, y = (l) => {
|
|
28
|
+
n("rename", l);
|
|
29
|
+
}, k = p(null), s = h(() => ({
|
|
30
30
|
ceiling: 0.5,
|
|
31
31
|
floor: 0.5
|
|
32
32
|
}));
|
|
33
|
-
return (
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
|
|
33
|
+
return (l, a) => {
|
|
34
|
+
const C = w("router-link");
|
|
35
|
+
return t(), b("li", null, [
|
|
36
|
+
i(c(S), {
|
|
37
37
|
id: e.variable.uid,
|
|
38
38
|
ref_key: "draggableRef",
|
|
39
|
-
ref:
|
|
39
|
+
ref: k,
|
|
40
40
|
ceiling: s.value.ceiling,
|
|
41
41
|
floor: s.value.floor,
|
|
42
42
|
isDraggable: e.isDraggable,
|
|
43
43
|
isDroppable: e.isDroppable,
|
|
44
44
|
parentIds: e.collectionId ? [e.collectionId] : [],
|
|
45
|
-
onOnDragEnd:
|
|
45
|
+
onOnDragEnd: a[2] || (a[2] = (...o) => l.$emit("onDragEnd", ...o))
|
|
46
46
|
}, {
|
|
47
47
|
default: d(() => [
|
|
48
|
-
|
|
49
|
-
class:
|
|
48
|
+
i(C, {
|
|
49
|
+
class: R(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-5" : "pl-1.5"]]),
|
|
50
50
|
exactActiveClass: "bg-b-2 !text-c-1",
|
|
51
51
|
role: "button",
|
|
52
52
|
to: e.to,
|
|
53
|
-
onClick:
|
|
53
|
+
onClick: a[1] || (a[1] = x((o) => f(o), ["prevent"]))
|
|
54
54
|
}, {
|
|
55
55
|
default: d(() => [
|
|
56
|
-
e.variable.color ? (
|
|
56
|
+
e.variable.color ? (t(), b("button", {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: "hover:bg-b-3 rounded p-1.5",
|
|
59
59
|
type: "button",
|
|
60
|
-
onClick:
|
|
60
|
+
onClick: a[0] || (a[0] = (o) => D(e.variable.uid))
|
|
61
61
|
}, [
|
|
62
62
|
g("div", {
|
|
63
63
|
class: "h-2.5 w-2.5 rounded-xl",
|
|
64
|
-
style:
|
|
64
|
+
style: E({ backgroundColor: e.variable.color })
|
|
65
65
|
}, null, 4)
|
|
66
66
|
])) : m("", !0),
|
|
67
|
-
e.variable.icon ? (
|
|
67
|
+
e.variable.icon ? (t(), M(c(N), {
|
|
68
68
|
key: 1,
|
|
69
69
|
class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
|
|
70
70
|
icon: e.variable.icon
|
|
71
71
|
}, null, 8, ["icon"])) : m("", !0),
|
|
72
|
-
g("span",
|
|
73
|
-
|
|
72
|
+
g("span", $, I(e.variable.name), 1),
|
|
73
|
+
i(V, {
|
|
74
74
|
isCopyable: !!e.isCopyable,
|
|
75
75
|
isDeletable: !!e.isDeletable,
|
|
76
76
|
isRenameable: !!e.isRenameable,
|
|
77
77
|
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
78
78
|
warningMessage: e.warningMessage,
|
|
79
|
-
onDelete:
|
|
80
|
-
onRename:
|
|
79
|
+
onDelete: v,
|
|
80
|
+
onRename: y
|
|
81
81
|
}, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
@@ -90,5 +90,5 @@ const O = { class: "empty-variable-name line-clamp-1 text-sm break-all group-hov
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
j as default
|
|
94
94
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as g, ref as C, createElementBlock as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { useClipboard as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as g, ref as C, createElementBlock as i, openBlock as o, Fragment as x, createElementVNode as h, createVNode as r, createCommentVNode as s, unref as n, withModifiers as w, withCtx as k, createBlock as M } from "vue";
|
|
2
|
+
import { useModal as D, ScalarIcon as m, ScalarModal as N } from "@scalar/components";
|
|
3
|
+
import { useClipboard as $ } from "@scalar/use-hooks/useClipboard";
|
|
4
|
+
import B from "./Actions/DeleteSidebarListElement.vue.js";
|
|
5
5
|
const E = { class: "absolute right-1 flex opacity-0 group-hover:opacity-100" }, R = /* @__PURE__ */ g({
|
|
6
6
|
__name: "SidebarListElementActions",
|
|
7
7
|
props: {
|
|
@@ -12,69 +12,69 @@ const E = { class: "absolute right-1 flex opacity-0 group-hover:opacity-100" },
|
|
|
12
12
|
isRenameable: { type: Boolean }
|
|
13
13
|
},
|
|
14
14
|
emits: ["delete", "rename"],
|
|
15
|
-
setup(
|
|
16
|
-
const b =
|
|
17
|
-
function
|
|
18
|
-
|
|
15
|
+
setup(e, { emit: v }) {
|
|
16
|
+
const b = v, a = C({ action: "None", name: "" }), c = D(), { copyToClipboard: f } = $();
|
|
17
|
+
function p(l) {
|
|
18
|
+
a.value = { action: l, name: e.variable.name }, c.show();
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
20
|
+
function d() {
|
|
21
|
+
c.hide(), a.value = { action: "None", name: "" };
|
|
22
22
|
}
|
|
23
|
-
function y(
|
|
24
|
-
b("delete",
|
|
23
|
+
function y(l) {
|
|
24
|
+
b("delete", l), d();
|
|
25
25
|
}
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
e.isCopyable ? (
|
|
26
|
+
return (l, t) => (o(), i(x, null, [
|
|
27
|
+
h("div", E, [
|
|
28
|
+
e.isCopyable ? (o(), i("button", {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
|
|
31
31
|
type: "button",
|
|
32
|
-
onClick: t[0] || (t[0] = (u) =>
|
|
32
|
+
onClick: t[0] || (t[0] = (u) => n(f)(e.variable.name))
|
|
33
33
|
}, [
|
|
34
|
-
|
|
34
|
+
r(n(m), {
|
|
35
35
|
class: "h-3 w-3",
|
|
36
36
|
icon: "Clipboard"
|
|
37
37
|
})
|
|
38
|
-
])) :
|
|
39
|
-
e.isRenameable ? (
|
|
38
|
+
])) : s("", !0),
|
|
39
|
+
e.isRenameable ? (o(), i("button", {
|
|
40
40
|
key: 1,
|
|
41
41
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
|
|
42
42
|
type: "button",
|
|
43
43
|
onClick: t[1] || (t[1] = (u) => b("rename", e.variable.uid))
|
|
44
44
|
}, [
|
|
45
|
-
|
|
45
|
+
r(n(m), {
|
|
46
46
|
class: "h-3 w-3",
|
|
47
47
|
icon: "Edit"
|
|
48
48
|
})
|
|
49
|
-
])) :
|
|
50
|
-
!e.variable.isDefault && e.isDeletable ? (
|
|
49
|
+
])) : s("", !0),
|
|
50
|
+
!e.variable.isDefault && e.isDeletable ? (o(), i("button", {
|
|
51
51
|
key: 2,
|
|
52
52
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
|
|
53
53
|
type: "button",
|
|
54
|
-
onClick: t[2] || (t[2] =
|
|
54
|
+
onClick: t[2] || (t[2] = w((u) => p(
|
|
55
55
|
"Delete"
|
|
56
56
|
/* Delete */
|
|
57
57
|
), ["prevent"]))
|
|
58
58
|
}, [
|
|
59
|
-
|
|
59
|
+
r(n(m), {
|
|
60
60
|
class: "h-3.5 w-3.5",
|
|
61
61
|
icon: "Close"
|
|
62
62
|
})
|
|
63
|
-
])) :
|
|
63
|
+
])) : s("", !0)
|
|
64
64
|
]),
|
|
65
|
-
|
|
65
|
+
r(n(N), {
|
|
66
66
|
size: "sm",
|
|
67
|
-
state:
|
|
68
|
-
title: `${
|
|
67
|
+
state: n(c),
|
|
68
|
+
title: `${a.value.action} ${a.value.name}`
|
|
69
69
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
|
|
70
|
+
default: k(() => [
|
|
71
|
+
a.value.action === "Delete" ? (o(), M(B, {
|
|
72
72
|
key: 0,
|
|
73
|
-
variableName:
|
|
73
|
+
variableName: a.value.name,
|
|
74
74
|
warningMessage: e.warningMessage,
|
|
75
|
-
onClose:
|
|
75
|
+
onClose: d,
|
|
76
76
|
onDelete: t[3] || (t[3] = (u) => y(e.variable.uid))
|
|
77
|
-
}, null, 8, ["variableName", "warningMessage"])) :
|
|
77
|
+
}, null, 8, ["variableName", "warningMessage"])) : s("", !0)
|
|
78
78
|
]),
|
|
79
79
|
_: 1
|
|
80
80
|
}, 8, ["state", "title"])
|