@microsoft/sp-adaptive-card-extension-base 1.13.1 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/eeec822e-c28a-46b4-affc-7058e4c1aa80.manifest.json +75 -70
  2. package/dist/index-internal-beta.d.ts +267 -16
  3. package/dist/index-internal-public.d.ts +171 -9
  4. package/dist/index-internal.d.ts +171 -9
  5. package/dist/sp-adaptive-card-extension-base_default_173ae32b19aec2e7570e.js +1 -0
  6. package/dist/sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js +1 -0
  7. package/dist/sp-adaptive-card-extension-base_qps-ploc_173ae32b19aec2e7570e.js +1 -0
  8. package/dist/sp-adaptive-card-extension-base_qps-ploca_173ae32b19aec2e7570e.js +1 -0
  9. package/dist/test-api/AdaptiveCardExtensionTestWrapper.d.ts +2 -1
  10. package/dist/test-api/AdaptiveCardExtensionTestWrapper.js +7 -2
  11. package/dist/tsdoc-metadata.json +1 -1
  12. package/lib-commonjs/AdaptiveCardExtensionContext.js +12 -0
  13. package/lib-commonjs/AdaptiveCardExtensionLoader.js +2 -1
  14. package/lib-commonjs/BaseAdaptiveCardExtension.js +55 -6
  15. package/lib-commonjs/ac-template/util/actionButtonHelper.js +17 -1
  16. package/lib-commonjs/common/Flights.js +8 -1
  17. package/lib-commonjs/common/Killswitches.js +15 -1
  18. package/lib-commonjs/index.js +4 -0
  19. package/lib-commonjs/interfaces/ILocation.js +1 -1
  20. package/lib-commonjs/isolation/IsolatedAdaptiveCardExtensionService.js +217 -0
  21. package/lib-commonjs/isolation/interfaces/IIsolatedAction.js +3 -0
  22. package/lib-commonjs/isolation/interfaces/IIsolatedListener.js +3 -0
  23. package/lib-commonjs/isolation/interfaces/IIsolatedServiceCallbackParameters.js +3 -0
  24. package/lib-commonjs/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.js +3 -0
  25. package/lib-commonjs/isolation/interfaces/IRenderIsolatedQuickViewParameters.js +3 -0
  26. package/lib-commonjs/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.js +3 -0
  27. package/lib-commonjs/isolation/interfaces/IsolatedServiceMessageEvent.js +3 -0
  28. package/lib-commonjs/test-api/AdaptiveCardExtensionTestWrapper.js +7 -2
  29. package/lib-commonjs/views/base/BaseView.js +10 -0
  30. package/package.json +8 -8
  31. package/dist/sp-adaptive-card-extension-base_default_e16b34147e78dbf0c04c.js +0 -1
  32. package/dist/sp-adaptive-card-extension-base_en-us_e16b34147e78dbf0c04c.js +0 -1
  33. package/dist/sp-adaptive-card-extension-base_qps-ploc_e16b34147e78dbf0c04c.js +0 -1
  34. package/dist/sp-adaptive-card-extension-base_qps-ploca_e16b34147e78dbf0c04c.js +0 -1
@@ -26,8 +26,10 @@ import { IPropertyPaneConfiguration } from '@microsoft/sp-property-pane';
26
26
  import { IPropertyPaneGroup } from '@microsoft/sp-property-pane';
27
27
  import { ISDKs } from '@microsoft/sp-webpart-base';
28
28
  import { ISerializedServerProcessedData } from '@microsoft/sp-component-base';
29
+ import { IShowCardAction } from 'adaptivecards/lib/schema';
29
30
  import { ISubmitAction } from 'adaptivecards/lib/schema';
30
31
  import { ITextBlock } from 'adaptivecards/lib/schema';
32
+ import { ServiceKey } from '@microsoft/sp-core-library';
31
33
  import { ServiceScope } from '@microsoft/sp-core-library';
32
34
  import { Version } from '@microsoft/sp-core-library';
33
35
 
