File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export class Stack {
151151 contentTypeUid : query . contentTypeUid ,
152152 entryUid : query . entryUid ,
153153 preview_timestamp : query . preview_timestamp || "" ,
154+ include_applied_variants : query . include_applied_variants || false ,
154155 }
155156 this . _client . stackConfig . live_preview = livePreviewParams ;
156157 }
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ export interface FindResponse<T> {
259259
260260export interface LivePreviewQuery {
261261 live_preview : string
262+ include_applied_variants ?: boolean ;
262263 contentTypeUid : string
263264 entryUid ?: any ;
264265 preview_timestamp ?: string
@@ -267,6 +268,7 @@ export interface LivePreviewQuery {
267268
268269export type LivePreview = {
269270 live_preview ?: string ;
271+ include_applied_variants ?: boolean ;
270272 contentTypeUid ?: string ;
271273 entryUid ?: any ;
272274 host ?: string ;
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ describe('Live preview tests', () => {
5959 live_preview : {
6060 enable : true ,
6161 preview_token : 'preview_token' ,
62- host : 'rest-preview.contentstack.com'
62+ host : 'rest-preview.contentstack.com' ,
63+ include_applied_variants : true ,
6364 }
6465 } )
6566 const livePreviewObject = stack . config . live_preview
@@ -68,6 +69,8 @@ describe('Live preview tests', () => {
6869 expect ( livePreviewObject ) . toHaveProperty ( 'host' ) ;
6970 expect ( livePreviewObject ) . toHaveProperty ( 'preview_token' ) ;
7071 expect ( livePreviewObject ) . not . toHaveProperty ( 'management_token' ) ;
72+ expect ( livePreviewObject ) . toHaveProperty ( 'include_applied_variants' ) ;
73+ expect ( livePreviewObject ?. include_applied_variants ) . toBe ( true ) ;
7174 expect ( stack . config . host ) . toBe ( 'cdn.contentstack.io' ) ;
7275 } ) ;
7376
You can’t perform that action at this time.
0 commit comments