Skip to content

Commit

Permalink
Update generator to work on a single dts and expression types
Browse files Browse the repository at this point in the history
Handle simple Requires

Find component classes in definition files

Fix events definition
  • Loading branch information
vividviolet committed Jan 15, 2025
1 parent 3f9bc17 commit f7cc208
Show file tree
Hide file tree
Showing 3 changed files with 439 additions and 147 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build": "loom build",
"build-consumer": "loom build && ./scripts/build-consumer.sh",
"build-consumer-spin": "loom build && ./scripts/build-consumer-spin.sh",
"generate-definition": "node ./scripts/generator.js",
"generate-definitions": "node ./scripts/generator.js",
"generate-definitions:admin": "yarn generate-definitions packages/ui-extensions/src/surfaces/admin/components.d.ts ../web/areas/clients/admin-web/app/shared/domains/extensibility/ui-extensions/components ../web/areas/clients/admin-web/app/shared/domains/extensibility/ui-extensions/definitionTemplate.txt",
"clean": "git clean -xdf ./packages; rm -rf ./build",
"predeploy": "yarn build",
"deploy": "changeset publish",
Expand Down
7 changes: 5 additions & 2 deletions packages/ui-extensions/src/surfaces/admin/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface BackgroundProps {
/**
* Adjust the background of the element.
*
* @default: 'transparent'
* @default 'transparent'
*/
background?: BackgroundColorKeyword;
}
Expand Down Expand Up @@ -1779,7 +1779,7 @@ interface SectionProps$1 extends GlobalProps {
* to the edge of the Section. For example, a full-width image. In this case, rely on `Box` with a padding of 'base'
* to bring back the desired padding for the rest of the content.
*
* @default: "auto"
* @default "auto"
*/
padding?: 'auto' | 'none';
}
Expand Down Expand Up @@ -2794,6 +2794,9 @@ export type ButtonBaseProps = Required<
| 'target'
| 'href'
| 'download'
| 'onBlur'
| 'onClick'
| 'onFocus'
>
>;
export interface ButtonProps extends ButtonBaseProps {
Expand Down
Loading

0 comments on commit f7cc208

Please sign in to comment.