@@ -43,6 +45,7 @@ export declare class AdaptiveCardExtensionContext extends BaseComponentContext {
43
45
  readonly manifest: IAdaptiveCardExtensionManifest<unknown>;
44
46
  private _aceHost;
45
47
  private _deviceContext;
48
+ private _location;
46
49
  /* Excluded from this release type: __constructor */
47
50
  /* Excluded from this release type: _host */
48
51
  /**
@@ -50,6 +53,7 @@ export declare class AdaptiveCardExtensionContext extends BaseComponentContext {
50
53
  */
51
54
  get propertyPane(): IPropertyPaneAccessor | undefined;
52
55
  get deviceContext(): DeviceContext;
56
+ /* Excluded from this release type: location */
53
57
  }
54
58
 
55
59
  /* Excluded from this release type: _AdaptiveCardExtensionHost */
@@ -217,6 +221,7 @@ export declare class BaseAdaptiveCardExtension<TProperties = {}, TState = Readon
217
221
  /* Excluded from this release type: getCacheSettings */
218
222
  /* Excluded from this release type: getCachedState */
219
223
  /* Excluded from this release type: _internalOnAction */
224
+ /* Excluded from this release type: _internalOnActionError */
220
225
  /**
221
226
  * Lifecycle method called before serialization.
222
227
  *
@@ -319,6 +324,7 @@ export declare class BaseAdaptiveCardExtension<TProperties = {}, TState = Readon
319
324
  */
320
325
  protected renderCard(): string | undefined;
321
326
  /* Excluded from this release type: _getPreFrameworkPropertyPaneConfiguration */
327
+ /* Excluded from this release type: _isFrameworkPropertyPaneEnabled */
322
328
  /**
323
329
  * Sets the visibility of the Adaptive Card Extension and re-render
324
330
  *
@@ -343,6 +349,16 @@ export declare class BaseAdaptiveCardExtension<TProperties = {}, TState = Readon
343
349
  /* Excluded from this release type: _getRenderArguments */
344
350
  /* Excluded from this release type: _propertiesMetadata */
345
351
  /* Excluded from this release type: _getPropertyPaneConfiguration */
352
+ /**
353
+ * The current {@link ViewNavigator}.
354
+ *
355
+ * @remarks If the current {@link BaseAdaptiveCardExtension.renderType} is `Card`
356
+ * then returns {@link BaseAdaptiveCardExtension.cardNavigator}.
357
+ *
358
+ * @remarks If the current {@link BaseAdaptiveCardExtension.renderType} is `QuickView`
359
+ * then returns {@link BaseAdaptiveCardExtension.quickViewNavigator}.
360
+ */
361
+ get navigator(): ViewNavigator<BaseView<TProperties, TState>>;
346
362
  /* Excluded from this release type: _internalDeserialize */
347
363
  /* Excluded from this release type: _internalInitialize */
348
364
  /* Excluded from this release type: _internalSetDisplayMode */
@@ -584,6 +600,7 @@ export declare abstract class BaseView<TProperties = {}, TState = {}, TData = {}
584
600
  * @param action - The {@link IActionArguments} for the current event.
585
601
  */
586
602
  onAction(action: IActionArguments): void;
603
+ /* Excluded from this release type: onActionError */
587
604
  /**
588
605
  * See {@link BaseAdaptiveCardExtension.setState}.
589
606
  */
@@ -608,16 +625,27 @@ export declare type CardSize = 'Medium' | 'Large';
608
625
  *
609
626
  * @public
610
627
  */
611
- export declare type DeviceContext = 'WebView' | 'Mobile';
628
+ export declare type DeviceContext = 'WebView' | 'Mobile' | 'TeamsDesktop';
612
629
 
613
630
  /**
614
631
  * The object passed to {@link BaseView.onAction} when an Adaptive Card Action is executed.
615
632
  *
616
- * @remarks Only `Submit`, `ShowCard` and 'SelectMedia' actions are routed to the {@link BaseView.onAction} handler.
633
+ * @remarks Only `Submit`, `ShowCard`, 'Viva.SelectMedia', 'Viva.GetLocation' and 'Viva.ShowLocation; actions are routed to the {@link BaseView.onAction} handler.
634
+ *
635
+ * @public
636
+ */
637
+ export declare type IActionArguments = ISubmitActionArguments | IShowCardActionArguments | ISelectMediaActionArguments | IGetLocationActionArguments;
638
+
639
+ /* Excluded from this release type: IActionError */
640
+
641
+ /**
642
+ * The object passed to {@link BaseView.onActionError} when an Adaptive Card Action is executed.
643
+ *
644
+ * @remarks Only `Submit`, `ShowCard`, 'Viva.SelectMedia', 'Viva.GetLocation' and 'Viva.ShowLocation; actions are routed to the {@link BaseView.onActionError} handler.
617
645
  *
618
646
  * @public
619
647
  */
