Skip to content

Commit 1051fe7

Browse files
authored
Merge pull request #179 from aabidsofi19/styles-animation
add animation property to styles
2 parents b4edb35 + 8fc6d55 commit 1051fe7

File tree

4 files changed

+51
-9
lines changed

4 files changed

+51
-9
lines changed

schemas/constructs/core.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"styles": {
4141
"type": "object",
4242
"description": "Common styles for all entities",
43-
"additionalProperties": false,
43+
"additionalProperties": true,
4444
"required": ["primaryColor", "svgColor", "svgWhite"],
4545
"properties": {
4646
"primaryColor": {
@@ -107,6 +107,10 @@
107107
"label": {
108108
"type": "string",
109109
"description": "The text to display for an element\u2019s label. Can give a path, e.g. data(id) will label with the elements id"
110+
},
111+
"animation": {
112+
"type": "string",
113+
"description": "The animation to apply to the element. example ripple,bounce,etc "
110114
}
111115
}
112116
},
@@ -282,7 +286,7 @@
282286
"x": {
283287
"type": "number",
284288
"description": "The x-coordinate of the node.",
285-
"x-go-type": "float64"
289+
"x-go-type": "float64"
286290
},
287291
"y": {
288292
"type": "number",

typescript/constructs/v1alpha3/relationship.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface HttpsSchemasMesheryIoRelationshipJson {
3737
/**
3838
* Status of the relationship.
3939
*/
40-
status?: "ignored" | "enabled" | "deleted";
40+
status?: "pending" | "approved" | "ignored" | "enabled" | "deleted";
4141
/**
4242
* Optional. Assigns the policy to be used for the evaluation of the relationship. Deprecation Notice: In the future, this property is either to be removed or to it is to be an array of optional policy $refs.
4343
*/
@@ -803,7 +803,8 @@ export interface HttpsSchemasMesheryIoCapabilityJson {
803803
/**
804804
* Most granular unit of capability classification. The combination of Kind, Type and SubType together uniquely identify a Capability.
805805
*/
806-
subType?: string;
806+
subType?: ("inventory" | "matchLabels" | "permission" | "network" | "firewall" | "mount" | "alias" | "annotation") &
807+
string;
807808
/**
808809
* Key that backs the capability.
809810
*/

typescript/constructs/v1beta1/component.d.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,18 @@ export type ComponentStyles = Styles & {
219219
* An array (or a space-separated string) of numbers ranging on [-1, 1], representing alternating x and y values (i.e. x1 y1 x2 y2, x3 y3 ...). This represents the points in the polygon for the node’s shape. The bounding box of the node is given by (-1, -1), (1, -1), (1, 1), (-1, 1). The node’s position is the origin (0, 0 )
220220
*/
221221
"shape-polygon-points"?: string;
222+
/**
223+
* The colour of the background of the component menu. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).
224+
*/
225+
"menu-background-color"?: string;
226+
/**
227+
* The opacity of the background of the component menu.
228+
*/
229+
"menu-background-opacity"?: number;
230+
/**
231+
* The colour of the text or icons in the component menu. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).
232+
*/
233+
"menu-forground-color"?: string;
222234
[k: string]: unknown;
223235
};
224236

@@ -263,7 +275,7 @@ export interface HttpsSchemasMesheryIoComponentJson {
263275
* - enabled: model is available for use for all users of this Meshery Server.
264276
* - ignored: model is unavailable for use for all users of this Meshery Server.
265277
*/
266-
status?: "ignored" | "enabled" | "duplicate";
278+
status?: "ignored" | "enabled" | "duplicate" | "resolved" | "open";
267279
/**
268280
* Metadata contains additional information associated with the component.
269281
*/
@@ -577,4 +589,9 @@ export interface Styles {
577589
* The text to display for an element’s label. Can give a path, e.g. data(id) will label with the elements id
578590
*/
579591
label?: string;
592+
/**
593+
* The animation to apply to the element. example ripple,bounce,etc
594+
*/
595+
animation?: string;
596+
[k: string]: unknown;
580597
}

typescript/constructs/v1beta1/designs.d.ts

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,18 @@ export type ComponentStyles = Styles & {
219219
* An array (or a space-separated string) of numbers ranging on [-1, 1], representing alternating x and y values (i.e. x1 y1 x2 y2, x3 y3 ...). This represents the points in the polygon for the node’s shape. The bounding box of the node is given by (-1, -1), (1, -1), (1, 1), (-1, 1). The node’s position is the origin (0, 0 )
220220
*/
221221
"shape-polygon-points"?: string;
222+
/**
223+
* The colour of the background of the component menu. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).
224+
*/
225+
"menu-background-color"?: string;
226+
/**
227+
* The opacity of the background of the component menu.
228+
*/
229+
"menu-background-opacity"?: number;
230+
/**
231+
* The colour of the text or icons in the component menu. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).
232+
*/
233+
"menu-forground-color"?: string;
222234
[k: string]: unknown;
223235
};
224236

@@ -255,7 +267,9 @@ export interface DesignSchema {
255267
/**
256268
* List of available layers
257269
*/
258-
layers: string[];
270+
layers: {
271+
[k: string]: unknown;
272+
};
259273
[k: string]: unknown;
260274
};
261275
/**
@@ -305,7 +319,7 @@ export interface HttpsSchemasMesheryIoComponentJson {
305319
* - enabled: model is available for use for all users of this Meshery Server.
306320
* - ignored: model is unavailable for use for all users of this Meshery Server.
307321
*/
308-
status?: "ignored" | "enabled" | "duplicate";
322+
status?: "ignored" | "enabled" | "duplicate" | "resolved" | "open";
309323
/**
310324
* Metadata contains additional information associated with the component.
311325
*/
@@ -619,6 +633,11 @@ export interface Styles {
619633
* The text to display for an element’s label. Can give a path, e.g. data(id) will label with the elements id
620634
*/
621635
label?: string;
636+
/**
637+
* The animation to apply to the element. example ripple,bounce,etc
638+
*/
639+
animation?: string;
640+
[k: string]: unknown;
622641
}
623642
/**
624643
* Relationships define the nature of interaction between interconnected components in Meshery. The combination of relationship properties kind, type, and subtype characterize various genealogical relations among and between components. Relationships have selectors, selector sets, metadata, and optional parameters. Learn more at https://docs.meshery.io/concepts/logical/relationships.
@@ -652,7 +671,7 @@ export interface HttpsSchemasMesheryIoRelationshipJson {
652671
/**
653672
* Status of the relationship.
654673
*/
655-
status?: "ignored" | "enabled" | "deleted";
674+
status?: "pending" | "approved" | "ignored" | "enabled" | "deleted";
656675
/**
657676
* Optional. Assigns the policy to be used for the evaluation of the relationship. Deprecation Notice: In the future, this property is either to be removed or to it is to be an array of optional policy $refs.
658677
*/
@@ -1418,7 +1437,8 @@ export interface HttpsSchemasMesheryIoCapabilityJson1 {
14181437
/**
14191438
* Most granular unit of capability classification. The combination of Kind, Type and SubType together uniquely identify a Capability.
14201439
*/
1421-
subType?: string;
1440+
subType?: ("inventory" | "matchLabels" | "permission" | "network" | "firewall" | "mount" | "alias" | "annotation") &
1441+
string;
14221442
/**
14231443
* Key that backs the capability.
14241444
*/

0 commit comments

Comments
 (0)