Commit ef8699b
committed
Improved API and prop descriptions for 2024-07
linting
linting
linting
More description improvements
type errors
Remove event data files not needed in 2025-01 version and revert BaseInput/BaseIntent to original names
Remove new files that don't belong in 2025-01 version
More descriptions
Add descriptions to BaseInput and BaseIntent, fix TaxLine import error
FormattedTextField desc
Fix import path and remove deprecated warnings for 2024-10
- Fix CurrencyCode import path in session.ts (should be 4 levels up)
- Remove deprecation warnings from Spacing.ts (sizes.ts doesn't exist in 2024-10)
Remove new API features from cherry-pick - keep only description improvements
Removed NEW items that shouldn't be in 2024-10:
- bulkCartUpdate() method and CartUpdateInput type
- Cart.editable field
- LineItem.discountAllocations field
- LineItem.taxLines field
- Session.currency and Session.posVersion fields
- Removed CurrencyCode import from session.ts
- Removed @returns documentation for methods that return Promise<void>
Only keeping the improved descriptions for existing APIs, types, and methods.
Remove additional new fields from cart.ts for 2024-10
Removed NEW fields/types that shouldn't be in 2024-10:
- LineItem.attributedUserId field
- LineItem.components field
- LineItemComponent interface (entirely new)
- Discount.currency field
Only keeping description improvements for EXISTING fields in 2024-10.
Restore original Icon.ts - remove new deprecated types for 2024-10
The cherry-pick added NEW types that shouldn't be in 2024-10:
- DeprecatedIconName type (with deprecation notices for 2025-10 removal)
- DeprecatedIconSize type (with deprecation notices for 2025-10 removal)
In 2024-10, these icons are NOT deprecated yet. Restored the original
simple Icon.ts with just IconName and IconSize types.
Restore original Spacing.ts - remove new Spacing type for 2024-10
The cherry-pick added a NEW 'Spacing' type (numeric values 0.5, 1, 2, etc.)
that wasn't in 2024-10. This type doesn't exist in 2024-10.
Restored the original with only VerticalSpacing and HorizontalSpacing types.
Add proper descriptions for all Customer interface fields
Fixed incorrect description on Customer.id (was talking about selling plans)
and added descriptions for all fields:
- id: Customer identifier with common use cases
- email: Email address for communication
- firstName: Customer's first name
- lastName: Customer's last name
- note: Internal merchant notes about the customer
Improve Icon.ts field descriptions
Enhanced descriptions for IconProps fields:
- name: Added examples of icon types (cart, payment, search, etc.)
- size: Added clear explanation of each size option (minor, major, spot, caption, badge)
Add descriptions for IconName and IconSize types
Added comprehensive descriptions for:
- IconName: Describes the icon identifier with categorized examples (commerce operations, payment methods, navigation, actions, status indicators, system symbols)
- IconSize: Explains each size option (minor, major, spot, caption, badge) with specific use cases
Empty commit1 parent 8061c14 commit ef8699b
File tree
79 files changed
+974
-465
lines changed- packages/ui-extensions
- docs/surfaces/point-of-sale/reference/components
- src/surfaces/point-of-sale
- api
- action-api
- cart-api
- connectivity-api
- customer-api
- device-api
- draft-order-api
- locale-api
- order-api
- product-api
- product-search-api
- scanner-api
- session-api
- toast-api
- types
- components
- Badge
- Banner
- Button
- CameraScanner
- DatePicker
- Dialog
- FormattedTextField
- Icon
- List
- NumberField
- PinPad
- RadioButtonList
- Screen
- SearchBar
- SectionHeader
- Section
- SegmentedControl
- Selectable
- Stepper
- TextArea
- TextField
- Text
- Tile
- TimeField
- TimePicker
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
79 files changed
+974
-465
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments