Skip to content

Conversation

@oliverigor
Copy link
Contributor

@oliverigor oliverigor commented Apr 23, 2025

I'll port the changes from here once we're ready and bring only dts files over here

vividviolet and others added 30 commits November 29, 2024 17:00
Add version string into registration call
Add remote-dom components for Admin
Remove the generator.js script since it's been moved to a different repo
…tions

Add definitions for TextArea and TextField
Add Box and update to use `s-` prefix
[Admin UI Components] Add Clickable and Checkbox component
}
export interface AbbreviationElement extends AbbreviationProps, Omit<HTMLElement, 'id' | 'title'> {
}
declare global {
Copy link
Member

Choose a reason for hiding this comment

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

Just noticed that you're missing the preact jsx types. Also, we discovered that preact overwrites conflicting handler props that you have to omit (see related PR for Admin). Doing something like this should work

declare module 'preact' {
  namespace createElement.JSX {
    interface IntrinsicElements {
      's-abbreviation': Omit<
        HTMLAttributes<HTMLElement>,
        Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
      > &
      AbbreviationProps;
    }
  }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh... noice, will add this in the checkout-web side then, thanks trish :D

Copy link
Contributor

Choose a reason for hiding this comment

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

I tophatted this, but the component types still aren't working and that is because of what Trish mentioned above ☝️ relating to the preact jsx types.

Screenshot 2025-04-24 at 10 21 44 AM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I'll work on he checkout-web side to make the additions.

How about the JS ones ?? does that work fine ? or same ?

@oliverigor oliverigor changed the title [Ui components]: Script and initial pass on docs [Ui components]: Component dts files Apr 24, 2025
@jamesvidler
Copy link
Contributor

/snapit

@shopify-github-actions-access
Copy link
Contributor

🫰✨ Thanks @jamesvidler! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/ui-extensions": "0.0.0-snapshot-20250424141200"

@oliverigor
Copy link
Contributor Author

/snapit

@shopify-github-actions-access
Copy link
Contributor

🫰✨ Thanks @oliverigor! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/ui-extensions": "0.0.0-snapshot-20250424201746"

@oliverigor oliverigor force-pushed the rusty/inlining-component-types branch from b64061b to d8880e2 Compare April 25, 2025 16:23
@oliverigor oliverigor force-pushed the rusty/inlining-component-types branch from d8880e2 to cce89e8 Compare April 25, 2025 16:26
@jamesvidler jamesvidler deleted the branch 2025-07-rc April 28, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.