Skip to content

Commit

Permalink
fix(components): generateDSRComponents to support ControllerHost and …
Browse files Browse the repository at this point in the history
…| bh | #3016
  • Loading branch information
denyo committed Feb 13, 2024
1 parent 9131a31 commit 6f9be12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/scripts/generateDSRComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ import { get${componentName}Css } from '${stylesBundleImportPath}';
.replace(/(const (?:iconProps|btnProps|linkProps|buttonProps)) =/, '$1: any =') // workaround typing issue
.replace(/(any)Deprecated/g, '$1') // workaround typings of deprecation maps
.replace(/Exclude<any, any>/g, 'any') // workaround typings of deprecation maps
.replace(/ onSlotchange={this\.props\..+}/, ''); // doesn't exist in React JSX and makes no sense
.replace(/ onSlotchange={this\.props\..+}/, '') // doesn't exist in React JSX and makes no sense
.replace(/\s+private controllerHost =[\S\s]+controllerHost[\S\s]+?;/, '') // components with loading prop and LoadingController
.replace(/(this\.props)\.loadingCtrl\.initialLoading/, '$1.loading'); // components with loading prop and LoadingController

// component based tweaks
if (tagName === 'p-carousel') {
Expand Down

0 comments on commit 6f9be12

Please sign in to comment.