Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@directededges/anova",
"version": "0.10.0",
"version": "0.11.0",
"description": "Anova UI Component Schema - TypeScript types and JSON schema definitions for component specifications",
"license": "CC BY 4.0",
"author": "Nathan Curtis <nathan@directededges.com>",
Expand Down
2 changes: 1 addition & 1 deletion schema/component.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.6.0",
"version": "0.11.0",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/DirectedEdges/anova/main/anova.schema.json",
"title": "Anova Plugin Output Schema",
Expand Down
2 changes: 1 addition & 1 deletion schema/components.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$id": "https://raw.githubusercontent.com/DirectedEdges/anova/main/components.schema.json",
"title": "Anova Components Set Schema",
"description": "A set of named components, each conforming to the Anova component schema.",
"version": "0.6.0",
"version": "0.11.0",
"type": "object",
"properties": {
"components": {
Expand Down
2 changes: 1 addition & 1 deletion schema/root.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$id": "https://raw.githubusercontent.com/DirectedEdges/anova/main/root.schema.json",
"title": "Anova Schema Package",
"description": "Root schema for the Anova component and components set definitions.",
"version": "0.6.0",
"version": "0.11.0",
"oneOf": [
{ "$ref": "component.schema.json" },
{ "$ref": "components.schema.json" }
Expand Down
8 changes: 5 additions & 3 deletions schema/styles.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.6.0",
"version": "0.11.0",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/DirectedEdges/anova/main/styles.schema.json",
"title": "Anova Styles Schema",
Expand All @@ -14,7 +14,8 @@
"visible": { "$ref": "#/definitions/BooleanBindableStyleValue", "description": "Visibility. Can be bound to component prop." },
"opacity": { "$ref": "#/definitions/NumberStyleValue", "description": "Opacity 0-1" },
"locked": { "$ref": "#/definitions/BooleanStyleValue", "description": "Lock state" },
"fills": { "$ref": "#/definitions/ColorStyleValue", "description": "Fill colors" },
"backgroundColor": { "$ref": "#/definitions/ColorStyleValue", "description": "Background fill color. Present on all non-text element types. Represented in Figma as fills." },
"textColor": { "$ref": "#/definitions/ColorStyleValue", "description": "Text fill color. Present on TEXT element type only. Represented in Figma as fills." },
"effectStyleId": { "$ref": "#/definitions/StyleIdValue", "description": "Effect style reference" },
"clipContent": { "$ref": "#/definitions/BooleanStyleValue", "description": "Clip content" },
"cornerRadius": { "$ref": "#/definitions/CornerStyleValue", "description": "Uniform corner radius" },
Expand Down Expand Up @@ -68,7 +69,8 @@
"topLeftRadius": { "$ref": "#/definitions/CornerStyleValue", "description": "Top-left corner radius" },
"topRightRadius": { "$ref": "#/definitions/CornerStyleValue", "description": "Top-right corner radius" },
"bottomLeftRadius": { "$ref": "#/definitions/CornerStyleValue", "description": "Bottom-left corner radius" },
"bottomRightRadius": { "$ref": "#/definitions/CornerStyleValue", "description": "Bottom-right corner radius" }
"bottomRightRadius": { "$ref": "#/definitions/CornerStyleValue", "description": "Bottom-right corner radius" },
"cornerSmoothing": { "$ref": "#/definitions/NumberStyleValue", "description": "Degree of corner smoothing (0 = standard circular corners, 1 = fully smooth iOS-style squircle). Applies to FRAME, COMPONENT, RECTANGLE, POLYGON, STAR, VECTOR, and ELLIPSE element types." }
},
"additionalProperties": false
},
Expand Down
8 changes: 6 additions & 2 deletions types/Styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Styles = Partial<{
visible: Style;
opacity: Style;
locked: Style;
fills: Style;
backgroundColor: Style;
effectStyleId: Style;
clipContent: Style;
cornerRadius: Style;
Expand Down Expand Up @@ -43,6 +43,7 @@ export type Styles = Partial<{
textStyleId: Style;
textAlignHorizontal: Style;
textAlignVertical: Style;
textColor: Style;
primaryAxisAlignItems: Style;
primaryAxisSizingMode: Style;
counterAxisAlignItems: Style;
Expand All @@ -60,6 +61,7 @@ export type Styles = Partial<{
topRightRadius: Style;
bottomLeftRadius: Style;
bottomRightRadius: Style;
cornerSmoothing: Style;
}>;

/**
Expand Down Expand Up @@ -96,7 +98,7 @@ export type StyleKey =
| 'visible'
| 'opacity'
| 'locked'
| 'fills'
| 'backgroundColor'
| 'effectStyleId'
| 'clipContent'
| 'cornerRadius'
Expand Down Expand Up @@ -134,6 +136,7 @@ export type StyleKey =
| 'textStyleId'
| 'textAlignHorizontal'
| 'textAlignVertical'
| 'textColor'
| 'primaryAxisAlignItems'
| 'primaryAxisSizingMode'
| 'counterAxisAlignItems'
Expand All @@ -147,6 +150,7 @@ export type StyleKey =
| 'paddingTop'
| 'paddingBottom'
| 'counterAxisSpacing'
| 'cornerSmoothing'
| 'topLeftRadius'
| 'topRightRadius'
| 'bottomLeftRadius'
Expand Down