@@ -18,6 +18,13 @@ import {
18
18
19
19
export namespace Components {
20
20
21
+ interface MicrobitCompass {
22
+ 'services' : Services ;
23
+ }
24
+ interface MicrobitCompassAttributes extends StencilHTMLAttributes {
25
+ 'services' ?: Services ;
26
+ }
27
+
21
28
interface MicrobitTemperature {
22
29
/**
23
30
* The text shown when disconnected
@@ -233,10 +240,96 @@ export namespace Components {
233
240
'setDeviceInformation' ?: ( deviceInformation : DeviceInformation ) => void ;
234
241
'setServices' ?: ( services : Services ) => void ;
235
242
}
243
+
244
+ interface MicrobitStateButtonA {
245
+ /**
246
+ * The css class to use when long-pressed
247
+ */
248
+ 'longPressClass' : string ;
249
+ /**
250
+ * The css class to use when released
251
+ */
252
+ 'releaseClass' : string ;
253
+ 'services' : Services ;
254
+ /**
255
+ * The css class to use when short-pressed
256
+ */
257
+ 'shortPressClass' : string ;
258
+ }
259
+ interface MicrobitStateButtonAAttributes extends StencilHTMLAttributes {
260
+ /**
261
+ * The css class to use when long-pressed
262
+ */
263
+ 'longPressClass' ?: string ;
264
+ /**
265
+ * The css class to use when released
266
+ */
267
+ 'releaseClass' ?: string ;
268
+ 'services' ?: Services ;
269
+ /**
270
+ * The css class to use when short-pressed
271
+ */
272
+ 'shortPressClass' ?: string ;
273
+ }
274
+
275
+ interface MicrobitStateButtonB {
276
+ /**
277
+ * The css class to use when long-pressed
278
+ */
279
+ 'longPressClass' : string ;
280
+ /**
281
+ * The css class to use when released
282
+ */
283
+ 'releaseClass' : string ;
284
+ 'services' : Services ;
285
+ /**
286
+ * The css class to use when short-pressed
287
+ */
288
+ 'shortPressClass' : string ;
289
+ }
290
+ interface MicrobitStateButtonBAttributes extends StencilHTMLAttributes {
291
+ /**
292
+ * The css class to use when long-pressed
293
+ */
294
+ 'longPressClass' ?: string ;
295
+ /**
296
+ * The css class to use when released
297
+ */
298
+ 'releaseClass' ?: string ;
299
+ 'services' ?: Services ;
300
+ /**
301
+ * The css class to use when short-pressed
302
+ */
303
+ 'shortPressClass' ?: string ;
304
+ }
305
+
306
+ interface MicrobitStateConnection {
307
+ /**
308
+ * The css class to use when connected
309
+ */
310
+ 'connectedClass' : string ;
311
+ 'device' : BluetoothDevice ;
312
+ /**
313
+ * The css class to use when disconnected
314
+ */
315
+ 'disconnectedClass' : string ;
316
+ }
317
+ interface MicrobitStateConnectionAttributes extends StencilHTMLAttributes {
318
+ /**
319
+ * The css class to use when connected
320
+ */
321
+ 'connectedClass' ?: string ;
322
+ 'device' ?: BluetoothDevice ;
323
+ /**
324
+ * The css class to use when disconnected
325
+ */
326
+ 'disconnectedClass' ?: string ;
327
+ }
236
328
}
237
329
238
330
declare global {
239
331
interface StencilElementInterfaces {
332
+ 'MicrobitCompass' : Components . MicrobitCompass ;
240
333
'MicrobitTemperature' : Components . MicrobitTemperature ;
241
334
'MicrobitFirmware' : Components . MicrobitFirmware ;
242
335
'MicrobitHardware' : Components . MicrobitHardware ;
@@ -247,9 +340,13 @@ declare global {
247
340
'MicrobitText' : Components . MicrobitText ;
248
341
'MicrobitApp' : Components . MicrobitApp ;
249
342
'MicrobitConnect' : Components . MicrobitConnect ;
343
+ 'MicrobitStateButtonA' : Components . MicrobitStateButtonA ;
344
+ 'MicrobitStateButtonB' : Components . MicrobitStateButtonB ;
345
+ 'MicrobitStateConnection' : Components . MicrobitStateConnection ;
250
346
}
251
347
252
348
interface StencilIntrinsicElements {
349
+ 'microbit-compass' : Components . MicrobitCompassAttributes ;
253
350
'microbit-temperature' : Components . MicrobitTemperatureAttributes ;
254
351
'microbit-firmware' : Components . MicrobitFirmwareAttributes ;
255
352
'microbit-hardware' : Components . MicrobitHardwareAttributes ;
@@ -260,9 +357,18 @@ declare global {
260
357
'microbit-text' : Components . MicrobitTextAttributes ;
261
358
'microbit-app' : Components . MicrobitAppAttributes ;
262
359
'microbit-connect' : Components . MicrobitConnectAttributes ;
360
+ 'microbit-state-button-a' : Components . MicrobitStateButtonAAttributes ;
361
+ 'microbit-state-button-b' : Components . MicrobitStateButtonBAttributes ;
362
+ 'microbit-state-connection' : Components . MicrobitStateConnectionAttributes ;
263
363
}
264
364
265
365
366
+ interface HTMLMicrobitCompassElement extends Components . MicrobitCompass , HTMLStencilElement { }
367
+ var HTMLMicrobitCompassElement : {
368
+ prototype : HTMLMicrobitCompassElement ;
369
+ new ( ) : HTMLMicrobitCompassElement ;
370
+ } ;
371
+
266
372
interface HTMLMicrobitTemperatureElement extends Components . MicrobitTemperature , HTMLStencilElement { }
267
373
var HTMLMicrobitTemperatureElement : {
268
374
prototype : HTMLMicrobitTemperatureElement ;
@@ -323,7 +429,26 @@ declare global {
323
429
new ( ) : HTMLMicrobitConnectElement ;
324
430
} ;
325
431
432
+ interface HTMLMicrobitStateButtonAElement extends Components . MicrobitStateButtonA , HTMLStencilElement { }
433
+ var HTMLMicrobitStateButtonAElement : {
434
+ prototype : HTMLMicrobitStateButtonAElement ;
435
+ new ( ) : HTMLMicrobitStateButtonAElement ;
436
+ } ;
437
+
438
+ interface HTMLMicrobitStateButtonBElement extends Components . MicrobitStateButtonB , HTMLStencilElement { }
439
+ var HTMLMicrobitStateButtonBElement : {
440
+ prototype : HTMLMicrobitStateButtonBElement ;
441
+ new ( ) : HTMLMicrobitStateButtonBElement ;
442
+ } ;
443
+
444
+ interface HTMLMicrobitStateConnectionElement extends Components . MicrobitStateConnection , HTMLStencilElement { }
445
+ var HTMLMicrobitStateConnectionElement : {
446
+ prototype : HTMLMicrobitStateConnectionElement ;
447
+ new ( ) : HTMLMicrobitStateConnectionElement ;
448
+ } ;
449
+
326
450
interface HTMLElementTagNameMap {
451
+ 'microbit-compass' : HTMLMicrobitCompassElement
327
452
'microbit-temperature' : HTMLMicrobitTemperatureElement
328
453
'microbit-firmware' : HTMLMicrobitFirmwareElement
329
454
'microbit-hardware' : HTMLMicrobitHardwareElement
@@ -334,9 +459,13 @@ declare global {
334
459
'microbit-text' : HTMLMicrobitTextElement
335
460
'microbit-app' : HTMLMicrobitAppElement
336
461
'microbit-connect' : HTMLMicrobitConnectElement
462
+ 'microbit-state-button-a' : HTMLMicrobitStateButtonAElement
463
+ 'microbit-state-button-b' : HTMLMicrobitStateButtonBElement
464
+ 'microbit-state-connection' : HTMLMicrobitStateConnectionElement
337
465
}
338
466
339
467
interface ElementTagNameMap {
468
+ 'microbit-compass' : HTMLMicrobitCompassElement ;
340
469
'microbit-temperature' : HTMLMicrobitTemperatureElement ;
341
470
'microbit-firmware' : HTMLMicrobitFirmwareElement ;
342
471
'microbit-hardware' : HTMLMicrobitHardwareElement ;
@@ -347,6 +476,9 @@ declare global {
347
476
'microbit-text' : HTMLMicrobitTextElement ;
348
477
'microbit-app' : HTMLMicrobitAppElement ;
349
478
'microbit-connect' : HTMLMicrobitConnectElement ;
479
+ 'microbit-state-button-a' : HTMLMicrobitStateButtonAElement ;
480
+ 'microbit-state-button-b' : HTMLMicrobitStateButtonBElement ;
481
+ 'microbit-state-connection' : HTMLMicrobitStateConnectionElement ;
350
482
}
351
483
352
484
0 commit comments