@spiffcommerce/core 10.1.8 → 10.2.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/main.js +13 -13
- package/dist/module.js +12 -12
- package/dist/types.d.ts +8 -8
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1237,7 +1237,7 @@ export const useEditorState: () => {
|
|
|
1237
1237
|
* The minimum zoom that can be applied to a canvas.
|
|
1238
1238
|
*/
|
|
1239
1239
|
export const minZoom = 0.5;
|
|
1240
|
-
export const useEditorInteraction: (editorRef: RefObject<SVGRectElement>, interactionRef: RefObject<HTMLDivElement>, zoomableElementRef: RefObject<HTMLDivElement>, defaultAdjustmentZoom: number | undefined, mode: "adjustment" | "advanced", canvasDispatcher: CommandDispatcher, guidelinePrimaryColor?: string, onSequenceComplete?: () => void) => {
|
|
1240
|
+
export const useEditorInteraction: (editorRef: RefObject<SVGRectElement>, interactionRef: RefObject<HTMLDivElement>, zoomableElementRef: RefObject<HTMLDivElement>, defaultAdjustmentZoom: number | undefined, mode: "adjustment" | "advanced", canvasDispatcher: CommandDispatcher, breakpoint: string, guidelinePrimaryColor?: string, onSequenceComplete?: () => void) => {
|
|
1241
1241
|
guidelines: SnapPoint[];
|
|
1242
1242
|
scale: number;
|
|
1243
1243
|
zoomableElementRef: RefObject<HTMLDivElement>;
|
|
@@ -1301,18 +1301,18 @@ export const EditorCore: FunctionComponent<{
|
|
|
1301
1301
|
* with more granular control such as toolbars, direct element manipulation, and more.
|
|
1302
1302
|
*/
|
|
1303
1303
|
export const AdvancedEditor: FunctionComponent<{
|
|
1304
|
-
isMobile: boolean;
|
|
1305
|
-
color?: string;
|
|
1306
|
-
outlineColor?: string;
|
|
1307
|
-
guidelineColor?: string;
|
|
1308
1304
|
borderRadius?: number;
|
|
1309
1305
|
canvasFilter?: string;
|
|
1310
|
-
|
|
1306
|
+
color?: string;
|
|
1307
|
+
guidelineColor?: string;
|
|
1311
1308
|
handleContextMenu?: (event: React.MouseEvent) => void;
|
|
1312
|
-
|
|
1309
|
+
hideEditableAreaRect?: boolean;
|
|
1310
|
+
isMobile: boolean;
|
|
1313
1311
|
onContextMenuHandlePointerDown?: (event: PointerEvent) => void;
|
|
1314
|
-
onElementSelected?: (id: string | undefined, element: PointerEvent) => void;
|
|
1315
1312
|
onDragEnd?: () => void;
|
|
1313
|
+
onElementSelected?: (id: string | undefined, element: PointerEvent) => void;
|
|
1314
|
+
onMouseMove?: (event: React.MouseEvent<SVGRectElement, MouseEvent>) => void;
|
|
1315
|
+
outlineColor?: string;
|
|
1316
1316
|
variationRecord: null | VariationRecord;
|
|
1317
1317
|
workflow: _Workflow1;
|
|
1318
1318
|
}>;
|