mirror of https://github.com/buster-so/buster.git
fix imports
This commit is contained in:
parent
61539f1ca2
commit
ab887f6e85
|
@ -11,7 +11,7 @@ import { useThemesConfig } from '@/components/ui/report/ThemeWrapper/useThemesCo
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
import { Tooltip } from '@/components/ui/tooltip';
|
import { Tooltip } from '@/components/ui/tooltip';
|
||||||
|
|
||||||
import DynamicReportEditor from '@/components/ui/report/DynamticEditor';
|
import DynamicReportEditor from '@/components/ui/report/DynamicReportEditor';
|
||||||
|
|
||||||
// Status indicator component with dynamic backgrounds
|
// Status indicator component with dynamic backgrounds
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
import type {
|
import type { SlateElementProps, TCaptionElement, TResizableProps, TVideoElement } from 'platejs';
|
||||||
SlateElementProps,
|
|
||||||
TCaptionElement,
|
|
||||||
TResizableProps,
|
|
||||||
TVideoElement,
|
|
||||||
} from 'platejs';
|
|
||||||
|
|
||||||
import { NodeApi, SlateElement } from 'platejs';
|
import { NodeApi, SlateElement } from 'platejs';
|
||||||
|
|
||||||
|
@ -17,15 +12,8 @@ export function VideoElementStatic(
|
||||||
return (
|
return (
|
||||||
<SlateElement className="py-2.5" {...props}>
|
<SlateElement className="py-2.5" {...props}>
|
||||||
<div style={{ textAlign: align }}>
|
<div style={{ textAlign: align }}>
|
||||||
<figure
|
<figure className="group relative m-0 inline-block cursor-default" style={{ width }}>
|
||||||
className="group relative m-0 inline-block cursor-default"
|
<video className="w-full max-w-full rounded-sm object-cover px-0" src={url} controls />
|
||||||
style={{ width }}
|
|
||||||
>
|
|
||||||
<video
|
|
||||||
className="w-full max-w-full rounded-sm object-cover px-0"
|
|
||||||
src={url}
|
|
||||||
controls
|
|
||||||
/>
|
|
||||||
{caption && <figcaption>{NodeApi.string(caption[0])}</figcaption>}
|
{caption && <figcaption>{NodeApi.string(caption[0])}</figcaption>}
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,9 +8,9 @@ export const BaseAlignKit = [
|
||||||
defaultNodeValue: 'start',
|
defaultNodeValue: 'start',
|
||||||
nodeKey: 'align',
|
nodeKey: 'align',
|
||||||
styleKey: 'textAlign',
|
styleKey: 'textAlign',
|
||||||
validNodeValues: ['start', 'left', 'center', 'right', 'end', 'justify'],
|
validNodeValues: ['start', 'left', 'center', 'right', 'end', 'justify']
|
||||||
},
|
},
|
||||||
targetPlugins: [...KEYS.heading, KEYS.p, KEYS.img, KEYS.mediaEmbed],
|
targetPlugins: [...KEYS.heading, KEYS.p, KEYS.img, KEYS.mediaEmbed]
|
||||||
},
|
}
|
||||||
}),
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,17 +4,17 @@ import {
|
||||||
BaseFontBackgroundColorPlugin,
|
BaseFontBackgroundColorPlugin,
|
||||||
BaseFontColorPlugin,
|
BaseFontColorPlugin,
|
||||||
BaseFontFamilyPlugin,
|
BaseFontFamilyPlugin,
|
||||||
BaseFontSizePlugin,
|
BaseFontSizePlugin
|
||||||
} from '@platejs/basic-styles';
|
} from '@platejs/basic-styles';
|
||||||
import { KEYS } from 'platejs';
|
import { KEYS } from 'platejs';
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
inject: { targetPlugins: [KEYS.p] },
|
inject: { targetPlugins: [KEYS.p] }
|
||||||
} satisfies SlatePluginConfig;
|
} satisfies SlatePluginConfig;
|
||||||
|
|
||||||
export const BaseFontKit = [
|
export const BaseFontKit = [
|
||||||
BaseFontColorPlugin.configure(options),
|
BaseFontColorPlugin.configure(options),
|
||||||
BaseFontBackgroundColorPlugin.configure(options),
|
BaseFontBackgroundColorPlugin.configure(options),
|
||||||
BaseFontSizePlugin.configure(options),
|
BaseFontSizePlugin.configure(options),
|
||||||
BaseFontFamilyPlugin.configure(options),
|
BaseFontFamilyPlugin.configure(options)
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,16 +4,10 @@ import { KEYS } from 'platejs';
|
||||||
export const BaseIndentKit = [
|
export const BaseIndentKit = [
|
||||||
BaseIndentPlugin.configure({
|
BaseIndentPlugin.configure({
|
||||||
inject: {
|
inject: {
|
||||||
targetPlugins: [
|
targetPlugins: [...KEYS.heading, KEYS.p, KEYS.blockquote, KEYS.codeBlock, KEYS.toggle]
|
||||||
...KEYS.heading,
|
|
||||||
KEYS.p,
|
|
||||||
KEYS.blockquote,
|
|
||||||
KEYS.codeBlock,
|
|
||||||
KEYS.toggle,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
offset: 24,
|
offset: 24
|
||||||
},
|
}
|
||||||
}),
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,9 +6,9 @@ export const BaseLineHeightKit = [
|
||||||
inject: {
|
inject: {
|
||||||
nodeProps: {
|
nodeProps: {
|
||||||
defaultNodeValue: 1.5,
|
defaultNodeValue: 1.5,
|
||||||
validNodeValues: [1, 1.2, 1.5, 2, 3],
|
validNodeValues: [1, 1.2, 1.5, 2, 3]
|
||||||
},
|
},
|
||||||
targetPlugins: [...KEYS.heading, KEYS.p],
|
targetPlugins: [...KEYS.heading, KEYS.p]
|
||||||
},
|
}
|
||||||
}),
|
})
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue