@divkitframework/divkit 30.1.0 → 30.2.0-canary-fd805ccbf422cfcc881ae2caba9560eec8430cc9
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.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 +2 -2
- package/typings/client-devtool.d.ts +3 -0
- package/typings/client-hydratable.d.ts +1 -0
- package/typings/client.d.ts +1 -0
- package/typings/common.d.ts +3 -1
- package/typings/server.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@divkitframework/divkit",
|
|
3
|
-
"version": "30.
|
|
3
|
+
"version": "30.2.0-canary-fd805ccbf422cfcc881ae2caba9560eec8430cc9",
|
|
4
4
|
"description": "DivKit for the web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"server-driven-ui",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"svelte-check": "3.5.0",
|
|
122
122
|
"svelte-loader": "3.1.9",
|
|
123
123
|
"svelte-preprocess": "5.0.4",
|
|
124
|
-
"typescript": "5.
|
|
124
|
+
"typescript": "5.4.5",
|
|
125
125
|
"webpack": "5.91.0",
|
|
126
126
|
"webpack-cli": "5.1.4",
|
|
127
127
|
"webpack-dev-server": "5.0.4"
|
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
import type { GlobalVariablesController, Variable } from './variables';
|
|
16
16
|
import type { WrappedError } from './common';
|
|
17
17
|
import type { CustomComponentDescription } from './custom';
|
|
18
|
+
import type { Store } from './store';
|
|
18
19
|
|
|
19
20
|
export interface DivkitDebugInstance extends DivkitInstance {
|
|
20
21
|
getDebugVariables(): Map<string, Variable>;
|
|
@@ -42,6 +43,8 @@ export function render(opts: {
|
|
|
42
43
|
fetchInit?: FetchInit;
|
|
43
44
|
tooltipRoot?: HTMLElement;
|
|
44
45
|
customComponents?: Map<string, CustomComponentDescription> | undefined;
|
|
46
|
+
store?: Store;
|
|
47
|
+
weekStartDay?: number;
|
|
45
48
|
}): DivkitDebugInstance;
|
|
46
49
|
|
|
47
50
|
export { createVariable, createGlobalVariablesController } from './variables';
|
|
@@ -36,6 +36,7 @@ export function render(opts: {
|
|
|
36
36
|
tooltipRoot?: HTMLElement;
|
|
37
37
|
customComponents?: Map<string, CustomComponentDescription> | undefined;
|
|
38
38
|
store?: Store;
|
|
39
|
+
weekStartDay?: number;
|
|
39
40
|
}): DivkitInstance;
|
|
40
41
|
|
|
41
42
|
export { createVariable, createGlobalVariablesController } from './variables';
|
package/typings/client.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export function render(opts: {
|
|
|
35
35
|
tooltipRoot?: HTMLElement;
|
|
36
36
|
customComponents?: Map<string, CustomComponentDescription> | undefined;
|
|
37
37
|
store?: Store;
|
|
38
|
+
weekStartDay?: number;
|
|
38
39
|
}): DivkitInstance;
|
|
39
40
|
|
|
40
41
|
export { createVariable, createGlobalVariablesController } from './variables';
|
package/typings/common.d.ts
CHANGED
|
@@ -257,7 +257,7 @@ export type FetchInit = RequestInit | ((url: string) => RequestInit);
|
|
|
257
257
|
|
|
258
258
|
export interface DivkitInstance {
|
|
259
259
|
$destroy(): void;
|
|
260
|
-
execAction(action: Action | VisibilityAction): void;
|
|
260
|
+
execAction(action: Action | VisibilityAction | DisappearAction): void;
|
|
261
261
|
/** @deprecated */
|
|
262
262
|
setTheme(theme: Theme): void;
|
|
263
263
|
/** Experimental */
|
|
@@ -281,6 +281,8 @@ export interface Customization {
|
|
|
281
281
|
|
|
282
282
|
export interface DivExtensionContext {
|
|
283
283
|
variables: Map<string, Variable>;
|
|
284
|
+
processExpressions<T>(t: T): T;
|
|
285
|
+
execAction(action: Action | VisibilityAction | DisappearAction): void;
|
|
284
286
|
logError(error: WrappedError): void;
|
|
285
287
|
}
|
|
286
288
|
|