@microsoft/sp-adaptive-card-extension-base package

SharePoint Framwork Adaptive Card Extensions

Classes

AdaptiveCardExtensionContext

Adaptive Card Extension context object.

BaseAdaptiveCardExtension

Base class for Adaptive Card Extensions.

BaseAdaptiveCardQuickView

Base class for an Adaptive Card quick view.

BaseAdaptiveCardView

Base class for an Adaptive Card quick view.

BaseBasicCardView

Base class for a Basic Card view.

BaseCardView

Primitive base class for Card views.

BaseComponentsCardView

Base class for an component-based Card views.

BaseImageCardView

Base class for an Image Card view.

BasePrimaryTextCardView

Base class for a Primary Text Card view.

BaseQuickView

Base class for an Adaptive Card view.

BaseTemplateCardView

Primitive base class for template-based Card views.

BaseView

Base class for all views.

QuickViewNavigator

Manages a stack of Adaptive Card views for the Quick view.

ViewNavigator

Manages a stack of views.

Interfaces

IActionError
IAdaptiveCardExtensionActionView

The interface describes members for views that can handle AC actions.

IAdaptiveCardExtensionDataView

The interface defines properties for view that specify configuration as data property.

IAdaptiveCardExtensionImage

Properties for the image rendered in a card view.

IAdaptiveCardExtensionPropertiesMetadata

This structure is used to define metadata for Adaptive Card Extension properties as a map of string to IAdaptiveCardExtensionPropertiesMetadata

IAdaptiveCardExtensionPropertyMetadata

This is the structure used for map values in IAdaptiveCardExtensionPropertiesMetadata.

IAttachmentError

This object represents error associated with a single attachment

IAxis

Represents the parameters for an axis on a chart.

IBaseActionArguments

Base object passed to IAdaptiveCardExtensionActionView.onAction when an Adaptive Card Action is executed.

IBaseActionErrorArguments

Base object passed to IAdaptiveCardExtensionActionView.onActionError when an Adaptive Card OnActionError is executed.

IBaseCardDataVisualizationParameters

Base parameters for a data visualization component.

IBaseCardParameters

The primitive data parameters for every Card view.

IBaseSeries

Generic series for data visualization.

IBasicCardParameters

The data parameters for BaseBasicCardView.

IBasicTextCardViewConfiguration

Configuration for a Basic Card view.

ICachedLoadParameters

Parameters used to rehydrate the AdaptiveCardExtension during a cached load

ICacheSettings
ICardBarConfiguration

Card view title area (card bar) component configuration.

ICardBarParameters

Card view title area (card bar) component parameters

ICardButton

A button to display on a Card View.

ICardButtonBase

Base properties for the buttons used in different ACE card view components, such as Text Input and Search Box and Card Button.

ICardButtonConfiguration

Card button component configuration.

ICardButtonParameters

Card button component parameters.

ICardComponentParameters

Base card view component parameters.

ICardLineChartConfiguration

Configuration for a line chart.

ICardLineChartParameters

Parameters for a line chart.

ICardSearchBoxButton

Search box button properties.

ICardSearchBoxConfiguration

Search box component configuration.

ICardSearchBoxParameters

Search box component parameters. Represents a search box rendered in the card view.

ICardSearchFooterConfiguration

Search box footer component configuration.

ICardSearchFooterParameters

Search footer component parameters. Represents a container with an image (in the shape of a circle) and text.

ICardTextConfiguration

Text component configuration.

ICardTextInputConfiguration

Text input component configuration.

ICardTextInputIconButton

Text input icon button.

ICardTextInputParameters

Text input component parameters.

ICardTextInputTitleButton

Text input title button.

ICardTextParameters

Text component parameters. Represents a text block rendered in the card view.

ICardViewConfiguration

Card view configuration

ICardViewParameters

Card view configuration parameters. The configuration specifies how the card view is rendered.

ICartesianChartParameters

Parameters for a Cartesian chart component with X and Y axes.

IConfirmationDialog

Confirmation Dialog option that is passed through Submit Action is executed.

IDataPoint

Data point for cartisian based data visualization.

IDataVisualizationCardViewConfiguration

Configuration for a DataVisualization card view.

IDataVisualizationCardViewParameters

The parameters for the DataVisualization card view.

IExecuteActionArguments

The object passed to IAdaptiveCardExtensionActionView.onAction when a Execute Action is executed. https://adaptivecards.io/explorer/Action.Execute.html

