@iblai/iblai-js 2.67.3 → 2.68.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/dist/web-containers/source/account-sheet.js +2 -2
- package/dist/web-containers/source/account-sheet.js.map +1 -1
- package/dist/web-containers/source/account.js +39 -21
- package/dist/web-containers/source/account.js.map +1 -1
- package/dist/web-containers/source/api/api-field-label.js +14 -0
- package/dist/web-containers/source/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/{api-tab → api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → api}/constants.js +0 -1
- package/dist/web-containers/source/api/constants.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/{api-tab → api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/api/index.js +30 -0
- package/dist/web-containers/source/api/index.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/api-field-label.js +14 -0
- package/dist/web-containers/source/api-field-label.js.map +1 -0
- package/dist/web-containers/source/api-keys-table.js +61 -0
- package/dist/web-containers/source/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/api-tab/labels.js +23 -19
- package/dist/web-containers/source/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/api-tab.js +15 -20
- package/dist/web-containers/source/api-tab.js.map +1 -1
- package/dist/web-containers/source/api-token-utils.js +34 -1
- package/dist/web-containers/source/api-token-utils.js.map +1 -1
- package/dist/web-containers/source/azure-config.js +37 -0
- package/dist/web-containers/source/azure-config.js.map +1 -0
- package/dist/web-containers/source/azure-model-fields.js +118 -0
- package/dist/web-containers/source/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/claw-sandbox/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/claw-sandbox/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/components/claw-sandbox/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/components/claw-sandbox/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/components/document-sidebar.js +5 -4
- package/dist/web-containers/source/components/document-sidebar.js.map +1 -1
- package/dist/web-containers/source/components/field-info.js +18 -0
- package/dist/web-containers/source/components/field-info.js.map +1 -0
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/components/modals/user-profile-modal.js +4 -4
- package/dist/web-containers/source/components/modals/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/account-sheet.js +2 -2
- package/dist/web-containers/source/components/platform-sidebar/account-sheet.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/footer.js +15 -14
- package/dist/web-containers/source/components/platform-sidebar/footer.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/index.js +0 -2
- package/dist/web-containers/source/components/platform-sidebar/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/account.js +39 -21
- package/dist/web-containers/source/components/profile/account.js.map +1 -1
- package/dist/web-containers/source/components/profile/api/api-field-label.js +14 -0
- package/dist/web-containers/source/components/profile/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/components/profile/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/components/profile/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/components/profile/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/components/profile/{integration/api-tab → api}/constants.js +0 -1
- package/dist/web-containers/source/components/profile/api/constants.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/components/profile/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/components/profile/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/{integration/api-tab → api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/components/profile/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/components/profile/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/index.js +30 -0
- package/dist/web-containers/source/components/profile/api/index.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → components/profile/api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/components/profile/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/components/profile/info-banner.js +3 -1
- package/dist/web-containers/source/components/profile/info-banner.js.map +1 -1
- package/dist/web-containers/source/components/profile/integration/index.js +17 -38
- package/dist/web-containers/source/components/profile/integration/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/secrets/index.js +106 -0
- package/dist/web-containers/source/components/profile/secrets/index.js.map +1 -0
- package/dist/web-containers/source/components/profile/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/components/profile/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/components/profile/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/components/profile/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/components/profile/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/components/tooltip-icon-button.js +15 -0
- package/dist/web-containers/source/components/tooltip-icon-button.js.map +1 -0
- package/dist/web-containers/source/components/user-profile-dropdown/index.js +2 -0
- package/dist/web-containers/source/components/user-profile-dropdown/index.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/azure-config.js +37 -0
- package/dist/web-containers/source/components/virtual-machine/azure-config.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/azure-model-fields.js +118 -0
- package/dist/web-containers/source/components/virtual-machine/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/credential-options.js +268 -22
- package/dist/web-containers/source/components/virtual-machine/credential-options.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/components/virtual-machine/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/components/virtual-machine/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/secret-rows.js +66 -0
- package/dist/web-containers/source/components/virtual-machine/secret-rows.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/components/virtual-machine/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/connector-dialogs.js +1 -1
- package/dist/web-containers/source/constants.js +55 -22
- package/dist/web-containers/source/constants.js.map +1 -1
- package/dist/web-containers/source/create-api-modal.js +4 -4
- package/dist/web-containers/source/credential-options.js +268 -22
- package/dist/web-containers/source/credential-options.js.map +1 -1
- package/dist/web-containers/source/document-preview.js +14 -6
- package/dist/web-containers/source/document-preview.js.map +1 -1
- package/dist/web-containers/source/document-sidebar.js +5 -4
- package/dist/web-containers/source/document-sidebar.js.map +1 -1
- package/dist/web-containers/source/edit-api-modal.js +34 -28
- package/dist/web-containers/source/edit-api-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/en.json.js +279 -227
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +450 -398
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/expiration-date-field.js +16 -10
- package/dist/web-containers/source/expiration-date-field.js.map +1 -1
- package/dist/web-containers/source/field-info.js +11 -7
- package/dist/web-containers/source/field-info.js.map +1 -1
- package/dist/web-containers/source/footer.js +15 -14
- package/dist/web-containers/source/footer.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +458 -406
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +279 -227
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +450 -398
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +458 -406
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +457 -405
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/info-banner.js +3 -1
- package/dist/web-containers/source/info-banner.js.map +1 -1
- package/dist/web-containers/source/integration/index.js +17 -38
- package/dist/web-containers/source/integration/index.js.map +1 -1
- package/dist/web-containers/source/lib/document-preview.js +14 -6
- package/dist/web-containers/source/lib/document-preview.js.map +1 -1
- package/dist/web-containers/source/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/messages/en.json.js +279 -227
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +450 -398
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +458 -406
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +457 -405
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/modals/user-profile-modal.js +4 -4
- package/dist/web-containers/source/modals/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/network-policies-section.js +5 -4
- package/dist/web-containers/source/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/account-sheet.js +2 -2
- package/dist/web-containers/source/platform-sidebar/account-sheet.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/footer.js +15 -14
- package/dist/web-containers/source/platform-sidebar/footer.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/index.js +0 -2
- package/dist/web-containers/source/platform-sidebar/index.js.map +1 -1
- package/dist/web-containers/source/profile/account.js +39 -21
- package/dist/web-containers/source/profile/account.js.map +1 -1
- package/dist/web-containers/source/profile/api/api-field-label.js +14 -0
- package/dist/web-containers/source/profile/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{components/profile/integration/api-tab → profile/api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/profile/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/profile/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/profile/{integration/api-tab → api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/profile/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/{api-tab → profile/api}/constants.js +0 -1
- package/dist/web-containers/source/profile/api/constants.js.map +1 -0
- package/dist/web-containers/source/{components/profile/integration/api-tab → profile/api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/profile/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/profile/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → profile/api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/profile/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/profile/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/profile/api/index.js +30 -0
- package/dist/web-containers/source/profile/api/index.js.map +1 -0
- package/dist/web-containers/source/{api-tab → profile/api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/profile/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/profile/info-banner.js +3 -1
- package/dist/web-containers/source/profile/info-banner.js.map +1 -1
- package/dist/web-containers/source/profile/integration/index.js +17 -38
- package/dist/web-containers/source/profile/integration/index.js.map +1 -1
- package/dist/web-containers/source/profile/secrets/index.js +106 -0
- package/dist/web-containers/source/profile/secrets/index.js.map +1 -0
- package/dist/web-containers/source/profile/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/profile/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/profile/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/profile/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/profile/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/profile/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/secret-rows.js +66 -0
- package/dist/web-containers/source/secret-rows.js.map +1 -0
- package/dist/web-containers/source/secrets/index.js +106 -0
- package/dist/web-containers/source/secrets/index.js.map +1 -0
- package/dist/web-containers/source/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/secrets-list.js +237 -0
- package/dist/web-containers/source/secrets-list.js.map +1 -0
- package/dist/web-containers/source/skills-tab/index.js +1 -1
- package/dist/web-containers/source/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/token-policy-fields.js +6 -6
- package/dist/web-containers/source/token-policy-fields.js.map +1 -1
- package/dist/web-containers/source/tooltip-icon-button.js +15 -0
- package/dist/web-containers/source/tooltip-icon-button.js.map +1 -0
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/user-profile-dropdown/index.js +2 -0
- package/dist/web-containers/source/user-profile-dropdown/index.js.map +1 -1
- package/dist/web-containers/source/user-profile-modal.js +4 -4
- package/dist/web-containers/source/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/azure-config.js +37 -0
- package/dist/web-containers/source/virtual-machine/azure-config.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/azure-model-fields.js +118 -0
- package/dist/web-containers/source/virtual-machine/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/credential-options.js +268 -22
- package/dist/web-containers/source/virtual-machine/credential-options.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/virtual-machine/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/virtual-machine/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/secret-rows.js +66 -0
- package/dist/web-containers/source/virtual-machine/secret-rows.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/virtual-machine/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/zh.json.js +457 -405
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/package.json +4 -4
- package/dist/web-containers/source/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/api-token-utils.js +0 -57
- package/dist/web-containers/source/components/profile/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/components/profile/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/components/profile/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/components/profile/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/token-policy-fields.js +0 -101
- package/dist/web-containers/source/components/profile/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/components/profile/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/components/profile/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/components/profile/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/components/profile/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/create-llm-modal.js +0 -287
- package/dist/web-containers/source/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/constants.js +0 -24
- package/dist/web-containers/source/profile/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/profile/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/edit-api-modal.js +0 -113
- package/dist/web-containers/source/profile/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/profile/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/profile/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/profile/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/profile/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/profile/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/profile/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/profile/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/profile/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/profile/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/profile/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/vm-secrets-section.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-api-modal.js","sources":["../../../../../../../../src/components/profile/api/create-api-modal.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;;;;AA+BA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C,WAAW,EAAA,EAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAA,CAAI,CAAA,EAAA,CACvF;AAEP;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Button } from '../../ui/button.js';
|
|
3
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from '../../ui/dialog.js';
|
|
4
|
+
import { useDeleteApiKeyMutation } from '@iblai/data-layer';
|
|
5
|
+
import { toast } from 'sonner';
|
|
6
|
+
import { useT } from '../../../i18n/context.js';
|
|
7
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
8
|
+
|
|
9
|
+
function DeleteApiModal({ isOpen, onClose, apiKey, tenantKey }) {
|
|
10
|
+
const t = useT();
|
|
11
|
+
const [deleteApiKey, { isLoading }] = useDeleteApiKeyMutation();
|
|
12
|
+
async function handleDeleteApiKey() {
|
|
13
|
+
try {
|
|
14
|
+
await deleteApiKey({
|
|
15
|
+
name: apiKey.name,
|
|
16
|
+
platformKey: tenantKey,
|
|
17
|
+
}).unwrap();
|
|
18
|
+
toast.success(t('apiTabDeleteApiModal2.successMessage'));
|
|
19
|
+
onClose();
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
console.error(JSON.stringify(error));
|
|
23
|
+
toast.error(t('apiTabDeleteApiModal2.errorMessage'));
|
|
24
|
+
//Sentry.captureException(String(error));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return (jsx(Dialog, { open: isOpen, onOpenChange: onClose, children: jsxs(DialogContent, { children: [jsxs(DialogHeader, { children: [jsx(DialogTitle, { className: "ibl-dialog-title", children: t('apiTabDeleteApiModal2.title') }), jsx(DialogDescription, { className: "text-xs text-gray-600", children: t('apiTabLabels.deleteModal.warning') })] }), jsx("div", { className: "my-5", children: jsx("p", { className: "text-sm text-[#646464]", children: t('apiTabDeleteApiModal2.confirmationText', { name: apiKey.name }) }) }), jsxs(DialogFooter, { className: "gap-3", children: [jsx(Button, { variant: "outline", onClick: onClose, children: t('apiTabDeleteApiModal2.cancel') }), jsx(Button, { className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", onClick: handleDeleteApiKey, disabled: isLoading, children: isLoading ? t('apiTabDeleteApiModal2.deleting') : t('apiTabDeleteApiModal2.delete') })] })] }) }));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { DeleteApiModal };
|
|
31
|
+
//# sourceMappingURL=delete-api-modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-api-modal.js","sources":["../../../../../../../../src/components/profile/api/delete-api-modal.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;AAyBM,SAAU,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAS,EAAA;AAC1E,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;IAChB,MAAM,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,uBAAuB,EAAE;AAE/D,IAAA,eAAe,kBAAkB,GAAA;AAC/B,QAAA,IAAI;AACF,YAAA,MAAM,YAAY,CAAC;gBACjB,IAAI,EAAE,MAAM,CAAC,IAAI;AACjB,gBAAA,WAAW,EAAE,SAAS;aACvB,CAAC,CAAC,MAAM,EAAE;YACX,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC;AACxD,YAAA,OAAO,EAAE;QACX;QAAE,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC;;QAEtD;IACF;AAEA,IAAA,QACEA,GAAA,CAAC,MAAM,E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react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { isSameDay } from 'date-fns';
|
|
4
4
|
import { toast } from 'sonner';
|
|
5
|
-
import { useForm } from '
|
|
6
|
-
import { useT } from '
|
|
7
|
-
import '
|
|
8
|
-
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogFooter } from '
|
|
9
|
-
import { Input } from '
|
|
10
|
-
import {
|
|
11
|
-
import { Button } from '../../../ui/button.js';
|
|
5
|
+
import { useForm } from '../../../node_modules/.pnpm/@tanstack_react-form@1.11.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@tanstack/react-form/dist/esm/useForm.js';
|
|
6
|
+
import { useT } from '../../../i18n/context.js';
|
|
7
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
8
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogFooter } from '../../ui/dialog.js';
|
|
9
|
+
import { Input } from '../../ui/input.js';
|
|
10
|
+
import { Button } from '../../ui/button.js';
|
|
12
11
|
import { useGetApiKeyQuery, useGetApiKeyFieldPermissionsQuery, useUpdateApiKeyMutation } from '@iblai/data-layer';
|
|
12
|
+
import { ApiFieldLabel } from './api-field-label.js';
|
|
13
13
|
import { DENIED_TOKEN_POLICY_PERMISSIONS, API_TOKEN_MODES } from './constants.js';
|
|
14
|
-
import { toSelections, buildTokenPolicyPayload, secondsUntil } from './api-token-utils.js';
|
|
14
|
+
import { buildApiKeyFormSchema, toSelections, buildTokenPolicyPayload, secondsUntil } from './api-token-utils.js';
|
|
15
15
|
import { ExpirationDateField } from './expiration-date-field.js';
|
|
16
16
|
import { TokenPolicyFields } from './token-policy-fields.js';
|
|
17
|
-
import TriangleAlert from '
|
|
17
|
+
import TriangleAlert from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/triangle-alert.js';
|
|
18
18
|
|
|
19
|
-
const editApiFormSchema = z.object({
|
|
20
|
-
name: z
|
|
21
|
-
.string()
|
|
22
|
-
.min(1, 'API Key name is required')
|
|
23
|
-
.regex(/^[a-zA-Z0-9_-]+$/, 'can only contain letters, numbers, and hyphens'),
|
|
24
|
-
expiration_date: z.date().nullable(),
|
|
25
|
-
});
|
|
26
19
|
function EditApiKeyForm({ token, tenantKey, fieldPermissions, onClose, }) {
|
|
27
20
|
var _a;
|
|
28
21
|
const t = useT();
|
|
22
|
+
const nameFieldId = React__default.useId();
|
|
23
|
+
const editApiFormSchema = React__default.useMemo(() => buildApiKeyFormSchema(t), [t]);
|
|
29
24
|
const [updateApiKey, { isLoading }] = useUpdateApiKeyMutation();
|
|
30
25
|
const initialPolicies = React__default.useMemo(() => toSelections(token.policies), [token.policies]);
|
|
31
26
|
const initialGroups = React__default.useMemo(() => toSelections(token.groups), [token.groups]);
|
|
@@ -43,7 +38,7 @@ function EditApiKeyForm({ token, tenantKey, fieldPermissions, onClose, }) {
|
|
|
43
38
|
onChange: editApiFormSchema,
|
|
44
39
|
},
|
|
45
40
|
onSubmit: async ({ value }) => {
|
|
46
|
-
var _a
|
|
41
|
+
var _a;
|
|
47
42
|
const requestBody = buildTokenPolicyPayload({
|
|
48
43
|
mode,
|
|
49
44
|
initialMode,
|
|
@@ -56,9 +51,11 @@ function EditApiKeyForm({ token, tenantKey, fieldPermissions, onClose, }) {
|
|
|
56
51
|
if (value.name !== token.name) {
|
|
57
52
|
requestBody.name = value.name;
|
|
58
53
|
}
|
|
59
|
-
const nextExpiration = (
|
|
60
|
-
const
|
|
61
|
-
|
|
54
|
+
const nextExpiration = (_a = value.expiration_date) !== null && _a !== void 0 ? _a : null;
|
|
55
|
+
const expirationChanged = nextExpiration && initialExpiration
|
|
56
|
+
? !isSameDay(nextExpiration, initialExpiration)
|
|
57
|
+
: nextExpiration !== initialExpiration;
|
|
58
|
+
if (expirationChanged) {
|
|
62
59
|
requestBody.expires_in = value.expiration_date
|
|
63
60
|
? secondsUntil(value.expiration_date).toString()
|
|
64
61
|
: null;
|
|
@@ -89,24 +86,33 @@ function EditApiKeyForm({ token, tenantKey, fieldPermissions, onClose, }) {
|
|
|
89
86
|
}, className: "mt-5 grid min-w-0 gap-5", children: [jsx(form.Field, { name: "name", children: (field) => {
|
|
90
87
|
var _a, _b;
|
|
91
88
|
const hasErrorAndIsDirty = ((_a = field.state.meta.errors) === null || _a === void 0 ? void 0 : _a.length) > 0 && field.state.meta.isDirty;
|
|
92
|
-
return (jsxs("div", { className: "space-y-1.5", children: [
|
|
89
|
+
return (jsxs("div", { className: "space-y-1.5", children: [jsx(ApiFieldLabel, { htmlFor: nameFieldId, text: t('apiTabCreateApiModal2.apiKeyName'), info: t('apiTabCreateApiModal2.apiKeyNameInfo'), required: true }), jsx(Input, { id: nameFieldId, value: field.state.value, onChange: (event) => field.handleChange(event.target.value), autoComplete: "off" }), hasErrorAndIsDirty && (jsx("p", { className: "text-red-500 text-xs", children: (_b = field.state.meta.errors[0]) === null || _b === void 0 ? void 0 : _b.message })), field.state.value !== token.name && (jsxs("p", { className: "flex items-start gap-1.5 text-xs text-amber-700", children: [jsx(TriangleAlert, { className: "mt-0.5 h-3.5 w-3.5 shrink-0", "aria-hidden": "true" }), t('apiTabEditApiModal.renameWarning')] }))] }));
|
|
93
90
|
} }), jsx(form.Field, { name: "expiration_date", children: (field) => (jsx(ExpirationDateField, { value: field.state.value, onChange: (date) => field.handleChange(date), helpText: t('apiTabEditApiModal.expirationHelp') })) }), jsx(TokenPolicyFields, { tenantKey: tenantKey, mode: mode, onModeChange: setMode, policies: policies, onPoliciesChange: setPolicies, groups: groups, onGroupsChange: setGroups, fieldPermissions: fieldPermissions, idPrefix: "edit-api-key" }), jsxs(DialogFooter, { className: "justify-end gap-3", children: [jsx(Button, { type: "button", variant: "outline", onClick: onClose, disabled: isLoading, children: t('apiTabDeleteApiModal2.cancel') }), jsx(form.Subscribe, { selector: (state) => ({ canSubmit: state.canSubmit }), children: ({ canSubmit }) => (jsx(Button, { type: "submit", disabled: !canSubmit || isLoading, className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", children: isLoading ? t('apiTabEditApiModal.saving') : t('apiTabEditApiModal.save') })) })] })] }));
|
|
94
91
|
}
|
|
95
92
|
function EditApiModal({ isOpen, onClose, apiKeyName, tenantKey }) {
|
|
96
93
|
var _a;
|
|
97
94
|
const t = useT();
|
|
98
95
|
const skip = !isOpen || !apiKeyName || !tenantKey;
|
|
99
|
-
const { data: token, isError: isTokenError, isFetching: isTokenFetching, } = useGetApiKeyQuery({ name: apiKeyName, platformKey: tenantKey }, { skip });
|
|
96
|
+
const { data: token, isError: isTokenError, isFetching: isTokenFetching, refetch: refetchToken, } = useGetApiKeyQuery({ name: apiKeyName, platformKey: tenantKey }, { skip });
|
|
100
97
|
const { data: fieldPermissionsData, isError: isFieldPermissionsError, isLoading: isFieldPermissionsLoading, } = useGetApiKeyFieldPermissionsQuery({ platformKey: tenantKey }, { skip });
|
|
101
98
|
// The detail payload wins when it embeds write flags, since those describe
|
|
102
99
|
// this token rather than the create form.
|
|
103
100
|
const fieldPermissions = (_a = token === null || token === void 0 ? void 0 : token.field_permissions) !== null && _a !== void 0 ? _a : (isFieldPermissionsError ? DENIED_TOKEN_POLICY_PERMISSIONS : fieldPermissionsData);
|
|
104
101
|
// Both must settle first: an unresolved permission map reads as "all
|
|
105
|
-
// writable", which would render controls the caller may not actually have.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
// writable", which would render controls the caller may not actually have. A
|
|
103
|
+
// token being re-read must not seed the form either: the form compares against
|
|
104
|
+
// what it was seeded with, so a stale copy would undo the last save. Once seeded
|
|
105
|
+
// it stays up: a failed save re-reads the token too, and must not lose the edits.
|
|
106
|
+
const canSeed = Boolean(token) && !isFieldPermissionsLoading && !isTokenFetching && !isTokenError;
|
|
107
|
+
const [seeded, setSeeded] = React__default.useState(false);
|
|
108
|
+
React__default.useEffect(() => {
|
|
109
|
+
if (!isOpen)
|
|
110
|
+
setSeeded(false);
|
|
111
|
+
else if (canSeed)
|
|
112
|
+
setSeeded(true);
|
|
113
|
+
}, [isOpen, canSeed]);
|
|
114
|
+
const isReady = Boolean(token) && !isFieldPermissionsLoading && (seeded || canSeed);
|
|
115
|
+
return (jsx(Dialog, { open: isOpen, onOpenChange: onClose, children: jsxs(DialogContent, { className: "w-full max-w-md max-h-[85vh] overflow-y-auto", children: [jsx(DialogDescription, { className: "sr-only", children: t('apiTabEditApiModal.title') }), jsx(DialogHeader, { children: jsx(DialogTitle, { className: "ibl-dialog-title", children: t('apiTabEditApiModal.title') }) }), isReady && token ? (jsx(EditApiKeyForm, { token: token, tenantKey: tenantKey, fieldPermissions: fieldPermissions, onClose: onClose }, token.name)) : isTokenError && !isTokenFetching ? (jsxs("div", { className: "flex flex-col items-center gap-3 py-6 text-center text-sm text-muted-foreground", children: [jsx("p", { children: t('apiTabEditApiModal.loadError') }), jsx(Button, { type: "button", variant: "outline", size: "sm", onClick: () => refetchToken(), "data-testid": "api-key-edit-retry", children: t('apiTabLabels.table.tryAgain') })] })) : (jsx("p", { className: "py-6 text-center text-sm text-muted-foreground", children: t('apiTabEditApiModal.loading') }))] }) }));
|
|
110
116
|
}
|
|
111
117
|
|
|
112
118
|
export { EditApiModal };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-api-modal.js","sources":["../../../../../../../../src/components/profile/api/edit-api-modal.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;AAgDA,SAAS,cAAc,CAAC,EACtB,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,OAAO,GAMR,EAAA;;AACC,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;AAChB,IAAA,MAAM,WAAW,GAAGA,cAAK,CAAC,KAAK,EAAE;AACjC,IAAA,MAAM,iBAAiB,GAAGA,cAAK,CAAC,OAAO,CAAC,MAAM,qBAAqB,CAAC,CAAC,CAAC,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EAAA,EAAK,SAAS,EAAC,iFAAiF,EAAA,QAAA,EAAA,CAC9FC,GAAA,CAAA,GAAA,EAAA,EAAA,QAAA,EAAI,CAAC,CAAC,8BAA8B,CAAC,EAAA,CAAK,EAC1CA,GAAA,CAAC,MAAM,EAAA,EACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,MAAM,YAAY,EAAE,EAAA,aAAA,EACjB,oBAAoB,YAE/B,CAAC,CAAC,6BAA6B,CAAC,GAC1B,CAAA,EAAA,CACL,KAENA,GAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAC,gDAAgD,EAAA,QAAA,EAC1D,CAAC,CAAC,4BAA4B,CAAC,EAAA,CAC9B,CACL,CAAA,EAAA,CACa,EAAA,CACT;AAEb;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { format } from 'date-fns';
|
|
4
|
+
import { useT } from '../../../i18n/context.js';
|
|
5
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
6
|
+
import { cn } from '../../../lib/utils.js';
|
|
7
|
+
import { Button } from '../../ui/button.js';
|
|
8
|
+
import { Calendar as Calendar$1 } from '../../ui/calendar.js';
|
|
9
|
+
import { ApiFieldLabel } from './api-field-label.js';
|
|
10
|
+
import Calendar from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/calendar.js';
|
|
11
|
+
import X from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js';
|
|
12
|
+
|
|
13
|
+
/** Inline calendar — a popover would close the surrounding dialog on select. */
|
|
14
|
+
function ExpirationDateField({ value, onChange, helpText }) {
|
|
15
|
+
const t = useT();
|
|
16
|
+
const [isCalendarOpen, setIsCalendarOpen] = React__default.useState(false);
|
|
17
|
+
const baseId = React__default.useId();
|
|
18
|
+
const triggerId = `${baseId}-trigger`;
|
|
19
|
+
const labelId = `${baseId}-label`;
|
|
20
|
+
const valueId = `${baseId}-value`;
|
|
21
|
+
return (jsxs("div", { className: "space-y-1.5", children: [jsx(ApiFieldLabel, { htmlFor: triggerId, id: labelId, text: t('apiTabLabels.createModal.expirationLabel'), info: t('apiTabLabels.createModal.expirationInfo') }), jsxs("div", { className: "flex items-center gap-2", children: [jsxs(Button, { id: triggerId, type: "button", variant: "outline", "aria-labelledby": `${labelId} ${valueId}`, "aria-haspopup": "dialog", "aria-expanded": isCalendarOpen, onClick: () => setIsCalendarOpen((open) => !open), className: cn('flex-1 pl-3 text-left font-normal', !value && 'text-muted-foreground'), children: [jsx("span", { id: valueId, children: value ? format(value, 'PPP') : t('apiTabLabels.createModal.expirationPlaceholder') }), jsx(Calendar, { className: "ml-auto h-4 w-4 opacity-50" })] }), value && (jsx(Button, { type: "button", variant: "ghost", size: "icon", "aria-label": t('apiTabTokenPolicies.clearExpiration'), onClick: () => {
|
|
22
|
+
onChange(null);
|
|
23
|
+
setIsCalendarOpen(false);
|
|
24
|
+
}, children: jsx(X, { className: "h-4 w-4" }) }))] }), isCalendarOpen && (jsx("div", { className: "mt-2 w-auto rounded-md border border-gray-200 dark:border-gray-700", children: jsx(Calendar$1, { mode: "single",
|
|
25
|
+
// @ts-expect-error - Calendar selected prop expects Date but the field may be null
|
|
26
|
+
selected: value, onSelect: (date) => {
|
|
27
|
+
// Clicking the selected day means "keep it"; the X clears the date.
|
|
28
|
+
if (date)
|
|
29
|
+
onChange(date);
|
|
30
|
+
setIsCalendarOpen(false);
|
|
31
|
+
}, disabled: (date) => date && date < new Date() }) })), helpText && jsx("p", { className: "text-xs text-muted-foreground", children: helpText })] }));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { ExpirationDateField };
|
|
35
|
+
//# sourceMappingURL=expiration-date-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expiration-date-field.js","sources":["../../../../../../../../src/components/profile/api/expiration-date-field.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx","CalendarIcon","XIcon","Calendar"],"mappings":";;;;;;;;;;;;AAkBA;AACM,SAAU,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAS,EAAA;AACtE,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;AAChB,IAAA,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;AACjE,IAAA,MAAM,MAAM,GAAGA,cAAK,CAAC,KAAK,EAAE;AAC5B,IAAA,MAAM,SAAS,GAAG,CAAA,EAAG,MAAM,UAAU;AACrC,IAAA,MAAM,OAAO,GAAG,CAAA,EAAG,MAAM,QAAQ;AACjC,IAAA,MAAM,OAAO,GAAG,CAAA,EAAG,MAAM,QAAQ;AAEjC,IAAA,QACEC,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,aAAa,EAAA,QAAA,EAAA,CAC1BC,GAAA,CAAC,aAAa,EAAA,EACZ,OAAO,EAAE,SAAS,EAClB,EAAE,EAAE,OAAO,EACX,IAAI,EAAE,CAAC,CAAC,0CAA0C,CAAC,EACnD,IAAI,EAAE,CAAC,CAAC,yCAAyC,CAAC,EAAA,CAClD,EACFD,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,yBAAyB,EAAA,QAAA,EAAA,CACtCA,IAAA,CAAC,MAAM,EAAA,EACL,EAAE,EAAE,SAAS,EACb,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,SAAS,EAAA,iBAAA,EAEA,GAAG,OAAO,CAAA,CAAA,EAAI,OAAO,CAAA,CAAE,EAAA,eAAA,EAC1B,QAAQ,EAAA,eAAA,EACP,cAAc,EAC7B,OAAO,EAAE,MAAM,iBAAiB,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,EACjD,SAAS,EAA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|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { checkRbacPermission } from '@iblai/web-utils';
|
|
4
|
+
import { Button } from '../../ui/button.js';
|
|
5
|
+
import { useT } from '../../../i18n/context.js';
|
|
6
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { InfoBannerRow, InfoBanner } from '../info-banner.js';
|
|
8
|
+
import { ApiKeysTable } from './api-keys-table.js';
|
|
9
|
+
import { CreateApiModal } from './create-api-modal.js';
|
|
10
|
+
import CodeXml from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/code-xml.js';
|
|
11
|
+
import Plus from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/plus.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Listing keys needs `/apitokens/#list`, creating one `/apitokens/#create`.
|
|
15
|
+
*
|
|
16
|
+
* One way to connect exists today, so the banner covers it alone. When a second
|
|
17
|
+
* method ships, the banner becomes a "Ways to Connect" list (one row per method
|
|
18
|
+
* with its name, one sentence and a help link) and the keys table stays under
|
|
19
|
+
* the API row.
|
|
20
|
+
*/
|
|
21
|
+
function ApiTab({ tenantKey, username, enableRbac = false, rbacPermissions = {}, helpUrl, }) {
|
|
22
|
+
const t = useT();
|
|
23
|
+
const canList = checkRbacPermission(rbacPermissions, '/apitokens/#list', enableRbac);
|
|
24
|
+
const canCreate = checkRbacPermission(rbacPermissions, '/apitokens/#create', enableRbac);
|
|
25
|
+
const [createOpen, setCreateOpen] = useState(false);
|
|
26
|
+
return (jsxs("div", { className: "container mx-auto max-w-7xl !mt-0 space-y-4", children: [jsx(InfoBannerRow, { action: canCreate && (jsxs(Button, { size: "sm", onClick: () => setCreateOpen(true), "data-testid": "api-key-create", className: "cursor-pointer bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", children: [jsx(Plus, { className: "h-4 w-4", "aria-hidden": "true" }), t('apiTab.createKey')] })), children: jsxs(InfoBanner, { icon: jsx(CodeXml, { className: "h-5 w-5", "aria-hidden": "true" }), children: [t('apiTab.banner'), helpUrl && (jsxs(Fragment, { children: [' ', jsx("a", { href: helpUrl, target: "_blank", rel: "noopener noreferrer", "aria-label": t('apiTab.helpLinkAriaLabel'), className: "font-medium text-blue-600 underline underline-offset-2 hover:text-blue-700", children: t('apiTab.helpLink') })] }))] }) }), canList ? (jsx(ApiKeysTable, { tenantKey: tenantKey })) : (jsx("p", { className: "text-sm text-gray-600", "data-testid": "api-keys-forbidden", children: t('apiTabLabels.table.noPermission') })), canCreate && (jsx(CreateApiModal, { isOpen: createOpen, onClose: () => setCreateOpen(false), tenantKey: tenantKey, username: username }))] }));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { ApiTab, ApiTab as default };
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../src/components/profile/api/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","_Fragment"],"mappings":";;;;;;;;;;;;AAoBA;;;;;;;AAOG;SACa,MAAM,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,eAAe,GAAG,EAAE,EACpB,OAAO,GACK,EAAA;AACZ,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;IAChB,MAAM,OAAO,GAAG,mBAAmB,CAAC,eAAe,EAAE,kBAAkB,EAAE,UAAU,CAAC;IACpF,MAAM,SAAS,GAAG,mBAAmB,CAAC,eAAe,EAAE,oBAAoB,EAAE,UAAU,CAAC;IACxF,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AAEnD,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC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,EACpB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAA,EAAA,CACG;AAEV;;;;"}
|
|
@@ -2,12 +2,12 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { canWriteField } from '@iblai/web-utils';
|
|
4
4
|
import { useGetRbacPoliciesQuery, useGetRbacGroupsQuery } from '@iblai/data-layer';
|
|
5
|
-
import { useT } from '
|
|
6
|
-
import '
|
|
7
|
-
import { Badge } from '
|
|
8
|
-
import { Label } from '
|
|
9
|
-
import { RadioGroup, RadioGroupItem } from '
|
|
10
|
-
import { SearchableMultiSelect } from '
|
|
5
|
+
import { useT } from '../../../i18n/context.js';
|
|
6
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { Badge } from '../../ui/badge.js';
|
|
8
|
+
import { Label } from '../../ui/label.js';
|
|
9
|
+
import { RadioGroup, RadioGroupItem } from '../../ui/radio-group.js';
|
|
10
|
+
import { SearchableMultiSelect } from '../../searchable-multiselect.js';
|
|
11
11
|
import { RBAC_PICKER_PAGE_SIZE, API_TOKEN_MODES, RBAC_SEARCH_DEBOUNCE_MS } from './constants.js';
|
|
12
12
|
|
|
13
13
|
function useDebouncedValue(value, delay) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-policy-fields.js","sources":["../../../../../../../../src/components/profile/api/token-policy-fields.tsx"],"sourcesContent":[null],"names":["React","_jsx","_jsxs"],"mappings":";;;;;;;;;;;;AAoCA,SAAS,iBAAiB,CAAI,KAAQ,EAAE,KAAa,EAAA;AACnD,IAAA,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;AAEjE,IAAAA,cAAK,CAAC,SAAS,CAAC,MAAK;AACnB,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,C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W,EACxB,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,CAAC,CAAC,uCAAuC,CAAC,EACvD,YAAY,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EACzC,YAAY,EAAE,SAAS,EACvB,OAAO,EAAE,CAAA,EAAG,QAAQ,CAAA,OAAA,CAAS,EAC7B,eAAe,EAAE,GAAG,QAAQ,CAAA,YAAA,CAAc,EAAA,CAC1C,KAEFA,IAAC,iBAAiB,EAAA,EAChB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,CAAC,CAAC,kCAAkC,CAAC,EAAA,CACjD,CACH,EACDA,GAAA,CAAA,GAAA,EAAA,EAAG,EAAE,EAAE,CAAA,EAAG,QAAQ,CAAA,YAAA,CAAc,EAAE,SAAS,EAAC,+BAA+B,EAAA,QAAA,EACxE,CAAC,CAAC,gCAAgC,CAAC,EAAA,CAClC,CAAA,EAAA,CACA,CAAA,EAAA,CACL,CACJ,CAAA,EAAA,CACG;AAEV;;;;"}
|
|
@@ -5,6 +5,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
5
5
|
* management tab styling (see `admin.tsx`).
|
|
6
6
|
*/
|
|
7
7
|
const InfoBanner = ({ icon, title, id, children, className }) => (jsxs("div", { className: `flex gap-3 items-center border rounded-lg p-4 bg-blue-50/60 border-blue-100 ${className !== null && className !== void 0 ? className : ''}`, children: [icon && (jsx("div", { className: "shrink-0 w-9 h-9 rounded-md flex items-center justify-center bg-blue-100 text-blue-600", children: icon })), jsxs("div", { className: "flex-1 min-w-0", children: [title && jsx("h3", { className: "text-sm font-semibold mb-1 text-blue-900", children: title }), jsx("p", { id: id, className: "text-sm text-gray-600 leading-relaxed", children: children })] })] }));
|
|
8
|
+
/** A section's description with its one button beside it; they stack on phones. */
|
|
9
|
+
const InfoBannerRow = ({ children, action }) => (jsxs("div", { "data-testid": "info-banner-row", className: "flex flex-col items-end gap-3 sm:flex-row sm:items-center", children: [jsx("div", { className: "w-full min-w-0 sm:flex-1", children: children }), action && jsx("div", { className: "shrink-0", children: action })] }));
|
|
8
10
|
|
|
9
|
-
export { InfoBanner };
|
|
11
|
+
export { InfoBanner, InfoBannerRow };
|
|
10
12
|
//# sourceMappingURL=info-banner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-banner.js","sources":["../../../../../../../src/components/profile/info-banner.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;AAWA;;;AAGG;AACI,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAmB,MAClFA,IAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,CAAA,4EAAA,EACT,SAAS,KAAA,IAAA,IAAT,SAAS,KAAA,MAAA,GAAT,SAAS,GAAI,EACf,CAAA,CAAE,EAAA,QAAA,EAAA,CAED,IAAI,KACHC,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,wFAAwF,EAAA,QAAA,EACpG,IAAI,EAAA,CACD,CACP,EACDD,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,gBAAgB,EAAA,QAAA,EAAA,CAC5B,KAAK,IAAIC,GAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAC,0CAA0C,EAAA,QAAA,EAAE,KAAK,GAAM,EAC/EA,GAAA,CAAA,GAAA,EAAA,EAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,uCAAuC,YACzD,QAAQ,EAAA,CACP,CAAA,EAAA,CACA,CAAA,EAAA,CACF;;;;"}
|
|
1
|
+
{"version":3,"file":"info-banner.js","sources":["../../../../../../../src/components/profile/info-banner.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;AAWA;;;AAGG;AACI,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAmB,MAClFA,IAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,CAAA,4EAAA,EACT,SAAS,KAAA,IAAA,IAAT,SAAS,KAAA,MAAA,GAAT,SAAS,GAAI,EACf,CAAA,CAAE,EAAA,QAAA,EAAA,CAED,IAAI,KACHC,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,wFAAwF,EAAA,QAAA,EACpG,IAAI,EAAA,CACD,CACP,EACDD,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,gBAAgB,EAAA,QAAA,EAAA,CAC5B,KAAK,IAAIC,GAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAC,0CAA0C,EAAA,QAAA,EAAE,KAAK,GAAM,EAC/EA,GAAA,CAAA,GAAA,EAAA,EAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,uCAAuC,YACzD,QAAQ,EAAA,CACP,CAAA,EAAA,CACA,CAAA,EAAA,CACF;AAUR;AACO,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAsB,MACpED,6BACc,iBAAiB,EAC7B,SAAS,EAAC,2DAA2D,EAAA,QAAA,EAAA,CAErEC,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,0BAA0B,YAAE,QAAQ,EAAA,CAAO,EACzD,MAAM,IAAIA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,UAAU,EAAA,QAAA,EAAE,MAAM,EAAA,CAAO,CAAA,EAAA,CAC/C;;;;"}
|
|
@@ -1,47 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { Button } from '../../ui/button.js';
|
|
4
3
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from '../../ui/tabs.js';
|
|
5
4
|
import { checkRbacPermission } from '@iblai/web-utils';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { CreateDataSourceModal } from './data-sources-tab/create-data-source-modal.js';
|
|
11
|
-
import IntegrationDataSourcesTab from './data-sources-tab/integration-data-sources-tab.js';
|
|
12
|
-
import Plus from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/plus.js';
|
|
5
|
+
import { useT } from '../../../i18n/context.js';
|
|
6
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { SecretsTab } from '../secrets/index.js';
|
|
8
|
+
import { ApiTab } from '../api/index.js';
|
|
13
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `SecretsTab` and `ApiTab`: the organization settings rail
|
|
12
|
+
* lists them as two pages under Integrations, and `Account` no longer renders
|
|
13
|
+
* this component. It stays for one release so hosts that still mount it keep
|
|
14
|
+
* working, and goes in the next minor.
|
|
15
|
+
*/
|
|
14
16
|
function IntegrationsTab({ tenantKey, username, enableRbac = false, rbacPermissions = {}, }) {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
// people who may list them; Add API additionally needs `create`.
|
|
17
|
+
const t = useT();
|
|
18
|
+
const [selectedTab, setSelectedTab] = useState('secrets');
|
|
18
19
|
const canListApiTokens = checkRbacPermission(rbacPermissions, '/apitokens/#list', enableRbac);
|
|
19
|
-
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const [showCreateApiModal, setShowCreateApiModal] = useState(false);
|
|
24
|
-
const [showCreateLLMModal, setShowCreateLLMModal] = useState(false);
|
|
25
|
-
const [showCreateDataSourceModal, setShowCreateDataSourceModal] = useState(false);
|
|
26
|
-
function closeCreateApiModal() {
|
|
27
|
-
setShowCreateApiModal(false);
|
|
28
|
-
}
|
|
29
|
-
function openCreateApiModal() {
|
|
30
|
-
setShowCreateApiModal(true);
|
|
31
|
-
}
|
|
32
|
-
function closeCreateLLMModal() {
|
|
33
|
-
setShowCreateLLMModal(false);
|
|
34
|
-
}
|
|
35
|
-
function openCreateLLMModal() {
|
|
36
|
-
setShowCreateLLMModal(true);
|
|
37
|
-
}
|
|
38
|
-
function closeCreateDataSourceModal() {
|
|
39
|
-
setShowCreateDataSourceModal(false);
|
|
40
|
-
}
|
|
41
|
-
function openCreateDataSourceModal() {
|
|
42
|
-
setShowCreateDataSourceModal(true);
|
|
43
|
-
}
|
|
44
|
-
return (jsxs("div", { className: "container mx-auto max-w-7xl !mt-0", children: [jsxs(Tabs, { value: activeTab, onValueChange: setActiveTab, className: "w-full px-2 sm:px-0", children: [jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:justify-between sm:items-center mb-6", children: [jsxs(TabsList, { className: `sm:grid sm:w-fit ${canListApiTokens ? 'sm:grid-cols-3' : 'sm:grid-cols-2'} h-auto sm:h-[35px] gap-2 sm:gap-0`, children: [jsx(TabsTrigger, { value: "llms", className: activeTab === 'llms' ? 'w-full' : undefined, children: "LLMs" }), jsx(TabsTrigger, { value: "data-sources", className: activeTab === 'data-sources' ? 'w-full' : undefined, children: "Data Sources" }), canListApiTokens && (jsx(TabsTrigger, { value: "generated", className: activeTab === 'generated' ? 'w-full' : undefined, children: "APIs" }))] }), jsxs("div", { className: "flex gap-2 w-full sm:w-auto", children: [activeTab === 'llms' && (jsxs(Button, { className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] hover:opacity-90 text-white h-[35px] w-full sm:w-auto", onClick: openCreateLLMModal, children: [jsx(Plus, { className: "w-4 h-4 mr-2" }), "Add LLM"] })), activeTab === 'data-sources' && (jsxs(Button, { className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] hover:opacity-90 text-white h-[35px] w-full sm:w-auto", onClick: openCreateDataSourceModal, children: [jsx(Plus, { className: "w-4 h-4 mr-2" }), "Add Data Source"] })), activeTab === 'generated' && canCreateApiTokens && (jsxs(Button, { className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] hover:opacity-90 text-white h-[35px] w-full sm:w-auto", onClick: openCreateApiModal, children: [jsx(Plus, { className: "w-4 h-4 mr-2" }), "Add API"] }))] })] }), canListApiTokens && (jsx(TabsContent, { value: "generated", className: "space-y-4", children: jsx(IntegrationAutogeneratedTab, { tenantKey: tenantKey }) })), jsx(TabsContent, { value: "llms", className: "space-y-4", children: jsx(IntegrationLLMsTab, { tenantKey: tenantKey }) }), jsx(TabsContent, { value: "data-sources", className: "space-y-4", children: jsx(IntegrationDataSourcesTab, { tenantKey: tenantKey }) })] }), jsx(CreateApiModal, { isOpen: showCreateApiModal, onClose: closeCreateApiModal, tenantKey: tenantKey, username: username }), jsx(CreateLLMModal, { isOpen: showCreateLLMModal, onClose: closeCreateLLMModal, tenantKey: tenantKey }), jsx(CreateDataSourceModal, { isOpen: showCreateDataSourceModal, onClose: closeCreateDataSourceModal, tenantKey: tenantKey })] }));
|
|
20
|
+
// The permission can be revoked while API is open; fall back to
|
|
21
|
+
// Secrets rather than leaving a panel with no selected tab.
|
|
22
|
+
const activeTab = selectedTab === 'api' && !canListApiTokens ? 'secrets' : selectedTab;
|
|
23
|
+
return (jsx("div", { className: "container mx-auto max-w-7xl !mt-0", children: jsxs(Tabs, { value: activeTab, onValueChange: (value) => setSelectedTab(value), className: "w-full px-2 sm:px-0", children: [jsxs(TabsList, { className: `mb-6 sm:grid sm:w-fit ${canListApiTokens ? 'sm:grid-cols-2' : 'sm:grid-cols-1'} h-auto sm:h-[35px] gap-2 sm:gap-0`, children: [jsx(TabsTrigger, { value: "secrets", className: activeTab === 'secrets' ? 'w-full' : undefined, "data-testid": "vm-admin-sub-tab-secrets", children: t('integrationsTab.tabSecrets') }), canListApiTokens && (jsx(TabsTrigger, { value: "api", className: activeTab === 'api' ? 'w-full' : undefined, children: t('integrationsTab.tabApi') }))] }), jsx(TabsContent, { value: "secrets", className: "space-y-4", children: jsx(SecretsTab, { tenantKey: tenantKey, username: username }) }), canListApiTokens && (jsx(TabsContent, { value: "api", className: "space-y-4", children: jsx(ApiTab, { tenantKey: tenantKey, username: username, enableRbac: enableRbac, rbacPermissions: rbacPermissions }) }))] }) }));
|
|
45
24
|
}
|
|
46
25
|
|
|
47
26
|
export { IntegrationsTab as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../src/components/profile/integration/index.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../src/components/profile/integration/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;AAWA;;;;;AAKG;AACW,SAAU,eAAe,CAAC,EACtC,SAAS,EACT,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,eAAe,GAAG,EAAE,GAMrB,EAAA;AACC,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;IAChB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC;IAE7E,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,eAAe,EAAE,kBAAkB,EAAE,UAAU,CAAC;;;AAI7F,IAAA,MAAM,SAAS,GACb,WAAW,KAAK,KAAK,IAAI,CAAC,gBAAgB,GAAG,SAAS,GAAG,WAAW;AAEtE,IAAA,QACEA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,mCAAmC,YAChDC,IAAA,CAAC,IAAI,EAAA,EACH,KAAK,EAAE,SAAS,EAChB,aAAa,EAAE,CAAC,KAAK,KAAK,cAAc,CAAC,KAA2B,CAAC,EACrE,SAAS,EAAC,qBAAqB,EAAA,QAAA,EAAA,CAE/BA,IAAA,CAAC,QAAQ,EAAA,EACP,SAAS,EAAE,CAAA,sBAAA,EAAyB,gBAAgB,GAAG,gBAAgB,GAAG,gBAAgB,CAAA,kCAAA,CAAoC,EAAA,QAAA,EAAA,CAE9HD,GAAA,CAAC,WAAW,IACV,KAAK,EAAC,SAAS,EACf,SAAS,EAAE,SAAS,KAAK,SAAS,GAAG,QAAQ,GAAG,SAAS,EAAA,aAAA,EAC7C,0BAA0B,EAAA,QAAA,EAErC,CAAC,CAAC,4BAA4B,CAAC,EAAA,CACpB,EACb,gBAAgB,KACfA,IAAC,WAAW,EAAA,EAAC,KAAK,EAAC,KAAK,EAAC,SAAS,EAAE,SAAS,KAAK,KAAK,GAAG,QAAQ,GAAG,SAAS,EAAA,QAAA,EAC3E,CAAC,CAAC,wBAAwB,CAAC,EAAA,CAChB,CACf,CAAA,EAAA,CACQ,EAEXA,IAAC,WAAW,EAAA,EAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAA,QAAA,EAChDA,IAAC,UAAU,EAAA,EAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAA,CAAI,GAC5C,EAEb,gBAAgB,KACfA,GAAA,CAAC,WAAW,EAAA,EAAC,KAAK,EAAC,KAAK,EAAC,SAAS,EAAC,WAAW,EAAA,QAAA,EAC5CA,GAAA,CAAC,MAAM,EAAA,EACL,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAAA,CAChC,EAAA,CACU,CACf,CAAA,EAAA,CACI,EAAA,CACH;AAEV;;;;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useMemo } from 'react';
|
|
3
|
+
import { useListVirtualMachineSecretsQuery, useGetIntegrationCredentialsQuery, useGetIntegrationCredentialsSchemaQuery, useGetMaskedLLMCredentialsQuery, useGetCredentialsSchemaQuery, getVirtualMachineErrorStatus } from '@iblai/data-layer';
|
|
4
|
+
import { Tabs, TabsList, TabsTrigger, TabsContent } from '../../ui/tabs.js';
|
|
5
|
+
import { useT } from '../../../i18n/context.js';
|
|
6
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { toIntegrationCredentialOptions, toServiceSchemas, toAiProviderKeys, toAiProviderSchemas } from '../../virtual-machine/credential-options.js';
|
|
8
|
+
import { buildSecretRows } from '../../virtual-machine/secret-rows.js';
|
|
9
|
+
import { SecretsList } from './secrets-list.js';
|
|
10
|
+
|
|
11
|
+
// Stable empty lists, so the list's memo and the dialog's reset effect do not re-run on every render.
|
|
12
|
+
const NO_SECRETS = [];
|
|
13
|
+
const NO_AI_KEYS = [];
|
|
14
|
+
const NO_AI_PROVIDERS = [];
|
|
15
|
+
const NO_SERVICES = [];
|
|
16
|
+
const TABS = [
|
|
17
|
+
{ section: 'llms', label: 'secrets.tabLlms', testId: 'secrets-tab-llms' },
|
|
18
|
+
{ section: 'services', label: 'secrets.tabServices', testId: 'secrets-tab-services' },
|
|
19
|
+
{ section: 'env', label: 'secrets.tabEnv', testId: 'secrets-tab-env' },
|
|
20
|
+
];
|
|
21
|
+
const TAB_COLUMNS = ['sm:grid-cols-1', 'sm:grid-cols-2', 'sm:grid-cols-3'];
|
|
22
|
+
/**
|
|
23
|
+
* What a list query says about the rows it feeds: refused (403) hides them
|
|
24
|
+
* quietly; any other failure keeps the rest behind a notice with Try Again;
|
|
25
|
+
* allowed means it answered and its rows can show.
|
|
26
|
+
*/
|
|
27
|
+
function listState(query) {
|
|
28
|
+
// A retry after a failure has no data yet but reports isLoading false;
|
|
29
|
+
// read as answered, it would show the empty sentence and let a held AI
|
|
30
|
+
// provider be picked again.
|
|
31
|
+
const loading = query.isUninitialized || query.isLoading || (query.isFetching && query.data === undefined);
|
|
32
|
+
const forbidden = getVirtualMachineErrorStatus(query.error) === 403;
|
|
33
|
+
const failed = query.isError && !forbidden;
|
|
34
|
+
return { loading, forbidden, failed, allowed: !loading && !forbidden && !failed };
|
|
35
|
+
}
|
|
36
|
+
function choicesOf(...states) {
|
|
37
|
+
if (states.some((state) => state.loading))
|
|
38
|
+
return 'loading';
|
|
39
|
+
return states.some((state) => state.failed) ? 'failed' : 'ready';
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Organization settings → Secrets: one sub-tab per kind of key. The page has
|
|
43
|
+
* no permission to check up front: a list that is refused hides its own tab,
|
|
44
|
+
* a list that fails can be retried on its tab, and only when all three are
|
|
45
|
+
* refused does the page say so instead.
|
|
46
|
+
*/
|
|
47
|
+
function SecretsTab({ tenantKey, username }) {
|
|
48
|
+
var _a;
|
|
49
|
+
const t = useT();
|
|
50
|
+
const [selectedTab, setSelectedTab] = useState('llms');
|
|
51
|
+
const secretsQuery = useListVirtualMachineSecretsQuery({ org: tenantKey });
|
|
52
|
+
const credentialsQuery = useGetIntegrationCredentialsQuery({ org: tenantKey });
|
|
53
|
+
const schemaQuery = useGetIntegrationCredentialsSchemaQuery({ org: tenantKey });
|
|
54
|
+
const aiKeysQuery = useGetMaskedLLMCredentialsQuery({ org: tenantKey });
|
|
55
|
+
const aiSchemaQuery = useGetCredentialsSchemaQuery({ org: tenantKey });
|
|
56
|
+
const secretsState = listState(secretsQuery);
|
|
57
|
+
const credentialsState = listState(credentialsQuery);
|
|
58
|
+
const aiState = listState(aiKeysQuery);
|
|
59
|
+
const schemaState = listState(schemaQuery);
|
|
60
|
+
const aiSchemaState = listState(aiSchemaQuery);
|
|
61
|
+
const secrets = secretsState.allowed ? ((_a = secretsQuery.data) !== null && _a !== void 0 ? _a : NO_SECRETS) : NO_SECRETS;
|
|
62
|
+
const takenEnvVars = useMemo(() => secrets.map((secret) => secret.env_var), [secrets]);
|
|
63
|
+
const credentials = useMemo(() => credentialsState.allowed
|
|
64
|
+
? toIntegrationCredentialOptions(credentialsQuery.data, tenantKey)
|
|
65
|
+
: [], [credentialsState.allowed, credentialsQuery.data, tenantKey]);
|
|
66
|
+
const services = useMemo(() => toServiceSchemas(schemaQuery.data), [schemaQuery.data]);
|
|
67
|
+
const aiKeys = useMemo(() => (aiState.allowed ? toAiProviderKeys(aiKeysQuery.data, t) : NO_AI_KEYS), [aiState.allowed, aiKeysQuery.data, t]);
|
|
68
|
+
// A refused AI list means the schema is refused too: offering providers
|
|
69
|
+
// that can never be added would be an entry point with nothing behind it.
|
|
70
|
+
const aiProviders = useMemo(() => (aiState.forbidden ? NO_AI_PROVIDERS : toAiProviderSchemas(aiSchemaQuery.data, t)), [aiState.forbidden, aiSchemaQuery.data, t]);
|
|
71
|
+
const llmRows = useMemo(() => buildSecretRows([], [], [], aiKeys), [aiKeys]);
|
|
72
|
+
const appRows = useMemo(() => buildSecretRows(credentials, secrets, services).filter((row) => row.kind === 'service'), [credentials, secrets, services]);
|
|
73
|
+
const envRows = useMemo(() => buildSecretRows([], secrets, []), [secrets]);
|
|
74
|
+
const refetchAll = () => {
|
|
75
|
+
void secretsQuery.refetch();
|
|
76
|
+
void credentialsQuery.refetch();
|
|
77
|
+
void aiKeysQuery.refetch();
|
|
78
|
+
void schemaQuery.refetch();
|
|
79
|
+
void aiSchemaQuery.refetch();
|
|
80
|
+
};
|
|
81
|
+
const refused = {
|
|
82
|
+
llms: aiState.forbidden,
|
|
83
|
+
services: credentialsState.forbidden,
|
|
84
|
+
env: secretsState.forbidden,
|
|
85
|
+
};
|
|
86
|
+
const visibleTabs = TABS.filter((tab) => !refused[tab.section]);
|
|
87
|
+
if (visibleTabs.length === 0) {
|
|
88
|
+
return (jsx("p", { "data-testid": "vm-secrets-forbidden", className: "text-sm text-gray-600", children: t('secrets.forbiddenView') }));
|
|
89
|
+
}
|
|
90
|
+
const activeTab = refused[selectedTab] ? visibleTabs[0].section : selectedTab;
|
|
91
|
+
const aiChoices = choicesOf(aiState, aiSchemaState);
|
|
92
|
+
const appChoices = choicesOf(credentialsState, schemaState);
|
|
93
|
+
const sharedProps = {
|
|
94
|
+
tenantKey,
|
|
95
|
+
username,
|
|
96
|
+
takenEnvVars,
|
|
97
|
+
onRetry: refetchAll,
|
|
98
|
+
onChanged: refetchAll,
|
|
99
|
+
};
|
|
100
|
+
return (jsx("div", { className: "container mx-auto max-w-7xl !mt-0", children: jsxs(Tabs, { value: activeTab, onValueChange: (value) => setSelectedTab(value), className: "w-full px-2 sm:px-0", children: [jsx(TabsList, { className: `mb-6 flex-wrap sm:grid sm:w-fit ${TAB_COLUMNS[visibleTabs.length - 1]} h-auto sm:h-[35px] gap-2 sm:gap-0`, children: visibleTabs.map((tab) => (jsx(TabsTrigger, { value: tab.section, className: activeTab === tab.section ? 'w-full' : undefined, "data-testid": tab.testId, children: t(tab.label) }, tab.section))) }), !refused.llms && (jsx(TabsContent, { value: "llms", className: "space-y-4", children: jsx(SecretsList, { ...sharedProps, section: "llms", rows: llmRows, aiProviders: aiProviders, aiKeys: aiKeys, aiKeysSettled: aiState.allowed, isLoading: aiState.loading, listFailed: aiState.failed, schemaFailed: aiSchemaState.failed, choices: aiChoices, canAdd: aiChoices === 'loading' || aiProviders.length > 0 }) })), !refused.services && (jsx(TabsContent, { value: "services", className: "space-y-4", children: jsx(SecretsList, { ...sharedProps, section: "services", rows: appRows, credentials: credentials,
|
|
101
|
+
// Without the held list a repeated add could not be caught, so none is offered until it answers.
|
|
102
|
+
services: credentialsState.allowed ? services : NO_SERVICES, isLoading: credentialsState.loading || secretsState.loading, listFailed: credentialsState.failed, schemaFailed: schemaState.failed, choices: appChoices, canAdd: !credentialsState.failed && (appChoices === 'loading' || services.length > 0) }) })), !refused.env && (jsx(TabsContent, { value: "env", className: "space-y-4", children: jsx(SecretsList, { ...sharedProps, section: "env", rows: envRows, credentials: credentials, services: services, isLoading: secretsState.loading || credentialsState.loading, listFailed: secretsState.failed, choices: secretsState.loading ? 'loading' : 'ready', canAdd: true }) }))] }) }));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { SecretsTab, SecretsTab as default };
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../src/components/profile/secrets/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;AA0BA;AACA,MAAM,UAAU,GAA2B,EAAE;AAC7C,MAAM,UAAU,GAAoB,EAAE;AACtC,MAAM,eAAe,GAAuB,EAAE;AAC9C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