You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Publish Teams solutions build with SPFx to Outlook and Office
43
+
44
+
As this SPFx version supports the Teams JavaScript SDK v2, you can now start building experiences also for Outlook and for Office.com (Microsoft 365 app) with SharePoint Framework (SPFx). This will enable the same solution to be exposed within Microsoft, Outlook, Office.com and in SharePoint without specific code changes.
45
+
46
+
You can use the Teams JavaScript SDK v2 to detect the host of the solution as shown on the following code. If the `this.context.sdks.microsoftTeams` is empty, then code is executed in the SharePoint.
47
+
48
+
```typescript
49
+
// if running in Microsoft Teams, Outlook, or Office...
See more details around these options from following article
68
+
69
+
*[Extend Outlook and Office with the SharePoint Framework](office/overview.md)
70
+
71
+
> [!Important]
72
+
> Using the Teams SDK v2 within the SharePoint Framework solutions is generally available starting from the 1.16 version, enabling usage of the Teams SDK v2 immediately.
73
+
> Support for publishing Teams apps (including SPFx solutions) within the Outlook and in Office.com (Microsoft 365 app) is however still in preview and is planned to be generally available for both mobile and desktop experiences within the first half of calendar year 2023.
74
+
75
+
### Teams JavaScript SDK v2 support
76
+
77
+
This version supports the teams-js v2. `this.context.sdks.microsoftTeams.teamsJs` will return version 2 of the SDK. `this.context.sdks.microsoftTeams.context` will still return v1 context for backward compatibility.
78
+
79
+
> [!NOTE]
80
+
> teams-js v2 is backward compatible with teams-js v1. We will continue to support v1 for existing solutions.
81
+
82
+
> [!TIP]
83
+
> Teams JavaScript SDK v2 enables new scenarios for developers. See following announcement for additional details on the Teams JS SDK v2 capabilities - [Microsoft Teams JS SDK v2 is now generally available](https://devblogs.microsoft.com/microsoft365dev/microsoft-teams-js-sdk-v2-is-now-generally-available/)
84
+
46
85
### teams-js v2 typings support
47
86
48
87
Starting with this version the `context.sdks.microsoftTeams.teamJs` property in the web part has type of teams-js SDK v2. This enables usage of the new features of the teams-js SDK v2, including new hosts: Outlook and Office 365 app (previously called office.com).
Node.js v12 & v14 are no longer supported. SPFx v1.16 requires Node.js v16.
160
+
161
+
> [!NOTE]
162
+
> Node.js v18 support is scheduled for the first half of the 2023 calendar year.
163
+
164
+
## Preview features
165
+
100
166
### Web part Top Actions
101
167
102
168
Top Actions allow developers to add custom actions to web part's command bar. The feature is similar to property pane controls, but based on cleaner UI approach.
103
169
170
+
> [!NOTE]
171
+
> Top Actions is released as a preview version as part of the 1.16 release.
172
+
104
173

105
174
106
175
To add top actions, developers can use the `getTopActionsConfiguration` method.
> Although type of Top Action Configuration is `IPropertyPaneField<any>` we currently support buttons and choice groups only.
125
194
> It means you can use either `PropertyPaneChoiceGroup(...)` and `PropertyPaneButton(...)`, or specify your own configurations that will resolve to `IPropertyPaneField<IPropertyPaneChoiceGroupProps>` and `IPropertyPaneField<IPropertyPaneButtonProps>`
126
195
196
+
See more details on the code level guidance from the following article
127
197
128
-
### New Form Customizer context properties
129
-
130
-
#### List item fields' values
131
-
132
-
Form Customizer's context for Edit and Display forms now contains the list item fields' values in standard `odata` format.
133
-
134
-
```typescript
135
-
IFormCustomizerContext.item?:IListItem;
136
-
```
137
-
138
-
#### List form JSON formatting configuration
139
-
140
-
Form Customizer's context provides information about applied list form JSON Formatting. Use `contentType` property to access the configuration.
We're rolling our support for teams-js v2. `this.context.sdks.microsoftTeams.teamsJs` will return v2 as soon as service code is rolled out to the tenant. `this.context.sdks.microsoftTeams.context` will still return v1 context for backward compatibility.
149
-
150
-
> [!NOTE]
151
-
> teams-js v2 is backward compatible with teams-js v1. We will continue to support v1 for existing solutions.
152
-
> We will add support for teams-js v2 context in later beta releases.
198
+
*[link](https://www.fi)
153
199
154
-
> [!TIP]
155
-
> Teams JavaScript SDK v2 enables new scenarios for developers. See following announcement for additional details on the Teams JS SDK v2 capabilities - [Microsoft Teams JS SDK v2 is now generally available](https://devblogs.microsoft.com/microsoft365dev/microsoft-teams-js-sdk-v2-is-now-generally-available/)
156
-
157
-
### Remove NodeJS v12 and v14 support
158
-
159
-
Node.js v12 & v14 are no longer supported. SPFx v1.16 requires Node.js v16 LTS.
160
200
161
201
## Deprecations
162
202
@@ -165,8 +205,15 @@ Node.js v12 & v14 are no longer supported. SPFx v1.16 requires Node.js v16 LTS.
165
205
166
206
## Fixed Issues
167
207
168
-
### September-October Timeframe
208
+
Here's a list of specific issues fixed around SharePoint Framework since the previous public release.
169
209
210
+
### August-November Timeframe
211
+
212
+
-[#8146](https://github.com/SharePoint/sp-dev-docs/issues/8146) - SPFX Application Customizer breaks Anonymous Links for PDF Files
213
+
-[#8266](https://github.com/SharePoint/sp-dev-docs/issues/8266) - SPFx 1.15 - Form Customiser does not work in View History
214
+
-[#8272](https://github.com/SharePoint/sp-dev-docs/issues/8272) - SPFx 1.15 - Getting error when use form customier to view existing list item in Classic mode
215
+
-[#8279](https://github.com/SharePoint/sp-dev-docs/issues/8279) - New icons in production environments
216
+
-[#8301](https://github.com/SharePoint/sp-dev-docs/issues/8301) - Error When Revisiting Custom Teams ?app=portals App
170
217
-[#8372](https://github.com/SharePoint/sp-dev-docs/issues/8372) - Applying permissions on Form Customizer
171
218
-[#8379](https://github.com/SharePoint/sp-dev-docs/issues/8379) - SPFx `ListViewCommandSet` - `this.context.listView.selectedRows` is wrong in grouped lists
172
219
-[#8467](https://github.com/SharePoint/sp-dev-docs/issues/8467) - Buttons (`onClick` events) in `BaseDialog` no longer working - ListView Command Set
@@ -177,12 +224,4 @@ Node.js v12 & v14 are no longer supported. SPFx v1.16 requires Node.js v16 LTS.
177
224
-[#7324](https://github.com/SharePoint/sp-dev-docs/issues/7324) - SPFx license does not permit commercial use
178
225
-[#8331](https://github.com/SharePoint/sp-dev-docs/issues/8331) - Mechanism to version the preconfiguredEntries in the manifest
-[#8496](https://github.com/SharePoint/sp-dev-docs/issues/8496) - React version mismatch causes property pane not displaying
181
-
182
-
### August Timeframe
183
-
184
-
-[#8146](https://github.com/SharePoint/sp-dev-docs/issues/8146) - SPFX Application Customizer breaks Anonymous Links for PDF Files
185
-
-[#8266](https://github.com/SharePoint/sp-dev-docs/issues/8266) - SPFx 1.15 - Form Customiser does not work in View History
186
-
-[#8272](https://github.com/SharePoint/sp-dev-docs/issues/8272) - SPFx 1.15 - Getting error when use form customier to view existing list item in Classic mode
187
-
-[#8279](https://github.com/SharePoint/sp-dev-docs/issues/8279) - New icons in production environments
188
-
-[#8301](https://github.com/SharePoint/sp-dev-docs/issues/8301) - Error When Revisiting Custom Teams ?app=portals App
227
+
-[#8496](https://github.com/SharePoint/sp-dev-docs/issues/8496) - React version mismatch causes property pane not displaying
0 commit comments