@shopify/ui-extensions
Advanced tools
Comparing version 0.0.0-unstable-20230822181744 to 0.0.0-unstable-20230823123506
@@ -15,3 +15,5 @@ export declare const customerSegmentTemplateIcons: readonly ["categoriesMajor", "firstVisitMajor", "heartMajor", "marketingMajor", "checkoutMajor", "ordersMajor", "locationMajor", "emailNewsletterMajor", "firstOrderMajor", "billingStatementDollarMajor", "diamondAlertMajor", "abandonedCartMajor", "calendarMajor", "productsMajor", "globeMajor", "flagMajor", "uploadMajor", "buyButtonMajor", "followUpEmailMajor", "confettiMajor", "viewMajor", "buyButtonMajor"]; | ||
templateQuery: string; | ||
query: string; | ||
templateQueryToInsert?: string; | ||
queryToInsert?: string; | ||
standardMetafieldDependencies?: CustomerStandardMetafieldDependency[]; | ||
@@ -23,2 +25,3 @@ dependencies?: { | ||
dateAdded?: string; | ||
createdOn?: string; | ||
category?: CustomerSegmentTemplateCategory; | ||
@@ -25,0 +28,0 @@ } |
@@ -10,3 +10,5 @@ /** | ||
templateQuery: string; | ||
query: string; | ||
templateQueryToInsert?: string; | ||
queryToInsert?: string; | ||
dependencies?: { | ||
@@ -17,2 +19,3 @@ standardMetafields?: CustomerStandardMetafieldDependency[]; | ||
dateAdded?: string; | ||
createdOn?: string; | ||
} | ||
@@ -19,0 +22,0 @@ /** |
{ | ||
"name": "@shopify/ui-extensions", | ||
"version": "0.0.0-unstable-20230822181744", | ||
"version": "0.0.0-unstable-20230823123506", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "docs:admin": "sh ./docs/surfaces/admin/build-docs.sh \"admin\"", |
@@ -56,7 +56,11 @@ import {createRemoteComponent} from '@remote-ui/core'; | ||
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. */ | ||
templateQuery: string; | ||
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. */ | ||
templateQueryToInsert?: string; | ||
/* List of customer standard metafield used in the template's query. */ | ||
queryToInsert?: string; | ||
/* DEPRECATED - List of customer standard metafield used in the template's query. */ | ||
standardMetafieldDependencies?: CustomerStandardMetafieldDependency[]; | ||
@@ -68,4 +72,6 @@ /* List of customer standard metafields or custom metafields used in the template's query. */ | ||
}; | ||
/* 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. */ | ||
dateAdded?: string; | ||
createdOn?: string; | ||
/* The category in which the template will be visible. | ||
@@ -72,0 +78,0 @@ When provided, the template will show in its respective category and aggregate sections. |
@@ -14,8 +14,8 @@ import { | ||
icon: 'productsMajor', | ||
templateQuery: productsPurchasedOnTagsEnabled | ||
? 'products_purchased(tag: (product_tag)) = true' | ||
: 'products_purchased(id: (product_id)) = true', | ||
templateQueryToInsert: productsPurchasedOnTagsEnabled | ||
? 'products_purchased(tag:' | ||
: 'products_purchased(id:', | ||
query: productsPurchasedOnTagsEnabled | ||
? 'products_purchased(tag: (product_tag)) = true' | ||
: 'products_purchased(id: (product_id)) = true', | ||
queryToInsert: productsPurchasedOnTagsEnabled | ||
? 'products_purchased(tag:' | ||
: 'products_purchased(id:', | ||
dateAdded: new Date('2023-01-15').toISOString(), | ||
@@ -29,3 +29,3 @@ category: 'reEngageCustomers' | ||
icon: 'locationMajor', | ||
templateQuery: "customer_cities CONTAINS 'US-NY-NewYorkCity'", | ||
query: "customer_cities CONTAINS 'US-NY-NewYorkCity'", | ||
category: 'location' | ||
@@ -32,0 +32,0 @@ }); |
@@ -14,6 +14,10 @@ import {createRemoteComponent} from '@remote-ui/core'; | ||
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. */ | ||
templateQuery: string; | ||
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. */ | ||
templateQueryToInsert?: string; | ||
queryToInsert?: string; | ||
/* List of customer standard metafields or custom metafields used in the template's query. */ | ||
@@ -24,4 +28,6 @@ dependencies?: { | ||
}; | ||
/* 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. */ | ||
dateAdded?: string; | ||
createdOn?: string; | ||
} | ||
@@ -28,0 +34,0 @@ |
@@ -12,5 +12,5 @@ import { | ||
description: i18n.translate('product.description'), | ||
templateQuery: 'products_purchased(id: (product_id)) = true', | ||
templateQueryToInsert: 'products_purchased(id:', | ||
dateAdded: new Date('2023-01-15').toISOString(), | ||
query: 'products_purchased(id: (product_id)) = true', | ||
queryToInsert: 'products_purchased(id:', | ||
createdOn: new Date('2023-01-15').toISOString(), | ||
}); | ||
@@ -21,3 +21,3 @@ | ||
description: [i18n.translate('location.firstParagraph'), i18n.translate('location.secondParagraph')], | ||
templateQuery: "customer_cities CONTAINS 'US-NY-NewYorkCity'", | ||
query: "customer_cities CONTAINS 'US-NY-NewYorkCity'", | ||
}); | ||
@@ -24,0 +24,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1391209
29270