@microsoft/teamsfx-core 3.0.4 → 3.0.5-alpha.8a544ede4.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/teamsDevPortalClient.js +1 -1
- package/build/client/teamsDevPortalClient.js.map +1 -1
- package/build/common/daSpecParser.js +1 -1
- package/build/common/daSpecParser.js.map +1 -1
- package/build/common/kiotaClient.d.ts.map +1 -1
- package/build/common/kiotaClient.js +17 -7
- package/build/common/kiotaClient.js.map +1 -1
- package/build/common/projectTypeChecker.d.ts +1 -0
- package/build/common/projectTypeChecker.d.ts.map +1 -1
- package/build/common/projectTypeChecker.js +14 -1
- package/build/common/projectTypeChecker.js.map +1 -1
- package/build/common/stringUtils.d.ts.map +1 -1
- package/build/common/stringUtils.js +2 -1
- package/build/common/stringUtils.js.map +1 -1
- package/build/common/templates-config.json +8 -6
- package/build/common/tools.d.ts +4 -0
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +58 -1
- package/build/common/tools.js.map +1 -1
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +0 -1
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +1 -0
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/coordinator/index.js +1 -1
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deps-checker/constant/message.d.ts +44 -11
- package/build/component/deps-checker/constant/message.d.ts.map +1 -1
- package/build/component/deps-checker/constant/message.js +48 -13
- package/build/component/deps-checker/constant/message.js.map +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.js +4 -1
- package/build/component/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.js +5 -2
- package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/component/deps-checker/internal/testToolChecker.d.ts.map +1 -1
- package/build/component/deps-checker/internal/testToolChecker.js +14 -8
- package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js +10 -12
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +77 -76
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +3 -0
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +3 -3
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +8 -13
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +2 -2
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +10 -5
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts +3 -3
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +65 -86
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/generator/defaultGenerator.d.ts.map +1 -1
- package/build/component/generator/defaultGenerator.js +6 -5
- package/build/component/generator/defaultGenerator.js.map +1 -1
- package/build/component/generator/generator.js +2 -2
- 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 +1 -1
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/metaOSHelper.d.ts.map +1 -1
- package/build/component/generator/officeAddin/metaOSHelper.js +44 -5
- package/build/component/generator/officeAddin/metaOSHelper.js.map +1 -1
- package/build/component/generator/templates/metadata/tab.js +4 -4
- package/build/component/generator/templates/metadata/tab.js.map +1 -1
- package/build/component/generator/templates/metadata/vs.d.ts.map +1 -1
- package/build/component/generator/templates/metadata/vs.js +0 -12
- package/build/component/generator/templates/metadata/vs.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +1 -3
- package/build/component/generator/templates/templateNames.d.ts.map +1 -1
- package/build/component/generator/templates/templateNames.js +1 -3
- package/build/component/generator/templates/templateNames.js.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.js +2 -2
- package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
- package/build/component/generator/utils.d.ts +3 -3
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +23 -6
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/resource/botService/errors.d.ts +1 -1
- package/build/component/resource/botService/errors.d.ts.map +1 -1
- package/build/component/resource/botService/errors.js +2 -2
- package/build/component/resource/botService/errors.js.map +1 -1
- package/build/component/resource/botService/messages.d.ts +1 -1
- package/build/component/resource/botService/messages.d.ts.map +1 -1
- package/build/component/resource/botService/messages.js +6 -1
- package/build/component/resource/botService/messages.js.map +1 -1
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +5 -2
- package/build/core/FxCore.js.map +1 -1
- package/build/error/depCheck.d.ts +4 -1
- package/build/error/depCheck.d.ts.map +1 -1
- package/build/error/depCheck.js +2 -2
- package/build/error/depCheck.js.map +1 -1
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +6 -18
- package/build/question/constants.js.map +1 -1
- package/build/question/generator.js +2 -0
- package/build/question/generator.js.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +1 -5
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
- package/build/question/inputs/RegeneratePluginInputs.d.ts +16 -0
- package/build/question/inputs/RegeneratePluginInputs.d.ts.map +1 -0
- package/build/question/inputs/RegeneratePluginInputs.js +5 -0
- package/build/question/inputs/RegeneratePluginInputs.js.map +1 -0
- package/build/question/inputs/index.d.ts +1 -0
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +1 -0
- package/build/question/inputs/index.js.map +1 -1
- package/build/question/options/AddPluginOptions.d.ts.map +1 -1
- package/build/question/options/AddPluginOptions.js +1 -11
- package/build/question/options/AddPluginOptions.js.map +1 -1
- package/build/question/options/CreateProjectOptions.js +1 -1
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/RegeneratePluginOptions.d.ts +10 -0
- package/build/question/options/RegeneratePluginOptions.d.ts.map +1 -0
- package/build/question/options/RegeneratePluginOptions.js +28 -0
- package/build/question/options/RegeneratePluginOptions.js.map +1 -0
- package/build/question/options/SPFxAddWebpartOptions.js +1 -1
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -1
- package/build/question/options/index.d.ts +1 -0
- package/build/question/options/index.d.ts.map +1 -1
- package/build/question/options/index.js +1 -0
- package/build/question/options/index.js.map +1 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +1 -13
- package/build/question/other.js.map +1 -1
- package/build/question/scaffold/vs/createRootNode.d.ts +0 -1
- package/build/question/scaffold/vs/createRootNode.d.ts.map +1 -1
- package/build/question/scaffold/vs/createRootNode.js +0 -11
- package/build/question/scaffold/vs/createRootNode.js.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts +0 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.js +1 -9
- package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.js +0 -14
- package/build/question/scaffold/vsc/daProjectTypeNode.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/resource/package.nls.cs.json +68 -57
- package/resource/package.nls.de.json +68 -57
- package/resource/package.nls.es.json +68 -57
- package/resource/package.nls.fr.json +68 -57
- package/resource/package.nls.it.json +68 -57
- package/resource/package.nls.ja.json +68 -57
- package/resource/package.nls.json +6 -10
- package/resource/package.nls.ko.json +68 -57
- package/resource/package.nls.pl.json +68 -57
- package/resource/package.nls.pt-BR.json +68 -57
- package/resource/package.nls.ru.json +68 -57
- package/resource/package.nls.tr.json +68 -57
- package/resource/package.nls.zh-Hans.json +68 -57
- package/resource/package.nls.zh-Hant.json +68 -57
- package/resource/yaml-schema/v1.9/yaml.schema.json +2107 -0
- package/resource/yaml-schema/yaml.schema.json +2 -2
- 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/plugins/resource/aad/auth/bot/js/public/auth-end.html +60 -49
- package/templates/plugins/resource/aad/auth/bot/ts/public/auth-end.html +60 -49
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"version": {
|
|
15
15
|
"type": "string",
|
|
16
16
|
"description": "The version of the yaml file schema",
|
|
17
|
-
"const": "v1.
|
|
17
|
+
"const": "v1.9"
|
|
18
18
|
},
|
|
19
19
|
"additionalMetadata": {
|
|
20
20
|
"type": "object",
|
|
@@ -1706,7 +1706,7 @@
|
|
|
1706
1706
|
"type": "object",
|
|
1707
1707
|
"additionalProperties": false,
|
|
1708
1708
|
"description": "Get deployment key from Azure Static Web App.",
|
|
1709
|
-
"required": ["uses", "with"
|
|
1709
|
+
"required": ["uses", "with"],
|
|
1710
1710
|
"properties": {
|
|
1711
1711
|
"uses": {
|
|
1712
1712
|
"type": "string",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,68 +2,79 @@
|
|
|
2
2
|
<!--This file is used during the Teams Bot authentication flow to assist with retrieval of the access token.-->
|
|
3
3
|
<!--If you're not familiar with this, do not alter or remove this file from your project.-->
|
|
4
4
|
<html>
|
|
5
|
-
<head>
|
|
6
|
-
<title>Login End Page</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
</head>
|
|
9
5
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
crossorigin="anonymous"
|
|
15
|
-
></script>
|
|
16
|
-
<div id="divError"></div>
|
|
17
|
-
<script type="text/javascript">
|
|
18
|
-
microsoftTeams.app.initialize().then(() => {
|
|
19
|
-
let hashParams = getHashParameters();
|
|
6
|
+
<head>
|
|
7
|
+
<title>Login End Page</title>
|
|
8
|
+
<meta charset="utf-8" />
|
|
9
|
+
</head>
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
<body>
|
|
12
|
+
<script src="https://res.cdn.office.net/teams-js/2.31.1/js/MicrosoftTeams.min.js"
|
|
13
|
+
integrity="sha384-ihAqYgEJz9hzEU+HaYodG1aTzjebC/wKXQi1nWKZG7OLAUyOL9ZrzD/SfZu79Jeu"
|
|
14
|
+
crossorigin="anonymous"></script>
|
|
15
|
+
<div id="divError"></div>
|
|
16
|
+
<script type="text/javascript">
|
|
17
|
+
microsoftTeams.app.initialize().then(() => {
|
|
18
|
+
let hashParams = getHashParameters();
|
|
19
|
+
|
|
20
|
+
if (hashParams.get("error")) {
|
|
21
|
+
// Authentication failed
|
|
22
|
+
handleAuthError(hashParams.get("error"), hashParams);
|
|
23
|
+
} else if (hashParams.get("code")) {
|
|
24
|
+
// Get the stored state parameter and compare with incoming state
|
|
25
|
+
let expectedState = localStorage.getItem("state");
|
|
26
|
+
if (expectedState !== hashParams.get("state")) {
|
|
27
|
+
// State does not match, report error
|
|
28
|
+
handleAuthError("StateDoesNotMatch", hashParams);
|
|
33
29
|
} else {
|
|
34
|
-
|
|
35
|
-
handleAuthError("UnexpectedFailure", hashParams);
|
|
30
|
+
microsoftTeams.authentication.notifySuccess();
|
|
36
31
|
}
|
|
37
|
-
}
|
|
32
|
+
} else {
|
|
33
|
+
// Unexpected condition: hash does not contain error or access_token parameter
|
|
34
|
+
handleAuthError("UnexpectedFailure", hashParams);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
// Parse hash parameters into key-value pairs
|
|
39
|
+
function getHashParameters() {
|
|
40
|
+
// Using ES6 Map instead of plain object to prevent prototype pollution
|
|
41
|
+
let hashParams = new Map();
|
|
42
|
+
|
|
43
|
+
if (location.hash && location.hash.length > 1) {
|
|
42
44
|
location.hash
|
|
43
45
|
.substr(1)
|
|
44
46
|
.split("&")
|
|
45
47
|
.forEach(function (item) {
|
|
48
|
+
if (!item) return;
|
|
46
49
|
let s = item.split("="),
|
|
47
50
|
k = s[0],
|
|
48
51
|
v = s[1] && decodeURIComponent(s[1]);
|
|
49
|
-
|
|
52
|
+
|
|
53
|
+
if (k) {
|
|
54
|
+
// Store parameters in the Map
|
|
55
|
+
hashParams.set(k, v);
|
|
56
|
+
}
|
|
50
57
|
});
|
|
51
|
-
return hashParams;
|
|
52
58
|
}
|
|
59
|
+
|
|
60
|
+
// Convert Map back to a plain object for compatibility with the rest of the code
|
|
61
|
+
return Object.fromEntries(hashParams);
|
|
62
|
+
}
|
|
53
63
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
// Show error information
|
|
65
|
+
function handleAuthError(errorType, errorMessage) {
|
|
66
|
+
const err = JSON.stringify({
|
|
67
|
+
error: encodeURIComponent(errorType),
|
|
68
|
+
message: encodeURIComponent(JSON.stringify(errorMessage)),
|
|
69
|
+
});
|
|
70
|
+
let para = document.createElement("p");
|
|
71
|
+
let node = document.createTextNode(err);
|
|
72
|
+
para.appendChild(node);
|
|
63
73
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
74
|
+
let element = document.getElementById("divError");
|
|
75
|
+
element.appendChild(para);
|
|
76
|
+
}
|
|
77
|
+
</script>
|
|
78
|
+
</body>
|
|
79
|
+
|
|
80
|
+
</html>
|
|
@@ -2,67 +2,78 @@
|
|
|
2
2
|
<!--This file is used during the Teams Bot authentication flow to assist with retrieval of the access token.-->
|
|
3
3
|
<!--If you're not familiar with this, do not alter or remove this file from your project.-->
|
|
4
4
|
<html>
|
|
5
|
-
<head>
|
|
6
|
-
<title>Login End Page</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
</head>
|
|
9
5
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
crossorigin="anonymous"
|
|
15
|
-
></script>
|
|
16
|
-
<div id="divError"></div>
|
|
17
|
-
<script type="text/javascript">
|
|
18
|
-
microsoftTeams.app.initialize().then(() => {
|
|
19
|
-
let hashParams = getHashParameters();
|
|
6
|
+
<head>
|
|
7
|
+
<title>Login End Page</title>
|
|
8
|
+
<meta charset="utf-8" />
|
|
9
|
+
</head>
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
<body>
|
|
12
|
+
<script src="https://res.cdn.office.net/teams-js/2.31.1/js/MicrosoftTeams.min.js"
|
|
13
|
+
integrity="sha384-ihAqYgEJz9hzEU+HaYodG1aTzjebC/wKXQi1nWKZG7OLAUyOL9ZrzD/SfZu79Jeu"
|
|
14
|
+
crossorigin="anonymous"></script>
|
|
15
|
+
<div id="divError"></div>
|
|
16
|
+
<script type="text/javascript">
|
|
17
|
+
microsoftTeams.app.initialize().then(() => {
|
|
18
|
+
let hashParams = getHashParameters();
|
|
19
|
+
|
|
20
|
+
if (hashParams.get("error")) {
|
|
21
|
+
// Authentication failed
|
|
22
|
+
handleAuthError(hashParams.get("error"), hashParams);
|
|
23
|
+
} else if (hashParams.get("code")) {
|
|
24
|
+
// Get the stored state parameter and compare with incoming state
|
|
25
|
+
let expectedState = localStorage.getItem("state");
|
|
26
|
+
if (expectedState !== hashParams.get("state")) {
|
|
27
|
+
// State does not match, report error
|
|
28
|
+
handleAuthError("StateDoesNotMatch", hashParams);
|
|
33
29
|
} else {
|
|
34
|
-
|
|
35
|
-
handleAuthError("UnexpectedFailure", hashParams);
|
|
30
|
+
microsoftTeams.authentication.notifySuccess();
|
|
36
31
|
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
} else {
|
|
33
|
+
// Unexpected condition: hash does not contain error or access_token parameter
|
|
34
|
+
handleAuthError("UnexpectedFailure", hashParams);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
// Parse hash parameters into key-value pairs
|
|
38
|
+
function getHashParameters() {
|
|
39
|
+
// Using ES6 Map instead of plain object to prevent prototype pollution
|
|
40
|
+
let hashParams = new Map();
|
|
41
|
+
|
|
42
|
+
if (location.hash && location.hash.length > 1) {
|
|
41
43
|
location.hash
|
|
42
44
|
.substr(1)
|
|
43
45
|
.split("&")
|
|
44
46
|
.forEach(function (item) {
|
|
47
|
+
if (!item) return;
|
|
45
48
|
let s = item.split("="),
|
|
46
49
|
k = s[0],
|
|
47
50
|
v = s[1] && decodeURIComponent(s[1]);
|
|
48
|
-
|
|
51
|
+
|
|
52
|
+
if (k) {
|
|
53
|
+
// Store parameters in the Map
|
|
54
|
+
hashParams.set(k, v);
|
|
55
|
+
}
|
|
49
56
|
});
|
|
50
|
-
return hashParams;
|
|
51
57
|
}
|
|
58
|
+
|
|
59
|
+
// Convert Map back to a plain object for compatibility with the rest of the code
|
|
60
|
+
return Object.fromEntries(hashParams);
|
|
61
|
+
}
|
|
52
62
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
// Show error information
|
|
64
|
+
function handleAuthError(errorType, errorMessage) {
|
|
65
|
+
const err = JSON.stringify({
|
|
66
|
+
error: encodeURIComponent(errorType),
|
|
67
|
+
message: encodeURIComponent(JSON.stringify(errorMessage)),
|
|
68
|
+
});
|
|
69
|
+
let para = document.createElement("p");
|
|
70
|
+
let node = document.createTextNode(err);
|
|
71
|
+
para.appendChild(node);
|
|
62
72
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
let element = document.getElementById("divError");
|
|
74
|
+
element.appendChild(para);
|
|
75
|
+
}
|
|
76
|
+
</script>
|
|
77
|
+
</body>
|
|
78
|
+
|
|
79
|
+
</html>
|