@gravity-ui/page-constructor 1.22.0-alpha.0 → 1.22.1-alpha.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 +7 -0
- package/README.md +18 -0
- package/build/cjs/components/BlockHeader/BlockHeader.css +2 -2
- package/build/cjs/components/Title/Title.d.ts +1 -1
- package/build/cjs/components/Title/Title.js +2 -2
- package/build/cjs/text-transform/blocks.js +7 -0
- package/build/esm/components/BlockHeader/BlockHeader.css +2 -2
- package/build/esm/components/Title/Title.d.ts +1 -1
- package/build/esm/components/Title/Title.js +2 -2
- package/build/esm/text-transform/blocks.js +7 -0
- package/package.json +1 -1
- package/server/text-transform/blocks.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.22.1](https://github.com/gravity-ui/page-constructor/compare/v1.22.0...v1.22.1) (2023-03-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add map block to text transform blocks [CLOUDFRONT-15094] ([#206](https://github.com/gravity-ui/page-constructor/issues/206)) ([a9323a1](https://github.com/gravity-ui/page-constructor/commit/a9323a1f895258af598106786157164ecde4a7fc))
|
|
9
|
+
|
|
3
10
|
## [1.22.0](https://github.com/gravity-ui/page-constructor/compare/v1.21.0...v1.22.0) (2023-03-07)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -298,3 +298,21 @@ enum PredefinedEventTypes {
|
|
|
298
298
|
npm ci
|
|
299
299
|
npm run dev
|
|
300
300
|
```
|
|
301
|
+
|
|
302
|
+
## Release flow
|
|
303
|
+
|
|
304
|
+
In usual cases we use two types of commits:
|
|
305
|
+
|
|
306
|
+
1. fix: a commit of the type fix patches a bug in your codebase (this correlates with PATCH in Semantic Versioning).
|
|
307
|
+
2. feat: a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in Semantic Versioning).
|
|
308
|
+
3. BREAKING CHANGE: a commit that has a footer BREAKING CHANGE:, or appends a ! after the type/scope, introduces a breaking API change (correlating with MAJOR in Semantic Versioning). A BREAKING CHANGE can be part of commits of any type.
|
|
309
|
+
|
|
310
|
+
You can see all information [here](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
311
|
+
|
|
312
|
+
When you receive the approval of your pull-request from the code owners and pass all the checks, please do the following:
|
|
313
|
+
|
|
314
|
+
1. You should check if there is a release pull-request from robot with changes from another contributor (it looks like `chore(main): release 0.0.0`). If it exists, you should check why it is not merged. If the contributor agrees to release a shared version, follow the next step. If not, ask him to release his version, then follow the next step.
|
|
315
|
+
2. Squash and merge your PR (It is important to release a new version with Github-Actions)
|
|
316
|
+
3. Wait until robot creates a PR with a new version of the package and information about your changes in CHANGELOG.md. You can see the process on [the Actions tab](https://github.com/gravity-ui/page-constructor/actions).
|
|
317
|
+
4. Check your changes in CHANGELOG.md and approve robot's PR.
|
|
318
|
+
5. Squash and merge PR. You can see release process on [the Actions tab](https://github.com/gravity-ui/page-constructor/actions).
|
|
@@ -7,10 +7,10 @@ unpredictable css rules order in build */
|
|
|
7
7
|
font-size: var(--yc-text-body-3-font-size);
|
|
8
8
|
line-height: var(--yc-text-body-3-line-height);
|
|
9
9
|
}
|
|
10
|
-
.pc-block-header__description_titleSize_s {
|
|
10
|
+
.pc-block-header__description_titleSize_s, .pc-block-header__description_titleSize_xs {
|
|
11
11
|
margin-top: 8px;
|
|
12
12
|
}
|
|
13
|
-
.pc-block-header__description_titleSize_s .yfm {
|
|
13
|
+
.pc-block-header__description_titleSize_s .yfm, .pc-block-header__description_titleSize_xs .yfm {
|
|
14
14
|
font-size: var(--yc-text-body-2-font-size);
|
|
15
15
|
line-height: var(--yc-text-body-2-line-height);
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextSize, TitleProps } from '../../models';
|
|
2
|
-
export declare function getArrowSize(size: TextSize, isMobile: boolean): 16 |
|
|
2
|
+
export declare function getArrowSize(size: TextSize, isMobile: boolean): 16 | 12 | 20 | 24 | 40;
|
|
3
3
|
export interface TitleFullProps extends TitleProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
onClick?: () => void;
|
|
@@ -12,9 +12,9 @@ const b = (0, utils_1.block)('title-block');
|
|
|
12
12
|
function getArrowSize(size, isMobile) {
|
|
13
13
|
switch (size) {
|
|
14
14
|
case 'xs':
|
|
15
|
-
return
|
|
15
|
+
return 12;
|
|
16
16
|
case 's':
|
|
17
|
-
return 16;
|
|
17
|
+
return 16;
|
|
18
18
|
case 'm':
|
|
19
19
|
return isMobile ? 20 : 24;
|
|
20
20
|
case 'l':
|
|
@@ -229,6 +229,13 @@ const config = {
|
|
|
229
229
|
transformer: yfmTransformer,
|
|
230
230
|
},
|
|
231
231
|
],
|
|
232
|
+
[models_1.BlockType.MapBlock]: [
|
|
233
|
+
...blockHeaderTransfomer,
|
|
234
|
+
{
|
|
235
|
+
fields: ['title', 'additionalInfo'],
|
|
236
|
+
transformer: yfmTransformer,
|
|
237
|
+
},
|
|
238
|
+
],
|
|
232
239
|
[models_1.BlockType.TabsBlock]: [
|
|
233
240
|
...blockHeaderTransfomer,
|
|
234
241
|
{
|
|
@@ -7,10 +7,10 @@ unpredictable css rules order in build */
|
|
|
7
7
|
font-size: var(--yc-text-body-3-font-size);
|
|
8
8
|
line-height: var(--yc-text-body-3-line-height);
|
|
9
9
|
}
|
|
10
|
-
.pc-block-header__description_titleSize_s {
|
|
10
|
+
.pc-block-header__description_titleSize_s, .pc-block-header__description_titleSize_xs {
|
|
11
11
|
margin-top: 8px;
|
|
12
12
|
}
|
|
13
|
-
.pc-block-header__description_titleSize_s .yfm {
|
|
13
|
+
.pc-block-header__description_titleSize_s .yfm, .pc-block-header__description_titleSize_xs .yfm {
|
|
14
14
|
font-size: var(--yc-text-body-2-font-size);
|
|
15
15
|
line-height: var(--yc-text-body-2-line-height);
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextSize, TitleProps } from '../../models';
|
|
2
2
|
import './Title.css';
|
|
3
|
-
export declare function getArrowSize(size: TextSize, isMobile: boolean): 16 |
|
|
3
|
+
export declare function getArrowSize(size: TextSize, isMobile: boolean): 16 | 12 | 20 | 24 | 40;
|
|
4
4
|
export interface TitleFullProps extends TitleProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
onClick?: () => void;
|
|
@@ -223,6 +223,13 @@ const config = {
|
|
|
223
223
|
transformer: yfmTransformer,
|
|
224
224
|
},
|
|
225
225
|
],
|
|
226
|
+
[BlockType.MapBlock]: [
|
|
227
|
+
...blockHeaderTransfomer,
|
|
228
|
+
{
|
|
229
|
+
fields: ['title', 'additionalInfo'],
|
|
230
|
+
transformer: yfmTransformer,
|
|
231
|
+
},
|
|
232
|
+
],
|
|
226
233
|
[BlockType.TabsBlock]: [
|
|
227
234
|
...blockHeaderTransfomer,
|
|
228
235
|
{
|
package/package.json
CHANGED
|
@@ -242,6 +242,13 @@ const config = {
|
|
|
242
242
|
transformer: yfmTransformer,
|
|
243
243
|
},
|
|
244
244
|
],
|
|
245
|
+
[models_1.BlockType.MapBlock]: [
|
|
246
|
+
...blockHeaderTransfomer,
|
|
247
|
+
{
|
|
248
|
+
fields: ['title', 'additionalInfo'],
|
|
249
|
+
transformer: yfmTransformer,
|
|
250
|
+
},
|
|
251
|
+
],
|
|
245
252
|
[models_1.BlockType.TabsBlock]: [
|
|
246
253
|
...blockHeaderTransfomer,
|
|
247
254
|
{
|