@starrykit/slides-editor 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/block-manipulation-overlay.d.ts +36 -0
- package/dist/components/color-picker.d.ts +10 -0
- package/dist/components/context-menu.d.ts +26 -0
- package/dist/components/editor-header.d.ts +19 -0
- package/dist/components/editor-workspace.d.ts +88 -0
- package/dist/components/floating-toolbar-attribute-dialog.d.ts +9 -0
- package/dist/components/floating-toolbar-feature.d.ts +8 -0
- package/dist/components/floating-toolbar-fields.d.ts +37 -0
- package/dist/components/floating-toolbar-parts.d.ts +47 -0
- package/dist/components/floating-toolbar-popovers.d.ts +44 -0
- package/dist/components/floating-toolbar-sections.d.ts +19 -0
- package/dist/components/floating-toolbar-types.d.ts +41 -0
- package/dist/components/floating-toolbar.d.ts +4 -0
- package/dist/components/image-crop-overlay.d.ts +9 -0
- package/dist/components/presenter-view.d.ts +14 -0
- package/dist/components/slide-sidebar.d.ts +20 -0
- package/dist/components/stage-canvas.d.ts +88 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/button.d.ts +13 -0
- package/dist/components/ui/context-menu.d.ts +25 -0
- package/dist/components/ui/dialog.d.ts +10 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +9 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/editor-operations.d.ts +17 -0
- package/dist/hooks/block-manipulation-geometry.d.ts +27 -0
- package/dist/hooks/block-manipulation-operations.d.ts +10 -0
- package/dist/hooks/block-manipulation-overlay.d.ts +12 -0
- package/dist/hooks/block-manipulation-types.d.ts +81 -0
- package/dist/hooks/editor-keyboard-geometry.d.ts +22 -0
- package/dist/hooks/editor-keyboard-operations.d.ts +11 -0
- package/dist/hooks/editor-keyboard-types.d.ts +38 -0
- package/dist/hooks/iframe-active-text-session.d.ts +12 -0
- package/dist/hooks/iframe-editing-session.d.ts +10 -0
- package/dist/hooks/iframe-text-document-events.d.ts +26 -0
- package/dist/hooks/iframe-text-editing-dom.d.ts +12 -0
- package/dist/hooks/iframe-text-editing-types.d.ts +38 -0
- package/dist/hooks/object-clipboard-commands.d.ts +28 -0
- package/dist/hooks/use-block-manipulation.d.ts +3 -0
- package/dist/hooks/use-editor-element-actions.d.ts +42 -0
- package/dist/hooks/use-editor-keyboard-shortcuts.d.ts +3 -0
- package/dist/hooks/use-editor-slide-actions.d.ts +21 -0
- package/dist/hooks/use-iframe-text-editing.d.ts +3 -0
- package/dist/hooks/use-image-crop.d.ts +40 -0
- package/dist/hooks/use-marquee-selection.d.ts +17 -0
- package/dist/hooks/use-selection-overlay-actions.d.ts +41 -0
- package/dist/hooks/use-slide-history.d.ts +17 -0
- package/dist/hooks/use-slide-inspector.d.ts +24 -0
- package/dist/hooks/use-slide-thumbnails.d.ts +2 -0
- package/dist/hooks/use-stage-viewport.d.ts +13 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +11508 -0
- package/dist/lib/block-snap-constants.d.ts +8 -0
- package/dist/lib/block-snap-guides.d.ts +6 -0
- package/dist/lib/block-snap-targets.d.ts +13 -0
- package/dist/lib/block-snap-types.d.ts +32 -0
- package/dist/lib/block-snapping.d.ts +17 -0
- package/dist/lib/collect-css-properties.d.ts +5 -0
- package/dist/lib/editor-selection-operations.d.ts +58 -0
- package/dist/lib/editor-selection-structure.d.ts +7 -0
- package/dist/lib/element-tool-commit.d.ts +17 -0
- package/dist/lib/element-tool-model.d.ts +17 -0
- package/dist/lib/element-tool-types.d.ts +35 -0
- package/dist/lib/element-tool-values.d.ts +22 -0
- package/dist/lib/image-crop.d.ts +24 -0
- package/dist/lib/motion.d.ts +8 -0
- package/dist/lib/selection-overlay.d.ts +4 -0
- package/dist/lib/style-controls.d.ts +17 -0
- package/dist/lib/thumbnail-renderer.d.ts +2 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/logo-starry-slides-6GYA6NPA.png +0 -0
- package/package.json +38 -0
- package/src/styles/index.css +88 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type EditableElement, type SlideModel, type StageRect } from "@starrykit/slides-core";
|
|
2
|
+
import type { RefObject } from "react";
|
|
3
|
+
import { type CssPropertyRow } from "../lib/collect-css-properties";
|
|
4
|
+
interface UseSlideInspectorOptions {
|
|
5
|
+
iframeRef: RefObject<HTMLIFrameElement | null>;
|
|
6
|
+
activeSlide: SlideModel | undefined;
|
|
7
|
+
selectedElement: EditableElement | undefined;
|
|
8
|
+
selectedElementIds: string[];
|
|
9
|
+
preselectedElementId: string | null;
|
|
10
|
+
scale: number;
|
|
11
|
+
offsetX: number;
|
|
12
|
+
offsetY: number;
|
|
13
|
+
slideWidth: number;
|
|
14
|
+
slideHeight: number;
|
|
15
|
+
}
|
|
16
|
+
interface SlideInspectorResult {
|
|
17
|
+
selectedStageRect: StageRect | null;
|
|
18
|
+
preselectionOverlay: StageRect | null;
|
|
19
|
+
selectionOverlay: StageRect | null;
|
|
20
|
+
selectionLabel: string;
|
|
21
|
+
inspectedStyles: CssPropertyRow[];
|
|
22
|
+
}
|
|
23
|
+
declare function useSlideInspector({ iframeRef, activeSlide, selectedElement, selectedElementIds, preselectedElementId, scale, offsetX, offsetY, slideWidth, slideHeight, }: UseSlideInspectorOptions): SlideInspectorResult;
|
|
24
|
+
export { useSlideInspector };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RefObject } from "react";
|
|
2
|
+
interface UseStageViewportOptions {
|
|
3
|
+
stageViewportRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
slideWidth: number;
|
|
5
|
+
slideHeight: number;
|
|
6
|
+
}
|
|
7
|
+
interface StageViewportResult {
|
|
8
|
+
offsetX: number;
|
|
9
|
+
offsetY: number;
|
|
10
|
+
scale: number;
|
|
11
|
+
}
|
|
12
|
+
declare function useStageViewport({ stageViewportRef, slideWidth, slideHeight, }: UseStageViewportOptions): StageViewportResult;
|
|
13
|
+
export { useStageViewport };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type PdfExportSelection, type SlideModel } from "@starrykit/slides-core";
|
|
2
|
+
export interface SlidesEditorProps {
|
|
3
|
+
slides: SlideModel[];
|
|
4
|
+
deckTitle?: string;
|
|
5
|
+
isSaving?: boolean;
|
|
6
|
+
onSlidesChange?: (slides: SlideModel[]) => void;
|
|
7
|
+
onDeckTitleChange?: (title: string) => void;
|
|
8
|
+
onExportPdf?: (selection: PdfExportSelection) => void;
|
|
9
|
+
onExportHtml?: () => void;
|
|
10
|
+
onExportSourceFiles?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare function SlidesEditor({ slides: loadedSlides, deckTitle, isSaving, onSlidesChange, onDeckTitleChange, onExportPdf, onExportHtml, onExportSourceFiles, }: SlidesEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { SlidesEditor };
|
|
14
|
+
export * from "@starrykit/slides-core";
|