@divkitframework/divkit 18.0.0 → 19.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": "18.0.0",
3
+ "version": "19.0.0",
4
4
  "description": "DivKit for the web",
5
5
  "keywords": [
6
6
  "server-driven-ui",
@@ -16,6 +16,7 @@ export function render(opts: {
16
16
  id: string;
17
17
  hydrate?: boolean;
18
18
  globalVariablesController?: GlobalVariablesController;
19
+ mix?: string;
19
20
  onStat?: StatCallback;
20
21
  onCustomAction?: CustomActionCallback;
21
22
  onError?: ErrorCallback;
@@ -5,7 +5,8 @@ import type {
5
5
  DivkitInstance,
6
6
  Platform,
7
7
  CustomActionCallback,
8
- Theme
8
+ Theme,
9
+ Customization
9
10
  } from './common';
10
11
  import type { GlobalVariablesController } from './variables';
11
12
 
@@ -15,10 +16,12 @@ export function render(opts: {
15
16
  id: string;
16
17
  hydrate?: boolean;
17
18
  globalVariablesController?: GlobalVariablesController;
19
+ mix?: string;
18
20
  onStat?: StatCallback;
19
21
  onCustomAction?: CustomActionCallback;
20
22
  onError?: ErrorCallback;
21
23
  platform?: Platform;
24
+ customization?: Customization;
22
25
  /** EXPERIMENTAL SUPPORT */
23
26
  theme?: Theme;
24
27
  }): DivkitInstance;
@@ -5,7 +5,8 @@ import type {
5
5
  DivkitInstance,
6
6
  Platform,
7
7
  CustomActionCallback,
8
- Theme
8
+ Theme,
9
+ Customization
9
10
  } from './common';
10
11
  import type { GlobalVariablesController } from './variables';
11
12
 
@@ -14,10 +15,12 @@ export function render(opts: {
14
15
  json: DivJson;
15
16
  id: string;
16
17
  globalVariablesController?: GlobalVariablesController;
18
+ mix?: string;
17
19
  onStat?: StatCallback;
18
20
  onCustomAction?: CustomActionCallback;
19
21
  onError?: ErrorCallback;
20
22
  platform?: Platform;
23
+ customization?: Customization;
21
24
  /** EXPERIMENTAL SUPPORT */
22
25
  theme?: Theme;
23
26
  }): DivkitInstance;
@@ -140,3 +140,8 @@ export interface DivkitInstance {
140
140
  export type Platform = 'desktop' | 'touch' | 'auto';
141
141
 
142
142
  export type Theme = 'system' | 'light' | 'dark';
143
+
144
+ export interface Customization {
145
+ galleryLeftClass?: string;
146
+ galleryRightClass?: string;
147
+ }
@@ -1,8 +1,15 @@
1
- import type { DivJson, ErrorCallback, Platform } from './common';
1
+ import type {
2
+ DivJson,
3
+ ErrorCallback,
4
+ Platform,
5
+ Customization
6
+ } from './common';
2
7
 
3
8
  export function render(opts: {
4
9
  json: DivJson;
5
10
  id: string;
6
- onError?: ErrorCallback;
7
11
  platform?: Platform;
12
+ mix?: string;
13
+ customization?: Customization;
14
+ onError?: ErrorCallback;
8
15
  }): string;