Skip to content
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

Register internal modifiers with Glint #215

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions web/app/modifiers/auto-height-textarea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ export default class AutoHeightTextareaModifier extends Modifier<AutoHeightTexta
element.style.height = element.scrollHeight + offset + "px";
}
}

declare module "@glint/environment-ember-loose/registry" {
export default interface Registry {
"auto-height-textarea": typeof AutoHeightTextareaModifier;
}
}
6 changes: 6 additions & 0 deletions web/app/modifiers/dismissible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,9 @@ export default class DismissibleModifier extends Modifier<DismissibleModifierSig
document.addEventListener("keydown", this.maybeDismiss);
}
}

declare module "@glint/environment-ember-loose/registry" {
export default interface Registry {
dismissible: typeof DismissibleModifier;
}
}
6 changes: 6 additions & 0 deletions web/app/modifiers/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,9 @@ export default class TooltipModifier extends Modifier<TooltipModifierSignature>
this._reference.addEventListener("mouseleave", this.maybeHideContent);
}
}

declare module "@glint/environment-ember-loose/registry" {
export default interface Registry {
tooltip: typeof TooltipModifier;
}
}