@gravity-ui/blog-constructor 9.0.0-alpha.4 → 9.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.
@@ -96,6 +96,17 @@ export declare const Banner: {
96
96
  };
97
97
  };
98
98
  };
99
+ labels: {
100
+ type: string;
101
+ items: {
102
+ type: string;
103
+ properties: {
104
+ when: {
105
+ type: string;
106
+ };
107
+ };
108
+ };
109
+ };
99
110
  controlPosition: {
100
111
  type: string;
101
112
  enum: string[];
@@ -93,6 +93,17 @@ export declare const CTA: {
93
93
  };
94
94
  };
95
95
  };
96
+ labels: {
97
+ type: string;
98
+ items: {
99
+ type: string;
100
+ properties: {
101
+ when: {
102
+ type: string;
103
+ };
104
+ };
105
+ };
106
+ };
96
107
  controlPosition: {
97
108
  type: string;
98
109
  enum: string[];
@@ -126,6 +126,17 @@ export declare const ColoredText: {
126
126
  };
127
127
  };
128
128
  };
129
+ labels: {
130
+ type: string;
131
+ items: {
132
+ type: string;
133
+ properties: {
134
+ when: {
135
+ type: string;
136
+ };
137
+ };
138
+ };
139
+ };
129
140
  controlPosition: {
130
141
  type: string;
131
142
  enum: string[];
@@ -177,6 +177,35 @@ export declare const Header: {
177
177
  optionName: string;
178
178
  })[];
179
179
  };
180
+ videoIframe: {
181
+ oneOf: (({
182
+ type: string;
183
+ additionalProperties: boolean;
184
+ required: string[];
185
+ properties: {
186
+ src: {
187
+ type: string;
188
+ };
189
+ autoplay: {
190
+ type: string;
191
+ };
192
+ previewImg: {
193
+ type: string;
194
+ };
195
+ height: {
196
+ type: string;
197
+ };
198
+ };
199
+ } & {
200
+ optionName: string;
201
+ }) | {
202
+ type: string;
203
+ additionalProperties: boolean;
204
+ required: import("@gravity-ui/page-constructor").Theme[];
205
+ properties: {};
206
+ optionName: string;
207
+ })[];
208
+ };
180
209
  mediaView: {
181
210
  type: string;
182
211
  enum: string[];
@@ -27,7 +27,7 @@ unpredictable css rules order in build */
27
27
  max-width: 402px;
28
28
  }
29
29
  .bc-take__author .pc-author__name {
30
- font-weight: var(--pc-text-accent-font-weight);
30
+ font-weight: var(--g-text-accent-font-weight);
31
31
  font-size: var(--g-text-header-1-font-size);
32
32
  line-height: var(--g-text-header-1-line-height);
33
33
  }
@@ -52,7 +52,7 @@ unpredictable css rules order in build */
52
52
  max-width: none;
53
53
  }
54
54
  .bc-take__author .pc-author__name {
55
- font-weight: var(--pc-text-accent-font-weight);
55
+ font-weight: var(--g-text-accent-font-weight);
56
56
  font-size: var(--g-text-subheader-3-font-size);
57
57
  line-height: var(--g-text-subheader-3-line-height);
58
58
  }
@@ -53,7 +53,7 @@ unpredictable css rules order in build */
53
53
  }
54
54
  .bc-post-card__tag {
55
55
  color: var(--g-color-text-secondary);
56
- font-weight: var(--pc-text-accent-font-weight);
56
+ font-weight: var(--g-text-accent-font-weight);
57
57
  }
58
58
  .bc-post-card__tag_size_s {
59
59
  font-size: var(--g-text-body-2-font-size);
@@ -16,7 +16,7 @@ unpredictable css rules order in build */
16
16
  margin-top: 24px;
17
17
  font-size: var(--g-text-display-2-font-size);
18
18
  line-height: var(--g-text-display-2-line-height);
19
- font-weight: var(--pc-text-accent-font-weight);
19
+ font-weight: var(--g-text-accent-font-weight);
20
20
  }
21
21
  .bc-posts-empty__subtitle {
22
22
  margin-top: 16px;
@@ -18,7 +18,7 @@ unpredictable css rules order in build */
18
18
  margin-top: 24px;
19
19
  font-size: var(--g-text-display-2-font-size);
20
20
  line-height: var(--g-text-display-2-line-height);
21
- font-weight: var(--pc-text-accent-font-weight);
21
+ font-weight: var(--g-text-accent-font-weight);
22
22
  }
23
23
  .bc-posts-error__subtitle {
24
24
  margin-top: 16px;
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .g-root {
6
- --pc-text-accent-font-weight: 500;
6
+ --g-text-accent-font-weight: 500;
7
7
  --bc-transparent: rgba(255, 255, 255, 0);
8
8
  --bc-image-padding: 4px;
9
9
  --bc-border-radius: var(--pc-border-radius, 24px);
@@ -5,7 +5,7 @@
5
5
  }
6
6
 
7
7
  .g-root {
8
- --pc-text-accent-font-weight: 500;
8
+ --g-text-accent-font-weight: 500;
9
9
  --bc-transparent: rgba(255, 255, 255, 0);
10
10
  --bc-image-padding: 4px;
11
11
  --bc-border-radius: var(--pc-border-radius, 24px);
@@ -267,5 +267,5 @@ unpredictable css rules order in build */
267
267
  }
268
268
 
269
269
  .yfm_heading.yfm_heading {
270
- font-family: var(--g-text-body-font-family);
270
+ font-family: var(--g-text-display-font-family);
271
271
  }
@@ -185,6 +185,35 @@ export declare const schemasForCustom: {
185
185
  optionName: string;
186
186
  })[];
187
187
  };
188
+ videoIframe: {
189
+ oneOf: (({
190
+ type: string;
191
+ additionalProperties: boolean;
192
+ required: string[];
193
+ properties: {
194
+ src: {
195
+ type: string;
196
+ };
197
+ autoplay: {
198
+ type: string;
199
+ };
200
+ previewImg: {
201
+ type: string;
202
+ };
203
+ height: {
204
+ type: string;
205
+ };
206
+ };
207
+ } & {
208
+ optionName: string;
209
+ }) | {
210
+ type: string;
211
+ additionalProperties: boolean;
212
+ required: import("@gravity-ui/page-constructor").Theme[];
213
+ properties: {};
214
+ optionName: string;
215
+ })[];
216
+ };
188
217
  mediaView: {
189
218
  type: string;
190
219
  enum: string[];
@@ -814,6 +843,17 @@ export declare const schemasForCustom: {
814
843
  };
815
844
  };
816
845
  };
846
+ labels: {
847
+ type: string;
848
+ items: {
849
+ type: string;
850
+ properties: {
851
+ when: {
852
+ type: string;
853
+ };
854
+ };
855
+ };
856
+ };
817
857
  controlPosition: {
818
858
  type: string;
819
859
  enum: string[];
@@ -1010,6 +1050,17 @@ export declare const schemasForCustom: {
1010
1050
  };
1011
1051
  };
1012
1052
  };
1053
+ labels: {
1054
+ type: string;
1055
+ items: {
1056
+ type: string;
1057
+ properties: {
1058
+ when: {
1059
+ type: string;
1060
+ };
1061
+ };
1062
+ };
1063
+ };
1013
1064
  controlPosition: {
1014
1065
  type: string;
1015
1066
  enum: string[];
@@ -1173,6 +1224,17 @@ export declare const schemasForCustom: {
1173
1224
  };
1174
1225
  };
1175
1226
  };
