@divkitframework/divkit 29.14.0 → 30.0.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/README.md CHANGED
@@ -230,7 +230,7 @@ Used for logging clicks (for elements with `action`) and visibility logging (for
230
230
 
231
231
  ```ts
232
232
  function onStat(details: {
233
- type: 'click' | 'visible' | 'disappear';
233
+ type: 'click' | 'visible' | 'disappear' | 'trigger';
234
234
  action: Action | VisibilityAction | DisappearAction;
235
235
  }) {
236
236
  }
@@ -313,6 +313,8 @@ Currently supported properties:
313
313
  * `galleryRightClass` — right scroll button class on desktop for the gallery
314
314
  * `pagerLeftClass` — left scroll button class on desktop for the pager
315
315
  * `pagerRightClass` — right scroll button class on desktop for the pager
316
+ * `menuPopupClass` — class for the menu popup
317
+ * `menuItemClass` — class for the menu item
316
318
 
317
319
  #### builtinProtocols
318
320
 
@@ -327,7 +329,7 @@ Components with an action containing a protocol from the list will be rendered a
327
329
 
328
330
  HTMLElement, optional.
329
331
 
330
- Allows to attach tooltips to the custom root, outside of `target`. Useful to avoid cropping.
332
+ Allows to attach tooltips and menus to the custom root, outside of `target`. Useful to avoid cropping.
331
333
 
332
334
  ### extensions
333
335
 
@@ -361,6 +363,14 @@ Custom components is supported not only on the client side, but also on the serv
361
363
 
362
364
  [Custom component extended api](../divkit-examples/custom-extended-api/)
363
365
 
366
+ #### store
367
+
368
+ Object, optional.
369
+
370
+ Additional external storage. The `getValue` and `setValue` methods should be implemented.
371
+
372
+ Please note that these methods must be synchronous! DivKit does not have asynchronous render methods, so any `getValue` function cannot be asynchronous. It is possible to process `setValue` asynchronously, but if the value from `getValue` is critical for you and cannot be read synchronously, you must read it before calling `render`.
373
+
364
374
  #### theme (DEPRECATED)
365
375
 
366
376
  `system` | `light` | `dark`