@@ -250,6 +250,8 @@ export class DeepnoteDataConverter {
250250 data [ 'application/vnd.deepnote.dataframe.v3+json' ] = JSON . parse (
251251 new TextDecoder ( ) . decode ( item . data )
252252 ) ;
253+ } else if ( item . mime === 'application/vnd.vega.v6+json' ) {
254+ data [ 'application/vnd.vega.v6+json' ] = JSON . parse ( new TextDecoder ( ) . decode ( item . data ) ) ;
253255 } else if ( item . mime === 'application/vnd.vega.v5+json' ) {
254256 data [ 'application/vnd.vega.v5+json' ] = JSON . parse ( new TextDecoder ( ) . decode ( item . data ) ) ;
255257 } else if ( item . mime === 'application/vnd.plotly.v1+json' ) {
@@ -335,7 +337,14 @@ export class DeepnoteDataConverter {
335337 ) ;
336338 }
337339
338- if ( data [ 'application/vnd.vega.v5+json' ] ) {
340+ if ( data [ 'application/vnd.vega.v6+json' ] ) {
341+ items . push (
342+ NotebookCellOutputItem . json (
343+ data [ 'application/vnd.vega.v6+json' ] ,
344+ 'application/vnd.vega.v6+json'
345+ )
346+ ) ;
347+ } else if ( data [ 'application/vnd.vega.v5+json' ] ) {
339348 items . push (
340349 NotebookCellOutputItem . json (
341350 data [ 'application/vnd.vega.v5+json' ] ,
@@ -387,7 +396,7 @@ export class DeepnoteDataConverter {
387396 } ) ;
388397
389398 const vegaSpec = convertVegaLiteSpecToVega ( patchedVegaLiteSpec as VegaLiteSpec ) . spec ;
390- items . push ( NotebookCellOutputItem . json ( vegaSpec , 'application/vnd.vega.v5 +json' ) ) ;
399+ items . push ( NotebookCellOutputItem . json ( vegaSpec , 'application/vnd.vega.v6 +json' ) ) ;
391400 }
392401
393402 if ( data [ 'application/json' ] ) {
0 commit comments