1227
+ labels: {
1228
+ type: string;
1229
+ items: {
1230
+ type: string;
1231
+ properties: {
1232
+ when: {
1233
+ type: string;
1234
+ };
1235
+ };
1236
+ };
1237
+ };
1176
1238
  controlPosition: {
1177
1239
  type: string;
1178
1240
  enum: string[];
@@ -31,6 +31,7 @@ export declare const updateContentSizes: ({ size, colSizes, theme, ...contentDat
31
31
  buttons?: import("@gravity-ui/page-constructor").ButtonProps[];
32
32
  centered?: boolean;
33
33
  list?: import("@gravity-ui/page-constructor").ContentItemProps[];
34
+ labels?: import("@gravity-ui/page-constructor").ContentLabelProps[];
34
35
  controlPosition?: "default" | "bottom";
35
36
  };
36
37
  type GetBreadcrumbsProps = {
@@ -96,6 +96,17 @@ export declare const Banner: {
96
96
  };
97
97
  };
98
98
  };
99
+ labels: {
100
+ type: string;
101
+ items: {
102
+ type: string;
103
+ properties: {
104
+ when: {
105
+ type: string;
106
+ };
107
+ };
108
+ };
109
+ };
99
110
  controlPosition: {
100
111
  type: string;
101
112
  enum: string[];
@@ -93,6 +93,17 @@ export declare const CTA: {
93
93
  };
94
94
  };
95
95
  };
96
+ labels: {
97
+ type: string;
98
+ items: {
99
+ type: string;
100
+ properties: {
101
+ when: {
102
+ type: string;
103
+ };
104
+ };
105
+ };
106
+ };
96
107
  controlPosition: {
97
108
  type: string;
98
109
  enum: string[];
@@ -126,6 +126,17 @@ export declare const ColoredText: {
126
126
  };
127
127
  };
128
128
  };
129
+ labels: {
130
+ type: string;
131
+ items: {
132
+ type: string;
133
+ properties: {
134
+ when: {
135
+ type: string;
136
+ };
137
+ };
138
+ };
139
+ };
129
140
  controlPosition: {
130
141
  type: string;
131
142
  enum: string[];
@@ -177,6 +177,35 @@ export declare const Header: {
177
177
  optionName: string;
178
178
  })[];
179
179
  };
180
+ videoIframe: {
181
+ oneOf: (({
182
+ type: string;
183
+ additionalProperties: boolean;
184
+ required: string[];
185
+ properties: {
186
+ src: {
187
+ type: string;
188
+ };
189
+ autoplay: {
190
+ type: string;
191
+ };
192
+ previewImg: {
193
+ type: string;
194
+ };
195
+ height: {
196
+ type: string;
197
+ };
198
+ };
199
+ } & {
200
+ optionName: string;
201
+ }) | {
202
+ type: string;
203
+ additionalProperties: boolean;
204
+ required: import("@gravity-ui/page-constructor").Theme[];
205
+ properties: {};
206
+ optionName: string;
207
+ })[];
208
+ };
180
209
  mediaView: {
181
210
  type: string;
182
211
  enum: string[];
@@ -27,7 +27,7 @@ unpredictable css rules order in build */
27
27
  max-width: 402px;
28
28
  }
29
29
  .bc-take__author .pc-author__name {
30
- font-weight: var(--pc-text-accent-font-weight);
30
+ font-weight: var(--g-text-accent-font-weight);
31
31
  font-size: var(--g-text-header-1-font-size);
32
32
  line-height: var(--g-text-header-1-line-height);
33
33
  }
@@ -52,7 +52,7 @@ unpredictable css rules order in build */
52
52
  max-width: none;
53
53
  }
54
54
  .bc-take__author .pc-author__name {
55
- font-weight: var(--pc-text-accent-font-weight);
55
+ font-weight: var(--g-text-accent-font-weight);
56
56
  font-size: var(--g-text-subheader-3-font-size);
57
57
  line-height: var(--g-text-subheader-3-line-height);
58
58
  }
@@ -53,7 +53,7 @@ unpredictable css rules order in build */
53
53
  }