620
- export declare type IActionArguments = ISubmitActionArguments | IShowCardActionArguments;
648
+ export declare type IActionErrorArguments = IBaseActionErrorArguments | ISelectMediaActionErrorArguments | ILocationErrorArguments;
621
649
 
622
650
  /* Excluded from this release type: _IAdaptiveCardExtension */
623
651
 
@@ -654,6 +682,15 @@ export declare interface IAdaptiveCardExtensionPropertyMetadata extends ICompone
654
682
 
655
683
  /* Excluded from this release type: _IAdaptiveCardRenderParameters */
656
684
 
685
+ /**
686
+ * This object represents error associated with a single attachment
687
+ * @remarks API under active development and not ready for use.
688
+ * @public
689
+ */
690
+ export declare interface IAttachmentError {
691
+ /* Excluded from this release type: errorCode */
692
+ }
693
+
657
694
  /**
658
695
  * Base object passed to {@link BaseView.onAction} when an Adaptive Card Action is executed.
659
696
  *
@@ -672,6 +709,17 @@ export declare interface IBaseActionArguments {
672
709
  id?: string;
673
710
  }
674
711
 
712
+ /**
713
+ * Base object passed to {@link BaseView.onActionError} when an Adaptive Card OnActionError is executed.
714
+ *
715
+ * @public
716
+ */
717
+ export declare interface IBaseActionErrorArguments {
718
+ /* Excluded from this release type: type */
719
+ /* Excluded from this release type: id */
720
+ /* Excluded from this release type: error */
721
+ }
722
+
675
723
  /**
676
724
  * The primitive data parameters for every Card view.
677
725
  *
@@ -697,6 +745,14 @@ export declare interface IBaseCardParameters {
697
745
  title?: string;
698
746
  }
699
747
 
748
+ /* Excluded from this release type: IBaseIsolatedApplicationMessage */
749
+
750
+ /* Excluded from this release type: _IBaseIsolatedMessage */
751
+
752
+ /* Excluded from this release type: IBaseIsolatedServiceCallbackParameters */
753
+
754
+ /* Excluded from this release type: _IBaseIsolatedServiceMessage */
755
+
700
756
  /**
701
757
  * The data parameters for {@link BaseBasicCardView}.
702
758
  *
@@ -795,9 +851,25 @@ export declare interface IExternalLinkParameters {
795
851
  target: string;
796
852
  }
797
853
 
798
- /* Excluded from this release type: IGetLocationAction */
854
+ /**
855
+ * Interface for Viva Get Location action
856
+ * @remarks API under active development and not ready for use.
857
+ * @public
858
+ */
859
+ export declare interface IGetLocationAction extends IAction {
860
+ /* Excluded from this release type: type */
861
+ /* Excluded from this release type: parameters */
862
+ }
799
863
 
800
- /* Excluded from this release type: IGetLocationActionArguments */
864
+ /**
865
+ * The object passed to {@link BaseView.onAction} when a Get location Action is executed.
866
+ * @remarks API under active development and not ready for use.
867
+ * @public
868
+ */
869
+ export declare interface IGetLocationActionArguments extends Omit<IBaseActionArguments, 'type'> {
870
+ /* Excluded from this release type: type */
871
+ /* Excluded from this release type: location */
872
+ }
801
873
 
802
874
  /* Excluded from this release type: IGetLocationActionParameters */
803
875
 
@@ -820,10 +892,44 @@ export declare interface IImageCardParameters extends IBaseCardParameters {
820
892
  primaryText: string;
821
893
  }
822
894
 
