@gravity-ui/page-constructor 3.0.0-alpha.6 → 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 +59 -0
- package/README.md +16 -1
- package/build/cjs/blocks/CardLayout/CardLayout.js +1 -1
- package/build/cjs/blocks/CardLayout/schema.d.ts +2 -2
- package/build/cjs/blocks/CardLayout/schema.js +1 -1
- package/build/cjs/blocks/FilterBlock/FilterBlock.js +9 -13
- package/build/cjs/blocks/Header/schema.d.ts +243 -0
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +81 -0
- package/build/cjs/blocks/Media/schema.d.ts +162 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +81 -0
- package/build/cjs/blocks/Slider/Slider.js +1 -1
- package/build/cjs/blocks/Tabs/schema.d.ts +81 -0
- package/build/cjs/components/FullscreenImage/{FullScreenImage.css → FullscreenImage.css} +13 -13
- package/build/cjs/components/FullscreenImage/FullscreenImage.d.ts +3 -3
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +7 -7
- package/build/cjs/components/FullscreenImage/i18n/index.js +1 -1
- package/build/cjs/components/FullscreenMedia/FullscreenMedia.d.ts +9 -0
- package/build/cjs/components/FullscreenMedia/{FullScreenMedia.js → FullscreenMedia.js} +5 -5
- package/build/cjs/components/Media/FullscreenVideo/FullscreenVideo.d.ts +4 -0
- package/build/cjs/components/Media/FullscreenVideo/FullscreenVideo.js +10 -0
- package/build/cjs/components/Media/Image/Image.d.ts +1 -0
- package/build/cjs/components/Media/Image/Image.js +10 -3
- package/build/cjs/components/Media/Media.js +25 -5
- package/build/cjs/components/Media/Video/Video.d.ts +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.d.ts +3 -2
- package/build/cjs/components/VideoBlock/VideoBlock.js +8 -4
- package/build/cjs/components/index.d.ts +1 -1
- package/build/cjs/components/index.js +3 -3
- package/build/cjs/constructor-items.d.ts +1 -1
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/icons/Fullscreen.d.ts +2 -0
- package/build/cjs/icons/{FullScreen.js → Fullscreen.js} +3 -3
- package/build/cjs/icons/index.d.ts +1 -1
- package/build/cjs/icons/index.js +1 -1
- package/build/cjs/models/common.d.ts +2 -1
- package/build/cjs/models/common.js +1 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +1 -1
- package/build/cjs/models/constructor-items/common.d.ts +1 -1
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +1 -1
- package/build/cjs/schema/validators/common.d.ts +81 -0
- package/build/cjs/schema/validators/common.js +6 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +4 -4
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +82 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.js +1 -1
- package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +2 -2
- package/build/cjs/sub-blocks/LayoutItem/utils.js +6 -6
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +85 -0
- package/build/cjs/sub-blocks/MediaCard/schema.js +1 -1
- package/build/esm/blocks/CardLayout/CardLayout.js +1 -1
- package/build/esm/blocks/CardLayout/schema.d.ts +2 -2
- package/build/esm/blocks/CardLayout/schema.js +1 -1
- package/build/esm/blocks/FilterBlock/FilterBlock.js +10 -14
- package/build/esm/blocks/Header/schema.d.ts +243 -0
- package/build/esm/blocks/HeaderSlider/schema.d.ts +81 -0
- package/build/esm/blocks/Media/schema.d.ts +162 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +81 -0
- package/build/esm/blocks/Slider/Slider.js +2 -2
- package/build/esm/blocks/Tabs/Tabs.js +2 -2
- package/build/esm/blocks/Tabs/schema.d.ts +81 -0
- package/build/esm/components/FullscreenImage/{FullScreenImage.css → FullscreenImage.css} +13 -13
- package/build/esm/components/FullscreenImage/FullscreenImage.d.ts +4 -4
- package/build/esm/components/FullscreenImage/FullscreenImage.js +9 -9
- package/build/esm/components/FullscreenImage/i18n/index.js +1 -1
- package/build/esm/components/FullscreenMedia/FullscreenMedia.d.ts +10 -0
- package/build/esm/components/FullscreenMedia/{FullScreenMedia.js → FullscreenMedia.js} +7 -7
- package/build/esm/components/Media/FullscreenVideo/FullscreenVideo.d.ts +4 -0
- package/build/esm/components/Media/FullscreenVideo/FullscreenVideo.js +7 -0
- package/build/esm/components/Media/Image/Image.d.ts +1 -0
- package/build/esm/components/Media/Image/Image.js +12 -5
- package/build/esm/components/Media/Media.js +25 -5
- package/build/esm/components/Media/Video/Video.d.ts +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.d.ts +3 -2
- package/build/esm/components/VideoBlock/VideoBlock.js +8 -4
- package/build/esm/components/index.d.ts +1 -1
- package/build/esm/components/index.js +1 -1
- package/build/esm/constructor-items.d.ts +1 -1
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/icons/Fullscreen.d.ts +2 -0
- package/build/esm/icons/{FullScreen.js → Fullscreen.js} +1 -1
- package/build/esm/icons/index.d.ts +1 -1
- package/build/esm/icons/index.js +1 -1
- package/build/esm/models/common.d.ts +2 -1
- package/build/esm/models/common.js +1 -0
- package/build/esm/models/constructor-items/blocks.d.ts +1 -1
- package/build/esm/models/constructor-items/common.d.ts +1 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +1 -1
- package/build/esm/schema/validators/common.d.ts +81 -0
- package/build/esm/schema/validators/common.js +6 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +6 -6
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +82 -1
- package/build/esm/sub-blocks/LayoutItem/schema.js +1 -1
- package/build/esm/sub-blocks/LayoutItem/utils.d.ts +2 -2
- package/build/esm/sub-blocks/LayoutItem/utils.js +3 -3
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +85 -0
- package/build/esm/sub-blocks/MediaCard/schema.js +2 -2
- package/package.json +1 -4
- package/server/models/common.d.ts +2 -1
- package/server/models/common.js +1 -0
- package/server/models/constructor-items/blocks.d.ts +1 -1
- package/server/models/constructor-items/common.d.ts +1 -1
- package/server/models/constructor-items/sub-blocks.d.ts +1 -1
- package/build/cjs/components/FullscreenMedia/FullScreenMedia.d.ts +0 -9
- package/build/cjs/icons/FullScreen.d.ts +0 -2
- package/build/esm/components/FullscreenMedia/FullScreenMedia.d.ts +0 -10
- package/build/esm/icons/FullScreen.d.ts +0 -2
- /package/build/cjs/components/FullscreenMedia/{FullScreenMedia.css → FullscreenMedia.css} +0 -0
- /package/build/esm/components/FullscreenMedia/{FullScreenMedia.css → FullscreenMedia.css} +0 -0
|
@@ -1114,6 +1114,87 @@ export declare const MediaProps: {
|
|
|
1114
1114
|
type: string;
|
|
1115
1115
|
})[];
|
|
1116
1116
|
};
|
|
1117
|
+
fullscreen: {
|
|
1118
|
+
type: string;
|
|
1119
|
+
};
|
|
1120
|
+
analyticsEvents: {
|
|
1121
|
+
anyOf: ({
|
|
1122
|
+
type: string;
|
|
1123
|
+
additionalProperties: {
|
|
1124
|
+
type: string;
|
|
1125
|
+
};
|
|
1126
|
+
required: string[];
|
|
1127
|
+
properties: {
|
|
1128
|
+
name: {
|
|
1129
|
+
type: string;
|
|
1130
|
+
};
|
|
1131
|
+
type: {
|
|
1132
|
+
type: string;
|
|
1133
|
+
};
|
|
1134
|
+
counters: {
|
|
1135
|
+
type: string;
|
|
1136
|
+
additionalProperties: boolean;
|
|
1137
|
+
required: never[];
|
|
1138
|
+
properties: {
|
|
1139
|
+
include: {
|
|
1140
|
+
type: string;
|
|
1141
|
+
items: {
|
|
1142
|
+
type: string;
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
exclude: {
|
|
1146
|
+
type: string;
|
|
1147
|
+
items: {
|
|
1148
|
+
type: string;
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
context: {
|
|
1154
|
+
type: string;
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
} | {
|
|
1158
|
+
type: string;
|
|
1159
|
+
items: {
|
|
1160
|
+
type: string;
|
|
1161
|
+
additionalProperties: {
|
|
1162
|
+
type: string;
|
|
1163
|
+
};
|
|
1164
|
+
required: string[];
|
|
1165
|
+
properties: {
|
|
1166
|
+
name: {
|
|
1167
|
+
type: string;
|
|
1168
|
+
};
|
|
1169
|
+
type: {
|
|
1170
|
+
type: string;
|
|
1171
|
+
};
|
|
1172
|
+
counters: {
|
|
1173
|
+
type: string;
|
|
1174
|
+
additionalProperties: boolean;
|
|
1175
|
+
required: never[];
|
|
1176
|
+
properties: {
|
|
1177
|
+
include: {
|
|
1178
|
+
type: string;
|
|
1179
|
+
items: {
|
|
1180
|
+
type: string;
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
exclude: {
|
|
1184
|
+
type: string;
|
|
1185
|
+
items: {
|
|
1186
|
+
type: string;
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
context: {
|
|
1192
|
+
type: string;
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
};
|
|
1196
|
+
})[];
|
|
1197
|
+
};
|
|
1117
1198
|
};
|
|
1118
1199
|
export declare const YMapMarkerLabel: {
|
|
1119
1200
|
type: string;
|
|
@@ -453,6 +453,12 @@ export const MediaProps = {
|
|
|
453
453
|
type: 'string',
|
|
454
454
|
},
|
|
455
455
|
dataLens: DataLensProps,
|
|
456
|
+
fullscreen: {
|
|
457
|
+
type: 'boolean',
|
|
458
|
+
},
|
|
459
|
+
analyticsEvents: {
|
|
460
|
+
anyOf: [AnalyticsEventSchema, { type: 'array', items: AnalyticsEventSchema }],
|
|
461
|
+
},
|
|
456
462
|
};
|
|
457
463
|
export const YMapMarkerLabel = {
|
|
458
464
|
type: 'object',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LayoutItemProps } from '../../models';
|
|
2
2
|
import './LayoutItem.css';
|
|
3
|
-
declare const LayoutItem: ({ content: { links, ...content }, metaInfo, media, border,
|
|
3
|
+
declare const LayoutItem: ({ content: { links, ...content }, metaInfo, media, border, fullscreen, className, }: LayoutItemProps) => JSX.Element;
|
|
4
4
|
export default LayoutItem;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Content } from '..';
|
|
4
|
-
import {
|
|
4
|
+
import { FullscreenMedia, Media, MetaInfo } from '../../components';
|
|
5
5
|
import { block } from '../../utils';
|
|
6
|
-
import { getLayoutItemLinks,
|
|
6
|
+
import { getLayoutItemLinks, hasFullscreen, showFullscreenIcon } from './utils';
|
|
7
7
|
import './LayoutItem.css';
|
|
8
8
|
const b = block('layout-item');
|
|
9
9
|
const LayoutItem = (_a) => {
|
|
10
|
-
var _b = _a.content, { links } = _b, content = __rest(_b, ["links"]), { metaInfo, media, border,
|
|
10
|
+
var _b = _a.content, { links } = _b, content = __rest(_b, ["links"]), { metaInfo, media, border, fullscreen, className } = _a;
|
|
11
11
|
return (React.createElement("div", { className: b(null, className) },
|
|
12
|
-
|
|
13
|
-
var { className: mediaClassName } = _a,
|
|
14
|
-
return (React.createElement(Media, Object.assign({}, media,
|
|
12
|
+
fullscreen && hasFullscreen(media) ? (React.createElement(FullscreenMedia, { showFullscreenIcon: showFullscreenIcon(media) }, (_a = {}) => {
|
|
13
|
+
var { className: mediaClassName, fullscreen: _fullscreen } = _a, fullscreenMediaProps = __rest(_a, ["className", "fullscreen"]);
|
|
14
|
+
return (React.createElement(Media, Object.assign({}, media, fullscreenMediaProps, { className: b('media', { border }, mediaClassName) })));
|
|
15
15
|
})) : (React.createElement(Media, Object.assign({}, media, { className: b('media', { border }) }))),
|
|
16
16
|
metaInfo && React.createElement(MetaInfo, { items: metaInfo, className: b('meta-info') }),
|
|
17
17
|
React.createElement("div", { className: b('content') },
|
|
@@ -132,6 +132,87 @@ export declare const LayoutItem: {
|
|
|
132
132
|
type: string;
|
|
133
133
|
})[];
|
|
134
134
|
};
|
|
135
|
+
fullscreen: {
|
|
136
|
+
type: string;
|
|
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
|
+
};
|
|
135
216
|
};
|
|
136
217
|
content: Partial<{
|
|
137
218
|
title: {
|
|
@@ -209,7 +290,7 @@ export declare const LayoutItem: {
|
|
|
209
290
|
border: {
|
|
210
291
|
type: string;
|
|
211
292
|
};
|
|
212
|
-
|
|
293
|
+
fullscreen: {
|
|
213
294
|
type: string;
|
|
214
295
|
};
|
|
215
296
|
type: {};
|
|
@@ -8,7 +8,7 @@ export const LayoutItem = {
|
|
|
8
8
|
required: ['content', 'media'],
|
|
9
9
|
properties: Object.assign(Object.assign({}, BaseProps), { media: MediaProps, content: omit(ContentBase, ['colSize', 'size', 'centered']), metaInfo: metaInfo, border: {
|
|
10
10
|
type: 'boolean',
|
|
11
|
-
},
|
|
11
|
+
}, fullscreen: {
|
|
12
12
|
type: 'boolean',
|
|
13
13
|
} }),
|
|
14
14
|
};
|
|
@@ -24,5 +24,5 @@ export declare const getLayoutItemLinks: (links: LayoutItemProps['content']['lin
|
|
|
24
24
|
}[] | undefined;
|
|
25
25
|
className?: string | undefined;
|
|
26
26
|
}[] | undefined;
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const
|
|
27
|
+
export declare const hasFullscreen: ({ dataLens, image }: MediaProps) => boolean;
|
|
28
|
+
export declare const showFullscreenIcon: ({ youtube }: MediaProps) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const getLayoutItemLinks = (links) => links === null || links === void 0 ? void 0 : links.map((link) => (Object.assign({ theme: 'normal' }, link)));
|
|
2
|
-
export const
|
|
3
|
-
// datalens and slider media card don't support
|
|
2
|
+
export const hasFullscreen = ({ dataLens, image }) => {
|
|
3
|
+
// datalens and slider media card don't support fullscreen mode
|
|
4
4
|
return !(dataLens || Array.isArray(image));
|
|
5
5
|
};
|
|
6
|
-
export const
|
|
6
|
+
export const showFullscreenIcon = ({ youtube }) => !youtube;
|
|
@@ -134,6 +134,91 @@ export declare const MediaCardBlock: {
|
|
|
134
134
|
type: string;
|
|
135
135
|
})[];
|
|
136
136
|
};
|
|
137
|
+
fullscreen: {
|
|
138
|
+
type: string;
|
|
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
|
+
};
|
|
218
|
+
border: {
|
|
219
|
+
type: string;
|
|
220
|
+
enum: string[];
|
|
221
|
+
};
|
|
137
222
|
type: {};
|
|
138
223
|
when: {};
|
|
139
224
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AnimatableProps, BaseProps, MediaProps } from '../../schema/validators/common';
|
|
1
|
+
import { AnimatableProps, BaseProps, CardBase, MediaProps } from '../../schema/validators/common';
|
|
2
2
|
export const MediaCardBlock = {
|
|
3
3
|
'media-card': {
|
|
4
4
|
additionalProperties: false,
|
|
5
5
|
required: [],
|
|
6
|
-
properties: Object.assign(Object.assign(Object.assign({}, BaseProps), MediaProps), AnimatableProps),
|
|
6
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BaseProps), CardBase), MediaProps), AnimatableProps),
|
|
7
7
|
},
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/page-constructor",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Gravity UI Page Constructor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -139,8 +139,5 @@
|
|
|
139
139
|
"*.{json,yaml,yml,md}": [
|
|
140
140
|
"prettier --write"
|
|
141
141
|
]
|
|
142
|
-
},
|
|
143
|
-
"publishConfig": {
|
|
144
|
-
"tag": "alpha"
|
|
145
142
|
}
|
|
146
143
|
}
|
|
@@ -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 = {}));
|
|
@@ -212,7 +212,7 @@ export interface TabsBlockProps extends Animatable {
|
|
|
212
212
|
items: TabsBlockItem[];
|
|
213
213
|
}
|
|
214
214
|
export interface CardLayoutBlockProps extends Childable, Animatable, LoadableChildren {
|
|
215
|
-
title
|
|
215
|
+
title?: TitleItemProps | string;
|
|
216
216
|
description?: string;
|
|
217
217
|
colSizes?: GridColumnSizesType;
|
|
218
218
|
}
|
|
@@ -169,7 +169,7 @@ export interface MediaComponentVideoProps extends AnalyticsEventsBase {
|
|
|
169
169
|
export interface MediaComponentYoutubeProps {
|
|
170
170
|
youtube: string;
|
|
171
171
|
previewImg?: string;
|
|
172
|
-
|
|
172
|
+
fullscreen?: boolean;
|
|
173
173
|
}
|
|
174
174
|
export interface MediaComponentImageProps {
|
|
175
175
|
image: ImageProps | ImageProps[] | ImageDeviceProps;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MediaAllProps } from '../Media/Media';
|
|
3
|
-
export type ChildMediaRenderProps = Pick<MediaAllProps, 'fullScreen' | 'imageClassName' | 'videoClassName' | 'youtubeClassName' | 'className'>;
|
|
4
|
-
export interface FullScreenMediaProps {
|
|
5
|
-
showFullScreenIcon?: boolean;
|
|
6
|
-
children: (props?: ChildMediaRenderProps) => JSX.Element;
|
|
7
|
-
}
|
|
8
|
-
declare const FullScreenMedia: ({ children, showFullScreenIcon }: FullScreenMediaProps) => JSX.Element;
|
|
9
|
-
export default FullScreenMedia;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MediaAllProps } from '../Media/Media';
|
|
3
|
-
import './FullScreenMedia.css';
|
|
4
|
-
export type ChildMediaRenderProps = Pick<MediaAllProps, 'fullScreen' | 'imageClassName' | 'videoClassName' | 'youtubeClassName' | 'className'>;
|
|
5
|
-
export interface FullScreenMediaProps {
|
|
6
|
-
showFullScreenIcon?: boolean;
|
|
7
|
-
children: (props?: ChildMediaRenderProps) => JSX.Element;
|
|
8
|
-
}
|
|
9
|
-
declare const FullScreenMedia: ({ children, showFullScreenIcon }: FullScreenMediaProps) => JSX.Element;
|
|
10
|
-
export default FullScreenMedia;
|
|
File without changes
|
|
File without changes
|