@dcl/playground-assets 7.6.8-12260048919.commit-4123b99 → 7.6.8-12354882097.commit-0c727b8

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.6.8-12260048919.commit-4123b99",
4
+ "version": "7.6.8-12354882097.commit-0c727b8",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -35,5 +35,5 @@
35
35
  },
36
36
  "types": "./index.d.ts",
37
37
  "typings": "./index.d.ts",
38
- "commit": "4123b99ea50b207270b479c572210a344efa74ea"
38
+ "commit": "0c727b82d18c849bc14e34108ef9ce7e3531ca64"
39
39
  }
@@ -1883,6 +1883,8 @@ export declare type EntityComponents = {
1883
1883
  uiDropdown: PBUiDropdown;
1884
1884
  onMouseDown: Callback;
1885
1885
  onMouseUp: Callback;
1886
+ onMouseEnter: Callback;
1887
+ onMouseLeave: Callback;
1886
1888
  };
1887
1889
 
1888
1890
  /** @public */
@@ -2658,6 +2660,10 @@ export declare type Listeners = {
2658
2660
  onMouseDown?: Callback;
2659
2661
  /** triggered on mouse up event */
2660
2662
  onMouseUp?: Callback;
2663
+ /** triggered on mouse hover event */
2664
+ onMouseEnter?: Callback;
2665
+ /** triggered on mouse leave event */
2666
+ onMouseLeave?: Callback;
2661
2667
  };
2662
2668
 
2663
2669
  /**
@@ -5794,6 +5800,18 @@ export declare interface PointerEventsSystem {
5794
5800
  * @param entity - Entity where the callback was attached
5795
5801
  */
5796
5802
  removeOnPointerUp(entity: Entity): void;
5803
+ /**
5804
+ * @public
5805
+ * Remove the callback for onPointerHoverEnter event
5806
+ * @param entity - Entity where the callback was attached
5807
+ */
5808
+ removeOnPointerHoverEnter(entity: Entity): void;
5809
+ /**
5810
+ * @public
5811
+ * Remove the callback for onPointerHoverLeave event
5812
+ * @param entity - Entity where the callback was attached
5813
+ */
5814
+ removeOnPointerHoverLeave(entity: Entity): void;
5797
5815
  /**
5798
5816
  * @public
5799
5817
  * Execute callback when the user press the InputButton pointing at the entity
@@ -5828,6 +5846,26 @@ export declare interface PointerEventsSystem {
5828
5846
  * @param opts - Opts to trigger Feedback and Button
5829
5847
  */
5830
5848
  onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
5849
+ /**
5850
+ * @public
5851
+ * Execute callback when the user place the pointer over the entity
5852
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
5853
+ * @param cb - Function to execute when click fires
5854
+ */
5855
+ onPointerHoverEnter(pointerData: {
5856
+ entity: Entity;
5857
+ opts?: Partial<EventSystemOptions>;
5858
+ }, cb: EventSystemCallback): void;
5859
+ /**
5860
+ * @public
5861
+ * Execute callback when the user take the pointer out of the entity
5862
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
5863
+ * @param cb - Function to execute when click fires
5864
+ */
5865
+ onPointerHoverLeave(pointerData: {
5866
+ entity: Entity;
5867
+ opts?: Partial<EventSystemOptions>;
5868
+ }, cb: EventSystemCallback): void;
5831
5869
  }
5832
5870
 
