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

hds-clipboard modifier: convert to TypeScript (HDS-3344) #2120

Merged
merged 13 commits into from
May 23, 2024

Conversation

KristinLBradley
Copy link
Contributor

@KristinLBradley KristinLBradley commented May 20, 2024

📌 Summary

If merged, this PR converts the hds-clipboard modifier to TypeScript.

The clipboard modifier is used by:

🔗 External links

Jira ticket: HDS-3344


👀 Component checklist

  • [ ] Percy was checked for any visual regression
  • A changelog entry was added via Changesets if needed (see templates here)

💬 Please consider using conventional comments when reviewing this PR.

Copy link

vercel bot commented May 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
hds-showcase ✅ Ready (Inspect) Visit Preview May 22, 2024 11:26am
hds-website ✅ Ready (Inspect) Visit Preview May 22, 2024 11:26am

Copy link
Contributor

@didoo didoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KristinLBradley I've left a few comments, but before approving I would like @alex-ju to do a check on the types I suggested to use yesterday, it may have not been the right suggestion (or at least, there may be further tweakings to do)

packages/components/src/modifiers/hds-clipboard.ts Outdated Show resolved Hide resolved
packages/components/src/modifiers/hds-clipboard.ts Outdated Show resolved Hide resolved
packages/components/src/template-registry.ts Outdated Show resolved Hide resolved
packages/components/src/modifiers/hds-clipboard.ts Outdated Show resolved Hide resolved
packages/components/src/modifiers/hds-clipboard.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@didoo didoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@didoo
Copy link
Contributor

didoo commented May 22, 2024

@KristinLBradley we did a session this morning with @alex-ju in which we reviewed multiple PRs related to TS and yours too; I hope you won't mind us pushing the commit e47d523 so we could get it approved and merged today

Now that we test the target is an instance of HTMLElement, there's no need to check the node type
@KristinLBradley KristinLBradley merged commit 98fd5c5 into main May 23, 2024
16 checks passed
@KristinLBradley KristinLBradley deleted the hds-3344-clipboard-ts-conversion branch May 23, 2024 15:35
@hashibot-hds hashibot-hds mentioned this pull request May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants