Skip to content

Commit

Permalink
Remove CustomerSegmentationTemplate and deprecated prop names (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrescilliaA committed Sep 7, 2023
1 parent 2d8fac3 commit 1dd7a19
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 190 deletions.
6 changes: 6 additions & 0 deletions .changeset/six-mice-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/ui-extensions': patch
'@shopify/ui-extensions-react': patch
---

Remove CustomerSegmentationTemplate and deprecated prop names
2 changes: 0 additions & 2 deletions packages/ui-extensions-react/src/surfaces/admin/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export {Button} from './components/Button/Button';
export type {ButtonProps} from './components/Button/Button';
export {Checkbox} from './components/Checkbox/Checkbox';
export type {CheckboxProps} from './components/Checkbox/Checkbox';
export {CustomerSegmentationTemplate} from './components/CustomerSegmentationTemplate/CustomerSegmentationTemplate';
export type {CustomerSegmentationTemplateProps} from './components/CustomerSegmentationTemplate/CustomerSegmentationTemplate';
export {Divider} from './components/Divider/Divider';
export type {DividerProps} from './components/Divider/Divider';
export {EmailField} from './components/EmailField/EmailField';
Expand Down

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions packages/ui-extensions/src/surfaces/admin/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export {Button} from './components/Button/Button';
export type {ButtonProps} from './components/Button/Button';
export {Checkbox} from './components/Checkbox/Checkbox';
export type {CheckboxProps} from './components/Checkbox/Checkbox';
export {CustomerSegmentationTemplate} from './components/CustomerSegmentationTemplate/CustomerSegmentationTemplate';
export type {CustomerSegmentationTemplateProps} from './components/CustomerSegmentationTemplate/CustomerSegmentationTemplate';
export {CustomerSegmentTemplate} from './components/CustomerSegmentTemplate/CustomerSegmentTemplate';
export type {CustomerSegmentTemplateProps} from './components/CustomerSegmentTemplate/CustomerSegmentTemplate';
export {Divider} from './components/Divider/Divider';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,15 @@ export interface CustomerSegmentTemplateProps {
title: string;
/* Localized description(s) of the template. */
description: string | string[];
/* DEPRECATED - Code snippet to render in the template with syntax highlighting. */
templateQuery?: string;
/* Code snippet to render in the template with syntax highlighting. */
query: string;
/* DEPRECATED - Code snippet to insert in the segment editor. If missing, `templateQuery` will be used. */
templateQueryToInsert?: string;
/* Code snippet to insert in the segment editor. If missing, `templateQuery` will be used. */
queryToInsert?: string;
/* List of customer standard metafields or custom metafields used in the template's query. */
dependencies?: {
standardMetafields?: CustomerStandardMetafieldDependency[];
customMetafields?: string[];
};
/* DEPRECATED - ISO 8601-encoded date and time string. A "New" badge will be rendered for recently introduced templates. */
dateAdded?: string;
/* ISO 8601-encoded date and time string. A "New" badge will be rendered for recently introduced templates. */
createdOn?: string;
}
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,15 @@ export interface InternalCustomerSegmentTemplateProps {
description: string | string[];
/* Icon identifier for the template. */
icon: CustomerSegmentTemplateIcon;
/* DEPRECATED - Code snippet to render in the template with syntax highlighting. */
templateQuery?: string;
/* Code snippet to render in the template with syntax highlighting. */
query: string;
/* DEPRECATED - Code snippet to insert in the segment editor. If missing, `templateQuery` will be used. */
templateQueryToInsert?: string;
/* Code snippet to insert in the segment editor. If missing, `templateQuery` will be used. */
queryToInsert?: string;
/* DEPRECATED - List of customer standard metafield used in the template's query. */
standardMetafieldDependencies?: CustomerStandardMetafieldDependency[];
/* List of customer standard metafields or custom metafields used in the template's query. */
dependencies?: {
standardMetafields?: CustomerStandardMetafieldDependency[];
customMetafields?: string[];
};
/* DEPRECATED - ISO 8601-encoded date and time string. A "New" badge will be rendered for recently introduced templates. */
dateAdded?: string;
/* ISO 8601-encoded date and time string. A "New" badge will be rendered for recently introduced templates. */
createdOn?: string;
/* The category in which the template will be visible. The template will show in its respective category and aggregate sections. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import {AnyComponentBuilder} from '../../shared';
type CustomerSegmentationTemplateComponent = AnyComponentBuilder<
Pick<
Components,
| 'CustomerSegmentationTemplate'
| 'CustomerSegmentTemplate'
| 'InternalCustomerSegmentTemplate'
'CustomerSegmentTemplate' | 'InternalCustomerSegmentTemplate'
>
>;

Expand Down

0 comments on commit 1dd7a19

Please sign in to comment.