5833
5871
  /**
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.48.0"
8
+ "packageVersion": "7.48.1"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.48.0",
4
+ "toolVersion": "7.48.1",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -18442,6 +18442,24 @@
18442
18442
  "text": "Callback",
18443
18443
  "canonicalReference": "@dcl/playground-assets!Callback:type"
18444
18444
  },
18445
+ {
18446
+ "kind": "Content",
18447
+ "text": ";\n onMouseEnter: "
18448
+ },
18449
+ {
18450
+ "kind": "Reference",
18451
+ "text": "Callback",
18452
+ "canonicalReference": "@dcl/playground-assets!Callback:type"
18453
+ },
18454
+ {
18455
+ "kind": "Content",
18456
+ "text": ";\n onMouseLeave: "
18457
+ },
18458
+ {
18459
+ "kind": "Reference",
18460
+ "text": "Callback",
18461
+ "canonicalReference": "@dcl/playground-assets!Callback:type"
18462
+ },
18445
18463
  {
18446
18464
  "kind": "Content",
18447
18465
  "text": ";\n}"
@@ -18456,7 +18474,7 @@
18456
18474
  "name": "EntityComponents",
18457
18475
  "typeTokenRange": {
18458
18476
  "startIndex": 1,
18459
- "endIndex": 16
18477
+ "endIndex": 20
18460
18478
  }
18461
18479
  },
18462
18480
  {
@@ -24186,6 +24204,24 @@
24186
24204
  "text": "Callback",
24187
24205
  "canonicalReference": "@dcl/playground-assets!Callback:type"
24188
24206
  },
24207
+ {
24208
+ "kind": "Content",
24209
+ "text": ";\n onMouseEnter?: "
24210
+ },
24211
+ {
24212
+ "kind": "Reference",
24213
+ "text": "Callback",
24214
+ "canonicalReference": "@dcl/playground-assets!Callback:type"
24215
+ },
24216
+ {
24217
+ "kind": "Content",
24218
+ "text": ";\n onMouseLeave?: "
24219
+ },
24220
+ {
24221
+ "kind": "Reference",
24222
+ "text": "Callback",
24223
+ "canonicalReference": "@dcl/playground-assets!Callback:type"
24224
+ },
24189
24225
  {
24190
24226
  "kind": "Content",
24191
24227
  "text": ";\n}"
@@ -24200,7 +24236,7 @@
24200
24236
  "name": "Listeners",
24201
24237
  "typeTokenRange": {
24202
24238
  "startIndex": 1,
24203
- "endIndex": 6
24239
+ "endIndex": 10
24204
24240
  }
24205
24241
  },
24206
24242
  {
@@ -56483,6 +56519,184 @@
56483
56519
  ],
56484
56520
  "name": "onPointerDown"
56485
56521
  },
56522
+ {
56523
+ "kind": "MethodSignature",
56524
+ "canonicalReference": "@dcl/playground-assets!PointerEventsSystem#onPointerHoverEnter:member(1)",
56525
+ "docComment": "/**\n * Execute callback when the user place the pointer over the entity\n *\n * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button\n *\n * @param cb - Function to execute when click fires\n *\n * @public\n */\n",
56526
+ "excerptTokens": [
56527
+ {
56528
+ "kind": "Content",
56529
+ "text": "onPointerHoverEnter(pointerData: "
56530
+ },
56531
+ {
56532
+ "kind": "Content",
56533
+ "text": "{\n entity: "
56534
+ },
56535
+ {
56536
+ "kind": "Reference",
56537
+ "text": "Entity",
56538
+ "canonicalReference": "@dcl/playground-assets!Entity:type"
56539
+ },
56540
+ {
56541
+ "kind": "Content",
56542
+ "text": ";\n opts?: "
56543
+ },
56544
+ {
56545
+ "kind": "Reference",
56546
+ "text": "Partial",
56547
+ "canonicalReference": "!Partial:type"
56548
+ },
56549
+ {
56550
+ "kind": "Content",
56551
+ "text": "<"
56552
+ },
56553
+ {
56554
+ "kind": "Reference",
56555
+ "text": "EventSystemOptions",
56556
+ "canonicalReference": "@dcl/playground-assets!EventSystemOptions:type"
56557
+ },
56558
+ {
56559
+ "kind": "Content",
56560
+ "text": ">;\n }"
56561
+ },
56562
+ {
56563
+ "kind": "Content",
56564
+ "text": ", cb: "
56565
+ },
56566
+ {
56567
+ "kind": "Reference",
56568
+ "text": "EventSystemCallback",
56569
+ "canonicalReference": "@dcl/playground-assets!EventSystemCallback:type"
56570
+ },
56571
+ {
56572
+ "kind": "Content",
56573
+ "text": "): "
56574
+ },
56575
+ {
56576
+ "kind": "Content",
56577
+ "text": "void"
56578
+ },
56579
+ {
56580
+ "kind": "Content",
56581
+ "text": ";"
56582
+ }
56583
+ ],
56584
+ "isOptional": false,
56585
+ "returnTypeTokenRange": {
56586
+ "startIndex": 11,
56587
+ "endIndex": 12
56588
+ },
56589
+ "releaseTag": "Public",
56590
+ "overloadIndex": 1,
56591
+ "parameters": [
56592
+ {
56593
+ "parameterName": "pointerData",
56594
+ "parameterTypeTokenRange": {
56595
+ "startIndex": 1,
56596
+ "endIndex": 8
56597
+ },
56598
+ "isOptional": false
56599
+ },
56600
+ {
56601
+ "parameterName": "cb",
56602
+ "parameterTypeTokenRange": {
56603
+ "startIndex": 9,
56604
+ "endIndex": 10
56605
+ },
56606
+ "isOptional": false
56607
+ }
56608
+ ],
56609
+ "name": "onPointerHoverEnter"
56610
+ },
56611
+ {
56612
+ "kind": "MethodSignature",
56613
+ "canonicalReference": "@dcl/playground-assets!PointerEventsSystem#onPointerHoverLeave:member(1)",
56614
+ "docComment": "/**\n * Execute callback when the user take the pointer out of the entity\n *\n * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button\n *\n * @param cb - Function to execute when click fires\n *\n * @public\n */\n",
56615
+ "excerptTokens": [
56616
+ {
56617
+ "kind": "Content",
56618
+ "text": "onPointerHoverLeave(pointerData: "
56619
+ },
56620
+ {
56621
+ "kind": "Content",
56622
+ "text": "{\n entity: "
56623
+ },
56624
+ {
56625
+ "kind": "Reference",
56626
+ "text": "Entity",
56627
+ "canonicalReference": "@dcl/playground-assets!Entity:type"
56628
+ },
56629
+ {
56630
+ "kind": "Content",
56631
+ "text": ";\n opts?: "
56632
+ },
56633
+ {
56634
+ "kind": "Reference",
56635
+ "text": "Partial",
56636
+ "canonicalReference": "!Partial:type"
56637
+ },
56638
+ {
56639
+ "kind": "Content",
56640
+ "text": "<"
56641
+ },
56642
+ {
56643
+ "kind": "Reference",
56644
+ "text": "EventSystemOptions",
56645
+ "canonicalReference": "@dcl/playground-assets!EventSystemOptions:type"
56646
+ },
56647
+ {
56648
+ "kind": "Content",
56649
+ "text": ">;\n }"
56650
+ },
56651
+ {
56652
+ "kind": "Content",
56653
+ "text": ", cb: "
56654
+ },
56655
+ {
56656
+ "kind": "Reference",
56657
+ "text": "EventSystemCallback",
56658
+ "canonicalReference": "@dcl/playground-assets!EventSystemCallback:type"
56659
+ },
56660
+ {
56661
+ "kind": "Content",
56662
+ "text": "): "
56663
+ },
56664
+ {
56665
+ "kind": "Content",
56666
+ "text": "void"
56667
+ },
56668
+ {
56669
+ "kind": "Content",
56670
+ "text": ";"
56671
+ }
56672
+ ],
56673
+ "isOptional": false,
56674
+ "returnTypeTokenRange": {
56675
+ "startIndex": 11,
56676
+ "endIndex": 12
56677
+ },
56678
+ "releaseTag": "Public",
56679
+ "overloadIndex": 1,
56680
+ "parameters": [
56681
+ {
56682
+ "parameterName": "pointerData",
56683
+ "parameterTypeTokenRange": {
56684
+ "startIndex": 1,
56685
+ "endIndex": 8
56686
+ },
56687
+ "isOptional": false
56688
+ },
56689
+ {
56690
+ "parameterName": "cb",
56691
+ "parameterTypeTokenRange": {
56692
+ "startIndex": 9,
56693
+ "endIndex": 10
56694
+ },
56695
+ "isOptional": false
56696
+ }
56697
+ ],
56698
+ "name": "onPointerHoverLeave"
56699
+ },
56486
56700
  {
56487
56701
  "kind": "MethodSignature",
56488
56702
  "canonicalReference": "@dcl/playground-assets!PointerEventsSystem#onPointerUp:member(1)",
@@ -56711,6 +56925,98 @@
56711
56925
  ],
