@fugood/bricks-project 2.23.0-beta.3 → 2.23.0-beta.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.23.0-beta.
|
|
3
|
+
"version": "2.23.0-beta.5",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node scripts/build.js"
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"lodash": "^4.17.4",
|
|
15
15
|
"uuid": "^8.3.1"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "e21c486d1adc6c02aa06847398a5444b21b6c746"
|
|
18
18
|
}
|
|
@@ -31,10 +31,21 @@ Default property:
|
|
|
31
31
|
>
|
|
32
32
|
| DataLink
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
events?: {
|
|
35
|
+
/* Event triggered when a rule matches and canvas navigation occurs */
|
|
36
|
+
onNavigate?: Array<EventAction>
|
|
37
|
+
}
|
|
38
|
+
outlets?: {
|
|
39
|
+
/* Last matched trigger rule that caused canvas navigation */
|
|
40
|
+
lastMatchedRule?: () => Data
|
|
41
|
+
/* Index of the last matched rule in triggerList */
|
|
42
|
+
lastMatchedIndex?: () => Data
|
|
43
|
+
/* Total count of canvas navigations triggered by this generator */
|
|
44
|
+
navigationCount?: () => Data
|
|
45
|
+
}
|
|
35
46
|
}
|
|
36
47
|
|
|
37
|
-
/* Trigger
|
|
48
|
+
/* Trigger canvas navigation by setup rules */
|
|
38
49
|
export type GeneratorCanvasMap = Generator &
|
|
39
50
|
GeneratorCanvasMapDef & {
|
|
40
51
|
templateKey: 'GENERATOR_CANVAS_MAP'
|
|
@@ -48,7 +59,7 @@ export type GeneratorCanvasMap = Generator &
|
|
|
48
59
|
| SwitchCondData
|
|
49
60
|
| {
|
|
50
61
|
__typename: 'SwitchCondInnerStateOutlet'
|
|
51
|
-
outlet: ''
|
|
62
|
+
outlet: 'lastMatchedRule' | 'lastMatchedIndex' | 'navigationCount'
|
|
52
63
|
value: any
|
|
53
64
|
}
|
|
54
65
|
}>
|
package/utils/event-props.ts
CHANGED
|
@@ -371,7 +371,16 @@ export const templateEventPropsMap = {
|
|
|
371
371
|
'GENERATOR_WEB_SOCKET_MESSAGE', // type: any
|
|
372
372
|
],
|
|
373
373
|
},
|
|
374
|
-
|
|
374
|
+
GENERATOR_CANVAS_MAP: {
|
|
375
|
+
onNavigate: [
|
|
376
|
+
'GENERATOR_CANVAS_MAP_MATCHED_RULE', // type: object
|
|
377
|
+
'GENERATOR_CANVAS_MAP_MATCHED_INDEX', // type: number
|
|
378
|
+
'GENERATOR_CANVAS_MAP_TARGET_CANVAS_ID', // type: string
|
|
379
|
+
'GENERATOR_CANVAS_MAP_TARGET_CANVAS_TITLE_LIKE', // type: string
|
|
380
|
+
'GENERATOR_CANVAS_MAP_PROPERTY_VALUE', // type: any
|
|
381
|
+
'GENERATOR_CANVAS_MAP_PREVIOUS_VALUE', // type: any
|
|
382
|
+
],
|
|
383
|
+
},
|
|
375
384
|
GENERATOR_STEP: {
|
|
376
385
|
onStep: [
|
|
377
386
|
'GENERATOR_STEP_PAYLOAD', // type: string
|