Skip to content

Commit

Permalink
Merge pull request #2502 from Shopify/remote-dom-admin
Browse files Browse the repository at this point in the history
Add remote-dom components for Admin
  • Loading branch information
vividviolet authored Dec 4, 2024
2 parents 16c4403 + b82774f commit 3f9bc17
Show file tree
Hide file tree
Showing 225 changed files with 7,966 additions and 5,708 deletions.
6 changes: 6 additions & 0 deletions .changeset/wet-laws-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/ui-extensions-react': patch
'@shopify/ui-extensions': patch
---

Add new remote-dom components for Admin
1 change: 0 additions & 1 deletion packages/ui-extensions-react/src/surfaces/admin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export {extend, extension} from '@shopify/ui-extensions/admin';

export * from './admin/components';
export * from './admin/hooks';
export {render, reactExtension} from './admin/render';
85 changes: 0 additions & 85 deletions packages/ui-extensions-react/src/surfaces/admin/components.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import {render, Badge} from '@shopify/ui-extensions-react/admin';
import {
reactExtension,
Badge,
} from '@shopify/ui-extensions-react/admin';

render('Playground', () => <App />);
reactExtension('Playground', () => <App />);

function App() {
return (
<Badge
tone="info"
>
Fulfilled
</Badge>
);
return <Badge tone="info">Fulfilled</Badge>;
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {render, Box} from '@shopify/ui-extensions-react/admin';
import {
reactExtension,
Box,
} from '@shopify/ui-extensions-react/admin';

render('Playground', () => <App />);
reactExtension('Playground', () => <App />);

function App() {
return (
<Box padding="base">
Box
</Box>
);
return <Box padding="base">Box</Box>;
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {render, Button} from '@shopify/ui-extensions-react/admin';

render('Playground', () => <App />);
import {
reactExtension,
Button,
} from '@shopify/ui-extensions-react/admin';

function App() {
return (
Expand All @@ -13,3 +14,8 @@ function App() {
</Button>
);
}

export default reactExtension(
'Playground',
() => <App />,
);

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {render, Checkbox} from '@shopify/ui-extensions-react/admin';
import {
reactExtension,
Checkbox,
} from '@shopify/ui-extensions-react/admin';

render('Playground', () => <App />);
reactExtension('Playground', () => <App />);

function App() {
return (
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3f9bc17

Please sign in to comment.