@gravity-ui/page-constructor 2.8.2 → 2.8.3

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.8.3](https://github.com/gravity-ui/page-constructor/compare/v2.8.2...v2.8.3) (2023-04-14)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **BasicCard:** schema validation ([#304](https://github.com/gravity-ui/page-constructor/issues/304)) ([a8627ca](https://github.com/gravity-ui/page-constructor/commit/a8627ca131547281674e5f24df85b830875539f7))
9
+
3
10
  ## [2.8.2](https://github.com/gravity-ui/page-constructor/compare/v2.8.1...v2.8.2) (2023-04-12)
4
11
 
5
12
 
@@ -509,7 +509,7 @@ exports.MapProps = {
509
509
  exports.CardBase = {
510
510
  border: {
511
511
  type: 'string',
512
- enum: ['border', 'shadow', 'none'],
512
+ enum: ['line', 'shadow', 'none'],
513
513
  },
514
514
  };
515
515
  exports.BlockHeaderProps = {
@@ -1,7 +1,7 @@
1
1
  export declare const BasicCard: {
2
2
  'basic-card': {
3
3
  additionalProperties: boolean;
4
- required: string[];
4
+ required: never[];
5
5
  properties: {
6
6
  url: {
7
7
  type: string;
@@ -10,7 +10,7 @@ const BasicCardContentProps = lodash_1.default.omit(schema_2.ContentBase, ['size
10
10
  exports.BasicCard = {
11
11
  'basic-card': {
12
12
  additionalProperties: false,
13
- required: ['url'],
13
+ required: [],
14
14
  properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.CardBase), BasicCardContentProps), { url: {
15
15
  type: 'string',
16
16
  }, icon: schema_1.ImageProps, target: {
@@ -505,7 +505,7 @@ export const MapProps = {
505
505
  export const CardBase = {
506
506
  border: {
507
507
  type: 'string',
508
- enum: ['border', 'shadow', 'none'],
508
+ enum: ['line', 'shadow', 'none'],
509
509
  },
510
510
  };
511
511
  export const BlockHeaderProps = {
@@ -1,7 +1,7 @@
1
1
  export declare const BasicCard: {
2
2
  'basic-card': {
3
3
  additionalProperties: boolean;
4
- required: string[];
4
+ required: never[];
5
5
  properties: {
6
6
  url: {
7
7
  type: string;
@@ -6,7 +6,7 @@ const BasicCardContentProps = _.omit(ContentBase, ['size', 'theme']);
6
6
  export const BasicCard = {
7
7
  'basic-card': {
8
8
  additionalProperties: false,
9
- required: ['url'],
9
+ required: [],
10
10
  properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BaseProps), CardBase), BasicCardContentProps), { url: {
11
11
  type: 'string',
12
12
  }, icon: ImageProps, target: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {