@divkitframework/divkit 25.1.0 → 25.3.0-canary-bcb1e5fa0a461f4cf07af0ade41950d30e4fac93

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  ## DivKit for the Web
2
2
 
3
- ![client code size](https://img.shields.io/badge/client%20lib%20minified&brotli-47.7%20KB-brightgreen)
3
+ ![client code size](https://img.shields.io/badge/client%20lib%20minified&brotli-60.5%20KB-brightgreen)
4
4
 
5
5
  ### Installation
6
6
 
@@ -222,12 +222,12 @@ function onError(detauls: {
222
222
 
223
223
  Function, optional.
224
224
 
225
- Used for logging clicks (for elements with `action`) and visibility logging (for elements with `visibility_action`).
225
+ Used for logging clicks (for elements with `action`) and visibility logging (for elements with `visibility_action(s)` and `disappear_actions`).
226
226
 
227
227
  ```ts
228
228
  function onStat(details: {
229
- type: 'click' | 'visible';
230
- action: Action | VisibilityAction;
229
+ type: 'click' | 'visible' | 'disappear';
230
+ action: Action | VisibilityAction | DisappearAction;
231
231
  }) {
232
232
  }
233
233
  ```
@@ -245,6 +245,19 @@ function onCustomAction(action: Action): void {
245
245
  }
246
246
  ```
247
247
 
248
+ #### typefaceProvider
249
+
250
+ Function, optional.
251
+
252
+ Callback for a custom `font-family` css property value.
253
+
254
+ ```ts
255
+ function typefaceProvider(fontFamily: string, opts?: {
256
+ fontWeight?: number;
257
+ }): string {
258
+ }
259
+ ```
260
+
248
261
  #### platform
249
262
 
250
263
  `desktop` | `touch` | `auto`