@pixerate/editor 0.9.0 → 0.10.0
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/agent/index.cjs +512 -0
- package/dist/agent/index.cjs.map +1 -0
- package/dist/agent/index.d.cts +369 -0
- package/dist/agent/index.d.ts +369 -0
- package/dist/agent/index.js +471 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/canvas/index.cjs +797 -0
- package/dist/canvas/index.cjs.map +1 -0
- package/dist/canvas/index.d.cts +187 -0
- package/dist/canvas/index.d.ts +187 -0
- package/dist/canvas/index.js +731 -0
- package/dist/canvas/index.js.map +1 -0
- package/dist/index.cjs +1082 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.js +1047 -4
- package/dist/index.js.map +1 -1
- package/dist/types-lGtRobRV.d.cts +213 -0
- package/dist/types-lGtRobRV.d.ts +213 -0
- package/package.json +13 -1
package/dist/index.d.cts
CHANGED
|
@@ -8,6 +8,9 @@ import { Editor, EditorOptions, Content, Extensions } from '@tiptap/core';
|
|
|
8
8
|
export { Content, Editor, EditorOptions, Extensions } from '@tiptap/core';
|
|
9
9
|
export { ASTNode, BinaryOpNode, CellCoordinate, CellData, CellDep, CellFormat, CellRange, CellRefNode, ColumnBinding, ColumnType, DataSourceBinder, DependencyGraph, EvaluationContext, FormulaEvaluator, FormulaParser, FormulaToken, FormulaTokenType, FunctionCallNode, LiteralNode, PropertyRefNode, RangeNode, RowType, SpreadsheetColumn, SpreadsheetController, SpreadsheetControllerOptions, SpreadsheetDataSource, SpreadsheetDataSourceField, SpreadsheetDocument, SpreadsheetRow, UnaryOpNode, colNameToIndex, extractCellDependencies, indexToColName, parseCellReference, parseFormula, parseRange, tokenizeFormula } from './spreadsheet/index.cjs';
|
|
10
10
|
export { Command, HistoryManager, HistoryManagerOptions, HistoryState, MergedExecutionOptions, SnapshotCommandOptions, createHistoryManager } from './history/index.cjs';
|
|
11
|
+
export { C as CanvasClipboardPayload, a as CanvasDockingCallbacks, b as CanvasEdge, c as CanvasLayoutOptions, d as CanvasNode, e as CollapseNodeOptions, D as DirectionalDisplacementOptions, f as DisplacementDirection, g as DockStrategy, E as ExplodeNodeOptions, h as ExplosionSnapshot, F as FanOutTrajectoryOptions, G as GraphDifferences, I as IncrementalLayoutOptions, N as NodeTransition, P as PlaceBesideOptions, i as Point, j as Position, R as Rect, k as ReflowDisplacementOptions, S as Side, T as TrajectoryFunction, l as TrajectoryPoint, X as XYPosition } from './types-lGtRobRV.cjs';
|
|
12
|
+
export { DEFAULT_NODE_HEIGHT, DEFAULT_NODE_WIDTH, DEFAULT_PLACEMENT_GAP, StreamingLayoutManager, StreamingLayoutManagerOptions, boundsOf, calculateDagreReflowDisplacement, calculateDirectionalDisplacement, centerNodes, centre, computeNodesBoundingBox, createBezierTrajectory, createFanOutTrajectory, defaultEasing, ensureLayout, estimateNodeSize, flowSide, getCenteredNodePosition, getLayoutedNodes, isEventFromTextInput, isValidCanvasNode, isValidUrl, linearPositionTrajectory, linearTrajectory, overlaps, parseCanvasClipboardData, placeBeside, remapPastedNodes, repositionNodesTo, runMultiNodeTransition, serializeCanvasNodes } from './canvas/index.cjs';
|
|
13
|
+
export { AgentCommand, AgentPresence, AgentStep, EDITOR_MCP_TOOLS, EditorSnapshot, MCP_TOOL_EDIT_CANVAS, MCP_TOOL_EDIT_PROMPT, MCP_TOOL_GET_EDITOR_STATE, planAgentCommand } from './agent/index.cjs';
|
|
11
14
|
export { MarkdownOptions } from 'tiptap-markdown';
|
|
12
15
|
import '@tiptap/pm/view';
|
|
13
16
|
import '@tiptap/pm/model';
|
|
@@ -103,4 +106,36 @@ declare class DirtyTracker<T = unknown> {
|
|
|
103
106
|
*/
|
|
104
107
|
declare function createDirtyTracker<T>(initialBaseline: T, options?: DirtyTrackerOptions<T> | ((a: T, b: T) => boolean)): DirtyTracker<T>;
|
|
105
108
|
|
|
106
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Shared slot definitions for design system component inversion.
|
|
111
|
+
* Allows consumers in React or Svelte to inject their own design system components
|
|
112
|
+
* (Tailwind, Radix, Shadcn, Carbon, Melt, etc.) into @pixerate/editor without forking.
|
|
113
|
+
*/
|
|
114
|
+
interface BaseSlotProps {
|
|
115
|
+
className?: string;
|
|
116
|
+
children?: any;
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
}
|
|
119
|
+
interface ButtonSlotProps extends BaseSlotProps {
|
|
120
|
+
variant?: 'default' | 'primary' | 'ghost' | 'outline' | 'danger';
|
|
121
|
+
size?: 'sm' | 'md' | 'lg';
|
|
122
|
+
disabled?: boolean;
|
|
123
|
+
onClick?: (e: any) => void;
|
|
124
|
+
}
|
|
125
|
+
interface TooltipSlotProps extends BaseSlotProps {
|
|
126
|
+
content: any;
|
|
127
|
+
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
128
|
+
}
|
|
129
|
+
interface NodeHeaderSlotProps extends BaseSlotProps {
|
|
130
|
+
title: string;
|
|
131
|
+
icon?: any;
|
|
132
|
+
onClose?: () => void;
|
|
133
|
+
}
|
|
134
|
+
interface EditorSlotsMap {
|
|
135
|
+
Button?: (props: ButtonSlotProps) => any;
|
|
136
|
+
Tooltip?: (props: TooltipSlotProps) => any;
|
|
137
|
+
NodeHeader?: (props: NodeHeaderSlotProps) => any;
|
|
138
|
+
[customSlot: string]: ((props: any) => any) | undefined;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { type BaseSlotProps, type ButtonSlotProps, DirtyTracker, type DirtyTrackerOptions, EditorController, type EditorControllerOptions, type EditorSlotsMap, type NodeHeaderSlotProps, Token, type TooltipSlotProps, createDirtyTracker, createEditor, defaultIsEqual };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ import { Editor, EditorOptions, Content, Extensions } from '@tiptap/core';
|
|
|
8
8
|
export { Content, Editor, EditorOptions, Extensions } from '@tiptap/core';
|
|
9
9
|
export { ASTNode, BinaryOpNode, CellCoordinate, CellData, CellDep, CellFormat, CellRange, CellRefNode, ColumnBinding, ColumnType, DataSourceBinder, DependencyGraph, EvaluationContext, FormulaEvaluator, FormulaParser, FormulaToken, FormulaTokenType, FunctionCallNode, LiteralNode, PropertyRefNode, RangeNode, RowType, SpreadsheetColumn, SpreadsheetController, SpreadsheetControllerOptions, SpreadsheetDataSource, SpreadsheetDataSourceField, SpreadsheetDocument, SpreadsheetRow, UnaryOpNode, colNameToIndex, extractCellDependencies, indexToColName, parseCellReference, parseFormula, parseRange, tokenizeFormula } from './spreadsheet/index.js';
|
|
10
10
|
export { Command, HistoryManager, HistoryManagerOptions, HistoryState, MergedExecutionOptions, SnapshotCommandOptions, createHistoryManager } from './history/index.js';
|
|
11
|
+
export { C as CanvasClipboardPayload, a as CanvasDockingCallbacks, b as CanvasEdge, c as CanvasLayoutOptions, d as CanvasNode, e as CollapseNodeOptions, D as DirectionalDisplacementOptions, f as DisplacementDirection, g as DockStrategy, E as ExplodeNodeOptions, h as ExplosionSnapshot, F as FanOutTrajectoryOptions, G as GraphDifferences, I as IncrementalLayoutOptions, N as NodeTransition, P as PlaceBesideOptions, i as Point, j as Position, R as Rect, k as ReflowDisplacementOptions, S as Side, T as TrajectoryFunction, l as TrajectoryPoint, X as XYPosition } from './types-lGtRobRV.js';
|
|
12
|
+
export { DEFAULT_NODE_HEIGHT, DEFAULT_NODE_WIDTH, DEFAULT_PLACEMENT_GAP, StreamingLayoutManager, StreamingLayoutManagerOptions, boundsOf, calculateDagreReflowDisplacement, calculateDirectionalDisplacement, centerNodes, centre, computeNodesBoundingBox, createBezierTrajectory, createFanOutTrajectory, defaultEasing, ensureLayout, estimateNodeSize, flowSide, getCenteredNodePosition, getLayoutedNodes, isEventFromTextInput, isValidCanvasNode, isValidUrl, linearPositionTrajectory, linearTrajectory, overlaps, parseCanvasClipboardData, placeBeside, remapPastedNodes, repositionNodesTo, runMultiNodeTransition, serializeCanvasNodes } from './canvas/index.js';
|
|
13
|
+
export { AgentCommand, AgentPresence, AgentStep, EDITOR_MCP_TOOLS, EditorSnapshot, MCP_TOOL_EDIT_CANVAS, MCP_TOOL_EDIT_PROMPT, MCP_TOOL_GET_EDITOR_STATE, planAgentCommand } from './agent/index.js';
|
|
11
14
|
export { MarkdownOptions } from 'tiptap-markdown';
|
|
12
15
|
import '@tiptap/pm/view';
|
|
13
16
|
import '@tiptap/pm/model';
|
|
@@ -103,4 +106,36 @@ declare class DirtyTracker<T = unknown> {
|
|
|
103
106
|
*/
|
|
104
107
|
declare function createDirtyTracker<T>(initialBaseline: T, options?: DirtyTrackerOptions<T> | ((a: T, b: T) => boolean)): DirtyTracker<T>;
|
|
105
108
|
|
|
106
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Shared slot definitions for design system component inversion.
|
|
111
|
+
* Allows consumers in React or Svelte to inject their own design system components
|
|
112
|
+
* (Tailwind, Radix, Shadcn, Carbon, Melt, etc.) into @pixerate/editor without forking.
|
|
113
|
+
*/
|
|
114
|
+
interface BaseSlotProps {
|
|
115
|
+
className?: string;
|
|
116
|
+
children?: any;
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
}
|
|
119
|
+
interface ButtonSlotProps extends BaseSlotProps {
|
|
120
|
+
variant?: 'default' | 'primary' | 'ghost' | 'outline' | 'danger';
|
|
121
|
+
size?: 'sm' | 'md' | 'lg';
|
|
122
|
+
disabled?: boolean;
|
|
123
|
+
onClick?: (e: any) => void;
|
|
124
|
+
}
|
|
125
|
+
interface TooltipSlotProps extends BaseSlotProps {
|
|
126
|
+
content: any;
|
|
127
|
+
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
128
|
+
}
|
|
129
|
+
interface NodeHeaderSlotProps extends BaseSlotProps {
|
|
130
|
+
title: string;
|
|
131
|
+
icon?: any;
|
|
132
|
+
onClose?: () => void;
|
|
133
|
+
}
|
|
134
|
+
interface EditorSlotsMap {
|
|
135
|
+
Button?: (props: ButtonSlotProps) => any;
|
|
136
|
+
Tooltip?: (props: TooltipSlotProps) => any;
|
|
137
|
+
NodeHeader?: (props: NodeHeaderSlotProps) => any;
|
|
138
|
+
[customSlot: string]: ((props: any) => any) | undefined;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { type BaseSlotProps, type ButtonSlotProps, DirtyTracker, type DirtyTrackerOptions, EditorController, type EditorControllerOptions, type EditorSlotsMap, type NodeHeaderSlotProps, Token, type TooltipSlotProps, createDirtyTracker, createEditor, defaultIsEqual };
|