mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
Here added lists of attributes from html and aria specifications for future Element component. Html provides an easy to navigate table with all types with relations to specific tags and descriptions. Aria list with types is extracted from aria-query library. Though descriptions are parsed from specification. In the future we will use more aria-query data to navigate specific roles. All attributes types are tested with react types You can see generated data in - packages/html-data/src/__generated__/attributes.ts - packages/html-data/src/__generated__/aria.ts Succeeds https://github.com/webstudio-is/webstudio/pull/2341
29 lines
941 B
JSON
29 lines
941 B
JSON
{
|
|
"name": "@webstudio-is/html-data",
|
|
"version": "0.0.0",
|
|
"description": "HTML Data",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc",
|
|
"build:elements": "tsx --conditions=webstudio ./bin/elements.ts && prettier --write ./src/__generated__",
|
|
"build:attributes": "tsx --conditions=webstudio ./bin/attributes.ts && prettier --write ./src/__generated__",
|
|
"build:aria": "tsx --conditions=webstudio ./bin/aria.ts && prettier --write ./src/__generated__"
|
|
},
|
|
"devDependencies": {
|
|
"@types/aria-query": "^5.0.4",
|
|
"@webstudio-is/react-sdk": "workspace:*",
|
|
"@webstudio-is/sdk": "workspace:*",
|
|
"@webstudio-is/tsconfig": "workspace:*",
|
|
"aria-query": "^5.3.2",
|
|
"parse5": "7.2.1"
|
|
},
|
|
"exports": {
|
|
"webstudio": "./src/index.ts"
|
|
},
|
|
"license": "AGPL-3.0-or-later",
|
|
"private": true,
|
|
"sideEffects": false
|
|
}
|