@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/README.md +6 -0
- 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 +9 -0
- package/typings/common.d.ts +1 -5
package/package.json
CHANGED
|
@@ -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[];
|
package/typings/common.d.ts
CHANGED
|
@@ -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
|
|