56712
56926
  "name": "removeOnPointerDown"
56713
56927
  },
56928
+ {
56929
+ "kind": "MethodSignature",
56930
+ "canonicalReference": "@dcl/playground-assets!PointerEventsSystem#removeOnPointerHoverEnter:member(1)",
56931
+ "docComment": "/**\n * Remove the callback for onPointerHoverEnter event\n *\n * @param entity - Entity where the callback was attached\n *\n * @public\n */\n",
56932
+ "excerptTokens": [
56933
+ {
56934
+ "kind": "Content",
56935
+ "text": "removeOnPointerHoverEnter(entity: "
56936
+ },
56937
+ {
56938
+ "kind": "Reference",
56939
+ "text": "Entity",
56940
+ "canonicalReference": "@dcl/playground-assets!Entity:type"
56941
+ },
56942
+ {
56943
+ "kind": "Content",
56944
+ "text": "): "
56945
+ },
56946
+ {
56947
+ "kind": "Content",
56948
+ "text": "void"
56949
+ },
56950
+ {
56951
+ "kind": "Content",
56952
+ "text": ";"
56953
+ }
56954
+ ],
56955
+ "isOptional": false,
56956
+ "returnTypeTokenRange": {
56957
+ "startIndex": 3,
56958
+ "endIndex": 4
56959
+ },
56960
+ "releaseTag": "Public",
56961
+ "overloadIndex": 1,
56962
+ "parameters": [
56963
+ {
56964
+ "parameterName": "entity",
56965
+ "parameterTypeTokenRange": {
56966
+ "startIndex": 1,
56967
+ "endIndex": 2
56968
+ },
56969
+ "isOptional": false
56970
+ }
56971
+ ],
56972
+ "name": "removeOnPointerHoverEnter"
56973
+ },
56974
+ {
56975
+ "kind": "MethodSignature",
56976
+ "canonicalReference": "@dcl/playground-assets!PointerEventsSystem#removeOnPointerHoverLeave:member(1)",
56977
+ "docComment": "/**\n * Remove the callback for onPointerHoverLeave event\n *\n * @param entity - Entity where the callback was attached\n *\n * @public\n */\n",
56978
+ "excerptTokens": [
56979
+ {
56980
+ "kind": "Content",
56981
+ "text": "removeOnPointerHoverLeave(entity: "
56982
+ },
56983
+ {
56984
+ "kind": "Reference",
56985
+ "text": "Entity",
56986
+ "canonicalReference": "@dcl/playground-assets!Entity:type"
56987
+ },
56988
+ {
56989
+ "kind": "Content",
56990
+ "text": "): "
56991
+ },
56992
+ {
56993
+ "kind": "Content",
56994
+ "text": "void"
56995
+ },
56996
+ {
56997
+ "kind": "Content",
56998
+ "text": ";"
56999
+ }
57000
+ ],
57001
+ "isOptional": false,
57002
+ "returnTypeTokenRange": {
57003
+ "startIndex": 3,
57004
+ "endIndex": 4
57005
+ },
57006
+ "releaseTag": "Public",
57007
+ "overloadIndex": 1,
57008
+ "parameters": [
57009
+ {
57010
+ "parameterName": "entity",
57011
+ "parameterTypeTokenRange": {
57012
+ "startIndex": 1,
57013
+ "endIndex": 2
57014
+ },
57015
+ "isOptional": false
57016
+ }
57017
+ ],
57018
+ "name": "removeOnPointerHoverLeave"
57019
+ },
56714
57020
  {
56715
57021
  "kind": "MethodSignature",
56716
57022
  "canonicalReference": "@dcl/playground-assets!PointerEventsSystem#removeOnPointerUp:member(1)",
@@ -1082,6 +1082,8 @@ export type EntityComponents = {
1082
1082
  uiDropdown: PBUiDropdown;
1083
1083
  onMouseDown: Callback;
1084
1084
  onMouseUp: Callback;
1085
+ onMouseEnter: Callback;
1086
+ onMouseLeave: Callback;
1085
1087
  };
1086
1088
 
1087
1089
  // @public (undocumented)
@@ -1558,6 +1560,8 @@ export interface LastWriteWinElementSetComponentDefinition<T> extends BaseCompon
1558
1560
  export type Listeners = {
1559
1561
  onMouseDown?: Callback;
1560
1562
  onMouseUp?: Callback;
1563
+ onMouseEnter?: Callback;
1564
+ onMouseLeave?: Callback;
1561
1565
  };
1562
1566
 
1563
1567
  // @public (undocumented)
@@ -3313,6 +3317,14 @@ export interface PointerEventsSystem {
3313
3317
  }, cb: EventSystemCallback): void;
