@divkitframework/divkit 23.7.0 → 24.0.0-patched-0d1a8d358f0dd642ccf2c49a211ec419bb9c04bd

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": "23.7.0",
3
+ "version": "24.0.0-patched-0d1a8d358f0dd642ccf2c49a211ec419bb9c04bd",
4
4
  "description": "DivKit for the web",
5
5
  "keywords": [
6
6
  "server-driven-ui",
@@ -10,6 +10,7 @@ import type {
10
10
  Customization
11
11
  } from './common';
12
12
  import type { GlobalVariablesController, Variable } from './variables';
13
+ import type { WrappedError } from './common';
13
14
 
14
15
  export interface DivkitDebugInstance extends DivkitInstance {
15
16
  getDebugVariables(): Map<string, Variable>;
@@ -90,6 +91,14 @@ export function evalExpression(expr: string, opts?: {
90
91
  type?: 'exact' | 'json';
91
92
  }): EvalResult;
92
93
 
94
+ export function evalExpressionWithFullResult(expr: string, opts?: {
95
+ variables?: Map<string, Variable>;
96
+ type?: 'exact' | 'json';
97
+ }): {
98
+ result: EvalResult;
99
+ warnings: WrappedError[];
100
+ };
101
+
93
102
  export function valToString(val: EvalValue): string;
94
103
 
95
104
  export function functionNames(): string[];
@@ -21,7 +21,7 @@ export interface DivStrVariable {
21
21
  export interface DivIntVariable {
22
22
  type: 'integer';
23
23
  name: string;
24
- value: number;
24
+ value: number | bigint;
25
25
  }
26
26
 
27
27
  export interface DivNumberVariable {
@@ -140,10 +140,6 @@ export type ErrorCallback = (details: {
140
140
  export interface DivkitInstance {
141
141
  $destroy(): void;
142
142
  execAction(action: Action | VisibilityAction): void;
143
- /** @deprecated */
144
- getVariable(name: string): string | number | undefined;
145
- /** @deprecated */
146
- setVariable(name: string, value: string | number): void;
147
143
  setTheme(theme: Theme): void;
148
144
  }
149
145