@divkitframework/divkit 19.0.0 → 21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divkitframework/divkit",
3
- "version": "19.0.0",
3
+ "version": "21.0.0",
4
4
  "description": "DivKit for the web",
5
5
  "keywords": [
6
6
  "server-driven-ui",
@@ -6,7 +6,8 @@ import type {
6
6
  Platform,
7
7
  ComponentCallback,
8
8
  CustomActionCallback,
9
- Theme
9
+ Theme,
10
+ Customization
10
11
  } from './common';
11
12
  import type { GlobalVariablesController, Variable } from './variables';
12
13
 
@@ -22,6 +23,8 @@ export function render(opts: {
22
23
  onError?: ErrorCallback;
23
24
  onComponent?: ComponentCallback;
24
25
  platform?: Platform;
26
+ customization?: Customization;
27
+ builtinProtocols?: string[];
25
28
  /** EXPERIMENTAL SUPPORT */
26
29
  theme?: Theme;
27
30
  }): DivkitInstance;
@@ -22,6 +22,7 @@ export function render(opts: {
22
22
  onError?: ErrorCallback;
23
23
  platform?: Platform;
24
24
  customization?: Customization;
25
+ builtinProtocols?: string[];
25
26
  /** EXPERIMENTAL SUPPORT */
26
27
  theme?: Theme;
27
28
  }): DivkitInstance;
@@ -21,6 +21,7 @@ export function render(opts: {
21
21
  onError?: ErrorCallback;
22
22
  platform?: Platform;
23
23
  customization?: Customization;
24
+ builtinProtocols?: string[];
24
25
  /** EXPERIMENTAL SUPPORT */
25
26
  theme?: Theme;
26
27
  }): DivkitInstance;
@@ -57,6 +57,15 @@ export interface VariableTrigger {
57
57
  actions: Action[];
58
58
  }
59
59
 
60
+ export interface DivTimer {
61
+ id: string;
62
+ duration?: number;
63
+ tick_interval?: number;
64
+ value_variable?: string;
65
+ tick_actions?: Action[];
66
+ end_actions?: Action[];
67
+ }
68
+
60
69
  export interface PaletteColor {
61
70
  name: string;
62
71
  color: string;
@@ -76,6 +85,7 @@ export interface DivJson {
76
85
  states: DivJsonState[];
77
86
  variables?: DivVariable[];
78
87
  variable_triggers?: VariableTrigger[];
88
+ timers?: DivTimer[];
79
89
  }
80
90
  /** EXPERIMENTAL SUPPORT */
81
91
  palette?: Palette;
@@ -11,5 +11,6 @@ export function render(opts: {
11
11
  platform?: Platform;
12
12
  mix?: string;
13
13
  customization?: Customization;
14
+ builtinProtocols?: string[];
14
15
  onError?: ErrorCallback;
15
16
  }): string;