@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 +21 -3
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-devtool.js.map +1 -1
- package/dist/browser/client-hydratable.js +1 -1
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-devtool.js.map +1 -1
- package/dist/client-hydratable.js +1 -1
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.css +1 -1
- package/dist/client.css.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-devtool.mjs.map +1 -1
- package/dist/esm/client-hydratable.mjs +1 -1
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/esm/server.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
- package/typings/client-devtool.d.ts +1 -0
- package/typings/common.d.ts +6 -4
- package/typings/variables.d.ts +33 -17
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 (
|
|
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.
|