Skip to content

Commit

Permalink
Task: Update adaptive cards templating (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed Oct 31, 2022
1 parent 49d2b4c commit 62b227a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
29 changes: 13 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"@microsoft/microsoft-graph-client": "3.0.2",
"@monaco-editor/react": "4.4.6",
"@ms-ofb/officebrowserfeedbacknpm": "file:packages/officebrowserfeedbacknpm-1.6.6.tgz",
"adaptive-expressions": "4.17.1",
"adaptivecards": "2.11.1",
"adaptivecards-templating": "1.4.0",
"adaptivecards-templating": "2.3.1",
"apg-js": "4.1.2",
"babel-loader": "8.2.5",
"babel-preset-react-app": "10.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/app/services/actions/adaptive-cards-action-creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function createCardFromTemplate(templatePayload: any, payload: string): Adaptive
$root: payload
};
AdaptiveCardsTemplateAPI.GlobalSettings.getUndefinedFieldValueSubstitutionString = (
// eslint-disable-next-line no-unused-vars
_path: string
) => ' ';
return template.expand(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class AdaptiveCard extends Component<IAdaptiveCardProps> {
className={classes.copyIcon}
handleOnClick={handleCopy}
isIconButton={true}
style={{ float: 'right', zIndex: 1 }}
/>
<Monaco
language='json'
Expand Down

0 comments on commit 62b227a

Please sign in to comment.