From ab887f6e85dae0395c900e7554e2b00cd28325f7 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Fri, 1 Aug 2025 23:32:59 -0600 Subject: [PATCH] fix imports --- apps/trigger/package.json | 2 +- .../report-playground/ReportPlayground.tsx | 2 +- .../report/elements/MediaVideoNodeStatic.tsx | 18 +++--------------- .../ui/report/plugins/align-base-kit.tsx | 8 ++++---- .../ui/report/plugins/font-base-kit.tsx | 6 +++--- .../ui/report/plugins/indent-base-kit.tsx | 14 ++++---------- .../ui/report/plugins/line-height-base-kit.tsx | 8 ++++---- 7 files changed, 20 insertions(+), 38 deletions(-) diff --git a/apps/trigger/package.json b/apps/trigger/package.json index 498610b5a..21bd97396 100644 --- a/apps/trigger/package.json +++ b/apps/trigger/package.json @@ -40,4 +40,4 @@ "devDependencies": { "@trigger.dev/build": "4.0.0-v4-beta.26" } -} \ No newline at end of file +} diff --git a/apps/web/src/app/test/report-playground/ReportPlayground.tsx b/apps/web/src/app/test/report-playground/ReportPlayground.tsx index aa8ed2d02..b29822570 100644 --- a/apps/web/src/app/test/report-playground/ReportPlayground.tsx +++ b/apps/web/src/app/test/report-playground/ReportPlayground.tsx @@ -11,7 +11,7 @@ import { useThemesConfig } from '@/components/ui/report/ThemeWrapper/useThemesCo import { cn } from '@/lib/utils'; 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 diff --git a/apps/web/src/components/ui/report/elements/MediaVideoNodeStatic.tsx b/apps/web/src/components/ui/report/elements/MediaVideoNodeStatic.tsx index 6b3a85c55..853857a4a 100644 --- a/apps/web/src/components/ui/report/elements/MediaVideoNodeStatic.tsx +++ b/apps/web/src/components/ui/report/elements/MediaVideoNodeStatic.tsx @@ -1,11 +1,6 @@ import * as React from 'react'; -import type { - SlateElementProps, - TCaptionElement, - TResizableProps, - TVideoElement, -} from 'platejs'; +import type { SlateElementProps, TCaptionElement, TResizableProps, TVideoElement } from 'platejs'; import { NodeApi, SlateElement } from 'platejs'; @@ -17,15 +12,8 @@ export function VideoElementStatic( return (
-
-
diff --git a/apps/web/src/components/ui/report/plugins/align-base-kit.tsx b/apps/web/src/components/ui/report/plugins/align-base-kit.tsx index 460241b4d..d812bbbcc 100644 --- a/apps/web/src/components/ui/report/plugins/align-base-kit.tsx +++ b/apps/web/src/components/ui/report/plugins/align-base-kit.tsx @@ -8,9 +8,9 @@ export const BaseAlignKit = [ defaultNodeValue: 'start', nodeKey: 'align', 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] + } + }) ]; diff --git a/apps/web/src/components/ui/report/plugins/font-base-kit.tsx b/apps/web/src/components/ui/report/plugins/font-base-kit.tsx index e996ffafc..635b7d38d 100644 --- a/apps/web/src/components/ui/report/plugins/font-base-kit.tsx +++ b/apps/web/src/components/ui/report/plugins/font-base-kit.tsx @@ -4,17 +4,17 @@ import { BaseFontBackgroundColorPlugin, BaseFontColorPlugin, BaseFontFamilyPlugin, - BaseFontSizePlugin, + BaseFontSizePlugin } from '@platejs/basic-styles'; import { KEYS } from 'platejs'; const options = { - inject: { targetPlugins: [KEYS.p] }, + inject: { targetPlugins: [KEYS.p] } } satisfies SlatePluginConfig; export const BaseFontKit = [ BaseFontColorPlugin.configure(options), BaseFontBackgroundColorPlugin.configure(options), BaseFontSizePlugin.configure(options), - BaseFontFamilyPlugin.configure(options), + BaseFontFamilyPlugin.configure(options) ]; diff --git a/apps/web/src/components/ui/report/plugins/indent-base-kit.tsx b/apps/web/src/components/ui/report/plugins/indent-base-kit.tsx index 8c899a1f4..06bab3d82 100644 --- a/apps/web/src/components/ui/report/plugins/indent-base-kit.tsx +++ b/apps/web/src/components/ui/report/plugins/indent-base-kit.tsx @@ -4,16 +4,10 @@ import { KEYS } from 'platejs'; export const BaseIndentKit = [ BaseIndentPlugin.configure({ inject: { - targetPlugins: [ - ...KEYS.heading, - KEYS.p, - KEYS.blockquote, - KEYS.codeBlock, - KEYS.toggle, - ], + targetPlugins: [...KEYS.heading, KEYS.p, KEYS.blockquote, KEYS.codeBlock, KEYS.toggle] }, options: { - offset: 24, - }, - }), + offset: 24 + } + }) ]; diff --git a/apps/web/src/components/ui/report/plugins/line-height-base-kit.tsx b/apps/web/src/components/ui/report/plugins/line-height-base-kit.tsx index b8682468c..715e1a45d 100644 --- a/apps/web/src/components/ui/report/plugins/line-height-base-kit.tsx +++ b/apps/web/src/components/ui/report/plugins/line-height-base-kit.tsx @@ -6,9 +6,9 @@ export const BaseLineHeightKit = [ inject: { nodeProps: { 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] + } + }) ];