54
54
  .bc-post-card__tag {
55
55
  color: var(--g-color-text-secondary);
56
- font-weight: var(--pc-text-accent-font-weight);
56
+ font-weight: var(--g-text-accent-font-weight);
57
57
  }
58
58
  .bc-post-card__tag_size_s {
59
59
  font-size: var(--g-text-body-2-font-size);
@@ -16,7 +16,7 @@ unpredictable css rules order in build */
16
16
  margin-top: 24px;
17
17
  font-size: var(--g-text-display-2-font-size);
18
18
  line-height: var(--g-text-display-2-line-height);
19
- font-weight: var(--pc-text-accent-font-weight);
19
+ font-weight: var(--g-text-accent-font-weight);
20
20
  }
21
21
  .bc-posts-empty__subtitle {
22
22
  margin-top: 16px;
@@ -18,7 +18,7 @@ unpredictable css rules order in build */
18
18
  margin-top: 24px;
19
19
  font-size: var(--g-text-display-2-font-size);
20
20
  line-height: var(--g-text-display-2-line-height);
21
- font-weight: var(--pc-text-accent-font-weight);
21
+ font-weight: var(--g-text-accent-font-weight);
22
22
  }
23
23
  .bc-posts-error__subtitle {
24
24
  margin-top: 16px;
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .g-root {
6
- --pc-text-accent-font-weight: 500;
6
+ --g-text-accent-font-weight: 500;
7
7
  --bc-transparent: rgba(255, 255, 255, 0);
8
8
  --bc-image-padding: 4px;
9
9
  --bc-border-radius: var(--pc-border-radius, 24px);
@@ -5,7 +5,7 @@
5
5
  }
6
6
 
7
7
  .g-root {
8
- --pc-text-accent-font-weight: 500;
8
+ --g-text-accent-font-weight: 500;
9
9
  --bc-transparent: rgba(255, 255, 255, 0);
10
10
  --bc-image-padding: 4px;
11
11
  --bc-border-radius: var(--pc-border-radius, 24px);
@@ -267,5 +267,5 @@ unpredictable css rules order in build */
267
267
  }
268
268
 
269
269
  .yfm_heading.yfm_heading {
270
- font-family: var(--g-text-body-font-family);
270
+ font-family: var(--g-text-display-font-family);
271
271
  }
@@ -185,6 +185,35 @@ export declare const schemasForCustom: {
185
185
  optionName: string;
186
186
  })[];
187
187
  };
188
+ videoIframe: {
189
+ oneOf: (({
190
+ type: string;
191
+ additionalProperties: boolean;
192
+ required: string[];
193
+ properties: {
194
+ src: {
195
+ type: string;
196
+ };
197
+ autoplay: {
198
+ type: string;
199
+ };
200
+ previewImg: {
201
+ type: string;
202
+ };
203
+ height: {
204
+ type: string;
205
+ };
206
+ };
207
+ } & {
208
+ optionName: string;
209
+ }) | {
210
+ type: string;
211
+ additionalProperties: boolean;
212
+ required: import("@gravity-ui/page-constructor").Theme[];
213
+ properties: {};
214
+ optionName: string;
215
+ })[];
216
+ };
188
217
  mediaView: {
189
218
  type: string;
190
219
  enum: string[];
@@ -814,6 +843,17 @@ export declare const schemasForCustom: {
814
843
  };
815
844
  };
816
845
  };
846
+ labels: {
847
+ type: string;
848
+ items: {
849
+ type: string;
850
+ properties: {
851
+ when: {
852
+ type: string;
853
+ };
854
+ };
855
+ };
856
+ };
817
857
  controlPosition: {
818
858
  type: string;
819
859
  enum: string[];
@@ -1010,6 +1050,17 @@ export declare const schemasForCustom: {
1010
1050
  };
1011
1051
  };
1012
1052
  };
