0.27.3 • Published 9 months ago

@shopify/checkout-ui-extensions v0.27.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@shopify/checkout-ui-extensions

This library contains type definitions and other utilities for writing UI extensions in Shopify’s checkout. However, nothing in this library is strictly required to write a UI extension. As a developer building a UI extension, you can forego the utilities this library provides entirely, and instead use the global shopify API directly in a plain JavaScript file. The script below is a valid UI extension script without any additional processing:

shopify.extend('Checkout::Dynamic::Render', (root, api) => {
  const button = root.createComponent('Button', {
    onPress() {
      console.log('Upsold!');
    },
  });

  button.appendChild('Buy now');

  root.appendChild(button);
});

Keeping in mind that any utility provided by this library is only a convenience API on top of the shopify global, the rest of the documentation for this library will show examples using JavaScript imports from the @shopify/checkout-ui-extensions library. Using JavaScript modules in this way requires a build step, but can provide useful developer experience features and opportunities for build-time performance optimizations.

Getting started

Before you dig in to what this library has to offer, read through the Checkout UI extensions overview, and a getting started guide from one of the checkout extension examples.

API

This package provides utilities, types, and documentation for the many different APIs a UI extension can access. Before you write your first extension, you should read through the following documentation in order:

Once you’ve read the documents above, you’re ready to write a checkout extension. If you’re wanting to learn even more, this repo has a few additional guides that cover techniques for writing larger, more complex extensions:

0.27.2

9 months ago

0.27.1

10 months ago

0.27.3

9 months ago

0.27.0

11 months ago

0.26.2

12 months ago

0.26.1

1 year ago

0.26.0

1 year ago

0.25.1

1 year ago

0.25.0

1 year ago

0.24.0

1 year ago

0.21.0

1 year ago

0.23.0

1 year ago

0.22.0

1 year ago

0.21.1

1 year ago

0.20.0

2 years ago

0.19.0

2 years ago

0.18.1

2 years ago

0.16.0

2 years ago

0.17.0

2 years ago

0.18.0

2 years ago

0.17.1

2 years ago

0.15.1

2 years ago

0.15.2

2 years ago

0.15.0

2 years ago

0.14.0

2 years ago

0.13.0

3 years ago

0.12.0

3 years ago

0.11.1-alpha.0

3 years ago

0.11.1

3 years ago

0.11.0

3 years ago

0.11.0-alpha.1

3 years ago

0.11.0-alpha.0

3 years ago

0.10.3

3 years ago