895
+ /* Excluded from this release type: _IIsolatedAction */
896
+
897
+ /* Excluded from this release type: _IIsolatedActionServiceMessage */
898
+
899
+ /* Excluded from this release type: _IIsolatedErrorCallbackParameters */
900
+
901
+ /* Excluded from this release type: _IIsolatedErrorMessage */
902
+
903
+ /* Excluded from this release type: _IIsolatedInitializeServiceMessage */
904
+
905
+ /* Excluded from this release type: _IIsolatedReadyMessage */
906
+
907
+ /* Excluded from this release type: _IIsolatedRenderCallbackParameters */
908
+
909
+ /* Excluded from this release type: _IIsolatedRenderMessage */
910
+
911
+ /* Excluded from this release type: _IIsolatedTokenRequestMessage */
912
+
913
+ /* Excluded from this release type: IIsolatedVisibilityChangeCallbackParameters */
914
+
915
+ /* Excluded from this release type: _ILoadIsolatedAdaptiveCardExtensionParameters */
916
+
823
917
  /* Excluded from this release type: ILocation */
824
918
 
919
+ /**
920
+ * This object represents the error data that the Location action can throw.
921
+ * @remarks API under active development and not ready for use.
922
+ * @public
923
+ */
924
+ export declare interface ILocationErrorArguments extends Omit<IBaseActionErrorArguments, 'type'> {
925
+ /* Excluded from this release type: type */
926
+ /* Excluded from this release type: error */
927
+ }
928
+
825
929
  /* Excluded from this release type: _INavigationBarProperties */
826
930
 
931
+ /* Excluded from this release type: _IOpenUrlActionArgument */
932
+
827
933
  /**
828
934
  * The data parameters for {@link BasePrimaryTextCardView}.
829
935
  *
@@ -840,6 +946,8 @@ export declare interface IPrimaryTextCardParameters extends IBaseCardParameters
840
946
  primaryText: string;
841
947
  }
842
948
 
949
+ /* Excluded from this release type: _IQuickViewActionArgument */
950
+
843
951
  /**
844
952
  * Open the quick view.
845
953
  *
@@ -872,13 +980,45 @@ export declare interface IQuickViewParameters {
872
980
 
873
981
  /* Excluded from this release type: _IQuickViewSubmitData */
874
982
 
983
+ /* Excluded from this release type: _IRenderIsolatedQuickViewParameters */
984
+
985
+ /* Excluded from this release type: _isAdaptiveCardExtensionLKGCachingEnabled */
986
+
875
987
  /* Excluded from this release type: _ISelectActionTemplateAdaptiveCard */
876
988
 
877
989
  /* Excluded from this release type: _ISelectActionTemplateContainer */
878
990
 
879
- /* Excluded from this release type: ISelectMediaAction */
991
+ /**
992
+ * Interface for new Viva Select Media action
993
+ * @remarks API under active development and not ready for use.
994
+ * @public
995
+ */
996
+ export declare interface ISelectMediaAction extends IAction {
997
+ /* Excluded from this release type: type */
998
+ /* Excluded from this release type: parameters */
999
+ }
1000
+
1001
+ /**
1002
+ * The object passed to {@link BaseView.onAction} when a `SelectMedia` Action is executed.
1003
+ * @remarks API under active development and not ready for use.
1004
+ * @public
1005
+ */
1006
+ export declare interface ISelectMediaActionArguments extends Omit<IBaseActionArguments, 'type'> {
1007
+ /* Excluded from this release type: type */
1008
+ /* Excluded from this release type: media */
1009
+ /* Excluded from this release type: data */
1010
+ }
880
1011
 
881
- /* Excluded from this release type: ISelectMediaActionArguments */
1012
+ /**
1013
+ * This object represents the data returned by the native media picker API.
1014
+ * @remarks API under active development and not ready for use.
1015
+ * @public
1016
+ */
1017
+ export declare interface ISelectMediaActionErrorArguments extends Omit<IBaseActionErrorArguments, 'type'> {
1018
+ /* Excluded from this release type: type */
1019
+ /* Excluded from this release type: media */
1020
+ /* Excluded from this release type: error */
1021
+ }
882
1022
 
883
1023
  /* Excluded from this release type: ISelectMediaActionParameters */
884
1024
 
@@ -898,18 +1038,40 @@ export declare interface IShowCardActionArguments extends IBaseActionArguments {
898
1038
  type: 'ShowCard';
899
1039
  }
900
1040
 
901
- /* Excluded from this release type: IShowLocationAction */
1041
+ /**
1042
+ * Interface for Viva Show Location action
1043
+ * @remarks API under active development and not ready for use.
1044
+ * @public
1045
+ */
1046
+ export declare interface IShowLocationAction extends IAction {
1047
+ /* Excluded from this release type: type */
1048
+ /* Excluded from this release type: parameters */
1049
+ }
902
1050
 