1053
+ labels: {
1054
+ type: string;
1055
+ items: {
1056
+ type: string;
1057
+ properties: {
1058
+ when: {
1059
+ type: string;
1060
+ };
1061
+ };
1062
+ };
1063
+ };
1013
1064
  controlPosition: {
1014
1065
  type: string;
1015
1066
  enum: string[];
@@ -1173,6 +1224,17 @@ export declare const schemasForCustom: {
1173
1224
  };
1174
1225
  };
1175
1226
  };
1227
+ labels: {
1228
+ type: string;
1229
+ items: {
1230
+ type: string;
1231
+ properties: {
1232
+ when: {
1233
+ type: string;
1234
+ };
1235
+ };
1236
+ };
1237
+ };
1176
1238
  controlPosition: {
1177
1239
  type: string;
1178
1240
  enum: string[];
@@ -31,6 +31,7 @@ export declare const updateContentSizes: ({ size, colSizes, theme, ...contentDat
31
31
  buttons?: import("@gravity-ui/page-constructor").ButtonProps[];
32
32
  centered?: boolean;
33
33
  list?: import("@gravity-ui/page-constructor").ContentItemProps[];
34
+ labels?: import("@gravity-ui/page-constructor").ContentLabelProps[];
34
35
  controlPosition?: "default" | "bottom";
35
36
  };
36
37
  type GetBreadcrumbsProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/blog-constructor",
3
- "version": "9.0.0-alpha.4",
3
+ "version": "9.1.0",
4
4
  "description": "Gravity UI Blog Constructor",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@diplodoc/transform": "^4.10.7",
90
- "@gravity-ui/page-constructor": "^7.0.0",
90
+ "@gravity-ui/page-constructor": "^8.0.0",
91
91
  "@gravity-ui/uikit": "^7.1.1",
92
92
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
93
93
  },
@@ -99,7 +99,7 @@
99
99
  "@diplodoc/transform": "^4.10.8",
100
100
  "@gravity-ui/eslint-config": "^3.2.0",
101
101
  "@gravity-ui/icons": "^2.13.0",
102
- "@gravity-ui/page-constructor": "^7.7.0",
102
+ "@gravity-ui/page-constructor": "^8.0.0",
103
103
  "@gravity-ui/prettier-config": "^1.1.0",
104
104
  "@gravity-ui/stylelint-config": "^4.0.1",
105
105
  "@gravity-ui/tsconfig": "^1.0.0",
package/styles/root.css CHANGED
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .g-root {
6
- --pc-text-accent-font-weight: 500;
6
+ --g-text-accent-font-weight: 500;
7
7
  --bc-transparent: rgba(255, 255, 255, 0);
8
8
  --bc-image-padding: 4px;
9
9
  --bc-border-radius: var(--pc-border-radius, 24px);
package/styles/root.scss CHANGED
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .g-root {
6
- --pc-text-accent-font-weight: 500;
6
+ --g-text-accent-font-weight: 500;
7
7
 
8
8
  // cross-browser transparent color
9
9
  --bc-transparent: rgba(255, 255, 255, 0);
package/styles/styles.css CHANGED
@@ -247,7 +247,7 @@ unpredictable css rules order in build */
247
247
  }
248
248
 
249
249
  .yfm_heading.yfm_heading {
250
- font-family: var(--g-text-body-font-family);
250
+ font-family: var(--g-text-display-font-family);
251
251
  }
252
252
 
253
253
  @font-face {
package/styles/yfm.css CHANGED
@@ -245,5 +245,5 @@ unpredictable css rules order in build */
245
245
  }
246
246
 
247
247
  .yfm_heading.yfm_heading {
248
- font-family: var(--g-text-body-font-family);
248
+ font-family: var(--g-text-display-font-family);
249
249
  }
package/styles/yfm.scss CHANGED
@@ -145,6 +145,6 @@
145
145
 
146
146
  .yfm_heading {
147
147
  @include add-specificity(&) {
148
- font-family: var(--g-text-body-font-family);
148
+ font-family: var(--g-text-display-font-family);
149
149
  }
150
150
  }