@microsoft/sp-adaptive-card-extension-base 1.21.0-beta.2 → 1.21.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.
- package/dist/index-internal.d.ts +22 -191
- package/package.json +12 -12
package/dist/index-internal.d.ts
CHANGED
|
@@ -79,11 +79,7 @@ export declare class AdaptiveCardExtensionContext extends BaseComponentContext {
|
|
|
79
79
|
* Provides a sdk that gets current context of device. See {@link IPartialSDKs}
|
|
80
80
|
*/
|
|
81
81
|
get sdks(): IPartialSDKs | undefined;
|
|
82
|
-
|
|
83
|
-
* @beta
|
|
84
|
-
* Provides a promise that gets current location of the device
|
|
85
|
-
*/
|
|
86
|
-
get location(): Promise<ILocation>;
|
|
82
|
+
/* Excluded from this release type: location */
|
|
87
83
|
/* Excluded from this release type: _logEditCustomerPromiseFailure */
|
|
88
84
|
}
|
|
89
85
|
|
|
@@ -252,17 +248,7 @@ export declare class BaseAdaptiveCardExtension<TProperties extends {} = {}, TSta
|
|
|
252
248
|
* @virtual
|
|
253
249
|
*/
|
|
254
250
|
protected get propertiesMetadata(): IAdaptiveCardExtensionPropertiesMetadata | undefined;
|
|
255
|
-
|
|
256
|
-
* Indicates whether the ACE is rendering in async mode.
|
|
257
|
-
*
|
|
258
|
-
* @remarks
|
|
259
|
-
* If the ACE overrides this field to return true, then it needs to call renderCompleted API after the ACE finishes initializing.
|
|
260
|
-
*
|
|
261
|
-
* The default value is false.
|
|
262
|
-
*
|
|
263
|
-
* @beta
|
|
264
|
-
*/
|
|
265
|
-
protected get isRenderAsync(): boolean;
|
|
251
|
+
/* Excluded from this release type: isRenderAsync */
|
|
266
252
|
/**
|
|
267
253
|
* Gets the custom state of the Adaptive Card Extension.
|
|
268
254
|
*
|
|
@@ -317,41 +303,9 @@ export declare class BaseAdaptiveCardExtension<TProperties extends {} = {}, TSta
|
|
|
317
303
|
* @virtual
|
|
318
304
|
*/
|
|
319
305
|
protected loadPropertyPaneResources(): Promise<void>;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
* @beta
|
|
324
|
-
* @virtual
|
|
325
|
-
*/
|
|
326
|
-
protected getCacheSettings(): Partial<ICacheSettings>;
|
|
327
|
-
/**
|
|
328
|
-
* This virtual method returns a subset of the state object that will be cached by the client.
|
|
329
|
-
*
|
|
330
|
-
* @remarks If not overriden, this will return an empty object.
|
|
331
|
-
* @param state - A shallow clone of the AdaptiveCardExtension state object.
|
|
332
|
-
*
|
|
333
|
-
* @beta
|
|
334
|
-
* @virtual
|
|
335
|
-
*/
|
|
336
|
-
protected getCachedState(state: TState): Partial<TState>;
|
|
337
|
-
/**
|
|
338
|
-
* Lifecycle method called when a notification is received for this Adaptive Card Extension.
|
|
339
|
-
*
|
|
340
|
-
* @remarks If the notification should be handled by this Adaptive Card Extension then a registered quick view id
|
|
341
|
-
* should be returned. Otherwise, returning undefined will result in the next, if any, Adaptive Card Extension
|
|
342
|
-
* to potentially handle the notification event.
|
|
343
|
-
*
|
|
344
|
-
* @remarks Only one Adaptive Card Extension can handle a notification event. If the event is handled,
|
|
345
|
-
* then propagation is finished.
|
|
346
|
-
*
|
|
347
|
-
* @param notificationArguments - The {@link INotificationArguments} for the current notification event.
|
|
348
|
-
*
|
|
349
|
-
* @returns A registered quick view id to open or undefined.
|
|
350
|
-
*
|
|
351
|
-
* @beta
|
|
352
|
-
* @virtual
|
|
353
|
-
*/
|
|
354
|
-
onNotificationReceived(notificationArguments: Readonly<INotificationArguments<{}>>): INotificationResponse | undefined;
|
|
306
|
+
/* Excluded from this release type: getCacheSettings */
|
|
307
|
+
/* Excluded from this release type: getCachedState */
|
|
308
|
+
/* Excluded from this release type: onNotificationReceived */
|
|
355
309
|
/**
|
|
356
310
|
* Lifecycle method called before Action is passed to {@link IAdaptiveCardExtensionActionView.onAction}.
|
|
357
311
|
*
|
|
@@ -432,19 +386,7 @@ export declare class BaseAdaptiveCardExtension<TProperties extends {} = {}, TSta
|
|
|
432
386
|
* @virtual
|
|
433
387
|
*/
|
|
434
388
|
onInit(): Promise<void>;
|
|
435
|
-
|
|
436
|
-
* Lifecycle method called during initialization.
|
|
437
|
-
*
|
|
438
|
-
* @remarks Asynchronous data fetches should be started during this lifecycle. Rendering can either be dependent on the result
|
|
439
|
-
* or, if resolved immediately, a fetching data state can be rendered.
|
|
440
|
-
*
|
|
441
|
-
* @param cachedLoadParameters - Parameters containing the cached state object (see {@link BaseAdaptiveCardExtension.getCachedState}), which can be used to rehydrate the AdaptiveCardExtension.
|
|
442
|
-
* If undefined, the AdaptiveCardExtension was not cached or the cache expired.
|
|
443
|
-
*
|
|
444
|
-
* @beta
|
|
445
|
-
* @virtual
|
|
446
|
-
*/
|
|
447
|
-
onInit(cachedLoadParameters?: ICachedLoadParameters): Promise<void>;
|
|
389
|
+
/* Excluded from this release type: onInit */
|
|
448
390
|
/* Excluded from this release type: _initializeCardNavigator */
|
|
449
391
|
/* Excluded from this release type: _initializeQuickViewNavigator */
|
|
450
392
|
/**
|
|
@@ -493,19 +435,7 @@ export declare class BaseAdaptiveCardExtension<TProperties extends {} = {}, TSta
|
|
|
493
435
|
*/
|
|
494
436
|
get isVisible(): boolean;
|
|
495
437
|
set isVisible(value: boolean);
|
|
496
|
-
|
|
497
|
-
* Lifecycle method that signifies ACE has finished loading.
|
|
498
|
-
* When this API is called, performance data will be generated.
|
|
499
|
-
* Depending on `didUpdate` parameter, end marker for the rendering lifecycle can change.
|
|
500
|
-
* If an ACE received LKG data and does NOT need to update, render is completed when LKG is used.
|
|
501
|
-
* If an ACE received LKG data and DOES need to update, render is completed when new render arguments are used.
|
|
502
|
-
* If an ACE does not receive LKG data, render is completed when new render arguments are used.
|
|
503
|
-
*
|
|
504
|
-
* @param didUpdate - boolean value indicating if ACE has updated.
|
|
505
|
-
*
|
|
506
|
-
* @beta
|
|
507
|
-
*/
|
|
508
|
-
renderCompleted(didUpdate: boolean): void;
|
|
438
|
+
/* Excluded from this release type: renderCompleted */
|
|
509
439
|
private _endMarkForRenderComplete;
|
|
510
440
|
private _resolveRenderCompleted;
|
|
511
441
|
/**
|
|
@@ -638,16 +568,7 @@ export declare abstract class BaseAdaptiveCardQuickView<TProperties extends {} =
|
|
|
638
568
|
* @virtual
|
|
639
569
|
*/
|
|
640
570
|
onAction(action: IActionArguments): void;
|
|
641
|
-
|
|
642
|
-
* @beta
|
|
643
|
-
*
|
|
644
|
-
* Error handler for Adaptive Card Actions.
|
|
645
|
-
*
|
|
646
|
-
* @param error - The {@link IActionErrorArguments} for the current event.
|
|
647
|
-
*
|
|
648
|
-
* @virtual
|
|
649
|
-
*/
|
|
650
|
-
onActionError(error: IActionErrorArguments): void;
|
|
571
|
+
/* Excluded from this release type: onActionError */
|
|
651
572
|
}
|
|
652
573
|
|
|
653
574
|
/**
|
|
@@ -727,16 +648,7 @@ export declare abstract class BaseCardView<TProperties extends {} = {}, TState e
|
|
|
727
648
|
* @virtual
|
|
728
649
|
*/
|
|
729
650
|
onAction(action: IActionArguments): void;
|
|
730
|
-
|
|
731
|
-
* @beta
|
|
732
|
-
*
|
|
733
|
-
* Error handler for Adaptive Card Actions.
|
|
734
|
-
*
|
|
735
|
-
* @param error - The {@link IActionErrorArguments} for the current event.
|
|
736
|
-
*
|
|
737
|
-
* @virtual
|
|
738
|
-
*/
|
|
739
|
-
onActionError(error: IActionErrorArguments): void;
|
|
651
|
+
/* Excluded from this release type: onActionError */
|
|
740
652
|
}
|
|
741
653
|
|
|
742
654
|
/**
|
|
@@ -968,13 +880,7 @@ export declare function BasicCardView(configuration: IBasicTextCardViewConfigura
|
|
|
968
880
|
|
|
969
881
|
/* Excluded from this release type: _BODY_SECONDARY_TEXT */
|
|
970
882
|
|
|
971
|
-
|
|
972
|
-
* Predefined action ID for card view select action.
|
|
973
|
-
* @remarks This ID is set for {@link IBaseOnBeforeActionArguments.id} when a card view select action is executed.
|
|
974
|
-
*
|
|
975
|
-
* @beta
|
|
976
|
-
*/
|
|
977
|
-
export declare const CARD_VIEW_SELECT_ACTION_ID: string;
|
|
883
|
+
/* Excluded from this release type: CARD_VIEW_SELECT_ACTION_ID */
|
|
978
884
|
|
|
979
885
|
/* Excluded from this release type: _CardActionType */
|
|
980
886
|
|
|
@@ -1110,12 +1016,7 @@ export declare type GenericCardViewFooterParameters = CardViewActionsFooterParam
|
|
|
1110
1016
|
*/
|
|
1111
1017
|
export declare type IActionArguments = ISubmitActionArguments | IShowCardActionArguments | ISelectMediaActionArguments | IGetLocationActionArguments | IExecuteActionArguments;
|
|
1112
1018
|
|
|
1113
|
-
|
|
1114
|
-
* @beta
|
|
1115
|
-
*/
|
|
1116
|
-
export declare interface IActionError {
|
|
1117
|
-
code: string;
|
|
1118
|
-
}
|
|
1019
|
+
/* Excluded from this release type: IActionError */
|
|
1119
1020
|
|
|
1120
1021
|
/**
|
|
1121
1022
|
* The object passed to {@link IAdaptiveCardExtensionActionView.onActionError} when an error occured while executing Adaptive Card Action.
|
|
@@ -1142,14 +1043,7 @@ export declare interface IAdaptiveCardExtensionActionView extends BaseView {
|
|
|
1142
1043
|
* @param action - The {@link IActionArguments} for the current event.
|
|
1143
1044
|
*/
|
|
1144
1045
|
onAction: (action: IActionArguments) => void;
|
|
1145
|
-
|
|
1146
|
-
* @beta
|
|
1147
|
-
*
|
|
1148
|
-
* Error handler for Adaptive Card Extension Actions.
|
|
1149
|
-
*
|
|
1150
|
-
* @param error - The {@link IActionErrorArguments} for the current event.
|
|
1151
|
-
*/
|
|
1152
|
-
onActionError: (error: IActionErrorArguments) => void;
|
|
1046
|
+
/* Excluded from this release type: onActionError */
|
|
1153
1047
|
}
|
|
1154
1048
|
|
|
1155
1049
|
/* Excluded from this release type: _IAdaptiveCardExtensionCache */
|
|
@@ -1204,6 +1098,8 @@ export declare interface IAdaptiveCardExtensionImage {
|
|
|
1204
1098
|
|
|
1205
1099
|
/* Excluded from this release type: _IAdaptiveCardExtensionLoadContext */
|
|
1206
1100
|
|
|
1101
|
+
/* Excluded from this release type: IAdaptiveCardExtensionManifest */
|
|
1102
|
+
|
|
1207
1103
|
/**
|
|
1208
1104
|
* This structure is used to define metadata for Adaptive Card Extension properties as a map of string to `IAdaptiveCardExtensionPropertiesMetadata`
|
|
1209
1105
|
*
|
|
@@ -1333,21 +1229,9 @@ export declare interface IBaseActionArguments {
|
|
|
1333
1229
|
* @public
|
|
1334
1230
|
*/
|
|
1335
1231
|
export declare interface IBaseActionErrorArguments {
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
*/
|
|
1340
|
-
type: 'Submit' | 'ShowCard' | 'Execute' | 'VivaAction.SelectMedia' | 'VivaAction.GetLocation' | 'VivaAction.ShowLocation';
|
|
1341
|
-
/**
|
|
1342
|
-
* The id specified in the Adaptive Card template
|
|
1343
|
-
* @beta
|
|
1344
|
-
*/
|
|
1345
|
-
id?: string;
|
|
1346
|
-
/**
|
|
1347
|
-
* The error thrown by the action
|
|
1348
|
-
* @beta
|
|
1349
|
-
*/
|
|
1350
|
-
error: IActionError;
|
|
1232
|
+
/* Excluded from this release type: type */
|
|
1233
|
+
/* Excluded from this release type: id */
|
|
1234
|
+
/* Excluded from this release type: error */
|
|
1351
1235
|
}
|
|
1352
1236
|
|
|
1353
1237
|
/**
|
|
@@ -1425,17 +1309,7 @@ export declare interface IBaseCardParameters {
|
|
|
1425
1309
|
* @privateRemarks - Each type that is not included in IActionArguments and used in IOnBeforeActionArguments must extend this interface.
|
|
1426
1310
|
*/
|
|
1427
1311
|
export declare interface IBaseOnBeforeActionArguments {
|
|
1428
|
-
|
|
1429
|
-
* The id specified in the card view action or Adaptive Card template
|
|
1430
|
-
*
|
|
1431
|
-
* @remarks This ID is automatically set to
|
|
1432
|
-
* - {@link ICardButtonBase.id} if an action is triggered by card view button
|
|
1433
|
-
* - {@link CARD_VIEW_SELECT_ACTION_ID} if an action is triggered by card view select action
|
|
1434
|
-
* - Action id if an action is triggered by Quick View
|
|
1435
|
-
*
|
|
1436
|
-
* @beta
|
|
1437
|
-
*/
|
|
1438
|
-
id?: string;
|
|
1312
|
+
/* Excluded from this release type: id */
|
|
1439
1313
|
}
|
|
1440
1314
|
|
|
1441
1315
|
/* Excluded from this release type: _IBaseQuickViewRenderParameters */
|
|
@@ -1490,35 +1364,9 @@ export declare interface IBasicTextCardViewConfiguration extends Omit<ICardViewC
|
|
|
1490
1364
|
|
|
1491
1365
|
/* Excluded from this release type: _IBot */
|
|
1492
1366
|
|
|
1493
|
-
|
|
1494
|
-
* Parameters used to rehydrate the AdaptiveCardExtension during a cached load
|
|
1495
|
-
*
|
|
1496
|
-
* @beta
|
|
1497
|
-
* @remarks API under active development and not ready for use.
|
|
1498
|
-
*/
|
|
1499
|
-
export declare interface ICachedLoadParameters {
|
|
1500
|
-
state: any;
|
|
1501
|
-
cardNavigatorState: string[];
|
|
1502
|
-
}
|
|
1367
|
+
/* Excluded from this release type: ICachedLoadParameters */
|
|
1503
1368
|
|
|
1504
|
-
|
|
1505
|
-
* @beta
|
|
1506
|
-
*/
|
|
1507
|
-
export declare interface ICacheSettings {
|
|
1508
|
-
/**
|
|
1509
|
-
* Whether cache is enabled. Default: true
|
|
1510
|
-
*/
|
|
1511
|
-
isEnabled: boolean;
|
|
1512
|
-
/**
|
|
1513
|
-
* Expiry time in seconds. Default: 86400 seconds (24 hours)
|
|
1514
|
-
*/
|
|
1515
|
-
expiryTimeInSeconds: number;
|
|
1516
|
-
/**
|
|
1517
|
-
* Returns the Card View used to generate the cached card.
|
|
1518
|
-
* By default, the currently rendered Card View will be used to cache the card.
|
|
1519
|
-
*/
|
|
1520
|
-
cachedCardView?: () => BaseCardView;
|
|
1521
|
-
}
|
|
1369
|
+
/* Excluded from this release type: ICacheSettings */
|
|
1522
1370
|
|
|
1523
1371
|
/**
|
|
1524
1372
|
* Type of handler for when a button is pressed.
|
|
@@ -2533,26 +2381,9 @@ export declare function ImageCardView(configuration: IImageCardViewConfiguration
|
|
|
2533
2381
|
|
|
2534
2382
|
/* Excluded from this release type: _INavigationBarProperties */
|
|
2535
2383
|
|
|
2536
|
-
|
|
2537
|
-
* The object passed to {@link BaseAdaptiveCardExtension.onNotificationReceived} when a notification is received.
|
|
2538
|
-
*
|
|
2539
|
-
* @beta
|
|
2540
|
-
*/
|
|
2541
|
-
export declare interface INotificationArguments<T extends {}> {
|
|
2542
|
-
version: Version;
|
|
2543
|
-
data: T;
|
|
2544
|
-
}
|
|
2384
|
+
/* Excluded from this release type: INotificationArguments */
|
|
2545
2385
|
|
|
2546
|
-
|
|
2547
|
-
* The object returned from {@link BaseAdaptiveCardExtension.onNotificationReceived} if it has handled the notification.
|
|
2548
|
-
*
|
|
2549
|
-
* @remarks ACE should return the registered quickViewId which it wants to display for the notification.
|
|
2550
|
-
*
|
|
2551
|
-
* @beta
|
|
2552
|
-
*/
|
|
2553
|
-
export declare interface INotificationResponse {
|
|
2554
|
-
quickViewId: string;
|
|
2555
|
-
}
|
|
2386
|
+
/* Excluded from this release type: INotificationResponse */
|
|
2556
2387
|
|
|
2557
2388
|
/**
|
|
2558
2389
|
* The object passed to {@link BaseAdaptiveCardExtension.onBeforeAction} when an Adaptive Card Action is executed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-adaptive-card-extension-base",
|
|
3
|
-
"version": "1.21.0
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "SharePoint Framework Adaptive Card Extensions",
|
|
5
5
|
"license": "https://aka.ms/spfx/license",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
@@ -18,25 +18,25 @@
|
|
|
18
18
|
"@swc/helpers": "0.5.12",
|
|
19
19
|
"adaptivecards": "2.11.2",
|
|
20
20
|
"tslib": "2.3.1",
|
|
21
|
-
"@microsoft/sp-
|
|
22
|
-
"@microsoft/sp-
|
|
23
|
-
"@microsoft/sp-diagnostics": "1.21.0
|
|
24
|
-
"@microsoft/sp-http": "1.21.0
|
|
25
|
-
"@microsoft/sp-http-base": "1.21.0
|
|
26
|
-
"@microsoft/sp-loader": "1.21.0
|
|
27
|
-
"@microsoft/sp-lodash-subset": "1.21.0
|
|
28
|
-
"@microsoft/sp-
|
|
29
|
-
"@microsoft/sp-
|
|
21
|
+
"@microsoft/sp-core-library": "1.21.0",
|
|
22
|
+
"@microsoft/sp-component-base": "1.21.0",
|
|
23
|
+
"@microsoft/sp-diagnostics": "1.21.0",
|
|
24
|
+
"@microsoft/sp-http": "1.21.0",
|
|
25
|
+
"@microsoft/sp-http-base": "1.21.0",
|
|
26
|
+
"@microsoft/sp-loader": "1.21.0",
|
|
27
|
+
"@microsoft/sp-lodash-subset": "1.21.0",
|
|
28
|
+
"@microsoft/sp-module-interfaces": "1.21.0",
|
|
29
|
+
"@microsoft/sp-property-pane": "1.21.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@rushstack/heft": "0.71.0",
|
|
33
33
|
"eslint": "8.57.1",
|
|
34
34
|
"jest-environment-jsdom": "29.5.0",
|
|
35
|
-
"@microsoft/sp-page-context": "1.21.0
|
|
35
|
+
"@microsoft/sp-page-context": "1.21.0",
|
|
36
|
+
"@microsoft/sp-webpart-base": "1.21.0",
|
|
36
37
|
"@ms/odsp-analytics": "0.3.75",
|
|
37
38
|
"@ms/sp-pages-core": "0.1.0",
|
|
38
39
|
"@ms/sp-telemetry": "0.34.2",
|
|
39
|
-
"@microsoft/sp-webpart-base": "1.21.0-beta.2",
|
|
40
40
|
"@ms/spfx-internal-web-build-rig": "0.1.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|