-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove remote-ui references from Admin surface
Add version string into registration call
- Loading branch information
1 parent
fd4dd2b
commit 16c4403
Showing
90 changed files
with
364 additions
and
604 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 | ||
--- | ||
|
||
Support remote-dom for Admin surface |
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
14 changes: 3 additions & 11 deletions
14
packages/ui-extensions-react/src/surfaces/admin/components/AdminAction/AdminAction.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,13 +1,5 @@ | ||
import {AdminAction as BaseAdminAction} from '@shopify/ui-extensions/admin'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const AdminAction = createRemoteReactComponent(BaseAdminAction, { | ||
fragmentProps: ['primaryAction', 'secondaryAction'], | ||
}); | ||
export type {AdminActionProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export type AdminActionProps = ReactPropsFromRemoteComponentType< | ||
typeof BaseAdminAction | ||
>; | ||
export const AdminAction = createRemoteComponent('ui-admin-action'); |
12 changes: 3 additions & 9 deletions
12
packages/ui-extensions-react/src/surfaces/admin/components/AdminBlock/AdminBlock.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,11 +1,5 @@ | ||
import {AdminBlock as BaseAdminBlock} from '@shopify/ui-extensions/admin'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const AdminBlock = createRemoteReactComponent(BaseAdminBlock); | ||
export type {AdminBlockProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export type AdminBlockProps = ReactPropsFromRemoteComponentType< | ||
typeof BaseAdminBlock | ||
>; | ||
export const AdminBlock = createRemoteComponent('ui-admin-block'); |
13 changes: 3 additions & 10 deletions
13
...es/ui-extensions-react/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.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,12 +1,5 @@ | ||
import {AdminPrintAction as BaseAdminPrintAction} from '@shopify/ui-extensions/admin'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const AdminPrintAction = | ||
createRemoteReactComponent(BaseAdminPrintAction); | ||
export type {AdminPrintActionProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export type AdminPrintActionProps = ReactPropsFromRemoteComponentType< | ||
typeof BaseAdminPrintAction | ||
>; | ||
export const AdminPrintAction = createRemoteComponent('ui-admin-print-action'); |
7 changes: 3 additions & 4 deletions
7
packages/ui-extensions-react/src/surfaces/admin/components/Badge/Badge.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,6 +1,5 @@ | ||
import {Badge as BaseBadge} from '@shopify/ui-extensions/admin'; | ||
import type {BadgeProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Badge = createRemoteReactComponent<'Badge', BadgeProps>(BaseBadge); | ||
export type {BadgeProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Badge = createRemoteComponent('ui-badge'); |
12 changes: 3 additions & 9 deletions
12
packages/ui-extensions-react/src/surfaces/admin/components/Banner/Banner.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,11 +1,5 @@ | ||
import {Banner as BaseBanner} from '@shopify/ui-extensions/admin'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Banner = createRemoteReactComponent(BaseBanner, { | ||
fragmentProps: ['primaryAction', 'secondaryAction'], | ||
}); | ||
export type {BannerProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export type BannerProps = ReactPropsFromRemoteComponentType<typeof BaseBanner>; | ||
export const Banner = createRemoteComponent('ui-banner'); |
10 changes: 3 additions & 7 deletions
10
packages/ui-extensions-react/src/surfaces/admin/components/BlockStack/BlockStack.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,5 @@ | ||
import {BlockStack as BaseBlockStack} from '@shopify/ui-extensions/admin'; | ||
import type {BlockStackProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const BlockStack = createRemoteReactComponent< | ||
'BlockStack', | ||
BlockStackProps | ||
>(BaseBlockStack); | ||
export type {BlockStackProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const BlockStack = createRemoteComponent('ui-block-stack'); |
7 changes: 3 additions & 4 deletions
7
packages/ui-extensions-react/src/surfaces/admin/components/Box/Box.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,6 +1,5 @@ | ||
import {Box as BaseBox} from '@shopify/ui-extensions/admin'; | ||
import type {BoxProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Box = createRemoteReactComponent<'Box', BoxProps>(BaseBox); | ||
export type {BoxProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Box = createRemoteComponent('ui-box'); |
9 changes: 3 additions & 6 deletions
9
packages/ui-extensions-react/src/surfaces/admin/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,8 +1,5 @@ | ||
import {Button as BaseButton} from '@shopify/ui-extensions/admin'; | ||
import type {ButtonProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Button = createRemoteReactComponent<'Button', ButtonProps>( | ||
BaseButton, | ||
); | ||
export type {ButtonProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Button = createRemoteComponent('ui-button'); |
9 changes: 3 additions & 6 deletions
9
packages/ui-extensions-react/src/surfaces/admin/components/Checkbox/Checkbox.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,8 +1,5 @@ | ||
import {Checkbox as BaseCheckbox} from '@shopify/ui-extensions/admin'; | ||
import type {CheckboxProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Checkbox = createRemoteReactComponent<'Checkbox', CheckboxProps>( | ||
BaseCheckbox, | ||
); | ||
export type {CheckboxProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Checkbox = createRemoteComponent('ui-checkbox'); |
10 changes: 3 additions & 7 deletions
10
packages/ui-extensions-react/src/surfaces/admin/components/ChoiceList/ChoiceList.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,5 @@ | ||
import {ChoiceList as BaseChoiceList} from '@shopify/ui-extensions/admin'; | ||
import type {ChoiceListProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const ChoiceList = createRemoteReactComponent< | ||
'ChoiceList', | ||
ChoiceListProps | ||
>(BaseChoiceList); | ||
export type {ChoiceListProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const ChoiceList = createRemoteComponent('ui-choice-list'); |
10 changes: 3 additions & 7 deletions
10
packages/ui-extensions-react/src/surfaces/admin/components/ColorPicker/ColorPicker.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,5 @@ | ||
import {ColorPicker as BaseColorPicker} from '@shopify/ui-extensions/admin'; | ||
import type {ColorPickerProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const ColorPicker = createRemoteReactComponent< | ||
'ColorPicker', | ||
ColorPickerProps | ||
>(BaseColorPicker); | ||
export type {ColorPickerProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const ColorPicker = createRemoteComponent('ui-color-picker'); |
10 changes: 5 additions & 5 deletions
10
...ns-react/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.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,7 @@ | ||
import {CustomerSegmentTemplate as BaseCustomerSegmentTemplate} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const CustomerSegmentTemplate = createRemoteReactComponent( | ||
BaseCustomerSegmentTemplate, | ||
); | ||
export type {CustomerSegmentTemplateProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const CustomerSegmentTemplate = createRemoteComponent( | ||
'ui-customer-segment-template', | ||
); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/DateField/DateField.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,5 +1,5 @@ | ||
import {DateField as BaseDateField} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const DateField = createRemoteReactComponent(BaseDateField); | ||
export type {DateFieldProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const DateField = createRemoteComponent('ui-date-field'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/DatePicker/DatePicker.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,5 +1,5 @@ | ||
import {DatePicker as BaseDatePicker} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const DatePicker = createRemoteReactComponent(BaseDatePicker); | ||
export type {DatePickerProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const DatePicker = createRemoteComponent('ui-date-picker'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/Divider/Divider.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,5 +1,5 @@ | ||
import {Divider as BaseDivider} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Divider = createRemoteReactComponent(BaseDivider); | ||
export type {DividerProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Divider = createRemoteComponent('ui-divider'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/EmailField/EmailField.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,5 +1,5 @@ | ||
import {EmailField as BaseEmailField} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const EmailField = createRemoteReactComponent(BaseEmailField); | ||
export type {EmailFieldProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const EmailField = createRemoteComponent('ui-email-field'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/Form/Form.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,5 +1,5 @@ | ||
import {Form as BaseForm} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Form = createRemoteReactComponent(BaseForm); | ||
export type {FormProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Form = createRemoteComponent('ui-form'); |
7 changes: 3 additions & 4 deletions
7
...es/ui-extensions-react/src/surfaces/admin/components/FunctionSettings/FunctionSettings.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 {FunctionSettings as BaseFunctionSettings} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const FunctionSettings = | ||
createRemoteReactComponent(BaseFunctionSettings); | ||
export type { | ||
FunctionSettingsProps, | ||
FunctionSettingsError, | ||
} from '@shopify/ui-extensions/admin'; | ||
|
||
export const FunctionSettings = createRemoteComponent('ui-functipo'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/Heading/Heading.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,5 +1,5 @@ | ||
import {Heading as BaseHeading} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Heading = createRemoteReactComponent(BaseHeading); | ||
export type {HeadingProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Heading = createRemoteComponent('ui-heading'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/HeadingGroup/HeadingGroup.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,5 +1,5 @@ | ||
import {HeadingGroup as BaseHeadingGroup} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const HeadingGroup = createRemoteReactComponent(BaseHeadingGroup); | ||
export type {HeadingGroupProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const HeadingGroup = createRemoteComponent('ui-heading-group'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/Icon/Icon.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,5 +1,5 @@ | ||
import {Icon as BaseIcon} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Icon = createRemoteReactComponent(BaseIcon); | ||
export type {IconProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Icon = createRemoteComponent('ui-icon'); |
7 changes: 3 additions & 4 deletions
7
packages/ui-extensions-react/src/surfaces/admin/components/Image/Image.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,6 +1,5 @@ | ||
import {Image as BaseImage} from '@shopify/ui-extensions/admin'; | ||
import type {ImageProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Image = createRemoteReactComponent<'Image', ImageProps>(BaseImage); | ||
export type {ImageProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Image = createRemoteComponent('ui-image'); |
10 changes: 3 additions & 7 deletions
10
packages/ui-extensions-react/src/surfaces/admin/components/InlineStack/InlineStack.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,5 @@ | ||
import {InlineStack as BaseInlineStack} from '@shopify/ui-extensions/admin'; | ||
import type {InlineStackProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const InlineStack = createRemoteReactComponent< | ||
'InlineStack', | ||
InlineStackProps | ||
>(BaseInlineStack); | ||
export type {InlineStackProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const InlineStack = createRemoteComponent('ui-inline-stack'); |
10 changes: 5 additions & 5 deletions
10
...faces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.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,7 @@ | ||
import {InternalCustomerSegmentTemplate as BaseInternalCustomerSegmentTemplate} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const InternalCustomerSegmentTemplate = createRemoteReactComponent( | ||
BaseInternalCustomerSegmentTemplate, | ||
); | ||
export type {InternalCustomerSegmentTemplateProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const InternalCustomerSegmentTemplate = createRemoteComponent( | ||
'ui-internal-customer-segment-template', | ||
); |
10 changes: 5 additions & 5 deletions
10
...tensions-react/src/surfaces/admin/components/InternalLocationList/InternalLocationList.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,7 @@ | ||
import {InternalLocationList as BaseInternalLocationList} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const InternalLocationList = createRemoteReactComponent( | ||
BaseInternalLocationList, | ||
); | ||
export type {InternalLocationListProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const InternalLocationList = createRemoteComponent( | ||
'ui-internal-location-list', | ||
); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/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,5 +1,5 @@ | ||
import {Link as BaseLink} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Link = createRemoteReactComponent(BaseLink); | ||
export type {LinkProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Link = createRemoteComponent('ui-link'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/MoneyField/MoneyField.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,5 +1,5 @@ | ||
import {MoneyField as BaseMoneyField} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const MoneyField = createRemoteReactComponent(BaseMoneyField); | ||
export type {MoneyFieldProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const MoneyField = createRemoteComponent('ui-money-field'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/NumberField/NumberField.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,5 +1,5 @@ | ||
import {NumberField as BaseNumberField} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const NumberField = createRemoteReactComponent(BaseNumberField); | ||
export type {NumberFieldProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const NumberField = createRemoteComponent('ui-number-field'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/Paragraph/Paragraph.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,5 +1,5 @@ | ||
import {Paragraph as BaseParagraph} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Paragraph = createRemoteReactComponent(BaseParagraph); | ||
export type {ParagraphProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Paragraph = createRemoteComponent('ui-paragraph'); |
6 changes: 3 additions & 3 deletions
6
packages/ui-extensions-react/src/surfaces/admin/components/PasswordField/PasswordField.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,5 +1,5 @@ | ||
import {PasswordField as BasePasswordField} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const PasswordField = createRemoteReactComponent(BasePasswordField); | ||
export type {PasswordFieldProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const PasswordField = createRemoteComponent('ui-password-field'); |
10 changes: 3 additions & 7 deletions
10
packages/ui-extensions-react/src/surfaces/admin/components/Pressable/Pressable.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,5 @@ | ||
import {Pressable as BasePressable} from '@shopify/ui-extensions/admin'; | ||
import type {PressableProps} from '@shopify/ui-extensions/admin'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '../util'; | ||
|
||
export const Pressable = createRemoteReactComponent< | ||
'Pressable', | ||
PressableProps | ||
>(BasePressable); | ||
export type {PressableProps} from '@shopify/ui-extensions/admin'; | ||
|
||
export const Pressable = createRemoteComponent('ui-pressable'); |
Oops, something went wrong.