@fugood/bricks-project 2.21.0-beta.14.test12 → 2.21.0-beta.14.test14

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.21.0-beta.14.test12",
3
+ "version": "2.21.0-beta.14.test14",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "node scripts/build.js"
package/types/bricks.ts CHANGED
@@ -56,6 +56,12 @@ interface BrickBasicProperty {
56
56
  pressable?: 'enabled' | 'disabled' | 'bypass' | DataLink
57
57
  }
58
58
 
59
+ interface BrickBasicEvents {
60
+ showStart?: Array<EventAction>
61
+ switchUpdate?: Array<EventAction>
62
+ standby?: Array<EventAction>
63
+ }
64
+
59
65
  interface BrickRectDef {
60
66
  /*
61
67
  Default property:
@@ -101,7 +107,7 @@ Default property:
101
107
  /* An optional array of numbers defining the location of each gradient color stop */
102
108
  linearGradientLocations?: Array<number | DataLink> | DataLink
103
109
  }
104
- events?: {
110
+ events?: BrickBasicEvents & {
105
111
  /* Event of the brick press */
106
112
  onPress?: Array<EventAction>
107
113
  /* Event of the brick press in */
@@ -222,7 +228,7 @@ Default property:
222
228
  /* Enable vertical rendering */
223
229
  verticalRendering?: boolean | DataLink
224
230
  }
225
- events?: {
231
+ events?: BrickBasicEvents & {
226
232
  /* Event of the brick press */
227
233
  onPress?: Array<EventAction>
228
234
  /* Event of the brick press in */
@@ -428,7 +434,7 @@ Default property:
428
434
  /* Blur TextInput on submit */
429
435
  blurOnSubmit?: boolean | DataLink
430
436
  }
431
- events?: {
437
+ events?: BrickBasicEvents & {
432
438
  /* Event of the TextInput is focused */
433
439
  onFocus?: Array<EventAction>
434
440
  /* Event of the input field is blurred */
@@ -602,7 +608,7 @@ Default property:
602
608
  h6?: number | DataLink // BRICKS Grid unit
603
609
  }
604
610
  }
605
- events?: {
611
+ events?: BrickBasicEvents & {
606
612
  /* Event of the brick press */
607
613
  onPress?: Array<EventAction>
608
614
  /* Event of the brick press in */
@@ -684,7 +690,7 @@ Default property:
684
690
  /* [Android] The use priority of image loading system (Auto: glide, fallback to fresco if failed) */
685
691
  loadSystemAndroid?: 'auto' | 'glide' | 'fresco' | DataLink
686
692
  }
687
- events?: {
693
+ events?: BrickBasicEvents & {
688
694
  /* Event of the brick press */
689
695
  onPress?: Array<EventAction>
690
696
  /* Event of the brick press in */
@@ -774,7 +780,7 @@ Default property:
774
780
  >
775
781
  | DataLink
776
782
  }
777
- events?: {
783
+ events?: BrickBasicEvents & {
778
784
  /* Event of the brick press */
779
785
  onPress?: Array<EventAction>
780
786
  /* Event of the brick press in */
@@ -851,7 +857,7 @@ Default property:
851
857
  /* Icon secondary color (For Duotone type) */
852
858
  secondaryColor?: string | DataLink
853
859
  }
854
- events?: {
860
+ events?: BrickBasicEvents & {
855
861
  /* Event of the brick press */
856
862
  onPress?: Array<EventAction>
857
863
  /* Event of the brick press in */
@@ -953,7 +959,7 @@ Default property:
953
959
  /* Use what view type for render video (Auto / Texture or Surface). Notice: Although using surface has better performance, it also affects the Animation & Standby Transition used by itself */
954
960
  renderMode?: 'auto' | 'texture' | 'surface' | DataLink
955
961
  }
956
- events?: {
962
+ events?: BrickBasicEvents & {
957
963
  /* Event of the brick press */
958
964
  onPress?: Array<EventAction>
959
965
  /* Event of the brick press in */
@@ -1072,7 +1078,7 @@ Default property:
1072
1078
  /* Timeout to replay if repeat or replayOnError is true and video is end or error */
1073
1079
  replayTimeout?: number | DataLink
1074
1080
  }
1075
- events?: {
1081
+ events?: BrickBasicEvents & {
1076
1082
  /* Event of the brick press */
1077
1083
  onPress?: Array<EventAction>
1078
1084
  /* Event of the brick press in */
@@ -1177,7 +1183,7 @@ Default property:
1177
1183
  /* The logo gets a filled quadratic background with this color. */
1178
1184
  logoBackgroundColor?: string | DataLink
1179
1185
  }
1180
- events?: {
1186
+ events?: BrickBasicEvents & {
1181
1187
  /* Event of the brick press */
1182
1188
  onPress?: Array<EventAction>
1183
1189
  /* Event of the brick press in */
@@ -1323,7 +1329,7 @@ Default property:
1323
1329
  /* The blur radius of the blur filter added to the image background */
1324
1330
  blurBackgroundRadius?: number | DataLink
1325
1331
  }
1326
- events?: {
1332
+ events?: BrickBasicEvents & {
1327
1333
  /* Event of the next slideshow on change start */
1328
1334
  changeStart?: Array<
1329
1335
  EventAction & {
@@ -1730,7 +1736,7 @@ Default property:
1730
1736
  /* Full configuration of options, see https://echarts.apache.org/en/option.html */
1731
1737
  options?: {} | DataLink
1732
1738
  }
1733
- events?: {
1739
+ events?: BrickBasicEvents & {
1734
1740
  /* Event of chart render */
1735
1741
  onRender?: Array<EventAction>
1736
1742
  /* Event of data point on press */
@@ -2121,7 +2127,7 @@ Default property:
2121
2127
  }
2122
2128
  >
2123
2129
  | DataLink
2124
- events?: {
2130
+ events?: BrickBasicEvents & {
2125
2131
  /* Event on page render finished */
2126
2132
  onPageRender?: Array<
2127
2133
  EventAction & {
@@ -2313,7 +2319,7 @@ Default property:
2313
2319
  >
2314
2320
  | DataLink
2315
2321
  }
2316
- events?: {
2322
+ events?: BrickBasicEvents & {
2317
2323
  /* Event of the brick press */
2318
2324
  onPress?: Array<EventAction>
2319
2325
  /* Event of the brick press in */
@@ -2473,7 +2479,7 @@ Default property:
2473
2479
  /* Inject JavaScript code before content loaded for main frame only (only `YES` supported for Android) */
2474
2480
  beforeContentLoadedForMainFrameOnly?: boolean | DataLink
2475
2481
  }
2476
- events?: {
2482
+ events?: BrickBasicEvents & {
2477
2483
  /* Event of the WebView on load */
2478
2484
  onLoad?: Array<
2479
2485
  EventAction & {
@@ -2660,7 +2666,7 @@ Default property:
2660
2666
  /* Max file size of record video (bytes) */
2661
2667
  recordMaxFileSize?: number | DataLink
2662
2668
  }
2663
- events?: {
2669
+ events?: BrickBasicEvents & {
2664
2670
  /* Event of the Camera state change */
2665
2671
  stateChange?: Array<
2666
2672
  EventAction & {
@@ -2982,7 +2988,7 @@ Default property:
2982
2988
  showBoundingBox?: boolean | DataLink
2983
2989
  }
2984
2990
  }
2985
- events?: {
2991
+ events?: BrickBasicEvents & {
2986
2992
  /* Event of error occurred */
2987
2993
  onError?: Array<
2988
2994
  EventAction & {
package/types/subspace.ts CHANGED
@@ -9,7 +9,7 @@ export type Subspace = {
9
9
  id: string
10
10
  title: string
11
11
  description?: string
12
- // Unexpanded in Editor
12
+ // Unexpanded information in Editor
13
13
  unexpanded?: {
14
14
  data?: boolean
15
15
  dataCalculation?: boolean