903
1051
  /* Excluded from this release type: IShowLocationActionParameters */
904
1052
 
905
1053
  /* Excluded from this release type: IShowLocationCardAction */
906
1054
 
1055
+ /* Excluded from this release type: _IsolatedAdaptiveCardExtensionApplicationMessageEvent */
1056
+
1057
+ /* Excluded from this release type: _IsolatedAdaptiveCardExtensionService */
1058
+
1059
+ /* Excluded from this release type: _IsolatedAdaptiveCardExtensionServiceCallback */
1060
+
1061
+ /* Excluded from this release type: _IsolatedServiceCallbackParameters */
1062
+
1063
+ /* Excluded from this release type: _IsolatedServiceMessageEvent */
1064
+
907
1065
  /**
908
1066
  * SPFx Adaptive Card Extension schema for Adaptive Cards.
909
1067
  *
910
1068
  * @public
911
1069
  */
912
- export declare interface ISPFxAdaptiveCard extends IAdaptiveCard {
1070
+ export declare interface ISPFxAdaptiveCard extends Omit<IAdaptiveCard, 'actions'> {
1071
+ /**
1072
+ * Types of actions being exposed
1073
+ */
1074
+ actions?: (ISubmitAction | IOpenUrlAction | IShowCardAction | ISelectMediaAction | IGetLocationAction | IShowLocationAction)[];
913
1075
  }
914
1076
 
915
1077
  /**
@@ -26,8 +26,10 @@ import { IPropertyPaneConfiguration } from '@microsoft/sp-property-pane';
26
26
  import { IPropertyPaneGroup } from '@microsoft/sp-property-pane';
27
27
  import { ISDKs } from '@microsoft/sp-webpart-base';
28
28
  import { ISerializedServerProcessedData } from '@microsoft/sp-component-base';
29
+ import { IShowCardAction } from 'adaptivecards/lib/schema';
29
30
  import { ISubmitAction } from 'adaptivecards/lib/schema';
30
31
  import { ITextBlock } from 'adaptivecards/lib/schema';
32
+ import { ServiceKey } from '@microsoft/sp-core-library';
31
33
  import { ServiceScope } from '@microsoft/sp-core-library';
32
34
  import { Version } from '@microsoft/sp-core-library';
33
35
 
@@ -43,6 +45,7 @@ export declare class AdaptiveCardExtensionContext extends BaseComponentContext {
43
45
  readonly manifest: IAdaptiveCardExtensionManifest<unknown>;
44
46
  private _aceHost;
45
47
  private _deviceContext;
48
+ private _location;
46
49
  /* Excluded from this release type: __constructor */
47
50
  /* Excluded from this release type: _host */
48
51
  /**
@@ -50,6 +53,7 @@ export declare class AdaptiveCardExtensionContext extends BaseComponentContext {
50
53
  */
51
54
  get propertyPane(): IPropertyPaneAccessor | undefined;
52
55
  get deviceContext(): DeviceContext;
56
+ /* Excluded from this release type: location */
53
57
  }
54
58
 
55
59
  /* Excluded from this release type: _AdaptiveCardExtensionHost */
@@ -217,6 +221,7 @@ export declare class BaseAdaptiveCardExtension<TProperties = {}, TState = Readon
217
221
  /* Excluded from this release type: getCacheSettings */
218
222
  /* Excluded from this release type: getCachedState */
219
223
  /* Excluded from this release type: _internalOnAction */
224
+ /* Excluded from this release type: _internalOnActionError */
220
225
  /**
221
226
  * Lifecycle method called before serialization.
222
227
  *
@@ -319,6 +324,7 @@ export declare class BaseAdaptiveCardExtension<TProperties = {}, TState = Readon
319
324
  */
320
325
  protected renderCard(): string | undefined;
321
326
  /* Excluded from this release type: _getPreFrameworkPropertyPaneConfiguration */
327
+ /* Excluded from this release type: _isFrameworkPropertyPaneEnabled */
322
328
  /**
323
329
  * Sets the visibility of the Adaptive Card Extension and re-render
324
330
  *
@@ -343,6 +349,16 @@ export declare class BaseAdaptiveCardExtension<TProperties = {}, TState = Readon
343
349
  /* Excluded from this release type: _getRenderArguments */
