@gravity-ui/page-constructor 1.14.0-alpha.4 → 1.14.0-alpha.5

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.
@@ -33,70 +33,26 @@ export declare const NavigationHeaderProps: {
33
33
  leftItems: {
34
34
  oneOf: {
35
35
  type: string;
36
- additionalProperties: boolean;
37
- required: string[];
38
- properties: {
39
- type: {
40
- type: string;
41
- enum: string[];
42
- };
43
- items: {
44
- type: string;
45
- items: {
36
+ items: {
37
+ type: string;
38
+ properties: {
39
+ when: {
46
40
  type: string;
47
- properties: {
48
- when: {
49
- type: string;
50
- };
51
- };
52
41
  };
53
42
  };
54
- text: {
55
- type: string;
56
- contentType: string;
57
- };
58
- url: {
59
- type: string;
60
- };
61
- icon: {
62
- type: string;
63
- pattern: string;
64
- };
65
43
  };
66
44
  }[];
67
45
  };
68
46
  rightItems: {
69
47
  oneOf: {
70
48
  type: string;
71
- additionalProperties: boolean;
72
- required: string[];
73
- properties: {
74
- type: {
75
- type: string;
76
- enum: string[];
77
- };
78
- items: {
79
- type: string;
80
- items: {
49
+ items: {
50
+ type: string;
51
+ properties: {
52
+ when: {
81
53
  type: string;
82
- properties: {
83
- when: {
84
- type: string;
85
- };
86
- };
87
54
  };
88
55
  };
89
- text: {
90
- type: string;
91
- contentType: string;
92
- };
93
- url: {
94
- type: string;
95
- };
96
- icon: {
97
- type: string;
98
- pattern: string;
99
- };
100
56
  };
101
57
  }[];
102
58
  };
@@ -64,7 +64,9 @@ const NavigationDropdownItemProps = {
64
64
  };
65
65
  const NavigationItemProps = {
66
66
  oneOf: [
67
- Object.assign(Object.assign(Object.assign({}, NavigationLinkItemProps), NavigationButtonItemProps), NavigationDropdownItemProps),
67
+ (0, utils_1.filteredArray)(NavigationLinkItemProps),
68
+ (0, utils_1.filteredArray)(NavigationButtonItemProps),
69
+ (0, utils_1.filteredArray)(NavigationDropdownItemProps),
68
70
  ],
69
71
  };
70
72
  exports.NavigationHeaderProps = {
@@ -73,70 +73,26 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
73
73
  leftItems: {
74
74
  oneOf: {
75
75
  type: string;
76
- additionalProperties: boolean;
77
- required: string[];
78
- properties: {
79
- type: {
80
- type: string;
81
- enum: string[];
82
- };
83
- items: {
84
- type: string;
85
- items: {
76
+ items: {
77
+ type: string;
78
+ properties: {
79
+ when: {
86
80
  type: string;
87
- properties: {
88
- when: {
89
- type: string;
90
- };
91
- };
92
81
  };
93
82
  };
94
- text: {
95
- type: string;
96
- contentType: string;
97
- };
98
- url: {
99
- type: string;
100
- };
101
- icon: {
102
- type: string;
103
- pattern: string;
104
- };
105
83
  };
106
84
  }[];
107
85
  };
108
86
  rightItems: {
109
87
  oneOf: {
110
88
  type: string;
111
- additionalProperties: boolean;
112
- required: string[];
113
- properties: {
114
- type: {
115
- type: string;
116
- enum: string[];
117
- };
118
- items: {
119
- type: string;
120
- items: {
89
+ items: {
90
+ type: string;
91
+ properties: {
92
+ when: {
121
93
  type: string;
122
- properties: {
123
- when: {
124
- type: string;
125
- };
126
- };
127
94
  };
128
95
  };
129
- text: {
130
- type: string;
131
- contentType: string;
132
- };
133
- url: {
134
- type: string;
135
- };
136
- icon: {
137
- type: string;
138
- pattern: string;
139
- };
140
96
  };
141
97
  }[];
142
98
  };
@@ -33,70 +33,26 @@ export declare const NavigationHeaderProps: {
33
33
  leftItems: {
34
34
  oneOf: {
35
35
  type: string;
36
- additionalProperties: boolean;
37
- required: string[];
38
- properties: {
39
- type: {
40
- type: string;
41
- enum: string[];
42
- };
43
- items: {
44
- type: string;
45
- items: {
36
+ items: {
37
+ type: string;
38
+ properties: {
39
+ when: {
46
40
  type: string;
47
- properties: {
48
- when: {
49
- type: string;
50
- };
51
- };
52
41
  };
53
42
  };
54
- text: {
55
- type: string;
56
- contentType: string;
57
- };
58
- url: {
59
- type: string;
60
- };
61
- icon: {
62
- type: string;
63
- pattern: string;
64
- };
65
43
  };
66
44
  }[];
67
45
  };
68
46
  rightItems: {
69
47
  oneOf: {
70
48
  type: string;
71
- additionalProperties: boolean;
72
- required: string[];
73
- properties: {
74
- type: {
75
- type: string;
76
- enum: string[];
77
- };
78
- items: {
79
- type: string;
80
- items: {
49
+ items: {
50
+ type: string;
51
+ properties: {
52
+ when: {
81
53
  type: string;
82
- properties: {
83
- when: {
84
- type: string;
85
- };
86
- };
87
54
  };
88
55
  };
89
- text: {
90
- type: string;
91
- contentType: string;
92
- };
93
- url: {
94
- type: string;
95
- };
96
- icon: {
97
- type: string;
98
- pattern: string;
99
- };
100
56
  };
101
57
  }[];
102
58
  };
@@ -61,7 +61,9 @@ const NavigationDropdownItemProps = {
61
61
  };
62
62
  const NavigationItemProps = {
63
63
  oneOf: [
64
- Object.assign(Object.assign(Object.assign({}, NavigationLinkItemProps), NavigationButtonItemProps), NavigationDropdownItemProps),
64
+ filteredArray(NavigationLinkItemProps),
65
+ filteredArray(NavigationButtonItemProps),
66
+ filteredArray(NavigationDropdownItemProps),
65
67
  ],
66
68
  };
67
69
  export const NavigationHeaderProps = {
@@ -73,70 +73,26 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
73
73
  leftItems: {
74
74
  oneOf: {
75
75
  type: string;
76
- additionalProperties: boolean;
77
- required: string[];
78
- properties: {
79
- type: {
80
- type: string;
81
- enum: string[];
82
- };
83
- items: {
84
- type: string;
85
- items: {
76
+ items: {
77
+ type: string;
78
+ properties: {
79
+ when: {
86
80
  type: string;
87
- properties: {
88
- when: {
89
- type: string;
90
- };
91
- };
92
81
  };
93
82
  };
94
- text: {
95
- type: string;
96
- contentType: string;
97
- };
98
- url: {
99
- type: string;
100
- };
101
- icon: {
102
- type: string;
103
- pattern: string;
104
- };
105
83
  };
106
84
  }[];
107
85
  };
108
86
  rightItems: {
109
87
  oneOf: {
110
88
  type: string;
111
- additionalProperties: boolean;
112
- required: string[];
113
- properties: {
114
- type: {
115
- type: string;
116
- enum: string[];
117
- };
118
- items: {
119
- type: string;
120
- items: {
89
+ items: {
90
+ type: string;
91
+ properties: {
92
+ when: {
121
93
  type: string;
122
- properties: {
123
- when: {
124
- type: string;
125
- };
126
- };
127
94
  };
128
95
  };
129
- text: {
130
- type: string;
131
- contentType: string;
132
- };
133
- url: {
134
- type: string;
135
- };
136
- icon: {
137
- type: string;
138
- pattern: string;
139
- };
140
96
  };
141
97
  }[];
142
98
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "1.14.0-alpha.4",
3
+ "version": "1.14.0-alpha.5",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {