@divkitframework/divkit 28.8.0 → 28.9.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": "28.8.0",
3
+ "version": "28.9.0",
4
4
  "description": "DivKit for the web",
5
5
  "keywords": [
6
6
  "server-driven-ui",
@@ -147,7 +147,20 @@ export interface ActionSetVariable {
147
147
  value: TypedValue;
148
148
  }
149
149
 
150
- export type TypedAction = ActionSetVariable;
150
+ export interface ActionArrayRemoveValue {
151
+ type: 'array_remove_value';
152
+ variable_name: string;
153
+ index: number;
154
+ }
155
+
156
+ export interface ActionArrayInsertValue {
157
+ type: 'array_insert_value';
158
+ variable_name: string;
159
+ index?: number;
160
+ value: TypedValue;
161
+ }
162
+
163
+ export type TypedAction = ActionSetVariable | ActionArrayRemoveValue | ActionArrayInsertValue;
151
164
 
152
165
  export interface Action {
153
166
  log_id: string;
@@ -1,5 +1,10 @@
1
+ export type CustomComponentTemplate = string | ((opts: {
2
+ props?: object;
3
+ variables: Map<string, string | number | boolean | unknown[] | object>;
4
+ }) => string);
5
+
1
6
  export interface CustomComponentDescription {
2
7
  element: string;
3
8
  shadowRootMode?: 'open' | 'close';
4
- template?: string;
9
+ template?: CustomComponentTemplate;
5
10
  }