@microsoft/sp-adaptive-card-extension-base 1.14.0-beta.4 → 1.14.0-beta.5
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.
- package/dist/eeec822e-c28a-46b4-affc-7058e4c1aa80.manifest.json +69 -64
- package/dist/index-internal-beta.d.ts +199 -9
- package/dist/index-internal-public.d.ts +167 -9
- package/dist/index-internal.d.ts +199 -9
- package/dist/sp-adaptive-card-extension-base_default_173ae32b19aec2e7570e.js +1 -0
- package/dist/sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js +1 -0
- package/dist/sp-adaptive-card-extension-base_qps-ploc_173ae32b19aec2e7570e.js +1 -0
- package/dist/sp-adaptive-card-extension-base_qps-ploca_173ae32b19aec2e7570e.js +1 -0
- package/dist/test-api/AdaptiveCardExtensionTestWrapper.js +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/BaseAdaptiveCardExtension.js +36 -3
- package/lib-commonjs/ac-template/util/actionButtonHelper.js +17 -1
- package/lib-commonjs/common/Flights.js +8 -1
- package/lib-commonjs/common/Killswitches.js +9 -1
- package/lib-commonjs/index.js +4 -0
- package/lib-commonjs/isolation/IsolatedAdaptiveCardExtensionService.js +217 -0
- package/lib-commonjs/isolation/interfaces/IIsolatedAction.js +3 -0
- package/lib-commonjs/isolation/interfaces/IIsolatedListener.js +3 -0
- package/lib-commonjs/isolation/interfaces/IIsolatedServiceCallbackParameters.js +3 -0
- package/lib-commonjs/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.js +3 -0
- package/lib-commonjs/isolation/interfaces/IRenderIsolatedQuickViewParameters.js +3 -0
- package/lib-commonjs/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.js +3 -0
- package/lib-commonjs/isolation/interfaces/IsolatedServiceMessageEvent.js +3 -0
- package/lib-commonjs/test-api/AdaptiveCardExtensionTestWrapper.js +1 -1
- package/lib-commonjs/views/base/BaseView.js +10 -0
- package/package.json +8 -8
- package/dist/sp-adaptive-card-extension-base_default_09bf52dcdf0550fa258c.js +0 -1
- package/dist/sp-adaptive-card-extension-base_en-us_09bf52dcdf0550fa258c.js +0 -1
- package/dist/sp-adaptive-card-extension-base_qps-ploc_09bf52dcdf0550fa258c.js +0 -1
- package/dist/sp-adaptive-card-extension-base_qps-ploca_09bf52dcdf0550fa258c.js +0 -1
|
@@ -13,71 +13,71 @@
|
|
|
13
13
|
"sp-adaptive-card-extension-base": {
|
|
14
14
|
"type": "localizedPath",
|
|
15
15
|
"paths": {
|
|
16
|
-
"default": "sp-adaptive-card-extension-
|
|
17
|
-
"en-US": "sp-adaptive-card-extension-base_en-
|
|
18
|
-
"qps-ploca": "sp-adaptive-card-extension-base_qps-
|
|
19
|
-
"qps-ploc": "sp-adaptive-card-extension-base_qps-
|
|
20
|
-
"en-GB": "sp-adaptive-card-extension-base_en-
|
|
21
|
-
"en-NZ": "sp-adaptive-card-extension-base_en-
|
|
22
|
-
"en-IE": "sp-adaptive-card-extension-base_en-
|
|
23
|
-
"en-AU": "sp-adaptive-card-extension-base_en-
|
|
24
|
-
"bn": "sp-adaptive-card-extension-base_en-
|
|
25
|
-
"chr": "sp-adaptive-card-extension-base_en-
|
|
26
|
-
"dv": "sp-adaptive-card-extension-base_en-
|
|
27
|
-
"div": "sp-adaptive-card-extension-base_en-
|
|
28
|
-
"en": "sp-adaptive-card-extension-base_en-
|
|
29
|
-
"fil": "sp-adaptive-card-extension-base_en-
|
|
30
|
-
"haw": "sp-adaptive-card-extension-base_en-
|
|
31
|
-
"iu": "sp-adaptive-card-extension-base_en-
|
|
32
|
-
"lo": "sp-adaptive-card-extension-base_en-
|
|
33
|
-
"moh": "sp-adaptive-card-extension-base_en-
|
|
34
|
-
"sq": "sp-adaptive-card-extension-base_en-
|
|
35
|
-
"am": "sp-adaptive-card-extension-base_en-
|
|
36
|
-
"hy": "sp-adaptive-card-extension-base_en-
|
|
37
|
-
"mk": "sp-adaptive-card-extension-base_en-
|
|
38
|
-
"bs": "sp-adaptive-card-extension-base_en-
|
|
39
|
-
"my": "sp-adaptive-card-extension-base_en-
|
|
40
|
-
"dz": "sp-adaptive-card-extension-base_en-
|
|
41
|
-
"en-CY": "sp-adaptive-card-extension-base_en-
|
|
42
|
-
"en-EG": "sp-adaptive-card-extension-base_en-
|
|
43
|
-
"en-IL": "sp-adaptive-card-extension-base_en-
|
|
44
|
-
"en-IS": "sp-adaptive-card-extension-base_en-
|
|
45
|
-
"en-JO": "sp-adaptive-card-extension-base_en-
|
|
46
|
-
"en-KE": "sp-adaptive-card-extension-base_en-
|
|
47
|
-
"en-KW": "sp-adaptive-card-extension-base_en-
|
|
48
|
-
"en-MK": "sp-adaptive-card-extension-base_en-
|
|
49
|
-
"en-MT": "sp-adaptive-card-extension-base_en-
|
|
50
|
-
"en-PK": "sp-adaptive-card-extension-base_en-
|
|
51
|
-
"en-QA": "sp-adaptive-card-extension-base_en-
|
|
52
|
-
"en-SA": "sp-adaptive-card-extension-base_en-
|
|
53
|
-
"en-LK": "sp-adaptive-card-extension-base_en-
|
|
54
|
-
"en-AE": "sp-adaptive-card-extension-base_en-
|
|
55
|
-
"en-VN": "sp-adaptive-card-extension-base_en-
|
|
56
|
-
"is": "sp-adaptive-card-extension-base_en-
|
|
57
|
-
"km": "sp-adaptive-card-extension-base_en-
|
|
58
|
-
"kh": "sp-adaptive-card-extension-base_en-
|
|
59
|
-
"mt": "sp-adaptive-card-extension-base_en-
|
|
60
|
-
"fa": "sp-adaptive-card-extension-base_en-
|
|
61
|
-
"gd": "sp-adaptive-card-extension-base_en-
|
|
62
|
-
"sr-Cyrl-BA": "sp-adaptive-card-extension-base_en-
|
|
63
|
-
"sr-Latn-BA": "sp-adaptive-card-extension-base_en-
|
|
64
|
-
"sd": "sp-adaptive-card-extension-base_en-
|
|
65
|
-
"si": "sp-adaptive-card-extension-base_en-
|
|
66
|
-
"so": "sp-adaptive-card-extension-base_en-
|
|
67
|
-
"ti-ET": "sp-adaptive-card-extension-base_en-
|
|
68
|
-
"uz": "sp-adaptive-card-extension-base_en-
|
|
69
|
-
"en-SG": "sp-adaptive-card-extension-base_en-
|
|
70
|
-
"en-HK": "sp-adaptive-card-extension-base_en-
|
|
71
|
-
"en-MY": "sp-adaptive-card-extension-base_en-
|
|
72
|
-
"en-PH": "sp-adaptive-card-extension-base_en-
|
|
73
|
-
"en-TT": "sp-adaptive-card-extension-base_en-
|
|
74
|
-
"en-AZ": "sp-adaptive-card-extension-base_en-
|
|
75
|
-
"en-BH": "sp-adaptive-card-extension-base_en-
|
|
76
|
-
"en-BN": "sp-adaptive-card-extension-base_en-
|
|
77
|
-
"en-ID": "sp-adaptive-card-extension-base_en-
|
|
78
|
-
"mi": "sp-adaptive-card-extension-base_en-
|
|
16
|
+
"default": "sp-adaptive-card-extension-base_default_173ae32b19aec2e7570e.js",
|
|
17
|
+
"en-US": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
18
|
+
"qps-ploca": "sp-adaptive-card-extension-base_qps-ploca_173ae32b19aec2e7570e.js",
|
|
19
|
+
"qps-ploc": "sp-adaptive-card-extension-base_qps-ploc_173ae32b19aec2e7570e.js",
|
|
20
|
+
"en-GB": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
21
|
+
"en-NZ": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
22
|
+
"en-IE": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
23
|
+
"en-AU": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
24
|
+
"bn": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
25
|
+
"chr": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
26
|
+
"dv": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
27
|
+
"div": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
28
|
+
"en": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
29
|
+
"fil": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
30
|
+
"haw": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
31
|
+
"iu": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
32
|
+
"lo": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
33
|
+
"moh": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
34
|
+
"sq": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
35
|
+
"am": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
36
|
+
"hy": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
37
|
+
"mk": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
38
|
+
"bs": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
39
|
+
"my": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
40
|
+
"dz": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
41
|
+
"en-CY": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
42
|
+
"en-EG": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
43
|
+
"en-IL": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
44
|
+
"en-IS": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
45
|
+
"en-JO": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
46
|
+
"en-KE": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
47
|
+
"en-KW": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
48
|
+
"en-MK": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
49
|
+
"en-MT": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
50
|
+
"en-PK": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
51
|
+
"en-QA": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
52
|
+
"en-SA": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
53
|
+
"en-LK": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
54
|
+
"en-AE": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
55
|
+
"en-VN": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
56
|
+
"is": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
57
|
+
"km": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
58
|
+
"kh": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
59
|
+
"mt": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
60
|
+
"fa": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
61
|
+
"gd": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
62
|
+
"sr-Cyrl-BA": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
63
|
+
"sr-Latn-BA": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
64
|
+
"sd": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
65
|
+
"si": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
66
|
+
"so": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
67
|
+
"ti-ET": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
68
|
+
"uz": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
69
|
+
"en-SG": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
70
|
+
"en-HK": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
71
|
+
"en-MY": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
72
|
+
"en-PH": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
73
|
+
"en-TT": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
74
|
+
"en-AZ": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
75
|
+
"en-BH": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
76
|
+
"en-BN": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
77
|
+
"en-ID": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js",
|
|
78
|
+
"mi": "sp-adaptive-card-extension-base_en-us_173ae32b19aec2e7570e.js"
|
|
79
79
|
},
|
|
80
|
-
"defaultPath": "sp-adaptive-card-extension-
|
|
80
|
+
"defaultPath": "sp-adaptive-card-extension-base_default_173ae32b19aec2e7570e.js"
|
|
81
81
|
},
|
|
82
82
|
"tslib": {
|
|
83
83
|
"type": "component",
|
|
@@ -104,6 +104,11 @@
|
|
|
104
104
|
"id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
|
|
105
105
|
"version": "1.14.0"
|
|
106
106
|
},
|
|
107
|
+
"@microsoft/sp-page-context": {
|
|
108
|
+
"type": "component",
|
|
109
|
+
"id": "1c4541f7-5c31-41aa-9fa8-fbc9dc14c0a8",
|
|
110
|
+
"version": "1.14.0"
|
|
111
|
+
},
|
|
107
112
|
"@microsoft/sp-diagnostics": {
|
|
108
113
|
"type": "component",
|
|
109
114
|
"id": "78359e4b-07c2-43c6-8d0b-d060b4d577e8",
|
|
@@ -27,8 +27,10 @@ import { IPropertyPaneConfiguration } from '@microsoft/sp-property-pane';
|
|
|
27
27
|
import { IPropertyPaneGroup } from '@microsoft/sp-property-pane';
|
|
28
28
|
import { ISDKs } from '@microsoft/sp-webpart-base';
|
|
29
29
|
import { ISerializedServerProcessedData } from '@microsoft/sp-component-base';
|
|
30
|
+
import { IShowCardAction } from 'adaptivecards/lib/schema';
|
|
30
31
|
import { ISubmitAction } from 'adaptivecards/lib/schema';
|
|
31
32
|
import { ITextBlock } from 'adaptivecards/lib/schema';
|
|
33
|
+
import { ServiceKey } from '@microsoft/sp-core-library';
|
|
32
34
|
import { ServiceScope } from '@microsoft/sp-core-library';
|
|
33
35
|
import { Version } from '@microsoft/sp-core-library';
|
|
34
36
|
|
|
@@ -235,6 +237,7 @@ export declare class BaseAdaptiveCardExtension<TProperties = {}, TState = Readon
|
|
|
235
237
|
*/
|
|
236
238
|
protected getCachedState(state: TState): Partial<TState>;
|
|
237
239
|
/* Excluded from this release type: _internalOnAction */
|
|
240
|
+
/* Excluded from this release type: _internalOnActionError */
|
|
238
241
|
/**
|
|
239
242
|
* Lifecycle method called before serialization.
|
|
240
243
|
*
|
|
@@ -374,6 +377,16 @@ export declare class BaseAdaptiveCardExtension<TProperties = {}, TState = Readon
|
|
|
374
377
|
/* Excluded from this release type: _getRenderArguments */
|
|
375
378
|
/* Excluded from this release type: _propertiesMetadata */
|
|
376
379
|
/* Excluded from this release type: _getPropertyPaneConfiguration */
|
|
380
|
+
/**
|
|
381
|
+
* The current {@link ViewNavigator}.
|
|
382
|
+
*
|
|
383
|
+
* @remarks If the current {@link BaseAdaptiveCardExtension.renderType} is `Card`
|
|
384
|
+
* then returns {@link BaseAdaptiveCardExtension.cardNavigator}.
|
|
385
|
+
*
|
|
386
|
+
* @remarks If the current {@link BaseAdaptiveCardExtension.renderType} is `QuickView`
|
|
387
|
+
* then returns {@link BaseAdaptiveCardExtension.quickViewNavigator}.
|
|
388
|
+
*/
|
|
389
|
+
get navigator(): ViewNavigator<BaseView<TProperties, TState>>;
|
|
377
390
|
/* Excluded from this release type: _internalDeserialize */
|
|
378
391
|
/* Excluded from this release type: _internalInitialize */
|
|
379
392
|
/* Excluded from this release type: _internalSetDisplayMode */
|
|
@@ -615,6 +628,14 @@ export declare abstract class BaseView<TProperties = {}, TState = {}, TData = {}
|
|
|
615
628
|
* @param action - The {@link IActionArguments} for the current event.
|
|
616
629
|
*/
|
|
617
630
|
onAction(action: IActionArguments): void;
|
|
631
|
+
/**
|
|
632
|
+
* @beta
|
|
633
|
+
*
|
|
634
|
+
* Error handler for Adaptive Card Actions.
|
|
635
|
+
*
|
|
636
|
+
* @param error - The {@link IActionErrorArguments} for the current event.
|
|
637
|
+
*/
|
|
638
|
+
onActionError(error: IActionErrorArguments): void;
|
|
618
639
|
/**
|
|
619
640
|
* See {@link BaseAdaptiveCardExtension.setState}.
|
|
620
641
|
*/
|
|
@@ -639,16 +660,32 @@ export declare type CardSize = 'Medium' | 'Large';
|
|
|
639
660
|
*
|
|
640
661
|
* @public
|
|
641
662
|
*/
|
|
642
|
-
export declare type DeviceContext = 'WebView' | 'Mobile';
|
|
663
|
+
export declare type DeviceContext = 'WebView' | 'Mobile' | 'TeamsDesktop';
|
|
643
664
|
|
|
644
665
|
/**
|
|
645
666
|
* The object passed to {@link BaseView.onAction} when an Adaptive Card Action is executed.
|
|
646
667
|
*
|
|
647
|
-
* @remarks Only `Submit`, `ShowCard
|
|
668
|
+
* @remarks Only `Submit`, `ShowCard`, 'Viva.SelectMedia', 'Viva.GetLocation' and 'Viva.ShowLocation; actions are routed to the {@link BaseView.onAction} handler.
|
|
648
669
|
*
|
|
649
670
|
* @public
|
|
650
671
|
*/
|
|
651
|
-
export declare type IActionArguments = ISubmitActionArguments | IShowCardActionArguments;
|
|
672
|
+
export declare type IActionArguments = ISubmitActionArguments | IShowCardActionArguments | ISelectMediaActionArguments | IGetLocationActionArguments;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* @beta
|
|
676
|
+
*/
|
|
677
|
+
export declare type IActionError = {
|
|
678
|
+
code: string;
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* The object passed to {@link BaseView.onActionError} when an Adaptive Card Action is executed.
|
|
683
|
+
*
|
|
684
|
+
* @remarks Only `Submit`, `ShowCard`, 'Viva.SelectMedia', 'Viva.GetLocation' and 'Viva.ShowLocation; actions are routed to the {@link BaseView.onActionError} handler.
|
|
685
|
+
*
|
|
686
|
+
* @public
|
|
687
|
+
*/
|
|
688
|
+
export declare type IActionErrorArguments = IBaseActionErrorArguments | ISelectMediaActionErrorArguments | ILocationErrorArguments;
|
|
652
689
|
|
|
653
690
|
/* Excluded from this release type: _IAdaptiveCardExtension */
|
|
654
691
|
|
|
@@ -683,6 +720,19 @@ export declare interface IAdaptiveCardExtensionPropertyMetadata extends ICompone
|
|
|
683
720
|
|
|
684
721
|
/* Excluded from this release type: _IAdaptiveCardRenderParameters */
|
|
685
722
|
|
|
723
|
+
/**
|
|
724
|
+
* This object represents error associated with a single attachment
|
|
725
|
+
* @remarks API under active development and not ready for use.
|
|
726
|
+
* @public
|
|
727
|
+
*/
|
|
728
|
+
export declare interface IAttachmentError {
|
|
729
|
+
/**
|
|
730
|
+
* Error code associated with a particular attachment
|
|
731
|
+
* @beta
|
|
732
|
+
*/
|
|
733
|
+
errorCode: 'FileTooLarge' | 'IncorrectFileFormat';
|
|
734
|
+
}
|
|
735
|
+
|
|
686
736
|
/**
|
|
687
737
|
* Base object passed to {@link BaseView.onAction} when an Adaptive Card Action is executed.
|
|
688
738
|
*
|
|
@@ -701,6 +751,29 @@ export declare interface IBaseActionArguments {
|
|
|
701
751
|
id?: string;
|
|
702
752
|
}
|
|
703
753
|
|
|
754
|
+
/**
|
|
755
|
+
* Base object passed to {@link BaseView.onActionError} when an Adaptive Card OnActionError is executed.
|
|
756
|
+
*
|
|
757
|
+
* @public
|
|
758
|
+
*/
|
|
759
|
+
export declare interface IBaseActionErrorArguments {
|
|
760
|
+
/**
|
|
761
|
+
* The type of Adaptive Card Action thsat caused the error.
|
|
762
|
+
* @beta
|
|
763
|
+
*/
|
|
764
|
+
type: 'Submit' | 'ShowCard' | 'VivaAction.SelectMedia' | 'VivaAction.GetLocation' | 'VivaAction.ShowLocation';
|
|
765
|
+
/**
|
|
766
|
+
* The id specified in the Adaptive Card template
|
|
767
|
+
* @beta
|
|
768
|
+
*/
|
|
769
|
+
id?: string;
|
|
770
|
+
/**
|
|
771
|
+
* The error thrown by the action
|
|
772
|
+
* @beta
|
|
773
|
+
*/
|
|
774
|
+
error: IActionError;
|
|
775
|
+
}
|
|
776
|
+
|
|
704
777
|
/**
|
|
705
778
|
* The primitive data parameters for every Card view.
|
|
706
779
|
*
|
|
@@ -726,6 +799,14 @@ export declare interface IBaseCardParameters {
|
|
|
726
799
|
title?: string;
|
|
727
800
|
}
|
|
728
801
|
|
|
802
|
+
/* Excluded from this release type: IBaseIsolatedApplicationMessage */
|
|
803
|
+
|
|
804
|
+
/* Excluded from this release type: _IBaseIsolatedMessage */
|
|
805
|
+
|
|
806
|
+
/* Excluded from this release type: IBaseIsolatedServiceCallbackParameters */
|
|
807
|
+
|
|
808
|
+
/* Excluded from this release type: _IBaseIsolatedServiceMessage */
|
|
809
|
+
|
|
729
810
|
/**
|
|
730
811
|
* The data parameters for {@link BaseBasicCardView}.
|
|
731
812
|
*
|
|
@@ -853,15 +934,17 @@ export declare interface IExternalLinkParameters {
|
|
|
853
934
|
/**
|
|
854
935
|
* Interface for Viva Get Location action
|
|
855
936
|
* @remarks API under active development and not ready for use.
|
|
856
|
-
* @
|
|
937
|
+
* @public
|
|
857
938
|
*/
|
|
858
939
|
export declare interface IGetLocationAction extends IAction {
|
|
859
940
|
/**
|
|
860
941
|
* Indicates this is a Viva Select Location button.
|
|
942
|
+
* @beta
|
|
861
943
|
*/
|
|
862
944
|
type: 'VivaAction.GetLocation';
|
|
863
945
|
/**
|
|
864
946
|
* Parameters that can be supplied with the Viva Get Location Action.
|
|
947
|
+
* @beta
|
|
865
948
|
*/
|
|
866
949
|
parameters?: IGetLocationActionParameters;
|
|
867
950
|
}
|
|
@@ -869,16 +952,18 @@ export declare interface IGetLocationAction extends IAction {
|
|
|
869
952
|
/**
|
|
870
953
|
* The object passed to {@link BaseView.onAction} when a Get location Action is executed.
|
|
871
954
|
* @remarks API under active development and not ready for use.
|
|
872
|
-
* @
|
|
955
|
+
* @public
|
|
873
956
|
*/
|
|
874
957
|
export declare interface IGetLocationActionArguments extends Omit<IBaseActionArguments, 'type'> {
|
|
875
958
|
/**
|
|
876
959
|
* The type of Adaptive Card Action.
|
|
960
|
+
* @beta
|
|
877
961
|
*/
|
|
878
962
|
type: 'VivaAction.GetLocation';
|
|
879
963
|
/**
|
|
880
964
|
* Coordinates of the location.
|
|
881
965
|
* In case of erroneous situation, location object will be undefined.
|
|
966
|
+
* @beta
|
|
882
967
|
*/
|
|
883
968
|
location?: ILocation;
|
|
884
969
|
}
|
|
@@ -929,6 +1014,28 @@ export declare interface IImageCardParameters extends IBaseCardParameters {
|
|
|
929
1014
|
primaryText: string;
|
|
930
1015
|
}
|
|
931
1016
|
|
|
1017
|
+
/* Excluded from this release type: _IIsolatedAction */
|
|
1018
|
+
|
|
1019
|
+
/* Excluded from this release type: _IIsolatedActionServiceMessage */
|
|
1020
|
+
|
|
1021
|
+
/* Excluded from this release type: _IIsolatedErrorCallbackParameters */
|
|
1022
|
+
|
|
1023
|
+
/* Excluded from this release type: _IIsolatedErrorMessage */
|
|
1024
|
+
|
|
1025
|
+
/* Excluded from this release type: _IIsolatedInitializeServiceMessage */
|
|
1026
|
+
|
|
1027
|
+
/* Excluded from this release type: _IIsolatedReadyMessage */
|
|
1028
|
+
|
|
1029
|
+
/* Excluded from this release type: _IIsolatedRenderCallbackParameters */
|
|
1030
|
+
|
|
1031
|
+
/* Excluded from this release type: _IIsolatedRenderMessage */
|
|
1032
|
+
|
|
1033
|
+
/* Excluded from this release type: _IIsolatedTokenRequestMessage */
|
|
1034
|
+
|
|
1035
|
+
/* Excluded from this release type: IIsolatedVisibilityChangeCallbackParameters */
|
|
1036
|
+
|
|
1037
|
+
/* Excluded from this release type: _ILoadIsolatedAdaptiveCardExtensionParameters */
|
|
1038
|
+
|
|
932
1039
|
/**
|
|
933
1040
|
* Interface for location coordinates
|
|
934
1041
|
* @remarks API under active development and is not ready for use.
|
|
@@ -953,8 +1060,30 @@ export declare interface ILocation {
|
|
|
953
1060
|
accuracy?: number;
|
|
954
1061
|
}
|
|
955
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* This object represents the error data that the Location action can throw.
|
|
1065
|
+
* @remarks API under active development and not ready for use.
|
|
1066
|
+
* @public
|
|
1067
|
+
*/
|
|
1068
|
+
export declare interface ILocationErrorArguments extends Omit<IBaseActionErrorArguments, 'type'> {
|
|
1069
|
+
/**
|
|
1070
|
+
* Indicates this is a Viva Select Location button.
|
|
1071
|
+
* @beta
|
|
1072
|
+
*/
|
|
1073
|
+
type: 'VivaAction.GetLocation';
|
|
1074
|
+
/**
|
|
1075
|
+
* Error codes specific to the Get Location Error
|
|
1076
|
+
* @beta
|
|
1077
|
+
*/
|
|
1078
|
+
error: {
|
|
1079
|
+
code: 'InternalError' | 'PermissionDenied';
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
|
|
956
1083
|
/* Excluded from this release type: _INavigationBarProperties */
|
|
957
1084
|
|
|
1085
|
+
/* Excluded from this release type: _IOpenUrlActionArgument */
|
|
1086
|
+
|
|
958
1087
|
/**
|
|
959
1088
|
* The data parameters for {@link BasePrimaryTextCardView}.
|
|
960
1089
|
*
|
|
@@ -971,6 +1100,8 @@ export declare interface IPrimaryTextCardParameters extends IBaseCardParameters
|
|
|
971
1100
|
primaryText: string;
|
|
972
1101
|
}
|
|
973
1102
|
|
|
1103
|
+
/* Excluded from this release type: _IQuickViewActionArgument */
|
|
1104
|
+
|
|
974
1105
|
/**
|
|
975
1106
|
* Open the quick view.
|
|
976
1107
|
*
|
|
@@ -1003,6 +1134,10 @@ export declare interface IQuickViewParameters {
|
|
|
1003
1134
|
|
|
1004
1135
|
/* Excluded from this release type: _IQuickViewSubmitData */
|
|
1005
1136
|
|
|
1137
|
+
/* Excluded from this release type: _IRenderIsolatedQuickViewParameters */
|
|
1138
|
+
|
|
1139
|
+
/* Excluded from this release type: _isAdaptiveCardExtensionLKGCachingEnabled */
|
|
1140
|
+
|
|
1006
1141
|
/* Excluded from this release type: _ISelectActionTemplateAdaptiveCard */
|
|
1007
1142
|
|
|
1008
1143
|
/* Excluded from this release type: _ISelectActionTemplateContainer */
|
|
@@ -1010,29 +1145,64 @@ export declare interface IQuickViewParameters {
|
|
|
1010
1145
|
/**
|
|
1011
1146
|
* Interface for new Viva Select Media action
|
|
1012
1147
|
* @remarks API under active development and not ready for use.
|
|
1013
|
-
* @
|
|
1148
|
+
* @public
|
|
1014
1149
|
*/
|
|
1015
1150
|
export declare interface ISelectMediaAction extends IAction {
|
|
1151
|
+
/**
|
|
1152
|
+
* Indicates this is a Viva Select Location button.
|
|
1153
|
+
* @beta
|
|
1154
|
+
*/
|
|
1016
1155
|
type: 'VivaAction.SelectMedia';
|
|
1156
|
+
/**
|
|
1157
|
+
* Parameters that can be provided to the ISelectMedia Action
|
|
1158
|
+
* @beta
|
|
1159
|
+
*/
|
|
1017
1160
|
parameters: ISelectMediaActionParameters;
|
|
1018
1161
|
}
|
|
1019
1162
|
|
|
1020
1163
|
/**
|
|
1021
1164
|
* The object passed to {@link BaseView.onAction} when a `SelectMedia` Action is executed.
|
|
1022
1165
|
* @remarks API under active development and not ready for use.
|
|
1023
|
-
* @
|
|
1166
|
+
* @public
|
|
1024
1167
|
*/
|
|
1025
1168
|
export declare interface ISelectMediaActionArguments extends Omit<IBaseActionArguments, 'type'> {
|
|
1026
1169
|
/**
|
|
1027
1170
|
* The type of Adaptive Card Action.
|
|
1171
|
+
* @beta
|
|
1028
1172
|
*/
|
|
1029
1173
|
type: 'VivaAction.SelectMedia';
|
|
1030
1174
|
/**
|
|
1031
1175
|
* media object returned media picker API
|
|
1176
|
+
* @beta
|
|
1032
1177
|
*/
|
|
1033
1178
|
media: ISelectMediaAttachment[];
|
|
1034
1179
|
}
|
|
1035
1180
|
|
|
1181
|
+
/**
|
|
1182
|
+
* This object represents the data returned by the native media picker API.
|
|
1183
|
+
* @remarks API under active development and not ready for use.
|
|
1184
|
+
* @public
|
|
1185
|
+
*/
|
|
1186
|
+
export declare interface ISelectMediaActionErrorArguments extends Omit<IBaseActionErrorArguments, 'type'> {
|
|
1187
|
+
/**
|
|
1188
|
+
* The type of Adaptive Card Action.
|
|
1189
|
+
* @beta
|
|
1190
|
+
*/
|
|
1191
|
+
type: 'VivaAction.SelectMedia';
|
|
1192
|
+
/**
|
|
1193
|
+
* media object returned media picker API
|
|
1194
|
+
* @beta
|
|
1195
|
+
*/
|
|
1196
|
+
media: ISelectMediaAttachment[] | undefined;
|
|
1197
|
+
/**
|
|
1198
|
+
* Error codes specific to the Select Media Action.
|
|
1199
|
+
* @beta
|
|
1200
|
+
*/
|
|
1201
|
+
error: {
|
|
1202
|
+
code: 'FileSelectionFailed' | 'FilesSelectedAreIncompatible';
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1036
1206
|
/**
|
|
1037
1207
|
* Parameters that can be supplied with the Viva Select Media Action.
|
|
1038
1208
|
* @remarks API under active development and not ready for use.
|
|
@@ -1071,6 +1241,10 @@ export declare interface ISelectMediaAttachment {
|
|
|
1071
1241
|
* Content of the file represented as base64Strings
|
|
1072
1242
|
*/
|
|
1073
1243
|
content: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* Error associated with attachment
|
|
1246
|
+
*/
|
|
1247
|
+
error?: IAttachmentError;
|
|
1074
1248
|
}
|
|
1075
1249
|
|
|
1076
1250
|
/**
|
|
@@ -1104,15 +1278,17 @@ export declare interface IShowCardActionArguments extends IBaseActionArguments {
|
|
|
1104
1278
|
/**
|
|
1105
1279
|
* Interface for Viva Show Location action
|
|
1106
1280
|
* @remarks API under active development and not ready for use.
|
|
1107
|
-
* @
|
|
1281
|
+
* @public
|
|
1108
1282
|
*/
|
|
1109
1283
|
export declare interface IShowLocationAction extends IAction {
|
|
1110
1284
|
/**
|
|
1111
1285
|
* Indicates this is a Viva show Location button.
|
|
1286
|
+
* @beta
|
|
1112
1287
|
*/
|
|
1113
1288
|
type: 'VivaAction.ShowLocation';
|
|
1114
1289
|
/**
|
|
1115
1290
|
* Parameters that can be supplied with the Viva Show Location Action.
|
|
1291
|
+
* @beta
|
|
1116
1292
|
*/
|
|
1117
1293
|
parameters?: IShowLocationActionParameters;
|
|
1118
1294
|
}
|
|
@@ -1146,12 +1322,26 @@ export declare interface IShowLocationCardAction {
|
|
|
1146
1322
|
parameters?: IShowLocationActionParameters;
|
|
1147
1323
|
}
|
|
1148
1324
|
|
|
1325
|
+
/* Excluded from this release type: _IsolatedAdaptiveCardExtensionApplicationMessageEvent */
|
|
1326
|
+
|
|
1327
|
+
/* Excluded from this release type: _IsolatedAdaptiveCardExtensionService */
|
|
1328
|
+
|
|
1329
|
+
/* Excluded from this release type: _IsolatedAdaptiveCardExtensionServiceCallback */
|
|
1330
|
+
|
|
1331
|
+
/* Excluded from this release type: _IsolatedServiceCallbackParameters */
|
|
1332
|
+
|
|
1333
|
+
/* Excluded from this release type: _IsolatedServiceMessageEvent */
|
|
1334
|
+
|
|
1149
1335
|
/**
|
|
1150
1336
|
* SPFx Adaptive Card Extension schema for Adaptive Cards.
|
|
1151
1337
|
*
|
|
1152
1338
|
* @public
|
|
1153
1339
|
*/
|
|
1154
|
-
export declare interface ISPFxAdaptiveCard extends IAdaptiveCard {
|
|
1340
|
+
export declare interface ISPFxAdaptiveCard extends Omit<IAdaptiveCard, 'actions'> {
|
|
1341
|
+
/**
|
|
1342
|
+
* Types of actions being exposed
|
|
1343
|
+
*/
|
|
1344
|
+
actions?: (ISubmitAction | IOpenUrlAction | IShowCardAction | ISelectMediaAction | IGetLocationAction | IShowLocationAction)[];
|
|
1155
1345
|
}
|
|
1156
1346
|
|
|
1157
1347
|
/**
|