-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add docs-extractor package for component documentation extraction #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MaxLee-dev
wants to merge
87
commits into
main
Choose a base branch
from
docs-extractor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6,519
−285
Open
Changes from 22 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
9671187
docs-extractor first commit
MaxLee-dev a608a38
feat: Add SprinklesTypeIntrospector for dynamic CSS value extraction
MaxLee-dev c3cbbf3
feat: Enhance component data fetching and JSON rendering for compound…
MaxLee-dev 83d944d
Merge branch 'main' of https://github.com/goorm-dev/vapor-ui into doc…
MaxLee-dev 2a00a93
feat: add docs-extractor module for vanilla-extract recipes
MaxLee-dev d37480b
feat: add Avatar component JSON definitions and update props table to…
MaxLee-dev 67dc61b
feat: update Avatar component JSON definitions and enhance props extr…
MaxLee-dev b39bf6a
feat: enhance Avatar component documentation and extraction logic
MaxLee-dev 51f8d4d
docs: Improve avatar component description
MaxLee-dev e90ee9d
refactor: remove unused source detection and classification modules
MaxLee-dev 90b8d2e
style: add background color to table header in ComponentPropsTable
MaxLee-dev 1117efd
feat: add Avatar component JSON definitions for FallbackPrimitive, Im…
MaxLee-dev 847edb4
feat: update Avatar component JSON structure and enhance documentatio…
MaxLee-dev abfbeef
feat: enhance avatar component variants with required flag and descri…
MaxLee-dev 7f3eeda
feat: add required flag and description to variant definition in Comp…
MaxLee-dev 5348507
feat: add eslint as a dependency and update json-renderer for improve…
MaxLee-dev 6d9ffaa
feat: refactor type handling in PropsFilter and TypeResolver for impr…
MaxLee-dev 56d8e14
feat: Add VariantsExtractor for extracting vanilla-extract variants f…
MaxLee-dev 00023d0
feat: Remove descriptions from avatar component JSON files for clarity
MaxLee-dev 21bf601
feat: cli code refactored
MaxLee-dev 0e772ec
feat: update comments for clarity in CLI and PropsExtractor
MaxLee-dev 0eed78c
feat: update loadFiles documentation to clarify support for glob patt…
MaxLee-dev 1f209ac
Merge branch 'main' of https://github.com/goorm-dev/vapor-ui into doc…
MaxLee-dev e1f1631
feat: add TypeScript API extractor tool
MaxLee-dev a9a4ec4
feat: implement component file scanning and update TypeScript API ext…
MaxLee-dev 9f688c4
feat: update TypeScript API extractor with new dependencies and CLI i…
MaxLee-dev 2a271c6
feat: add getExportedNodes function and update tests for TypeScript A…
MaxLee-dev 6f58d1c
feat: enhance TypeScript API extractor with new CLI options and file …
MaxLee-dev 58eb5a7
feat: add getNamespaces function and update CLI to display namespaces
MaxLee-dev 26d742d
feat: add component selection prompts and file lookup by component na…
MaxLee-dev 04a62d5
feat: implement props extraction functionality and update CLI commands
MaxLee-dev d60fb31
feat: enhance props extraction with new filtering options and resolve…
MaxLee-dev 6c3aec7
feat: add type cleaning functionality to simplify state callback types
MaxLee-dev c6ea210
feat: add type resolver module and integrate with props extraction
MaxLee-dev 14cccc5
feat: simplify render prop types in cleanType function
MaxLee-dev 305400b
feat: add output directory option and improve props extraction structure
MaxLee-dev 570b18d
feat: add default variants and HTML attributes extraction, enhance pr…
MaxLee-dev 016e3bb
feat: Refactor component documentation extraction and improve TypeScr…
MaxLee-dev 88437bb
feat: enhance props extraction with default values and improve type c…
MaxLee-dev ee3fc00
feat: update Avatar documentation for clarity and consistency
MaxLee-dev 1520c1f
refactor: remove unused type resolver, variants extractor, and relate…
MaxLee-dev 9fe4457
fix: reorder and restore TypeScript API extractor dependencies and sc…
MaxLee-dev c42b5b1
refactor: remove unused Avatar component references and related utili…
MaxLee-dev ad2658a
refactor: remove tools/docs-extractor dependencies and devDependencie…
MaxLee-dev efaa831
Merge branch 'main' of https://github.com/goorm-dev/vapor-ui into doc…
MaxLee-dev 1b29276
fix: add eslint-config dependency and update tsconfig for JSX support
MaxLee-dev cb68243
refactor: update TypeScript API extractor structure and CLI options
MaxLee-dev c8f9466
refactor: rename ignore options to exclude and update related logic
MaxLee-dev e3ae457
refactor: remove output option and related logic from CLI options
MaxLee-dev 50e2def
refactor: simplify extract script by removing tsconfig option
MaxLee-dev 664993b
feat: base-ui type-resolver
MaxLee-dev 0c906e8
refactor: enhance type handling in props extraction and simplify node…
MaxLee-dev 01d3071
refactor: improve type handling and enhance default variants extracti…
MaxLee-dev b258a43
feat: implement defaultVariants extraction for compound components an…
MaxLee-dev 5b9b30d
feat: extract component description from JSDoc and update tests for s…
MaxLee-dev 8a77173
feat: add shouldIncludeSymbol function to streamline symbol inclusion…
MaxLee-dev ef7451b
feat: add declaration source filtering module and related tests
MaxLee-dev 036080f
feat: preserve React type aliases in props extraction and add related…
MaxLee-dev b86a55d
feat: update formatVaporTypePath to improve namespace path conversion…
MaxLee-dev 91c9dcf
feat: refactor props extraction functions for improved clarity and ad…
MaxLee-dev 887e742
feat: enhance type resolution and simplify import paths in type handling
MaxLee-dev 7d3f2ae
feat: update package.json dependencies and refactor test imports for …
MaxLee-dev 2a46094
feat: add Tabs components with context support for improved usability
MaxLee-dev 38aa34a
feat: add new components and styles for Tabs and Button with TypeScri…
MaxLee-dev d96ca4e
feat: update props extraction logic to categorize and sort props by t…
MaxLee-dev 94a4b5e
Merge branch 'main' of https://github.com/goorm-dev/vapor-ui into doc…
MaxLee-dev e588742
feat: enhance configuration system and add i18n support
MaxLee-dev f73e60c
Merge branch 'main' of https://github.com/goorm-dev/vapor-ui into doc…
MaxLee-dev 5e04d0b
refactor: rename docs-extractor to ts-api-extractor in package.json a…
MaxLee-dev 87b2694
refactor: reorganize code structure and improve formatting in various…
MaxLee-dev 5d11cb7
refactor: rename docs-extractor to ts-api-extractor and update relate…
MaxLee-dev f172223
feat: enhance sprinkles metadata generation with display type names
MaxLee-dev 87b86cc
feat: enhance props extraction with diagnostics and component hierarc…
MaxLee-dev 2131e80
feat: implement language configuration and improve error handling in …
MaxLee-dev ef3c228
fix: update language codes from 'kr' to 'ko' for consistency
MaxLee-dev 84eac6c
Add unit tests for core functionalities in docs-extractor
MaxLee-dev 89f6eb8
fix: standardize formatting in sprinkles metadata JSON
MaxLee-dev 7be6f6c
fix: clean up comments in vitest configuration for clarity
MaxLee-dev 6a982c8
fix: update comments for clarity and consistency in tsup configuration
MaxLee-dev 70b13f9
fix: update comments for clarity and consistency in props-extractor a…
MaxLee-dev 499319e
refactor: rename DefaultVariants to DefaultValues for consistency acr…
MaxLee-dev 19cb693
fix: update variable names for clarity in extractProps and extractDes…
MaxLee-dev 5779bee
feat: implement style import analysis and destructuring defaults extr…
MaxLee-dev faf8df7
feat: add prop classification and filtering modules
MaxLee-dev e3267dc
refactor: remove unused functions and types from props-extractor and …
MaxLee-dev 9fbda92
feat: Added AST-based base-ui type path extraction functionality and …
MaxLee-dev 71b06d2
feat: add verbose output option to CLI and enhance prop extraction lo…
MaxLee-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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: 23 additions & 0 deletions
23
apps/website/public/references/avatar/fallback-primitive.json
This file contains hidden or 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 @@ | ||
| { | ||
| "name": "FallbackPrimitive", | ||
| "displayName": "Avatar.FallbackPrimitive", | ||
| "description": "", | ||
| "props": [ | ||
| { | ||
| "name": "className", | ||
| "type": ["string", "((state: Avatar.FallbackPrimitive.State) => string)", "undefined"], | ||
| "required": false, | ||
| "description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state." | ||
| }, | ||
| { | ||
| "name": "render", | ||
| "type": [ | ||
| "((props: HTMLProps, state: Avatar.FallbackPrimitive.State) => ReactElement)", | ||
| "ReactElement", | ||
| "undefined" | ||
| ], | ||
| "required": false, | ||
| "description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render." | ||
| } | ||
| ] | ||
| } |
29 changes: 29 additions & 0 deletions
29
apps/website/public/references/avatar/image-primitive.json
This file contains hidden or 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,29 @@ | ||
| { | ||
| "name": "ImagePrimitive", | ||
| "displayName": "Avatar.ImagePrimitive", | ||
| "description": "", | ||
| "props": [ | ||
| { | ||
| "name": "className", | ||
| "type": ["string", "((state: Avatar.ImagePrimitive.State) => string)", "undefined"], | ||
| "required": false, | ||
| "description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state." | ||
| }, | ||
| { | ||
| "name": "render", | ||
| "type": [ | ||
| "((props: HTMLProps, state: Avatar.ImagePrimitive.State) => ReactElement)", | ||
| "ReactElement", | ||
| "undefined" | ||
| ], | ||
| "required": false, | ||
| "description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render." | ||
| }, | ||
| { | ||
| "name": "onLoadingStatusChange", | ||
| "type": ["((status: ImageLoadingStatus) => void)", "undefined"], | ||
| "required": false, | ||
| "description": "Callback fired when the loading status changes." | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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,57 @@ | ||
| { | ||
| "name": "Root", | ||
| "displayName": "Avatar.Root", | ||
| "description": "", | ||
| "props": [ | ||
| { | ||
| "name": "className", | ||
| "type": ["string", "((state: Avatar.Root.State) => string)", "undefined"], | ||
| "required": false, | ||
| "description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state." | ||
| }, | ||
| { | ||
| "name": "render", | ||
| "type": [ | ||
| "((props: HTMLProps, state: Avatar.Root.State) => ReactElement)", | ||
| "ReactElement", | ||
| "undefined" | ||
| ], | ||
| "required": false, | ||
| "description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render." | ||
| }, | ||
| { | ||
| "name": "src", | ||
| "type": ["string", "undefined"], | ||
| "required": false, | ||
| "description": "" | ||
| }, | ||
| { | ||
| "name": "alt", | ||
| "type": ["string"], | ||
| "required": true, | ||
| "description": "" | ||
| }, | ||
| { | ||
| "name": "delay", | ||
| "type": ["number", "undefined"], | ||
| "required": false, | ||
| "description": "" | ||
| } | ||
| ], | ||
| "variants": [ | ||
| { | ||
| "name": "size", | ||
| "type": ["sm", "md", "lg", "xl"], | ||
| "required": false, | ||
| "defaultValue": "md", | ||
| "description": "Sizes for the avatar component" | ||
| }, | ||
| { | ||
| "name": "shape", | ||
| "type": ["square", "circle"], | ||
| "required": false, | ||
| "defaultValue": "square", | ||
| "description": "Shapes for the avatar component" | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.