@fugood/bricks-ctor 2.25.0-beta.60 → 2.25.0-beta.61

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.
Files changed (190) hide show
  1. package/package.json +4 -28
  2. package/tools/deploy.ts +19 -176
  3. package/tools/mcp-server.ts +16 -33
  4. package/tools/postinstall.ts +21 -292
  5. package/tools/pull.ts +15 -195
  6. package/tools/push-config.ts +18 -113
  7. package/tools/simulator.ts +19 -148
  8. package/compile/__tests__/config-diff.test.js +0 -100
  9. package/compile/__tests__/index.test.js +0 -461
  10. package/compile/__tests__/util.test.js +0 -450
  11. package/compile/action-name-map.ts +0 -1079
  12. package/compile/config-diff.ts +0 -155
  13. package/compile/index.ts +0 -1594
  14. package/compile/util.ts +0 -482
  15. package/index.ts +0 -6
  16. package/skills/bricks-ctor/SKILL.md +0 -38
  17. package/skills/bricks-ctor/references/animation.md +0 -160
  18. package/skills/bricks-ctor/references/architecture-patterns.md +0 -88
  19. package/skills/bricks-ctor/references/automations.md +0 -232
  20. package/skills/bricks-ctor/references/buttress.md +0 -245
  21. package/skills/bricks-ctor/references/data-calculation.md +0 -252
  22. package/skills/bricks-ctor/references/local-sync.md +0 -129
  23. package/skills/bricks-ctor/references/media-flow.md +0 -165
  24. package/skills/bricks-ctor/references/remote-data-bank.md +0 -196
  25. package/skills/bricks-ctor/references/simulator.md +0 -132
  26. package/skills/bricks-ctor/references/source-editing-tools.md +0 -81
  27. package/skills/bricks-ctor/references/standby-transition.md +0 -124
  28. package/skills/bricks-ctor/references/verification-toolchain.md +0 -200
  29. package/skills/bricks-design/SKILL.md +0 -171
  30. package/skills/bricks-design/references/architecture-truths.md +0 -132
  31. package/skills/bricks-design/references/avoiding-complexity.md +0 -91
  32. package/skills/bricks-design/references/design-critique.md +0 -195
  33. package/skills/bricks-design/references/design-languages.md +0 -265
  34. package/skills/bricks-design/references/performance.md +0 -116
  35. package/skills/bricks-design/references/presentation-and-slideshow.md +0 -137
  36. package/skills/bricks-design/references/translating-inputs.md +0 -152
  37. package/skills/bricks-design/references/variations-and-tweaks.md +0 -124
  38. package/skills/bricks-design/references/when-the-brief-is-branded.md +0 -284
  39. package/skills/bricks-design/references/when-the-brief-is-vague.md +0 -85
  40. package/skills/bricks-design/references/workflow.md +0 -134
  41. package/skills/bricks-ux/SKILL.md +0 -114
  42. package/skills/bricks-ux/references/accessibility.md +0 -162
  43. package/skills/bricks-ux/references/flow-states.md +0 -175
  44. package/skills/bricks-ux/references/interaction-archetypes.md +0 -189
  45. package/skills/bricks-ux/references/monitoring-screens.md +0 -153
  46. package/skills/bricks-ux/references/pressable-composition.md +0 -126
  47. package/skills/bricks-ux/references/user-journey.md +0 -168
  48. package/skills/bricks-ux/references/ux-critique.md +0 -256
  49. package/skills/rive-marketplace/SKILL.md +0 -99
  50. package/tools/__tests__/_cli-error.test.ts +0 -35
  51. package/tools/__tests__/_mcp-config.test.ts +0 -67
  52. package/tools/__tests__/pull.test.ts +0 -108
  53. package/tools/_cli-error.ts +0 -17
  54. package/tools/_edits-log.ts +0 -41
  55. package/tools/_git-author.ts +0 -37
  56. package/tools/_last-pushed-commit.ts +0 -28
  57. package/tools/_mcp-config.ts +0 -42
  58. package/tools/_shell.ts +0 -180
  59. package/tools/icons/.gitattributes +0 -1
  60. package/tools/icons/fa6pro-glyphmap.json +0 -4686
  61. package/tools/icons/fa6pro-meta.json +0 -1
  62. package/tools/mcp-env.ts +0 -13
  63. package/tools/mcp-tools/__tests__/data-calc-editing.test.js +0 -516
  64. package/tools/mcp-tools/__tests__/entry-editing.test.js +0 -866
  65. package/tools/mcp-tools/__tests__/huggingface.test.ts +0 -49
  66. package/tools/mcp-tools/__tests__/icons.test.ts +0 -21
  67. package/tools/mcp-tools/__tests__/mcp-env.test.js +0 -19
  68. package/tools/mcp-tools/_editing-helpers.ts +0 -98
  69. package/tools/mcp-tools/_verify.ts +0 -50
  70. package/tools/mcp-tools/compile.ts +0 -104
  71. package/tools/mcp-tools/data-calc-editing.ts +0 -1311
  72. package/tools/mcp-tools/entry-editing.ts +0 -2297
  73. package/tools/mcp-tools/huggingface.ts +0 -772
  74. package/tools/mcp-tools/icons.ts +0 -97
  75. package/tools/mcp-tools/lottie.ts +0 -102
  76. package/tools/mcp-tools/media.ts +0 -113
  77. package/tools/simulator-main.mjs +0 -488
  78. package/tools/simulator-preload.cjs +0 -16
  79. package/types/animation.d.ts +0 -116
  80. package/types/automation.d.ts +0 -231
  81. package/types/brick-base.d.ts +0 -80
  82. package/types/bricks/Camera.d.ts +0 -246
  83. package/types/bricks/Chart.d.ts +0 -372
  84. package/types/bricks/GenerativeMedia.d.ts +0 -290
  85. package/types/bricks/Icon.d.ts +0 -98
  86. package/types/bricks/Image.d.ts +0 -126
  87. package/types/bricks/Items.d.ts +0 -480
  88. package/types/bricks/Lottie.d.ts +0 -168
  89. package/types/bricks/Maps.d.ts +0 -262
  90. package/types/bricks/QrCode.d.ts +0 -117
  91. package/types/bricks/Rect.d.ts +0 -150
  92. package/types/bricks/RichText.d.ts +0 -131
  93. package/types/bricks/Rive.d.ts +0 -220
  94. package/types/bricks/Scene3D.d.ts +0 -676
  95. package/types/bricks/Sketch.d.ts +0 -256
  96. package/types/bricks/Slideshow.d.ts +0 -201
  97. package/types/bricks/Svg.d.ts +0 -99
  98. package/types/bricks/Text.d.ts +0 -148
  99. package/types/bricks/TextInput.d.ts +0 -242
  100. package/types/bricks/Video.d.ts +0 -242
  101. package/types/bricks/VideoStreaming.d.ts +0 -112
  102. package/types/bricks/WebRtcStream.d.ts +0 -65
  103. package/types/bricks/WebView.d.ts +0 -168
  104. package/types/bricks/index.d.ts +0 -23
  105. package/types/canvas.d.ts +0 -82
  106. package/types/common.d.ts +0 -141
  107. package/types/data-calc-command/base.d.ts +0 -57
  108. package/types/data-calc-command/collection.d.ts +0 -418
  109. package/types/data-calc-command/color.d.ts +0 -432
  110. package/types/data-calc-command/constant.d.ts +0 -50
  111. package/types/data-calc-command/datetime.d.ts +0 -147
  112. package/types/data-calc-command/file.d.ts +0 -129
  113. package/types/data-calc-command/index.d.ts +0 -13
  114. package/types/data-calc-command/iteratee.d.ts +0 -23
  115. package/types/data-calc-command/logictype.d.ts +0 -190
  116. package/types/data-calc-command/math.d.ts +0 -275
  117. package/types/data-calc-command/object.d.ts +0 -119
  118. package/types/data-calc-command/sandbox.d.ts +0 -66
  119. package/types/data-calc-command/string.d.ts +0 -407
  120. package/types/data-calc-script.d.ts +0 -21
  121. package/types/data-calc.d.ts +0 -12
  122. package/types/data.d.ts +0 -97
  123. package/types/generators/AlarmClock.d.ts +0 -110
  124. package/types/generators/Assistant.d.ts +0 -640
  125. package/types/generators/BleCentral.d.ts +0 -247
  126. package/types/generators/BlePeripheral.d.ts +0 -208
  127. package/types/generators/CanvasMap.d.ts +0 -74
  128. package/types/generators/CastlesPay.d.ts +0 -87
  129. package/types/generators/DataBank.d.ts +0 -160
  130. package/types/generators/File.d.ts +0 -432
  131. package/types/generators/GraphQl.d.ts +0 -132
  132. package/types/generators/Http.d.ts +0 -222
  133. package/types/generators/HttpServer.d.ts +0 -230
  134. package/types/generators/Information.d.ts +0 -103
  135. package/types/generators/Intent.d.ts +0 -168
  136. package/types/generators/Iterator.d.ts +0 -108
  137. package/types/generators/Keyboard.d.ts +0 -105
  138. package/types/generators/LlmAnthropicCompat.d.ts +0 -212
  139. package/types/generators/LlmAppleBuiltin.d.ts +0 -159
  140. package/types/generators/LlmGgml.d.ts +0 -903
  141. package/types/generators/LlmMediaTekNeuroPilot.d.ts +0 -235
  142. package/types/generators/LlmMlx.d.ts +0 -228
  143. package/types/generators/LlmOnnx.d.ts +0 -213
  144. package/types/generators/LlmOpenAiCompat.d.ts +0 -312
  145. package/types/generators/LlmQualcommAiEngine.d.ts +0 -247
  146. package/types/generators/Mcp.d.ts +0 -637
  147. package/types/generators/McpServer.d.ts +0 -289
  148. package/types/generators/MediaFlow.d.ts +0 -170
  149. package/types/generators/MqttBroker.d.ts +0 -141
  150. package/types/generators/MqttClient.d.ts +0 -141
  151. package/types/generators/Question.d.ts +0 -408
  152. package/types/generators/RealtimeTranscription.d.ts +0 -287
  153. package/types/generators/RerankerGgml.d.ts +0 -195
  154. package/types/generators/SerialPort.d.ts +0 -151
  155. package/types/generators/SoundPlayer.d.ts +0 -94
  156. package/types/generators/SoundRecorder.d.ts +0 -139
  157. package/types/generators/SpeechToTextGgml.d.ts +0 -424
  158. package/types/generators/SpeechToTextOnnx.d.ts +0 -236
  159. package/types/generators/SpeechToTextPlatform.d.ts +0 -85
  160. package/types/generators/SqLite.d.ts +0 -159
  161. package/types/generators/Step.d.ts +0 -107
  162. package/types/generators/SttAppleBuiltin.d.ts +0 -153
  163. package/types/generators/Tcp.d.ts +0 -126
  164. package/types/generators/TcpServer.d.ts +0 -147
  165. package/types/generators/TextToSpeechAppleBuiltin.d.ts +0 -127
  166. package/types/generators/TextToSpeechGgml.d.ts +0 -221
  167. package/types/generators/TextToSpeechOnnx.d.ts +0 -178
  168. package/types/generators/TextToSpeechOpenAiLike.d.ts +0 -121
  169. package/types/generators/ThermalPrinter.d.ts +0 -193
  170. package/types/generators/Tick.d.ts +0 -83
  171. package/types/generators/Udp.d.ts +0 -120
  172. package/types/generators/VadGgml.d.ts +0 -260
  173. package/types/generators/VadOnnx.d.ts +0 -231
  174. package/types/generators/VadTraditional.d.ts +0 -138
  175. package/types/generators/VectorStore.d.ts +0 -257
  176. package/types/generators/Watchdog.d.ts +0 -107
  177. package/types/generators/WebCrawler.d.ts +0 -103
  178. package/types/generators/WebRtc.d.ts +0 -181
  179. package/types/generators/WebSocket.d.ts +0 -148
  180. package/types/generators/index.d.ts +0 -57
  181. package/types/index.d.ts +0 -13
  182. package/types/subspace.d.ts +0 -60
  183. package/types/switch.d.ts +0 -51
  184. package/types/system.d.ts +0 -707
  185. package/utils/__tests__/calc.test.js +0 -25
  186. package/utils/__tests__/id.test.js +0 -154
  187. package/utils/calc.ts +0 -130
  188. package/utils/data.ts +0 -495
  189. package/utils/event-props.ts +0 -912
  190. package/utils/id.ts +0 -133
