@microsoft/adaptivecards-tools
Advanced tools
Comparing version 1.3.5-alpha.cf496ce62.0 to 1.3.5-alpha.cfef6cf93.0
@@ -15,3 +15,3 @@ 'use strict'; | ||
/* eslint-disable @typescript-eslint/no-namespace */ | ||
// Copyright (c) Microsoft Corporation. | ||
var md = new Markdown__default['default'](); | ||
@@ -22,4 +22,8 @@ adaptivecards.AdaptiveCard.onProcessMarkdown = function (text, result) { | ||
}; | ||
// eslint-disable-next-line @typescript-eslint/no-namespace | ||
exports.AdaptiveCards = void 0; | ||
(function (AdaptiveCards) { | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function isAdaptiveCardSchema(object) { | ||
@@ -29,2 +33,5 @@ return object.type == "AdaptiveCard"; | ||
AdaptiveCards.isAdaptiveCardSchema = isAdaptiveCardSchema; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function renderWithData(template, data) { | ||
@@ -35,2 +42,5 @@ var payload = new adaptivecardsTemplating.Template(template).expand({ $root: data }); | ||
AdaptiveCards.renderWithData = renderWithData; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function renderToHtmlElement(template, data) { | ||
@@ -40,2 +50,5 @@ return declare(template).renderToHtmlElement(data); | ||
AdaptiveCards.renderToHtmlElement = renderToHtmlElement; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function declare(template, defaults) { | ||
@@ -71,2 +84,5 @@ return { | ||
AdaptiveCards.declare = declare; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function declareWithoutData(template) { | ||
@@ -88,6 +104,5 @@ var withoutData = declare(template); | ||
// Copyright (c) Microsoft Corporation. | ||
// TODO: Error handling | ||
// TODO: plain payload without templating | ||
// TODO: better rendering to JSX instead of DOM manipulation directly | ||
// TODO: support themes and simulating renderers (Teams, Outlook, themes) | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function AdaptiveCard(props) { | ||
@@ -94,0 +109,0 @@ var template = props.template, data = props.data; |
{ | ||
"name": "@microsoft/adaptivecards-tools", | ||
"version": "1.3.5-alpha.cf496ce62.0", | ||
"version": "1.3.5-alpha.cfef6cf93.0", | ||
"description": "Microsoft sdk for Adaptive Cards", | ||
@@ -53,2 +53,7 @@ "main": "lib/index.js", | ||
}, | ||
"overrides": { | ||
"adaptive-expressions": { | ||
"fast-xml-parser": "4.4.1" | ||
} | ||
}, | ||
"publishConfig": { | ||
@@ -69,3 +74,3 @@ "access": "public" | ||
}, | ||
"gitHead": "ec3bcfa8140532beb66348a2ec0d35389a8812b0" | ||
"gitHead": "cccdeb53c52c97477a184fe391e054fdb710d29d" | ||
} |
# AdaptiveCards SDK for TypeScript/JavaScript | ||
> This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
Adaptivecards-tools sdk aims to reduce developer's efforts to render an Adaptive Card in your project, especially for Adaptive Card with Data, provide type safety check. | ||
@@ -4,0 +6,0 @@ |
@@ -6,2 +6,5 @@ import { AdaptiveCards } from "./AdaptiveCards"; | ||
} | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
export declare function AdaptiveCard<D = any>(props: AdaptiveCardProps<D>): any; |
@@ -5,5 +5,17 @@ import { IAdaptiveCard } from "adaptivecards"; | ||
type Payload = IAdaptiveCard; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function isAdaptiveCardSchema(object: any): object is Schema; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function renderWithData<D>(template: Schema, data: D): Schema; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function renderToHtmlElement<D extends object = any>(template: Schema, data?: D): HTMLElement | undefined; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function declare<D extends object>(template: any, defaults?: (d: D) => D): { | ||
@@ -15,2 +27,5 @@ template: any; | ||
}; | ||
/** | ||
* @deprecated This package will be deprecated by 2025-08. Please use [adaptivecards-templating](https://www.npmjs.com/package/adaptivecards-templating) instead. | ||
*/ | ||
function declareWithoutData(template: any): { | ||
@@ -17,0 +32,0 @@ template: any; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19656
173
37