@fugood/bricks-project 2.23.0-beta.2 → 2.23.0-beta.4
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.4",
|
|
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": "60e1e023f5bcd5bacfcad631994462a8dcab9d47"
|
|
18
18
|
}
|
|
@@ -15,6 +15,7 @@ Default property:
|
|
|
15
15
|
{
|
|
16
16
|
"enabled": true,
|
|
17
17
|
"keyMap": {},
|
|
18
|
+
"keyOutletPrefer": "auto",
|
|
18
19
|
"batchStopKeys": [
|
|
19
20
|
13
|
|
20
21
|
],
|
|
@@ -24,15 +25,18 @@ Default property:
|
|
|
24
25
|
property?: {
|
|
25
26
|
/* Enable listening for input */
|
|
26
27
|
enabled?: boolean | DataLink
|
|
27
|
-
/* Key map to transform key or key code to the designated content
|
|
28
|
+
/* Key map to transform key or key code to the designated content
|
|
29
|
+
Example: { 37: 'left', 38: 'up', 39: 'right', 40: 'down', 'Enter': 'confirm' }
|
|
30
|
+
Supports both key codes (numbers) and key names (strings) as keys */
|
|
28
31
|
keyMap?: {} | DataLink
|
|
29
32
|
/* Key outlet preference use key code or key. */
|
|
30
33
|
keyOutletPrefer?: 'auto' | 'key-code' | 'key' | DataLink
|
|
31
|
-
/* Key or code to finish
|
|
34
|
+
/* Key or code to finish batch input
|
|
35
|
+
Common values: 13 (Enter), 27 (Escape), 'Enter', 'Escape' */
|
|
32
36
|
batchStopKeys?: Array<string | DataLink | number | DataLink | DataLink> | DataLink
|
|
33
|
-
/* Debounce time (ms) to finish
|
|
37
|
+
/* Debounce time (ms) to finish batch input */
|
|
34
38
|
batchDebounce?: number | DataLink
|
|
35
|
-
/* Maximum wait time (ms) to finish
|
|
39
|
+
/* Maximum wait time (ms) to finish batch input (default: unlimited) */
|
|
36
40
|
batchDebounceMaxWait?: number | DataLink
|
|
37
41
|
}
|
|
38
42
|
events?: {
|
|
@@ -40,7 +44,7 @@ Default property:
|
|
|
40
44
|
onDown?: Array<EventAction>
|
|
41
45
|
/* Event on key up */
|
|
42
46
|
onUp?: Array<EventAction>
|
|
43
|
-
/* Event on
|
|
47
|
+
/* Event on batch input complete */
|
|
44
48
|
onBatch?: Array<EventAction>
|
|
45
49
|
}
|
|
46
50
|
outlets?: {
|
|
@@ -52,7 +56,7 @@ Default property:
|
|
|
52
56
|
lastKeyUp?: () => Data
|
|
53
57
|
/* Modifier key information on last key release */
|
|
54
58
|
lastKeyUpFlags?: () => Data
|
|
55
|
-
/* Last
|
|
59
|
+
/* Last batch event */
|
|
56
60
|
lastBatchEvents?: () => Data
|
|
57
61
|
}
|
|
58
62
|
}
|
|
@@ -29,7 +29,7 @@ Default property:
|
|
|
29
29
|
init?: boolean | DataLink
|
|
30
30
|
/* URL of crawler request */
|
|
31
31
|
url?: string | DataLink
|
|
32
|
-
/*
|
|
32
|
+
/* Method of crawler request
|
|
33
33
|
|
|
34
34
|
Platform not supported for `webview`: tvOS, Desktop, Web */
|
|
35
35
|
method?: 'webview' | 'http' | DataLink
|
package/utils/event-props.ts
CHANGED
|
@@ -234,7 +234,7 @@ export const templateEventPropsMap = {
|
|
|
234
234
|
'GENERATOR_ALARM_CLOCK_CURRENT_TIME', // type: string
|
|
235
235
|
'GENERATOR_ALARM_CLOCK_CURRENT_TIMESTAMP', // type: number
|
|
236
236
|
'GENERATOR_ALARM_CLOCK_REASON', // type: string
|
|
237
|
-
'GENERATOR_ALARM_CLOCK_MAX_TRIGS', // type:
|
|
237
|
+
'GENERATOR_ALARM_CLOCK_MAX_TRIGS', // type: number
|
|
238
238
|
'GENERATOR_ALARM_CLOCK_STOP_AT', // type: string
|
|
239
239
|
],
|
|
240
240
|
},
|