1
1
---
2
2
title : SharePoint Framework v1.15 release notes
3
3
description : Release notes for the SharePoint Framework v1.15 release
4
- ms.date : 06/21 /2022
4
+ ms.date : 08/08 /2022
5
5
ms.localizationpriority : high
6
6
---
7
7
# SharePoint Framework v1.15 release notes
8
8
9
- This release introduces updates across the features around Microsoft Viva, Microsoft Teams and SharePoint.
9
+ This release introduces updates across the features around Microsoft Viva, Microsoft Teams, and SharePoint.
10
10
11
11
** Released:** June 21, 2022
12
12
@@ -67,7 +67,7 @@ this.context.msGraphClientFactory.getClient('3');
67
67
68
68
### TypeScript v4 Support
69
69
70
- SharePoint Framework solutions now support TypeScript v4.5
70
+ SharePoint Framework solutions now support [ TypeScript v4.5] ( https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html ) .
71
71
72
72
### ESLint Support
73
73
@@ -117,27 +117,36 @@ Show Location | Not Supported | Supported | Supported
117
117
118
118
The ___location actions can be configured as shown below:
119
119
120
- ``` typescript
121
- actions : [
120
+ ``` json
121
+ " actions" : [
122
122
{
123
- type: ' VivaAction.GetLocation' ,
124
- id: ' Get Location' ,
125
- parameters: {chooseLocationOnMap: true }
126
- }
123
+ "type" : " VivaAction.GetLocation" ,
124
+ "id" : " Get Location" ,
125
+ "title" : " Where am I" ,
126
+ "parameters" : {
127
+ "chooseLocationOnMap" : true
128
+ }
129
+ },
127
130
{
128
- type: ' VivaAction.ShowLocation' ,
129
- id: ' Show Location' ,
130
- parameters: parameters : {locationCoordinates: {latitude: 40 , longitude: 40 }}
131
+ "type" : " VivaAction.ShowLocation" ,
132
+ "id" : " Show Location" ,
133
+ "title" : " Continue" ,
134
+ "parameters" : {
135
+ "locationCoordinates" : {
136
+ "latitude" : 40 ,
137
+ "longitude" : 40
138
+ }
139
+ }
131
140
}
132
141
]
133
142
```
134
143
135
- The actions will be rendered as below
136
-
137
- Location Action:
144
+ The actions will be rendered as below:
138
145
139
146
![ Screenshot of ___location action] ( ../images/release-notes/114/___location-action.jpg )
140
147
148
+ __ Location Action:__
149
+
141
150
The Location Action can be used to get your current ___location, show your current or a custom ___location on a map, and choose your current ___location from a map. In the browser it uses Bing Maps as the mapping interface:
142
151
143
152
![ Screenshot of ___location panel] ( ../images/release-notes/114/___location-panel.jpg )
@@ -159,6 +168,7 @@ interface ICacheSettings {
159
168
* Whether cache is enabled. Default: true
160
169
*/
161
170
isEnabled: boolean ;
171
+
162
172
/**
163
173
* Expiry time in seconds. Default: 86400 seconds (24 hours)
164
174
*/
@@ -170,6 +180,7 @@ interface ICacheSettings {
170
180
*/
171
181
cachedCardView? : () => BaseCardView ;
172
182
}
183
+
173
184
BaseAdaptiveCardExtension .getCacheSettings (): Partial < ICacheSettings > ;
174
185
```
175
186
@@ -196,6 +207,7 @@ loaded from a cached card view, then `cachedLoadParameters` will be `undefined`.
196
207
interface ICachedLoadParameters {
197
208
state: TState ;
198
209
}
210
+
199
211
BaseAdaptiveCardExtension .onInit (cachedLoadParameters ?: ICachedLoadParameters ): Promise < void > ;
200
212
```
201
213
@@ -206,7 +218,9 @@ State caching and the cache expiry time can be used to determine when expensive
206
218
Caching can help significantly improve the perceived performance for your Adaptive Card Extension.
207
219
208
220
209
- ### Error Handler Method. This method will be invoked when an Action throws an error
221
+ ### Error Handler Method
222
+
223
+ This method will be invoked when an Action throws an error.
210
224
211
225
``` typescript
212
226
BaseView .onActionError (error : IActionErrorArguments ): void
@@ -226,15 +240,22 @@ Select Media | Supported | Supported | Supported
226
240
227
241
The SelectMedia can be configured as shown below:
228
242
229
- ``` typescript
230
- actions : [
243
+ ``` json
244
+ " actions" : [
231
245
{
232
- type: ' VivaAction.SelectMedia' ,
233
- id: ' Select File' ,
234
- parameters: {mediaType: MediaType .Image , allowMultipleCapture: true , maxSizePerFile : 200000 , supportedFileFormats: [' jpg' ]},
235
- title: ' Select File'
246
+ "type" : " VivaAction.SelectMedia" ,
247
+ "id" : " Select Files" ,
248
+ "parameters" : {
249
+ "mediaType" : " MediaType.Image" ,
250
+ "allowMultipleCapture" : true ,
251
+ "maxSizePerFile" : 200000 ,
252
+ "supportedFileFormats" : [
253
+ " jpg"
254
+ ]
255
+ },
256
+ "title" : " Select Files"
236
257
}
237
- ]
258
+ ]
238
259
```
239
260
240
261
Select Media Action rendering:
0 commit comments