3314
3318
  // @deprecated (undocumented)
3315
3319
  onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
3320
+ onPointerHoverEnter(pointerData: {
3321
+ entity: Entity;
3322
+ opts?: Partial<EventSystemOptions>;
3323
+ }, cb: EventSystemCallback): void;
3324
+ onPointerHoverLeave(pointerData: {
3325
+ entity: Entity;
3326
+ opts?: Partial<EventSystemOptions>;
3327
+ }, cb: EventSystemCallback): void;
3316
3328
  onPointerUp(pointerData: {
3317
3329
  entity: Entity;
3318
3330
  opts?: Partial<EventSystemOptions>;
@@ -3320,6 +3332,8 @@ export interface PointerEventsSystem {
3320
3332
  // @deprecated (undocumented)
3321
3333
  onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
3322
3334
  removeOnPointerDown(entity: Entity): void;
3335
+ removeOnPointerHoverEnter(entity: Entity): void;
3336
+ removeOnPointerHoverLeave(entity: Entity): void;
3323
3337
  removeOnPointerUp(entity: Entity): void;
3324
3338
  }
3325
3339
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.6.8-12260048919.commit-4123b99",
4
+ "version": "7.6.8-12354882097.commit-0c727b8",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.6.8-12260048919.commit-4123b99",
8
- "@dcl/sdk": "7.6.8-12260048919.commit-4123b99"
7
+ "@dcl/js-runtime": "7.6.8-12354882097.commit-0c727b8",
8
+ "@dcl/sdk": "7.6.8-12354882097.commit-0c727b8"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@microsoft/api-extractor": "^7.33.8"
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "typings": "./dist/index.d.ts",
35
- "commit": "4123b99ea50b207270b479c572210a344efa74ea"
35
+ "commit": "0c727b82d18c849bc14e34108ef9ce7e3531ca64"
36
36
  }