@gravity-ui/page-constructor 3.0.0 → 3.1.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/CHANGELOG.md +12 -0
- package/README.md +15 -0
- package/build/cjs/blocks/Header/schema.d.ts +234 -0
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +78 -0
- package/build/cjs/blocks/Media/schema.d.ts +156 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
- package/build/cjs/blocks/Slider/Slider.js +1 -1
- package/build/cjs/blocks/Tabs/schema.d.ts +78 -0
- package/build/cjs/components/Media/Media.js +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.d.ts +2 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +6 -2
- package/build/cjs/models/common.d.ts +2 -1
- package/build/cjs/models/common.js +1 -0
- package/build/cjs/schema/validators/common.d.ts +78 -0
- package/build/cjs/schema/validators/common.js +3 -0
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +78 -0
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +78 -0
- package/build/esm/blocks/Header/schema.d.ts +234 -0
- package/build/esm/blocks/HeaderSlider/schema.d.ts +78 -0
- package/build/esm/blocks/Media/schema.d.ts +156 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
- package/build/esm/blocks/Slider/Slider.js +2 -2
- package/build/esm/blocks/Tabs/schema.d.ts +78 -0
- package/build/esm/components/Media/Media.js +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.d.ts +2 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +6 -2
- package/build/esm/models/common.d.ts +2 -1
- package/build/esm/models/common.js +1 -0
- package/build/esm/schema/validators/common.d.ts +78 -0
- package/build/esm/schema/validators/common.js +3 -0
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +78 -0
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +78 -0
- package/package.json +1 -1
- package/server/models/common.d.ts +2 -1
- package/server/models/common.js +1 -0
|
@@ -135,6 +135,84 @@ export declare const LayoutItem: {
|
|
|
135
135
|
fullscreen: {
|
|
136
136
|
type: string;
|
|
137
137
|
};
|
|
138
|
+
analyticsEvents: {
|
|
139
|
+
anyOf: ({
|
|
140
|
+
type: string;
|
|
141
|
+
additionalProperties: {
|
|
142
|
+
type: string;
|
|
143
|
+
};
|
|
144
|
+
required: string[];
|
|
145
|
+
properties: {
|
|
146
|
+
name: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
type: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
counters: {
|
|
153
|
+
type: string;
|
|
154
|
+
additionalProperties: boolean;
|
|
155
|
+
required: never[];
|
|
156
|
+
properties: {
|
|
157
|
+
include: {
|
|
158
|
+
type: string;
|
|
159
|
+
items: {
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
exclude: {
|
|
164
|
+
type: string;
|
|
165
|
+
items: {
|
|
166
|
+
type: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
context: {
|
|
172
|
+
type: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
} | {
|
|
176
|
+
type: string;
|
|
177
|
+
items: {
|
|
178
|
+
type: string;
|
|
179
|
+
additionalProperties: {
|
|
180
|
+
type: string;
|
|
181
|
+
};
|
|
182
|
+
required: string[];
|
|
183
|
+
properties: {
|
|
184
|
+
name: {
|
|
185
|
+
type: string;
|
|
186
|
+
};
|
|
187
|
+
type: {
|
|
188
|
+
type: string;
|
|
189
|
+
};
|
|
190
|
+
counters: {
|
|
191
|
+
type: string;
|
|
192
|
+
additionalProperties: boolean;
|
|
193
|
+
required: never[];
|
|
194
|
+
properties: {
|
|
195
|
+
include: {
|
|
196
|
+
type: string;
|
|
197
|
+
items: {
|
|
198
|
+
type: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
exclude: {
|
|
202
|
+
type: string;
|
|
203
|
+
items: {
|
|
204
|
+
type: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
context: {
|
|
210
|
+
type: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
})[];
|
|
215
|
+
};
|
|
138
216
|
};
|
|
139
217
|
content: Partial<{
|
|
140
218
|
title: {
|
|
@@ -137,6 +137,84 @@ export declare const MediaCardBlock: {
|
|
|
137
137
|
fullscreen: {
|
|
138
138
|
type: string;
|
|
139
139
|
};
|
|
140
|
+
analyticsEvents: {
|
|
141
|
+
anyOf: ({
|
|
142
|
+
type: string;
|
|
143
|
+
additionalProperties: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
required: string[];
|
|
147
|
+
properties: {
|
|
148
|
+
name: {
|
|
149
|
+
type: string;
|
|
150
|
+
};
|
|
151
|
+
type: {
|
|
152
|
+
type: string;
|
|
153
|
+
};
|
|
154
|
+
counters: {
|
|
155
|
+
type: string;
|
|
156
|
+
additionalProperties: boolean;
|
|
157
|
+
required: never[];
|
|
158
|
+
properties: {
|
|
159
|
+
include: {
|
|
160
|
+
type: string;
|
|
161
|
+
items: {
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
exclude: {
|
|
166
|
+
type: string;
|
|
167
|
+
items: {
|
|
168
|
+
type: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
context: {
|
|
174
|
+
type: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
} | {
|
|
178
|
+
type: string;
|
|
179
|
+
items: {
|
|
180
|
+
type: string;
|
|
181
|
+
additionalProperties: {
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
184
|
+
required: string[];
|
|
185
|
+
properties: {
|
|
186
|
+
name: {
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
type: {
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
192
|
+
counters: {
|
|
193
|
+
type: string;
|
|
194
|
+
additionalProperties: boolean;
|
|
195
|
+
required: never[];
|
|
196
|
+
properties: {
|
|
197
|
+
include: {
|
|
198
|
+
type: string;
|
|
199
|
+
items: {
|
|
200
|
+
type: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
exclude: {
|
|
204
|
+
type: string;
|
|
205
|
+
items: {
|
|
206
|
+
type: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
context: {
|
|
212
|
+
type: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
})[];
|
|
217
|
+
};
|
|
140
218
|
border: {
|
|
141
219
|
type: string;
|
|
142
220
|
enum: string[];
|
package/package.json
CHANGED
|
@@ -79,7 +79,8 @@ export declare enum DefaultEventNames {
|
|
|
79
79
|
HubspotFormSubmit = "hubspot-form-submit",
|
|
80
80
|
QuoteButton = "quote-button-click",
|
|
81
81
|
BackLink = "back-link-click",
|
|
82
|
-
Breadcrumb = "breadcrumb-click"
|
|
82
|
+
Breadcrumb = "breadcrumb-click",
|
|
83
|
+
VideoPreview = "video-preview-click"
|
|
83
84
|
}
|
|
84
85
|
export type AnalyticsCounters = {
|
|
85
86
|
include?: string[];
|
package/server/models/common.js
CHANGED
|
@@ -48,4 +48,5 @@ var DefaultEventNames;
|
|
|
48
48
|
DefaultEventNames["QuoteButton"] = "quote-button-click";
|
|
49
49
|
DefaultEventNames["BackLink"] = "back-link-click";
|
|
50
50
|
DefaultEventNames["Breadcrumb"] = "breadcrumb-click";
|
|
51
|
+
DefaultEventNames["VideoPreview"] = "video-preview-click";
|
|
51
52
|
})(DefaultEventNames = exports.DefaultEventNames || (exports.DefaultEventNames = {}));
|