Skip to content

Commit 9c7544e

Browse files
Merge pull request #576 from Shopify/pos-ui-extensions-smartGridapi
Introduced POS_UI_extensions to adopt smartGrid api and updated retail-ui-extension to latest version
2 parents 5d3f8c7 + e4eb57c commit 9c7544e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@shopify/customer-account-ui-extensions-react": "^0.0.8",
4141
"@shopify/eslint-plugin": "^41.3.0",
4242
"@shopify/post-purchase-ui-extensions-react": "0.13.3",
43-
"@shopify/retail-ui-extensions": "0.10.0",
43+
"@shopify/retail-ui-extensions": "0.19.0",
4444
"@shopify/typescript-configs": "^5.1.0",
4545
"@shopify/web-pixels-extension": "0.1.4",
4646
"@types/node": "^17.0.38",

packages/app/src/cli/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function getUIExtensionRendererDependency(extensionType: UIExtensionTypes
151151
case 'checkout_post_purchase':
152152
return {name: '@shopify/post-purchase-ui-extensions-react', version: '^0.13.2'}
153153
case 'pos_ui_extension':
154-
return {name: '@shopify/retail-ui-extensions-react', version: '^0.17.0'}
154+
return {name: '@shopify/retail-ui-extensions-react', version: '^0.19.0'}
155155
case 'customer_accounts_ui_extension':
156156
return {name: '@shopify/customer-account-ui-extensions-react', version: '^0.0.5'}
157157
case 'web_pixel_extension':

packages/app/templates/ui-extensions/projects/pos_ui/src/index.liquid

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import {Tile, Text, render} from '@shopify/retail-ui-extensions-react';
44

55
const SmartGridTile = () => {
6-
return <Tile title="Hello" subtitle="Hello" onPress={() => {}} enabled />
6+
return <Tile title="My app" subtitle="SmartGrid Extension" onPress={() => {}} enabled />
77
};
88

99
const SmartGridModal = () => {
@@ -18,10 +18,10 @@ import { extend, Text } from "@shopify/retail-ui-extensions";
1818
extend('Retail::SmartGrid::Tile', (root, api) => {
1919
const tileProps = {
2020
title: 'My app',
21-
subtitle: 'A test app',
21+
subtitle: 'SmartGrid Extension',
2222
enabled: true,
2323
onPress: () => {
24-
api.navigation.navigateToFullScreenModal();
24+
api.smartGrid.presentModal();
2525
}
2626
}
2727

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,10 +2329,10 @@
23292329
jest-matcher-utils "^26.6.2"
23302330
react-reconciler "^0.26.2"
23312331

2332-
"@shopify/retail-ui-extensions@0.10.0":
2333-
version "0.10.0"
2334-
resolved "https://registry.yarnpkg.com/@shopify/retail-ui-extensions/-/retail-ui-extensions-0.10.0.tgz#a43193d6fc9fb92a5f33fd0b711327bd44ca6de7"
2335-
integrity sha512-473t82QILBr1cpmYeMolRQmptxnpNNUVOYdyZUVSEQ2J5tjX/jqEaTi0JArArYS8GF0Dqm5x2K1SIK/khTGB7Q==
2332+
"@shopify/retail-ui-extensions@0.19.0":
2333+
version "0.19.0"
2334+
resolved "https://registry.yarnpkg.com/@shopify/retail-ui-extensions/-/retail-ui-extensions-0.19.0.tgz#5e2ab0eacbec706ebb495a04e05e749f3e5ba6bb"
2335+
integrity sha512-gYGzrGzWVZ4Ns3B9UkM6Xi+JkJ7e6OttfRitjbxuDVj7bnBuBm28bQn0qaFqPVh1V4CM8rQ7MwxutEitA8Pr0g==
23362336
dependencies:
23372337
"@remote-ui/core" "^2.1.6"
23382338

0 commit comments

Comments
 (0)