@divkitframework/divkit 27.3.0 → 28.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": "27.3.0",
3
+ "version": "28.0.0",
4
4
  "description": "DivKit for the web",
5
5
  "keywords": [
6
6
  "server-driven-ui",
@@ -103,25 +103,24 @@
103
103
  "chai": "4.3.7",
104
104
  "css-loader": "6.7.3",
105
105
  "css-minimizer-webpack-plugin": "5.0.0",
106
- "eslint": "7.32.0",
106
+ "eslint": "8.47.0",
107
107
  "eslint-plugin-ascii": "1.0.0",
108
- "eslint-plugin-import": "2.26.0",
108
+ "eslint-plugin-import": "2.28.0",
109
109
  "eslint-plugin-mocha": "10.1.0",
110
- "eslint-plugin-svelte3": "3.4.1",
110
+ "eslint-plugin-svelte": "2.32.4",
111
111
  "html-webpack-plugin": "5.5.1",
112
- "jest": "29.5.0",
113
- "jest-environment-jsdom": "29.5.0",
114
- "jest-html-reporter": "3.8.0",
112
+ "jest": "29.6.2",
113
+ "jest-environment-jsdom": "29.6.2",
114
+ "jest-html-reporter": "3.10.1",
115
115
  "lottie-web": "5.11.0",
116
116
  "mini-css-extract-plugin": "2.7.5",
117
117
  "peggy": "3.0.2",
118
118
  "postcss": "8.4.23",
119
119
  "postcss-loader": "7.2.4",
120
- "svelte": "3.58.0",
121
- "svelte-as-markup-preprocessor": "0.3.0",
122
- "svelte-check": "3.2.0",
123
- "svelte-loader": "3.1.7",
124
- "svelte-preprocess": "5.0.3",
120
+ "svelte": "4.2.0",
121
+ "svelte-check": "3.5.0",
122
+ "svelte-loader": "3.1.9",
123
+ "svelte-preprocess": "5.0.4",
125
124
  "typescript": "5.0.4",
126
125
  "webpack": "5.80.0",
127
126
  "webpack-cli": "5.0.2",
@@ -9,7 +9,8 @@ import type {
9
9
  Theme,
10
10
  Customization,
11
11
  DivExtensionClass,
12
- TypefaceProvider
12
+ TypefaceProvider,
13
+ FetchInit
13
14
  } from './common';
14
15
  import type { GlobalVariablesController, Variable } from './variables';
15
16
  import type { WrappedError } from './common';
@@ -36,6 +37,8 @@ export function render(opts: {
36
37
  extensions?: Map<string, DivExtensionClass>;
37
38
  /** EXPERIMENTAL SUPPORT */
38
39
  theme?: Theme;
40
+ fetchInit?: FetchInit;
41
+ tooltipRoot?: HTMLElement;
39
42
  }): DivkitDebugInstance;
40
43
 
41
44
  export { createVariable, createGlobalVariablesController } from './variables';
@@ -8,7 +8,8 @@ import type {
8
8
  Theme,
9
9
  Customization,
10
10
  DivExtensionClass,
11
- TypefaceProvider
11
+ TypefaceProvider,
12
+ FetchInit
12
13
  } from './common';
13
14
  import type { GlobalVariablesController } from './variables';
14
15
 
@@ -29,6 +30,8 @@ export function render(opts: {
29
30
  extensions?: Map<string, DivExtensionClass>;
30
31
  /** EXPERIMENTAL SUPPORT */
31
32
  theme?: Theme;
33
+ fetchInit?: FetchInit;
34
+ tooltipRoot?: HTMLElement;
32
35
  }): DivkitInstance;
33
36
 
34
37
  export { createVariable, createGlobalVariablesController } from './variables';
@@ -8,7 +8,8 @@ import type {
8
8
  Theme,
9
9
  Customization,
10
10
  DivExtensionClass,
11
- TypefaceProvider
11
+ TypefaceProvider,
12
+ FetchInit
12
13
  } from './common';
13
14
  import type { GlobalVariablesController } from './variables';
14
15
 
@@ -28,6 +29,8 @@ export function render(opts: {
28
29
  extensions?: Map<string, DivExtensionClass>;
29
30
  /** EXPERIMENTAL SUPPORT */
30
31
  theme?: Theme;
32
+ fetchInit?: FetchInit;
33
+ tooltipRoot?: HTMLElement;
31
34
  }): DivkitInstance;
32
35
 
33
36
  export { createVariable, createGlobalVariablesController } from './variables';
@@ -161,6 +161,8 @@ export type TypefaceProvider = (fontFamily: string, opts?: {
161
161
  fontWeight?: number;
162
162
  }) => string;
163
163
 
164
+ export type FetchInit = RequestInit | ((url: string) => RequestInit);
165
+
164
166
  export interface DivkitInstance {
165
167
  $destroy(): void;
166
168
  execAction(action: Action | VisibilityAction): void;