Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V 3.8.0 #1205

Merged
merged 108 commits into from
May 3, 2022
Merged

V 3.8.0 #1205

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
cbd7366
AdaptiveCardHost - Added "context" property
fabiofranzini Mar 11, 2022
4fb32e1
Fix for the request change
fabiofranzini Mar 21, 2022
507f23a
Fix: sorting the terms in locale language
gautamdsheth Mar 21, 2022
81a4f6a
Enable multiple groupId's
Mar 22, 2022
2b010d2
Trigger onChange on picker clear action
PathToSharePoint Mar 22, 2022
0b5840b
Updated if-statement to better check for arrays
Mar 22, 2022
a238b44
Removed the "spPartialLegacyContext" from data obj
fabiofranzini Mar 23, 2022
ce75762
Added the telemetry code
fabiofranzini Mar 23, 2022
297459a
changelog
Mar 24, 2022
ed7f7e0
3.8.0
Mar 24, 2022
0c4313c
changelog
Mar 24, 2022
d1213c8
fix of #1170
Mar 25, 2022
d35f059
changelog
Mar 25, 2022
1c940e7
pre-commit
Mar 25, 2022
b8f090b
people picker transitive members
RicoNL Mar 31, 2022
e023057
russgove Apr 5, 2022
0218cfb
Fixing TreeView nodes to expand and selection issues
JoelM365 Apr 7, 2022
0b56255
Bump moment from 2.29.1 to 2.29.2
dependabot[bot] Apr 9, 2022
d860eee
"spfx-uifabric-themes" to "^0.9.0" to fix #1187
brianpmccullough Apr 15, 2022
0c9e7b0
Merge pull request #1188 from brianpmccullough/dev
AJIXuMuK Apr 19, 2022
0894fc9
changelog
Apr 19, 2022
c28e513
pre-commit
Apr 19, 2022
1e96f21
Merge branch 'dev' of https://github.com/pnp/sp-dev-fx-controls-react…
Apr 19, 2022
3513920
Merge pull request #1185 from pnp/dependabot/npm_and_yarn/moment-2.29.2
AJIXuMuK Apr 19, 2022
1f362f2
changelog
Apr 19, 2022
ae46ba0
pre-commit
Apr 19, 2022
37bc0eb
Merge pull request #1184 from mozzaik365/fix/treeViewNodesToExpand
AJIXuMuK Apr 19, 2022
90a845b
changelog
Apr 19, 2022
6f3b41a
pre-commit
Apr 19, 2022
9667638
Merge pull request #1160 from gautamdsheth/bugfix/language-sort-issue
AJIXuMuK Apr 19, 2022
904d069
changelog
Apr 19, 2022
be6e1c0
changelog
Apr 19, 2022
020d17d
Merge pull request #1164 from SherpasGroup/people-picker-multiple-gro…
AJIXuMuK Apr 19, 2022
49ac386
changelog
Apr 19, 2022
965df6d
pre-commit
Apr 19, 2022
e2ee6ad
Merge pull request #1165 from PathToSharePoint/patch-1
AJIXuMuK Apr 19, 2022
9c787f9
changelog
Apr 19, 2022
095285f
pre-commit
Apr 19, 2022
7a3e66f
Merge pull request #1175 from RicoNL/peoplepicker-transitivemembers
AJIXuMuK Apr 19, 2022
5479c78
changelog
Apr 19, 2022
92f9791
pre-commit
Apr 19, 2022
5ea5217
changelog
Mar 24, 2022
8a7ebde
3.8.0
Mar 24, 2022
82b1694
changelog
Mar 24, 2022
7bcc3b1
fix of #1170
Mar 25, 2022
e49a31c
changelog
Mar 25, 2022
3aed079
pre-commit
Mar 25, 2022
3b47565
changelog
Apr 19, 2022
d57997a
pre-commit
Apr 19, 2022
836d46a
"spfx-uifabric-themes" to "^0.9.0" to fix #1187
brianpmccullough Apr 15, 2022
69f5f9e
Bump moment from 2.29.1 to 2.29.2
dependabot[bot] Apr 9, 2022
7970aa5
changelog
Apr 19, 2022
0705b37
pre-commit
Apr 19, 2022
b859e15
Fixing TreeView nodes to expand and selection issues
JoelM365 Apr 7, 2022
110ae43
changelog
Apr 19, 2022
3deb93d
pre-commit
Apr 19, 2022
623069d
Fix: sorting the terms in locale language
gautamdsheth Mar 21, 2022
73d8a4b
changelog
Apr 19, 2022
f4a8499
changelog
Apr 19, 2022
6e7dfda
Enable multiple groupId's
Mar 22, 2022
b1fc3db
Updated if-statement to better check for arrays
Mar 22, 2022
2dc662d
changelog
Apr 19, 2022
7aa40ed
pre-commit
Apr 19, 2022
3e71c90
Trigger onChange on picker clear action
PathToSharePoint Mar 22, 2022
3e1cd4f
changelog
Apr 19, 2022
87c5d5a
pre-commit
Apr 19, 2022
fc953e4
people picker transitive members
RicoNL Mar 31, 2022
88537e3
changelog
Apr 19, 2022
8c66910
pre-commit
Apr 19, 2022
2faaae5
debugger removed, package-lock reverted
Apr 19, 2022
af9e87d
Merge branch 'russgove-master' into dev
Apr 19, 2022
5ef2d82
changelog
Apr 19, 2022
7602e37
pre-commit
Apr 19, 2022
328a7b1
remove build warnings
Apr 19, 2022
6f89980
Add complete example of TaxonomyTree usage
patrikhellgren Apr 21, 2022
df65f07
Fix context & isUniqueControlInPage properties
fabiofranzini Apr 22, 2022
c6c5475
Merge pull request #1190 from SherpasGroup/fix-moderntaxonomypicker-d…
joelfmrodrigues Apr 23, 2022
fae013f
changelog
joelfmrodrigues Apr 23, 2022
7e453a0
SPHelper -> Cannot read properties of undefined (reading 'getByTitle'…
joelfmrodrigues Apr 23, 2022
6d5dea8
changelog
joelfmrodrigues Apr 23, 2022
d3f57f6
RichText update font style and size
joelfmrodrigues Apr 23, 2022
d73c3d3
changelog
joelfmrodrigues Apr 23, 2022
41f2c7a
Fix docs
fabiofranzini Apr 25, 2022
1522e68
fix package.json conflict
Apr 25, 2022
d26817e
Merge branch 'fabiofranzini-AdaptiveCardHost-AddThemeAndContextData' …
Apr 25, 2022
ec1decd
changelog
Apr 25, 2022
4f0d6b6
pre-commit
Apr 25, 2022
7049bb4
Add custom row rendering
milanholemans Apr 26, 2022
7bb3fe0
Added Theme support for Placeholder control
fabiofranzini Apr 27, 2022
44420be
Merge pull request #1194 from fabiofranzini/placeholder-control-suppo…
joelfmrodrigues Apr 28, 2022
0915b0a
changelog
joelfmrodrigues Apr 28, 2022
6c17a0a
Update import statement
milanholemans Apr 28, 2022
6587655
Merge pull request #1192 from milanholemans/ListView-rowstyle
joelfmrodrigues Apr 29, 2022
5292f91
changelog
joelfmrodrigues Apr 29, 2022
ea45e39
AccessibleAccordion - Add support for theme
fabiofranzini Apr 29, 2022
8d513d5
commit changelog
fabiofranzini Apr 29, 2022
d08a14b
TreeView - Add support for theme
fabiofranzini Apr 29, 2022
89ee37d
commit changelog
fabiofranzini Apr 29, 2022
3093f2f
Update CHANGELOG.md
AJIXuMuK May 2, 2022
9d0cf28
Update release-notes.md
AJIXuMuK May 2, 2022
ea33c3e
Merge pull request #1200 from fabiofranzini/accessibleaccordion-contr…
AJIXuMuK May 2, 2022
1317f66
Update CHANGELOG.md
AJIXuMuK May 2, 2022
adf4579
Update release-notes.md
AJIXuMuK May 2, 2022
e5fd0e9
Return import React back
AJIXuMuK May 2, 2022
9dfcb02
Update TreeView.tsx
AJIXuMuK May 2, 2022
a46580b
Merge pull request #1201 from fabiofranzini/treeview-control-support-…
AJIXuMuK May 2, 2022
9a2a83e
changelog
May 2, 2022
dc041d5
pre-commit
May 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 43 additions & 0 deletions CHANGELOG.JSON
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
{
"versions": [
{
"version": "3.8.0",
"changes": {
"new": [],
"enhancements": [
"`PeoplePicker`: Allow the use of multiple groupId-s [#1163](https://github.com/pnp/sp-dev-fx-controls-react/issues/1163)",
"`PeoplePicker`: search users in nested security groups [#1173](https://github.com/pnp/sp-dev-fx-controls-react/issues/1173)",
"`ModenrTaxonomyPicker`: Add more complete example of TaxonomyTree usage [#1190](https://github.com/pnp/sp-dev-fx-controls-react/pull/1190)",
"`AdaptiveCardHost`: Add SPFx Context property [#1145](https://github.com/pnp/sp-dev-fx-controls-react/issues/1145)",
"`AdaptiveCardHost`: Remove the `isUniqueControlInPage` from the control by rebuilding the way to apply AC CSS class names [#1154](https://github.com/pnp/sp-dev-fx-controls-react/issues/1154)",
"`ListView`: Different background color to even and odd rows in ListView [#1153](https://github.com/pnp/sp-dev-fx-controls-react/issues/1153)",
"`AccessibleAccordion`: Support of section variations [#1195](https://github.com/pnp/sp-dev-fx-controls-react/issues/1195)",
"`TreeView`: Support of section variations [#1196](https://github.com/pnp/sp-dev-fx-controls-react/issues/1196)"
],
"fixes": [
"`LocationPicker`: Resolve issue when in root site [#1162](https://github.com/pnp/sp-dev-fx-controls-react/pull/1162)",
"`LocationPicker`: Trigger onChange on picker clear action [#1165](https://github.com/pnp/sp-dev-fx-controls-react/pull/1165)",
"`TreeView`: TreeView Control is broken after updating to v3.7.0 [#1170](https://github.com/pnp/sp-dev-fx-controls-react/issues/1170)",
"`TreeView`: collapses on selection of a child node [#1182](https://github.com/pnp/sp-dev-fx-controls-react/issues/1182)",
"`TreeView`: expanded nodes state is getting lost after refresh [#1062](https://github.com/pnp/sp-dev-fx-controls-react/issues/1062)",
"NPM Audit Critical Issues [#1187](https://github.com/pnp/sp-dev-fx-controls-react/issues/1187)",
"Bump momentjs from 2.29.1 to 2.29.2 [#1185](https://github.com/pnp/sp-dev-fx-controls-react/pull/1185)",
"`TaxonomyPicker`: Sorting the terms in locale language [#1160](https://github.com/pnp/sp-dev-fx-controls-react/pull/1160)",
"`ComboboxListItemPicker`: options are not reloaded after the filter is changed [#1180](https://github.com/pnp/sp-dev-fx-controls-react/issues/1180)",
"`FieldRendererHelper`: Add missing PnPjs import to SPHelper [#1140](https://github.com/pnp/sp-dev-fx-controls-react/issues/1140)",
"`RichText`: Update font style and font size on property pane [#1151](https://github.com/pnp/sp-dev-fx-controls-react/issues/1151)",
"`Placeholder`: Support section variations for themes [#1193](https://github.com/pnp/sp-dev-fx-controls-react/issues/1193)"
]
},
"contributors": [
"[Andreas Omayrat](https://github.com/andreasomayrat)",
"[brianpmccullough](https://github.com/brianpmccullough)",
"[Christophe Humbert](https://github.com/PathToSharePoint)",
"[Fabio Franzini](https://github.com/fabiofranzini)",
"[Gautam Sheth](https://github.com/gautamdsheth)",
"[Joel Lopes](https://github.com/Dixdjo)",
"[Milan Holemans](https://github.com/milanholemans)",
"[Patrik Hellgren](https://github.com/patrikhellgren)",
"[Ravichandran Krishnasamy](https://github.com/ravichandran-blog)",
"[Rico van de Ven](https://github.com/RicoNL)",
"[Russell gove](https://github.com/russgove)"
]
},
{
"version": "3.7.2",
"changes": {
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Releases

## 3.8.0

### Enhancements

- `PeoplePicker`: Allow the use of multiple groupId-s [#1163](https://github.com/pnp/sp-dev-fx-controls-react/issues/1163)
- `PeoplePicker`: search users in nested security groups [#1173](https://github.com/pnp/sp-dev-fx-controls-react/issues/1173)
- `ModenrTaxonomyPicker`: Add more complete example of TaxonomyTree usage [#1190](https://github.com/pnp/sp-dev-fx-controls-react/pull/1190)
- `AdaptiveCardHost`: Add SPFx Context property [#1145](https://github.com/pnp/sp-dev-fx-controls-react/issues/1145)
- `AdaptiveCardHost`: Remove the `isUniqueControlInPage` from the control by rebuilding the way to apply AC CSS class names [#1154](https://github.com/pnp/sp-dev-fx-controls-react/issues/1154)
- `ListView`: Different background color to even and odd rows in ListView [#1153](https://github.com/pnp/sp-dev-fx-controls-react/issues/1153)
- `AccessibleAccordion`: Support of section variations [#1195](https://github.com/pnp/sp-dev-fx-controls-react/issues/1195)
- `TreeView`: Support of section variations [#1196](https://github.com/pnp/sp-dev-fx-controls-react/issues/1196)

### Fixes

- `LocationPicker`: Resolve issue when in root site [#1162](https://github.com/pnp/sp-dev-fx-controls-react/pull/1162)
- `LocationPicker`: Trigger onChange on picker clear action [#1165](https://github.com/pnp/sp-dev-fx-controls-react/pull/1165)
- `TreeView`: TreeView Control is broken after updating to v3.7.0 [#1170](https://github.com/pnp/sp-dev-fx-controls-react/issues/1170)
- `TreeView`: collapses on selection of a child node [#1182](https://github.com/pnp/sp-dev-fx-controls-react/issues/1182)
- `TreeView`: expanded nodes state is getting lost after refresh [#1062](https://github.com/pnp/sp-dev-fx-controls-react/issues/1062)
- NPM Audit Critical Issues [#1187](https://github.com/pnp/sp-dev-fx-controls-react/issues/1187)
- Bump momentjs from 2.29.1 to 2.29.2 [#1185](https://github.com/pnp/sp-dev-fx-controls-react/pull/1185)
- `TaxonomyPicker`: Sorting the terms in locale language [#1160](https://github.com/pnp/sp-dev-fx-controls-react/pull/1160)
- `ComboboxListItemPicker`: options are not reloaded after the filter is changed [#1180](https://github.com/pnp/sp-dev-fx-controls-react/issues/1180)
- `FieldRendererHelper`: Add missing PnPjs import to SPHelper [#1140](https://github.com/pnp/sp-dev-fx-controls-react/issues/1140)
- `RichText`: Update font style and font size on property pane [#1151](https://github.com/pnp/sp-dev-fx-controls-react/issues/1151)
- `Placeholder`: Support section variations for themes [#1193](https://github.com/pnp/sp-dev-fx-controls-react/issues/1193)

## 3.7.2

## 3.7.0
Expand Down
28 changes: 28 additions & 0 deletions docs/documentation/docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Releases

## 3.8.0

### Enhancements

- `PeoplePicker`: Allow the use of multiple groupId-s [#1163](https://github.com/pnp/sp-dev-fx-controls-react/issues/1163)
- `PeoplePicker`: search users in nested security groups [#1173](https://github.com/pnp/sp-dev-fx-controls-react/issues/1173)
- `ModenrTaxonomyPicker`: Add more complete example of TaxonomyTree usage [#1190](https://github.com/pnp/sp-dev-fx-controls-react/pull/1190)
- `AdaptiveCardHost`: Add SPFx Context property [#1145](https://github.com/pnp/sp-dev-fx-controls-react/issues/1145)
- `AdaptiveCardHost`: Remove the `isUniqueControlInPage` from the control by rebuilding the way to apply AC CSS class names [#1154](https://github.com/pnp/sp-dev-fx-controls-react/issues/1154)
- `ListView`: Different background color to even and odd rows in ListView [#1153](https://github.com/pnp/sp-dev-fx-controls-react/issues/1153)
- `AccessibleAccordion`: Support of section variations [#1195](https://github.com/pnp/sp-dev-fx-controls-react/issues/1195)
- `TreeView`: Support of section variations [#1196](https://github.com/pnp/sp-dev-fx-controls-react/issues/1196)

### Fixes

- `LocationPicker`: Resolve issue when in root site [#1162](https://github.com/pnp/sp-dev-fx-controls-react/pull/1162)
- `LocationPicker`: Trigger onChange on picker clear action [#1165](https://github.com/pnp/sp-dev-fx-controls-react/pull/1165)
- `TreeView`: TreeView Control is broken after updating to v3.7.0 [#1170](https://github.com/pnp/sp-dev-fx-controls-react/issues/1170)
- `TreeView`: collapses on selection of a child node [#1182](https://github.com/pnp/sp-dev-fx-controls-react/issues/1182)
- `TreeView`: expanded nodes state is getting lost after refresh [#1062](https://github.com/pnp/sp-dev-fx-controls-react/issues/1062)
- NPM Audit Critical Issues [#1187](https://github.com/pnp/sp-dev-fx-controls-react/issues/1187)
- Bump momentjs from 2.29.1 to 2.29.2 [#1185](https://github.com/pnp/sp-dev-fx-controls-react/pull/1185)
- `TaxonomyPicker`: Sorting the terms in locale language [#1160](https://github.com/pnp/sp-dev-fx-controls-react/pull/1160)
- `ComboboxListItemPicker`: options are not reloaded after the filter is changed [#1180](https://github.com/pnp/sp-dev-fx-controls-react/issues/1180)
- `FieldRendererHelper`: Add missing PnPjs import to SPHelper [#1140](https://github.com/pnp/sp-dev-fx-controls-react/issues/1140)
- `RichText`: Update font style and font size on property pane [#1151](https://github.com/pnp/sp-dev-fx-controls-react/issues/1151)
- `Placeholder`: Support section variations for themes [#1193](https://github.com/pnp/sp-dev-fx-controls-react/issues/1193)

## 3.7.2

## 3.7.0
Expand Down
1 change: 1 addition & 0 deletions docs/documentation/docs/controls/AccessibleAccordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ The `Accordion` control can be configured with the following properties:
| preExpanded | string[] | no | Accepts an array of strings and any `AccordionItem` whose `uuid` prop matches any one of these strings will be expanded on mount. | `[]` |
| className | string | no | Class(es) to apply to element. | "accordion" |
| onChange | (string[]) => void | no | Callback which is invoked when items are expanded or collapsed. Gets passed `uuid`s of the currently expanded `AccordionItem`s. | |
| theme | IPartialTheme \| ITheme | no | Set Fluent UI Theme. If not set or set to null or not defined, the theme passed through context will be used, or the default theme of the page will be loaded. |



Expand Down
40 changes: 29 additions & 11 deletions docs/documentation/docs/controls/AdaptiveCardHost.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ Three custom themes have been created for Microsoft Teams to emulate the colors

All Elements and Actions of Adaptive Cards have been redefined using Fluent UI React, both for SharePoint and Microsoft Teams (in this case the "Fluent UI Northstar" library is not used), adding and improving features that are not managed in Microsoft's implementation of the "adaptivecards-fluentui" library (Theme support for example).

Thanks to the "context" property that allows you to pass the SPFx context, whether the "data" property is passed or not, a new field called @context will be injected into the data object.

This allows, using Adaptive Cards templating syntax, to access to the context informations using the following fields (for more information on these fields, refer to the [BaseComponentContext](https://docs.microsoft.com/en-us/javascript/api/sp-component-base/basecomponentcontext) class):
- "theme": property "theme" from the current theme applied to the card.
- "aadInfo": Azure AD informations retrieved from the SPFx context object.
- "cultureInfo": Culture informations retrieved from the SPFx context object.
- "userInfo": User informations retrieved from the SPFx context object.
- "spListInfo": Current List informations retrieved from the SPFx context object.
- "spListItemInfo": Current List item informations retrieved from the SPFx context object.
- "spSiteInfo": Current Site informations retrieved from the SPFx context object.
- "spWebInfo": Current Web informations retrieved from the SPFx context object.

The Adaptive Cards version supported is 1.5, by using the 'adaptivecards' npm package version 2.10.0.

Here is an example of the control in action inside a Web Part:
Expand All @@ -27,22 +39,23 @@ Here is an example of the previous Web Part (using different Card), hosted as a
- In your component file, import the `AdaptiveCardHost` control as follows:

```TypeScript
import { AdaptiveCardHost, IAdaptiveCardHostActionResult, AdaptiveCardHostThemeType } from "@pnp/spfx-controls-react/lib/AdaptiveCardHost";
import { AdaptiveCardHost, IAdaptiveCardHostActionResult, AdaptiveCardHostThemeType, Action, CardElement, CardObjectRegistry, HostCapabilities } from "@pnp/spfx-controls-react/lib/AdaptiveCardHost";
```

- Example on use the `AdaptiveCardHost` control with only required properties:

```TSX
```TypeScript
<AdaptiveCardHost
card={card}
onInvokeAction={(action) => alert(JSON.stringify(action))}
onError={(error) => alert(error.message)}
context={this.props.context}
/>
```

- Example on use the `AdaptiveCardHost` control with all properties:

```TSX
```TypeScript
<AdaptiveCardHost
card={card}
data={data}
Expand All @@ -62,63 +75,68 @@ import { AdaptiveCardHost, IAdaptiveCardHostActionResult, AdaptiveCardHostThemeT
onUpdateHostCapabilities={(hostCapabilities: HostCapabilities) => {
hostCapabilities.setCustomProperty("CustomPropertyName", Date.now);
}}
isUniqueControlInPage={true}
context={this.props.context}
/>
```

- Example on use the `AdaptiveCardHost` control with SharePoint Theme:

```TSX
```TypeScript
<AdaptiveCardHost
card={card}
themeType={AdaptiveCardHostThemeType.SharePoint}
onInvokeAction={(action) => alert(JSON.stringify(action))}
onError={(error) => alert(error.message)}
context={this.props.context}
/>
```

- Example on use the `AdaptiveCardHost` control with SharePoint Theme "Section Variation" ('this.props.theme' is the theme that come from the Web Part) */):

```TSX
```TypeScript
<AdaptiveCardHost
card={card}
theme={this.props.theme}
themeType={AdaptiveCardHostThemeType.SharePoint}
onInvokeAction={(action) => alert(JSON.stringify(action))}
onError={(error) => alert(error.message)}
context={this.props.context}
/>
```

- Example on use the `AdaptiveCardHost` control with Teams "Default" Theme:

```TSX
```TypeScript
<AdaptiveCardHost
card={card}
themeType={AdaptiveCardHostThemeType.Teams}
onInvokeAction={(action) => alert(JSON.stringify(action))}
onError={(error) => alert(error.message)}
context={this.props.context}
/>
```

- Example on use the `AdaptiveCardHost` control with Teams "Dark" Theme:

```TSX
```TypeScript
<AdaptiveCardHost
card={card}
themeType={AdaptiveCardHostThemeType.TeamsDark}
onInvokeAction={(action) => alert(JSON.stringify(action))}
onError={(error) => alert(error.message)}
context={this.props.context}
/>
```

- Example on use the `AdaptiveCardHost` control with Teams "High Contrast" Theme:

```TSX
```TypeScript
<AdaptiveCardHost
card={card}
themeType={AdaptiveCardHostThemeType.TeamsHighContrast}
onInvokeAction={(action) => alert(JSON.stringify(action))}
onError={(error) => alert(error.message)}
context={this.props.context}
/>
```

Expand All @@ -132,15 +150,15 @@ The `AdaptiveCardHost` control can be configured with the following properties:
| data | { "$root": object } | no | Set Data Source for template rendering. |
| style | React.CSSProperties | no | Set CSS Style. |
| className | string | no | Set CSS Class. |
| theme | IPartialTheme or ITheme | no | Set Fluent UI Theme. Used only if the "themeType" property is set to 'ThemeType.SharePoint'. If not set or set to null or not defined, the theme passed through context will be searched, or the default theme of the page will be loaded. |
| theme | IPartialTheme or ITheme | no | Set Fluent UI Theme. Used only if the "themeType" property is set to 'ThemeType.SharePoint'. If not set or set to null or not defined, the theme passed through context will be searched, or the default theme of the page will be loaded. However, the Theme object will be automatically injected into the data object, so that it can be used by the Adaptive Cards binding engine. |
| themeType | ThemeType | no | Select the Type of Theme you want to use. If it is not set or set to null or undefined, the 'ThemeType.SharePoint' value will be used and the "theme" property or the theme passed through the context or default page will be loaded. In other cases, the chosen Microsoft Teams theme will be applied. |
| hostConfig | object | no | Set custom HostConfig. |
| onInvokeAction | (action: IAdaptiveCardActionResult) => void | yes | Invoked every time an Action is performed. |
| onError | (error: Error) => void | yes | Invoked every time an exception occurs in the rendering phase. |
| onSetCustomElements | (registry: CardObjectRegistry<CardElement>) => void | no | Invoked to manage Elements to the current Adaptive Card instance. |
| onSetCustomActions | (registry: CardObjectRegistry<Action>) => void | no | Invoked to manage Actions to the current Adaptive Card instance. |
| onUpdateHostCapabilities | (hostCapabilities: HostCapabilities) => void | no | Invoked to manage the HostCapabilities object like add custom properties. |
| isUniqueControlInPage | boolean | no | Set to true if you want to use only one instance of this control per page, false for multiple controls. This affects how CSS variables are set. |
| context | BaseComponentContext | no | Set the context from the SPFx component. If set, some context properties will be automatically injected into the data object, so they can be used by the Adaptive Cards binding engine. |

Interface `IAdaptiveCardHostActionResult`

Expand Down
1 change: 1 addition & 0 deletions docs/documentation/docs/controls/ListView.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ The ListView control can be configured with the following properties:
| dragDropFiles | boolean | no | Specify the drag and drop files area option. Default false. |
| onDrop | file | no | Event handler returns files from drag and drop. |
| stickyHeader | boolean | no | Specifies if the header of the `ListView`, including search box, is sticky |
| onRenderRow | (props: IDetailsRowProps) => JSX.Element \| null | no | Callback to override the default row rendering. |
| sortItems | (items: any[], columnName: string, descending: boolean) =&gt; any[] | no | Custom sorting function to handle sorting by column |
| className | string | no | Class name to apply additional styles on list view wrapper |
| listClassName | string | no | Class name to apply additional styles on list view |
Expand Down