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';
6
6
export * from './imageDocx' ;
7
7
export * from './imagePDF' ;
8
8
export * from './paragraphPDF' ;
9
- export * from './pdfDocx' ;
10
- export * from './pdfPDF' ;
11
9
export * from './quoteDocx' ;
12
10
export * from './quotePDF' ;
13
11
export * from './tablePDF' ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
blockMappingCalloutDocx ,
6
6
blockMappingDividerDocx ,
7
7
blockMappingImageDocx ,
8
- blockMappingPdfDocx ,
9
8
blockMappingQuoteDocx ,
10
9
} from './blocks-mapping' ;
11
10
import { inlineContentMappingInterlinkingLinkDocx } from './inline-content-mapping' ;
@@ -17,7 +16,10 @@ export const docxDocsSchemaMappings: DocsExporterDocx['mappings'] = {
17
16
...docxDefaultSchemaMappings . blockMapping ,
18
17
callout : blockMappingCalloutDocx ,
19
18
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 ,
21
23
quote : blockMappingQuoteDocx ,
22
24
image : blockMappingImageDocx ,
23
25
} ,
Original file line number Diff line number Diff line change 6
6
blockMappingHeadingPDF ,
7
7
blockMappingImagePDF ,
8
8
blockMappingParagraphPDF ,
9
- blockMappingPdfPDF ,
10
9
blockMappingQuotePDF ,
11
10
blockMappingTablePDF ,
12
11
} from './blocks-mapping' ;
@@ -24,7 +23,10 @@ export const pdfDocsSchemaMappings: DocsExporterPDF['mappings'] = {
24
23
divider : blockMappingDividerPDF ,
25
24
quote : blockMappingQuotePDF ,
26
25
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 ,
28
30
} ,
29
31
inlineContentMapping : {
30
32
...pdfDefaultSchemaMappings . inlineContentMapping ,
You can’t perform that action at this time.
0 commit comments