work-workflow-test 0.0.12 → 0.0.20
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/index.css +1 -1
- package/dist/workflow.es.js +6196 -5449
- package/dist/workflow.umd.js +47 -46
- package/package.json +2 -1
- package/types/components/Condition/constants.d.ts +26 -21
- package/types/components/CustomEdge/CustomEdge.d.ts +2 -1
- package/types/components/CustomNode/OptionFieldNode.d.ts +1 -0
- package/types/components/FlowPreview/index.d.ts +6 -0
- package/types/components/Form/Meeting.d.ts +2 -0
- package/types/components/Form/Task.d.ts +2 -0
- package/types/components/MiniFlow/MiniFlowCanvas.d.ts +2 -0
- package/types/components/MiniFlow/index.d.ts +3 -0
- package/types/components/WorkflowModal/FlowCanvas.d.ts +1 -1
- package/types/components/WorkflowModal/types.d.ts +8 -0
- package/types/constants/enum.d.ts +2 -0
- package/types/index.d.ts +3 -1
- package/types/services/common.service.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "work-workflow-test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/workflow.cjs.js",
|
|
6
6
|
"module": "./dist/workflow.es.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"aws-amplify": "^6.15.4",
|
|
35
35
|
"axios": "^1.11.0",
|
|
36
36
|
"graphql": "^16",
|
|
37
|
+
"html-to-image": "^1.11.13",
|
|
37
38
|
"js-cookie": "^3.0.5",
|
|
38
39
|
"luxon": "^3.7.1",
|
|
39
40
|
"react-hook-form": "^7",
|
|
@@ -288,6 +288,30 @@ export declare const automationData: {
|
|
|
288
288
|
childSegments?: undefined;
|
|
289
289
|
})[];
|
|
290
290
|
};
|
|
291
|
+
add_meeting: {
|
|
292
|
+
key: string;
|
|
293
|
+
segments: ({
|
|
294
|
+
segmentsId: number;
|
|
295
|
+
type: string;
|
|
296
|
+
value: string;
|
|
297
|
+
} | {
|
|
298
|
+
segmentsId: number;
|
|
299
|
+
type: string;
|
|
300
|
+
value?: undefined;
|
|
301
|
+
})[];
|
|
302
|
+
};
|
|
303
|
+
add_task: {
|
|
304
|
+
key: string;
|
|
305
|
+
segments: ({
|
|
306
|
+
segmentsId: number;
|
|
307
|
+
type: string;
|
|
308
|
+
value: string;
|
|
309
|
+
} | {
|
|
310
|
+
segmentsId: number;
|
|
311
|
+
type: string;
|
|
312
|
+
value?: undefined;
|
|
313
|
+
})[];
|
|
314
|
+
};
|
|
291
315
|
};
|
|
292
316
|
export declare const automatoinOption: ({
|
|
293
317
|
key: string;
|
|
@@ -309,7 +333,7 @@ export declare const automatoinOption: ({
|
|
|
309
333
|
valueType: string;
|
|
310
334
|
optionType: string;
|
|
311
335
|
fieldType: string;
|
|
312
|
-
value:
|
|
336
|
+
value: never[];
|
|
313
337
|
childSegments: number[];
|
|
314
338
|
mapSegmentsId?: undefined;
|
|
315
339
|
} | {
|
|
@@ -335,8 +359,6 @@ export declare const automatoinOption: ({
|
|
|
335
359
|
valueType?: undefined;
|
|
336
360
|
optionType?: undefined;
|
|
337
361
|
fieldType?: undefined;
|
|
338
|
-
childSegments?: undefined;
|
|
339
|
-
mapSegmentsId?: undefined;
|
|
340
362
|
} | {
|
|
341
363
|
segmentsId: number;
|
|
342
364
|
type: string;
|
|
@@ -344,17 +366,6 @@ export declare const automatoinOption: ({
|
|
|
344
366
|
optionType: string;
|
|
345
367
|
fieldType: string;
|
|
346
368
|
value: never[];
|
|
347
|
-
childSegments: number[];
|
|
348
|
-
mapSegmentsId?: undefined;
|
|
349
|
-
} | {
|
|
350
|
-
segmentsId: number;
|
|
351
|
-
type: string;
|
|
352
|
-
valueType: string;
|
|
353
|
-
value: string;
|
|
354
|
-
mapSegmentsId: number;
|
|
355
|
-
optionType?: undefined;
|
|
356
|
-
fieldType?: undefined;
|
|
357
|
-
childSegments?: undefined;
|
|
358
369
|
})[];
|
|
359
370
|
};
|
|
360
371
|
} | {
|
|
@@ -366,16 +377,10 @@ export declare const automatoinOption: ({
|
|
|
366
377
|
segmentsId: number;
|
|
367
378
|
type: string;
|
|
368
379
|
value: string;
|
|
369
|
-
valueType?: undefined;
|
|
370
|
-
optionType?: undefined;
|
|
371
|
-
fieldType?: undefined;
|
|
372
380
|
} | {
|
|
373
381
|
segmentsId: number;
|
|
374
382
|
type: string;
|
|
375
|
-
|
|
376
|
-
optionType: string;
|
|
377
|
-
fieldType: string;
|
|
378
|
-
value: never[];
|
|
383
|
+
value?: undefined;
|
|
379
384
|
})[];
|
|
380
385
|
};
|
|
381
386
|
})[];
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const CustomEdge: ({ id, sourceX, sourceY, targetX, targetY, data }: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare const CustomEdge: ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, curvature, data, markerEnd, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MiniCustomEdge: ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
3
|
export default CustomEdge;
|
|
@@ -7,5 +7,5 @@ export interface EdgeData {
|
|
|
7
7
|
requiredColumns: string[];
|
|
8
8
|
condition: string;
|
|
9
9
|
}
|
|
10
|
-
declare const FlowCanvas: ({ setEdges, nodes, edges, onNodesChange, onEdgesChange, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const FlowCanvas: ({ setEdges, nodes, edges, onNodesChange, onEdgesChange, hasMiniMap, hasControls, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default FlowCanvas;
|
|
@@ -40,6 +40,14 @@ export interface ReactFlowModalType {
|
|
|
40
40
|
datasetId: string;
|
|
41
41
|
onClose: () => void;
|
|
42
42
|
}
|
|
43
|
+
export interface MiniFlowType {
|
|
44
|
+
nodes: any;
|
|
45
|
+
edges: any;
|
|
46
|
+
}
|
|
47
|
+
export interface FlowPreviewProps {
|
|
48
|
+
nodes: any[];
|
|
49
|
+
edges: any[];
|
|
50
|
+
}
|
|
43
51
|
export interface AppContextType {
|
|
44
52
|
selectFieldId: string;
|
|
45
53
|
col: any;
|
|
@@ -13,6 +13,8 @@ export declare const AutomationActionType: {
|
|
|
13
13
|
readonly UPDATE_FIELD: "update_field";
|
|
14
14
|
readonly MOVE_RECORD: "move_record";
|
|
15
15
|
readonly COPY_RECORD_TO_OTHER_WORKSPACE: "copy_record_to_other_workspace";
|
|
16
|
+
readonly meeting: "meeting";
|
|
17
|
+
readonly task: "task";
|
|
16
18
|
};
|
|
17
19
|
export type AutomationActionType = (typeof AutomationActionType)[keyof typeof AutomationActionType];
|
|
18
20
|
export declare const SelectIdTypes: {
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "@style/global.scss";
|
|
2
2
|
import "reactflow/dist/style.css";
|
|
3
|
-
export type { ReactFlowModalType } from "./components/WorkflowModal/types";
|
|
3
|
+
export type { ReactFlowModalType, MiniFlowType, FlowPreviewProps, } from "./components/WorkflowModal/types";
|
|
4
4
|
export { default as ReactFlowModal } from "./components/WorkflowModal";
|
|
5
5
|
export { default as FieldAutomationModal } from "./components/FieldAutomationModal";
|
|
6
|
+
export { default as MiniFlow } from "./components/MiniFlow/index";
|
|
7
|
+
export { default as FlowPreview } from "./components/FlowPreview/index";
|
|
@@ -4,3 +4,4 @@ export declare const mainNavigation: (baseUrl: string, path: string) => void;
|
|
|
4
4
|
export declare const setCookie: (name: string, cvalue: string, exdays: number) => void;
|
|
5
5
|
export declare const isDateTodayOrFuture: (dateString: string) => boolean;
|
|
6
6
|
export declare const getDateForTask: (dateStr: string) => string;
|
|
7
|
+
export declare function timeAgoOrDate(inputDate: string | Date): string;
|