24 lines
1.0 KiB
TypeScript
24 lines
1.0 KiB
TypeScript
import type { SlideElement } from "@/components/slide-editor/types";
|
|
|
|
export type ExportMode = "native" | "keynote" | "raster";
|
|
export type TextSlideElement = Extract<SlideElement, { type: "text" }>;
|
|
export type BulletsSlideElement = Extract<SlideElement, { type: "text-list" }>;
|
|
export type ImageSlideElement = Extract<SlideElement, { type: "image" }>;
|
|
export type LineSlideElement = Extract<SlideElement, { type: "line" }>;
|
|
export type ShapeSlideElement = Extract<
|
|
SlideElement,
|
|
{ type: "rectangle" | "ellipse" }
|
|
>;
|
|
export type TableSlideElement = Extract<SlideElement, { type: "table" }>;
|
|
export type ChartSlideElement = Extract<SlideElement, { type: "chart" }>;
|
|
export type SvgSlideElement = Extract<SlideElement, { type: "svg" }>;
|
|
export type TableCellSelection = {
|
|
elementIndex: number;
|
|
elementPath?: string | null;
|
|
rowIndex: number;
|
|
colIndex: number;
|
|
};
|
|
|
|
export { useTableCellSelection } from "@/components/slide-editor/tables/useTableCellSelection";
|
|
export { useTemplateV2InlineEditing } from "@/components/slide-editor/state/useTemplateV2InlineEditing";
|