IExecuteCardAction

Invoke an Action.Execute event.

IExecuteCardParameters

Parameters for Execute card action.

IExternalLinkActionArguments

The object passed to BaseAdaptiveCardExtension.onBeforeAction() when a ExternalLink Action is triggered.

IExternalLinkCardAction

Open an external link.

IExternalLinkParameters

Parameters for opening an external link.

IFocusParameters

Interface to give third party developers the capability to determine which element should recieve focus, when, and how often content should be read.

IGetLocationAction

Interface for Viva Get Location action

IGetLocationActionArguments

The object passed to IAdaptiveCardExtensionActionView.onAction when a Get location Action is executed.

IGetLocationActionParameters

Parameters that can be supplied with the Viva Get Location Action.

IGetLocationCardAction

Invoke an VivaAction.GetLocation event.

IImageCardParameters

The data parameters for BaseImageCardView.

IImageCardViewConfiguration

Configuration for an Image Card view.

ILineChartCardViewConfiguration

Configuration for a line chart card view.

ILineChartSeries

Series for a line chart.

ILocation

Interface for location coordinates

ILocationErrorArguments

This object represents the error data that the Location action can throw.

INotificationArguments

The object passed to BaseAdaptiveCardExtension.onNotificationReceived() when a notification is received.

INotificationResponse

The object returned from BaseAdaptiveCardExtension.onNotificationReceived() if it has handled the notification.

IPartialMicrosoftTeams

Provides access to the Teams SDK and Teams context. Only provided when the web part is loaded in Teams.

Currently We are providing only Partial Contextual Information.

IPartialSDKs

Conditional set of SDKs provided by SPFx dependent on the environment.

Currently we are providing only Partial SDKs.

IPartialTeamsContext

Partial teams context

IPartialTeamsJs

Provides access to the Teams SDK and Teams context. Only provided when the web part is loaded in Teams.

IPrimaryTextCardParameters

The data parameters for BasePrimaryTextCardView.

IPrimaryTextCardViewConfiguration

Configuration for a Primary Text Card view.

IQuickViewActionArguments

The object passed to BaseAdaptiveCardExtension.onBeforeAction() when a QuickView Action is triggered.

IQuickViewCardAction

Open the quick view.

IQuickViewNavigator

Properties describing a QuickViewNavigator

IQuickViewParameters

Parameters for opening a Quick view.

ISearchCardViewConfiguration

Configuration for a Search Card view.

ISearchCardViewParameters

The parameters for the search card view.

ISelectMediaAction

Interface for new Viva Select Media action

ISelectMediaActionArguments

The object passed to IAdaptiveCardExtensionActionView.onAction when a SelectMedia Action is executed.

ISelectMediaActionErrorArguments

This object represents the data returned by the native media picker API.

ISelectMediaActionParameters

Parameters that can be supplied with the Viva Select Media Action.

ISelectMediaAttachment

This object represents the data returned by the native media picker API.

ISelectMediaCardAction

Invoke an VivaAction.SelectMedia event.

IShowCardActionArguments

The object passed to IAdaptiveCardExtensionActionView.onAction when a ShowCard Action is executed.

IShowLocationAction

Interface for Viva Show Location action

IShowLocationActionParameters

Parameters that can be supplied with the Viva Show Location Action.

IShowLocationCardAction

Invoke an VivaAction.ShowLocation event.

ISPFxAdaptiveCard

SPFx Adaptive Card Extension schema for Adaptive Cards.

ISubmitActionArguments

The object passed to IAdaptiveCardExtensionActionView.onAction when a Submit Action is executed.

ISubmitCardAction

Invoke an Action.Submit event.

ISubmitCardParameters

Parameters for submit card action.

ITextCardViewParameters

The parameters for the card view with text or empty body.

ITextInputCardViewConfiguration

Configuration for an Text Input Card View

*

ITextInputCardViewParameters

The parameters for the card view with text input in the body.

ITextInputImageCardViewConfiguration

Configuration for an Text Input Card View

*

IViewNavigator

Properties describing a ViewNavigator

Type Aliases

CardComponentConfiguration

Base component configuration.

CardComponentEventNames

List of all events supported by components.

CardComponentName

Names of the components allowed in a card view.

CardDataVisualizationKind

Supported data visualizations to render on the card view.

CardSearchBoxEventNames

Event names supported by the search box component.

CardSize

Size of the Card view.

CardTextInputEventNames

