@microsoft/windows-admin-center-sdk 6.0.0 → 6.1.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/3rdPartyDisclosure.html +10 -13
- package/README.md +110 -33
- package/angular/fesm2022/msft-sme-angular.mjs +1235 -1213
- package/angular/fesm2022/msft-sme-angular.mjs.map +1 -1
- package/angular/index.d.ts +29 -14
- package/angular/package.json +1 -1
- package/core/azure/azure-manager.d.ts +15 -3
- package/core/azure/azure-manager.d.ts.map +1 -1
- package/core/azure/azure-manager.js +29 -10
- package/core/azure/azure-manager.js.map +1 -1
- package/core/azure/models/aadAppConfig-data.d.ts +16 -0
- package/core/azure/models/aadAppConfig-data.d.ts.map +1 -1
- package/core/azure/models/aadAppConfig-data.js.map +1 -1
- package/core/base/environment.d.ts +1 -1
- package/core/base/environment.d.ts.map +1 -1
- package/core/base/environment.js.map +1 -1
- package/core/base/utilities.d.ts +10 -2
- package/core/base/utilities.d.ts.map +1 -1
- package/core/base/utilities.js +45 -25
- package/core/base/utilities.js.map +1 -1
- package/core/data/gateway-connection.d.ts.map +1 -1
- package/core/data/gateway-connection.js +1 -0
- package/core/data/gateway-connection.js.map +1 -1
- package/core/diagnostics/sme-web-telemetry.d.ts +17 -1
- package/core/diagnostics/sme-web-telemetry.d.ts.map +1 -1
- package/core/diagnostics/sme-web-telemetry.js +16 -0
- package/core/diagnostics/sme-web-telemetry.js.map +1 -1
- package/core/enterprise/enterprise-models.d.ts +10 -4
- package/core/enterprise/enterprise-models.d.ts.map +1 -1
- package/core/enterprise/enterprise-models.js +9 -4
- package/core/enterprise/enterprise-models.js.map +1 -1
- package/core/index.d.ts +5 -3
- package/core/index.d.ts.map +1 -1
- package/core/index.js +2 -1
- package/core/index.js.map +1 -1
- package/core/manifest/environment-modules.d.ts +2 -2
- package/core/manifest/environment-modules.d.ts.map +1 -1
- package/core/manifest/environment-modules.js.map +1 -1
- package/core/manifest/gateway-url-validator.d.ts +17 -0
- package/core/manifest/gateway-url-validator.d.ts.map +1 -0
- package/core/manifest/gateway-url-validator.js +56 -0
- package/core/manifest/gateway-url-validator.js.map +1 -0
- package/core/manifest/manifest-loader.d.ts +47 -11
- package/core/manifest/manifest-loader.d.ts.map +1 -1
- package/core/manifest/manifest-loader.js +141 -72
- package/core/manifest/manifest-loader.js.map +1 -1
- package/core/manifest/module-schema.json +1 -1
- package/core/performance/performance-tracker.d.ts +2 -0
- package/core/performance/performance-tracker.d.ts.map +1 -1
- package/core/performance/performance-tracker.js +18 -0
- package/core/performance/performance-tracker.js.map +1 -1
- package/core/rpc/azure/rpc-azure-model.d.ts +19 -1
- package/core/rpc/azure/rpc-azure-model.d.ts.map +1 -1
- package/core/rpc/azure/rpc-azure-model.js.map +1 -1
- package/core/rpc/forward/rpc-forward-auto-client.d.ts +5 -0
- package/core/rpc/forward/rpc-forward-auto-client.d.ts.map +1 -1
- package/core/rpc/forward/rpc-forward-auto-client.js +13 -0
- package/core/rpc/forward/rpc-forward-auto-client.js.map +1 -1
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-client.d.ts +16 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-client.d.ts.map +1 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-client.js +18 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-client.js.map +1 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-handler.d.ts +8 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-handler.d.ts.map +1 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-handler.js +2 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-handler.js.map +1 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-model.d.ts +18 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-model.d.ts.map +1 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-model.js +8 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-model.js.map +1 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-subject-server.d.ts +27 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-subject-server.d.ts.map +1 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-subject-server.js +23 -0
- package/core/rpc/resource-data-changed/rpc-resource-data-changed-subject-server.js.map +1 -0
- package/core/rpc/rpc-forwarder.d.ts +16 -2
- package/core/rpc/rpc-forwarder.d.ts.map +1 -1
- package/core/rpc/rpc-forwarder.js +50 -6
- package/core/rpc/rpc-forwarder.js.map +1 -1
- package/core/security/authorization-manager.d.ts +126 -4
- package/core/security/authorization-manager.d.ts.map +1 -1
- package/core/security/authorization-manager.js +381 -49
- package/core/security/authorization-manager.js.map +1 -1
- package/core/security/connection-manager.d.ts +2 -1
- package/core/security/connection-manager.d.ts.map +1 -1
- package/core/security/connection-manager.js +10 -6
- package/core/security/connection-manager.js.map +1 -1
- package/core/security/tool-condition-validator.d.ts +8 -3
- package/core/security/tool-condition-validator.d.ts.map +1 -1
- package/core/security/tool-condition-validator.js +43 -28
- package/core/security/tool-condition-validator.js.map +1 -1
- package/core/version.js +1 -1
- package/core/version.js.map +1 -1
- package/core/virtualization/virtualization-client.d.ts +47 -78
- package/core/virtualization/virtualization-client.d.ts.map +1 -1
- package/core/virtualization/virtualization-client.js +57 -77
- package/core/virtualization/virtualization-client.js.map +1 -1
- package/core/virtualization/virtualization-models.d.ts +9 -8
- package/core/virtualization/virtualization-models.d.ts.map +1 -1
- package/core/virtualization/virtualization-models.js +7 -5
- package/core/virtualization/virtualization-models.js.map +1 -1
- package/core/virtualization/virtualization-unavailable-error.d.ts +1 -1
- package/core/virtualization/virtualization-unavailable-error.js +1 -1
- package/core/virtualization/virtualization-unavailable-error.js.map +1 -1
- package/package.json +12 -17
- package/{react-sdk-core → react}/hooks/useAppContextInit.d.ts +2 -0
- package/react/hooks/useAppContextInit.d.ts.map +1 -0
- package/{react-sdk-core → react}/hooks/useAppContextInit.js +18 -2
- package/{react-sdk-core → react}/index.js +1 -1
- package/react/services/BaseNavigationService.d.ts.map +1 -0
- package/{react-sdk-core → react}/services/BaseNavigationService.js +4 -0
- package/{react-sdk-core → react}/version.d.ts.map +1 -1
- package/react/version.js +3 -0
- package/{react-sdk-core → react}/vite/smeCoreStringsPlugin.d.ts +1 -1
- package/{react-sdk-core → react}/vite/smeCoreStringsPlugin.js +1 -1
- package/{react-sdk-core → react}/vite/smeManifestResourcesPlugin.d.ts +1 -1
- package/{react-sdk-core → react}/vite/smeManifestResourcesPlugin.js +1 -1
- package/{react-sdk-core → react}/vite/smePowerShellPlugin.d.ts +1 -1
- package/{react-sdk-core → react}/vite/smePowerShellPlugin.js +1 -1
- package/styles/css/main-v2.css +1 -1
- package/styles/package.json +1 -1
- package/wac-cli/dist/angular20/configs/ci-build-yml-config.js +3 -2
- package/wac-cli/dist/angular20/configs/ci-build-yml-config.js.map +1 -1
- package/wac-cli/dist/angular20/upgrader/nvmrc-engines-upgrader.js +2 -2
- package/wac-cli/dist/create-react/main.js +3 -2
- package/wac-cli/dist/create-react/main.js.map +1 -1
- package/wac-cli/module-template/build/pipelines/ci-build.yml +2 -2
- package/wac-cli/module-template/build/pipelines/pull-request.yml +2 -2
- package/wac-cli/templates/internal/main.ts +2 -2
- package/wac-cli/templates/internal/package.json +26 -14
- package/wac-cli/templates/react-template/package.json +3 -2
- package/wac-cli/templates/react-template/src/App.tsx +1 -1
- package/wac-cli/templates/react-template/src/hooks/useServicesData.ts +1 -1
- package/wac-cli/templates/react-template/vite.config.ts +1 -1
- package/wac-cli/templates/wac-template/angular.json +8 -13
- package/wac-cli/templates/wac-template/package.json +26 -14
- package/wac-cli/templates/wac-template/src/main.ts +2 -2
- package/react-sdk-core/hooks/useAppContextInit.d.ts.map +0 -1
- package/react-sdk-core/services/BaseNavigationService.d.ts.map +0 -1
- package/react-sdk-core/version.js +0 -3
- /package/{react-sdk-core → react}/components/SplashScreen.d.ts +0 -0
- /package/{react-sdk-core → react}/components/SplashScreen.d.ts.map +0 -0
- /package/{react-sdk-core → react}/components/SplashScreen.js +0 -0
- /package/{react-sdk-core → react}/context/AppContextProvider.d.ts +0 -0
- /package/{react-sdk-core → react}/context/AppContextProvider.d.ts.map +0 -0
- /package/{react-sdk-core → react}/context/AppContextProvider.js +0 -0
- /package/{react-sdk-core → react}/hooks/useAppContext.d.ts +0 -0
- /package/{react-sdk-core → react}/hooks/useAppContext.d.ts.map +0 -0
- /package/{react-sdk-core → react}/hooks/useAppContext.js +0 -0
- /package/{react-sdk-core → react}/hooks/useSkeletonStyles.d.ts +0 -0
- /package/{react-sdk-core → react}/hooks/useSkeletonStyles.d.ts.map +0 -0
- /package/{react-sdk-core → react}/hooks/useSkeletonStyles.js +0 -0
- /package/{react-sdk-core → react}/hooks/useWacTheme.d.ts +0 -0
- /package/{react-sdk-core → react}/hooks/useWacTheme.d.ts.map +0 -0
- /package/{react-sdk-core → react}/hooks/useWacTheme.js +0 -0
- /package/{react-sdk-core → react}/index.d.ts +0 -0
- /package/{react-sdk-core → react}/index.d.ts.map +0 -0
- /package/{react-sdk-core → react}/services/AppContextService.d.ts +0 -0
- /package/{react-sdk-core → react}/services/AppContextService.d.ts.map +0 -0
- /package/{react-sdk-core → react}/services/AppContextService.js +0 -0
- /package/{react-sdk-core → react}/services/BaseNavigationService.d.ts +0 -0
- /package/{react-sdk-core → react}/services/NavigationService.d.ts +0 -0
- /package/{react-sdk-core → react}/services/NavigationService.d.ts.map +0 -0
- /package/{react-sdk-core → react}/services/NavigationService.js +0 -0
- /package/{react-sdk-core → react}/services/Polyfills.d.ts +0 -0
- /package/{react-sdk-core → react}/services/Polyfills.d.ts.map +0 -0
- /package/{react-sdk-core → react}/services/Polyfills.js +0 -0
- /package/{react-sdk-core → react}/version.d.ts +0 -0
- /package/{react-sdk-core → react}/vite/index.d.ts +0 -0
- /package/{react-sdk-core → react}/vite/index.d.ts.map +0 -0
- /package/{react-sdk-core → react}/vite/index.js +0 -0
- /package/{react-sdk-core → react}/vite/log.d.ts +0 -0
- /package/{react-sdk-core → react}/vite/log.d.ts.map +0 -0
- /package/{react-sdk-core → react}/vite/log.js +0 -0
- /package/{react-sdk-core → react}/vite/smeCoreStringsPlugin.d.ts.map +0 -0
- /package/{react-sdk-core → react}/vite/smeManifestResourcesPlugin.d.ts.map +0 -0
- /package/{react-sdk-core → react}/vite/smePowerShellPlugin.d.ts.map +0 -0
package/3rdPartyDisclosure.html
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<body>
|
|
9
9
|
<h1>THIRD-PARTY SOFTWARE NOTICES AND INFORMATION</h1>
|
|
10
10
|
<p><strong>Do Not Translate or Localize</strong></p>
|
|
11
|
-
<p>Note: While Microsoft is not the author of the files below, Microsoft is offering you a license subject to the terms of the Microsoft Software License Terms for <strong>@microsoft/windows-admin-center-sdk</strong> (version 6.
|
|
12
|
-
<p class="meta">Generated automatically at build time · 2026-
|
|
11
|
+
<p>Note: While Microsoft is not the author of the files below, Microsoft is offering you a license subject to the terms of the Microsoft Software License Terms for <strong>@microsoft/windows-admin-center-sdk</strong> (version 6.1.0) (the “Microsoft Program”). Microsoft reserves all other rights. The notices below are provided for informational purposes only and are not the license terms under which Microsoft distributes these files.</p>
|
|
12
|
+
<p class="meta">Generated automatically at build time · 2026-11-04T04:15:11.412Z · Section 1: 26 distributed component(s) · Section 2: 11 peer.</p>
|
|
13
13
|
<h2 class="section">Section 1 — Distributed Components</h2>
|
|
14
14
|
<p>The third-party software listed here is <strong>distributed within</strong> the Microsoft Program — either compiled/inlined into its bundles (“bundled/inlined”) or installed as a runtime dependency (“runtime dependency”). This file is based on or incorporates material from the projects listed below (Third Party IP). The original copyright notice and the license under which Microsoft received such Third Party IP are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft licenses the Third Party IP to you under the licensing terms for the Microsoft Program. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise.</p>
|
|
15
15
|
<ol>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<li>@microsoft/signalr 8.0.7 (MIT)</li>
|
|
22
22
|
<li>@typescript-eslint/eslint-plugin 8.62.0 (MIT)</li>
|
|
23
23
|
<li>@typescript-eslint/parser 8.62.0 (MIT)</li>
|
|
24
|
-
<li>ajv 6.
|
|
24
|
+
<li>ajv 6.15.0 (MIT)</li>
|
|
25
25
|
<li>del 8.0.1 (MIT)</li>
|
|
26
26
|
<li>eslint 9.39.4 (MIT)</li>
|
|
27
27
|
<li>eslint-plugin-import 2.32.0 (MIT)</li>
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<li><a href="https://github.com/dotnet/aspnetcore/tree/main/src/SignalR#readme">@microsoft/signalr</a> 8.0.7 <span class="meta">— included as runtime dependency · author: Microsoft · no bundled license text file</span></li>
|
|
53
53
|
<li><a href="https://typescript-eslint.io/packages/eslint-plugin">@typescript-eslint/eslint-plugin</a> 8.62.0 <span class="meta">— included as runtime dependency · Copyright (c) 2019 typescript-eslint and other contributors</span></li>
|
|
54
54
|
<li><a href="https://typescript-eslint.io/packages/parser">@typescript-eslint/parser</a> 8.62.0 <span class="meta">— included as runtime dependency · Copyright (c) 2019 typescript-eslint and other contributors</span></li>
|
|
55
|
-
<li><a href="https://github.com/ajv-validator/ajv">ajv</a> 6.
|
|
55
|
+
<li><a href="https://github.com/ajv-validator/ajv">ajv</a> 6.15.0 <span class="meta">— included as runtime dependency · author: Evgeny Poberezkin · Copyright (c) 2015-2017 Evgeny Poberezkin</span></li>
|
|
56
56
|
<li>del 8.0.1 <span class="meta">— included as runtime dependency · author: Sindre Sorhus <sindresorhus@gmail.com></span></li>
|
|
57
57
|
<li><a href="https://eslint.org">eslint</a> 9.39.4 <span class="meta">— included as runtime dependency · author: Nicholas C. Zakas <nicholas+npm@nczconsulting.com> · Copyright OpenJS Foundation and other contributors, <www.openjsf.org></span></li>
|
|
58
58
|
<li><a href="https://github.com/import-js/eslint-plugin-import">eslint-plugin-import</a> 2.32.0 <span class="meta">— included as runtime dependency · author: Ben Mosher <me@benmosher.com> · Copyright (c) 2015 Ben Mosher</span></li>
|
|
@@ -408,19 +408,16 @@ software or this license, under any kind of legal claim.***</pre>
|
|
|
408
408
|
<table>
|
|
409
409
|
<thead><tr><th>Component</th><th>Version</th><th>License</th></tr></thead>
|
|
410
410
|
<tbody>
|
|
411
|
-
<tr><td>@angular/
|
|
412
|
-
<tr><td>@angular/
|
|
413
|
-
<tr><td>@angular/
|
|
414
|
-
<tr><td>@angular/
|
|
415
|
-
<tr><td>@angular/
|
|
416
|
-
<tr><td>@angular/
|
|
417
|
-
<tr><td>@angular/platform-browser-dynamic</td><td>20.3.25</td><td>MIT</td></tr>
|
|
418
|
-
<tr><td><a href="https://github.com/angular/angular/tree/main/packages/router">@angular/router</a></td><td>20.3.25</td><td>MIT</td></tr>
|
|
411
|
+
<tr><td>@angular/common</td><td>20.3.34</td><td>MIT</td></tr>
|
|
412
|
+
<tr><td>@angular/compiler</td><td>20.3.34</td><td>MIT</td></tr>
|
|
413
|
+
<tr><td>@angular/core</td><td>20.3.34</td><td>MIT</td></tr>
|
|
414
|
+
<tr><td>@angular/forms</td><td>20.3.34</td><td>MIT</td></tr>
|
|
415
|
+
<tr><td>@angular/platform-browser</td><td>20.3.34</td><td>MIT</td></tr>
|
|
416
|
+
<tr><td><a href="https://github.com/angular/angular/tree/main/packages/router">@angular/router</a></td><td>20.3.34</td><td>MIT</td></tr>
|
|
419
417
|
<tr><td><a href="https://www.chartjs.org">chart.js</a></td><td>2.9.4</td><td>MIT</td></tr>
|
|
420
418
|
<tr><td><a href="https://reactjs.org/">react</a></td><td>^18</td><td>MIT</td></tr>
|
|
421
419
|
<tr><td><a href="https://reactjs.org/">react-dom</a></td><td>^18</td><td>MIT</td></tr>
|
|
422
420
|
<tr><td><a href="https://rxjs.dev">rxjs</a></td><td>~7.8.1</td><td>Apache-2.0</td></tr>
|
|
423
|
-
<tr><td><a href="https://vite.dev">vite</a></td><td>^8.0.16</td><td>MIT</td></tr>
|
|
424
421
|
<tr><td>zone.js</td><td>~0.15.1</td><td>MIT</td></tr>
|
|
425
422
|
</tbody></table>
|
|
426
423
|
</body>
|
package/README.md
CHANGED
|
@@ -7,82 +7,159 @@ scaffold and upgrade extensions.
|
|
|
7
7
|
|
|
8
8
|
## Requirements
|
|
9
9
|
|
|
10
|
-
- **Node.js 24 or later** (the `wac` CLI
|
|
10
|
+
- **Node.js 24 or later** (the SDK and bundled `wac` CLI declare this minimum).
|
|
11
11
|
- A package manager (`npm`, `pnpm`, or `yarn`).
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
|
|
16
|
+
pnpm add @microsoft/windows-admin-center-sdk
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
This makes the `wac` command available (via `
|
|
19
|
+
This makes the `wac` command available (via `pnpm exec wac …`, or on your `PATH` when installed
|
|
20
20
|
globally).
|
|
21
21
|
|
|
22
|
-
## Create an extension
|
|
22
|
+
## Create an Angular extension
|
|
23
23
|
|
|
24
24
|
Scaffold a new extension project (Angular 20) in the current directory:
|
|
25
25
|
|
|
26
26
|
```sh
|
|
27
27
|
# A single tool extension
|
|
28
|
-
|
|
28
|
+
pnpm exec wac create --company <company-name> --name <tool-name>
|
|
29
29
|
|
|
30
30
|
# A solution containing one or more tools
|
|
31
|
-
|
|
31
|
+
pnpm exec wac create --company <company-name> --solution <solution-name> --tool <tool-name> --type <tool-type>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
| Flag
|
|
35
|
-
|
|
|
36
|
-
| `--company`
|
|
37
|
-
| `--name`
|
|
38
|
-
| `--solution` | Solution name (enables solution mode).
|
|
39
|
-
| `--tool`
|
|
40
|
-
| `--type`
|
|
41
|
-
| `--version`
|
|
42
|
-
| `--verbose`
|
|
34
|
+
| Flag | Description |
|
|
35
|
+
| ------------ | --------------------------------------------------------------------------------------------- |
|
|
36
|
+
| `--company` | Your company or author name (required). |
|
|
37
|
+
| `--name` | Tool name for a single-tool extension. |
|
|
38
|
+
| `--solution` | Solution name (enables solution mode). |
|
|
39
|
+
| `--tool` | Tool name within a solution. |
|
|
40
|
+
| `--type` | Tool type within a solution. |
|
|
41
|
+
| `--version` | SDK release ring to target: `latest` (default), `insider`, `next`, `experimental`, `release`. |
|
|
42
|
+
| `--verbose` | Verbose logging. |
|
|
43
43
|
|
|
44
|
-
Then build and
|
|
44
|
+
Then install, build, and lint:
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
47
|
cd <tool-name>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
pnpm install
|
|
49
|
+
pnpm run build
|
|
50
|
+
pnpm run lint
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
For unit tests, run `pnpm run test -- --watch=false`. The starter uses Puppeteer's
|
|
54
|
+
Chrome browser. If dependency install scripts were skipped, install the test browser
|
|
55
|
+
explicitly with `pnpm exec puppeteer browsers install chrome`.
|
|
56
|
+
|
|
57
|
+
## Create a React extension
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
pnpm exec wac create-react --company <company-name> --name <tool-name>
|
|
61
|
+
cd <tool-name>
|
|
62
|
+
pnpm install
|
|
63
|
+
pnpm run build
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The React starter uses React 18 and Vite 8. The production build generates the
|
|
67
|
+
PowerShell bindings and then runs TypeScript checking; either failure makes the
|
|
68
|
+
build fail. After the first build, `pnpm run typecheck` checks the application
|
|
69
|
+
without rebuilding its bundle. The starter does not include a React unit-test
|
|
70
|
+
runner or lint configuration; add those to your extension's CI as needed.
|
|
71
|
+
|
|
72
|
+
Import React runtime APIs from `@microsoft/windows-admin-center-sdk/react` and
|
|
73
|
+
the Vite plugins from `@microsoft/windows-admin-center-sdk/react/vite`.
|
|
74
|
+
|
|
75
|
+
## Serve and sideload locally
|
|
76
|
+
|
|
77
|
+
Both starters use the following certificate layout, relative to the generated
|
|
78
|
+
extension directory:
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
certificate/
|
|
82
|
+
localhost.cert
|
|
83
|
+
localhost.key
|
|
84
|
+
<tool-name>/
|
|
85
|
+
package.json
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Create a development certificate valid for `localhost` with your organization's
|
|
89
|
+
approved certificate tooling. Save its PEM certificate and PEM private key at the
|
|
90
|
+
paths above and trust the certificate on the machine running the browser. Do not
|
|
91
|
+
commit the private key.
|
|
92
|
+
|
|
93
|
+
From the extension directory:
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
pnpm start
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Open `https://localhost:4200/manifest.json` to confirm that the certificate is trusted
|
|
100
|
+
and the extension is reachable. Angular requires the certificate files; React falls
|
|
101
|
+
back to HTTP when they are absent, which is not suitable for sideloading into an
|
|
102
|
+
HTTPS WAC page.
|
|
103
|
+
|
|
104
|
+
Enable the developer experience on your local WAC installation. Allow the extension's
|
|
105
|
+
exact HTTPS origin (including its port) in the gateway's developer CORS and frame
|
|
106
|
+
settings. In the WAC browser page's developer console, register the extension:
|
|
107
|
+
|
|
108
|
+
```js
|
|
109
|
+
MsftSme.sideLoad('https://localhost:4200');
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Open the extension from a supported server connection. For React, the sample Services
|
|
113
|
+
page should load its service list through WAC. Use separate ports when testing both
|
|
114
|
+
starters and allow each origin in the gateway settings.
|
|
115
|
+
|
|
53
116
|
## Upgrade an extension
|
|
54
117
|
|
|
55
118
|
Upgrade an existing extension to the current Angular/toolchain baseline (Angular 15 → 20,
|
|
56
119
|
Node 24), run from the extension's root:
|
|
57
120
|
|
|
58
121
|
```sh
|
|
59
|
-
|
|
122
|
+
pnpm exec wac upgrade
|
|
60
123
|
```
|
|
61
124
|
|
|
62
|
-
| Flag
|
|
63
|
-
|
|
|
125
|
+
| Flag | Description |
|
|
126
|
+
| ------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
64
127
|
| `--stage <n>` | Run a single stage (`1`=configs, `2`=`ng update`, `3`=standalone, `4`=code fixups, `5`=eslint). Default `0` runs all stages. |
|
|
65
|
-
| `--pipeline`
|
|
66
|
-
| `--debug`
|
|
128
|
+
| `--pipeline` | CI mode — skip interactive prompts. |
|
|
129
|
+
| `--debug` | Verbose logging. |
|
|
67
130
|
|
|
68
131
|
## What's in the SDK
|
|
69
132
|
|
|
70
133
|
Import the runtime libraries by subpath:
|
|
71
134
|
|
|
72
|
-
| Import
|
|
73
|
-
|
|
|
74
|
-
| `@microsoft/windows-admin-center-sdk/core`
|
|
75
|
-
| `@microsoft/windows-admin-center-sdk/angular`
|
|
76
|
-
| `@microsoft/windows-admin-center-sdk/
|
|
77
|
-
| `@microsoft/windows-admin-center-sdk/
|
|
78
|
-
|
|
79
|
-
|
|
135
|
+
| Import | Contents |
|
|
136
|
+
| ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
|
|
137
|
+
| `@microsoft/windows-admin-center-sdk/core` | Core runtime (RPC, host, notifications, data, manifest, …). |
|
|
138
|
+
| `@microsoft/windows-admin-center-sdk/angular` | Angular components, directives, and services. |
|
|
139
|
+
| `@microsoft/windows-admin-center-sdk/react` | React SDK — `AppContextProvider`, `useAppContext` hook, and navigation services for React tool extensions. |
|
|
140
|
+
| `@microsoft/windows-admin-center-sdk/styles` | Shared CSS and fonts. |
|
|
141
|
+
| `@microsoft/windows-admin-center-sdk/angular-devtools` | Build/lint/test tooling (gulp plugins, ESLint base, Prettier, webpack). |
|
|
142
|
+
|
|
143
|
+
## What's new in 6.1.0
|
|
144
|
+
|
|
145
|
+
- **React scaffolding:** `wac create-react` creates a React 18/Vite 8 tool extension
|
|
146
|
+
with public SDK imports and a sample Services page.
|
|
147
|
+
- **React build plugins:** the `react/vite` subpath provides PowerShell bindings,
|
|
148
|
+
localized manifest resources, and shared core strings.
|
|
149
|
+
- **Scaffold validation:** Angular uses supported Zone.js test entry points and
|
|
150
|
+
declares its build dependencies; React production builds include TypeScript checks.
|
|
151
|
+
- **Toolchain compatibility:** Angular starters keep `schema-utils` 4 at 4.7.0 via
|
|
152
|
+
pnpm/npm overrides to match Angular 20's Webpack version. React declares its own
|
|
153
|
+
Vite dependency rather than constraining the Angular dev server through an SDK peer.
|
|
154
|
+
- **Node.js metadata:** the published SDK declares the same Node 24+ minimum as its CLI.
|
|
155
|
+
|
|
156
|
+
## Upgrading from 5.x: changes introduced in 6.0.0
|
|
80
157
|
|
|
81
158
|
6.0.0 modernizes the SDK toolchain. It contains **breaking changes** — review before upgrading.
|
|
82
159
|
|
|
83
160
|
**Breaking changes**
|
|
84
161
|
|
|
85
|
-
- **`wac`
|
|
162
|
+
- **`wac create` and `wac upgrade` replace the legacy CLI commands.** The 5.x commands `eslint`
|
|
86
163
|
(tslint→eslint migration) and `angular15Upgrade` were removed. The Angular migration now
|
|
87
164
|
lives under `wac upgrade` (Angular 15 → 20), and lint fixes run as a stage of `wac upgrade`.
|
|
88
165
|
- **`wac upgrade` changed meaning.** In 5.x it audited/updated dependencies (`--audit`,
|