-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP internalize @microsoft/fast-components
- Loading branch information
1 parent
7d078b2
commit b67e872
Showing
224 changed files
with
14,893 additions
and
7,708 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 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Component schema | ||
|
||
The `component.schema.json` is used to test against JSON schemas for each component. It should mirror the definition created by [Open UI](https://github.com/WICG/open-ui/blob/master/research/src/schemas/component.schema.json5). | ||
s |
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,100 @@ | ||
{ | ||
"$id": "component.schema.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Component", | ||
"description": "A UI Component definition.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"description": "The name of the component as defined in the design system.", | ||
"type": "string" | ||
}, | ||
"openUIName": { | ||
"description": "The name of the component as defined in OpenUI.", | ||
"type": "string" | ||
}, | ||
"url": { | ||
"description": "The url to the component doc page.", | ||
"type": "string" | ||
}, | ||
"definition": { | ||
"type": "string", | ||
"description": "This should be the formal definition of the component. It usually describes it's intended purpose." | ||
}, | ||
"anatomy": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"description": "Each named part that makes up the whole of the component.", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
] | ||
}, | ||
"uniqueItems": true | ||
}, | ||
"implementations": { | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "web-component" | ||
}, | ||
"implementation": { | ||
"$ref": "vscode-html-customdata" | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"implementation" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"concepts": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"category": { | ||
"type": "string" | ||
}, | ||
"openUIName": { | ||
"type": "string" | ||
}, | ||
"image": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"image" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"url" | ||
] | ||
} |
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,6 @@ | ||
function importAll(r: __WebpackModuleApi.RequireContext): void { | ||
r.keys().forEach(r); | ||
} | ||
|
||
// Explicitly add to browser test | ||
importAll(require.context("../", true, /\.spec\.js$/)); |
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,12 @@ | ||
/* eslint-disable */ | ||
if (window.document && !window.document.createRange) { | ||
window.document.createRange = () => ({ | ||
setStart: () => {}, | ||
setEnd: () => {}, | ||
// @ts-ignore | ||
commonAncestorContainer: { | ||
nodeName: "BODY", | ||
ownerDocument: document, | ||
}, | ||
}); | ||
} |
Oops, something went wrong.