@@ -1,168 +0,0 @@
1
- /* Auto generated by build script
2
- *
3
- * Lottie animation player supporting .json and .dotlottie formats. Supports speed, loop, frame range control, color/text filters, and hardware rendering
4
- */
5
- import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
6
- import type { Data, DataLink } from '../data'
7
- import type { Animation, AnimationBasicEvents, AnimationOrGetter } from '../animation'
8
- import type {
9
- Brick,
10
- EventAction,
11
- EventActionForItem,
12
- ActionWithDataParams,
13
- ActionWithParams,
14
- Action,
15
- EventProperty,
16
- } from '../common'
17
- import type { BrickBasicProperty, BrickBasicEvents, BrickBasicEventsForItem } from '../brick-base'
18
- import type { TemplateEventPropsMap } from '../../utils/event-props'
19
-
20
- /* Play animation */
21
- export type BrickLottieActionPlay = ActionWithParams & {
22
- __actionName: 'BRICK_LOTTIE_PLAY'
23
- params?: Array<
24
- | {
25
- input: 'startFrame'
26
- value?: number | DataLink | EventProperty
27
- mapping?: string
28
- }
29
- | {
30
- input: 'endFrame'
31
- value?: number | DataLink | EventProperty
32
- mapping?: string
33
- }
34
- >
35
- }
36
-
37
- /* Pause animation */
38
- export type BrickLottieActionPause = Action & {
39
- __actionName: 'BRICK_LOTTIE_PAUSE'
40
- }
41
-
42
- /* Resume animation */
43
- export type BrickLottieActionResume = Action & {
44
- __actionName: 'BRICK_LOTTIE_RESUME'
45
- }
46
-
47
- /* Stop animation */
48
- export type BrickLottieActionStop = Action & {
49
- __actionName: 'BRICK_LOTTIE_STOP'
50
- }
51
-
52
- /* Reset animation */
53
- export type BrickLottieActionReset = Action & {
54
- __actionName: 'BRICK_LOTTIE_RESET'
55
- }
56
-
57
- interface BrickLottieDef {
58
- /*
59
- Default property:
60
- {
61
- "loop": true,
62
- "autoPlay": true,
63
- "resizeMode": "contain",
64
- "renderMode": "auto"
65
- }
66
- */
67
- property?: BrickBasicProperty & {
68
- /* The animation json config content from uri */
69
- uri?: string | DataLink
70
- /* The checksum of `uri` */
71
- md5?: string | DataLink
72
- /* The animation json config content(The `uri` will be ignored if `source` is defined) */
73
- source?: {} | DataLink
74
- /* The speed the animation will progress. This only affects the imperative API. Sending a negative value will reverse the animation. */
75
- speed?: number | DataLink
76
- /* A boolean flag indicating whether or not the animation should loop. */
77
- loop?: boolean | DataLink
78
- /* A boolean flag indicating whether or not the animation should start automatically when mounted. This only affects the imperative API. */
79
- autoPlay?: boolean | DataLink
80
- /* The animation resize mode */
81
- resizeMode?: 'cover' | 'contain' | 'center' | DataLink
82
- /* A flag to set whether or not to render with hardware or software acceleration (Not supported for iOS) */
83
- renderMode?: 'auto' | 'hardware' | 'software' | DataLink
84
- /* Replace color (as hex string) by keypath */
85
- colorFilters?:
86
- | Array<
87
- | DataLink
88
- | {
89
- keypath?: string | DataLink
90
- color?: string | DataLink
91
- }
92
- >
93
- | DataLink
94
- /* Replace color (as hex string) by find text. Use text filters will disable glyphs text render / force software render mode, This means that a specific font needs to be loaded. */
95
- textFilters?:
96
- | Array<
97
- | DataLink
98
- | {
99
- find?: string | DataLink
100
- replace?: string | DataLink
101
- }
102
- >
103
- | DataLink
104
- }
105
- events?: BrickBasicEvents & {
106
- /* Event of the brick press */
107
- onPress?: Array<EventAction>
108
- /* Event of the brick press in */
109
- onPressIn?: Array<EventAction>
110
- /* Event of the brick press out */
111
- onPressOut?: Array<EventAction>
112
- /* Event of the brick long press */
113
- onLongPress?: Array<EventAction>
114
- /* Event of the brick focus (Use TV Device with controller) */
115
- onFocus?: Array<EventAction>
116
- /* Event of the brick blur (Use TV Device with controller) */
117
- onBlur?: Array<EventAction>
118
- /* Event of the animation finished */
119
- onAnimationFinish?: Array<
120
- EventAction<string & keyof TemplateEventPropsMap['Lottie']['onAnimationFinish']>
121
- >
122
- /* Event of the uri on load failed */
123
- onAnimationFailure?: Array<
124
- EventAction<string & keyof TemplateEventPropsMap['Lottie']['onAnimationFailure']>
125
- >
126
- /* Event of the animation on loop */
127
- onAnimationLoop?: Array<EventAction>
128
- }
129
- outlets?: {
130
- /* Brick is pressing */
131
- brickPressing?: () => Data<boolean>
132
- /* Brick is focusing (Use TV Device with controller) */
133
- brickFocusing?: () => Data<boolean>
134
- }
135
- animation?: AnimationBasicEvents & {
136
- onPress?: AnimationOrGetter
137
- onPressIn?: AnimationOrGetter
138
- onPressOut?: AnimationOrGetter
139
- onLongPress?: AnimationOrGetter
140
- onFocus?: AnimationOrGetter
141
- onBlur?: AnimationOrGetter
142
- onAnimationFinish?: AnimationOrGetter
143
- onAnimationFailure?: AnimationOrGetter
144
- onAnimationLoop?: AnimationOrGetter
145
- }
146
- }
147
-
148
- /* Lottie animation player supporting .json and .dotlottie formats. Supports speed, loop, frame range control, color/text filters, and hardware rendering */
149
- export type BrickLottie = Brick &
150
- BrickLottieDef & {
151
- templateKey: 'BRICK_LOTTIE'
152
- switches?: Array<
153
- SwitchDef &
154
- BrickLottieDef & {
155
- conds?: Array<{
156
- method: '==' | '!=' | '>' | '<' | '>=' | '<='
157
- cond:
158
- | SwitchCondInnerStateCurrentCanvas
159
- | SwitchCondData
160
- | {
161
- __typename: 'SwitchCondInnerStateOutlet'
162
- outlet: 'brickPressing' | 'brickFocusing'
163
- value: any
164
- }
165
- }>
166
- }
167
- >
168
- }
@@ -1,262 +0,0 @@
1
- /* Auto generated by build script
2
- *
3
- * Interactive map with markers, paths, and location tracking. Supports Google Maps (iOS/Android/Desktop/Web) and Apple Maps (iOS/tvOS)
4
- */
5
- import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
6
- import type { Data, DataLink } from '../data'
7
- import type { Animation, AnimationBasicEvents, AnimationOrGetter } from '../animation'
8
- import type {
9
- Brick,
10
- EventAction,
11
- EventActionForItem,
12
- ActionWithDataParams,
13
- ActionWithParams,
14
- Action,
15
- EventProperty,
16
- } from '../common'
17
- import type { BrickBasicProperty, BrickBasicEvents, BrickBasicEventsForItem } from '../brick-base'
18
- import type { TemplateEventPropsMap } from '../../utils/event-props'
19
-
20
- /* Zoom in the map */
21
- export type BrickMapsActionZoomIn = Action & {
22
- __actionName: 'BRICK_MAPS_ZOOM_IN'
23
- }
24
-
25
- /* Zoom out the map */
26
- export type BrickMapsActionZoomOut = Action & {
27
- __actionName: 'BRICK_MAPS_ZOOM_OUT'
28
- }
29
-
30
- /* Pan the map in a direction */
31
- export type BrickMapsActionPan = ActionWithParams & {
32
- __actionName: 'BRICK_MAPS_PAN'
33
- params?: Array<{
34
- input: 'panDirection'
35
- value?: 'up' | 'down' | 'left' | 'right' | DataLink | EventProperty
36
- mapping?: string
37
- }>
38
- }
39
-
40
- /* Navigate to a specific location */
41
- export type BrickMapsActionNavigateTo = ActionWithParams & {
42
- __actionName: 'BRICK_MAPS_NAVIGATE_TO'
43
- params?: Array<
44
- | {
45
- input: 'targetLatitude'
46
- value?: number | DataLink | EventProperty
47
- mapping?: string
48
- }
49
- | {
50
- input: 'targetLongitude'
51
- value?: number | DataLink | EventProperty
52
- mapping?: string
53
- }
54
- | {
55
- input: 'targetZoom'
56
- value?: number | DataLink | EventProperty
57
- mapping?: string
58
- }
59
- >
60
- }
61
-
62
- /* Focus on a marker by ID */
63
- export type BrickMapsActionFocusMarker = ActionWithParams & {
64
- __actionName: 'BRICK_MAPS_FOCUS_MARKER'
65
- params?: Array<{
66
- input: 'markerId'
67
- value?: string | DataLink | EventProperty
68
- mapping?: string
69
- }>
70
- }
71
-
72
- /* Reset map to initial position */
73
- export type BrickMapsActionReset = Action & {
74
- __actionName: 'BRICK_MAPS_RESET'
75
- }
76
-
77
- /* Fit map to show all markers */
78
- export type BrickMapsActionFitToMarkers = ActionWithParams & {
79
- __actionName: 'BRICK_MAPS_FIT_TO_MARKERS'
80
- params?: Array<
81
- | {
82
- input: 'edgePadding'
83
- value?: number | DataLink | EventProperty
84
- mapping?: string
85
- }
86
- | {
87
- input: 'animated'
88
- value?: boolean | DataLink | EventProperty
89
- mapping?: string
90
- }
91
- >
92
- }
93
-
94
- interface BrickMapsDef {
95
- /*
96
- Default property:
97
- {
98
- "provider": "google",
99
- "apiKey": "",
100
- "initialLatitude": 25.033,
101
- "initialLongitude": 121.5654,
102
- "initialZoom": 10,
103
- "mapType": "standard",
104
- "mapTheme": "standard",
105
- "showUserLocation": false,
106
- "showCompass": true,
107
- "showZoomControls": true,
108
- "scrollEnabled": true,
109
- "zoomEnabled": true,
110
- "rotateEnabled": true,
111
- "markers": [],
112
- "customMapStyle": [],
113
- "showTraffic": false,
114
- "showBuildings": false,
115
- "showIndoors": true,
116
- "minZoomLevel": 1,
117
- "maxZoomLevel": 20,
118
- "followUserLocation": false,
119
- "showPath": false,
120
- "pathStrokeColor": "#4285F4",
121
- "pathStrokeWidth": 3
122
- }
123
- */
124
- property?: BrickBasicProperty & {
125
- /* Map provider (iOS/tvOS only - Android and Web always use Google Maps) */
126
- provider?: 'google' | 'apple' | DataLink
127
- /* Google Maps API Key (Web only) */
128
- apiKey?: string | DataLink
129
- /* Initial latitude */
130
- initialLatitude?: number | DataLink
131
- /* Initial longitude */
132
- initialLongitude?: number | DataLink
133
- /* Initial zoom level (1-20) */
134
- initialZoom?: number | DataLink
135
- /* Map type */
136
- mapType?: 'standard' | 'satellite' | 'hybrid' | 'terrain' | DataLink
137
- /* Map theme preset */
138
- mapTheme?: 'standard' | 'dark' | 'night' | 'retro' | 'silver' | 'aubergine' | DataLink
139
- /* Show user location button */
140
- showUserLocation?: boolean | DataLink
141
- /* Show compass */
142
- showCompass?: boolean | DataLink
143
- /* Show zoom controls */
144
- showZoomControls?: boolean | DataLink
145
- /* Enable scrolling */
146
- scrollEnabled?: boolean | DataLink
147
- /* Enable zooming */
148
- zoomEnabled?: boolean | DataLink
149
- /* Enable rotating */
150
- rotateEnabled?: boolean | DataLink
151
- /* Map markers data */
152
- markers?:
153
- | Array<
154
- | DataLink
155
- | {
156
- id?: string | DataLink
157
- latitude?: number | DataLink
158
- longitude?: number | DataLink
159
- title?: string | DataLink
160
- description?: string | DataLink
161
- color?: string | DataLink
162
- icon?: string | DataLink
163
- }
164
- >
165
- | DataLink
166
- /* Custom map style (array of Google Maps style objects) */
167
- customMapStyle?:
168
- | Array<
169
- | DataLink
170
- | {
171
- featureType?: string | DataLink
172
- elementType?: string | DataLink
173
- stylers?: Array<{} | DataLink> | DataLink
174
- }
175
- >
176
- | DataLink
177
- /* Show traffic layer */
178
- showTraffic?: boolean | DataLink
179
- /* Show buildings in 3D */
180
- showBuildings?: boolean | DataLink
181
- /* Show indoor maps */
182
- showIndoors?: boolean | DataLink
183
- /* Minimum zoom level */
184
- minZoomLevel?: number | DataLink
185
- /* Maximum zoom level */
186
- maxZoomLevel?: number | DataLink
187
- /* Follow user location */
188
- followUserLocation?: boolean | DataLink
189
- /* Show path between markers */
190
- showPath?: boolean | DataLink
191
- /* Path stroke color */
192
- pathStrokeColor?: string | DataLink
193
- /* Path stroke width */
194
- pathStrokeWidth?: number | DataLink
195
- }
196
- events?: BrickBasicEvents & {
197
- /* Event of the brick press */
198
- onPress?: Array<EventAction>
199
- /* Event of the brick press in */
200
- onPressIn?: Array<EventAction>
201
- /* Event of the brick press out */
202
- onPressOut?: Array<EventAction>
203
- /* Event of the brick long press */
204
- onLongPress?: Array<EventAction>
205
- /* Event of the brick focus (Use TV Device with controller) */
206
- onFocus?: Array<EventAction>
207
- /* Event of the brick blur (Use TV Device with controller) */
208
- onBlur?: Array<EventAction>
209
- /* Event when a marker is pressed */
210
- onMarkerPress?: Array<
211
- EventAction<string & keyof TemplateEventPropsMap['Maps']['onMarkerPress']>
212
- >
213
- /* Event when the map is pressed */
214
- onMapPress?: Array<EventAction<string & keyof TemplateEventPropsMap['Maps']['onMapPress']>>
215
- /* Event when the map region changes */
216
- onRegionChange?: Array<
217
- EventAction<string & keyof TemplateEventPropsMap['Maps']['onRegionChange']>
218
- >
219
- /* Event when the map is ready */
220
- onReady?: Array<EventAction>
221
- }
222
- outlets?: {
223
- /* Brick is pressing */
224
- brickPressing?: () => Data<boolean>
225
- /* Brick is focusing (Use TV Device with controller) */
226
- brickFocusing?: () => Data<boolean>
227
- }
228
- animation?: AnimationBasicEvents & {
229
- onPress?: AnimationOrGetter
230
- onPressIn?: AnimationOrGetter
231
- onPressOut?: AnimationOrGetter
232
- onLongPress?: AnimationOrGetter
233
- onFocus?: AnimationOrGetter
234
- onBlur?: AnimationOrGetter
235
- onMarkerPress?: AnimationOrGetter
236
- onMapPress?: AnimationOrGetter
237
- onRegionChange?: AnimationOrGetter
238
- onReady?: AnimationOrGetter
239
- }
240
- }
241
-
242
- /* Interactive map with markers, paths, and location tracking. Supports Google Maps (iOS/Android/Desktop/Web) and Apple Maps (iOS/tvOS) */
243
- export type BrickMaps = Brick &
244
- BrickMapsDef & {
245
- templateKey: 'BRICK_MAPS'
246
- switches?: Array<
247
- SwitchDef &
248
- BrickMapsDef & {
249
- conds?: Array<{
250
- method: '==' | '!=' | '>' | '<' | '>=' | '<='
251
- cond:
252
- | SwitchCondInnerStateCurrentCanvas
253
- | SwitchCondData
254
- | {
255
- __typename: 'SwitchCondInnerStateOutlet'
256
- outlet: 'brickPressing' | 'brickFocusing'
257
- value: any
258
- }
259
- }>
260
- }
261
- >
262
- }
@@ -1,117 +0,0 @@
1
- /* Auto generated by build script
2
- *
3
- * Generate and display QR codes from text or URL values
4
- */
5
- import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
6
- import type { Data, DataLink } from '../data'
7
- import type { Animation, AnimationBasicEvents, AnimationOrGetter } from '../animation'
8
- import type {
9
- Brick,
10
- EventAction,
11
- EventActionForItem,
12
- ActionWithDataParams,
13
- ActionWithParams,
14
- Action,
15
- EventProperty,
16
- } from '../common'
17
- import type { BrickBasicProperty, BrickBasicEvents, BrickBasicEventsForItem } from '../brick-base'
18
- import type { TemplateEventPropsMap } from '../../utils/event-props'
19
-
20
- interface BrickQrcodeDef {
21
- /*
22
- Default property:
23
- {
24
- "value": "",
25
- "positiveColor": "#1e252a",
26
- "negativeColor": "transparent",
27
- "padding": 0,
28
- "linearGradientEnabled": false,
29
- "linearGradientStart": "black",
30
- "linearGradientEnd": "black",
31
- "linearGradientDirection": [
32
- "0%",
33
- "0%",
34
- "100%",
35
- "100%"
36
- ],
37
- "logoSize": 20,
38
- "logoBackgroundColor": "transparent"
39
- }
40
- */
41
- property?: BrickBasicProperty & {
42
- /* The QRCode content */
43
- value?: string | DataLink
44
- /* The foreground color of QRCode */
45
- positiveColor?: string | DataLink
46
- /* The background color of QRCode */
47
- negativeColor?: string | DataLink
48
- /* Quiet zone around the qr */
49
- padding?: number | DataLink
50
- /* Enables or disables linear gradient */
51
- linearGradientEnabled?: boolean | DataLink
52
- /* Linear gradient start color */
53
- linearGradientStart?: string | DataLink
54
- /* Linear gradient end color */
55
- linearGradientEnd?: string | DataLink
56
- /* Linear gradient direction ('0%', '0%', '100%', '100%') */
57
- linearGradientDirection?: Array<string | DataLink> | DataLink
58
- /* Logo image source */
59
- logoPath?: string | DataLink
60
- /* The checksum of logo file */
61
- md5?: string | DataLink
62
- /* Logo image size (% of QRCode) */
63
- logoSize?: number | DataLink
64
- /* The logo gets a filled quadratic background with this color. */
65
- logoBackgroundColor?: string | DataLink
66
- }
67
- events?: BrickBasicEvents & {
68
- /* Event of the brick press */
69
- onPress?: Array<EventAction>
70
- /* Event of the brick press in */
71
- onPressIn?: Array<EventAction>
72
- /* Event of the brick press out */
73
- onPressOut?: Array<EventAction>
74
- /* Event of the brick long press */
75
- onLongPress?: Array<EventAction>
76
- /* Event of the brick focus (Use TV Device with controller) */
77
- onFocus?: Array<EventAction>
78
- /* Event of the brick blur (Use TV Device with controller) */
79
- onBlur?: Array<EventAction>
80
- }
81
- outlets?: {
82
- /* Brick is pressing */
83
- brickPressing?: () => Data<boolean>
84
- /* Brick is focusing (Use TV Device with controller) */
85
- brickFocusing?: () => Data<boolean>
86
- }
87
- animation?: AnimationBasicEvents & {
88
- onPress?: AnimationOrGetter
89
- onPressIn?: AnimationOrGetter
90
- onPressOut?: AnimationOrGetter
91
- onLongPress?: AnimationOrGetter
92
- onFocus?: AnimationOrGetter
93
- onBlur?: AnimationOrGetter
94
- }
95
- }
96
-
97
- /* Generate and display QR codes from text or URL values */
98
- export type BrickQrcode = Brick &
99
- BrickQrcodeDef & {
100
- templateKey: 'BRICK_QRCODE'
101
- switches?: Array<
102
- SwitchDef &
103
- BrickQrcodeDef & {
104
- conds?: Array<{
105
- method: '==' | '!=' | '>' | '<' | '>=' | '<='
106
- cond:
107
- | SwitchCondInnerStateCurrentCanvas
108
- | SwitchCondData
109
- | {
110
- __typename: 'SwitchCondInnerStateOutlet'
111
- outlet: 'brickPressing' | 'brickFocusing'
112
- value: any
113
- }
114
- }>
115
- }
116
- >
117
- }
@@ -1,150 +0,0 @@
1
- /* Auto generated by build script
2
- *
3
- * Rectangle shape with customizable fill, border, radius, shadow, and blur
4
- */
5
- import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
6
- import type { Data, DataLink } from '../data'
7
- import type { Animation, AnimationBasicEvents, AnimationOrGetter } from '../animation'
8
- import type {
9
- Brick,
10
- EventAction,
11
- EventActionForItem,
12
- ActionWithDataParams,
13
- ActionWithParams,
14
- Action,
15
- EventProperty,
16
- } from '../common'
17
- import type { BrickBasicProperty, BrickBasicEvents, BrickBasicEventsForItem } from '../brick-base'
18
- import type { TemplateEventPropsMap } from '../../utils/event-props'
19
-
20
- interface BrickRectDef {
21
- /*
22
- Default property:
23
- {
24
- "linearGradientEnabled": false,
25
- "linearGradientColors": [
26
- "#000000",
27
- "#FFFFFF"
28
- ],
29
- "linearGradientStart": {
30
- "x": 0,
31
- "y": 0
32
- },
33
- "linearGradientEnd": {
34
- "x": 1,
35
- "y": 1
36
- },
37
- "linearGradientLocations": [
38
- 0,
39
- 1
40
- ],
41
- "blurEnabled": false,
42
- "blurVariant": "blur",
43
- "blurType": "light",
44
- "blurAmount": 10,
45
- "blurDirection": "blurredTopClearBottom",
46
- "blurStartOffset": 0,
47
- "blurGlassType": "regular",
48
- "blurGlassOpacity": 0.5,
49
- "blurGlassInteractive": false
50
- }
51
- */
52
- property?: BrickBasicProperty & {
53
- /* Enables or disables linear gradient */
54
- linearGradientEnabled?: boolean | DataLink
55
- /* An array of at least two color values that represent gradient colors */
56
- linearGradientColors?: Array<string | DataLink> | DataLink
57
- /* An optional object of the following type: { x: number, y: number } */
58
- linearGradientStart?:
59
- | DataLink
60
- | {
61
- x?: number | DataLink
62
- y?: number | DataLink
63
- }
64
- /* Same as start, but for the end of the gradient */
65
- linearGradientEnd?:
66
- | DataLink
67
- | {
68
- x?: number | DataLink
69
- y?: number | DataLink
70
- }
71
- /* An optional array of numbers defining the location of each gradient color stop */
72
- linearGradientLocations?: Array<number | DataLink> | DataLink
73
- /* Enable blur effect.
74
- Not supported on Desktop (Electron) and Web.
75
- Avoid using opacity prop with blur — use alpha backgroundColor (e.g. rgba) instead. */
76
- blurEnabled?: boolean | DataLink
77
- /* Blur variant */
78
- blurVariant?: 'blur' | 'progressiveBlur' | 'liquidGlass' | DataLink
79
- /* Blur type (blur variant) */
80
- blurType?: 'xlight' | 'light' | 'dark' | 'regular' | 'prominent' | DataLink
81
- /* Blur amount (0 ~ 100, blur variant) */
82
- blurAmount?: number | DataLink
83
- /* Progressive blur direction (progressiveBlur variant) */
84
- blurDirection?:
85
- | 'blurredTopClearBottom'
86
- | 'blurredBottomClearTop'
87
- | 'blurredCenterClearTopAndBottom'
88
- | DataLink
89
- /* Progressive blur start offset (0 ~ 1, progressiveBlur variant) */
90
- blurStartOffset?: number | DataLink
91
- /* Glass type (liquidGlass variant, iOS 26+) */
92
- blurGlassType?: 'clear' | 'regular' | DataLink
93
- /* Glass tint color (liquidGlass variant) */
94
- blurGlassTintColor?: string | DataLink
95
- /* Glass opacity (0 ~ 1, liquidGlass variant) */
96
- blurGlassOpacity?: number | DataLink
97
- /* Enable glass interaction (liquidGlass variant) */
98
- blurGlassInteractive?: boolean | DataLink
99
- }
100
- events?: BrickBasicEvents & {
101
- /* Event of the brick press */
102
- onPress?: Array<EventAction>
103
- /* Event of the brick press in */
104
- onPressIn?: Array<EventAction>
105
- /* Event of the brick press out */
106
- onPressOut?: Array<EventAction>
107
- /* Event of the brick long press */
108
- onLongPress?: Array<EventAction>
109
- /* Event of the brick focus (Use TV Device with controller) */
110
- onFocus?: Array<EventAction>
111
- /* Event of the brick blur (Use TV Device with controller) */
112
- onBlur?: Array<EventAction>
113
- }
114
- outlets?: {
115
- /* Brick is pressing */
116
- brickPressing?: () => Data<boolean>
117
- /* Brick is focusing (Use TV Device with controller) */
118
- brickFocusing?: () => Data<boolean>
119
- }
120
- animation?: AnimationBasicEvents & {
121
- onPress?: AnimationOrGetter
122
- onPressIn?: AnimationOrGetter
123
- onPressOut?: AnimationOrGetter
124
- onLongPress?: AnimationOrGetter
125
- onFocus?: AnimationOrGetter
126
- onBlur?: AnimationOrGetter
127
- }
128
- }
129
-
130
- /* Rectangle shape with customizable fill, border, radius, shadow, and blur */
131
- export type BrickRect = Brick &
132
- BrickRectDef & {
133
- templateKey: 'BRICK_RECT'
134
- switches?: Array<
135
- SwitchDef &
136
- BrickRectDef & {
137
- conds?: Array<{
138
- method: '==' | '!=' | '>' | '<' | '>=' | '<='
139
- cond:
140
- | SwitchCondInnerStateCurrentCanvas
141
- | SwitchCondData
142
- | {
143
- __typename: 'SwitchCondInnerStateOutlet'
144
- outlet: 'brickPressing' | 'brickFocusing'
145
- value: any
146
- }
147
- }>
148
- }
149
- >
150
- }