@microsoft/teamsfx-core 3.1.3 → 3.1.4-alpha.17203f2e50.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/client/devPortalClient.d.ts +43 -0
- package/build/client/devPortalClient.d.ts.map +1 -0
- package/build/client/devPortalClient.js +626 -0
- package/build/client/devPortalClient.js.map +1 -0
- package/build/client/graphClient.d.ts +1 -0
- package/build/client/graphClient.d.ts.map +1 -1
- package/build/client/graphClient.js +17 -2
- package/build/client/graphClient.js.map +1 -1
- package/build/client/teamsDevPortalClient.d.ts +14 -21
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.js +65 -112
- package/build/client/teamsDevPortalClient.js.map +1 -1
- package/build/client/teamsDevPortalClientProvider.d.ts +6 -0
- package/build/client/teamsDevPortalClientProvider.d.ts.map +1 -0
- package/build/client/teamsDevPortalClientProvider.js +76 -0
- package/build/client/teamsDevPortalClientProvider.js.map +1 -0
- package/build/common/featureFlags.d.ts +7 -2
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +8 -3
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/localizeUtils.d.ts +1 -0
- package/build/common/localizeUtils.d.ts.map +1 -1
- package/build/common/localizeUtils.js +10 -0
- package/build/common/localizeUtils.js.map +1 -1
- package/build/common/templates-config.json +4 -4
- package/build/common/tools.js +2 -2
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +1 -0
- package/build/common/utils.js.map +1 -1
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +87 -27
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/configManager/actionInjector.d.ts +13 -3
- package/build/component/configManager/actionInjector.d.ts.map +1 -1
- package/build/component/configManager/actionInjector.js +88 -5
- package/build/component/configManager/actionInjector.js.map +1 -1
- package/build/component/driver/interface/commonArgs.d.ts +1 -0
- package/build/component/driver/interface/commonArgs.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +10 -6
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +12 -8
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +1 -0
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +1 -0
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/create.d.ts.map +1 -1
- package/build/component/driver/teamsApp/create.js +28 -26
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/appUser.d.ts +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/appUser.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +0 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +0 -1
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +1 -18
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +3 -3
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.js +4 -4
- package/build/component/driver/teamsApp/validateTestCases.js.map +1 -1
- package/build/component/driver/util/utils.d.ts.map +1 -1
- package/build/component/driver/util/utils.js +1 -0
- package/build/component/driver/util/utils.js.map +1 -1
- package/build/component/feature/collaboration.js +4 -4
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/generator/openApiSpec/helper.d.ts +2 -2
- package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/helper.js +65 -5
- package/build/component/generator/openApiSpec/helper.js.map +1 -1
- package/build/component/generator/openPlugin/authResolver.d.ts +2 -2
- package/build/component/generator/openPlugin/authResolver.d.ts.map +1 -1
- package/build/component/generator/openPlugin/authResolver.js +17 -7
- package/build/component/generator/openPlugin/authResolver.js.map +1 -1
- package/build/component/generator/openPlugin/errors.d.ts +4 -0
- package/build/component/generator/openPlugin/errors.d.ts.map +1 -0
- package/build/component/generator/openPlugin/errors.js +13 -0
- package/build/component/generator/openPlugin/errors.js.map +1 -0
- package/build/component/generator/openPlugin/exporter.d.ts +9 -6
- package/build/component/generator/openPlugin/exporter.d.ts.map +1 -1
- package/build/component/generator/openPlugin/exporter.js +502 -53
- package/build/component/generator/openPlugin/exporter.js.map +1 -1
- package/build/component/generator/openPlugin/fileSystem.d.ts +28 -0
- package/build/component/generator/openPlugin/fileSystem.d.ts.map +1 -0
- package/build/component/generator/openPlugin/fileSystem.js +181 -0
- package/build/component/generator/openPlugin/fileSystem.js.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -1
- package/build/component/generator/openPlugin/iconStrategy.js +30 -14
- package/build/component/generator/openPlugin/iconStrategy.js.map +1 -1
- package/build/component/generator/openPlugin/importer.d.ts.map +1 -1
- package/build/component/generator/openPlugin/importer.js +75 -12
- package/build/component/generator/openPlugin/importer.js.map +1 -1
- package/build/component/generator/openPlugin/mapper.d.ts +3 -2
- package/build/component/generator/openPlugin/mapper.d.ts.map +1 -1
- package/build/component/generator/openPlugin/mapper.js +188 -29
- package/build/component/generator/openPlugin/mapper.js.map +1 -1
- package/build/component/generator/openPlugin/parser.d.ts.map +1 -1
- package/build/component/generator/openPlugin/parser.js +264 -70
- package/build/component/generator/openPlugin/parser.js.map +1 -1
- package/build/component/generator/openPlugin/skillValidation.d.ts +2 -0
- package/build/component/generator/openPlugin/skillValidation.d.ts.map +1 -0
- package/build/component/generator/openPlugin/skillValidation.js +63 -0
- package/build/component/generator/openPlugin/skillValidation.js.map +1 -0
- package/build/component/generator/openPlugin/spec.d.ts +67 -0
- package/build/component/generator/openPlugin/spec.d.ts.map +1 -0
- package/build/component/generator/openPlugin/spec.js +157 -0
- package/build/component/generator/openPlugin/spec.js.map +1 -0
- package/build/component/generator/openPlugin/textUtils.d.ts +1 -1
- package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -1
- package/build/component/generator/openPlugin/textUtils.js +8 -7
- package/build/component/generator/openPlugin/textUtils.js.map +1 -1
- package/build/component/generator/openPlugin/types.d.ts +76 -14
- package/build/component/generator/openPlugin/types.d.ts.map +1 -1
- package/build/component/generator/openPlugin/validation.d.ts +17 -0
- package/build/component/generator/openPlugin/validation.d.ts.map +1 -0
- package/build/component/generator/openPlugin/validation.js +563 -0
- package/build/component/generator/openPlugin/validation.js.map +1 -0
- package/build/component/generator/v4TemplateBridge.d.ts +1 -1
- package/build/component/generator/v4TemplateBridge.d.ts.map +1 -1
- package/build/component/generator/v4TemplateBridge.js +11 -6
- package/build/component/generator/v4TemplateBridge.js.map +1 -1
- package/build/component/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +2 -0
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +4 -4
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -1
- package/build/component/utils/common.d.ts +1 -9
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +7 -37
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/envFunctionUtils.d.ts +3 -8
- package/build/component/utils/envFunctionUtils.d.ts.map +1 -1
- package/build/component/utils/envFunctionUtils.js +46 -131
- package/build/component/utils/envFunctionUtils.js.map +1 -1
- package/build/component/utils/envUtil.d.ts +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +17 -8
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.d.ts +6 -0
- package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.js +17 -7
- package/build/component/utils/mcpAuthScaffolder.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts +4 -4
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +17 -8
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.d.ts +1 -1
- package/build/component/utils/settingsUtil.d.ts.map +1 -1
- package/build/component/utils/settingsUtil.js +3 -3
- package/build/component/utils/settingsUtil.js.map +1 -1
- package/build/core/FxCore.d.ts +3 -2
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.d.ts +8 -2
- package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.js +109 -6
- package/build/core/FxCore.declarativeAgent.js.map +1 -1
- package/build/core/FxCore.js +49 -9
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCore.openPlugin.d.ts +7 -6
- package/build/core/FxCore.openPlugin.d.ts.map +1 -1
- package/build/core/FxCore.openPlugin.js +7 -6
- package/build/core/FxCore.openPlugin.js.map +1 -1
- package/build/error/common.d.ts +9 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +40 -1
- package/build/error/common.js.map +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +6 -5
- package/build/index.js.map +1 -1
- package/build/question/generator.d.ts.map +1 -1
- package/build/question/generator.js +9 -9
- package/build/question/generator.js.map +1 -1
- package/build/question/inputs/AddAuthActionInputs.d.ts +6 -0
- package/build/question/inputs/AddAuthActionInputs.d.ts.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +15 -1
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
- package/build/question/options/AddAuthActionOptions.d.ts.map +1 -1
- package/build/question/options/AddAuthActionOptions.js +19 -0
- package/build/question/options/AddAuthActionOptions.js.map +1 -1
- package/build/question/options/AddPluginOptions.d.ts.map +1 -1
- package/build/question/options/AddPluginOptions.js +45 -1
- package/build/question/options/AddPluginOptions.js.map +1 -1
- package/build/question/options/ExportOpenPluginOptions.js +2 -2
- package/build/question/options/ExportOpenPluginOptions.js.map +1 -1
- package/build/question/options/ImportOpenPluginOptions.js +4 -4
- package/build/question/options/ImportOpenPluginOptions.js.map +1 -1
- package/build/question/other.d.ts +2 -0
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +174 -8
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +6 -0
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +6 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.js +5 -2
- package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
- package/build/question/scaffold/vsc/rootNode.js +1 -1
- package/build/question/scaffold/vsc/rootNode.js.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +2 -0
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +31 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
- package/build/question/share.js +2 -2
- package/build/question/share.js.map +1 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +1 -0
- package/build/ui/visitor.js.map +1 -1
- package/build/v4/capabilities/declarations.d.ts +140 -0
- package/build/v4/capabilities/declarations.d.ts.map +1 -0
- package/build/v4/capabilities/declarations.js +59 -0
- package/build/v4/capabilities/declarations.js.map +1 -0
- package/build/v4/collectInputs/collectInputs.d.ts +1 -0
- package/build/v4/collectInputs/collectInputs.d.ts.map +1 -1
- package/build/v4/collectInputs/collectInputs.js +113 -222
- package/build/v4/collectInputs/collectInputs.js.map +1 -1
- package/build/v4/distribution/declarativePackage.d.ts +2 -2
- package/build/v4/distribution/declarativePackage.d.ts.map +1 -1
- package/build/v4/distribution/declarativePackage.js +2 -1
- package/build/v4/distribution/declarativePackage.js.map +1 -1
- package/build/v4/distribution/descriptorLanguages.d.ts +9 -0
- package/build/v4/distribution/descriptorLanguages.d.ts.map +1 -0
- package/build/v4/distribution/descriptorLanguages.js +44 -0
- package/build/v4/distribution/descriptorLanguages.js.map +1 -0
- package/build/v4/distribution/packageDir.d.ts +6 -1
- package/build/v4/distribution/packageDir.d.ts.map +1 -1
- package/build/v4/distribution/packageDir.js +6 -1
- package/build/v4/distribution/packageDir.js.map +1 -1
- package/build/v4/engineVersion.d.ts +1 -1
- package/build/v4/engineVersion.js +1 -1
- package/build/v4/expression/evaluateExpression.d.ts.map +1 -1
- package/build/v4/expression/evaluateExpression.js +15 -13
- package/build/v4/expression/evaluateExpression.js.map +1 -1
- package/build/v4/mcp/mcpAuthAction.d.ts +2 -1
- package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -1
- package/build/v4/mcp/mcpAuthAction.js +32 -5
- package/build/v4/mcp/mcpAuthAction.js.map +1 -1
- package/build/v4/mcp/mcpAuthScaffold.d.ts +3 -0
- package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -1
- package/build/v4/mcp/mcpAuthScaffold.js +63 -40
- package/build/v4/mcp/mcpAuthScaffold.js.map +1 -1
- package/build/v4/pipeline/defineStep.d.ts +10 -0
- package/build/v4/pipeline/defineStep.d.ts.map +1 -0
- package/build/v4/pipeline/defineStep.js +28 -0
- package/build/v4/pipeline/defineStep.js.map +1 -0
- package/build/v4/pipeline/runScaffoldPipeline.d.ts +3 -7
- package/build/v4/pipeline/runScaffoldPipeline.d.ts.map +1 -1
- package/build/v4/pipeline/runScaffoldPipeline.js +26 -16
- package/build/v4/pipeline/runScaffoldPipeline.js.map +1 -1
- package/build/v4/pipeline/stepParams.d.ts +4 -0
- package/build/v4/pipeline/stepParams.d.ts.map +1 -0
- package/build/v4/pipeline/stepParams.js +17 -0
- package/build/v4/pipeline/stepParams.js.map +1 -0
- package/build/v4/providers/createLanguageOptionsProvider.d.ts +13 -0
- package/build/v4/providers/createLanguageOptionsProvider.d.ts.map +1 -0
- package/build/v4/providers/createLanguageOptionsProvider.js +61 -0
- package/build/v4/providers/createLanguageOptionsProvider.js.map +1 -0
- package/build/v4/providers/createOptionsProviders.d.ts +3 -1
- package/build/v4/providers/createOptionsProviders.d.ts.map +1 -1
- package/build/v4/providers/createOptionsProviders.js +67 -61
- package/build/v4/providers/createOptionsProviders.js.map +1 -1
- package/build/v4/runtime/compatibility/index.d.ts +4 -0
- package/build/v4/runtime/compatibility/index.d.ts.map +1 -0
- package/build/v4/runtime/compatibility/index.js +11 -0
- package/build/v4/runtime/compatibility/index.js.map +1 -0
- package/build/v4/runtime/compatibility/legacyOpenApiSearch.d.ts +4 -0
- package/build/v4/runtime/compatibility/legacyOpenApiSearch.d.ts.map +1 -0
- package/build/v4/runtime/compatibility/legacyOpenApiSearch.js +26 -0
- package/build/v4/runtime/compatibility/legacyOpenApiSearch.js.map +1 -0
- package/build/v4/runtime/functions/assets/officeAddin.json +48 -0
- package/build/v4/runtime/functions/generic.d.ts +10 -0
- package/build/v4/runtime/functions/generic.d.ts.map +1 -0
- package/build/v4/runtime/functions/generic.js +25 -0
- package/build/v4/runtime/functions/generic.js.map +1 -0
- package/build/v4/runtime/functions/mcp.d.ts +8 -0
- package/build/v4/runtime/functions/mcp.d.ts.map +1 -0
- package/build/v4/runtime/functions/mcp.js +28 -0
- package/build/v4/runtime/functions/mcp.js.map +1 -0
- package/build/v4/runtime/functions/officeAddin.d.ts +27 -0
- package/build/v4/runtime/functions/officeAddin.d.ts.map +1 -0
- package/build/v4/runtime/functions/officeAddin.js +120 -0
- package/build/v4/runtime/functions/officeAddin.js.map +1 -0
- package/build/v4/runtime/inMemoryRuntime.d.ts.map +1 -1
- package/build/v4/runtime/inMemoryRuntime.js +7 -0
- package/build/v4/runtime/inMemoryRuntime.js.map +1 -1
- package/build/v4/runtime/packageParse.d.ts +13 -8
- package/build/v4/runtime/packageParse.d.ts.map +1 -1
- package/build/v4/runtime/packageParse.js +13 -219
- package/build/v4/runtime/packageParse.js.map +1 -1
- package/build/v4/runtime/realRuntime.d.ts.map +1 -1
- package/build/v4/runtime/realRuntime.js +44 -5
- package/build/v4/runtime/realRuntime.js.map +1 -1
- package/build/v4/runtime/renderFragment.d.ts +2 -0
- package/build/v4/runtime/renderFragment.d.ts.map +1 -0
- package/build/v4/runtime/renderFragment.js +11 -0
- package/build/v4/runtime/renderFragment.js.map +1 -0
- package/build/v4/runtime/runtimeRegistry.d.ts +4 -4
- package/build/v4/runtime/runtimeRegistry.d.ts.map +1 -1
- package/build/v4/runtime/runtimeRegistry.js +9 -106
- package/build/v4/runtime/runtimeRegistry.js.map +1 -1
- package/build/v4/runtime/scaffold.d.ts +2 -0
- package/build/v4/runtime/scaffold.d.ts.map +1 -1
- package/build/v4/runtime/scaffold.js +15 -12
- package/build/v4/runtime/scaffold.js.map +1 -1
- package/build/v4/runtime/scaffoldFromPackageDir.d.ts.map +1 -1
- package/build/v4/runtime/scaffoldFromPackageDir.js +1 -4
- package/build/v4/runtime/scaffoldFromPackageDir.js.map +1 -1
- package/build/v4/runtime/selectLanguageContent.d.ts +1 -0
- package/build/v4/runtime/selectLanguageContent.d.ts.map +1 -1
- package/build/v4/runtime/selectLanguageContent.js +5 -1
- package/build/v4/runtime/selectLanguageContent.js.map +1 -1
- package/build/v4/runtime/services/daManifestService.d.ts +9 -0
- package/build/v4/runtime/services/daManifestService.d.ts.map +1 -0
- package/build/v4/runtime/services/daManifestService.js +102 -0
- package/build/v4/runtime/services/daManifestService.js.map +1 -0
- package/build/v4/runtime/steps/assets/metaOs.json +197 -0
- package/build/v4/runtime/steps/assets/openApiAuth.json +33 -0
- package/build/v4/runtime/steps/assets/openApiCustomApi.json +141 -0
- package/build/v4/runtime/steps/daAction.d.ts +3 -1
- package/build/v4/runtime/steps/daAction.d.ts.map +1 -1
- package/build/v4/runtime/steps/daAction.js +25 -25
- package/build/v4/runtime/steps/daAction.js.map +1 -1
- package/build/v4/runtime/steps/daSensitivity.d.ts +3 -2
- package/build/v4/runtime/steps/daSensitivity.d.ts.map +1 -1
- package/build/v4/runtime/steps/daSensitivity.js +16 -16
- package/build/v4/runtime/steps/daSensitivity.js.map +1 -1
- package/build/v4/runtime/steps/mcpAuth.d.ts +2 -2
- package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -1
- package/build/v4/runtime/steps/mcpAuth.js +43 -50
- package/build/v4/runtime/steps/mcpAuth.js.map +1 -1
- package/build/v4/runtime/steps/mcpLocal.d.ts +1 -1
- package/build/v4/runtime/steps/mcpLocal.d.ts.map +1 -1
- package/build/v4/runtime/steps/mcpLocal.js +19 -31
- package/build/v4/runtime/steps/mcpLocal.js.map +1 -1
- package/build/v4/runtime/steps/mcpStatic.d.ts +1 -1
- package/build/v4/runtime/steps/mcpStatic.d.ts.map +1 -1
- package/build/v4/runtime/steps/mcpStatic.js +33 -39
- package/build/v4/runtime/steps/mcpStatic.js.map +1 -1
- package/build/v4/runtime/steps/metaOs.d.ts +2 -2
- package/build/v4/runtime/steps/metaOs.d.ts.map +1 -1
- package/build/v4/runtime/steps/metaOs.js +46 -169
- package/build/v4/runtime/steps/metaOs.js.map +1 -1
- package/build/v4/runtime/steps/officeAddin.d.ts +1 -1
- package/build/v4/runtime/steps/officeAddin.d.ts.map +1 -1
- package/build/v4/runtime/steps/officeAddin.js +16 -20
- package/build/v4/runtime/steps/officeAddin.js.map +1 -1
- package/build/v4/runtime/steps/openApi.d.ts +2 -2
- package/build/v4/runtime/steps/openApi.d.ts.map +1 -1
- package/build/v4/runtime/steps/openApi.js +46 -112
- package/build/v4/runtime/steps/openApi.js.map +1 -1
- package/build/v4/runtime/steps/openApiAuth.d.ts +9 -0
- package/build/v4/runtime/steps/openApiAuth.d.ts.map +1 -0
- package/build/v4/runtime/steps/openApiAuth.js +51 -0
- package/build/v4/runtime/steps/openApiAuth.js.map +1 -0
- package/build/v4/runtime/steps/openApiCustomApi.d.ts.map +1 -1
- package/build/v4/runtime/steps/openApiCustomApi.js +9 -119
- package/build/v4/runtime/steps/openApiCustomApi.js.map +1 -1
- package/build/v4/runtime/whitelist.d.ts +4 -38
- package/build/v4/runtime/whitelist.d.ts.map +1 -1
- package/build/v4/runtime/whitelist.js +30 -190
- package/build/v4/runtime/whitelist.js.map +1 -1
- package/build/v4/surface/createFloorTail.d.ts +2 -2
- package/build/v4/surface/createFloorTail.d.ts.map +1 -1
- package/build/v4/surface/createFloorTail.js +5 -22
- package/build/v4/surface/createFloorTail.js.map +1 -1
- package/build/v4/surface/createInputs.d.ts +2 -2
- package/build/v4/surface/createInputs.d.ts.map +1 -1
- package/build/v4/surface/createInputs.js +17 -44
- package/build/v4/surface/createInputs.js.map +1 -1
- package/build/v4/surface/createSelectorWalk.d.ts.map +1 -1
- package/build/v4/surface/createSelectorWalk.js +2 -56
- package/build/v4/surface/createSelectorWalk.js.map +1 -1
- package/build/v4/surface/localizePrompt.d.ts +2 -0
- package/build/v4/surface/localizePrompt.d.ts.map +1 -1
- package/build/v4/surface/localizePrompt.js +0 -1
- package/build/v4/surface/localizePrompt.js.map +1 -1
- package/build/v4/surface/modifySelectorWalk.d.ts.map +1 -1
- package/build/v4/surface/modifySelectorWalk.js +2 -52
- package/build/v4/surface/modifySelectorWalk.js.map +1 -1
- package/build/v4/surface/selectorPresentation.d.ts +5 -0
- package/build/v4/surface/selectorPresentation.d.ts.map +1 -0
- package/build/v4/surface/selectorPresentation.js +78 -0
- package/build/v4/surface/selectorPresentation.js.map +1 -0
- package/build/v4/validation/capabilityCatalog.d.ts +2 -2
- package/build/v4/validation/capabilityCatalog.d.ts.map +1 -1
- package/build/v4/validation/capabilityCatalog.js +9 -46
- package/build/v4/validation/capabilityCatalog.js.map +1 -1
- package/build/v4/validation/packageParse.d.ts +27 -0
- package/build/v4/validation/packageParse.d.ts.map +1 -0
- package/build/v4/validation/packageParse.js +247 -0
- package/build/v4/validation/packageParse.js.map +1 -0
- package/build/v4/validation/templateArchiveValidation.d.ts +2 -2
- package/build/v4/validation/templateArchiveValidation.d.ts.map +1 -1
- package/build/v4/validation/templateArchiveValidation.js +7 -2
- package/build/v4/validation/templateArchiveValidation.js.map +1 -1
- package/build/v4/validation/validateTemplatePackage.d.ts +3 -2
- package/build/v4/validation/validateTemplatePackage.d.ts.map +1 -1
- package/build/v4/validation/validateTemplatePackage.js +23 -3
- package/build/v4/validation/validateTemplatePackage.js.map +1 -1
- package/build/v4/validators/createInputValidators.d.ts.map +1 -1
- package/build/v4/validators/createInputValidators.js +9 -8
- package/build/v4/validators/createInputValidators.js.map +1 -1
- package/package.json +37 -37
- package/resource/package.nls.json +35 -1
- package/templates/configs/local/typescript/.gitignore +1 -0
- package/templates/configs/playground/typescript/.gitignore +4 -0
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/metadata.zip +0 -0
- package/templates/ui/tdpNode.json +1 -1
- package/templates/ui/wizardNode.json +1 -1
- package/templates/v4/create-selector.json +2 -2
- package/templates/v4/floor.json +1 -1
- package/templates/v4/templates-metadata.zip +0 -0
- package/templates/v4/templates.zip +0 -0
|
@@ -1,41 +1,7 @@
|
|
|
1
|
-
import { ExpressionRuntimePort
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export declare const mcpNamespace: WhitelistFn;
|
|
6
|
-
/** Whitelist fn `mcpAuthRef(url)` for the deferred auth env-ref placeholder. */
|
|
7
|
-
export declare const mcpAuthRef: WhitelistFn;
|
|
8
|
-
/** Whitelist fn `safeProjectNameLowerCase(appName)` for package names. */
|
|
9
|
-
export declare const safeProjectNameLowerCase: WhitelistFn;
|
|
10
|
-
/** Whitelist fn `pathDelimiter()` for PATH-like launch configuration values. */
|
|
11
|
-
export declare const pathDelimiter: WhitelistFn;
|
|
12
|
-
/** Whitelist fn `contains(csv, item)` — `"true"` when a multiSelect answer selects `item`. */
|
|
13
|
-
export declare const contains: WhitelistFn;
|
|
14
|
-
/** Whitelist fn `officeAddinManifestScope(host)` — the single-host manifest scope literal. */
|
|
15
|
-
export declare const officeAddinManifestScope: WhitelistFn;
|
|
16
|
-
/**
|
|
17
|
-
* Whitelist fn `officeAddinManifestScopes(csv)` — the multiSelect host set rendered
|
|
18
|
-
* as the inner body of a manifest `scopes` JSON array. Pre-joins so the array stays
|
|
19
|
-
* valid for any host subset (v3 parity: no trailing-comma breakage).
|
|
20
|
-
*/
|
|
21
|
-
export declare const officeAddinManifestScopes: WhitelistFn;
|
|
22
|
-
/**
|
|
23
|
-
* Whitelist fn `officeAddinLaunchConfigurations(csv)` — the inner body of the
|
|
24
|
-
* `.vscode/launch.json` `configurations` array, limited to the selected hosts.
|
|
25
|
-
*/
|
|
26
|
-
export declare const officeAddinLaunchConfigurations: WhitelistFn;
|
|
27
|
-
/**
|
|
28
|
-
* Whitelist fn `officeAddinLaunchCompounds(csv)` — the inner body of the
|
|
29
|
-
* `.vscode/launch.json` `compounds` array, limited to the selected hosts.
|
|
30
|
-
*/
|
|
31
|
-
export declare const officeAddinLaunchCompounds: WhitelistFn;
|
|
32
|
-
/**
|
|
33
|
-
* Whitelist fn `officeAddinDebugScripts(csv)` — the `start:desktop:<host>` npm
|
|
34
|
-
* script entries for the selected hosts, each on its own line with a trailing comma.
|
|
35
|
-
*/
|
|
36
|
-
export declare const officeAddinDebugScripts: WhitelistFn;
|
|
37
|
-
/** Whitelist fn `officeAddinDebugApp(csv)` — the default `app_to_debug` host. */
|
|
38
|
-
export declare const officeAddinDebugApp: WhitelistFn;
|
|
1
|
+
import { ExpressionRuntimePort } from "../expression/evaluateExpression";
|
|
2
|
+
export { safeProjectNameLowerCase, pathDelimiter, contains } from "./functions/generic";
|
|
3
|
+
export { deriveMcpServerName, mcpNamespace, mcpAuthRef } from "./functions/mcp";
|
|
4
|
+
export { officeAddinManifestScope, officeAddinManifestScopes, officeAddinLaunchConfigurations, officeAddinLaunchCompounds, officeAddinDebugScripts, officeAddinDebugApp, } from "./functions/officeAddin";
|
|
39
5
|
/** Build the real pure expression runtime port. */
|
|
40
6
|
export declare function createExpressionPort(flagReader?: (name: string) => boolean): ExpressionRuntimePort;
|
|
41
7
|
//# sourceMappingURL=whitelist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whitelist.d.ts","sourceRoot":"","sources":["../../../src/v4/runtime/whitelist.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"whitelist.d.ts","sourceRoot":"","sources":["../../../src/v4/runtime/whitelist.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAe,MAAM,kCAAkC,CAAC;AAItF,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAExF,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAShF,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,+BAA+B,EAC/B,0BAA0B,EAC1B,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AAsBjC,mDAAmD;AACnD,wBAAgB,oBAAoB,CAClC,UAAU,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAuB,GACpD,qBAAqB,CAKvB"}
|
|
@@ -2,200 +2,40 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.officeAddinDebugApp = exports.officeAddinDebugScripts = exports.officeAddinLaunchCompounds = exports.officeAddinLaunchConfigurations = exports.officeAddinManifestScopes = exports.officeAddinManifestScope = exports.
|
|
6
|
-
exports.deriveMcpServerName = deriveMcpServerName;
|
|
5
|
+
exports.officeAddinDebugApp = exports.officeAddinDebugScripts = exports.officeAddinLaunchCompounds = exports.officeAddinLaunchConfigurations = exports.officeAddinManifestScopes = exports.officeAddinManifestScope = exports.mcpAuthRef = exports.mcpNamespace = exports.deriveMcpServerName = exports.contains = exports.pathDelimiter = exports.safeProjectNameLowerCase = void 0;
|
|
7
6
|
exports.createExpressionPort = createExpressionPort;
|
|
8
|
-
const tslib_1 = require("tslib");
|
|
9
|
-
const path = tslib_1.__importStar(require("path"));
|
|
10
7
|
const featureFlags_1 = require("../../common/featureFlags");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
exports.
|
|
29
|
-
/** Whitelist fn `mcpAuthRef(url)` for the deferred auth env-ref placeholder. */
|
|
30
|
-
const mcpAuthRef = (url) => "${{MCP_DA_AUTH_ID_" + deriveMcpServerName(url).toUpperCase() + "}}";
|
|
31
|
-
exports.mcpAuthRef = mcpAuthRef;
|
|
32
|
-
/** Whitelist fn `safeProjectNameLowerCase(appName)` for package names. */
|
|
33
|
-
const safeProjectNameLowerCase = (appName) => appName.replace(/[^0-9a-zA-Z]/g, "").toLowerCase();
|
|
34
|
-
exports.safeProjectNameLowerCase = safeProjectNameLowerCase;
|
|
35
|
-
/** Whitelist fn `pathDelimiter()` for PATH-like launch configuration values. */
|
|
36
|
-
const pathDelimiter = () => path.delimiter;
|
|
37
|
-
exports.pathDelimiter = pathDelimiter;
|
|
38
|
-
/** Office add-in manifest requirement scope for each host id. */
|
|
39
|
-
const OFFICE_ADDIN_HOST_SCOPE = {
|
|
40
|
-
outlook: "mail",
|
|
41
|
-
excel: "workbook",
|
|
42
|
-
word: "document",
|
|
43
|
-
powerpoint: "presentation",
|
|
44
|
-
};
|
|
45
|
-
/** Stable host order for a deterministic multi-scope render. */
|
|
46
|
-
const OFFICE_ADDIN_HOST_ORDER = ["mail", "workbook", "document", "presentation"];
|
|
47
|
-
/** Parse a comma-joined multiSelect answer into its selected ids. */
|
|
48
|
-
function parseCsv(csv) {
|
|
49
|
-
return csv
|
|
50
|
-
.split(",")
|
|
51
|
-
.map((item) => item.trim())
|
|
52
|
-
.filter((item) => item.length > 0);
|
|
53
|
-
}
|
|
54
|
-
/** Whitelist fn `contains(csv, item)` — `"true"` when a multiSelect answer selects `item`. */
|
|
55
|
-
const contains = (csv, item) => parseCsv(csv).includes(item) ? "true" : "";
|
|
56
|
-
exports.contains = contains;
|
|
57
|
-
/** Whitelist fn `officeAddinManifestScope(host)` — the single-host manifest scope literal. */
|
|
58
|
-
const officeAddinManifestScope = (host) => `"${OFFICE_ADDIN_HOST_SCOPE[host] ?? OFFICE_ADDIN_HOST_SCOPE.word}"`;
|
|
59
|
-
exports.officeAddinManifestScope = officeAddinManifestScope;
|
|
60
|
-
/**
|
|
61
|
-
* Whitelist fn `officeAddinManifestScopes(csv)` — the multiSelect host set rendered
|
|
62
|
-
* as the inner body of a manifest `scopes` JSON array. Pre-joins so the array stays
|
|
63
|
-
* valid for any host subset (v3 parity: no trailing-comma breakage).
|
|
64
|
-
*/
|
|
65
|
-
const officeAddinManifestScopes = (csv) => {
|
|
66
|
-
const selected = new Set(parseCsv(csv).map((host) => OFFICE_ADDIN_HOST_SCOPE[host]));
|
|
67
|
-
const scopes = OFFICE_ADDIN_HOST_ORDER.filter((scope) => selected.has(scope));
|
|
68
|
-
const body = scopes.length > 0 ? scopes : [OFFICE_ADDIN_HOST_SCOPE.word];
|
|
69
|
-
return body.map((scope) => `"${scope}"`).join(",\n ");
|
|
70
|
-
};
|
|
71
|
-
exports.officeAddinManifestScopes = officeAddinManifestScopes;
|
|
72
|
-
/**
|
|
73
|
-
* Debug launch surface for the Office task-pane template.
|
|
74
|
-
*
|
|
75
|
-
* These functions pre-join the `.vscode/launch.json` and `package.json` host
|
|
76
|
-
* entries instead of the `{{#HostOutlook}}` Mustache sections the manifest uses.
|
|
77
|
-
* The manifest's optional blocks each sit next to a guaranteed-present sibling
|
|
78
|
-
* (the default permission / runtime / ribbon), so a section can carry its own
|
|
79
|
-
* trailing comma safely. The launch configs, compounds, and debug scripts are
|
|
80
|
-
* *fully* optional arrays — every element depends on a host that may be
|
|
81
|
-
* deselected — so there is no anchor element to absorb a trailing comma, and
|
|
82
|
-
* flat Mustache cannot suppress the comma after the last selected block. A
|
|
83
|
-
* comma `join` over the selected hosts is the only comma-correct option, which
|
|
84
|
-
* only a function (not a template) can express.
|
|
85
|
-
*
|
|
86
|
-
* This mirrors how v3 handles the same files: rather than editing JSON text, v3
|
|
87
|
-
* scaffolds all hosts and then `Array.filter`s the parsed `configurations` /
|
|
88
|
-
* `compounds` / `scripts` and re-serializes (officeAddin generator `post`). v4
|
|
89
|
-
* has no post-render file mutation, so the equivalent filtered-list-to-string
|
|
90
|
-
* happens here at render time instead.
|
|
91
|
-
*/
|
|
92
|
-
const OFFICE_ADDIN_HOST_LABEL = {
|
|
93
|
-
word: "Word",
|
|
94
|
-
excel: "Excel",
|
|
95
|
-
powerpoint: "PowerPoint",
|
|
96
|
-
outlook: "Outlook",
|
|
97
|
-
};
|
|
98
|
-
const OFFICE_ADDIN_LAUNCH_HOST_ORDER = ["word", "excel", "powerpoint", "outlook"];
|
|
99
|
-
/** Selected hosts in canonical order, defaulting to word when nothing is selected. */
|
|
100
|
-
function selectedLaunchHosts(csv) {
|
|
101
|
-
const selected = new Set(parseCsv(csv));
|
|
102
|
-
const hosts = OFFICE_ADDIN_LAUNCH_HOST_ORDER.filter((host) => selected.has(host));
|
|
103
|
-
return hosts.length > 0 ? hosts : ["word"];
|
|
104
|
-
}
|
|
105
|
-
/** Indent a multi-line JSON fragment so it nests under the given column. */
|
|
106
|
-
function indentJson(json, spaces) {
|
|
107
|
-
const pad = " ".repeat(spaces);
|
|
108
|
-
return json
|
|
109
|
-
.split("\n")
|
|
110
|
-
.map((line) => (line.length > 0 ? pad + line : line))
|
|
111
|
-
.join("\n");
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Whitelist fn `officeAddinLaunchConfigurations(csv)` — the inner body of the
|
|
115
|
-
* `.vscode/launch.json` `configurations` array, limited to the selected hosts.
|
|
116
|
-
*/
|
|
117
|
-
const officeAddinLaunchConfigurations = (csv) => {
|
|
118
|
-
const blocks = selectedLaunchHosts(csv).flatMap((host) => {
|
|
119
|
-
const label = OFFICE_ADDIN_HOST_LABEL[host];
|
|
120
|
-
return [
|
|
121
|
-
`{
|
|
122
|
-
"name": "${label} Desktop Host",
|
|
123
|
-
"type": "node-terminal",
|
|
124
|
-
"request": "launch",
|
|
125
|
-
"command": "npm run start:desktop:${host}",
|
|
126
|
-
"cwd": "\${workspaceFolder}",
|
|
127
|
-
"preLaunchTask": "Install",
|
|
128
|
-
"postDebugTask": "Stop Debug",
|
|
129
|
-
"presentation": {
|
|
130
|
-
"hidden": true
|
|
131
|
-
}
|
|
132
|
-
}`,
|
|
133
|
-
`{
|
|
134
|
-
"name": "${label} Desktop Attach (Edge Chromium)",
|
|
135
|
-
"type": "msedge",
|
|
136
|
-
"request": "attach",
|
|
137
|
-
"port": 9229,
|
|
138
|
-
"timeout": 600000,
|
|
139
|
-
"webRoot": "\${workspaceRoot}",
|
|
140
|
-
"presentation": {
|
|
141
|
-
"hidden": true
|
|
142
|
-
}
|
|
143
|
-
}`,
|
|
144
|
-
];
|
|
145
|
-
});
|
|
146
|
-
return blocks
|
|
147
|
-
.map((block) => indentJson(block, 4))
|
|
148
|
-
.join(",\n")
|
|
149
|
-
.trimStart();
|
|
150
|
-
};
|
|
151
|
-
exports.officeAddinLaunchConfigurations = officeAddinLaunchConfigurations;
|
|
152
|
-
/**
|
|
153
|
-
* Whitelist fn `officeAddinLaunchCompounds(csv)` — the inner body of the
|
|
154
|
-
* `.vscode/launch.json` `compounds` array, limited to the selected hosts.
|
|
155
|
-
*/
|
|
156
|
-
const officeAddinLaunchCompounds = (csv) => {
|
|
157
|
-
const blocks = selectedLaunchHosts(csv).map((host) => {
|
|
158
|
-
const label = OFFICE_ADDIN_HOST_LABEL[host];
|
|
159
|
-
return `{
|
|
160
|
-
"name": "${label} Desktop (Edge Chromium)",
|
|
161
|
-
"configurations": [
|
|
162
|
-
"${label} Desktop Host",
|
|
163
|
-
"${label} Desktop Attach (Edge Chromium)"
|
|
164
|
-
],
|
|
165
|
-
"stopAll": true
|
|
166
|
-
}`;
|
|
167
|
-
});
|
|
168
|
-
return blocks
|
|
169
|
-
.map((block) => indentJson(block, 4))
|
|
170
|
-
.join(",\n")
|
|
171
|
-
.trimStart();
|
|
172
|
-
};
|
|
173
|
-
exports.officeAddinLaunchCompounds = officeAddinLaunchCompounds;
|
|
174
|
-
/**
|
|
175
|
-
* Whitelist fn `officeAddinDebugScripts(csv)` — the `start:desktop:<host>` npm
|
|
176
|
-
* script entries for the selected hosts, each on its own line with a trailing comma.
|
|
177
|
-
*/
|
|
178
|
-
const officeAddinDebugScripts = (csv) => selectedLaunchHosts(csv)
|
|
179
|
-
.map((host) => ` "start:desktop:${host}": "office-addin-debugging start appPackage/manifest.json desktop --app ${host}",`)
|
|
180
|
-
.join("\n")
|
|
181
|
-
.trimStart();
|
|
182
|
-
exports.officeAddinDebugScripts = officeAddinDebugScripts;
|
|
183
|
-
/** Whitelist fn `officeAddinDebugApp(csv)` — the default `app_to_debug` host. */
|
|
184
|
-
const officeAddinDebugApp = (csv) => selectedLaunchHosts(csv)[0];
|
|
185
|
-
exports.officeAddinDebugApp = officeAddinDebugApp;
|
|
8
|
+
const generic_1 = require("./functions/generic");
|
|
9
|
+
var generic_2 = require("./functions/generic");
|
|
10
|
+
Object.defineProperty(exports, "safeProjectNameLowerCase", { enumerable: true, get: function () { return generic_2.safeProjectNameLowerCase; } });
|
|
11
|
+
Object.defineProperty(exports, "pathDelimiter", { enumerable: true, get: function () { return generic_2.pathDelimiter; } });
|
|
12
|
+
Object.defineProperty(exports, "contains", { enumerable: true, get: function () { return generic_2.contains; } });
|
|
13
|
+
const mcp_1 = require("./functions/mcp");
|
|
14
|
+
var mcp_2 = require("./functions/mcp");
|
|
15
|
+
Object.defineProperty(exports, "deriveMcpServerName", { enumerable: true, get: function () { return mcp_2.deriveMcpServerName; } });
|
|
16
|
+
Object.defineProperty(exports, "mcpNamespace", { enumerable: true, get: function () { return mcp_2.mcpNamespace; } });
|
|
17
|
+
Object.defineProperty(exports, "mcpAuthRef", { enumerable: true, get: function () { return mcp_2.mcpAuthRef; } });
|
|
18
|
+
const officeAddin_1 = require("./functions/officeAddin");
|
|
19
|
+
var officeAddin_2 = require("./functions/officeAddin");
|
|
20
|
+
Object.defineProperty(exports, "officeAddinManifestScope", { enumerable: true, get: function () { return officeAddin_2.officeAddinManifestScope; } });
|
|
21
|
+
Object.defineProperty(exports, "officeAddinManifestScopes", { enumerable: true, get: function () { return officeAddin_2.officeAddinManifestScopes; } });
|
|
22
|
+
Object.defineProperty(exports, "officeAddinLaunchConfigurations", { enumerable: true, get: function () { return officeAddin_2.officeAddinLaunchConfigurations; } });
|
|
23
|
+
Object.defineProperty(exports, "officeAddinLaunchCompounds", { enumerable: true, get: function () { return officeAddin_2.officeAddinLaunchCompounds; } });
|
|
24
|
+
Object.defineProperty(exports, "officeAddinDebugScripts", { enumerable: true, get: function () { return officeAddin_2.officeAddinDebugScripts; } });
|
|
25
|
+
Object.defineProperty(exports, "officeAddinDebugApp", { enumerable: true, get: function () { return officeAddin_2.officeAddinDebugApp; } });
|
|
186
26
|
/** The closed function whitelist; an author cannot extend it (ADR-0016 decision 3). */
|
|
187
27
|
const WHITELIST = new Map([
|
|
188
|
-
["mcpNamespace",
|
|
189
|
-
["mcpAuthRef",
|
|
190
|
-
["safeProjectNameLowerCase",
|
|
191
|
-
["pathDelimiter",
|
|
192
|
-
["contains",
|
|
193
|
-
["officeAddinManifestScope",
|
|
194
|
-
["officeAddinManifestScopes",
|
|
195
|
-
["officeAddinLaunchConfigurations",
|
|
196
|
-
["officeAddinLaunchCompounds",
|
|
197
|
-
["officeAddinDebugScripts",
|
|
198
|
-
["officeAddinDebugApp",
|
|
28
|
+
["mcpNamespace", mcp_1.mcpNamespace],
|
|
29
|
+
["mcpAuthRef", mcp_1.mcpAuthRef],
|
|
30
|
+
["safeProjectNameLowerCase", generic_1.safeProjectNameLowerCase],
|
|
31
|
+
["pathDelimiter", generic_1.pathDelimiter],
|
|
32
|
+
["contains", generic_1.contains],
|
|
33
|
+
["officeAddinManifestScope", officeAddin_1.officeAddinManifestScope],
|
|
34
|
+
["officeAddinManifestScopes", officeAddin_1.officeAddinManifestScopes],
|
|
35
|
+
["officeAddinLaunchConfigurations", officeAddin_1.officeAddinLaunchConfigurations],
|
|
36
|
+
["officeAddinLaunchCompounds", officeAddin_1.officeAddinLaunchCompounds],
|
|
37
|
+
["officeAddinDebugScripts", officeAddin_1.officeAddinDebugScripts],
|
|
38
|
+
["officeAddinDebugApp", officeAddin_1.officeAddinDebugApp],
|
|
199
39
|
]);
|
|
200
40
|
/** Default feature-flag reader: an env-backed truthy check (`"true"` / `"1"`). */
|
|
201
41
|
function envFlagReader(name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whitelist.js","sourceRoot":"","sources":["../../../src/v4/runtime/whitelist.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;
|
|
1
|
+
{"version":3,"file":"whitelist.js","sourceRoot":"","sources":["../../../src/v4/runtime/whitelist.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA+ClC,oDAOC;AAnDD,4DAAmE;AAEnE,iDAAwF;AACxF,+CAAwF;AAA/E,mHAAA,wBAAwB,OAAA;AAAE,wGAAA,aAA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12 +1,12 @@
|
|
|
1
1
|
import { FxError, Inputs } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
|
-
import { QuestionSpec, Validator } from "../collectInputs/collectInputs";
|
|
3
|
+
import { OptionItem, QuestionSpec, Validator } from "../collectInputs/collectInputs";
|
|
4
4
|
import { Answers } from "../model/dataModel";
|
|
5
5
|
export interface CreateFloorTail {
|
|
6
6
|
questions: QuestionSpec[];
|
|
7
7
|
answers: Answers;
|
|
8
8
|
validators: Record<string, Validator>;
|
|
9
9
|
}
|
|
10
|
-
export declare function createFloorTail(inputs: Inputs | undefined, languages:
|
|
10
|
+
export declare function createFloorTail(inputs: Inputs | undefined, languages: OptionItem[]): Promise<Result<CreateFloorTail, FxError>>;
|
|
11
11
|
export declare function validateCreateFloorAnswers(inputs: Inputs, answers: Answers): Promise<Result<undefined, FxError>>;
|
|
12
12
|
//# sourceMappingURL=createFloorTail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFloorTail.d.ts","sourceRoot":"","sources":["../../../src/v4/surface/createFloorTail.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"createFloorTail.d.ts","sourceRoot":"","sources":["../../../src/v4/surface/createFloorTail.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACvC;AAwBD,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,SAAS,EAAE,UAAU,EAAE,GACtB,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAiF3C;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAmBrC"}
|
|
@@ -5,25 +5,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.createFloorTail = createFloorTail;
|
|
6
6
|
exports.validateCreateFloorAnswers = validateCreateFloorAnswers;
|
|
7
7
|
const neverthrow_1 = require("neverthrow");
|
|
8
|
-
const localizeUtils_1 = require("../../common/localizeUtils");
|
|
9
8
|
const common_1 = require("../../error/common");
|
|
10
9
|
const question_1 = require("../../question");
|
|
11
|
-
const LANGUAGE_LABELS = {
|
|
12
|
-
javascript: "JavaScript",
|
|
13
|
-
typescript: "TypeScript",
|
|
14
|
-
csharp: "C#",
|
|
15
|
-
python: "Python",
|
|
16
|
-
};
|
|
17
|
-
const PYTHON_LANGUAGE = "python";
|
|
18
|
-
function languageOption(language, showPythonPreview) {
|
|
19
|
-
return {
|
|
20
|
-
id: language,
|
|
21
|
-
label: LANGUAGE_LABELS[language] ?? language,
|
|
22
|
-
description: showPythonPreview && language === PYTHON_LANGUAGE
|
|
23
|
-
? (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.option.description.preview")
|
|
24
|
-
: undefined,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
10
|
function isFuncValidation(value) {
|
|
28
11
|
return (typeof value === "object" &&
|
|
29
12
|
value !== null &&
|
|
@@ -35,7 +18,7 @@ function getStringValidationFunc(validation) {
|
|
|
35
18
|
async function resolveStringValue(value, inputs) {
|
|
36
19
|
return typeof value === "function" ? await value(inputs) : value;
|
|
37
20
|
}
|
|
38
|
-
async function createFloorTail(inputs, languages
|
|
21
|
+
async function createFloorTail(inputs, languages) {
|
|
39
22
|
const questions = [];
|
|
40
23
|
const answers = {};
|
|
41
24
|
if (languages.length > 1) {
|
|
@@ -43,12 +26,12 @@ async function createFloorTail(inputs, languages, showPythonPreview = false) {
|
|
|
43
26
|
name: "language",
|
|
44
27
|
type: "singleSelect",
|
|
45
28
|
title: "Programming Language",
|
|
46
|
-
default: languages[0],
|
|
47
|
-
staticOptions: languages
|
|
29
|
+
default: languages[0].id,
|
|
30
|
+
staticOptions: languages,
|
|
48
31
|
});
|
|
49
32
|
}
|
|
50
|
-
else if (languages.length === 1 && languages[0] !== "common") {
|
|
51
|
-
answers.language = languages[0];
|
|
33
|
+
else if (languages.length === 1 && languages[0].id !== "common") {
|
|
34
|
+
answers.language = languages[0].id;
|
|
52
35
|
}
|
|
53
36
|
if (inputs === undefined) {
|
|
54
37
|
return (0, neverthrow_1.ok)({ questions, answers, validators: {} });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFloorTail.js","sourceRoot":"","sources":["../../../src/v4/surface/createFloorTail.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;
|
|
1
|
+
{"version":3,"file":"createFloorTail.js","sourceRoot":"","sources":["../../../src/v4/surface/createFloorTail.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqClC,0CAoFC;AAED,gEAsBC;AA9ID,2CAA6C;AAC7C,+CAAqF;AACrF,6CAAgF;AAUhF,SAAS,gBAAgB,CAAC,KAAc;IACtC,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,UAAU,CACtD,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAC9B,UAAuD;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CAAC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAAc,EACd,OAAgB;IAEhB,MAAM,OAAO,GAAG,OAAO,CAAC,wBAAa,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,IAAA,gBAAG,EAAC,IAAI,kCAAyB,CAAC,wBAAa,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;IACtF,CAAC;IACD,MAAM,eAAe,GAAG,uBAAuB,CAAC,IAAA,0BAAe,GAAE,CAAC,UAAU,CAAC,CAAC;IAC9E,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;QAClC,OAAO,IAAA,eAAE,EAAC,SAAS,CAAC,CAAC;IACvB,CAAC;IACD,MAAM,gBAAgB,GAAW,EAAE,GAAG,MAAM,EAAE,CAAC;IAC/C,MAAM,YAAY,GAAG,OAAO,CAAC,wBAAa,CAAC,MAAM,CAAC,CAAC;IACnD,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;QACrC,gBAAgB,CAAC,wBAAa,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC;IACxD,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;IACjE,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,IAAA,gBAAG,EAAC,IAAI,6BAAoB,CAAC,wBAAa,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAC1F,CAAC;IACD,OAAO,IAAA,eAAE,EAAC,SAAS,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -5,8 +5,8 @@ import { type ODRServer } from "../../common/odrProvider";
|
|
|
5
5
|
import { SearchOpenAPISpecResult } from "../../common/kiotaClient";
|
|
6
6
|
import { OptionsProvider } from "../collectInputs/collectInputs";
|
|
7
7
|
import { Answers, DeclarativeLocator } from "../model/dataModel";
|
|
8
|
-
/**
|
|
9
|
-
export
|
|
8
|
+
/** Live create-path surface wiring for `collect-inputs`. See collect-create-inputs spec. */
|
|
9
|
+
export { gateLanguagesBySurface } from "../providers/createLanguageOptionsProvider";
|
|
10
10
|
/** Injected provider and feature-flag overrides. */
|
|
11
11
|
export interface CreateInputsDeps {
|
|
12
12
|
/** Override `optionsFrom` providers (e.g. a live `mcp.serverTypes`); merged over the defaults. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createInputs.d.ts","sourceRoot":"","sources":["../../../src/v4/surface/createInputs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAa,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAiB,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAqB,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAEL,eAAe,EAGhB,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"createInputs.d.ts","sourceRoot":"","sources":["../../../src/v4/surface/createInputs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAa,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAiB,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAqB,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAEL,eAAe,EAGhB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAajE,4FAA4F;AAE5F,OAAO,E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,EAC3B,WAAW,EAAE,OAAO,EACpB,EAAE,EAAE,eAAe,EACnB,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAkBnC"}
|
|
@@ -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.gateLanguagesBySurface =
|
|
5
|
+
exports.gateLanguagesBySurface = void 0;
|
|
6
6
|
exports.runCreateInputsWalk = runCreateInputsWalk;
|
|
7
7
|
exports.runCreateInputs = runCreateInputs;
|
|
8
8
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
@@ -13,53 +13,23 @@ const featureFlags_1 = require("../../common/featureFlags");
|
|
|
13
13
|
const kiotaClient_1 = require("../../common/kiotaClient");
|
|
14
14
|
const collectInputs_1 = require("../collectInputs/collectInputs");
|
|
15
15
|
const declarativePackage_1 = require("../distribution/declarativePackage");
|
|
16
|
+
const engineVersion_1 = require("../engineVersion");
|
|
16
17
|
const evaluateExpression_1 = require("../expression/evaluateExpression");
|
|
17
18
|
const createOptionsProviders_1 = require("../providers/createOptionsProviders");
|
|
19
|
+
const createLanguageOptionsProvider_1 = require("../providers/createLanguageOptionsProvider");
|
|
18
20
|
const packageParse_1 = require("../runtime/packageParse");
|
|
19
21
|
const whitelist_1 = require("../runtime/whitelist");
|
|
22
|
+
const validateTemplatePackage_1 = require("../validation/validateTemplatePackage");
|
|
20
23
|
const createInputValidators_1 = require("../validators/createInputValidators");
|
|
21
24
|
const createFloorTail_1 = require("./createFloorTail");
|
|
22
25
|
const uiPromptUI_1 = require("./uiPromptUI");
|
|
23
26
|
/** Live create-path surface wiring for `collect-inputs`. See collect-create-inputs spec. */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"custom-copilot-rag-azure-ai-search",
|
|
27
|
-
"custom-copilot-rag-custom-api",
|
|
28
|
-
"custom-copilot-rag-customize",
|
|
29
|
-
"default-bot",
|
|
30
|
-
"default-message-extension",
|
|
31
|
-
"non-sso-tab",
|
|
32
|
-
"teams-collaborator-agent",
|
|
33
|
-
]);
|
|
34
|
-
function showsPythonPreview(templateId) {
|
|
35
|
-
return TEAMS_AGENTS_AND_APPS_TEMPLATE_IDS.has(templateId);
|
|
36
|
-
}
|
|
37
|
-
function isRecord(value) {
|
|
38
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
39
|
-
}
|
|
40
|
-
/** Descriptor language axis, falling back to `["common"]`. */
|
|
41
|
-
function descriptorLanguages(descriptor) {
|
|
42
|
-
if (isRecord(descriptor) && Array.isArray(descriptor.languages)) {
|
|
43
|
-
const languages = descriptor.languages.filter((language) => typeof language === "string");
|
|
44
|
-
if (languages.length > 0) {
|
|
45
|
-
return languages;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return ["common"];
|
|
49
|
-
}
|
|
50
|
-
/** v4-local copy of the CLI-only .NET feature flag name. */
|
|
51
|
-
const CLI_DOTNET_FLAG = "TEAMSFX_CLI_DOTNET";
|
|
52
|
-
/** The C# language id, surface-gated below. */
|
|
53
|
-
const CSHARP_LANGUAGE = "csharp";
|
|
27
|
+
var createLanguageOptionsProvider_2 = require("../providers/createLanguageOptionsProvider");
|
|
28
|
+
Object.defineProperty(exports, "gateLanguagesBySurface", { enumerable: true, get: function () { return createLanguageOptionsProvider_2.gateLanguagesBySurface; } });
|
|
54
29
|
/** The default env-backed feature-flag reader (a flag is on iff its env var is exactly `"true"`). */
|
|
55
30
|
function envFlagReader(name) {
|
|
56
31
|
return (0, featureFlags_1.readBooleanFeatureFlag)(name);
|
|
57
32
|
}
|
|
58
|
-
/** Gate `csharp` by surface and the .NET flag; other languages pass through. */
|
|
59
|
-
function gateLanguagesBySurface(languages, surface, flagReader) {
|
|
60
|
-
const allowCsharp = surface !== "vscode" && flagReader(CLI_DOTNET_FLAG);
|
|
61
|
-
return allowCsharp ? languages : languages.filter((language) => language !== CSHARP_LANGUAGE);
|
|
62
|
-
}
|
|
63
33
|
/** The Q2 options schema: the declared identifier domain (`optionsSchema.properties` ids). */
|
|
64
34
|
function declaredOptionsSchema(descriptor) {
|
|
65
35
|
const properties = {};
|
|
@@ -79,15 +49,22 @@ async function runCreateInputsWalk(floorBytes, locator, entryParams, ui, deps =
|
|
|
79
49
|
if (opened.isErr()) {
|
|
80
50
|
return (0, neverthrow_1.err)(opened.error);
|
|
81
51
|
}
|
|
52
|
+
const version = (0, validateTemplatePackage_1.validateMinEngineVersion)(locator.kind, locator.templateId, opened.value.descriptor, engineVersion_1.CURRENT_V4_ENGINE_VERSION, (name, message) => new teamsfx_api_1.UserError({ source: "Scaffold", name, message }));
|
|
53
|
+
if (version.isErr()) {
|
|
54
|
+
return (0, neverthrow_1.err)(version.error);
|
|
55
|
+
}
|
|
82
56
|
const descriptor = opened.value.descriptor;
|
|
83
|
-
const
|
|
57
|
+
const surface = deps.surface ?? "vscode";
|
|
84
58
|
const providers = {
|
|
85
|
-
...(0, createOptionsProviders_1.createDefaultCreateOptionsProviders)(deps.fetchMcpTools ?? mcpToolFetcher_1.fetchMCPTools, deps.listLocalMcpServers ?? odrProvider_1.ODRProvider.listServers, deps.searchOpenAPISpec ?? kiotaClient_1.searchOpenAPISpec),
|
|
59
|
+
...(0, createOptionsProviders_1.createDefaultCreateOptionsProviders)(deps.fetchMcpTools ?? mcpToolFetcher_1.fetchMCPTools, deps.listLocalMcpServers ?? odrProvider_1.ODRProvider.listServers, deps.searchOpenAPISpec ?? kiotaClient_1.searchOpenAPISpec, { descriptor, surface, flagReader: deps.flagReader ?? envFlagReader }),
|
|
86
60
|
...(deps.optionsProvider ?? {}),
|
|
87
61
|
};
|
|
88
62
|
const expressionPort = (0, whitelist_1.createExpressionPort)(deps.flagReader);
|
|
89
|
-
const
|
|
90
|
-
|
|
63
|
+
const languages = await (0, createLanguageOptionsProvider_1.resolveLanguageOptions)(providers[createLanguageOptionsProvider_1.CREATE_LANGUAGES_PROVIDER]);
|
|
64
|
+
if (languages.isErr()) {
|
|
65
|
+
return (0, neverthrow_1.err)(languages.error);
|
|
66
|
+
}
|
|
67
|
+
const floorTail = await (0, createFloorTail_1.createFloorTail)(deps.inputs, languages.value);
|
|
91
68
|
if (floorTail.isErr()) {
|
|
92
69
|
return (0, neverthrow_1.err)(floorTail.error);
|
|
93
70
|
}
|
|
@@ -116,10 +93,6 @@ async function runCreateInputsWalk(floorBytes, locator, entryParams, ui, deps =
|
|
|
116
93
|
}
|
|
117
94
|
const answers = walked.value.answers;
|
|
118
95
|
delete answers.nonInteractive;
|
|
119
|
-
const selectedOpenApiSpec = answers.selectOpenApiSpec;
|
|
120
|
-
if (answers.apiSpecLocation === undefined && typeof selectedOpenApiSpec === "string") {
|
|
121
|
-
answers.apiSpecLocation = selectedOpenApiSpec;
|
|
122
|
-
}
|
|
123
96
|
if (deps.inputs !== undefined) {
|
|
124
97
|
const validation = await (0, createFloorTail_1.validateCreateFloorAnswers)(deps.inputs, answers);
|
|
125
98
|
if (validation.isErr()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createInputs.js","sourceRoot":"","sources":["../../../src/v4/surface/createInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC
|
|
1
|
+
{"version":3,"file":"createInputs.js","sourceRoot":"","sources":["../../../src/v4/surface/createInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA+ElC,kDAgFC;AAOD,0CAwBC;AA5LD,wDAAqF;AACrF,2CAA6C;AAC7C,gEAA4E;AAC5E,0DAAuE;AACvE,4DAAmE;AACnE,0DAAsF;AACtF,kEAKwC;AACxC,2EAAoF;AACpF,oDAA6D;AAC7D,yEAAsE;AAEtE,gFAA0F;AAC1F,8FAGoD;AACpD,0DAA4D;AAC5D,oDAA4D;AAC5D,mFAAiF;AACjF,+EAAyF;AACzF,uDAAgF;AAChF,6CAA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C,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IACD,OAAO,IAAA,eAAE,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;AACvC,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,eAAe,CACnC,UAAkB,EAClB,OAA2B,EAC3B,WAAoB,EACpB,EAAmB,EACnB,OAAyB,EAAE;IAE3B,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC9E,GAAG,IAAI;QACP,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QACpB,OAAO,IAAA,gBAAG,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IACD,6FAA6F;IAC7F,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM;QAClC,CAAC,CAAC,IAAA,gBAAG,EACD,IAAI,uBAAS,CAAC;YACZ,MAAM,EAAE,UAAU;YAClB,IAAI,EAAE,oBAAoB;YAC1B,OAAO,EAAE,oEAAoE;SAC9E,CAAC,CACH;QACH,CAAC,CAAC,IAAA,eAAE,EAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSelectorWalk.d.ts","sourceRoot":"","sources":["../../../src/v4/surface/createSelectorWalk.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAA0B,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"createSelectorWalk.d.ts","sourceRoot":"","sources":["../../../src/v4/surface/createSelectorWalk.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAA0B,eAAe,EAAE,MAAM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