@gravity-ui/blog-constructor 11.1.0 → 11.3.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/build/cjs/blocks/Author/schema.d.ts +14 -3
- package/build/cjs/blocks/Author/schema.js +3 -3
- package/build/cjs/blocks/Author/schema.js.map +1 -1
- package/build/cjs/blocks/Banner/Banner.js +5 -2
- package/build/cjs/blocks/Banner/Banner.js.map +1 -1
- package/build/cjs/blocks/Banner/schema.d.ts +92 -13
- package/build/cjs/blocks/Banner/schema.js +2 -2
- package/build/cjs/blocks/Banner/schema.js.map +1 -1
- package/build/cjs/blocks/CTA/schema.d.ts +92 -13
- package/build/cjs/blocks/CTA/schema.js +3 -3
- package/build/cjs/blocks/CTA/schema.js.map +1 -1
- package/build/cjs/blocks/ColoredText/schema.d.ts +93 -15
- package/build/cjs/blocks/ColoredText/schema.js +2 -2
- package/build/cjs/blocks/ColoredText/schema.js.map +1 -1
- package/build/cjs/blocks/CompactMedia/schema.d.ts +13 -6
- package/build/cjs/blocks/CompactMedia/schema.js +2 -2
- package/build/cjs/blocks/CompactMedia/schema.js.map +1 -1
- package/build/cjs/blocks/Feed/schema.d.ts +11 -2
- package/build/cjs/blocks/Feed/schema.js +2 -2
- package/build/cjs/blocks/Feed/schema.js.map +1 -1
- package/build/cjs/blocks/Form/schema.d.ts +69 -38
- package/build/cjs/blocks/Form/schema.js +6 -23
- package/build/cjs/blocks/Form/schema.js.map +1 -1
- package/build/cjs/blocks/Header/schema.d.ts +168 -74
- package/build/cjs/blocks/Header/schema.js +5 -3
- package/build/cjs/blocks/Header/schema.js.map +1 -1
- package/build/cjs/blocks/Layout/schema.d.ts +11 -2
- package/build/cjs/blocks/Layout/schema.js +2 -2
- package/build/cjs/blocks/Layout/schema.js.map +1 -1
- package/build/cjs/blocks/Media/schema.d.ts +17 -7
- package/build/cjs/blocks/Media/schema.js +2 -2
- package/build/cjs/blocks/Media/schema.js.map +1 -1
- package/build/cjs/blocks/Meta/schema.d.ts +11 -2
- package/build/cjs/blocks/Meta/schema.js +2 -2
- package/build/cjs/blocks/Meta/schema.js.map +1 -1
- package/build/cjs/blocks/SideCardList/schema.d.ts +69 -6
- package/build/cjs/blocks/SideCardList/schema.js +17 -20
- package/build/cjs/blocks/SideCardList/schema.js.map +1 -1
- package/build/cjs/blocks/Suggest/schema.d.ts +11 -2
- package/build/cjs/blocks/Suggest/schema.js +2 -2
- package/build/cjs/blocks/Suggest/schema.js.map +1 -1
- package/build/cjs/blocks/Take/schema.d.ts +25 -2
- package/build/cjs/blocks/Take/schema.js +4 -4
- package/build/cjs/blocks/Take/schema.js.map +1 -1
- package/build/cjs/blocks/YFM/schema.d.ts +11 -2
- package/build/cjs/blocks/YFM/schema.js +2 -2
- package/build/cjs/blocks/YFM/schema.js.map +1 -1
- package/build/cjs/constructor/blocksMap.d.ts +9 -9
- package/build/cjs/constructor/blocksMap.js +9 -9
- package/build/cjs/constructor/blocksMap.js.map +1 -1
- package/build/cjs/containers/BlogPostPage/BlogPostPage.css +9 -1
- package/build/cjs/hooks/useExtendedComponentMap.d.ts +9 -9
- package/build/cjs/schema/blocks.d.ts +4 -2
- package/build/cjs/schema/blocks.js +4 -2
- package/build/cjs/schema/blocks.js.map +1 -1
- package/build/cjs/schema/common.d.ts +4 -0
- package/build/cjs/schema/common.js +8 -10
- package/build/cjs/schema/common.js.map +1 -1
- package/build/cjs/schema/index.d.ts +1022 -282
- package/build/cjs/schema/index.js +5 -3
- package/build/cjs/schema/index.js.map +1 -1
- package/build/cjs/utils/common.d.ts +1 -2
- package/build/esm/blocks/Author/schema.d.ts +14 -3
- package/build/esm/blocks/Author/schema.js +3 -3
- package/build/esm/blocks/Author/schema.js.map +1 -1
- package/build/esm/blocks/Banner/Banner.js +5 -2
- package/build/esm/blocks/Banner/Banner.js.map +1 -1
- package/build/esm/blocks/Banner/schema.d.ts +92 -13
- package/build/esm/blocks/Banner/schema.js +1 -1
- package/build/esm/blocks/Banner/schema.js.map +1 -1
- package/build/esm/blocks/CTA/schema.d.ts +92 -13
- package/build/esm/blocks/CTA/schema.js +2 -2
- package/build/esm/blocks/CTA/schema.js.map +1 -1
- package/build/esm/blocks/ColoredText/schema.d.ts +93 -15
- package/build/esm/blocks/ColoredText/schema.js +1 -1
- package/build/esm/blocks/ColoredText/schema.js.map +1 -1
- package/build/esm/blocks/CompactMedia/schema.d.ts +13 -6
- package/build/esm/blocks/CompactMedia/schema.js +1 -1
- package/build/esm/blocks/CompactMedia/schema.js.map +1 -1
- package/build/esm/blocks/Feed/schema.d.ts +11 -2
- package/build/esm/blocks/Feed/schema.js +2 -2
- package/build/esm/blocks/Feed/schema.js.map +1 -1
- package/build/esm/blocks/Form/schema.d.ts +69 -38
- package/build/esm/blocks/Form/schema.js +5 -22
- package/build/esm/blocks/Form/schema.js.map +1 -1
- package/build/esm/blocks/Header/schema.d.ts +168 -74
- package/build/esm/blocks/Header/schema.js +4 -2
- package/build/esm/blocks/Header/schema.js.map +1 -1
- package/build/esm/blocks/Layout/schema.d.ts +11 -2
- package/build/esm/blocks/Layout/schema.js +2 -2
- package/build/esm/blocks/Layout/schema.js.map +1 -1
- package/build/esm/blocks/Media/schema.d.ts +17 -7
- package/build/esm/blocks/Media/schema.js +1 -1
- package/build/esm/blocks/Media/schema.js.map +1 -1
- package/build/esm/blocks/Meta/schema.d.ts +11 -2
- package/build/esm/blocks/Meta/schema.js +2 -2
- package/build/esm/blocks/Meta/schema.js.map +1 -1
- package/build/esm/blocks/SideCardList/schema.d.ts +69 -6
- package/build/esm/blocks/SideCardList/schema.js +17 -20
- package/build/esm/blocks/SideCardList/schema.js.map +1 -1
- package/build/esm/blocks/Suggest/schema.d.ts +11 -2
- package/build/esm/blocks/Suggest/schema.js +2 -2
- package/build/esm/blocks/Suggest/schema.js.map +1 -1
- package/build/esm/blocks/Take/schema.d.ts +25 -2
- package/build/esm/blocks/Take/schema.js +4 -4
- package/build/esm/blocks/Take/schema.js.map +1 -1
- package/build/esm/blocks/YFM/schema.d.ts +11 -2
- package/build/esm/blocks/YFM/schema.js +2 -2
- package/build/esm/blocks/YFM/schema.js.map +1 -1
- package/build/esm/constructor/blocksMap.d.ts +9 -9
- package/build/esm/constructor/blocksMap.js +9 -9
- package/build/esm/constructor/blocksMap.js.map +1 -1
- package/build/esm/containers/BlogPostPage/BlogPostPage.css +9 -1
- package/build/esm/hooks/useExtendedComponentMap.d.ts +9 -9
- package/build/esm/schema/blocks.d.ts +4 -2
- package/build/esm/schema/blocks.js +4 -2
- package/build/esm/schema/blocks.js.map +1 -1
- package/build/esm/schema/common.d.ts +4 -0
- package/build/esm/schema/common.js +7 -9
- package/build/esm/schema/common.js.map +1 -1
- package/build/esm/schema/index.d.ts +1022 -282
- package/build/esm/schema/index.js +5 -3
- package/build/esm/schema/index.js.map +1 -1
- package/build/esm/utils/common.d.ts +1 -2
- package/package.json +13 -3
- package/styles/storybook/common.scss +6 -0
- package/styles/styles.css +9 -1
- package/styles/yfm.css +9 -1
|
@@ -14,9 +14,9 @@ export declare const CompactMedia: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
} | {
|
|
17
|
+
optionName: string;
|
|
17
18
|
type: string;
|
|
18
19
|
pattern: string;
|
|
19
|
-
optionName: string;
|
|
20
20
|
items?: undefined;
|
|
21
21
|
} | {
|
|
22
22
|
type: string;
|
|
@@ -29,7 +29,6 @@ export declare const CompactMedia: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
optionName: string;
|
|
32
|
-
pattern?: undefined;
|
|
33
32
|
})[];
|
|
34
33
|
type?: undefined;
|
|
35
34
|
items?: undefined;
|
|
@@ -44,9 +43,9 @@ export declare const CompactMedia: {
|
|
|
44
43
|
};
|
|
45
44
|
};
|
|
46
45
|
} | {
|
|
46
|
+
optionName: string;
|
|
47
47
|
type: string;
|
|
48
48
|
pattern: string;
|
|
49
|
-
optionName: string;
|
|
50
49
|
items?: undefined;
|
|
51
50
|
} | {
|
|
52
51
|
type: string;
|
|
@@ -59,7 +58,6 @@ export declare const CompactMedia: {
|
|
|
59
58
|
};
|
|
60
59
|
};
|
|
61
60
|
optionName: string;
|
|
62
|
-
pattern?: undefined;
|
|
63
61
|
})[];
|
|
64
62
|
};
|
|
65
63
|
optionName: string;
|
|
@@ -105,8 +103,17 @@ export declare const CompactMedia: {
|
|
|
105
103
|
};
|
|
106
104
|
};
|
|
107
105
|
visible: {
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
oneOf: ({
|
|
107
|
+
type: string;
|
|
108
|
+
enum: string[];
|
|
109
|
+
additionalProperties?: undefined;
|
|
110
|
+
properties?: undefined;
|
|
111
|
+
} | {
|
|
112
|
+
type: string;
|
|
113
|
+
additionalProperties: boolean;
|
|
114
|
+
properties: {};
|
|
115
|
+
enum?: undefined;
|
|
116
|
+
})[];
|
|
110
117
|
};
|
|
111
118
|
resetPaddings: {
|
|
112
119
|
type: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validators } from '@gravity-ui/page-constructor';
|
|
1
|
+
import { validators } from '@gravity-ui/page-constructor/schema';
|
|
2
2
|
import { BlockType } from "../../models/common.js";
|
|
3
3
|
import { BlogBlockBase } from "../../schema/common.js";
|
|
4
4
|
const { common: { BlockBaseProps, MediaProps }, } = validators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/CompactMedia/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/CompactMedia/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AAE/D,OAAO,EAAC,SAAS,EAAC,+BAA4B;AAC9C,OAAO,EAAC,aAAa,EAAC,+BAA4B;AAElD,MAAM,EACF,MAAM,EAAE,EAAC,cAAc,EAAE,UAAU,EAAC,GACvC,GAAG,UAAU,CAAC;AAEf,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE;QACtB,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,gDACH,cAAc,GACd,aAAa,KAChB,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,EAC1B,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import {validators} from '@gravity-ui/page-constructor/schema';\n\nimport {BlockType} from '../../models/common';\nimport {BlogBlockBase} from '../../schema/common';\n\nconst {\n common: {BlockBaseProps, MediaProps},\n} = validators;\n\nexport const CompactMedia = {\n [BlockType.CompactMedia]: {\n type: 'object',\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n ...BlogBlockBase,\n image: MediaProps['image'],\n description: {\n type: 'string',\n contentType: 'text',\n },\n },\n },\n};\n"]}
|
|
@@ -27,8 +27,17 @@ export declare const Feed: {
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
visible: {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
oneOf: ({
|
|
31
|
+
type: string;
|
|
32
|
+
enum: string[];
|
|
33
|
+
additionalProperties?: undefined;
|
|
34
|
+
properties?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
type: string;
|
|
37
|
+
additionalProperties: boolean;
|
|
38
|
+
properties: {};
|
|
39
|
+
enum?: undefined;
|
|
40
|
+
})[];
|
|
32
41
|
};
|
|
33
42
|
resetPaddings: {
|
|
34
43
|
type: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { validators } from '@gravity-ui/page-constructor';
|
|
2
|
-
const { common: { BlockBaseProps }, } = validators;
|
|
1
|
+
import { validators } from '@gravity-ui/page-constructor/schema';
|
|
3
2
|
import { BlockType } from "../../models/common.js";
|
|
3
|
+
const { common: { BlockBaseProps }, } = validators;
|
|
4
4
|
export const Feed = {
|
|
5
5
|
[BlockType.Feed]: {
|
|
6
6
|
additionalProperties: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Feed/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Feed/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AAE/D,OAAO,EAAC,SAAS,EAAC,+BAA4B;AAE9C,MAAM,EACF,MAAM,EAAE,EAAC,cAAc,EAAC,GAC3B,GAAG,UAAU,CAAC;AAEf,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,kCACH,cAAc,KACjB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB,EACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import {validators} from '@gravity-ui/page-constructor/schema';\n\nimport {BlockType} from '../../models/common';\n\nconst {\n common: {BlockBaseProps},\n} = validators;\n\nexport const Feed = {\n [BlockType.Feed]: {\n additionalProperties: false,\n required: ['image'],\n properties: {\n ...BlockBaseProps,\n title: {\n type: 'string',\n },\n image: {\n type: 'string',\n },\n },\n },\n};\n"]}
|
|
@@ -1,59 +1,81 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
"blog-
|
|
1
|
+
export declare const Form: {
|
|
2
|
+
"blog-form-block": {
|
|
3
3
|
type: string;
|
|
4
4
|
additionalProperties: boolean;
|
|
5
5
|
properties: {
|
|
6
6
|
formData: {
|
|
7
7
|
oneOf: ({
|
|
8
8
|
type: string;
|
|
9
|
-
|
|
9
|
+
additionalProperties: boolean;
|
|
10
10
|
properties: {
|
|
11
11
|
yandex: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
oneOf: (({
|
|
13
|
+
type: string;
|
|
14
|
+
required: string[];
|
|
15
|
+
properties: {
|
|
16
|
+
id: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
containerId: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
type: {};
|
|
23
|
+
when: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
24
26
|
};
|
|
25
|
-
}
|
|
27
|
+
} & {
|
|
28
|
+
optionName: string;
|
|
29
|
+
}) | {
|
|
30
|
+
type: string;
|
|
31
|
+
additionalProperties: boolean;
|
|
32
|
+
required: import("@gravity-ui/page-constructor").Theme[];
|
|
33
|
+
properties: {};
|
|
34
|
+
optionName: string;
|
|
35
|
+
})[];
|
|
26
36
|
};
|
|
27
37
|
hubspot?: undefined;
|
|
28
38
|
};
|
|
39
|
+
optionName: string;
|
|
29
40
|
} | {
|
|
30
41
|
type: string;
|
|
31
|
-
|
|
42
|
+
additionalProperties: boolean;
|
|
32
43
|
properties: {
|
|
33
44
|
hubspot: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
oneOf: (({
|
|
46
|
+
type: string;
|
|
47
|
+
required: string[];
|
|
48
|
+
properties: {
|
|
49
|
+
region: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
portalId: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
formId: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
formInstanceId: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
type: {};
|
|
62
|
+
when: {
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
52
65
|
};
|
|
53
|
-
}
|
|
66
|
+
} & {
|
|
67
|
+
optionName: string;
|
|
68
|
+
}) | {
|
|
69
|
+
type: string;
|
|
70
|
+
additionalProperties: boolean;
|
|
71
|
+
required: import("@gravity-ui/page-constructor").Theme[];
|
|
72
|
+
properties: {};
|
|
73
|
+
optionName: string;
|
|
74
|
+
})[];
|
|
54
75
|
};
|
|
55
76
|
yandex?: undefined;
|
|
56
77
|
};
|
|
78
|
+
optionName: string;
|
|
57
79
|
})[];
|
|
58
80
|
};
|
|
59
81
|
border: {
|
|
@@ -96,8 +118,17 @@ export declare const Media: {
|
|
|
96
118
|
};
|
|
97
119
|
};
|
|
98
120
|
visible: {
|
|
99
|
-
|
|
100
|
-
|
|
121
|
+
oneOf: ({
|
|
122
|
+
type: string;
|
|
123
|
+
enum: string[];
|
|
124
|
+
additionalProperties?: undefined;
|
|
125
|
+
properties?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
type: string;
|
|
128
|
+
additionalProperties: boolean;
|
|
129
|
+
properties: {};
|
|
130
|
+
enum?: undefined;
|
|
131
|
+
})[];
|
|
101
132
|
};
|
|
102
133
|
resetPaddings: {
|
|
103
134
|
type: string;
|
|
@@ -1,29 +1,12 @@
|
|
|
1
|
-
import { validators } from '@gravity-ui/page-constructor';
|
|
1
|
+
import { validators } from '@gravity-ui/page-constructor/schema';
|
|
2
2
|
import { BlockType } from "../../models/common.js";
|
|
3
3
|
import { BlogBlockBase } from "../../schema/common.js";
|
|
4
|
-
const { common: { BlockBaseProps },
|
|
5
|
-
export const
|
|
6
|
-
[BlockType.
|
|
4
|
+
const { common: { BlockBaseProps }, blocks: { FormBlock }, } = validators;
|
|
5
|
+
export const Form = {
|
|
6
|
+
[BlockType.Form]: {
|
|
7
7
|
type: 'object',
|
|
8
8
|
additionalProperties: false,
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), { formData: {
|
|
10
|
-
oneOf: [
|
|
11
|
-
{
|
|
12
|
-
type: 'object',
|
|
13
|
-
optionName: 'yandex',
|
|
14
|
-
properties: {
|
|
15
|
-
yandex: YandexFormProps,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
type: 'object',
|
|
20
|
-
optionName: 'hubspot',
|
|
21
|
-
properties: {
|
|
22
|
-
hubspot: HubspotFormProps,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
}, border: {
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), { formData: FormBlock['form-block'].properties.formData, border: {
|
|
27
10
|
type: 'string',
|
|
28
11
|
enum: ['shadow', 'line', 'none'],
|
|
29
12
|
} }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Form/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Form/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AAE/D,OAAO,EAAC,SAAS,EAAC,+BAA4B;AAC9C,OAAO,EAAC,aAAa,EAAC,+BAA4B;AAElD,MAAM,EACF,MAAM,EAAE,EAAC,cAAc,EAAC,EACxB,MAAM,EAAE,EAAC,SAAS,EAAC,GACtB,GAAG,UAAU,CAAC;AAEf,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;QACd,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,gDACH,cAAc,GACd,aAAa,KAChB,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,QAAQ,EACrD,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;aACnC,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import {validators} from '@gravity-ui/page-constructor/schema';\n\nimport {BlockType} from '../../models/common';\nimport {BlogBlockBase} from '../../schema/common';\n\nconst {\n common: {BlockBaseProps},\n blocks: {FormBlock},\n} = validators;\n\nexport const Form = {\n [BlockType.Form]: {\n type: 'object',\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n ...BlogBlockBase,\n formData: FormBlock['form-block'].properties.formData,\n border: {\n type: 'string',\n enum: ['shadow', 'line', 'none'],\n },\n },\n },\n};\n"]}
|
|
@@ -3,6 +3,9 @@ export declare const Header: {
|
|
|
3
3
|
type: string;
|
|
4
4
|
additionalProperties: boolean;
|
|
5
5
|
properties: {
|
|
6
|
+
imageInGrid: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
6
9
|
title: {
|
|
7
10
|
type: string;
|
|
8
11
|
contentType: string;
|
|
@@ -50,9 +53,9 @@ export declare const Header: {
|
|
|
50
53
|
};
|
|
51
54
|
};
|
|
52
55
|
} | {
|
|
56
|
+
optionName: string;
|
|
53
57
|
type: string;
|
|
54
58
|
pattern: string;
|
|
55
|
-
optionName: string;
|
|
56
59
|
items?: undefined;
|
|
57
60
|
} | {
|
|
58
61
|
type: string;
|
|
@@ -65,7 +68,6 @@ export declare const Header: {
|
|
|
65
68
|
};
|
|
66
69
|
};
|
|
67
70
|
optionName: string;
|
|
68
|
-
pattern?: undefined;
|
|
69
71
|
})[];
|
|
70
72
|
} & {
|
|
71
73
|
optionName: string;
|
|
@@ -178,33 +180,23 @@ export declare const Header: {
|
|
|
178
180
|
})[];
|
|
179
181
|
};
|
|
180
182
|
videoIframe: {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
type: string;
|
|
188
|
-
};
|
|
189
|
-
autoplay: {
|
|
190
|
-
type: string;
|
|
191
|
-
};
|
|
192
|
-
previewImg: {
|
|
193
|
-
type: string;
|
|
194
|
-
};
|
|
195
|
-
height: {
|
|
196
|
-
type: string;
|
|
197
|
-
};
|
|
183
|
+
type: string;
|
|
184
|
+
additionalProperties: boolean;
|
|
185
|
+
required: string[];
|
|
186
|
+
properties: {
|
|
187
|
+
src: {
|
|
188
|
+
type: string;
|
|
198
189
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
190
|
+
autoplay: {
|
|
191
|
+
type: string;
|
|
192
|
+
};
|
|
193
|
+
previewImg: {
|
|
194
|
+
type: string;
|
|
195
|
+
};
|
|
196
|
+
height: {
|
|
197
|
+
type: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
208
200
|
};
|
|
209
201
|
mediaView: {
|
|
210
202
|
type: string;
|
|
@@ -237,77 +229,167 @@ export declare const Header: {
|
|
|
237
229
|
additionalProperties: boolean;
|
|
238
230
|
required: never[];
|
|
239
231
|
properties: {
|
|
240
|
-
fullWidth: {
|
|
241
|
-
type: string;
|
|
242
|
-
};
|
|
243
|
-
fullWidthMedia: {
|
|
244
|
-
type: string;
|
|
245
|
-
};
|
|
246
|
-
color: {
|
|
247
|
-
type: string;
|
|
248
|
-
};
|
|
249
232
|
image: {
|
|
250
233
|
oneOf: ({
|
|
251
234
|
optionName: string;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
235
|
+
type: string;
|
|
236
|
+
additionalProperties: boolean;
|
|
237
|
+
properties: {
|
|
238
|
+
src: {
|
|
239
|
+
type: string;
|
|
240
|
+
pattern: string;
|
|
258
241
|
};
|
|
259
|
-
|
|
260
|
-
type: string;
|
|
261
|
-
pattern: string;
|
|
262
|
-
optionName: string;
|
|
263
|
-
items?: undefined;
|
|
264
|
-
} | {
|
|
265
|
-
type: string;
|
|
266
|
-
items: {
|
|
242
|
+
style: {
|
|
267
243
|
type: string;
|
|
244
|
+
additionalProperties: boolean;
|
|
245
|
+
required: never[];
|
|
268
246
|
properties: {
|
|
269
|
-
|
|
247
|
+
backgroundColor: {
|
|
248
|
+
type: string;
|
|
249
|
+
};
|
|
250
|
+
height: {
|
|
251
|
+
type: string[];
|
|
252
|
+
};
|
|
253
|
+
width: {
|
|
254
|
+
type: string[];
|
|
255
|
+
};
|
|
256
|
+
color: {
|
|
270
257
|
type: string;
|
|
271
258
|
};
|
|
272
259
|
};
|
|
273
260
|
};
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
261
|
+
alt: {
|
|
262
|
+
type: string;
|
|
263
|
+
contentType: string;
|
|
264
|
+
};
|
|
265
|
+
disableCompress: {
|
|
266
|
+
type: string;
|
|
267
|
+
};
|
|
268
|
+
loading: {
|
|
269
|
+
type: string;
|
|
270
|
+
enum: string[];
|
|
271
|
+
};
|
|
272
|
+
fetchPriority: {
|
|
273
|
+
type: string;
|
|
274
|
+
enum: string[];
|
|
275
|
+
};
|
|
276
|
+
hide: {
|
|
277
|
+
oneOf: ({
|
|
278
|
+
type: string;
|
|
279
|
+
properties?: undefined;
|
|
280
|
+
} | {
|
|
281
|
+
type: string;
|
|
282
|
+
properties: {
|
|
283
|
+
mobile: {
|
|
284
|
+
type: string;
|
|
285
|
+
};
|
|
286
|
+
tablet: {
|
|
287
|
+
type: string;
|
|
288
|
+
};
|
|
289
|
+
desktop: {
|
|
290
|
+
type: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
})[];
|
|
294
|
+
};
|
|
295
|
+
};
|
|
279
296
|
} | {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
oneOf: ({
|
|
297
|
+
properties: {
|
|
298
|
+
style: {
|
|
283
299
|
type: string;
|
|
300
|
+
additionalProperties: boolean;
|
|
301
|
+
required: never[];
|
|
284
302
|
properties: {
|
|
285
|
-
|
|
303
|
+
backgroundColor: {
|
|
304
|
+
type: string;
|
|
305
|
+
};
|
|
306
|
+
height: {
|
|
307
|
+
type: string[];
|
|
308
|
+
};
|
|
309
|
+
width: {
|
|
310
|
+
type: string[];
|
|
311
|
+
};
|
|
312
|
+
color: {
|
|
286
313
|
type: string;
|
|
287
314
|
};
|
|
288
315
|
};
|
|
289
|
-
}
|
|
316
|
+
};
|
|
317
|
+
desktop: {
|
|
290
318
|
type: string;
|
|
291
319
|
pattern: string;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
320
|
+
};
|
|
321
|
+
tablet: {
|
|
322
|
+
type: string;
|
|
323
|
+
pattern: string;
|
|
324
|
+
};
|
|
325
|
+
mobile: {
|
|
326
|
+
type: string;
|
|
327
|
+
pattern: string;
|
|
328
|
+
};
|
|
329
|
+
alt: {
|
|
330
|
+
type: string;
|
|
331
|
+
contentType: string;
|
|
332
|
+
};
|
|
333
|
+
disableCompress: {
|
|
334
|
+
type: string;
|
|
335
|
+
};
|
|
336
|
+
loading: {
|
|
295
337
|
type: string;
|
|
296
|
-
|
|
338
|
+
enum: string[];
|
|
339
|
+
};
|
|
340
|
+
fetchPriority: {
|
|
341
|
+
type: string;
|
|
342
|
+
enum: string[];
|
|
343
|
+
};
|
|
344
|
+
hide: {
|
|
345
|
+
oneOf: ({
|
|
346
|
+
type: string;
|
|
347
|
+
properties?: undefined;
|
|
348
|
+
} | {
|
|
297
349
|
type: string;
|
|
298
350
|
properties: {
|
|
299
|
-
|
|
351
|
+
mobile: {
|
|
352
|
+
type: string;
|
|
353
|
+
};
|
|
354
|
+
tablet: {
|
|
355
|
+
type: string;
|
|
356
|
+
};
|
|
357
|
+
desktop: {
|
|
300
358
|
type: string;
|
|
301
359
|
};
|
|
302
360
|
};
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
pattern?: undefined;
|
|
306
|
-
})[];
|
|
361
|
+
})[];
|
|
362
|
+
};
|
|
307
363
|
};
|
|
308
364
|
optionName: string;
|
|
365
|
+
type: string;
|
|
366
|
+
additionalProperties: boolean;
|
|
367
|
+
required: import("@gravity-ui/page-constructor").Device[];
|
|
368
|
+
anyOf: {
|
|
369
|
+
required: import("@gravity-ui/page-constructor").Device[];
|
|
370
|
+
}[];
|
|
371
|
+
} | {
|
|
372
|
+
type: string;
|
|
373
|
+
pattern: string;
|
|
374
|
+
optionName: string;
|
|
309
375
|
})[];
|
|
310
376
|
};
|
|
377
|
+
url: {
|
|
378
|
+
type: string;
|
|
379
|
+
pattern: string;
|
|
380
|
+
};
|
|
381
|
+
disableCompress: {
|
|
382
|
+
type: string;
|
|
383
|
+
};
|
|
384
|
+
fullWidth: {
|
|
385
|
+
type: string;
|
|
386
|
+
};
|
|
387
|
+
fullWidthMedia: {
|
|
388
|
+
type: string;
|
|
389
|
+
};
|
|
390
|
+
color: {
|
|
391
|
+
type: string;
|
|
392
|
+
};
|
|
311
393
|
disableImageSliderForArrayInput: {
|
|
312
394
|
type: string;
|
|
313
395
|
};
|
|
@@ -443,7 +525,8 @@ export declare const Header: {
|
|
|
443
525
|
type: string;
|
|
444
526
|
};
|
|
445
527
|
analyticsEvents: {
|
|
446
|
-
|
|
528
|
+
oneOf: ({
|
|
529
|
+
optionName: string;
|
|
447
530
|
type: string;
|
|
448
531
|
additionalProperties: {
|
|
449
532
|
type: string;
|
|
@@ -479,6 +562,7 @@ export declare const Header: {
|
|
|
479
562
|
type: string;
|
|
480
563
|
};
|
|
481
564
|
};
|
|
565
|
+
items?: undefined;
|
|
482
566
|
} | {
|
|
483
567
|
type: string;
|
|
484
568
|
items: {
|
|
@@ -518,6 +602,7 @@ export declare const Header: {
|
|
|
518
602
|
};
|
|
519
603
|
};
|
|
520
604
|
};
|
|
605
|
+
optionName: string;
|
|
521
606
|
})[];
|
|
522
607
|
};
|
|
523
608
|
ratio: {
|
|
@@ -634,8 +719,17 @@ export declare const Header: {
|
|
|
634
719
|
};
|
|
635
720
|
};
|
|
636
721
|
visible: {
|
|
637
|
-
|
|
638
|
-
|
|
722
|
+
oneOf: ({
|
|
723
|
+
type: string;
|
|
724
|
+
enum: string[];
|
|
725
|
+
additionalProperties?: undefined;
|
|
726
|
+
properties?: undefined;
|
|
727
|
+
} | {
|
|
728
|
+
type: string;
|
|
729
|
+
additionalProperties: boolean;
|
|
730
|
+
properties: {};
|
|
731
|
+
enum?: undefined;
|
|
732
|
+
})[];
|
|
639
733
|
};
|
|
640
734
|
resetPaddings: {
|
|
641
735
|
type: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validators } from '@gravity-ui/page-constructor';
|
|
1
|
+
import { validators } from '@gravity-ui/page-constructor/schema';
|
|
2
2
|
import { BlockType } from "../../models/common.js";
|
|
3
3
|
import { BlogBlockBase } from "../../schema/common.js";
|
|
4
4
|
const { blocks: { HeaderProperties }, common: { BlockBaseProps }, } = validators;
|
|
@@ -6,7 +6,9 @@ export const Header = {
|
|
|
6
6
|
[BlockType.Header]: {
|
|
7
7
|
type: 'object',
|
|
8
8
|
additionalProperties: false,
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), HeaderProperties),
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), HeaderProperties), { imageInGrid: {
|
|
10
|
+
type: 'boolean',
|
|
11
|
+
} }),
|
|
10
12
|
},
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Header/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Header/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AAE/D,OAAO,EAAC,SAAS,EAAC,+BAA4B;AAC9C,OAAO,EAAC,aAAa,EAAC,+BAA4B;AAElD,MAAM,EACF,MAAM,EAAE,EAAC,gBAAgB,EAAC,EAC1B,MAAM,EAAE,EAAC,cAAc,EAAC,GAC3B,GAAG,UAAU,CAAC;AAEf,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;QAChB,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,8DACH,cAAc,GACd,aAAa,GACb,gBAAgB,KACnB,WAAW,EAAE;gBACT,IAAI,EAAE,SAAS;aAClB,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import {validators} from '@gravity-ui/page-constructor/schema';\n\nimport {BlockType} from '../../models/common';\nimport {BlogBlockBase} from '../../schema/common';\n\nconst {\n blocks: {HeaderProperties},\n common: {BlockBaseProps},\n} = validators;\n\nexport const Header = {\n [BlockType.Header]: {\n type: 'object',\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n ...BlogBlockBase,\n ...HeaderProperties,\n imageInGrid: {\n type: 'boolean',\n },\n },\n },\n};\n"]}
|