Skip to content

Commit 57fbb3f

Browse files
authored
Merge pull request #2784 from Shopify/pos-extensibility-docs
POS UI Extensions docs updates branch
2 parents aa599c3 + 38d960b commit 57fbb3f

File tree

8 files changed

+85
-15
lines changed

8 files changed

+85
-15
lines changed

Diff for: packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/Button.doc.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const generateCodeBlockForButton = (title: string, fileName: string) =>
66

77
const data: ReferenceEntityTemplateSchema = {
88
name: 'Button',
9-
description:
10-
'Buttons enable the merchant to initiate actions, like "add", "save", or "next".',
9+
description: `Buttons enable the merchant to initiate actions, like "add", "save", or "next".
10+
> Note:
11+
> The \`plain\` \`ButtonType\` is no longer supported as of POS 10.0.0 and defaults to \`basic\`.`,
1112
isVisualComponent: true,
1213
type: 'component',
1314
definitions: [

Diff for: packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/List.doc.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import {generateCodeBlock} from '../helpers/generateCodeBlock';
33

44
const data: ReferenceEntityTemplateSchema = {
55
name: 'List',
6-
description:
7-
'The list is a scrollable component in which the list rows are rendered.',
6+
description: `The list is a scrollable component in which the list rows are rendered.
7+
> Note:
8+
> List items no longer have dividers as of POS 10.0.0.`,
89
isVisualComponent: true,
910
type: 'component',
1011
definitions: [

Diff for: packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/Section.doc.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const generateCodeBlockForComponent = (title: string, fileName: string) =>
66

77
const data: ReferenceEntityTemplateSchema = {
88
name: 'Section',
9-
description:
10-
'A component used to group other components together in a card-like UI. Usually, sections will be used inside a ScrollView.',
9+
description: `A component used to group other components together in a card-like UI. Usually, sections will be used inside a ScrollView.
10+
> Note:
11+
> Section no longer has a border as of POS 10.0.0.`,
1112
isVisualComponent: true,
1213
type: 'component',
1314
definitions: [

Diff for: packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/Tile.doc.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const generateCodeBlockForTile = (title: string, fileName: string) =>
66

77
const data: ReferenceEntityTemplateSchema = {
88
name: 'Tile',
9-
description:
10-
'Tiles are customizable buttons that allow staff to complete actions quickly. Think of them as shortcuts--adding a 10% discount to an order, for example. Tiles provide contextual information and let merchants quickly access workflows, actions, and information from the smart grid and the top of detail pages. They’re dynamic and can change based on surrounding context, such as what’s in the cart.',
9+
description: `Tiles are customizable buttons that allow staff to complete actions quickly. Think of them as shortcuts--adding a 10% discount to an order, for example. Tiles provide contextual information and let merchants quickly access workflows, actions, and information from the smart grid and the top of detail pages. They’re dynamic and can change based on surrounding context, such as what’s in the cart.
10+
> Note:
11+
> The appearance of \`destructive\` has been updated as of POS 10.0.0 to appear as an active state.`,
1112
isVisualComponent: true,
1213
type: 'component',
1314
definitions: [

Diff for: packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/pages/versions.doc.ts

+62-5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
6060
- Removed in POS version: N/A
6161
- Release day: N/A
6262
63+
## Important Fixes
64+
65+
- **POS 10.2.0**:
66+
67+
- Fixed a sizing issue with the \`Button\` component.
68+
- Fixed an issue where the \`Section\` component was displaying a divider between child components.
69+
70+
- **POS 10.0.0**:
71+
72+
- Removed \`email\`, \`firstName\`, \`lastName\`, and \`note\` from the [Customer](/docs/api/pos-ui-extensions/apis/cart-api#customer) object.
73+
- POS UI Extensions components automatically use our new POS visual design language.
74+
6375
### Features
6476
6577
**Developer Preview**:
@@ -76,12 +88,22 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
7688
anchorLink: '202501',
7789
title: '2025.01',
7890
sectionContent: `
79-
- Added in POS version: 9.26
91+
- Added in POS version: 9.26.0
8092
- Removed in POS version: N/A
8193
- Release day: 1/6/2025
8294
8395
## Important Fixes
8496
97+
- **POS 10.2.0**:
98+
99+
- Fixed a sizing issue with the \`Button\` component.
100+
- Fixed an issue where the \`Section\` component was displaying a divider between child components.
101+
102+
- **POS 10.0.0**:
103+
104+
- Removed \`email\`, \`firstName\`, \`lastName\`, and \`note\` from the [Customer](/docs/api/pos-ui-extensions/apis/cart-api#customer) object.
105+
- POS UI Extensions components automatically use our new POS visual design language.
106+
85107
- **POS 9.31.0**:
86108
87109
- Modal updated so neither swiping down nor tapping outside of modal will dismiss modal.
@@ -130,10 +152,22 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
130152
anchorLink: '2024101',
131153
title: '2024.10.1',
132154
sectionContent: `
133-
- Added in POS version: 9.22
155+
- Added in POS version: 9.22.0
134156
- Removed in POS version: N/A
135157
- Release day: 11/11/2024.
136158
159+
## Important Fixes
160+
161+
- **POS 10.2.0**:
162+
163+
- Fixed a sizing issue with the \`Button\` component.
164+
- Fixed an issue where the \`Section\` component was displaying a divider between child components.
165+
166+
- **POS 10.0.0**:
167+
168+
- Removed \`email\`, \`firstName\`, \`lastName\`, and \`note\` from the [Customer](/docs/api/pos-ui-extensions/apis/cart-api#customer) object.
169+
- POS UI Extensions components automatically use our new POS visual design language.
170+
137171
### Features
138172
139173
- Fixes long standing issue where \`useEffect\` teardown functions are not working in React
@@ -144,10 +178,21 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
144178
anchorLink: '202410',
145179
title: '2024.10',
146180
sectionContent: `
147-
- Added in POS version: 9.19
181+
- Added in POS version: 9.19.0
148182
- Removed in POS version: N/A
149183
- Release day: 10/1/2024.
150184
185+
## Important Fixes
186+
187+
- **POS 10.2.0**:
188+
189+
- Fixed a sizing issue with the \`Button\` component.
190+
- Fixed an issue where the \`Section\` component was displaying a divider between child components.
191+
192+
- **POS 10.0.0**:
193+
194+
- Removed \`email\`, \`firstName\`, \`lastName\`, and \`note\` from the [Customer](/docs/api/pos-ui-extensions/apis/cart-api#customer) object.
195+
151196
### Features
152197
153198
- Added support for iOS debugging with the Safari dev tools.
@@ -166,10 +211,22 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
166211
anchorLink: '202407',
167212
title: '2024.07',
168213
sectionContent: `
169-
- Added in POS version: 9.15
214+
- Added in POS version: 9.15.0
170215
- Removed in POS version: N/A
171216
- Release day: 08/14/2024.
172217
218+
## Important Fixes
219+
220+
- **POS 10.2.0**:
221+
222+
- Fixed a sizing issue with the \`Button\` component.
223+
- Fixed an issue where the \`Section\` component was displaying a divider between child components.
224+
225+
- **POS 10.0.0**:
226+
227+
- Removed \`email\`, \`firstName\`, \`lastName\`, and \`note\` from the [Customer](/docs/api/pos-ui-extensions/apis/cart-api#customer) object.
228+
- POS UI Extensions components automatically use our new POS visual design language.
229+
173230
### Features
174231
175232
- Introduced a [SectionHeader component](/docs/api/pos-ui-extensions/components/sectionheader). It can be used to title sections and structure content.
@@ -194,7 +251,7 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
194251
},
195252
],
196253
sectionContent: `
197-
- Added in POS version: 9.11
254+
- Added in POS version: 9.11.0
198255
- Removed in POS version: 9.31.0
199256
- Release day: 06/10/2024.
200257

Diff for: packages/ui-extensions/src/surfaces/point-of-sale/render/components/Badge/Badge.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type BadgeStatus = 'empty' | 'partial' | 'complete';
1313
* @property text - The text displayed inside the badge.
1414
* @property variant - The appearance and function of the badge.
1515
* @property status - A circle icon displaying the status of the badge.
16+
* @deprecated status - No longer supported as of POS 10.0.0.
1617
*/
1718
export interface BadgeProps {
1819
/**
@@ -27,6 +28,7 @@ export interface BadgeProps {
2728

2829
/**
2930
* A circle icon displaying the status of the badge.
31+
* @deprecated No longer supported as of POS 10.0.0.
3032
*/
3133
status?: BadgeStatus;
3234
}

Diff for: packages/ui-extensions/src/surfaces/point-of-sale/render/components/Button/Button.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import {createRemoteComponent} from '@remote-ui/core';
22

3-
export type ButtonType = 'primary' | 'basic' | 'destructive' | 'plain';
3+
export type ButtonType =
4+
| 'primary'
5+
| 'basic'
6+
| 'destructive'
7+
/** @deprecated No longer supported as of POS 10.0.0. */
8+
| 'plain';
49

510
/**
611
* @property `title` the text set on the `Button`.
@@ -18,6 +23,7 @@ export interface ButtonProps {
1823
title?: string;
1924
/**
2025
* The type of `Button` to render. Determines the appearance of the button.
26+
* Note: The 'plain' type is no longer supported as of POS 10.0.0. Using it will default to 'basic'.
2127
*/
2228
type?: ButtonType;
2329
/**

Diff for: packages/ui-extensions/src/surfaces/point-of-sale/render/components/Tile/Tile.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {createRemoteComponent} from '@remote-ui/core';
44
* @property `title` the text set on the main label of the tile.
55
* @property `subtitle` the text set on the secondary label of the tile.
66
* @property `enabled` sets whether or not the tile can be tapped.
7-
* @property `destructive` sets whether or not the tile is in a red destructive appearance.
7+
* @property `destructive` sets whether or not the tile has a destructive appearance and active state as of POS
8+
* 10.0.0.
89
* @property `badgeValue` the number value displayed in the top right corner of the tile.
910
* @property `onPress` the callback that is executed when the tile is tapped.
1011
*/

0 commit comments

Comments
 (0)