@divkitframework/divkit 28.13.0 → 29.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
@@ -303,8 +303,10 @@ An additional class added to the root element.
303
303
  Object, optional.
304
304
 
305
305
  Currently supported properties:
306
- * `galleryLeftClass` — left scroll button class on desktop
307
- * `galleryRightClass` — right scroll button class on desktop
306
+ * `galleryLeftClass` — left scroll button class on desktop for the gallery
307
+ * `galleryRightClass` — right scroll button class on desktop for the gallery
308
+ * `pagerLeftClass` — left scroll button class on desktop for the pager
309
+ * `pagerRightClass` — right scroll button class on desktop for the pager
308
310
 
309
311
  #### builtinProtocols
310
312
 
@@ -353,7 +355,7 @@ Custom components is supported not only on the client side, but also on the serv
353
355
 
354
356
  [Custom component extended api](../divkit-examples/custom-extended-api/)
355
357
 
356
- #### theme (EXPERIMENTAL)
358
+ #### theme (DEPRECATED)
357
359
 
358
360
  `system` | `light` | `dark`
359
361
 
@@ -444,6 +446,22 @@ render(({
444
446
  });
445
447
  ```
446
448
 
449
+ #### setData (EXPERIMENTAL)
450
+
451
+ This methods allows you to quckly redraw the DivKit card:
452
+
453
+ ```ts
454
+ instance.setData({
455
+ ...
456
+ });
457
+ ```
458
+
459
+ Some notes:
460
+
461
+ * This method is experimental, its logic and api may be changed the future versions.
462
+ * `setData` doesn't change any existing variables or variable triggers. It will onky create new variables. This is intentional.
463
+ * This method will try to do as little work as possible and will try to preserve the state of the card (input values and so on).
464
+
447
465
  ### Note about 64-bit integers
448
466
 
449
467
  DivKit internally uses the `BigInt` type if the current platform supports it (both client-side and server-side). This means that on unsupported platforms, integers will lose precision if the value exceeds 2^53.