Event names supported by the text input component.

CardViewActionsFooterConfiguration

The actions-only footer configuration for the card view.

CardViewActionsFooterParameters

The actions-only footer parameters for the card view.

ComponentsCardViewParameters

Card view configuration type.

DeviceContext

WebView indicates the Adaptive Card Extension is rendering through a web browser equivalent. Mobile indicates the Adaptive Card Extension is rendering natively on a mobile platform.

GenericCardViewFooterConfiguration

The footer configuration for the Generic card view templates.

GenericCardViewFooterParameters

The footer parameters for the Generic card view templates. Can contain either 0 to 2 buttons or a single text input.

IActionArguments

The object passed to IAdaptiveCardExtensionActionView.onAction when an Adaptive Card Action is executed.

IActionErrorArguments

The object passed to IAdaptiveCardExtensionActionView.onActionError when an error occured while executing Adaptive Card Action.

IAdaptiveCardExtensionIcon

Card view icon.

ICardAction

Type of handler for when a button is pressed.

IOnBeforeActionArguments

The object passed to BaseAdaptiveCardExtension.onBeforeAction() when an Adaptive Card Action is executed.

LineChartData

Utility type to define what valid types of data can be used in a line chart data visualization.

MaxThreeTuple

Utility type to enforce a tuple with a maximum length of 3.

RenderType

Card is the default render View. QuickView is a more detailed view of the Adaptive Card Extension.

SupportedLineChartDataTypes

Set of supported types for the data used with the line chart data visualization.

Enums

MediaType

Enum value to specify the type of media.

Functions

BasicCardView(configuration)

Helper method to create a Basic Card View.

ImageCardView(configuration)

Helper method to create an Image Card View.

LineChartCardView(configuration)

Helper method to create a line chart card view with numeric data.

LineChartCardView(configuration)

Helper method to create a line chart card view with date data.

PrimaryTextCardView(configuration)

Helper method to create a Primary Text Card View.

SearchCardView(configuration)

Helper method to create a Search Card View.

TextInputCardView(configuration)

Helper method to create an Text Input Card View.

TextInputImageCardView(configuration)

Helper method to create an Text Input with Image Card View.

Function Details

BasicCardView(configuration)

Helper method to create a Basic Card View.

export declare function BasicCardView(configuration: IBasicTextCardViewConfiguration): ITextCardViewParameters;

Parameters

configuration
IBasicTextCardViewConfiguration

basic card view configuration.

Returns

ImageCardView(configuration)

Helper method to create an Image Card View.

export declare function ImageCardView(configuration: IImageCardViewConfiguration): ITextCardViewParameters;

Parameters

configuration
IImageCardViewConfiguration

image card view configuration.

Returns

LineChartCardView(configuration)

Helper method to create a line chart card view with numeric data.

export declare function LineChartCardView(configuration: ILineChartCardViewConfiguration<number>): IDataVisualizationCardViewParameters;

Parameters

configuration

ILineChartCardViewConfiguration<number>

Returns

LineChartCardView(configuration)

Helper method to create a line chart card view with date data.

export declare function LineChartCardView(configuration: ILineChartCardViewConfiguration<Date>): IDataVisualizationCardViewParameters;

Parameters

configuration

ILineChartCardViewConfiguration<Date>

Returns

PrimaryTextCardView(configuration)

Helper method to create a Primary Text Card View.

export declare function PrimaryTextCardView(configuration: IPrimaryTextCardViewConfiguration): ITextCardViewParameters;

Parameters

configuration
IPrimaryTextCardViewConfiguration

primary text card view configuration.

Returns

SearchCardView(configuration)

Helper method to create a Search Card View.

export declare function SearchCardView(configuration: ISearchCardViewConfiguration): ISearchCardViewParameters;

Parameters

configuration
ISearchCardViewConfiguration

search card view configuration.

Returns

TextInputCardView(configuration)

Helper method to create an Text Input Card View.

export declare function TextInputCardView(configuration: ITextInputCardViewConfiguration): ITextInputCardViewParameters;

Parameters

configuration
ITextInputCardViewConfiguration

text input card view configuration.

Returns

TextInputImageCardView(configuration)

Helper method to create an Text Input with Image Card View.

export declare function TextInputImageCardView(configuration: ITextInputImageCardViewConfiguration): ITextInputCardViewParameters;

Parameters

configuration
ITextInputImageCardViewConfiguration

text input with image card view configuration.

Returns