Skip to content

Commit 40f693c

Browse files
authored
Merge pull request #2709 from Shopify/revert-2674-js-deprecate-formatted-textfield
Revert "Deprecated FormattedTextField"
2 parents 86d76f2 + 96960f4 commit 40f693c

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

packages/ui-extensions-react/src/surfaces/point-of-sale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export type {
6969
SuccessProps,
7070
PasswordProps,
7171
EmbeddedElementProps,
72-
TextFieldProps,
72+
NewTextFieldProps,
7373
TileProps,
7474
TimeFieldProps,
7575
TimePickerProps,

packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/TextField.doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const data: ReferenceEntityTemplateSchema = {
1212
title: 'TextField',
1313
description:
1414
'Use a text field to allow merchants to input or modify multiline text.',
15-
type: 'TextFieldProps',
15+
type: 'NewTextFieldProps',
1616
},
1717
],
1818
category: 'Components',

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
4646
- Removed in POS version: N/A
4747
- Release day: N/A
4848
49-
### Breaking Changes
50-
- Renamed \`NewTextFieldProps\` to \`TextFieldProps\`.
51-
5249
### Features
5350
5451
**Developer Preview**:

packages/ui-extensions/src/surfaces/point-of-sale/components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export {TextArea} from './render/components/TextArea/TextArea';
120120
export type {TextAreaProps} from './render/components/TextArea/TextArea';
121121
export {TextField} from './render/components/TextField/TextField';
122122
export type {
123-
TextFieldProps,
123+
NewTextFieldProps,
124124
ActionProps,
125125
InfoProps,
126126
SuccessProps,

packages/ui-extensions/src/surfaces/point-of-sale/render/components/TextField/TextField.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export type EmbeddedElementProps =
2929
| SuccessProps
3030
| PasswordProps;
3131

32-
export interface TextFieldProps extends InputProps {}
32+
export interface NewTextFieldProps extends InputProps {}
3333

34-
export const TextField = createRemoteComponent<'TextField', TextFieldProps>(
34+
export const TextField = createRemoteComponent<'TextField', NewTextFieldProps>(
3535
'TextField',
3636
);

0 commit comments

Comments
 (0)