File tree Expand file tree Collapse file tree 5 files changed +8
-99
lines changed
src/frontend/apps/impress/src/features/docs/doc-export Expand file tree Collapse file tree 5 files changed +8
-99
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ export * from './headingPDF';
66export * from './imageDocx' ;
77export * from './imagePDF' ;
88export * from './paragraphPDF' ;
9- export * from './pdfDocx' ;
10- export * from './pdfPDF' ;
119export * from './quoteDocx' ;
1210export * from './quotePDF' ;
1311export * from './tablePDF' ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55 blockMappingCalloutDocx ,
66 blockMappingDividerDocx ,
77 blockMappingImageDocx ,
8- blockMappingPdfDocx ,
98 blockMappingQuoteDocx ,
109} from './blocks-mapping' ;
1110import { inlineContentMappingInterlinkingLinkDocx } from './inline-content-mapping' ;
@@ -17,7 +16,10 @@ export const docxDocsSchemaMappings: DocsExporterDocx['mappings'] = {
1716 ...docxDefaultSchemaMappings . blockMapping ,
1817 callout : blockMappingCalloutDocx ,
1918 divider : blockMappingDividerDocx ,
20- pdf : blockMappingPdfDocx ,
19+ // We're using the file block mapping for PDF blocks
20+ // The types don't match exactly but the implementation is compatible
21+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment
22+ pdf : docxDefaultSchemaMappings . blockMapping . file as any ,
2123 quote : blockMappingQuoteDocx ,
2224 image : blockMappingImageDocx ,
2325 } ,
Original file line number Diff line number Diff line change 66 blockMappingHeadingPDF ,
77 blockMappingImagePDF ,
88 blockMappingParagraphPDF ,
9- blockMappingPdfPDF ,
109 blockMappingQuotePDF ,
1110 blockMappingTablePDF ,
1211} from './blocks-mapping' ;
@@ -24,7 +23,10 @@ export const pdfDocsSchemaMappings: DocsExporterPDF['mappings'] = {
2423 divider : blockMappingDividerPDF ,
2524 quote : blockMappingQuotePDF ,
2625 table : blockMappingTablePDF ,
27- pdf : blockMappingPdfPDF ,
26+ // We're using the file block mapping for PDF blocks
27+ // The types don't match exactly but the implementation is compatible
28+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment
29+ pdf : pdfDefaultSchemaMappings . blockMapping . file as any ,
2830 } ,
2931 inlineContentMapping : {
3032 ...pdfDefaultSchemaMappings . inlineContentMapping ,
You can’t perform that action at this time.
0 commit comments