@doyourjob/gravity-ui-page-constructor 5.31.250 → 5.31.253
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/build/cjs/constructor-items.d.ts +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +25 -2
- package/build/cjs/models/constructor-items/sub-blocks.js +1 -0
- package/build/cjs/schema/constants.d.ts +211 -2
- package/build/cjs/schema/constants.js +2 -1
- package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
- package/build/cjs/schema/validators/sub-blocks.js +1 -0
- package/build/cjs/sub-blocks/MiniCaseCard/MiniCaseCard.css +149 -0
- package/build/cjs/sub-blocks/MiniCaseCard/MiniCaseCard.d.ts +4 -0
- package/build/cjs/sub-blocks/MiniCaseCard/MiniCaseCard.js +55 -0
- package/build/cjs/sub-blocks/MiniCaseCard/schema.d.ts +211 -0
- package/build/cjs/sub-blocks/MiniCaseCard/schema.js +28 -0
- package/build/cjs/sub-blocks/index.d.ts +1 -0
- package/build/cjs/sub-blocks/index.js +3 -1
- package/build/cjs/text-transform/config.js +11 -0
- package/build/esm/constructor-items.d.ts +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +25 -2
- package/build/esm/models/constructor-items/sub-blocks.js +1 -0
- package/build/esm/schema/constants.d.ts +211 -2
- package/build/esm/schema/constants.js +3 -2
- package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
- package/build/esm/schema/validators/sub-blocks.js +1 -0
- package/build/esm/sub-blocks/MiniCaseCard/MiniCaseCard.css +149 -0
- package/build/esm/sub-blocks/MiniCaseCard/MiniCaseCard.d.ts +5 -0
- package/build/esm/sub-blocks/MiniCaseCard/MiniCaseCard.js +53 -0
- package/build/esm/sub-blocks/MiniCaseCard/schema.d.ts +211 -0
- package/build/esm/sub-blocks/MiniCaseCard/schema.js +25 -0
- package/build/esm/sub-blocks/index.d.ts +1 -0
- package/build/esm/sub-blocks/index.js +1 -0
- package/build/esm/text-transform/config.js +11 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/sub-blocks.d.ts +25 -2
- package/server/models/constructor-items/sub-blocks.js +1 -0
- package/server/text-transform/config.js +11 -0
- package/widget/index.js +1 -1
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export declare const MiniCaseCard: {
|
|
2
|
+
'mini-case-card': {
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
required: never[];
|
|
5
|
+
properties: {
|
|
6
|
+
title: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
tagUsecase: {
|
|
10
|
+
type: string;
|
|
11
|
+
items: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
tagIndustry: {
|
|
16
|
+
type: string;
|
|
17
|
+
items: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
showStory: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
showQuote: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
text: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
quote: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
logo: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
avatar: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
author: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
position: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
data: {
|
|
46
|
+
type: string;
|
|
47
|
+
items: {
|
|
48
|
+
type: string;
|
|
49
|
+
additionalProperties: boolean;
|
|
50
|
+
required: string[];
|
|
51
|
+
properties: {
|
|
52
|
+
value: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
label: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
background: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
backgroundData: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
anchor: {
|
|
68
|
+
type: string;
|
|
69
|
+
additionalProperties: boolean;
|
|
70
|
+
required: string[];
|
|
71
|
+
properties: {
|
|
72
|
+
text: {
|
|
73
|
+
type: string;
|
|
74
|
+
contentType: string;
|
|
75
|
+
};
|
|
76
|
+
url: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
urlTitle: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
visibility: {
|
|
85
|
+
oneOf: ({
|
|
86
|
+
type: string;
|
|
87
|
+
enum: string[];
|
|
88
|
+
additionalProperties?: undefined;
|
|
89
|
+
properties?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
type: string;
|
|
92
|
+
additionalProperties: boolean;
|
|
93
|
+
properties: {
|
|
94
|
+
xs: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
sm: {
|
|
98
|
+
type: string;
|
|
99
|
+
};
|
|
100
|
+
md: {
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
lg: {
|
|
104
|
+
type: string;
|
|
105
|
+
};
|
|
106
|
+
xl: {
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
xxl: {
|
|
110
|
+
type: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
enum?: undefined;
|
|
114
|
+
})[];
|
|
115
|
+
};
|
|
116
|
+
visible: {
|
|
117
|
+
type: string;
|
|
118
|
+
enum: string[];
|
|
119
|
+
};
|
|
120
|
+
hidden: {
|
|
121
|
+
type: string;
|
|
122
|
+
enum: string[];
|
|
123
|
+
};
|
|
124
|
+
resetPaddings: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
context: {
|
|
128
|
+
type: string;
|
|
129
|
+
};
|
|
130
|
+
indent: {
|
|
131
|
+
type: string;
|
|
132
|
+
additionalProperties: boolean;
|
|
133
|
+
properties: {
|
|
134
|
+
top: {
|
|
135
|
+
enum: string[];
|
|
136
|
+
};
|
|
137
|
+
bottom: {
|
|
138
|
+
enum: string[];
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
backgroundFull: {
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
visibilityFilter: {
|
|
146
|
+
oneOf: ({
|
|
147
|
+
type: string;
|
|
148
|
+
items?: undefined;
|
|
149
|
+
} | {
|
|
150
|
+
type: string;
|
|
151
|
+
items: {
|
|
152
|
+
type: string;
|
|
153
|
+
};
|
|
154
|
+
})[];
|
|
155
|
+
};
|
|
156
|
+
blockUnicorn: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
blockUnicornSdkUrl: {
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
blockBackground: {
|
|
163
|
+
oneOf: ({
|
|
164
|
+
type: string;
|
|
165
|
+
additionalProperties?: undefined;
|
|
166
|
+
properties?: undefined;
|
|
167
|
+
} | {
|
|
168
|
+
type: string;
|
|
169
|
+
additionalProperties: boolean;
|
|
170
|
+
properties: {
|
|
171
|
+
color: {
|
|
172
|
+
type: string;
|
|
173
|
+
};
|
|
174
|
+
image: {
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
size: {
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
180
|
+
repeat: {
|
|
181
|
+
type: string;
|
|
182
|
+
};
|
|
183
|
+
position: {
|
|
184
|
+
type: string;
|
|
185
|
+
};
|
|
186
|
+
attachment: {
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
clip: {
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
192
|
+
origin: {
|
|
193
|
+
type: string;
|
|
194
|
+
};
|
|
195
|
+
blendMode: {
|
|
196
|
+
type: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
})[];
|
|
200
|
+
};
|
|
201
|
+
column: {
|
|
202
|
+
type: string;
|
|
203
|
+
enum: string[];
|
|
204
|
+
};
|
|
205
|
+
type: {};
|
|
206
|
+
when: {
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MiniCaseCard = void 0;
|
|
4
|
+
const common_1 = require("../../schema/validators/common");
|
|
5
|
+
exports.MiniCaseCard = {
|
|
6
|
+
'mini-case-card': {
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
required: [],
|
|
9
|
+
properties: Object.assign(Object.assign({}, common_1.BlockBaseProps), { title: { type: 'string' }, tagUsecase: {
|
|
10
|
+
type: 'array',
|
|
11
|
+
items: { type: 'string' },
|
|
12
|
+
}, tagIndustry: {
|
|
13
|
+
type: 'array',
|
|
14
|
+
items: { type: 'string' },
|
|
15
|
+
}, showStory: { type: 'boolean' }, showQuote: { type: 'boolean' }, text: { type: 'string' }, quote: { type: 'string' }, logo: { type: 'string' }, avatar: { type: 'string' }, author: { type: 'string' }, position: { type: 'string' }, data: {
|
|
16
|
+
type: 'array',
|
|
17
|
+
items: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
required: ['value'],
|
|
21
|
+
properties: {
|
|
22
|
+
value: { type: 'string' },
|
|
23
|
+
label: { type: 'string' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
}, background: { type: 'string' }, backgroundData: { type: 'string' } }),
|
|
27
|
+
},
|
|
28
|
+
};
|
|
@@ -20,4 +20,5 @@ export { default as EventPersonCard } from './EventPersonCard/EventPersonCard';
|
|
|
20
20
|
export { default as AttachmentCard } from './AttachmentCard/AttachmentCard';
|
|
21
21
|
export { default as CaseStudyCard } from './CaseStudyCard/CaseStudyCard';
|
|
22
22
|
export { default as StoryCard } from './StoryCard/StoryCard';
|
|
23
|
+
export { default as MiniCaseCard } from './MiniCaseCard/MiniCaseCard';
|
|
23
24
|
export { default as FeedPartner } from './FeedPartner/FeedPartner';
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.FeedPartner = exports.StoryCard = exports.CaseStudyCard = exports.AttachmentCard = exports.EventPersonCard = exports.FeedCard = exports.NewPostCard = exports.PostCard = exports.Card = exports.ContentLayoutCard = exports.ImageCard = exports.PriceCard = exports.HubspotForm = exports.Content = exports.BasicCard = exports.BackgroundCard = exports.NewsCard = exports.LayoutItem = exports.BannerCard = exports.MediaCard = exports.PriceDetailed = exports.Quote = exports.Divider = void 0;
|
|
6
|
+
exports.FeedPartner = exports.MiniCaseCard = exports.StoryCard = exports.CaseStudyCard = exports.AttachmentCard = exports.EventPersonCard = exports.FeedCard = exports.NewPostCard = exports.PostCard = exports.Card = exports.ContentLayoutCard = exports.ImageCard = exports.PriceCard = exports.HubspotForm = exports.Content = exports.BasicCard = exports.BackgroundCard = exports.NewsCard = exports.LayoutItem = exports.BannerCard = exports.MediaCard = exports.PriceDetailed = exports.Quote = exports.Divider = void 0;
|
|
7
7
|
var Divider_1 = require("./Divider/Divider");
|
|
8
8
|
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return __importDefault(Divider_1).default; } });
|
|
9
9
|
var Quote_1 = require("./Quote/Quote");
|
|
@@ -48,5 +48,7 @@ var CaseStudyCard_1 = require("./CaseStudyCard/CaseStudyCard");
|
|
|
48
48
|
Object.defineProperty(exports, "CaseStudyCard", { enumerable: true, get: function () { return __importDefault(CaseStudyCard_1).default; } });
|
|
49
49
|
var StoryCard_1 = require("./StoryCard/StoryCard");
|
|
50
50
|
Object.defineProperty(exports, "StoryCard", { enumerable: true, get: function () { return __importDefault(StoryCard_1).default; } });
|
|
51
|
+
var MiniCaseCard_1 = require("./MiniCaseCard/MiniCaseCard");
|
|
52
|
+
Object.defineProperty(exports, "MiniCaseCard", { enumerable: true, get: function () { return __importDefault(MiniCaseCard_1).default; } });
|
|
51
53
|
var FeedPartner_1 = require("./FeedPartner/FeedPartner");
|
|
52
54
|
Object.defineProperty(exports, "FeedPartner", { enumerable: true, get: function () { return __importDefault(FeedPartner_1).default; } });
|
|
@@ -481,6 +481,17 @@ exports.config = {
|
|
|
481
481
|
transformer: common_1.yfmTransformer,
|
|
482
482
|
},
|
|
483
483
|
],
|
|
484
|
+
[models_1.SubBlockType.MiniCaseCard]: [
|
|
485
|
+
{
|
|
486
|
+
fields: ['title'],
|
|
487
|
+
transformer: common_1.typografTransformer,
|
|
488
|
+
parser: parseTitle,
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
fields: ['text', 'quote', 'author', 'position'],
|
|
492
|
+
transformer: common_1.yfmTransformer,
|
|
493
|
+
},
|
|
494
|
+
],
|
|
484
495
|
[models_1.BlockType.MiniCaseBlock]: exports.blockHeaderTransformer,
|
|
485
496
|
[models_1.BlockType.AdvantagesBlock]: {
|
|
486
497
|
fields: ['title'],
|
|
@@ -87,6 +87,7 @@ export declare const subBlockMap: {
|
|
|
87
87
|
"feed-partner": ({ url, label, level, levelColorText, levelColorBackground, background, image, title, subtitle, className, tags, jumpOnHover, }: import("./models").FeedPartnerProps) => JSX.Element;
|
|
88
88
|
"case-study-card": import("react").MemoExoticComponent<(props: import("./models").CaseStudyCardProps) => JSX.Element>;
|
|
89
89
|
"story-card": import("react").FC<import("./models").StoryCardProps>;
|
|
90
|
+
"mini-case-card": import("react").FC<import("./models").MiniCaseCardProps>;
|
|
90
91
|
};
|
|
91
92
|
export declare const navItemMap: {
|
|
92
93
|
button: import("react").FC<Pick<import("./navigation").NavigationItemProps, "className"> & import("./models").ButtonProps>;
|
|
@@ -2,7 +2,7 @@ import { AboutHeaderBlock, AdvantagesBlock, AudioBlock, BannerBlock, BannerMinif
|
|
|
2
2
|
import { BlockType, NavigationItemType, SubBlockType } from './models';
|
|
3
3
|
import { GithubButton, NavigationButton, NavigationDropdown, NavigationLink, } from './navigation/components/NavigationItem';
|
|
4
4
|
import SocialIcon from './navigation/components/SocialIcon/SocialIcon';
|
|
5
|
-
import { AttachmentCard, BackgroundCard, BannerCard, BasicCard, Card, CaseStudyCard, Content, ContentLayoutCard, Divider, EventPersonCard, FeedCard, FeedPartner, ImageCard, LayoutItem, MediaCard, NewPostCard, NewsCard, PostCard, PriceCard, PriceDetailed, Quote, StoryCard, } from './sub-blocks';
|
|
5
|
+
import { AttachmentCard, BackgroundCard, BannerCard, BasicCard, Card, CaseStudyCard, Content, ContentLayoutCard, Divider, EventPersonCard, FeedCard, FeedPartner, ImageCard, LayoutItem, MediaCard, MiniCaseCard, NewPostCard, NewsCard, PostCard, PriceCard, PriceDetailed, Quote, StoryCard, } from './sub-blocks';
|
|
6
6
|
export const blockMap = {
|
|
7
7
|
[BlockType.SliderBlock]: SliderBlock,
|
|
8
8
|
[BlockType.ExtendedFeaturesBlock]: ExtendedFeaturesBlock,
|
|
@@ -92,6 +92,7 @@ export const subBlockMap = {
|
|
|
92
92
|
[SubBlockType.FeedPartner]: FeedPartner,
|
|
93
93
|
[SubBlockType.CaseStudyCard]: CaseStudyCard,
|
|
94
94
|
[SubBlockType.StoryCard]: StoryCard,
|
|
95
|
+
[SubBlockType.MiniCaseCard]: MiniCaseCard,
|
|
95
96
|
};
|
|
96
97
|
export const navItemMap = {
|
|
97
98
|
[NavigationItemType.Button]: NavigationButton,
|
|
@@ -30,7 +30,8 @@ export declare enum SubBlockType {
|
|
|
30
30
|
NewPostCard = "new-post-card",
|
|
31
31
|
FeedCard = "feed-card",
|
|
32
32
|
EventPersonCard = "event-person-card",
|
|
33
|
-
StoryCard = "story-card"
|
|
33
|
+
StoryCard = "story-card",
|
|
34
|
+
MiniCaseCard = "mini-case-card"
|
|
34
35
|
}
|
|
35
36
|
export declare enum IconPosition {
|
|
36
37
|
Top = "top",
|
|
@@ -322,6 +323,25 @@ export interface StoryCardProps {
|
|
|
322
323
|
}[];
|
|
323
324
|
background?: string;
|
|
324
325
|
}
|
|
326
|
+
export interface MiniCaseCardProps {
|
|
327
|
+
title?: string;
|
|
328
|
+
tagUsecase?: string[];
|
|
329
|
+
tagIndustry?: string[];
|
|
330
|
+
showStory?: boolean;
|
|
331
|
+
showQuote?: boolean;
|
|
332
|
+
text?: string;
|
|
333
|
+
quote?: string;
|
|
334
|
+
logo?: string;
|
|
335
|
+
avatar?: string;
|
|
336
|
+
author?: string;
|
|
337
|
+
position?: string;
|
|
338
|
+
data?: {
|
|
339
|
+
value: string;
|
|
340
|
+
label?: string;
|
|
341
|
+
}[];
|
|
342
|
+
background?: string;
|
|
343
|
+
backgroundData?: string;
|
|
344
|
+
}
|
|
325
345
|
export type DividerModel = {
|
|
326
346
|
type: SubBlockType.Divider;
|
|
327
347
|
} & DividerProps;
|
|
@@ -383,6 +403,9 @@ export type CaseStudyCardModel = {
|
|
|
383
403
|
export type StoryCardModel = {
|
|
384
404
|
type: SubBlockType.StoryCard;
|
|
385
405
|
} & StoryCardProps;
|
|
386
|
-
export type
|
|
406
|
+
export type MiniCaseCardModel = {
|
|
407
|
+
type: SubBlockType.MiniCaseCard;
|
|
408
|
+
} & MiniCaseCardProps;
|
|
409
|
+
export type SubBlockModels = DividerModel | QuoteModel | PriceDetailedModel | MediaCardModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel | PriceCardModel | LayoutItemModel | NewsCardModel | ImageCardModel | PostCardModel | NewPostCardModel | FeedCardModel | EventPersonCardModel | AttachmentCardModel | FeedPartnerModel | CaseStudyCardModel | StoryCardModel | MiniCaseCardModel;
|
|
387
410
|
export type SubBlock = SubBlockModels;
|
|
388
411
|
export {};
|
|
@@ -26,6 +26,7 @@ export var SubBlockType;
|
|
|
26
26
|
SubBlockType["FeedCard"] = "feed-card";
|
|
27
27
|
SubBlockType["EventPersonCard"] = "event-person-card";
|
|
28
28
|
SubBlockType["StoryCard"] = "story-card";
|
|
29
|
+
SubBlockType["MiniCaseCard"] = "mini-case-card";
|
|
29
30
|
})(SubBlockType || (SubBlockType = {}));
|
|
30
31
|
export var IconPosition;
|
|
31
32
|
(function (IconPosition) {
|
|
@@ -36,6 +36,215 @@ export declare const cardSchemas: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
'mini-case-card': {
|
|
40
|
+
additionalProperties: boolean;
|
|
41
|
+
required: never[];
|
|
42
|
+
properties: {
|
|
43
|
+
title: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
tagUsecase: {
|
|
47
|
+
type: string;
|
|
48
|
+
items: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
tagIndustry: {
|
|
53
|
+
type: string;
|
|
54
|
+
items: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
showStory: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
showQuote: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
text: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
quote: {
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
logo: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
avatar: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
author: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
position: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
data: {
|
|
83
|
+
type: string;
|
|
84
|
+
items: {
|
|
85
|
+
type: string;
|
|
86
|
+
additionalProperties: boolean;
|
|
87
|
+
required: string[];
|
|
88
|
+
properties: {
|
|
89
|
+
value: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
label: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
background: {
|
|
99
|
+
type: string;
|
|
100
|
+
};
|
|
101
|
+
backgroundData: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
anchor: {
|
|
105
|
+
type: string;
|
|
106
|
+
additionalProperties: boolean;
|
|
107
|
+
required: string[];
|
|
108
|
+
properties: {
|
|
109
|
+
text: {
|
|
110
|
+
type: string;
|
|
111
|
+
contentType: string;
|
|
112
|
+
};
|
|
113
|
+
url: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
urlTitle: {
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
visibility: {
|
|
122
|
+
oneOf: ({
|
|
123
|
+
type: string;
|
|
124
|
+
enum: string[];
|
|
125
|
+
additionalProperties?: undefined;
|
|
126
|
+
properties?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
type: string;
|
|
129
|
+
additionalProperties: boolean;
|
|
130
|
+
properties: {
|
|
131
|
+
xs: {
|
|
132
|
+
type: string;
|
|
133
|
+
};
|
|
134
|
+
sm: {
|
|
135
|
+
type: string;
|
|
136
|
+
};
|
|
137
|
+
md: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
lg: {
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
xl: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
xxl: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
enum?: undefined;
|
|
151
|
+
})[];
|
|
152
|
+
};
|
|
153
|
+
visible: {
|
|
154
|
+
type: string;
|
|
155
|
+
enum: string[];
|
|
156
|
+
};
|
|
157
|
+
hidden: {
|
|
158
|
+
type: string;
|
|
159
|
+
enum: string[];
|
|
160
|
+
};
|
|
161
|
+
resetPaddings: {
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
context: {
|
|
165
|
+
type: string;
|
|
166
|
+
};
|
|
167
|
+
indent: {
|
|
168
|
+
type: string;
|
|
169
|
+
additionalProperties: boolean;
|
|
170
|
+
properties: {
|
|
171
|
+
top: {
|
|
172
|
+
enum: string[];
|
|
173
|
+
};
|
|
174
|
+
bottom: {
|
|
175
|
+
enum: string[];
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
backgroundFull: {
|
|
180
|
+
type: string;
|
|
181
|
+
};
|
|
182
|
+
visibilityFilter: {
|
|
183
|
+
oneOf: ({
|
|
184
|
+
type: string;
|
|
185
|
+
items?: undefined;
|
|
186
|
+
} | {
|
|
187
|
+
type: string;
|
|
188
|
+
items: {
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
})[];
|
|
192
|
+
};
|
|
193
|
+
blockUnicorn: {
|
|
194
|
+
type: string;
|
|
195
|
+
};
|
|
196
|
+
blockUnicornSdkUrl: {
|
|
197
|
+
type: string;
|
|
198
|
+
};
|
|
199
|
+
blockBackground: {
|
|
200
|
+
oneOf: ({
|
|
201
|
+
type: string;
|
|
202
|
+
additionalProperties?: undefined;
|
|
203
|
+
properties?: undefined;
|
|
204
|
+
} | {
|
|
205
|
+
type: string;
|
|
206
|
+
additionalProperties: boolean;
|
|
207
|
+
properties: {
|
|
208
|
+
color: {
|
|
209
|
+
type: string;
|
|
210
|
+
};
|
|
211
|
+
image: {
|
|
212
|
+
type: string;
|
|
213
|
+
};
|
|
214
|
+
size: {
|
|
215
|
+
type: string;
|
|
216
|
+
};
|
|
217
|
+
repeat: {
|
|
218
|
+
type: string;
|
|
219
|
+
};
|
|
220
|
+
position: {
|
|
221
|
+
type: string;
|
|
222
|
+
};
|
|
223
|
+
attachment: {
|
|
224
|
+
type: string;
|
|
225
|
+
};
|
|
226
|
+
clip: {
|
|
227
|
+
type: string;
|
|
228
|
+
};
|
|
229
|
+
origin: {
|
|
230
|
+
type: string;
|
|
231
|
+
};
|
|
232
|
+
blendMode: {
|
|
233
|
+
type: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
})[];
|
|
237
|
+
};
|
|
238
|
+
column: {
|
|
239
|
+
type: string;
|
|
240
|
+
enum: string[];
|
|
241
|
+
};
|
|
242
|
+
type: {};
|
|
243
|
+
when: {
|
|
244
|
+
type: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
39
248
|
'story-card': {
|
|
40
249
|
additionalProperties: boolean;
|
|
41
250
|
required: never[];
|
|
@@ -3358,7 +3567,7 @@ export declare const cardSchemas: {
|
|
|
3358
3567
|
};
|
|
3359
3568
|
};
|
|
3360
3569
|
};
|
|
3361
|
-
};
|
|
3570
|
+
}; /** @deprecated */
|
|
3362
3571
|
description: {
|
|
3363
3572
|
additionalProperties: boolean;
|
|
3364
3573
|
required: never[];
|
|
@@ -3887,7 +4096,7 @@ export declare const cardSchemas: {
|
|
|
3887
4096
|
};
|
|
3888
4097
|
autoplay: {
|
|
3889
4098
|
type: string;
|
|
3890
|
-
};
|
|
4099
|
+
}; /** @deprecated */
|
|
3891
4100
|
elapsedTime: {
|
|
3892
4101
|
type: string;
|
|
3893
4102
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AboutHeaderBlock, AdvantagesBlock, AudioBlock, BannerBlock, BannerCard, BannerMinifyBlock, BenchmarkBlock, BenefitsBlock, BlogFeedBlock, CardLayoutBlock, CatBlock, CompaniesBlock, ContentLayoutBlock, CustomerStoriesFeedBlock, EventsFeedBlock, EventsSectionBlock, ExtendedFeaturesBlock, FilterBlock, FilterCardLayoutBlock, FormBlock, FormWallBlock, HeaderBlock, HeaderMinifyBlock, HeaderSliderBlock, HighlightTableBlock, IconsBlock, InfoBlock, LayoutBlock, LinkTableBlock, LogoRotatorBlock, MapBlock, MarqueeLinksBlock, MediaBlock, MiniCaseBlock, OnetrustCookieListBlock, PartnerHeaderBlock, PartnersFeedBlock, PressReleasesBlock, PromoFeaturesBlock, QuestionsBlock, QuotesBlock, RelevantPostsBlock, RelevantReportsBlock, RelevantReportsCardsBlock, ReportsBlock, ReportsCardsBlock, ReportsSectionsBlock, ResourceHubPostsBlock, ScienceFeedBlock, ScienceHeaderBlock, ScienceSuggestBlock, ScrollerBlock, ServicesBlock, ShareBlock, SidebarWidgetBlock, SliderBlock, SliderNewBlock, SolutionsBlock, TabLinksBlock, TableBlock, TabsBlock, TabsHighlightTableBlock, UnicornCardsBlock, WhatsNewBlock, YFMBlock, } from './validators/blocks';
|
|
2
|
-
import { AttachmentCard, BackgroundCard, BasicCard, Card, CaseStudyCard, ContentLayoutCard, Divider, EventPersonCard, FeedCard, FeedPartner, ImageCard, MediaCardBlock, NewPostCard, NewsCard, PostCard, PriceCardBlock, PriceDetailedBlock, Quote, StoryCard, } from './validators/sub-blocks';
|
|
2
|
+
import { AttachmentCard, BackgroundCard, BasicCard, Card, CaseStudyCard, ContentLayoutCard, Divider, EventPersonCard, FeedCard, FeedPartner, ImageCard, MediaCardBlock, MiniCaseCard, NewPostCard, NewsCard, PostCard, PriceCardBlock, PriceDetailedBlock, Quote, StoryCard, } from './validators/sub-blocks';
|
|
3
3
|
export const blockSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Divider), ExtendedFeaturesBlock), PromoFeaturesBlock), AdvantagesBlock), BenefitsBlock), ScrollerBlock), SliderBlock), QuestionsBlock), HeaderBlock), HeaderMinifyBlock), BannerBlock), LogoRotatorBlock), UnicornCardsBlock), CompaniesBlock), MediaBlock), MapBlock), InfoBlock), TableBlock), HighlightTableBlock), MiniCaseBlock), TabsBlock), TabsHighlightTableBlock), TabLinksBlock), HeaderSliderBlock), IconsBlock), CardLayoutBlock), ContentLayoutBlock), BannerMinifyBlock), ShareBlock), FilterBlock), FilterCardLayoutBlock), FormBlock), SliderNewBlock), MarqueeLinksBlock), SolutionsBlock), ServicesBlock), QuotesBlock), ReportsBlock), ScienceHeaderBlock), AboutHeaderBlock), LayoutBlock), YFMBlock), PartnerHeaderBlock), SidebarWidgetBlock), ReportsCardsBlock), ReportsSectionsBlock), LinkTableBlock), EventsFeedBlock), PartnersFeedBlock), ResourceHubPostsBlock), BenchmarkBlock), EventsSectionBlock), BlogFeedBlock), ScienceFeedBlock), CustomerStoriesFeedBlock), RelevantPostsBlock), RelevantReportsCardsBlock), RelevantReportsBlock), PressReleasesBlock), FormWallBlock), CatBlock), AudioBlock), OnetrustCookieListBlock), WhatsNewBlock), ScienceSuggestBlock);
|
|
4
|
-
export const cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, MediaCardBlock), BannerCard), PriceDetailedBlock), BackgroundCard), Quote), BasicCard), PriceCardBlock), ImageCard), ContentLayoutCard), Card), PostCard), NewPostCard), FeedCard), EventPersonCard), AttachmentCard), FeedPartner), CaseStudyCard), StoryCard), NewsCard);
|
|
4
|
+
export const cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, MediaCardBlock), BannerCard), PriceDetailedBlock), BackgroundCard), Quote), BasicCard), PriceCardBlock), ImageCard), ContentLayoutCard), Card), PostCard), NewPostCard), FeedCard), EventPersonCard), AttachmentCard), FeedPartner), CaseStudyCard), StoryCard), MiniCaseCard), NewsCard);
|
|
5
5
|
export const constructorBlockSchemaNames = [
|
|
6
6
|
'divider',
|
|
7
7
|
'quote',
|
|
@@ -92,5 +92,6 @@ export const constructorCardSchemaNames = [
|
|
|
92
92
|
'event-person-card',
|
|
93
93
|
'case-study-card',
|
|
94
94
|
'story-card',
|
|
95
|
+
'mini-case-card',
|
|
95
96
|
'news-card',
|
|
96
97
|
];
|
|
@@ -20,3 +20,4 @@ export * from '../../sub-blocks/AttachmentCard/schema';
|
|
|
20
20
|
export * from '../../sub-blocks/FeedPartner/schema';
|
|
21
21
|
export * from '../../sub-blocks/CaseStudyCard/schema';
|
|
22
22
|
export * from '../../sub-blocks/StoryCard/schema';
|
|
23
|
+
export * from '../../sub-blocks/MiniCaseCard/schema';
|
|
@@ -20,3 +20,4 @@ export * from '../../sub-blocks/AttachmentCard/schema';
|
|
|
20
20
|
export * from '../../sub-blocks/FeedPartner/schema';
|
|
21
21
|
export * from '../../sub-blocks/CaseStudyCard/schema';
|
|
22
22
|
export * from '../../sub-blocks/StoryCard/schema';
|
|
23
|
+
export * from '../../sub-blocks/MiniCaseCard/schema';
|