Skip to content

Commit a7cd405

Browse files
authored
Revert "Deprecated FormattedTextField"
1 parent 86d76f2 commit a7cd405

File tree

9 files changed

+6
-21
lines changed

9 files changed

+6
-21
lines changed

.changeset/tiny-moles-serve.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

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,
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import {FormattedTextField as BaseFormattedTextField} from '@shopify/ui-extensions/point-of-sale';
22
import {createRemoteReactComponent} from '@remote-ui/react';
33

4-
/**
5-
* @deprecated Use the `TextField` component instead.
6-
*/
74
export const FormattedTextField = createRemoteReactComponent(
85
BaseFormattedTextField,
96
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const generateCodeBlockForComponent = (title: string, fileName: string) =>
77
const data: ReferenceEntityTemplateSchema = {
88
name: 'FormattedTextField',
99
description:
10-
'This component is deprecated. Please use the [`TextField`](/docs/api/pos-ui-extensions/components/textfield) component instead. Use a formatted text field when you require additional functionality such as the text field input type or a custom validator.',
10+
'Use a formatted text field when you require additional functionality such as the text field input type or a custom validator.',
1111
isVisualComponent: true,
1212
type: 'component',
1313
definitions: [

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/FormattedTextField/FormattedTextField.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ export interface FormattedTextFieldProps extends BaseTextFieldProps {
2222
autoCapitalize?: AutoCapitalizationType;
2323
}
2424

25-
/**
26-
* @deprecated Use the `TextField` component instead.
27-
*/
2825
export const FormattedTextField = createRemoteComponent<
2926
'FormattedTextField',
3027
FormattedTextFieldProps

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)