@divkitframework/divkit 27.0.0 → 27.2.0-canary-b6797445acdd32f7f9aa112e851d6aedca404a6f

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
@@ -258,6 +258,30 @@ function typefaceProvider(fontFamily: string, opts?: {
258
258
  }
259
259
  ```
260
260
 
261
+ #### fetchInit
262
+
263
+ `/client` and `/client-hydratable`
264
+
265
+ Function or object, optional.
266
+
267
+ Used as a second parameter for `fetch` requests in the `div-action://download` actions.
268
+
269
+ ```ts
270
+ function fetchInit(url: string) {
271
+ return {
272
+ credentials: 'include'
273
+ };
274
+ }
275
+ ```
276
+
277
+ Or
278
+
279
+ ```ts
280
+ fetchInit: {
281
+ credentials: 'include'
282
+ }
283
+ ```
284
+
261
285
  #### platform
262
286
 
263
287
  `desktop` | `touch` | `auto`
@@ -285,6 +309,14 @@ Default value is `['http', 'https', 'tel', 'mailto', 'intent']`
285
309
 
286
310
  Components with an action containing a protocol from the list will be rendered as `<a>`, and clicking on them will be processed by the browser. Protocols outside the list will cause the element to be rendered as a button-like, and clicking on them causes an 'onCustomAction'.
287
311
 
312
+ #### tooltipRoot
313
+
314
+ `/client` and `/client-hydratable`
315
+
316
+ HTMLElement, optional.
317
+
318
+ Allows to attach tooltips to the custom root, outside of `target`. Useful to avoid cropping.
319
+
288
320
  ### extensions
289
321
 
290
322
  `Map<string, DivExtensionClass>`, optional.