-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
318b8ed
commit fe20446
Showing
16 changed files
with
150 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@shopify/ui-extensions-react': minor | ||
'@shopify/ui-extensions': minor | ||
--- | ||
|
||
wip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
packages/ui-extensions-react/src/surfaces/checkout/components/Button/Button.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import {Button as BaseButton} from '@shopify/ui-extensions/checkout'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import type {ReactPropsFromRemoteComponentType} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '@remote-dom/react'; | ||
|
||
// @ts-ignore | ||
export type ButtonProps = ReactPropsFromRemoteComponentType<typeof BaseButton>; | ||
|
||
export const Button = createRemoteReactComponent(BaseButton, { | ||
fragmentProps: ['overlay'], | ||
export const Button = createRemoteComponent('ui-button', BaseButton, { | ||
eventProps: { | ||
onPress: {event: 'press'}, | ||
}, | ||
slots: ['overlay'], | ||
}); |
6 changes: 2 additions & 4 deletions
6
packages/ui-extensions-react/src/surfaces/checkout/components/Link/Link.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import {Link as BaseLink} from '@shopify/ui-extensions/checkout'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import type {ReactPropsFromRemoteComponentType} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '@remote-dom/react'; | ||
|
||
export type LinkProps = ReactPropsFromRemoteComponentType<typeof BaseLink>; | ||
|
||
export const Link = createRemoteReactComponent(BaseLink, { | ||
fragmentProps: ['overlay'], | ||
}); | ||
export const Link = createRemoteComponent('ui-link', BaseLink); |
7 changes: 3 additions & 4 deletions
7
packages/ui-extensions-react/src/surfaces/checkout/components/Modal/Modal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import {Modal as BaseModal} from '@shopify/ui-extensions/checkout'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import type {ReactPropsFromRemoteComponentType} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '@remote-dom/react'; | ||
|
||
// @ts-ignore | ||
export type ModalProps = ReactPropsFromRemoteComponentType<typeof BaseModal>; | ||
|
||
export const Modal = createRemoteReactComponent(BaseModal, { | ||
fragmentProps: ['primaryAction', 'secondaryActions'], | ||
}); | ||
export const Modal = createRemoteComponent('ui-modal', BaseModal); |
5 changes: 3 additions & 2 deletions
5
packages/ui-extensions-react/src/surfaces/checkout/components/View/View.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import {View as BaseView} from '@shopify/ui-extensions/checkout'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
//@ts-ignore | ||
import {createRemoteComponent} from '@remote-dom/react'; | ||
import type {ReactPropsFromRemoteComponentType} from '@remote-ui/react'; | ||
|
||
export type ViewProps = ReactPropsFromRemoteComponentType<typeof BaseView>; | ||
|
||
export const View = createRemoteReactComponent(BaseView); | ||
export const View = createRemoteComponent('ui-view', BaseView); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.