344
350
  /* Excluded from this release type: _propertiesMetadata */
345
351
  /* Excluded from this release type: _getPropertyPaneConfiguration */
352
+ /**
353
+ * The current {@link ViewNavigator}.
354
+ *
355
+ * @remarks If the current {@link BaseAdaptiveCardExtension.renderType} is `Card`
356
+ * then returns {@link BaseAdaptiveCardExtension.cardNavigator}.
357
+ *
358
+ * @remarks If the current {@link BaseAdaptiveCardExtension.renderType} is `QuickView`
359
+ * then returns {@link BaseAdaptiveCardExtension.quickViewNavigator}.
360
+ */
361
+ get navigator(): ViewNavigator<BaseView<TProperties, TState>>;
346
362
  /* Excluded from this release type: _internalDeserialize */
347
363
  /* Excluded from this release type: _internalInitialize */
348
364
  /* Excluded from this release type: _internalSetDisplayMode */
@@ -584,6 +600,7 @@ export declare abstract class BaseView<TProperties = {}, TState = {}, TData = {}
584
600
  * @param action - The {@link IActionArguments} for the current event.
585
601
  */
586
602
  onAction(action: IActionArguments): void;
603
+ /* Excluded from this release type: onActionError */
587
604
  /**
588
605
  * See {@link BaseAdaptiveCardExtension.setState}.
589
606
  */
@@ -608,16 +625,27 @@ export declare type CardSize = 'Medium' | 'Large';
608
625
  *
609
626
  * @public
610
627
  */
611
- export declare type DeviceContext = 'WebView' | 'Mobile';
628
+ export declare type DeviceContext = 'WebView' | 'Mobile' | 'TeamsDesktop';
612
629
 
613
630
  /**
614
631
  * The object passed to {@link BaseView.onAction} when an Adaptive Card Action is executed.
615
632
  *
616
- * @remarks Only `Submit`, `ShowCard` and 'SelectMedia' actions are routed to the {@link BaseView.onAction} handler.
633
+ * @remarks Only `Submit`, `ShowCard`, 'Viva.SelectMedia', 'Viva.GetLocation' and 'Viva.ShowLocation; actions are routed to the {@link BaseView.onAction} handler.
634
+ *
635
+ * @public
636
+ */
637
+ export declare type IActionArguments = ISubmitActionArguments | IShowCardActionArguments | ISelectMediaActionArguments | IGetLocationActionArguments;
638
+
639
+ /* Excluded from this release type: IActionError */
640
+
641
+ /**
642
+ * The object passed to {@link BaseView.onActionError} when an Adaptive Card Action is executed.
643
+ *
644
+ * @remarks Only `Submit`, `ShowCard`, 'Viva.SelectMedia', 'Viva.GetLocation' and 'Viva.ShowLocation; actions are routed to the {@link BaseView.onActionError} handler.
617
645
  *
618
646
  * @public
619
647
  */
620
- export declare type IActionArguments = ISubmitActionArguments | IShowCardActionArguments;
648
+ export declare type IActionErrorArguments = IBaseActionErrorArguments | ISelectMediaActionErrorArguments | ILocationErrorArguments;
621
649
 
622
650
  /* Excluded from this release type: _IAdaptiveCardExtension */
623
651
 
@@ -654,6 +682,15 @@ export declare interface IAdaptiveCardExtensionPropertyMetadata extends ICompone
654
682
 
655
683
  /* Excluded from this release type: _IAdaptiveCardRenderParameters */
656
684
 
