Skip to content

Commit 96960f4

Browse files
committed
Leaving some changes
1 parent a7cd405 commit 96960f4

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.changeset/tiny-moles-serve.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@shopify/ui-extensions-react': minor
3+
'@shopify/ui-extensions': minor
4+
---
5+
6+
Marked FormattedTextField as deprecated for pos ui
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
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+
*/
47
export const FormattedTextField = createRemoteReactComponent(
58
BaseFormattedTextField,
69
);

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-
'Use a formatted text field when you require additional functionality such as the text field input type or a custom validator.',
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.',
1111
isVisualComponent: true,
1212
type: 'component',
1313
definitions: [

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

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

25+
/**
26+
* @deprecated Use the `TextField` component instead.
27+
*/
2528
export const FormattedTextField = createRemoteComponent<
2629
'FormattedTextField',
2730
FormattedTextFieldProps

0 commit comments

Comments
 (0)