File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed
src/extensions/yfm/YfmHtmlBlock Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 11// eslint-disable-next-line import/no-extraneous-dependencies
22import { transform } from '@diplodoc/html-extension' ;
3- import { BaseTarget , StylesObject } from '@diplodoc/html-extension/plugin' ;
3+ import { PluginOptions } from '@diplodoc/html-extension/plugin/transform ' ;
44
55import type { ExtensionAuto , ExtensionNodeSpec } from '../../../../core' ;
66
77import { YfmHtmlBlockConsts } from './const' ;
88
99export { yfmHtmlBlockNodeName } from './const' ;
1010
11- export type YfmHtmlBlockSpecsOptions = {
11+ export interface YfmHtmlBlockSpecsOptions
12+ extends Omit < PluginOptions , 'runtimeJsPath' | 'containerClasses' | 'bundle' > {
1213 nodeView ?: ExtensionNodeSpec [ 'view' ] ;
13- sanitize ?: ( dirtyHtml : string ) => string ;
14- styles ?: string | StylesObject ;
15- baseTarget ?: BaseTarget ;
16- } ;
14+ }
1715
1816const YfmHtmlBlockSpecsExtension : ExtensionAuto < YfmHtmlBlockSpecsOptions > = (
1917 builder ,
Original file line number Diff line number Diff line change 1- import { BaseTarget , StylesObject } from '@diplodoc/html-extension/plugin' ;
1+ import { PluginOptions } from '@diplodoc/html-extension/plugin/transform ' ;
22import type { IHTMLIFrameElementConfig } from '@diplodoc/html-extension/runtime' ;
33
44import { Action , ExtensionAuto , ExtensionDeps , NodeViewConstructor } from '../../../core' ;
@@ -8,13 +8,10 @@ import {YfmHtmlBlockSpecs} from './YfmHtmlBlockSpecs';
88import { YfmHtmlBlockAction } from './YfmHtmlBlockSpecs/const' ;
99import { addYfmHtmlBlock } from './actions' ;
1010
11- export type YfmHtmlBlockOptions = {
11+ export interface YfmHtmlBlockOptions
12+ extends Omit < PluginOptions , 'runtimeJsPath' | 'containerClasses' | 'bundle' > {
1213 useConfig ?: ( ) => IHTMLIFrameElementConfig | undefined ;
13- sanitize ?: ( dirtyHtml : string ) => string ;
14- styles ?: string | StylesObject ;
15- baseTarget ?: BaseTarget ;
16- head ?: string ;
17- } ;
14+ }
1815
1916export const YfmHtmlBlock : ExtensionAuto < YfmHtmlBlockOptions > = (
2017 builder ,
You can’t perform that action at this time.
0 commit comments