685
+ /**
686
+ * This object represents error associated with a single attachment
687
+ * @remarks API under active development and not ready for use.
688
+ * @public
689
+ */
690
+ export declare interface IAttachmentError {
691
+ /* Excluded from this release type: errorCode */
692
+ }
693
+
657
694
  /**
658
695
  * Base object passed to {@link BaseView.onAction} when an Adaptive Card Action is executed.
659
696
  *
@@ -672,6 +709,17 @@ export declare interface IBaseActionArguments {
672
709
  id?: string;
673
710
  }
674
711
 
712
+ /**
713
+ * Base object passed to {@link BaseView.onActionError} when an Adaptive Card OnActionError is executed.
714
+ *
715
+ * @public
716
+ */
717
+ export declare interface IBaseActionErrorArguments {
718
+ /* Excluded from this release type: type */
719
+ /* Excluded from this release type: id */
720
+ /* Excluded from this release type: error */
721
+ }
722
+
675
723
  /**
676
724
  * The primitive data parameters for every Card view.
677
725
  *
@@ -697,6 +745,14 @@ export declare interface IBaseCardParameters {
697
745
  title?: string;
698
746
  }
699
747
 
748
+ /* Excluded from this release type: IBaseIsolatedApplicationMessage */
749
+
750
+ /* Excluded from this release type: _IBaseIsolatedMessage */
751
+
752
+ /* Excluded from this release type: IBaseIsolatedServiceCallbackParameters */
753
+
754
+ /* Excluded from this release type: _IBaseIsolatedServiceMessage */
755
+
700
756
  /**
701
757
  * The data parameters for {@link BaseBasicCardView}.
702
758
  *
@@ -795,9 +851,25 @@ export declare interface IExternalLinkParameters {
795
851
  target: string;
796
852
  }
797
853
 
798
- /* Excluded from this release type: IGetLocationAction */
854
+ /**
855
+ * Interface for Viva Get Location action
856
+ * @remarks API under active development and not ready for use.
857
+ * @public
858
+ */
859
+ export declare interface IGetLocationAction extends IAction {
860
+ /* Excluded from this release type: type */
861
+ /* Excluded from this release type: parameters */
862
+ }
799
863
 
800
- /* Excluded from this release type: IGetLocationActionArguments */
864
+ /**
865
+ * The object passed to {@link BaseView.onAction} when a Get location Action is executed.
866
+ * @remarks API under active development and not ready for use.
867
+ * @public
868
+ */
869
+ export declare interface IGetLocationActionArguments extends Omit<IBaseActionArguments, 'type'> {
870
+ /* Excluded from this release type: type */
871
+ /* Excluded from this release type: location */
872
+ }
801
873
 
802
874
  /* Excluded from this release type: IGetLocationActionParameters */
803
875
 
@@ -820,10 +892,44 @@ export declare interface IImageCardParameters extends IBaseCardParameters {
820
892
  primaryText: string;
821
893
  }
822
894
 
895
+ /* Excluded from this release type: _IIsolatedAction */
896
+
897
+ /* Excluded from this release type: _IIsolatedActionServiceMessage */
898
+
899
+ /* Excluded from this release type: _IIsolatedErrorCallbackParameters */
900
+
901
+ /* Excluded from this release type: _IIsolatedErrorMessage */
902
+
903
+ /* Excluded from this release type: _IIsolatedInitializeServiceMessage */
904
+
905
+ /* Excluded from this release type: _IIsolatedReadyMessage */
906
+
907
+ /* Excluded from this release type: _IIsolatedRenderCallbackParameters */
908
+
909
+ /* Excluded from this release type: _IIsolatedRenderMessage */
910
+
911
+ /* Excluded from this release type: _IIsolatedTokenRequestMessage */
912
+
913
+ /* Excluded from this release type: IIsolatedVisibilityChangeCallbackParameters */
914
+
915
+ /* Excluded from this release type: _ILoadIsolatedAdaptiveCardExtensionParameters */
916
+
823
917
  /* Excluded from this release type: ILocation */
824
918
 
919
+ /**
920
+ * This object represents the error data that the Location action can throw.
921
+ * @remarks API under active development and not ready for use.
922
+ * @public
923
+ */
924
+ export declare interface ILocationErrorArguments extends Omit<IBaseActionErrorArguments, 'type'> {
925
+ /* Excluded from this release type: type */
926
+ /* Excluded from this release type: error */
927
+ }
928
+
825
929
  /* Excluded from this release type: _INavigationBarProperties */
826
930
 
931
+ /* Excluded from this release type: _IOpenUrlActionArgument */
932
+
827
933
  /**
828
934
  * The data parameters for {@link BasePrimaryTextCardView}.
829
935
  *
@@ -840,6 +946,8 @@ export declare interface IPrimaryTextCardParameters extends IBaseCardParameters
840
946
  primaryText: string;
841
947
  }
842
948
 
949
+ /* Excluded from this release type: _IQuickViewActionArgument */
950
+
843
951
  /**
844
952
  * Open the quick view.
845
953
  *
@@ -872,13 +980,45 @@ export declare interface IQuickViewParameters {
872
980
 
873
981
  /* Excluded from this release type: _IQuickViewSubmitData */
