@gravity-ui/page-constructor 1.13.1-alpha.0 → 1.13.1
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 +7 -0
- package/build/cjs/navigation/components/Header/Header.css +5 -3
- package/build/cjs/navigation/components/Logo/Logo.css +5 -6
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +1 -0
- package/build/cjs/text-transform/blocks.js +10 -1
- package/build/esm/navigation/components/Header/Header.css +5 -3
- package/build/esm/navigation/components/Logo/Logo.css +5 -6
- package/build/esm/navigation/components/NavigationItem/NavigationItem.css +1 -0
- package/build/esm/text-transform/blocks.js +10 -1
- package/package.json +1 -4
- package/server/text-transform/blocks.js +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.13.1](https://github.com/gravity-ui/page-constructor/compare/v1.13.0...v1.13.1) (2023-01-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **Navigation:** logo and button specifity styles ([#116](https://github.com/gravity-ui/page-constructor/issues/116)) ([dbe0c39](https://github.com/gravity-ui/page-constructor/commit/dbe0c39aa88aac8a3e84c079d7de400e9a9b3d2f))
|
|
9
|
+
|
|
3
10
|
## [1.13.0](https://github.com/gravity-ui/page-constructor/compare/v1.12.1...v1.13.0) (2023-01-18)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -18,25 +18,27 @@ unpredictable css rules order in build */
|
|
|
18
18
|
height: var(--header-height);
|
|
19
19
|
}
|
|
20
20
|
@media (min-width: 769px) {
|
|
21
|
-
.pc-header__mobile-menu-button {
|
|
21
|
+
.pc-header__mobile-menu-button.pc-header__mobile-menu-button {
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
|
|
25
26
|
.pc-header__navigation, .pc-header__left, .pc-header__right {
|
|
26
27
|
display: flex;
|
|
27
28
|
align-items: center;
|
|
28
29
|
}
|
|
29
|
-
.pc-header__navigation {
|
|
30
|
+
.pc-header__navigation.pc-header__navigation {
|
|
30
31
|
position: relative;
|
|
31
32
|
margin-right: 20px;
|
|
32
33
|
flex: 1 0 0;
|
|
33
34
|
justify-content: flex-start;
|
|
34
35
|
}
|
|
35
36
|
@media (max-width: 768px) {
|
|
36
|
-
.pc-header__navigation {
|
|
37
|
+
.pc-header__navigation.pc-header__navigation {
|
|
37
38
|
display: none;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
41
|
+
|
|
40
42
|
.pc-header__right {
|
|
41
43
|
flex: 0;
|
|
42
44
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.pc-
|
|
1
|
+
.pc-logo__text {
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -7,11 +7,6 @@ unpredictable css rules order in build */
|
|
|
7
7
|
.pc-logo {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
font-weight: var(--yc-text-accent-font-weight);
|
|
11
|
-
font-size: var(--yc-text-header-1-font-size);
|
|
12
|
-
line-height: var(--yc-text-header-1-line-height);
|
|
13
|
-
color: var(--pc-text-header-color);
|
|
14
|
-
font-weight: var(--yc-text-accent-font-weight);
|
|
15
10
|
}
|
|
16
11
|
.pc-logo__icon {
|
|
17
12
|
display: flex;
|
|
@@ -19,5 +14,9 @@ unpredictable css rules order in build */
|
|
|
19
14
|
object-fit: contain;
|
|
20
15
|
}
|
|
21
16
|
.pc-logo__text {
|
|
17
|
+
font-size: var(--yc-text-header-1-font-size);
|
|
18
|
+
line-height: var(--yc-text-header-1-line-height);
|
|
19
|
+
color: var(--pc-text-header-color);
|
|
20
|
+
font-weight: var(--yc-text-accent-font-weight);
|
|
22
21
|
white-space: nowrap;
|
|
23
22
|
}
|
|
@@ -162,7 +162,15 @@ const config = {
|
|
|
162
162
|
},
|
|
163
163
|
],
|
|
164
164
|
[models_1.BlockType.PromoFeaturesBlock]: [
|
|
165
|
-
|
|
165
|
+
{
|
|
166
|
+
fields: ['title'],
|
|
167
|
+
transformer: typografTransformer,
|
|
168
|
+
parser: parseTitle,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
fields: ['description'],
|
|
172
|
+
transformer: yfmTransformer,
|
|
173
|
+
},
|
|
166
174
|
{
|
|
167
175
|
fields: ['items'],
|
|
168
176
|
transformer: yfmTransformer,
|
|
@@ -301,6 +309,7 @@ const config = {
|
|
|
301
309
|
parser: parseTitle,
|
|
302
310
|
},
|
|
303
311
|
],
|
|
312
|
+
[models_1.BlockType.PromoFeaturesBlock]: blockHeaderTransfomer,
|
|
304
313
|
[models_1.BlockType.InfoBlock]: [
|
|
305
314
|
{
|
|
306
315
|
fields: ['rightContent', 'leftContent'],
|
|
@@ -18,25 +18,27 @@ unpredictable css rules order in build */
|
|
|
18
18
|
height: var(--header-height);
|
|
19
19
|
}
|
|
20
20
|
@media (min-width: 769px) {
|
|
21
|
-
.pc-header__mobile-menu-button {
|
|
21
|
+
.pc-header__mobile-menu-button.pc-header__mobile-menu-button {
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
|
|
25
26
|
.pc-header__navigation, .pc-header__left, .pc-header__right {
|
|
26
27
|
display: flex;
|
|
27
28
|
align-items: center;
|
|
28
29
|
}
|
|
29
|
-
.pc-header__navigation {
|
|
30
|
+
.pc-header__navigation.pc-header__navigation {
|
|
30
31
|
position: relative;
|
|
31
32
|
margin-right: 20px;
|
|
32
33
|
flex: 1 0 0;
|
|
33
34
|
justify-content: flex-start;
|
|
34
35
|
}
|
|
35
36
|
@media (max-width: 768px) {
|
|
36
|
-
.pc-header__navigation {
|
|
37
|
+
.pc-header__navigation.pc-header__navigation {
|
|
37
38
|
display: none;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
41
|
+
|
|
40
42
|
.pc-header__right {
|
|
41
43
|
flex: 0;
|
|
42
44
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.pc-
|
|
1
|
+
.pc-logo__text {
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -7,11 +7,6 @@ unpredictable css rules order in build */
|
|
|
7
7
|
.pc-logo {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
font-weight: var(--yc-text-accent-font-weight);
|
|
11
|
-
font-size: var(--yc-text-header-1-font-size);
|
|
12
|
-
line-height: var(--yc-text-header-1-line-height);
|
|
13
|
-
color: var(--pc-text-header-color);
|
|
14
|
-
font-weight: var(--yc-text-accent-font-weight);
|
|
15
10
|
}
|
|
16
11
|
.pc-logo__icon {
|
|
17
12
|
display: flex;
|
|
@@ -19,5 +14,9 @@ unpredictable css rules order in build */
|
|
|
19
14
|
object-fit: contain;
|
|
20
15
|
}
|
|
21
16
|
.pc-logo__text {
|
|
17
|
+
font-size: var(--yc-text-header-1-font-size);
|
|
18
|
+
line-height: var(--yc-text-header-1-line-height);
|
|
19
|
+
color: var(--pc-text-header-color);
|
|
20
|
+
font-weight: var(--yc-text-accent-font-weight);
|
|
22
21
|
white-space: nowrap;
|
|
23
22
|
}
|
|
@@ -156,7 +156,15 @@ const config = {
|
|
|
156
156
|
},
|
|
157
157
|
],
|
|
158
158
|
[BlockType.PromoFeaturesBlock]: [
|
|
159
|
-
|
|
159
|
+
{
|
|
160
|
+
fields: ['title'],
|
|
161
|
+
transformer: typografTransformer,
|
|
162
|
+
parser: parseTitle,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
fields: ['description'],
|
|
166
|
+
transformer: yfmTransformer,
|
|
167
|
+
},
|
|
160
168
|
{
|
|
161
169
|
fields: ['items'],
|
|
162
170
|
transformer: yfmTransformer,
|
|
@@ -295,6 +303,7 @@ const config = {
|
|
|
295
303
|
parser: parseTitle,
|
|
296
304
|
},
|
|
297
305
|
],
|
|
306
|
+
[BlockType.PromoFeaturesBlock]: blockHeaderTransfomer,
|
|
298
307
|
[BlockType.InfoBlock]: [
|
|
299
308
|
{
|
|
300
309
|
fields: ['rightContent', 'leftContent'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/page-constructor",
|
|
3
|
-
"version": "1.13.1
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Gravity UI Page Constructor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -132,8 +132,5 @@
|
|
|
132
132
|
"*.{json,yaml,yml,md}": [
|
|
133
133
|
"prettier --write"
|
|
134
134
|
]
|
|
135
|
-
},
|
|
136
|
-
"publishConfig": {
|
|
137
|
-
"tag": "alpha"
|
|
138
135
|
}
|
|
139
136
|
}
|
|
@@ -175,7 +175,15 @@ const config = {
|
|
|
175
175
|
},
|
|
176
176
|
],
|
|
177
177
|
[models_1.BlockType.PromoFeaturesBlock]: [
|
|
178
|
-
|
|
178
|
+
{
|
|
179
|
+
fields: ['title'],
|
|
180
|
+
transformer: typografTransformer,
|
|
181
|
+
parser: parseTitle,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
fields: ['description'],
|
|
185
|
+
transformer: yfmTransformer,
|
|
186
|
+
},
|
|
179
187
|
{
|
|
180
188
|
fields: ['items'],
|
|
181
189
|
transformer: yfmTransformer,
|
|
@@ -314,6 +322,7 @@ const config = {
|
|
|
314
322
|
parser: parseTitle,
|
|
315
323
|
},
|
|
316
324
|
],
|
|
325
|
+
[models_1.BlockType.PromoFeaturesBlock]: blockHeaderTransfomer,
|
|
317
326
|
[models_1.BlockType.InfoBlock]: [
|
|
318
327
|
{
|
|
319
328
|
fields: ['rightContent', 'leftContent'],
|