@spiffcommerce/core 0.10.111 → 0.10.113
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 +8 -8
- package/dist/module.js +9 -9
- package/dist/types.d.ts +7 -4
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1140,10 +1140,11 @@ export const EditorCore: FunctionComponent<{
|
|
|
1140
1140
|
guidelines: SnapPoint[];
|
|
1141
1141
|
isMakingAdjustments?: boolean;
|
|
1142
1142
|
viewmask?: {
|
|
1143
|
-
x
|
|
1144
|
-
y
|
|
1145
|
-
height
|
|
1146
|
-
width
|
|
1143
|
+
x?: number;
|
|
1144
|
+
y?: number;
|
|
1145
|
+
height?: number;
|
|
1146
|
+
width?: number;
|
|
1147
|
+
backgroundFill?: string;
|
|
1147
1148
|
};
|
|
1148
1149
|
visibleLayoutId: string;
|
|
1149
1150
|
xTranslation: number;
|
|
@@ -1152,6 +1153,7 @@ export const EditorCore: FunctionComponent<{
|
|
|
1152
1153
|
borderRadius?: number;
|
|
1153
1154
|
handleContextMenu?: (e: any) => void;
|
|
1154
1155
|
onMouseMove?: (event: React.MouseEvent<SVGRectElement, MouseEvent>) => void;
|
|
1156
|
+
onContextMenuHandlePointerDown?: (event: PointerEvent) => void;
|
|
1155
1157
|
handleKeyDown: (event: KeyboardEvent, adjustmentBoundary?: Region) => void;
|
|
1156
1158
|
handleKeyUp: (event: KeyboardEvent) => void;
|
|
1157
1159
|
handlePointerMove: (e: PointerEvent, adjustmentBoundary?: Region) => void;
|
|
@@ -1173,6 +1175,7 @@ export const AdvancedEditor: FunctionComponent<{
|
|
|
1173
1175
|
borderRadius?: number;
|
|
1174
1176
|
handleContextMenu?: (event: React.MouseEvent) => void;
|
|
1175
1177
|
onMouseMove?: (event: React.MouseEvent<SVGRectElement, MouseEvent>) => void;
|
|
1178
|
+
onContextMenuHandlePointerDown?: (event: PointerEvent) => void;
|
|
1176
1179
|
onElementSelected?: (id: string | undefined, element: PointerEvent) => void;
|
|
1177
1180
|
}>;
|
|
1178
1181
|
export const createDesign: (workflowManager: WorkflowManager, workflow: _Workflow1, layouts: _ILayout1[], getReducerState: () => _CommandState1, product: Product, transaction: Transaction, workflowSelections: WorkflowSelections, designName: string, onProgressUpdate: DesignCreationProgressUpdate, updateVariationRecords: (variationRecords: VariationRecord[]) => Promise<void>, variationRecords: VariationRecord[], createPreviewImage: (shouldRender3D?: boolean) => Promise<string>, workflowMetadata?: WorkflowMetadata) => Promise<DesignCreationMessage>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spiffcommerce/core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.113",
|
|
4
4
|
"description": "Core client API for interacting with the Spiff Commerce backend.",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@apollo/client": "^3.7.0",
|
|
83
|
-
"@spiffcommerce/papyrus": "^1.5.
|
|
83
|
+
"@spiffcommerce/papyrus": "^1.5.36",
|
|
84
84
|
"canvg": "https://github.com/spiffdev/canvg.git#03bcd151b12441e88ecb552bb658356f5bbe92c4",
|
|
85
85
|
"cross-fetch": "^3.1.5",
|
|
86
86
|
"graphql": "^16.6.0",
|