@matrix-widget-toolkit/api 3.2.0 → 3.2.2
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/README.md +2 -2
- package/build/cjs/index.js +1083 -1083
- package/build/esm/index.js +1085 -1085
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ yarn add @matrix-widget-toolkit/api
|
|
|
19
19
|
|
|
20
20
|
### Creating a `WidgetApi` instance
|
|
21
21
|
|
|
22
|
-
Creating the `WidgetApi` instance should be done as early as possible in your code because otherwise the widget misses the connection
|
|
22
|
+
Creating the `WidgetApi` instance should be done as early as possible in your code because otherwise the widget misses the connection establishment by the widget host (especially on Safari).
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
25
|
import { WidgetApiImpl } from '@matrix-widget-toolkit/api';
|
|
@@ -38,7 +38,7 @@ import { WidgetEventCapability } from 'matrix-widget-api';
|
|
|
38
38
|
await widgetApi.requestCapabilities([
|
|
39
39
|
WidgetEventCapability.forStateEvent(
|
|
40
40
|
EventDirection.Send,
|
|
41
|
-
STATE_EVENT_POWER_LEVELS
|
|
41
|
+
STATE_EVENT_POWER_LEVELS,
|
|
42
42
|
),
|
|
43
43
|
]);
|
|
44
44
|
```
|