874
982
 
983
+ /* Excluded from this release type: _IRenderIsolatedQuickViewParameters */
984
+
985
+ /* Excluded from this release type: _isAdaptiveCardExtensionLKGCachingEnabled */
986
+
875
987
  /* Excluded from this release type: _ISelectActionTemplateAdaptiveCard */
876
988
 
877
989
  /* Excluded from this release type: _ISelectActionTemplateContainer */
878
990
 
879
- /* Excluded from this release type: ISelectMediaAction */
991
+ /**
992
+ * Interface for new Viva Select Media action
993
+ * @remarks API under active development and not ready for use.
994
+ * @public
995
+ */
996
+ export declare interface ISelectMediaAction extends IAction {
997
+ /* Excluded from this release type: type */
998
+ /* Excluded from this release type: parameters */
999
+ }
1000
+
1001
+ /**
1002
+ * The object passed to {@link BaseView.onAction} when a `SelectMedia` Action is executed.
1003
+ * @remarks API under active development and not ready for use.
1004
+ * @public
1005
+ */
1006
+ export declare interface ISelectMediaActionArguments extends Omit<IBaseActionArguments, 'type'> {
1007
+ /* Excluded from this release type: type */
1008
+ /* Excluded from this release type: media */
1009
+ /* Excluded from this release type: data */
1010
+ }
880
1011
 
881
- /* Excluded from this release type: ISelectMediaActionArguments */
1012
+ /**
1013
+ * This object represents the data returned by the native media picker API.
1014
+ * @remarks API under active development and not ready for use.
1015
+ * @public
1016
+ */
1017
+ export declare interface ISelectMediaActionErrorArguments extends Omit<IBaseActionErrorArguments, 'type'> {
1018
+ /* Excluded from this release type: type */
1019
+ /* Excluded from this release type: media */
1020
+ /* Excluded from this release type: error */
1021
+ }
882
1022
 
883
1023
  /* Excluded from this release type: ISelectMediaActionParameters */
884
1024
 
@@ -898,18 +1038,40 @@ export declare interface IShowCardActionArguments extends IBaseActionArguments {
898
1038
  type: 'ShowCard';
899
1039
  }
900
1040
 
901
- /* Excluded from this release type: IShowLocationAction */
1041
+ /**
1042
+ * Interface for Viva Show Location action
1043
+ * @remarks API under active development and not ready for use.
1044
+ * @public
1045
+ */
1046
+ export declare interface IShowLocationAction extends IAction {
1047
+ /* Excluded from this release type: type */
1048
+ /* Excluded from this release type: parameters */
1049
+ }
902
1050
 
903
1051
  /* Excluded from this release type: IShowLocationActionParameters */
904
1052
 
905
1053
  /* Excluded from this release type: IShowLocationCardAction */
906
1054
 
1055
+ /* Excluded from this release type: _IsolatedAdaptiveCardExtensionApplicationMessageEvent */
1056
+
1057
+ /* Excluded from this release type: _IsolatedAdaptiveCardExtensionService */
1058
+
1059
+ /* Excluded from this release type: _IsolatedAdaptiveCardExtensionServiceCallback */
1060
+
1061
+ /* Excluded from this release type: _IsolatedServiceCallbackParameters */
1062
+
1063
+ /* Excluded from this release type: _IsolatedServiceMessageEvent */
1064
+
907
1065
  /**
908
1066
  * SPFx Adaptive Card Extension schema for Adaptive Cards.
909
1067
  *
910
1068
  * @public
911
1069
  */
912
- export declare interface ISPFxAdaptiveCard extends IAdaptiveCard {
1070
+ export declare interface ISPFxAdaptiveCard extends Omit<IAdaptiveCard, 'actions'> {
1071
+ /**
1072
+ * Types of actions being exposed
1073
+ */
1074
+ actions?: (ISubmitAction | IOpenUrlAction | IShowCardAction | ISelectMediaAction | IGetLocationAction | IShowLocationAction)[];
913
1075
  }
914
1076
 
915
1077
  /**