@microsoft/teamsfx-core 2.0.4-alpha.a99162fe0.0 → 2.0.4-alpha.aa8d93004.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/build/common/constants.d.ts +1 -0
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +1 -0
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts +1 -2
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.js +2 -2
- package/build/common/deps-checker/checkerFactory.js.map +1 -1
- package/build/common/deps-checker/depsLogger.d.ts +14 -14
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
- package/build/common/deps-checker/depsLogger.js +7 -21
- package/build/common/deps-checker/depsLogger.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +40 -35
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +3 -3
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/cpUtils.d.ts +1 -1
- package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -1
- package/build/common/deps-checker/util/cpUtils.js +4 -4
- package/build/common/deps-checker/util/cpUtils.js.map +1 -1
- package/build/common/deps-checker/util/progressIndicator.js +2 -2
- package/build/common/deps-checker/util/progressIndicator.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +3 -0
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +1 -0
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/local/portChecker.js.map +1 -1
- package/build/common/m365/launchHelper.d.ts +1 -1
- package/build/common/m365/launchHelper.d.ts.map +1 -1
- package/build/common/m365/launchHelper.js +20 -2
- package/build/common/m365/launchHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +66 -19
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +1 -0
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/samples.d.ts +7 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +48 -21
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.js +4 -4
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -1
- package/build/common/spec-parser/constants.d.ts +7 -0
- package/build/common/spec-parser/constants.d.ts.map +1 -1
- package/build/common/spec-parser/constants.js +31 -0
- package/build/common/spec-parser/constants.js.map +1 -1
- package/build/common/spec-parser/interfaces.d.ts +19 -6
- package/build/common/spec-parser/interfaces.d.ts.map +1 -1
- package/build/common/spec-parser/interfaces.js +7 -2
- package/build/common/spec-parser/interfaces.js.map +1 -1
- package/build/common/spec-parser/manifestUpdater.d.ts +4 -3
- package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -1
- package/build/common/spec-parser/manifestUpdater.js +84 -33
- package/build/common/spec-parser/manifestUpdater.js.map +1 -1
- package/build/common/spec-parser/specFilter.d.ts +1 -1
- package/build/common/spec-parser/specFilter.d.ts.map +1 -1
- package/build/common/spec-parser/specFilter.js +5 -19
- package/build/common/spec-parser/specFilter.js.map +1 -1
- package/build/common/spec-parser/specParser.d.ts +8 -2
- package/build/common/spec-parser/specParser.d.ts.map +1 -1
- package/build/common/spec-parser/specParser.js +68 -35
- package/build/common/spec-parser/specParser.js.map +1 -1
- package/build/common/spec-parser/utils.d.ts +22 -0
- package/build/common/spec-parser/utils.d.ts.map +1 -1
- package/build/common/spec-parser/utils.js +251 -21
- package/build/common/spec-parser/utils.js.map +1 -1
- package/build/common/telemetry.d.ts +7 -4
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +43 -8
- package/build/common/telemetry.js.map +1 -1
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +5 -0
- package/build/common/tools.js.map +1 -1
- package/build/component/configManager/interface.d.ts +0 -1
- package/build/component/configManager/interface.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.d.ts +1 -3
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +23 -51
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.js +1 -1
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constants.d.ts +6 -0
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +7 -1
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +6 -5
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +57 -61
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/coordinator/summary.d.ts.map +1 -1
- package/build/component/coordinator/summary.js +2 -1
- package/build/component/coordinator/summary.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +3 -3
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.d.ts +1 -2
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +4 -11
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/update.d.ts +1 -2
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +4 -11
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +37 -4
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/add/addWebPart.d.ts.map +1 -1
- package/build/component/driver/add/addWebPart.js +9 -0
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/arm/deploy.d.ts +1 -3
- package/build/component/driver/arm/deploy.d.ts.map +1 -1
- package/build/component/driver/arm/deploy.js +1 -14
- package/build/component/driver/arm/deploy.js.map +1 -1
- package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
- package/build/component/driver/arm/deployImpl.js +8 -0
- package/build/component/driver/arm/deployImpl.js.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.js +7 -6
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/botAadApp/create.d.ts +2 -1
- package/build/component/driver/botAadApp/create.d.ts.map +1 -1
- package/build/component/driver/botAadApp/create.js +5 -8
- package/build/component/driver/botAadApp/create.js.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts +1 -0
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.js +4 -10
- package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts +0 -2
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js +0 -10
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts +0 -2
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js +0 -10
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts +0 -2
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +17 -19
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +10 -3
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +29 -16
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +18 -15
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.js +4 -4
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.d.ts +1 -0
- package/build/component/driver/deploy/spfx/deployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.js +24 -2
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts +1 -0
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +34 -12
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts +1 -0
- package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts.map +1 -1
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js +10 -16
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.d.ts +1 -0
- package/build/component/driver/file/createOrUpdateJsonFile.d.ts.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.js +3 -9
- package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
- package/build/component/driver/interface/stepDriver.d.ts +2 -7
- package/build/component/driver/interface/stepDriver.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.d.ts +1 -0
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +4 -10
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildDriver.js +1 -0
- package/build/component/driver/script/baseBuildDriver.js.map +1 -1
- package/build/component/driver/script/baseBuildStepDriver.d.ts +0 -2
- package/build/component/driver/script/baseBuildStepDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildStepDriver.js +0 -4
- package/build/component/driver/script/baseBuildStepDriver.js.map +1 -1
- package/build/component/driver/script/dotnetBuildDriver.d.ts +0 -2
- package/build/component/driver/script/dotnetBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/dotnetBuildDriver.js +0 -9
- package/build/component/driver/script/dotnetBuildDriver.js.map +1 -1
- package/build/component/driver/script/npmBuildDriver.d.ts +0 -2
- package/build/component/driver/script/npmBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/npmBuildDriver.js +0 -9
- package/build/component/driver/script/npmBuildDriver.js.map +1 -1
- package/build/component/driver/script/npxBuildDriver.d.ts +0 -2
- package/build/component/driver/script/npxBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/npxBuildDriver.js +0 -9
- package/build/component/driver/script/npxBuildDriver.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +10 -1
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +31 -30
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +8 -8
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +5 -5
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +31 -11
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.js +2 -0
- package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts +1 -1
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +3 -11
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts +1 -2
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js +4 -11
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js.map +1 -1
- package/build/component/driver/teamsApp/create.d.ts +1 -1
- package/build/component/driver/teamsApp/create.d.ts.map +1 -1
- package/build/component/driver/teamsApp/create.js +6 -11
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +4 -3
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +53 -43
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
- package/build/component/driver/teamsApp/errors.js +2 -0
- package/build/component/driver/teamsApp/errors.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts +2 -3
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +5 -13
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +2 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +7 -2
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts +2 -2
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +22 -10
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +18 -13
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +3 -11
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/feature/collaboration.d.ts.map +1 -1
- package/build/component/feature/collaboration.js +32 -13
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts +3 -1
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +42 -16
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/helper.js +29 -27
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/error.d.ts +6 -0
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +13 -1
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +28 -19
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +2 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +8 -2
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/generator.js +3 -3
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +6 -2
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.js +4 -2
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.js +3 -3
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +2 -2
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/utils.js +3 -3
- package/build/component/generator/spfx/utils/utils.js.map +1 -1
- package/build/component/generator/utils.d.ts +2 -2
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +13 -13
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/messages.d.ts +2 -3
- package/build/component/messages.d.ts.map +1 -1
- package/build/component/messages.js +3 -4
- package/build/component/messages.js.map +1 -1
- package/build/component/middleware/actionExecutionMW.d.ts +2 -2
- package/build/component/middleware/actionExecutionMW.d.ts.map +1 -1
- package/build/component/middleware/envMW.js +1 -1
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/provisionUtils.d.ts +3 -3
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +3 -3
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.js +24 -2
- package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts +2 -2
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +6 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -1
- package/build/component/telemetry.js +2 -2
- package/build/component/telemetry.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +2 -2
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +1 -4
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/charsetUtils.js +3 -3
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/common.js +1 -1
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.d.ts.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.js +8 -4
- package/build/component/utils/depsChecker/cpUtils.js.map +1 -1
- package/build/component/utils/envUtil.js +2 -2
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.js +2 -2
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
- package/build/core/FxCore.d.ts +15 -19
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +800 -60
- package/build/core/FxCore.js.map +1 -1
- package/build/core/globalVars.d.ts +16 -0
- package/build/core/globalVars.d.ts.map +1 -1
- package/build/core/globalVars.js +34 -1
- package/build/core/globalVars.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +7 -3
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +5 -5
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.js +2 -1
- package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +3 -0
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/error/common.d.ts +2 -8
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +6 -31
- package/build/error/common.js.map +1 -1
- package/build/index.d.ts +3 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +4 -2
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +9 -3
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +11 -8
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +110 -120
- package/build/question/create.js.map +1 -1
- package/build/question/generator.d.ts.map +1 -1
- package/build/question/generator.js +11 -17
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts +1 -0
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +1 -0
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +4 -6
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +1 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +18 -23
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/CreateSampleProjectOptions.js +1 -1
- package/build/question/options/CreateSampleProjectOptions.js.map +1 -1
- package/build/question/options/DeployAadManifestOptions.js +2 -2
- package/build/question/options/DeployAadManifestOptions.js.map +1 -1
- package/build/question/options/PermissionGrantOptions.js +4 -4
- package/build/question/options/PermissionGrantOptions.js.map +1 -1
- package/build/question/options/PermissionListOptions.js +4 -4
- package/build/question/options/PermissionListOptions.js.map +1 -1
- package/build/question/options/PreviewTeamsAppOptions.js +3 -3
- package/build/question/options/PreviewTeamsAppOptions.js.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.js +7 -6
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -1
- package/build/question/options/SelectTeamsManifestOptions.js +2 -2
- package/build/question/options/SelectTeamsManifestOptions.js.map +1 -1
- package/build/question/options/ValidateTeamsAppOptions.js +4 -4
- package/build/question/options/ValidateTeamsAppOptions.js.map +1 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +13 -8
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +5 -3
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +7 -4
- package/build/question/questionNames.js.map +1 -1
- package/build/ui/validationUtils.d.ts +17 -1
- package/build/ui/validationUtils.d.ts.map +1 -1
- package/build/ui/validationUtils.js +206 -17
- package/build/ui/validationUtils.js.map +1 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +17 -17
- package/build/ui/visitor.js.map +1 -1
- package/package.json +15 -13
- package/resource/package.nls.json +12 -9
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/Tab/GetUserProfile.razor +1 -2
- package/templates/plugins/resource/aad/auth/tab/csharp/GetUserProfile.razor +1 -2
- package/build/common/samples-config-v3.json +0 -446
- package/build/component/driver/middleware/updateProgress.d.ts +0 -6
- package/build/component/driver/middleware/updateProgress.d.ts.map +0 -1
- package/build/component/driver/middleware/updateProgress.js +0 -15
- package/build/component/driver/middleware/updateProgress.js.map +0 -1
- package/build/core/FxCoreImplementV3.d.ts +0 -51
- package/build/core/FxCoreImplementV3.d.ts.map +0 -1
- package/build/core/FxCoreImplementV3.js +0 -736
- package/build/core/FxCoreImplementV3.js.map +0 -1
package/build/question/create.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.createProjectCliHelpNode = exports.createSampleProjectQuestionNode = exports.createProjectQuestionNode = exports.capabilitySubTree = exports.apiOperationQuestion = exports.openAIPluginManifestLocationQuestion = exports.apiSpecLocationQuestion = exports.RuntimeOptions = exports.appNameQuestion = exports.AppNamePattern = exports.folderQuestion = exports.programmingLanguageQuestion = exports.ProgrammingLanguage = exports.getLanguageOptions = exports.getTemplate = exports.SPFxImportFolderQuestion = exports.SPFxVersionOptionIds = exports.SPFxWebpartNameQuestion = exports.SPFxPackageSelectQuestion = exports.NotificationTriggerOptions = exports.CapabilityOptions = exports.ProjectTypeOptions = exports.ScratchOptions = void 0;
|
|
5
|
+
exports.createProjectCliHelpNode = exports.createSampleProjectQuestionNode = exports.createProjectQuestionNode = exports.capabilitySubTree = exports.apiOperationQuestion = exports.openAIPluginManifestLocationQuestion = exports.apiSpecLocationQuestion = exports.RuntimeOptions = exports.appNameQuestion = exports.AppNamePattern = exports.folderQuestion = exports.programmingLanguageQuestion = exports.ProgrammingLanguage = exports.getLanguageOptions = exports.officeAddinHostingQuestion = exports.getTemplate = exports.SPFxImportFolderQuestion = exports.SPFxVersionOptionIds = exports.SPFxWebpartNameQuestion = exports.SPFxPackageSelectQuestion = exports.NotificationTriggerOptions = exports.capabilityQuestion = exports.CapabilityOptions = exports.ProjectTypeOptions = exports.ScratchOptions = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -49,38 +49,38 @@ class ScratchOptions {
|
|
|
49
49
|
}
|
|
50
50
|
exports.ScratchOptions = ScratchOptions;
|
|
51
51
|
class ProjectTypeOptions {
|
|
52
|
-
static tab() {
|
|
52
|
+
static tab(platform) {
|
|
53
53
|
return {
|
|
54
54
|
id: "tab-type",
|
|
55
|
-
label: `$(browser) ${localizeUtils_1.getLocalizedString("core.TabOption.label")}`,
|
|
55
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(browser) " : ""}${localizeUtils_1.getLocalizedString("core.TabOption.label")}`,
|
|
56
56
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.tab.detail"),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
static bot() {
|
|
59
|
+
static bot(platform) {
|
|
60
60
|
return {
|
|
61
61
|
id: "bot-type",
|
|
62
|
-
label: `$(hubot) ${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.bot.label")}`,
|
|
62
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(hubot) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.bot.label")}`,
|
|
63
63
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.bot.detail"),
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
static me() {
|
|
66
|
+
static me(platform) {
|
|
67
67
|
return {
|
|
68
68
|
id: "me-type",
|
|
69
|
-
label: `$(symbol-keyword) ${localizeUtils_1.getLocalizedString("core.MessageExtensionOption.label")}`,
|
|
69
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(symbol-keyword) " : ""}${localizeUtils_1.getLocalizedString("core.MessageExtensionOption.label")}`,
|
|
70
70
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.messageExtension.detail"),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
static outlookAddin() {
|
|
73
|
+
static outlookAddin(platform) {
|
|
74
74
|
return {
|
|
75
75
|
id: "outlook-addin-type",
|
|
76
|
-
label: `$(mail) ${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.label")}`,
|
|
76
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(mail) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.label")}`,
|
|
77
77
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.detail"),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
static copilotPlugin() {
|
|
80
|
+
static copilotPlugin(platform) {
|
|
81
81
|
return {
|
|
82
82
|
id: "copilot-plugin-type",
|
|
83
|
-
label: `$(sparkle) ${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.label")}`,
|
|
83
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(sparkle) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.label")}`,
|
|
84
84
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.detail"),
|
|
85
85
|
};
|
|
86
86
|
}
|
|
@@ -88,10 +88,10 @@ class ProjectTypeOptions {
|
|
|
88
88
|
exports.ProjectTypeOptions = ProjectTypeOptions;
|
|
89
89
|
function projectTypeQuestion() {
|
|
90
90
|
const staticOptions = [
|
|
91
|
-
ProjectTypeOptions.bot(),
|
|
92
|
-
ProjectTypeOptions.tab(),
|
|
93
|
-
ProjectTypeOptions.me(),
|
|
94
|
-
ProjectTypeOptions.outlookAddin(),
|
|
91
|
+
ProjectTypeOptions.bot(teamsfx_api_1.Platform.CLI),
|
|
92
|
+
ProjectTypeOptions.tab(teamsfx_api_1.Platform.CLI),
|
|
93
|
+
ProjectTypeOptions.me(teamsfx_api_1.Platform.CLI),
|
|
94
|
+
ProjectTypeOptions.outlookAddin(teamsfx_api_1.Platform.CLI),
|
|
95
95
|
];
|
|
96
96
|
return {
|
|
97
97
|
name: questionNames_1.QuestionNames.ProjectType,
|
|
@@ -103,17 +103,17 @@ function projectTypeQuestion() {
|
|
|
103
103
|
let staticOptions;
|
|
104
104
|
if (featureFlags_1.isCopilotPluginEnabled()) {
|
|
105
105
|
staticOptions = [
|
|
106
|
-
ProjectTypeOptions.copilotPlugin(),
|
|
107
|
-
ProjectTypeOptions.bot(),
|
|
108
|
-
ProjectTypeOptions.tab(),
|
|
109
|
-
ProjectTypeOptions.me(),
|
|
106
|
+
ProjectTypeOptions.copilotPlugin(inputs.platform),
|
|
107
|
+
ProjectTypeOptions.bot(inputs.platform),
|
|
108
|
+
ProjectTypeOptions.tab(inputs.platform),
|
|
109
|
+
ProjectTypeOptions.me(inputs.platform),
|
|
110
110
|
];
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
113
|
staticOptions = [
|
|
114
|
-
ProjectTypeOptions.bot(),
|
|
115
|
-
ProjectTypeOptions.tab(),
|
|
116
|
-
ProjectTypeOptions.me(),
|
|
114
|
+
ProjectTypeOptions.bot(inputs.platform),
|
|
115
|
+
ProjectTypeOptions.tab(inputs.platform),
|
|
116
|
+
ProjectTypeOptions.me(inputs.platform),
|
|
117
117
|
];
|
|
118
118
|
}
|
|
119
119
|
if (developerPortalScaffoldUtils_1.isFromDevPortal(inputs)) {
|
|
@@ -123,7 +123,7 @@ function projectTypeQuestion() {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
staticOptions.push(ProjectTypeOptions.outlookAddin());
|
|
126
|
+
staticOptions.push(ProjectTypeOptions.outlookAddin(inputs.platform));
|
|
127
127
|
}
|
|
128
128
|
return staticOptions;
|
|
129
129
|
},
|
|
@@ -266,6 +266,13 @@ class CapabilityOptions {
|
|
|
266
266
|
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlook"),
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
+
static SearchMe() {
|
|
270
|
+
return {
|
|
271
|
+
id: "search-message-extension",
|
|
272
|
+
label: `${localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.label")}`,
|
|
273
|
+
detail: localizeUtils_1.getLocalizedString("core.SearchAppOptionItem.detail"),
|
|
274
|
+
};
|
|
275
|
+
}
|
|
269
276
|
static collectFormMe() {
|
|
270
277
|
return {
|
|
271
278
|
id: "collect-form-message-extension",
|
|
@@ -312,15 +319,21 @@ class CapabilityOptions {
|
|
|
312
319
|
...CapabilityOptions.bots(inputs),
|
|
313
320
|
CapabilityOptions.nonSsoTab(),
|
|
314
321
|
CapabilityOptions.tab(),
|
|
315
|
-
...CapabilityOptions.mes(),
|
|
322
|
+
...CapabilityOptions.mes(inputs),
|
|
316
323
|
];
|
|
317
324
|
}
|
|
318
|
-
static mes() {
|
|
319
|
-
return
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
325
|
+
static mes(inputs) {
|
|
326
|
+
return inputs !== undefined && getRuntime(inputs) === RuntimeOptions.DotNet().id
|
|
327
|
+
? [
|
|
328
|
+
CapabilityOptions.linkUnfurling(),
|
|
329
|
+
CapabilityOptions.SearchMe(),
|
|
330
|
+
CapabilityOptions.collectFormMe(),
|
|
331
|
+
]
|
|
332
|
+
: [
|
|
333
|
+
CapabilityOptions.linkUnfurling(),
|
|
334
|
+
CapabilityOptions.m365SearchMe(),
|
|
335
|
+
CapabilityOptions.collectFormMe(),
|
|
336
|
+
];
|
|
324
337
|
}
|
|
325
338
|
static copilotPlugins() {
|
|
326
339
|
return [
|
|
@@ -329,21 +342,26 @@ class CapabilityOptions {
|
|
|
329
342
|
CapabilityOptions.copilotPluginOpenAIPlugin(),
|
|
330
343
|
];
|
|
331
344
|
}
|
|
332
|
-
static
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
345
|
+
static staticAll(inputs) {
|
|
346
|
+
const capabilityOptions = [
|
|
347
|
+
...CapabilityOptions.bots(inputs),
|
|
348
|
+
...CapabilityOptions.tabs(),
|
|
349
|
+
...CapabilityOptions.mes(),
|
|
350
|
+
...CapabilityOptions.copilotPlugins(),
|
|
351
|
+
//add search me options here to unblock e2e test
|
|
352
|
+
CapabilityOptions.SearchMe(),
|
|
353
|
+
];
|
|
354
|
+
return capabilityOptions;
|
|
338
355
|
}
|
|
339
356
|
static all(inputs) {
|
|
357
|
+
// teamsfx list templates
|
|
340
358
|
const capabilityOptions = [
|
|
341
359
|
...CapabilityOptions.bots(inputs),
|
|
342
360
|
...CapabilityOptions.tabs(),
|
|
343
361
|
...CapabilityOptions.mes(),
|
|
344
362
|
];
|
|
345
363
|
if (featureFlags_1.isCopilotPluginEnabled()) {
|
|
346
|
-
capabilityOptions.push(CapabilityOptions.
|
|
364
|
+
capabilityOptions.push(...CapabilityOptions.copilotPlugins());
|
|
347
365
|
}
|
|
348
366
|
return capabilityOptions;
|
|
349
367
|
}
|
|
@@ -378,7 +396,7 @@ class CapabilityOptions {
|
|
|
378
396
|
// copilot plugin
|
|
379
397
|
static copilotPluginNewApi() {
|
|
380
398
|
return {
|
|
381
|
-
id:
|
|
399
|
+
id: constants_3.copilotPluginNewApiOptionId,
|
|
382
400
|
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginNewApiOption.label"),
|
|
383
401
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginNewApiOption.detail"),
|
|
384
402
|
};
|
|
@@ -426,12 +444,12 @@ function capabilityQuestion() {
|
|
|
426
444
|
return localizeUtils_1.getLocalizedString("core.createCapabilityQuestion.titleNew");
|
|
427
445
|
}
|
|
428
446
|
},
|
|
429
|
-
cliDescription: "Specifies the Teams App capability.",
|
|
430
|
-
cliName:
|
|
447
|
+
cliDescription: "Specifies the Microsoft Teams App capability.",
|
|
448
|
+
cliName: questionNames_1.CliQuestionName.Capability,
|
|
431
449
|
cliShortName: "c",
|
|
432
|
-
cliChoiceListCommand: "teamsfx list
|
|
450
|
+
cliChoiceListCommand: "teamsfx list templates",
|
|
433
451
|
type: "singleSelect",
|
|
434
|
-
staticOptions: CapabilityOptions.
|
|
452
|
+
staticOptions: CapabilityOptions.staticAll(),
|
|
435
453
|
dynamicOptions: (inputs) => {
|
|
436
454
|
var _a;
|
|
437
455
|
// from dev portal
|
|
@@ -445,6 +463,10 @@ function capabilityQuestion() {
|
|
|
445
463
|
if (getRuntime(inputs) === RuntimeOptions.DotNet().id) {
|
|
446
464
|
return CapabilityOptions.dotnetCaps(inputs);
|
|
447
465
|
}
|
|
466
|
+
if (inputs.nonInteractive && inputs.platform === teamsfx_api_1.Platform.CLI) {
|
|
467
|
+
//cli non-interactive mode the choice list is the same as staticOptions
|
|
468
|
+
return CapabilityOptions.all(inputs);
|
|
469
|
+
}
|
|
448
470
|
// nodejs capabilities
|
|
449
471
|
const projectType = inputs[questionNames_1.QuestionNames.ProjectType];
|
|
450
472
|
if (projectType === ProjectTypeOptions.bot().id) {
|
|
@@ -463,15 +485,7 @@ function capabilityQuestion() {
|
|
|
463
485
|
return CapabilityOptions.copilotPlugins();
|
|
464
486
|
}
|
|
465
487
|
else {
|
|
466
|
-
|
|
467
|
-
...CapabilityOptions.bots(inputs),
|
|
468
|
-
...CapabilityOptions.tabs(),
|
|
469
|
-
...CapabilityOptions.mes(),
|
|
470
|
-
];
|
|
471
|
-
if (featureFlags_1.isCopilotPluginEnabled()) {
|
|
472
|
-
capabilityOptions.push(CapabilityOptions.copilotPluginCli());
|
|
473
|
-
}
|
|
474
|
-
return capabilityOptions;
|
|
488
|
+
return CapabilityOptions.all(inputs);
|
|
475
489
|
}
|
|
476
490
|
},
|
|
477
491
|
placeholder: (inputs) => {
|
|
@@ -484,6 +498,7 @@ function capabilityQuestion() {
|
|
|
484
498
|
skipSingleOption: true,
|
|
485
499
|
};
|
|
486
500
|
}
|
|
501
|
+
exports.capabilityQuestion = capabilityQuestion;
|
|
487
502
|
var HostType;
|
|
488
503
|
(function (HostType) {
|
|
489
504
|
HostType["AppService"] = "app-service";
|
|
@@ -599,22 +614,13 @@ function botTriggerQuestion() {
|
|
|
599
614
|
placeholder: localizeUtils_1.getLocalizedString("plugins.bot.questionHostTypeTrigger.placeholder"),
|
|
600
615
|
};
|
|
601
616
|
}
|
|
602
|
-
function copilotPluginDevelopmentQuestion() {
|
|
603
|
-
return {
|
|
604
|
-
name: questionNames_1.QuestionNames.CopilotPluginDevelopment,
|
|
605
|
-
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.title"),
|
|
606
|
-
type: "singleSelect",
|
|
607
|
-
staticOptions: CapabilityOptions.copilotPlugins(),
|
|
608
|
-
cliShortName: "cp",
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
617
|
function SPFxSolutionQuestion() {
|
|
612
618
|
return {
|
|
613
619
|
type: "singleSelect",
|
|
614
620
|
name: questionNames_1.QuestionNames.SPFxSolution,
|
|
615
621
|
title: localizeUtils_1.getLocalizedString("plugins.spfx.questions.spfxSolution.title"),
|
|
616
622
|
cliDescription: "Create a new or import an existing SharePoint Framework solution.",
|
|
617
|
-
cliShortName: "
|
|
623
|
+
cliShortName: "s",
|
|
618
624
|
staticOptions: [
|
|
619
625
|
{
|
|
620
626
|
id: "new",
|
|
@@ -665,19 +671,18 @@ function SPFxPackageSelectQuestion() {
|
|
|
665
671
|
},
|
|
666
672
|
default: SPFxVersionOptionIds.installLocally,
|
|
667
673
|
validation: {
|
|
668
|
-
validFunc:
|
|
674
|
+
validFunc: (input, previousInputs) => {
|
|
669
675
|
if (input === SPFxVersionOptionIds.globalPackage) {
|
|
670
676
|
const hasPackagesInstalled = !!previousInputs &&
|
|
671
677
|
!!previousInputs.globalSpfxPackageVersion &&
|
|
672
678
|
!!previousInputs.globalYeomanPackageVersion;
|
|
673
679
|
if (!hasPackagesInstalled) {
|
|
674
|
-
|
|
680
|
+
return Promise.reject(error_1.DevEnvironmentSetupError());
|
|
675
681
|
}
|
|
676
682
|
}
|
|
677
|
-
return undefined;
|
|
683
|
+
return Promise.resolve(undefined);
|
|
678
684
|
},
|
|
679
685
|
},
|
|
680
|
-
cliShortName: "sp",
|
|
681
686
|
isBoolean: true,
|
|
682
687
|
};
|
|
683
688
|
}
|
|
@@ -686,7 +691,8 @@ function SPFxFrameworkQuestion() {
|
|
|
686
691
|
return {
|
|
687
692
|
type: "singleSelect",
|
|
688
693
|
name: questionNames_1.QuestionNames.SPFxFramework,
|
|
689
|
-
cliShortName: "
|
|
694
|
+
cliShortName: "k",
|
|
695
|
+
cliDescription: "Framework.",
|
|
690
696
|
title: localizeUtils_1.getLocalizedString("plugins.spfx.questions.framework.title"),
|
|
691
697
|
staticOptions: [
|
|
692
698
|
{ id: "react", label: "React" },
|
|
@@ -701,8 +707,9 @@ function SPFxWebpartNameQuestion() {
|
|
|
701
707
|
return {
|
|
702
708
|
type: "text",
|
|
703
709
|
name: questionNames_1.QuestionNames.SPFxWebpartName,
|
|
704
|
-
cliShortName: "
|
|
705
|
-
|
|
710
|
+
cliShortName: "w",
|
|
711
|
+
cliDescription: "Name for SharePoint Framework Web Part.",
|
|
712
|
+
title: localizeUtils_1.getLocalizedString("plugins.spfx.questions.webpartName"),
|
|
706
713
|
default: constants_2.Constants.DEFAULT_WEBPART_NAME,
|
|
707
714
|
validation: {
|
|
708
715
|
validFunc: async (input, previousInputs) => {
|
|
@@ -737,7 +744,6 @@ function SPFxImportFolderQuestion(hasDefaultFunc = false) {
|
|
|
737
744
|
return {
|
|
738
745
|
type: "folder",
|
|
739
746
|
name: questionNames_1.QuestionNames.SPFxFolder,
|
|
740
|
-
cliShortName: "sf",
|
|
741
747
|
title: localizeUtils_1.getLocalizedString("core.spfxFolder.title"),
|
|
742
748
|
cliDescription: "Directory or Path that contains the existing SharePoint Framework solution.",
|
|
743
749
|
placeholder: localizeUtils_1.getLocalizedString("core.spfxFolder.placeholder"),
|
|
@@ -766,7 +772,7 @@ function officeAddinHostingQuestion() {
|
|
|
766
772
|
name: questionNames_1.QuestionNames.OfficeAddinHost,
|
|
767
773
|
title: "Add-in Host",
|
|
768
774
|
staticOptions: [],
|
|
769
|
-
dynamicOptions:
|
|
775
|
+
dynamicOptions: (inputs) => {
|
|
770
776
|
const template = exports.getTemplate(inputs);
|
|
771
777
|
const getHostTemplateNames = officeAddinJsonData.getHostTemplateNames(template);
|
|
772
778
|
const options = getHostTemplateNames.map((host) => ({
|
|
@@ -775,7 +781,7 @@ function officeAddinHostingQuestion() {
|
|
|
775
781
|
}));
|
|
776
782
|
return options.length > 0 ? options : [{ label: "No Options", id: "No Options" }];
|
|
777
783
|
},
|
|
778
|
-
default:
|
|
784
|
+
default: (inputs) => {
|
|
779
785
|
const template = exports.getTemplate(inputs);
|
|
780
786
|
const options = officeAddinJsonData.getHostTemplateNames(template);
|
|
781
787
|
return options[0] || "No Options";
|
|
@@ -784,6 +790,7 @@ function officeAddinHostingQuestion() {
|
|
|
784
790
|
};
|
|
785
791
|
return OfficeHostQuestion;
|
|
786
792
|
}
|
|
793
|
+
exports.officeAddinHostingQuestion = officeAddinHostingQuestion;
|
|
787
794
|
const officeAddinJsonData = new projectsJsonData_1.default();
|
|
788
795
|
function getLanguageOptions(inputs) {
|
|
789
796
|
const runtime = getRuntime(inputs);
|
|
@@ -934,7 +941,7 @@ function sampleSelectQuestion() {
|
|
|
934
941
|
type: "singleSelect",
|
|
935
942
|
name: questionNames_1.QuestionNames.Samples,
|
|
936
943
|
cliName: "sample-name",
|
|
937
|
-
cliDescription: "Specifies the Teams App sample name.",
|
|
944
|
+
cliDescription: "Specifies the Microsoft Teams App sample name.",
|
|
938
945
|
cliChoiceListCommand: "teamsfx list samples",
|
|
939
946
|
skipValidation: true,
|
|
940
947
|
cliType: "argument",
|
|
@@ -1148,25 +1155,26 @@ function apiSpecLocationQuestion(includeExistingAPIs = true) {
|
|
|
1148
1155
|
return {
|
|
1149
1156
|
type: "singleFileOrText",
|
|
1150
1157
|
name: questionNames_1.QuestionNames.ApiSpecLocation,
|
|
1151
|
-
cliShortName: "
|
|
1158
|
+
cliShortName: "a",
|
|
1159
|
+
cliDescription: "OpenAPI specification file location.",
|
|
1152
1160
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.title"),
|
|
1153
1161
|
forgetLastValue: true,
|
|
1154
1162
|
inputBoxConfig: {
|
|
1155
|
-
type: "
|
|
1163
|
+
type: "innerText",
|
|
1156
1164
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.title"),
|
|
1157
1165
|
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.placeholder"),
|
|
1158
1166
|
name: "input-api-spec-url",
|
|
1159
1167
|
step: 2,
|
|
1160
1168
|
validation: {
|
|
1161
|
-
validFunc:
|
|
1162
|
-
|
|
1169
|
+
validFunc: (input, inputs) => {
|
|
1170
|
+
const result = util_1.isValidHttpUrl(input)
|
|
1163
1171
|
? undefined
|
|
1164
1172
|
: (inputs === null || inputs === void 0 ? void 0 : inputs.platform) === teamsfx_api_1.Platform.CLI
|
|
1165
1173
|
? "Please enter a valid URL or local path of your API Specification"
|
|
1166
1174
|
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.invalidUrl.message");
|
|
1175
|
+
return Promise.resolve(result);
|
|
1167
1176
|
},
|
|
1168
1177
|
},
|
|
1169
|
-
additionalValidationOnAccept: { validFunc: validationOnAccept },
|
|
1170
1178
|
},
|
|
1171
1179
|
inputOptionItem: {
|
|
1172
1180
|
id: "input",
|
|
@@ -1177,8 +1185,8 @@ function apiSpecLocationQuestion(includeExistingAPIs = true) {
|
|
|
1177
1185
|
},
|
|
1178
1186
|
validation: {
|
|
1179
1187
|
validFunc: async (input, inputs) => {
|
|
1180
|
-
if (input
|
|
1181
|
-
return
|
|
1188
|
+
if (!util_1.isValidHttpUrl(input) && !(await fs_extra_1.default.pathExists(input))) {
|
|
1189
|
+
return "Please enter a valid URL or local path of your API Specification";
|
|
1182
1190
|
}
|
|
1183
1191
|
return await validationOnAccept(input, inputs);
|
|
1184
1192
|
},
|
|
@@ -1190,18 +1198,20 @@ function openAIPluginManifestLocationQuestion() {
|
|
|
1190
1198
|
// export for unit test
|
|
1191
1199
|
return {
|
|
1192
1200
|
type: "text",
|
|
1193
|
-
name: questionNames_1.QuestionNames.
|
|
1194
|
-
cliShortName: "
|
|
1201
|
+
name: questionNames_1.QuestionNames.OpenAIPluginDomain,
|
|
1202
|
+
cliShortName: "d",
|
|
1195
1203
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.AIPluginManifest.title"),
|
|
1196
1204
|
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.AIPluginManifest.placeholder"),
|
|
1205
|
+
cliDescription: "OpenAI plugin website domain.",
|
|
1197
1206
|
forgetLastValue: true,
|
|
1198
1207
|
validation: {
|
|
1199
|
-
validFunc:
|
|
1208
|
+
validFunc: (input) => {
|
|
1200
1209
|
const pattern = /(https?:\/\/)?([a-z0-9-]+(\.[a-z0-9-]+)*)(:[0-9]{1,5})?(\/)?$/i;
|
|
1201
1210
|
const match = pattern.test(input);
|
|
1202
|
-
|
|
1211
|
+
const result = match
|
|
1203
1212
|
? undefined
|
|
1204
1213
|
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.invalidDomain.message");
|
|
1214
|
+
return Promise.resolve(result);
|
|
1205
1215
|
},
|
|
1206
1216
|
},
|
|
1207
1217
|
additionalValidationOnAccept: {
|
|
@@ -1252,7 +1262,8 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1252
1262
|
type: "multiSelect",
|
|
1253
1263
|
name: questionNames_1.QuestionNames.ApiOperation,
|
|
1254
1264
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.title"),
|
|
1255
|
-
|
|
1265
|
+
cliDescription: "Specifies API(s) to be used in Copilot plugin.",
|
|
1266
|
+
cliShortName: "o",
|
|
1256
1267
|
placeholder: includeExistingAPIs
|
|
1257
1268
|
? localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.placeholder")
|
|
1258
1269
|
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.placeholder.skipExisting"),
|
|
@@ -1260,8 +1271,9 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1260
1271
|
staticOptions: [],
|
|
1261
1272
|
validation: {
|
|
1262
1273
|
minItems: 1,
|
|
1274
|
+
maxItems: 10,
|
|
1263
1275
|
},
|
|
1264
|
-
dynamicOptions:
|
|
1276
|
+
dynamicOptions: (inputs) => {
|
|
1265
1277
|
if (!inputs.supportedApisFromApiSpec) {
|
|
1266
1278
|
throw new error_2.EmptyOptionError(questionNames_1.QuestionNames.ApiOperation, "question");
|
|
1267
1279
|
}
|
|
@@ -1271,14 +1283,6 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1271
1283
|
};
|
|
1272
1284
|
}
|
|
1273
1285
|
exports.apiOperationQuestion = apiOperationQuestion;
|
|
1274
|
-
function getCopilotPluginFeatureId(inputs) {
|
|
1275
|
-
if (teamsfx_api_1.CLIPlatforms.includes(inputs.platform)) {
|
|
1276
|
-
return inputs[questionNames_1.QuestionNames.CopilotPluginDevelopment];
|
|
1277
|
-
}
|
|
1278
|
-
else {
|
|
1279
|
-
return inputs[questionNames_1.QuestionNames.Capabilities];
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
1286
|
function capabilitySubTree() {
|
|
1283
1287
|
const node = {
|
|
1284
1288
|
data: capabilityQuestion(),
|
|
@@ -1336,32 +1340,22 @@ function capabilitySubTree() {
|
|
|
1336
1340
|
},
|
|
1337
1341
|
data: officeAddinHostingQuestion(),
|
|
1338
1342
|
},
|
|
1339
|
-
{
|
|
1340
|
-
// Copilot plugin sub-tree (will show in CLI only)
|
|
1341
|
-
condition: (inputs) => {
|
|
1342
|
-
return (teamsfx_api_1.CLIPlatforms.includes(inputs.platform) &&
|
|
1343
|
-
inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.copilotPluginCli().id);
|
|
1344
|
-
},
|
|
1345
|
-
data: copilotPluginDevelopmentQuestion(),
|
|
1346
|
-
},
|
|
1347
1343
|
{
|
|
1348
1344
|
// Copilot plugin from API spec or AI Plugin
|
|
1349
|
-
condition:
|
|
1350
|
-
|
|
1345
|
+
condition: {
|
|
1346
|
+
enum: [
|
|
1347
|
+
CapabilityOptions.copilotPluginApiSpec().id,
|
|
1348
|
+
CapabilityOptions.copilotPluginOpenAIPlugin().id,
|
|
1349
|
+
],
|
|
1351
1350
|
},
|
|
1352
1351
|
data: { type: "group", name: questionNames_1.QuestionNames.CopilotPluginExistingApi },
|
|
1353
1352
|
children: [
|
|
1354
1353
|
{
|
|
1355
|
-
condition: (
|
|
1356
|
-
return (getCopilotPluginFeatureId(inputs) === CapabilityOptions.copilotPluginApiSpec().id);
|
|
1357
|
-
},
|
|
1354
|
+
condition: { equals: CapabilityOptions.copilotPluginApiSpec().id },
|
|
1358
1355
|
data: apiSpecLocationQuestion(),
|
|
1359
1356
|
},
|
|
1360
1357
|
{
|
|
1361
|
-
condition: (
|
|
1362
|
-
return (getCopilotPluginFeatureId(inputs) ===
|
|
1363
|
-
CapabilityOptions.copilotPluginOpenAIPlugin().id);
|
|
1364
|
-
},
|
|
1358
|
+
condition: { equals: CapabilityOptions.copilotPluginOpenAIPlugin().id },
|
|
1365
1359
|
data: openAIPluginManifestLocationQuestion(),
|
|
1366
1360
|
},
|
|
1367
1361
|
{
|
|
@@ -1372,14 +1366,11 @@ function capabilitySubTree() {
|
|
|
1372
1366
|
{
|
|
1373
1367
|
// programming language
|
|
1374
1368
|
data: programmingLanguageQuestion(),
|
|
1375
|
-
condition:
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
else {
|
|
1381
|
-
return !!inputs[questionNames_1.QuestionNames.Capabilities];
|
|
1382
|
-
}
|
|
1369
|
+
condition: {
|
|
1370
|
+
excludesEnum: [
|
|
1371
|
+
CapabilityOptions.copilotPluginApiSpec().id,
|
|
1372
|
+
CapabilityOptions.copilotPluginOpenAIPlugin().id,
|
|
1373
|
+
],
|
|
1383
1374
|
},
|
|
1384
1375
|
},
|
|
1385
1376
|
{
|
|
@@ -1404,7 +1395,7 @@ function createProjectQuestionNode() {
|
|
|
1404
1395
|
data: runtimeQuestion(),
|
|
1405
1396
|
},
|
|
1406
1397
|
{
|
|
1407
|
-
condition: (inputs) => inputs.platform === teamsfx_api_1.Platform.VSCode,
|
|
1398
|
+
condition: (inputs) => inputs.platform === teamsfx_api_1.Platform.VSCode || inputs.platform === teamsfx_api_1.Platform.CLI,
|
|
1408
1399
|
data: projectTypeQuestion(),
|
|
1409
1400
|
cliOptionDisabled: "self",
|
|
1410
1401
|
},
|
|
@@ -1473,7 +1464,6 @@ function createProjectCliHelpNode() {
|
|
|
1473
1464
|
}
|
|
1474
1465
|
if (!featureFlags_1.isCopilotPluginEnabled()) {
|
|
1475
1466
|
deleteNames.push(questionNames_1.QuestionNames.CopilotPluginExistingApi);
|
|
1476
|
-
deleteNames.push(questionNames_1.QuestionNames.CopilotPluginDevelopment);
|
|
1477
1467
|
}
|
|
1478
1468
|
trimQuestionTreeForCliHelp(node, deleteNames);
|
|
1479
1469
|
return node;
|