Skip to content

Commit d51d9fa

Browse files
committed
create adaptive card poc for js
integrate into workspace add adaptive card add apache license remove unused stylesheet address pr comments chore(deps): bump the rollup group with 4 updates (morganstanley#818) Bumps the rollup group with 4 updates: [rollup](https://github.com/rollup/rollup), [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs), [rollup-plugin-import-css](https://github.com/jleeson/rollup-plugin-import-css) and [@rollup/plugin-typescript](https://github.com/rollup/plugins/tree/HEAD/packages/typescript). Updates `rollup` from 4.24.0 to 4.24.3 - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v4.24.0...v4.24.3) Updates `@rollup/plugin-commonjs` from 28.0.0 to 28.0.1 - [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md) - [Commits](https://github.com/rollup/plugins/commits/commonjs-v28.0.1/packages/commonjs) Updates `rollup-plugin-import-css` from 3.5.4 to 3.5.6 - [Commits](https://github.com/jleeson/rollup-plugin-import-css/commits) Updates `@rollup/plugin-typescript` from 12.1.0 to 12.1.1 - [Changelog](https://github.com/rollup/plugins/blob/master/packages/typescript/CHANGELOG.md) - [Commits](https://github.com/rollup/plugins/commits/typescript-v12.1.1/packages/typescript) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch dependency-group: rollup - dependency-name: "@rollup/plugin-commonjs" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: rollup - dependency-name: rollup-plugin-import-css dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rollup - dependency-name: "@rollup/plugin-typescript" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: rollup ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump Microsoft.Extensions.DependencyInjection and Microsoft.Extensions.DependencyInjection.Abstractions (morganstanley#815) Bumps [Microsoft.Extensions.DependencyInjection](https://github.com/dotnet/runtime) and [Microsoft.Extensions.DependencyInjection.Abstractions](https://github.com/dotnet/runtime). These dependencies needed to be updated together. Updates `Microsoft.Extensions.DependencyInjection` from 8.0.0 to 8.0.1 - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](dotnet/runtime@v8.0.0...v8.0.1) Updates `Microsoft.Extensions.DependencyInjection.Abstractions` from 8.0.1 to 8.0.2 - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](dotnet/runtime@v8.0.1...v8.0.2) --- updated-dependencies: - dependency-name: Microsoft.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Extensions.DependencyInjection.Abstractions dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump System.Drawing.Common in /src/shell/dotnet/Shell (morganstanley#829) Bumps [System.Drawing.Common](https://github.com/dotnet/winforms) from 8.0.8 to 8.0.10. - [Release notes](https://github.com/dotnet/winforms/releases) - [Changelog](https://github.com/dotnet/winforms/blob/main/docs/release-activity.md) - [Commits](dotnet/winforms@v8.0.8...v8.0.10) --- updated-dependencies: - dependency-name: System.Drawing.Common dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump crazy-max/ghaction-github-pages from 4.0.0 to 4.1.0 (morganstanley#822) Bumps [crazy-max/ghaction-github-pages](https://github.com/crazy-max/ghaction-github-pages) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/crazy-max/ghaction-github-pages/releases) - [Commits](crazy-max/ghaction-github-pages@c05ee63...fbf0a4f) --- updated-dependencies: - dependency-name: crazy-max/ghaction-github-pages dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump github/codeql-action from 3.26.10 to 3.27.0 (morganstanley#821) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.10 to 3.27.0. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@e2b3eaf...6624720) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0 (morganstanley#820) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.5.0 to 4.6.0. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@e28ff12...b9fd7d1) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps-dev): bump the angular group with 2 updates (morganstanley#817) Bumps the angular group with 2 updates: [@angular-devkit/build-angular](https://github.com/angular/angular-cli) and [@angular/cli](https://github.com/angular/angular-cli). Updates `@angular-devkit/build-angular` from 17.3.10 to 17.3.11 - [Release notes](https://github.com/angular/angular-cli/releases) - [Changelog](https://github.com/angular/angular-cli/blob/main/CHANGELOG.md) - [Commits](angular/angular-cli@17.3.10...17.3.11) Updates `@angular/cli` from 17.3.10 to 17.3.11 - [Release notes](https://github.com/angular/angular-cli/releases) - [Changelog](https://github.com/angular/angular-cli/blob/main/CHANGELOG.md) - [Commits](angular/angular-cli@17.3.10...17.3.11) --- updated-dependencies: - dependency-name: "@angular-devkit/build-angular" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: angular - dependency-name: "@angular/cli" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: angular ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps-dev): bump jasmine-core in the testing group (morganstanley#823) Bumps the testing group with 1 update: [jasmine-core](https://github.com/jasmine/jasmine). Updates `jasmine-core` from 5.3.0 to 5.4.0 - [Release notes](https://github.com/jasmine/jasmine/releases) - [Changelog](https://github.com/jasmine/jasmine/blob/main/RELEASE.md) - [Commits](jasmine/jasmine@v5.3.0...v5.4.0) --- updated-dependencies: - dependency-name: jasmine-core dependency-type: direct:development update-type: version-update:semver-minor dependency-group: testing ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump Microsoft.Extensions.Hosting.Abstractions and Microsoft.Extensions.Logging.Abstractions (morganstanley#830) Bumps [Microsoft.Extensions.Hosting.Abstractions](https://github.com/dotnet/runtime) and [Microsoft.Extensions.Logging.Abstractions](https://github.com/dotnet/runtime). These dependencies needed to be updated together. Updates `Microsoft.Extensions.Hosting.Abstractions` from 8.0.0 to 8.0.1 - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](dotnet/runtime@v8.0.0...v8.0.1) Updates `Microsoft.Extensions.Logging.Abstractions` from 8.0.1 to 8.0.2 - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](dotnet/runtime@v8.0.1...v8.0.2) --- updated-dependencies: - dependency-name: Microsoft.Extensions.Hosting.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Extensions.Logging.Abstractions dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump Microsoft.Extensions.Hosting.Abstractions and Microsoft.Extensions.Logging.Abstractions (morganstanley#832) Bumps [Microsoft.Extensions.Hosting.Abstractions](https://github.com/dotnet/runtime) and [Microsoft.Extensions.Logging.Abstractions](https://github.com/dotnet/runtime). These dependencies needed to be updated together. Updates `Microsoft.Extensions.Hosting.Abstractions` from 8.0.0 to 8.0.1 - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](dotnet/runtime@v8.0.0...v8.0.1) Updates `Microsoft.Extensions.Logging.Abstractions` from 8.0.1 to 8.0.2 - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](dotnet/runtime@v8.0.1...v8.0.2) --- updated-dependencies: - dependency-name: Microsoft.Extensions.Hosting.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Extensions.Logging.Abstractions dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps-dev): bump jsdom from 25.0.0 to 25.0.1 (morganstanley#825) Bumps [jsdom](https://github.com/jsdom/jsdom) from 25.0.0 to 25.0.1. - [Release notes](https://github.com/jsdom/jsdom/releases) - [Changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md) - [Commits](jsdom/jsdom@25.0.0...25.0.1) --- updated-dependencies: - dependency-name: jsdom dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps-dev): bump @types/jest from 29.5.13 to 29.5.14 (morganstanley#824) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.5.13 to 29.5.14. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump the artifact-actions group with 4 updates (morganstanley#819) Bumps the artifact-actions group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [actions/setup-node](https://github.com/actions/setup-node), [actions/setup-dotnet](https://github.com/actions/setup-dotnet) and [actions/upload-artifact](https://github.com/actions/upload-artifact). Updates `actions/checkout` from 4.2.0 to 4.2.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@d632683...11bd719) Updates `actions/setup-node` from 4.0.4 to 4.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@0a44ba7...39370e3) Updates `actions/setup-dotnet` from 4.0.1 to 4.1.0 - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](actions/setup-dotnet@6bd8b7f...3e891b0) Updates `actions/upload-artifact` from 4.4.0 to 4.4.3 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@5076954...b4b15b8) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: artifact-actions - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor dependency-group: artifact-actions - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-minor dependency-group: artifact-actions - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: artifact-actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(examples/js-chart-and-grid-messagerouter): Change bundler to webpack fix(examples/js-chart-and-grid-messagerouter): fix runtime errors Added layout saving and loading feature to the Shell. (morganstanley#805) * Added layout saving and loading feature to the Shell
1 parent 502fb1d commit d51d9fa

File tree

42 files changed

+5144
-589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+5144
-589
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
node-version: [ '20.x' ]
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131

3232
- name: Setup Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
33+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
3434
with:
3535
node-version: ${{ matrix.node-version }}
3636
COMPOSEUI_SKIP_DOWNLOAD: ${{env.COMPOSEUI_SKIP_DOWNLOAD}}
@@ -45,7 +45,7 @@ jobs:
4545
run: npx lerna run test
4646

4747
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
48-
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
48+
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0
4949
with:
5050
dotnet-version: ${{ matrix.dotnet-version }}
5151

@@ -65,7 +65,7 @@ jobs:
6565
6666
6767
- name: Codecov
68-
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
68+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
6969
with:
7070
token: ${{ secrets.CODECOV_TOKEN }}
7171

@@ -74,13 +74,13 @@ jobs:
7474
powershell ./build/dotnet-pack.ps1
7575
7676
- name: Upload Nuget Packages
77-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
77+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
7878
with:
7979
name: packages
8080
path: ${{ github.workspace }}/packages
8181

8282
- name: Upload Shell Binaries
83-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
83+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
8484
with:
8585
name: shell-binaries
8686
path: ${{ github.workspace }}/src/shell/dotnet/Shell/bin/Release/net6.0-windows/

.github/workflows/deploy-site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
contents: write
2121

2222
steps:
23-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
25+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2626
with:
2727
node-version: 20
2828
cache: 'npm'
2929
cache-dependency-path: './site/package-lock.json'
3030
- run: npm ci
3131
- run: npm run build
3232
- name: Deploy
33-
uses: crazy-max/ghaction-github-pages@c05ee637ec73429400a359430db8e5629f3f2564 # v4.0.0
33+
uses: crazy-max/ghaction-github-pages@fbf0a4fa4e00f45accd6cf3232368436ec06ed59 # v4.1.0
3434
with:
3535
target_branch: gh-pages
3636
build_dir: docs

.github/workflows/pr-build-site.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
22+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
cache: 'npm'

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
permissions:
5555
id-token: write
5656
steps:
57-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
58-
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
57+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
5959
with:
6060
node-version: 20.x
6161
registry-url: https://registry.npmjs.org/
@@ -76,7 +76,7 @@ jobs:
7676
with:
7777
name: packages
7878
path: ./packages
79-
- uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
79+
- uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0
8080
with:
8181
dotnet-version: 6.0.x
8282
- name: Publish Messaging packages

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: "Checkout code"
35-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
35+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3636
with:
3737
persist-credentials: false
3838

@@ -59,14 +59,14 @@ jobs:
5959
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6060
# format to the repository Actions tab.
6161
- name: "Upload artifact"
62-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
62+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
6363
with:
6464
name: SARIF file
6565
path: results.sarif
6666
retention-days: 5
6767

6868
# Upload the results to GitHub's code scanning dashboard.
6969
- name: "Upload to code-scanning"
70-
uses: github/codeql-action/upload-sarif@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
70+
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
7171
with:
7272
sarif_file: results.sarif

Directory.Packages.props

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.11.0" />
2424
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
2525
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="6.0.1" />
26-
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
27-
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
28-
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
26+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
27+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
28+
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
2929
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
3030
<PackageVersion Include="Microsoft.Extensions.Http" Version="7.0.0" />
31-
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
31+
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
3232
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
3333
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
3434
<PackageVersion Include="Microsoft.Extensions.Logging" Version="8.0.0" />
@@ -46,7 +46,7 @@
4646
<PackageVersion Include="Serilog" Version="2.11.0" />
4747
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
4848
<PackageVersion Include="System.Diagnostics.PerformanceCounter" Version="8.0.0" />
49-
<PackageVersion Include="System.Drawing.Common" Version="8.0.8" />
49+
<PackageVersion Include="System.Drawing.Common" Version="8.0.10" />
5050
<PackageVersion Include="System.IO.Pipelines" Version="8.0.0" />
5151
<PackageVersion Include="System.Management" Version="8.0.0" />
5252
<PackageVersion Include="System.Net.Http" Version="4.3.4" />

examples/adaptive-cards/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

examples/adaptive-cards/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!--- Morgan Stanley makes this available to you under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
2+
--->
3+
4+
# ComposeUI Default App
5+
6+
This is a simple webpage that loads adaptive-cards and showcases a button which launches an alert when clicked.
7+
8+
## During Development
9+
10+
```npm i
11+
12+
npx lerna run start --stream --scope=@morgan-stanley/composeui-example-adaptive-cards
13+
```

examples/adaptive-cards/app.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Morgan Stanley makes this available to you under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
2+
3+
import * as AdaptiveCards from "adaptivecards";
4+
5+
// Author a card
6+
var card = {
7+
"type": "AdaptiveCard",
8+
"version": "1.6",
9+
"body": [
10+
{
11+
"type": "TextBlock",
12+
"text": "Clicking on the button below will cause an alert"
13+
}
14+
],
15+
"actions": [
16+
{
17+
"type": "Action.OpenUrl",
18+
"title": "Click me"
19+
}
20+
]
21+
};
22+
23+
// Create an AdaptiveCard instance
24+
var adaptiveCard = new AdaptiveCards.AdaptiveCard();
25+
26+
// Set its hostConfig property unless you want to use the default Host Config
27+
// Host Config defines the style and behavior of a card
28+
adaptiveCard.hostConfig = new AdaptiveCards.HostConfig({
29+
fontFamily: "Segoe UI, Helvetica Neue, sans-serif"
30+
});
31+
32+
// Set the adaptive card's event handlers. onExecuteAction is invoked
33+
// whenever an action is clicked in the card
34+
adaptiveCard.onExecuteAction = function(action) { alert("Ow! "); }
35+
36+
// Parse the card payload
37+
adaptiveCard.parse(card);
38+
39+
// Render the card to an HTML element:
40+
var renderedCard = adaptiveCard.render();
41+
42+
// And finally insert it somewhere in your page:
43+
document.body.appendChild(renderedCard);

examples/adaptive-cards/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!-- Morgan Stanley makes this available to you under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
2+
3+
<html lang="en">
4+
<title>ComposeUI Adapative cards POC App</title>
5+
</head>
6+
7+
<body>
8+
<div id="container"></div>
9+
<script type="text/javascript" src="dist/bundle.js"></script>
10+
</body>
11+
12+
</html>

0 commit comments

Comments
 (0)