From 0d009c3b4dd735ca0432e51d2451b4baaa9eb56b Mon Sep 17 00:00:00 2001 From: Fabian Arce Date: Tue, 29 Oct 2024 10:43:38 -0600 Subject: [PATCH] Update trusted types policy names to remove 'allow-duplicated' --- source/nodejs/adaptivecards/src/card-elements.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/nodejs/adaptivecards/src/card-elements.ts b/source/nodejs/adaptivecards/src/card-elements.ts index 1bb3897295..84d571c71b 100644 --- a/source/nodejs/adaptivecards/src/card-elements.ts +++ b/source/nodejs/adaptivecards/src/card-elements.ts @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import * as Enums from "./enums"; import { CarouselEvent } from "./carousel"; @@ -1132,7 +1132,7 @@ export class TextBlock extends BaseTextBlock { // Markdown processing is handled outside of Adaptive Cards. It's up to the host to ensure that markdown is safely // processed. private static readonly _ttMarkdownPolicy = (typeof window === 'undefined') ? undefined : window.trustedTypes?.createPolicy( - "adaptivecards#markdownPassthroughPolicy", + "adaptivecards#markdownPassthroughTrustedTypesPolicy", { createHTML: (value) => value } ); @@ -1141,7 +1141,7 @@ export class TextBlock extends BaseTextBlock { // _originalInnerHtml so that we can restore/recalculate truncation later if space availability has changed (see // TextBlock.restoreOriginalContent()) private static readonly _ttRoundtripPolicy = (typeof window === 'undefined') ? undefined : window.trustedTypes?.createPolicy( - "adaptivecards#restoreContentsPolicy", + "adaptivecards#restoreContentsTrustedTypesPolicy", { createHTML: (value) => value } );