@iblai/iblai-js 2.67.3 → 2.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web-containers/source/_virtual/index2.js +2 -2
- package/dist/web-containers/source/_virtual/index3.js +2 -2
- 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/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/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 +278 -227
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +449 -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 +457 -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 +278 -227
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +449 -398
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +457 -406
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +456 -405
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/index2.js +2 -2
- package/dist/web-containers/source/index3.js +2 -2
- 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/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 +278 -227
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +449 -398
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +457 -406
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +456 -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/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +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 +456 -405
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/package.json +5 -5
- 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,118 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useId, useState } from 'react';
|
|
3
|
+
import { FieldInfo } from '../field-info.js';
|
|
4
|
+
import { TooltipIconButton } from '../tooltip-icon-button.js';
|
|
5
|
+
import { Button } from '../ui/button.js';
|
|
6
|
+
import { Input } from '../ui/input.js';
|
|
7
|
+
import { Label } from '../ui/label.js';
|
|
8
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../ui/select.js';
|
|
9
|
+
import { useT } from '../../i18n/context.js';
|
|
10
|
+
import '../../packages/i18n/dist/index.esm.js';
|
|
11
|
+
import { AZURE_MODEL_FIELDS, addAzureModel, defaultAzureModelConfig, removeAzureModel } from './azure-config.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';
|
|
13
|
+
import ChevronDown from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
14
|
+
import ChevronUp from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-up.js';
|
|
15
|
+
import Trash2 from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/trash-2.js';
|
|
16
|
+
|
|
17
|
+
const FIELD_COPY = {
|
|
18
|
+
key: {
|
|
19
|
+
label: 'secrets.azureKeyLabel',
|
|
20
|
+
placeholder: 'secrets.azureKeyPlaceholder',
|
|
21
|
+
info: 'secrets.azureKeyInfo',
|
|
22
|
+
sensitive: true,
|
|
23
|
+
},
|
|
24
|
+
host: {
|
|
25
|
+
label: 'secrets.azureHostLabel',
|
|
26
|
+
placeholder: 'secrets.azureHostPlaceholder',
|
|
27
|
+
info: 'secrets.azureHostInfo',
|
|
28
|
+
sensitive: false,
|
|
29
|
+
},
|
|
30
|
+
version: {
|
|
31
|
+
label: 'secrets.azureVersionLabel',
|
|
32
|
+
placeholder: 'secrets.azureVersionPlaceholder',
|
|
33
|
+
info: 'secrets.azureVersionInfo',
|
|
34
|
+
sensitive: false,
|
|
35
|
+
},
|
|
36
|
+
deployment: {
|
|
37
|
+
label: 'secrets.azureDeploymentLabel',
|
|
38
|
+
placeholder: 'secrets.azureDeploymentPlaceholder',
|
|
39
|
+
info: 'secrets.azureDeploymentInfo',
|
|
40
|
+
sensitive: false,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
const NO_ERRORS = {};
|
|
44
|
+
/**
|
|
45
|
+
* The Azure OpenAI part of the Add LLM / Edit LLM form: a model picker
|
|
46
|
+
* and one collapsible card of Key, Host, Version and Deployment per model.
|
|
47
|
+
* Controlled; the dialog owns the values, the validation and the request.
|
|
48
|
+
*/
|
|
49
|
+
function AzureModelFields({ models, selected, configs, onSelectedChange, onConfigsChange, mode, errors = NO_ERRORS, loading = false, modelsNotice, onRetryModels, }) {
|
|
50
|
+
const t = useT();
|
|
51
|
+
const baseId = useId();
|
|
52
|
+
const [collapsed, setCollapsed] = useState(() => new Set());
|
|
53
|
+
const isEdit = mode === 'edit';
|
|
54
|
+
const pickable = models.filter((model) => !selected.includes(model.llm_name));
|
|
55
|
+
const pickerId = `${baseId}-model`;
|
|
56
|
+
const fieldId = (model, field) => `${baseId}-${model}-${field}`;
|
|
57
|
+
const cardBodyId = (model) => `${baseId}-${model}-fields`;
|
|
58
|
+
const pick = (model) => {
|
|
59
|
+
const next = addAzureModel(selected, model);
|
|
60
|
+
if (next === selected)
|
|
61
|
+
return;
|
|
62
|
+
onSelectedChange(next);
|
|
63
|
+
onConfigsChange({ ...configs, [model]: { ...defaultAzureModelConfig } });
|
|
64
|
+
};
|
|
65
|
+
const remove = (model) => {
|
|
66
|
+
const next = removeAzureModel(selected, configs, model);
|
|
67
|
+
onSelectedChange(next.selected);
|
|
68
|
+
onConfigsChange(next.configs);
|
|
69
|
+
setCollapsed((current) => {
|
|
70
|
+
if (!current.has(model))
|
|
71
|
+
return current;
|
|
72
|
+
const copy = new Set(current);
|
|
73
|
+
copy.delete(model);
|
|
74
|
+
return copy;
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
const update = (model, field, value) => onConfigsChange({
|
|
78
|
+
...configs,
|
|
79
|
+
[model]: { ...defaultAzureModelConfig, ...configs[model], [field]: value },
|
|
80
|
+
});
|
|
81
|
+
const toggle = (model) => setCollapsed((current) => {
|
|
82
|
+
const copy = new Set(current);
|
|
83
|
+
if (copy.has(model))
|
|
84
|
+
copy.delete(model);
|
|
85
|
+
else
|
|
86
|
+
copy.add(model);
|
|
87
|
+
return copy;
|
|
88
|
+
});
|
|
89
|
+
const fieldLabel = ({ htmlFor, id, text, info, required = false, }) => (jsxs("div", { className: "flex items-center gap-2", children: [jsx(Label, { id: id, htmlFor: htmlFor, className: "text-sm font-medium text-[#646464]", children: text }), required && (jsx("span", { className: "-ml-1 text-red-500", "aria-hidden": "true", children: "*" })), jsx(FieldInfo, { label: text, text: info })] }));
|
|
90
|
+
const fieldError = (key, id) => errors[key] ? (jsx("p", { id: `${id}-error`, role: "alert", className: "text-xs text-red-600", children: errors[key] })) : null;
|
|
91
|
+
return (jsxs("div", { className: "grid gap-4", "data-testid": "vm-secret-azure", children: [isEdit ? (jsx("p", { className: "text-xs text-gray-500", "data-testid": "vm-secret-azure-edit-help", children: t('secrets.azureEditHelp') })) : (jsxs("div", { className: "space-y-1.5", children: [fieldLabel({
|
|
92
|
+
htmlFor: pickerId,
|
|
93
|
+
id: `${pickerId}-label`,
|
|
94
|
+
text: t('secrets.azureModelLabel'),
|
|
95
|
+
info: t('secrets.azureModelInfo'),
|
|
96
|
+
required: true,
|
|
97
|
+
}), jsxs(Select, { value: "", onValueChange: pick, disabled: loading || Boolean(modelsNotice), children: [jsx(SelectTrigger, { id: pickerId, "aria-labelledby": `${pickerId}-label`, "aria-invalid": errors.model ? true : undefined, "aria-describedby": errors.model || modelsNotice ? `${pickerId}-error` : undefined, "data-testid": "vm-secret-azure-model-select", children: jsx(SelectValue, { placeholder: loading ? t('secrets.loading') : t('secrets.azureModelPlaceholder') }) }), jsx(SelectContent, { children: pickable.map((model) => (jsx(SelectItem, { value: model.llm_name, "data-testid": `vm-secret-azure-model-${model.llm_name}`, children: model.llm_name }, model.llm_name))) })] }), modelsNotice ? (jsxs("div", { className: "flex flex-wrap items-center gap-2", "data-testid": "vm-secret-azure-models-notice", children: [jsx("p", { id: `${pickerId}-error`, role: "alert", className: "text-xs text-red-600", children: modelsNotice }), onRetryModels && (jsx(Button, { type: "button", variant: "outline", size: "sm", onClick: onRetryModels, "data-testid": "vm-secret-azure-models-retry", children: t('secrets.tryAgain') }))] })) : (fieldError('model', pickerId))] })), selected.length === 0 && !isEdit && !modelsNotice && (jsxs("div", { className: "rounded-lg border border-dashed border-gray-300 py-4 text-center text-sm text-gray-500", "data-testid": "vm-secret-azure-empty", children: [jsx(Plus, { className: "mx-auto mb-2 h-6 w-6 text-gray-400", "aria-hidden": "true" }), t('secrets.azureModelsEmpty')] })), selected.map((model) => {
|
|
98
|
+
// A card with an error stays open, or Add LLM would seem to do nothing.
|
|
99
|
+
const isCollapsed = collapsed.has(model) && !AZURE_MODEL_FIELDS.some((field) => errors[`${model}.${field}`]);
|
|
100
|
+
const Chevron = isCollapsed ? ChevronDown : ChevronUp;
|
|
101
|
+
return (jsxs("div", { className: "overflow-hidden rounded-lg border border-gray-200", "data-testid": `vm-secret-azure-card-${model}`, children: [jsxs("div", { className: "flex items-center justify-between bg-gray-50 px-3 py-2", children: [jsxs("button", { type: "button", onClick: () => toggle(model), "aria-expanded": !isCollapsed, "aria-controls": cardBodyId(model), className: "flex flex-1 items-center gap-2 text-left text-sm font-semibold text-gray-900", children: [model, jsx(Chevron, { className: "h-4 w-4 text-gray-500", "aria-hidden": "true" })] }), !isEdit && (jsx(TooltipIconButton, { label: t('secrets.azureRemoveModel', { model }), onClick: () => remove(model), "data-testid": `vm-secret-azure-remove-${model}`, className: "text-red-600 hover:text-red-700", children: jsx(Trash2, { className: "h-4 w-4", "aria-hidden": "true" }) }))] }), !isCollapsed && (jsx("div", { id: cardBodyId(model), className: "grid gap-3 p-4", children: AZURE_MODEL_FIELDS.map((field) => {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
const copy = FIELD_COPY[field];
|
|
104
|
+
const id = fieldId(model, field);
|
|
105
|
+
const errorKey = `${model}.${field}`;
|
|
106
|
+
const label = t(copy.label);
|
|
107
|
+
return (jsxs("div", { className: "space-y-1.5", children: [fieldLabel({
|
|
108
|
+
htmlFor: id,
|
|
109
|
+
text: label,
|
|
110
|
+
info: t(copy.info),
|
|
111
|
+
required: !isEdit,
|
|
112
|
+
}), jsx(Input, { id: id, type: copy.sensitive ? 'password' : 'text', value: (_b = (_a = configs[model]) === null || _a === void 0 ? void 0 : _a[field]) !== null && _b !== void 0 ? _b : '', onChange: (event) => update(model, field, event.target.value), placeholder: isEdit ? t('secrets.azureKeepPlaceholder') : t(copy.placeholder), autoComplete: copy.sensitive ? 'new-password' : 'off', spellCheck: false, "aria-invalid": errors[errorKey] ? true : undefined, "aria-describedby": errors[errorKey] ? `${id}-error` : undefined, "data-testid": `vm-secret-azure-${model}-${field}` }), fieldError(errorKey, id)] }, field));
|
|
113
|
+
}) }))] }, model));
|
|
114
|
+
})] }));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export { AzureModelFields };
|
|
118
|
+
//# sourceMappingURL=azure-model-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-model-fields.js","sources":["../../../../../../../src/components/virtual-machine/azure-model-fields.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;AA+CA,MAAM,UAAU,GAGZ;AACF,IAAA,GAAG,EAAE;AACH,QAAA,KAAK,EAAE,uBAAuB;AAC9B,QAAA,WAAW,EAAE,6BAA6B;AAC1C,QAAA,IAAI,EAAE,sBAAsB;AAC5B,QAAA,SAAS,EAAE,IAAI;AAChB,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,KAAK,EAAE,wBAAwB;AAC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AAA,EAC/B,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAA,EAAG,EAAE,CAAA,MAAA,CAAQ,GAAG,SAAS,EAAA,aAAA,EACjD,CAAA,gBAAA,EAAmB,KAAK,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE,EAAA,CAChD,EACD,UAAU,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA,EAAA,EArBjB,KAAK,CAsBT;AAEV,4BAAA,CAAC,CAAC,EAAA,CACE,CACP,KA7DI,KAAK,CA8DN;YAEV,CAAC,CAAC,CAAA,EAAA,CACE;AAEV;;;;"}
|
|
@@ -1,45 +1,291 @@
|
|
|
1
|
-
|
|
1
|
+
import { deriveSecretEnvVar } from '@iblai/data-layer';
|
|
2
|
+
|
|
3
|
+
/** What a sign-in style key is for, when the Secrets list can say it in one sentence. */
|
|
4
|
+
const SERVICE_PURPOSE = {
|
|
5
|
+
drive: 'filePicker',
|
|
6
|
+
dropbox: 'filePicker',
|
|
7
|
+
onedrive: 'filePicker',
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The API host of each service whose key agents can send themselves, checked
|
|
11
|
+
* against the service's own documentation. Which field is the key comes from
|
|
12
|
+
* the service's schema (`agentKeyField`), never from this table.
|
|
13
|
+
*/
|
|
14
|
+
const AGENT_USABLE_SERVICES = {
|
|
15
|
+
stripe: { hosts: ['api.stripe.com:443'] },
|
|
16
|
+
elevenlabs: { hosts: ['api.elevenlabs.io:443'] },
|
|
17
|
+
heygen: { hosts: ['api.heygen.com:443'] },
|
|
18
|
+
};
|
|
19
|
+
/** Field names that mark a sign-in style key, which agents cannot send on their own. */
|
|
20
|
+
const SIGN_IN_FIELDS = new Set(['client_id', 'client_secret']);
|
|
21
|
+
/** Providers whose schema is not one box per field; every other provider gets `'fields'`. */
|
|
22
|
+
const AI_PROVIDER_FORMS = {
|
|
23
|
+
azure_openai: 'azure',
|
|
24
|
+
};
|
|
25
|
+
/** Brand names of the providers the backend seeds no `service_info` for. */
|
|
26
|
+
const AI_PROVIDER_NAMES = {
|
|
27
|
+
azure_openai: 'Azure OpenAI',
|
|
28
|
+
gateway_azure_foundry: 'Azure AI Foundry',
|
|
29
|
+
serper: 'Serper',
|
|
30
|
+
};
|
|
31
|
+
/** Provider names with translatable words, resolved through `t`. */
|
|
32
|
+
const AI_PROVIDER_NAME_KEYS = {
|
|
33
|
+
google: 'secrets.googleServiceAccountName',
|
|
34
|
+
iblai: 'secrets.iblaiProviderName',
|
|
35
|
+
};
|
|
36
|
+
/** Providers ibl.ai provisions itself: listed read-only, never offered in the picker. */
|
|
37
|
+
const AI_PROVIDERS_NOT_OFFERED = ['iblai'];
|
|
38
|
+
/**
|
|
39
|
+
* Whether an LLM key can be edited in place. The backend merges a partial edit
|
|
40
|
+
* only for Azure OpenAI; for any other provider its PATCH replaces the whole
|
|
41
|
+
* stored value, and the stored fields cannot be read back to resend them. So a
|
|
42
|
+
* provider with several fields, or one whose schema has not loaded, has no edit:
|
|
43
|
+
* saving one field would wipe the others.
|
|
44
|
+
*/
|
|
45
|
+
function isAiKeyEditable(provider) {
|
|
46
|
+
return !!provider && (provider.form === 'azure' || provider.fields.length === 1);
|
|
47
|
+
}
|
|
48
|
+
function objectOf(value) {
|
|
2
49
|
if (value && typeof value === 'object' && !Array.isArray(value)) {
|
|
3
|
-
return
|
|
50
|
+
return value;
|
|
4
51
|
}
|
|
5
52
|
// Some serialisers hand the masked value back as a JSON string.
|
|
6
53
|
if (typeof value === 'string') {
|
|
7
54
|
try {
|
|
8
|
-
return
|
|
55
|
+
return objectOf(JSON.parse(value));
|
|
9
56
|
}
|
|
10
57
|
catch (_a) {
|
|
11
|
-
return
|
|
58
|
+
return {};
|
|
12
59
|
}
|
|
13
60
|
}
|
|
61
|
+
return {};
|
|
62
|
+
}
|
|
63
|
+
function parseValue(value) {
|
|
64
|
+
const out = {};
|
|
65
|
+
for (const [key, item] of Object.entries(objectOf(value))) {
|
|
66
|
+
out[key] = typeof item === 'string' ? item : item == null ? '' : JSON.stringify(item);
|
|
67
|
+
}
|
|
68
|
+
return out;
|
|
69
|
+
}
|
|
70
|
+
const UPPER_WORDS = new Set(['API', 'ID', 'URL', 'URI', 'SSO', 'JWT', 'AWS']);
|
|
71
|
+
const SPECIAL_WORDS = { OAUTH: 'OAuth' };
|
|
72
|
+
/** `api_key` → "API Key", `client_secret` → "Client Secret", `appKey` → "App Key": the label a field gets in the form. */
|
|
73
|
+
function humanizeCredentialField(field) {
|
|
74
|
+
return field
|
|
75
|
+
.replace(/([a-z])([A-Z])/g, '$1 $2')
|
|
76
|
+
.split(/[_\s-]+/)
|
|
77
|
+
.filter(Boolean)
|
|
78
|
+
.map((word) => {
|
|
79
|
+
const upper = word.toUpperCase();
|
|
80
|
+
if (SPECIAL_WORDS[upper])
|
|
81
|
+
return SPECIAL_WORDS[upper];
|
|
82
|
+
return UPPER_WORDS.has(upper) ? upper : word.charAt(0).toUpperCase() + word.slice(1);
|
|
83
|
+
})
|
|
84
|
+
.join(' ');
|
|
85
|
+
}
|
|
86
|
+
/** Whether a field is a secret by its name alone, for a schema that carries no `is_sensitive`. */
|
|
87
|
+
function isSecretFieldName(name) {
|
|
88
|
+
return /key|secret|password|token$/i.test(name);
|
|
89
|
+
}
|
|
90
|
+
function displayNameOf(slug, serviceInfo) {
|
|
91
|
+
const name = serviceInfo === null || serviceInfo === void 0 ? void 0 : serviceInfo.display_name;
|
|
92
|
+
return typeof name === 'string' && name ? name : humanizeCredentialField(slug);
|
|
93
|
+
}
|
|
94
|
+
function aiProviderDisplayName(slug, serviceInfo, t) {
|
|
95
|
+
const brand = AI_PROVIDER_NAMES[slug];
|
|
96
|
+
if (brand)
|
|
97
|
+
return brand;
|
|
98
|
+
const key = AI_PROVIDER_NAME_KEYS[slug];
|
|
99
|
+
if (key)
|
|
100
|
+
return t(key);
|
|
101
|
+
return displayNameOf(slug, serviceInfo);
|
|
102
|
+
}
|
|
103
|
+
function logoOf(serviceInfo) {
|
|
104
|
+
const logo = serviceInfo === null || serviceInfo === void 0 ? void 0 : serviceInfo.logo;
|
|
105
|
+
return typeof logo === 'string' && logo ? logo : null;
|
|
106
|
+
}
|
|
107
|
+
function rowsOf(data) {
|
|
108
|
+
var _a, _b;
|
|
109
|
+
if (Array.isArray(data))
|
|
110
|
+
return data;
|
|
111
|
+
if (data && typeof data === 'object') {
|
|
112
|
+
const wrapper = data;
|
|
113
|
+
return (_b = (_a = wrapper.results) !== null && _a !== void 0 ? _a : wrapper.data) !== null && _b !== void 0 ? _b : [];
|
|
114
|
+
}
|
|
14
115
|
return [];
|
|
15
116
|
}
|
|
117
|
+
function byDisplayName(a, b) {
|
|
118
|
+
return a.displayName.localeCompare(b.displayName);
|
|
119
|
+
}
|
|
120
|
+
/** The backend's own scanner key, which is never a person's secret. */
|
|
121
|
+
const SYSTEM_CREDENTIALS = new Set(['scanner_key']);
|
|
16
122
|
/**
|
|
17
|
-
* Normalise the
|
|
18
|
-
*
|
|
19
|
-
* rows
|
|
123
|
+
* Normalise the credential list into options. Tolerates a bare array or a
|
|
124
|
+
* `{ results }` / `{ data }` wrapper, drops rows without a numeric id, the
|
|
125
|
+
* system's own keys and, when `platform` is given, rows the backend filled
|
|
126
|
+
* in from the main platform because this organization had none.
|
|
20
127
|
*/
|
|
21
|
-
function toIntegrationCredentialOptions(data) {
|
|
22
|
-
var _a, _b;
|
|
23
|
-
const rows = Array.isArray(data)
|
|
24
|
-
? data
|
|
25
|
-
: data && typeof data === 'object'
|
|
26
|
-
? ((_b = (_a = data.results) !== null && _a !== void 0 ? _a : data.data) !== null && _b !== void 0 ? _b : [])
|
|
27
|
-
: [];
|
|
128
|
+
function toIntegrationCredentialOptions(data, platform) {
|
|
28
129
|
const options = [];
|
|
29
|
-
for (const row of
|
|
130
|
+
for (const row of rowsOf(data)) {
|
|
30
131
|
if (!row || typeof row !== 'object')
|
|
31
132
|
continue;
|
|
32
|
-
const
|
|
33
|
-
if (typeof id !== 'number')
|
|
133
|
+
const item = row;
|
|
134
|
+
if (typeof item.id !== 'number')
|
|
135
|
+
continue;
|
|
136
|
+
const slug = typeof item.name === 'string' && item.name ? item.name : String(item.id);
|
|
137
|
+
if (SYSTEM_CREDENTIALS.has(slug))
|
|
34
138
|
continue;
|
|
139
|
+
const rowPlatform = typeof item.platform === 'string' ? item.platform : null;
|
|
140
|
+
if (platform && rowPlatform && rowPlatform !== platform)
|
|
141
|
+
continue;
|
|
142
|
+
const values = parseValue(item.value);
|
|
35
143
|
options.push({
|
|
36
|
-
id,
|
|
37
|
-
name:
|
|
38
|
-
|
|
144
|
+
id: item.id,
|
|
145
|
+
name: slug,
|
|
146
|
+
displayName: displayNameOf(slug, item.service_info),
|
|
147
|
+
logo: logoOf(item.service_info),
|
|
148
|
+
platform: rowPlatform,
|
|
149
|
+
fields: Object.keys(values),
|
|
150
|
+
values,
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
return options.sort(byDisplayName);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Normalise the provider schema list (v2) into the services a person can
|
|
157
|
+
* pick. Every field is required unless the schema says otherwise.
|
|
158
|
+
*/
|
|
159
|
+
function toServiceSchemas(data) {
|
|
160
|
+
const services = [];
|
|
161
|
+
for (const row of rowsOf(data)) {
|
|
162
|
+
if (!row || typeof row !== 'object')
|
|
163
|
+
continue;
|
|
164
|
+
const item = row;
|
|
165
|
+
if (typeof item.name !== 'string' || !item.name)
|
|
166
|
+
continue;
|
|
167
|
+
const fields = [];
|
|
168
|
+
if (item.schema && typeof item.schema === 'object') {
|
|
169
|
+
for (const [name, meta] of Object.entries(item.schema)) {
|
|
170
|
+
const info = meta;
|
|
171
|
+
fields.push({
|
|
172
|
+
name,
|
|
173
|
+
isSensitive: Boolean(info === null || info === void 0 ? void 0 : info.is_sensitive),
|
|
174
|
+
required: (info === null || info === void 0 ? void 0 : info.required) !== false,
|
|
175
|
+
systemManaged: Boolean(info === null || info === void 0 ? void 0 : info.system_managed),
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
services.push({
|
|
180
|
+
slug: item.name,
|
|
181
|
+
displayName: displayNameOf(item.name, item.service_info),
|
|
182
|
+
logo: logoOf(item.service_info),
|
|
183
|
+
fields,
|
|
39
184
|
});
|
|
40
185
|
}
|
|
41
|
-
return
|
|
186
|
+
return services.sort(byDisplayName);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Normalise `/credential/schema/` into the AI providers a person can pick,
|
|
190
|
+
* leaving out the ones ibl.ai provisions itself. The schema carries field
|
|
191
|
+
* names and types only, so a field is a password box by its name. Azure
|
|
192
|
+
* OpenAI's schema is one `<model_name>` placeholder: it gets no fields, and
|
|
193
|
+
* the dialog renders its model cards instead.
|
|
194
|
+
*/
|
|
195
|
+
function toAiProviderSchemas(data, t) {
|
|
196
|
+
var _a;
|
|
197
|
+
const providers = [];
|
|
198
|
+
for (const row of rowsOf(data)) {
|
|
199
|
+
if (!row || typeof row !== 'object')
|
|
200
|
+
continue;
|
|
201
|
+
const item = row;
|
|
202
|
+
if (typeof item.name !== 'string' || !item.name)
|
|
203
|
+
continue;
|
|
204
|
+
if (AI_PROVIDERS_NOT_OFFERED.includes(item.name))
|
|
205
|
+
continue;
|
|
206
|
+
const form = (_a = AI_PROVIDER_FORMS[item.name]) !== null && _a !== void 0 ? _a : 'fields';
|
|
207
|
+
const fields = [];
|
|
208
|
+
if (form !== 'azure' && item.schema && typeof item.schema === 'object') {
|
|
209
|
+
for (const name of Object.keys(item.schema)) {
|
|
210
|
+
fields.push({
|
|
211
|
+
name,
|
|
212
|
+
isSensitive: isSecretFieldName(name),
|
|
213
|
+
required: true,
|
|
214
|
+
systemManaged: false,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
providers.push({
|
|
219
|
+
slug: item.name,
|
|
220
|
+
displayName: aiProviderDisplayName(item.name, item.service_info, t),
|
|
221
|
+
logo: logoOf(item.service_info),
|
|
222
|
+
fields,
|
|
223
|
+
form,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
return providers.sort(byDisplayName);
|
|
227
|
+
}
|
|
228
|
+
function maskedKeyOf(value) {
|
|
229
|
+
return typeof value.key === 'string' ? value.key : '';
|
|
230
|
+
}
|
|
231
|
+
function azureModelsOf(value) {
|
|
232
|
+
const models = [];
|
|
233
|
+
for (const [name, creds] of Object.entries(value)) {
|
|
234
|
+
if (!creds || typeof creds !== 'object' || Array.isArray(creds))
|
|
235
|
+
continue;
|
|
236
|
+
models.push({ name, maskedKey: maskedKeyOf(creds) });
|
|
237
|
+
}
|
|
238
|
+
return models;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Normalise `/masked-llm-credential/` into the AI provider keys the
|
|
242
|
+
* organization holds. A flat provider comes back as `{ key: "sk-***…ab" }`
|
|
243
|
+
* and Azure OpenAI as `{ [model]: { key } }`; `value` may also arrive as a
|
|
244
|
+
* JSON string, `{}` or nothing at all.
|
|
245
|
+
*/
|
|
246
|
+
function toAiProviderKeys(data, t) {
|
|
247
|
+
const keys = [];
|
|
248
|
+
for (const row of rowsOf(data)) {
|
|
249
|
+
if (!row || typeof row !== 'object')
|
|
250
|
+
continue;
|
|
251
|
+
const item = row;
|
|
252
|
+
if (typeof item.name !== 'string' || !item.name)
|
|
253
|
+
continue;
|
|
254
|
+
const value = objectOf(item.value);
|
|
255
|
+
const isAzure = AI_PROVIDER_FORMS[item.name] === 'azure';
|
|
256
|
+
keys.push({
|
|
257
|
+
name: item.name,
|
|
258
|
+
displayName: aiProviderDisplayName(item.name, item.service_info, t),
|
|
259
|
+
logo: logoOf(item.service_info),
|
|
260
|
+
platform: typeof item.platform === 'string' ? item.platform : '',
|
|
261
|
+
maskedKey: isAzure ? '' : maskedKeyOf(value),
|
|
262
|
+
models: isAzure ? azureModelsOf(value) : null,
|
|
263
|
+
readOnly: AI_PROVIDERS_NOT_OFFERED.includes(item.name),
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
return keys.sort(byDisplayName);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* The field of a known service's key that an agent can send on its own, or
|
|
270
|
+
* `null` when the key only signs ibl.ai in to the service (a Client ID /
|
|
271
|
+
* Client Secret pair, or several secrets): the one sensitive field of a
|
|
272
|
+
* service without sign-in fields, read from its schema.
|
|
273
|
+
*/
|
|
274
|
+
function agentKeyField(slug, fields) {
|
|
275
|
+
if (fields.some((field) => SIGN_IN_FIELDS.has(field.name)))
|
|
276
|
+
return null;
|
|
277
|
+
const sensitive = fields.filter((field) => field.isSensitive);
|
|
278
|
+
return sensitive.length === 1 ? sensitive[0].name : null;
|
|
279
|
+
}
|
|
280
|
+
/** The service's API hosts, when the SDK knows them; otherwise the person types the address. */
|
|
281
|
+
function defaultHostsFor(slug) {
|
|
282
|
+
var _a, _b;
|
|
283
|
+
return (_b = (_a = AGENT_USABLE_SERVICES[slug]) === null || _a === void 0 ? void 0 : _a.hosts) !== null && _b !== void 0 ? _b : [];
|
|
284
|
+
}
|
|
285
|
+
/** The variable agents use for a known service's key: "Stripe" + "Key" → `STRIPE_KEY`. */
|
|
286
|
+
function deriveServiceEnvVar(displayName, field, taken = []) {
|
|
287
|
+
return deriveSecretEnvVar(`${displayName} ${humanizeCredentialField(field)}`, { taken });
|
|
42
288
|
}
|
|
43
289
|
|
|
44
|
-
export { toIntegrationCredentialOptions };
|
|
290
|
+
export { AGENT_USABLE_SERVICES, AI_PROVIDERS_NOT_OFFERED, AI_PROVIDER_FORMS, AI_PROVIDER_NAMES, AI_PROVIDER_NAME_KEYS, SERVICE_PURPOSE, agentKeyField, defaultHostsFor, deriveServiceEnvVar, humanizeCredentialField, isAiKeyEditable, isSecretFieldName, toAiProviderKeys, toAiProviderSchemas, toIntegrationCredentialOptions, toServiceSchemas };
|
|
45
291
|
//# sourceMappingURL=credential-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-options.js","sources":["../../../../../../../src/components/virtual-machine/credential-options.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credential-options.js","sources":["../../../../../../../src/components/virtual-machine/credential-options.ts"],"sourcesContent":[null],"names":[],"mappings":";;AA2CA;AACO,MAAM,eAAe,GAAiC;AAC3D,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,OAAO,EAAE,YAAY;AACrB,IAAA,QAAQ,EAAE,YAAY;;AAGxB;;;;AAIG;AACI,MAAM,qBAAqB,GAAwC;AACxE,IAAA,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,oBAAoB,CAAC,EAAE;AACzC,IAAA,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,uBAAuB,CAAC,EAAE;AAChD,IAAA,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,oBAAoB,CAAC,EAAE;;AAG3C;AACA,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;AA6B9D;AACO,MAAM,iBAAiB,GAAmC;AAC/D,IAAA,YAAY,EAAE,OAAO;;AAGvB;AACO,MAAM,iBAAiB,GAA2B;AACvD,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,qBAAqB,EAAE,kBAAkB;AACzC,IAAA,MAAM,EAAE,QAAQ;;AAGlB;AACO,MAAM,qBAAqB,GAA2B;AAC3D,IAAA,MAAM,EAAE,kCAAkC;AAC1C,IAAA,KAAK,EAAE,2BAA2B;;AAGpC;AACO,MAAM,wBAAwB,GAAG,CAAC,OAAO;AAEhD;;;;;;AAMG;AACG,SAAU,eAAe,CAAC,QAA6C,EAAA;AAC3E,IAAA,OAAO,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,IAAI,KAAK,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC;AAClF;AAEA,SAAS,QAAQ,CAAC,KAAc,EAAA;AAC9B,IAAA,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC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AAK,CAAC,IAAI,CAAC,CAAC;AAAE,QAAA,OAAO,IAAI;AACvE,IAAA,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,CAAC;AAC7D,IAAA,OAAO,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI;AAC1D;AAEA;AACM,SAAU,eAAe,CAAC,IAAY,EAAA;;IAC1C,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,qBAAqB,CAAC,IAAI,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,KAAK,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,EAAE;AACjD;AAEA;AACM,SAAU,mBAAmB,CACjC,WAAmB,EACnB,KAAa,EACb,QAA+B,EAAE,EAAA;AAEjC,IAAA,OAAO,kBAAkB,CAAC,CAAA,EAAG,WAAW,IAAI,uBAAuB,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AAC1F;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useId, useState } from 'react';
|
|
3
|
-
import { splitHostPortInput, validateHostPort } from '@iblai/data-layer';
|
|
3
|
+
import { formatHostPort, splitHostPortInput, validateHostPort } from '@iblai/data-layer';
|
|
4
4
|
import { Input } from '../ui/input.js';
|
|
5
5
|
import { cn } from '../../lib/utils.js';
|
|
6
6
|
import { useT } from '../../i18n/context.js';
|
|
@@ -15,13 +15,15 @@ const ISSUE_KEYS = {
|
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* A chip (tag) input for `host:port` allowlists. Entries are added with Enter,
|
|
18
|
-
* comma or space, or by pasting a list; each is
|
|
18
|
+
* comma or space, or by pasting a list; each is normalised (a pasted URL
|
|
19
|
+
* becomes its host, a bare host gets `defaultPort`) and checked client-side
|
|
19
20
|
* (`validateHostPort`) before it becomes a chip, and invalid ones stay in the
|
|
20
|
-
* box with the reason announced through a polite live region.
|
|
21
|
+
* box with the reason announced through a polite live region. Chips show the
|
|
22
|
+
* stored `host:port` with the standard HTTPS port left out. Backspace on an
|
|
21
23
|
* empty box removes the last chip; every chip has a labelled remove button so
|
|
22
24
|
* the whole control works from the keyboard.
|
|
23
25
|
*/
|
|
24
|
-
function HostPortChipInput({ id, value, onChange, allowIpAddresses = false, maxEntries, disabled = false, placeholder, describedBy, error, listLabel, hint, testId, }) {
|
|
26
|
+
function HostPortChipInput({ id, value, onChange, allowIpAddresses = false, defaultPort, maxEntries, disabled = false, placeholder, describedBy, error, listLabel, hint, testId, }) {
|
|
25
27
|
var _a;
|
|
26
28
|
const t = useT();
|
|
27
29
|
const generatedId = useId();
|
|
@@ -35,7 +37,7 @@ function HostPortChipInput({ id, value, onChange, allowIpAddresses = false, maxE
|
|
|
35
37
|
* whatever failed stays in the box, with the first problem explained.
|
|
36
38
|
*/
|
|
37
39
|
const commit = (text) => {
|
|
38
|
-
const entries = splitHostPortInput(text);
|
|
40
|
+
const entries = splitHostPortInput(text, { defaultPort });
|
|
39
41
|
if (entries.length === 0) {
|
|
40
42
|
setDraft('');
|
|
41
43
|
return;
|
|
@@ -45,12 +47,14 @@ function HostPortChipInput({ id, value, onChange, allowIpAddresses = false, maxE
|
|
|
45
47
|
let problem = null;
|
|
46
48
|
for (const entry of entries) {
|
|
47
49
|
if (next.includes(entry)) {
|
|
48
|
-
problem !== null && problem !== void 0 ? problem : (problem = t('virtualMachineHostInput.errorDuplicate', { entry }));
|
|
50
|
+
problem !== null && problem !== void 0 ? problem : (problem = t('virtualMachineHostInput.errorDuplicate', { entry: formatHostPort(entry) }));
|
|
49
51
|
continue;
|
|
50
52
|
}
|
|
51
53
|
const issue = validateHostPort(entry, { allowIpAddresses });
|
|
52
54
|
if (issue) {
|
|
53
|
-
problem !== null && problem !== void 0 ? problem : (problem = t(ISSUE_KEYS[issue], {
|
|
55
|
+
problem !== null && problem !== void 0 ? problem : (problem = t(ISSUE_KEYS[issue], {
|
|
56
|
+
entry: issue === 'port' ? entry : formatHostPort(entry),
|
|
57
|
+
}));
|
|
54
58
|
leftover.push(entry);
|
|
55
59
|
continue;
|
|
56
60
|
}
|
|
@@ -91,7 +95,9 @@ function HostPortChipInput({ id, value, onChange, allowIpAddresses = false, maxE
|
|
|
91
95
|
event.preventDefault();
|
|
92
96
|
commit(`${draft} ${pasted}`);
|
|
93
97
|
};
|
|
94
|
-
return (jsxs("div", { className: "space-y-2", "data-testid": testId, children: [value.length > 0 && (jsx("ul", { role: "list", "aria-label": listLabel !== null && listLabel !== void 0 ? listLabel : t('virtualMachineHostInput.listLabel'), className: "flex flex-wrap gap-2", children: value.map((host) => (jsxs("li", { className: "inline-flex items-center gap-1 rounded-md border border-gray-200 bg-gray-50 py-0.5 pr-1 pl-2 font-mono text-xs text-gray-700", children: [jsx("span", { children: host }), !disabled && (jsx("button", { type: "button", onClick: () => remove(host), "aria-label": t('virtualMachineHostInput.removeHost', {
|
|
98
|
+
return (jsxs("div", { className: "space-y-2", "data-testid": testId, children: [value.length > 0 && (jsx("ul", { role: "list", "aria-label": listLabel !== null && listLabel !== void 0 ? listLabel : t('virtualMachineHostInput.listLabel'), className: "flex flex-wrap gap-2", children: value.map((host) => (jsxs("li", { className: "inline-flex items-center gap-1 rounded-md border border-gray-200 bg-gray-50 py-0.5 pr-1 pl-2 font-mono text-xs text-gray-700", children: [jsx("span", { children: formatHostPort(host) }), !disabled && (jsx("button", { type: "button", onClick: () => remove(host), "aria-label": t('virtualMachineHostInput.removeHost', {
|
|
99
|
+
host: formatHostPort(host),
|
|
100
|
+
}), className: "cursor-pointer rounded p-0.5 text-gray-400 hover:text-gray-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500", children: jsx(X, { className: "h-3 w-3", "aria-hidden": "true" }) }))] }, host))) })), jsx(Input, { id: id, type: "text", value: draft, disabled: disabled, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : t('virtualMachineHostInput.placeholder'), autoComplete: "off", autoCapitalize: "off", spellCheck: false, onChange: (event) => {
|
|
95
101
|
setDraft(event.target.value);
|
|
96
102
|
if (localError)
|
|
97
103
|
setLocalError(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-port-chip-input.js","sources":["../../../../../../../src/components/virtual-machine/host-port-chip-input.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"host-port-chip-input.js","sources":["../../../../../../../src/components/virtual-machine/host-port-chip-input.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;AAwCA,MAAM,UAAU,GAAgD;AAC9D,IAAA,MAAM,EAAE,qCAAqC;AAC7C,IAAA,IAAI,EAAE,mCAAmC;AACzC,IAAA,aAAa,EAAE,2CAA2C;AAC1D,IAAA,cAAc,EAAE,2CAA2C;CAC5D;AAED;;;;;;;;;AASG;AACG,SAAU,iBAAiB,CAAC,EAChC,EAAE,EACF,KAAK,EACL,QAAQ,EACR,gBAAgB,GAAG,KAAK,EACxB,WAAW,EACX,UAAU,EACV,QAAQ,GAAG,KAAK,EAChB,WAAW,EACX,WAAW,EACX,KAAK,EACL,SAAS,EACT,IAAI,EACJ,MAAM,GACiB,EAAA;;AACvB,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;AAChB,IAAA,MAAM,WAAW,GAAG,KAAK,EAAE;AAC3B,IAAA,MAAM,MAAM,GAAG,CAAA,EAAG,WAAW,OAAO;AACpC,IAAA,MAAM,OAAO,GAAG,CAAA,EAAG,WAAW,QAAQ;IACtC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC;IACtC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAgB,IAAI,C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