Skip to content

Commit

Permalink
Remove references to @Shopify/checkout-ui-extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Jan 5, 2023
1 parent 2d61a0b commit 92976cc
Show file tree
Hide file tree
Showing 39 changed files with 40 additions and 44 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ This repo contains the packages that make up the UI extensibility framework for

## I just want to _build_ a UI Extension, not learn about them!

If you’re ready to start building, you’ll want to refer to the documentation covering the components and APIs available to you. Where you’ll find that depends on what surface area of Shopify you are building an extension for:

- Building an extension for the post-purchase page of the Shopify Checkout? You should read the documentation for [`@shopify/post-purchase-ui-extensions`](./packages/post-purchase-ui-extensions) (and [`@shopify/post-purchase-ui-extensions-react`](./packages/post-purchase-ui-extensions-react), if you use React)
- Building an extension for other parts of the Shopify Checkout? You should read the documentation for [`@shopify/checkout-ui-extensions`](./packages/checkout-ui-extensions) (and [`@shopify/checkout-ui-extensions-react`](./packages/checkout-ui-extensions-react), if you use React)
- Building an extension for the Shopify Admin? You should read the documentation for [`@shopify/admin-ui-extensions`](./packages/admin-ui-extensions) (and [`@shopify/admin-ui-extensions-react`](./packages/admin-ui-extensions-react), if you use React)
Get started by adding your new UI extension APIs to the [`@shopify/ui-extensions` package](./packages/ui-extensions/). We also provide [a React library](./packages/ui-extensions-react/) you may need to update as well.

If you want to learn a little more about the patterns found throughout these libraries, and the way that they are rendered into the applications they extend, read on!

Expand Down Expand Up @@ -72,7 +68,7 @@ shopify.extend('Checkout::Dynamic::Render', (root) => {
// Or, if you are using our NPM libraries, we offer a bit of sugar over the
// global:

import {extend} from '@shopify/checkout-ui-extensions';
import {extend} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
root.appendChild(root.createText('Hello world!'));
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-extensions-react/documentation/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
render,
Text,
useShippingAddress,
} from '@shopify/checkout-ui-extensions-react';
} from '@shopify/ui-extensions-react/react';

render('Checkout::Dynamic::Render', () => <App />);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Banner} from '@shopify/checkout-ui-extensions';
import {extend, Banner} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const banner = root.createComponent(Banner, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, BlockLayout, View} from '@shopify/checkout-ui-extensions';
import {extend, BlockLayout, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const blockLayout = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, BlockSpacer, View} from '@shopify/checkout-ui-extensions';
import {extend, BlockSpacer, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const blockSpacer = root.createComponent(View, undefined, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, BlockStack, View} from '@shopify/checkout-ui-extensions';
import {extend, BlockStack, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const blockStack = root.createComponent(BlockStack, undefined, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Button} from '@shopify/checkout-ui-extensions';
import {extend, Button} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const button = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Checkbox} from '@shopify/checkout-ui-extensions';
import {extend, Checkbox} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const checkbox = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Choice,
BlockStack,
InlineStack,
} from '@shopify/checkout-ui-extensions';
} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const choiceList = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Choice,
BlockStack,
InlineStack,
} from '@shopify/checkout-ui-extensions';
} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const choiceList = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Divider} from '@shopify/checkout-ui-extensions';
import {extend, Divider} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const divider = root.createComponent(Divider);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
GridItem,
TextField,
View,
} from '@shopify/checkout-ui-extensions';
} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const fields = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Grid, View} from '@shopify/checkout-ui-extensions';
import {extend, Grid, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const grid = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Grid, GridItem, View} from '@shopify/checkout-ui-extensions';
import {extend, Grid, GridItem, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const grid = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Heading} from '@shopify/checkout-ui-extensions';
import {extend, Heading} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const heading = root.createComponent(Heading, undefined, 'Store name');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
HeadingGroup,
Heading,
View,
} from '@shopify/checkout-ui-extensions';
} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const headingGroup = root.createComponent(View, undefined, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Icon} from '@shopify/checkout-ui-extensions';
import {extend, Icon} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const icon = root.createComponent(Icon, {source: 'discount'});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Image} from '@shopify/checkout-ui-extensions';
import {extend, Image} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const image = root.createComponent(Image, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, InlineLayout, View} from '@shopify/checkout-ui-extensions';
import {extend, InlineLayout, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const inlineLayout = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
InlineSpacer,
InlineStack,
View,
} from '@shopify/checkout-ui-extensions';
} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const inlineSpacer = root.createComponent(InlineStack, {spacing: 'none'}, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, InlineStack, View} from '@shopify/checkout-ui-extensions';
import {extend, InlineStack, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const inlineStack = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Link} from '@shopify/checkout-ui-extensions';
import {extend, Link} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const link = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, List, ListItem} from '@shopify/checkout-ui-extensions';
import {extend, List, ListItem} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const list = root.createComponent(List, undefined, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, List, ListItem} from '@shopify/checkout-ui-extensions';
import {extend, List, ListItem} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const list = root.createComponent(List, undefined, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, PhoneField} from '@shopify/checkout-ui-extensions';
import {extend, PhoneField} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const phoneField = root.createComponent(PhoneField, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
InlineLayout,
Pressable,
Text,
} from '@shopify/checkout-ui-extensions';
} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const pressable = root.createComponent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, ScrollView, View} from '@shopify/checkout-ui-extensions';
import {extend, ScrollView, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const scrollView = root.createComponent(ScrollView, {maxBlockSize: 400}, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Select} from '@shopify/checkout-ui-extensions';
import {extend, Select} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const select = root.createComponent(Select, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, SkeletonImage} from '@shopify/checkout-ui-extensions';
import {extend, SkeletonImage} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const skeletonImage = root.createComponent(SkeletonImage, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, SkeletonText} from '@shopify/checkout-ui-extensions';
import {extend, SkeletonText} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const skeletonText = root.createComponent(SkeletonText);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, SkeletonTextBlock} from '@shopify/checkout-ui-extensions';
import {extend, SkeletonTextBlock} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const skeletonTextBlock = root.createComponent(SkeletonTextBlock);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Spinner} from '@shopify/checkout-ui-extensions';
import {extend, Spinner} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const spinner = root.createComponent(Spinner);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Stepper} from '@shopify/checkout-ui-extensions';
import {extend, Stepper} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const stepper = root.createComponent(Stepper, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Tag} from '@shopify/checkout-ui-extensions';
import {extend, Tag} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const tag = root.createComponent(Tag, {icon: 'discount'}, 'SPRING');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, Text, BlockStack} from '@shopify/checkout-ui-extensions';
import {extend, Text, BlockStack} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const text = root.createComponent(BlockStack, undefined, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, TextBlock, BlockStack} from '@shopify/checkout-ui-extensions';
import {extend, TextBlock, BlockStack} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const textBlock = root.createComponent(BlockStack, undefined, [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, TextField} from '@shopify/checkout-ui-extensions';
import {extend, TextField} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const textfield = root.createComponent(TextField, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Icon,
Pressable,
Tooltip,
} from '@shopify/checkout-ui-extensions';
} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const tooltipFragment = root.createFragment();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extend, View} from '@shopify/checkout-ui-extensions';
import {extend, View} from '@shopify/ui-extensions/checkout';

extend('Checkout::Dynamic::Render', (root) => {
const view = root.createComponent(
Expand Down

0 comments on commit 92976cc

Please sign in to comment.