forked from microsoft/fast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: converted the app schemas to typescript, removed typings file a…
…nd related schema scripts. (microsoft#1869) * feat: remove app json schemas and clean up * updated recently added schema refrences
- Loading branch information
Showing
44 changed files
with
208 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
packages/fast-components-react-base/app/components/react-html-element.schema.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,5 @@ | |
"compilerOptions": { | ||
"baseUrl": ".", | ||
"outDir": "./dist" | ||
}, | ||
"files": [ | ||
"typings.d.ts" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...s/fast-components-react-msft/app/components/carousel-dark-image-content-child-options.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
packages/fast-components-react-msft/app/components/carousel-dark-image-content.schema.json
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
packages/fast-components-react-msft/app/components/carousel-dark-image-content.schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export default { | ||
$schema: "http://json-schema.org/schema#", | ||
title: "Carousel Dark Image Content Test Element", | ||
description: "A carousel dark image content component's schema definition.", | ||
id: "carousel-dark-image-content", | ||
type: "object", | ||
properties: { | ||
image: { | ||
title: "Image", | ||
type: "object", | ||
properties: { | ||
src: { | ||
title: "HTML src attribute", | ||
type: "string", | ||
default: "http://placehold.it/1399x600/2F2F2F/171717", | ||
}, | ||
alt: { | ||
title: "HTML alt attribute", | ||
type: "string", | ||
}, | ||
}, | ||
required: ["src"], | ||
}, | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
packages/fast-components-react-msft/app/components/carousel-hero-content-child-options.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 0 additions & 67 deletions
67
packages/fast-components-react-msft/app/components/carousel-hero-content.schema.json
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
packages/fast-components-react-msft/app/components/carousel-hero-content.schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
export default { | ||
$schema: "http://json-schema.org/schema#", | ||
title: "Carousel Hero Content Test Element", | ||
description: "A carousel hero content component's schema definition.", | ||
id: "carousel-hero-content", | ||
type: "object", | ||
properties: { | ||
heading: { | ||
title: "Heading", | ||
type: "object", | ||
properties: { | ||
children: { | ||
title: "Heading text", | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
paragraph: { | ||
title: "Paragraph", | ||
type: "object", | ||
properties: { | ||
children: { | ||
title: "Hero paragraph test text", | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
callToAction: { | ||
title: "Call to action", | ||
type: "object", | ||
properties: { | ||
children: { | ||
title: "Call to action", | ||
type: "string", | ||
}, | ||
href: { | ||
title: "HTML href attribute", | ||
type: "string", | ||
}, | ||
appearance: { | ||
title: "Appearance", | ||
type: "string", | ||
default: "primary", | ||
enum: ["primary", "justified", "lightweight"], | ||
}, | ||
}, | ||
}, | ||
image: { | ||
title: "Image", | ||
type: "object", | ||
properties: { | ||
src: { | ||
title: "HTML src attribute", | ||
type: "string", | ||
}, | ||
alt: { | ||
title: "HTML alt attribute", | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
.../fast-components-react-msft/app/components/carousel-light-image-content-child-options.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
packages/fast-components-react-msft/app/components/carousel-light-image-content.schema.json
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
packages/fast-components-react-msft/app/components/carousel-light-image-content.schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export default { | ||
$schema: "http://json-schema.org/schema#", | ||
title: "Carousel Light Image Content Test Element", | ||
description: "A carousel light image content component's schema definition.", | ||
id: "carousel-light-image-content", | ||
type: "object", | ||
properties: { | ||
image: { | ||
title: "Image", | ||
type: "object", | ||
properties: { | ||
src: { | ||
title: "HTML src attribute", | ||
type: "string", | ||
}, | ||
alt: { | ||
title: "HTML alt attribute", | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
packages/fast-components-react-msft/app/components/pivot-item-content-child-options.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
packages/fast-components-react-msft/app/components/pivot-item-content.schema.json
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
packages/fast-components-react-msft/app/components/pivot-item-content.schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default { | ||
$schema: "http://json-schema.org/schema#", | ||
title: "Pivot Item Content", | ||
description: "A pivot item content component's schema definition.", | ||
id: "pivot-item-content", | ||
type: "object", | ||
properties: {}, | ||
reactProperties: { | ||
children: { | ||
title: "Children", | ||
type: "children", | ||
defaults: ["text"], | ||
}, | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
packages/fast-components-react-msft/app/components/pivot-item-tab-child-options.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.