@dcl/playground-assets 7.17.1-20863678121.commit-2175acc → 7.17.1-21217092165.commit-1c2ff72
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/dist/alpha.d.ts +19 -0
- package/dist/beta.d.ts +19 -0
- package/dist/index.bundled.d.ts +19 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +3 -3
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +19 -0
- package/etc/playground-assets.api.json +109 -0
- package/etc/playground-assets.api.md +2 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.17.1-
|
|
4
|
+
"version": "7.17.1-21217092165.commit-1c2ff72",
|
|
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": "
|
|
38
|
+
"commit": "1c2ff7242cd11eb981666a8318f670c0b302813b"
|
|
39
39
|
}
|
|
@@ -6928,6 +6928,25 @@ export declare type RaycastSystemOptions = {
|
|
|
6928
6928
|
export declare interface ReactBasedUiSystem {
|
|
6929
6929
|
destroy(): void;
|
|
6930
6930
|
setUiRenderer(ui: UiComponent): void;
|
|
6931
|
+
/**
|
|
6932
|
+
* Add a UI renderer associated with an entity. The UI will be automatically cleaned up
|
|
6933
|
+
* when the entity is removed from the engine.
|
|
6934
|
+
*
|
|
6935
|
+
* If a renderer is already associated with the given entity, it will be replaced.
|
|
6936
|
+
*
|
|
6937
|
+
* This allows dynamically adding UI Renderers that are rendered alongside the main
|
|
6938
|
+
* UI set via setUiRenderer().
|
|
6939
|
+
*
|
|
6940
|
+
* @param entity - The entity to associate with this UI renderer. When the entity is removed,
|
|
6941
|
+
* the UI renderer is automatically cleaned up.
|
|
6942
|
+
* @param ui - The UI component to render
|
|
6943
|
+
*/
|
|
6944
|
+
addUiRenderer(entity: Entity, ui: UiComponent): void;
|
|
6945
|
+
/**
|
|
6946
|
+
* Remove a previously added UI renderer by its associated entity.
|
|
6947
|
+
* @param entity - The entity whose UI renderer should be removed
|
|
6948
|
+
*/
|
|
6949
|
+
removeUiRenderer(entity: Entity): void;
|
|
6931
6950
|
}
|
|
6932
6951
|
|
|
6933
6952
|
/**
|
|
@@ -66756,6 +66756,69 @@
|
|
|
66756
66756
|
"name": "ReactBasedUiSystem",
|
|
66757
66757
|
"preserveMemberOrder": false,
|
|
66758
66758
|
"members": [
|
|
66759
|
+
{
|
|
66760
|
+
"kind": "MethodSignature",
|
|
66761
|
+
"canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#addUiRenderer:member(1)",
|
|
66762
|
+
"docComment": "/**\n * Add a UI renderer associated with an entity. The UI will be automatically cleaned up when the entity is removed from the engine.\n *\n * If a renderer is already associated with the given entity, it will be replaced.\n *\n * This allows dynamically adding UI Renderers that are rendered alongside the main UI set via setUiRenderer().\n *\n * @param entity - The entity to associate with this UI renderer. When the entity is removed, the UI renderer is automatically cleaned up.\n *\n * @param ui - The UI component to render\n */\n",
|
|
66763
|
+
"excerptTokens": [
|
|
66764
|
+
{
|
|
66765
|
+
"kind": "Content",
|
|
66766
|
+
"text": "addUiRenderer(entity: "
|
|
66767
|
+
},
|
|
66768
|
+
{
|
|
66769
|
+
"kind": "Reference",
|
|
66770
|
+
"text": "Entity",
|
|
66771
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
66772
|
+
},
|
|
66773
|
+
{
|
|
66774
|
+
"kind": "Content",
|
|
66775
|
+
"text": ", ui: "
|
|
66776
|
+
},
|
|
66777
|
+
{
|
|
66778
|
+
"kind": "Reference",
|
|
66779
|
+
"text": "UiComponent",
|
|
66780
|
+
"canonicalReference": "@dcl/playground-assets!UiComponent:type"
|
|
66781
|
+
},
|
|
66782
|
+
{
|
|
66783
|
+
"kind": "Content",
|
|
66784
|
+
"text": "): "
|
|
66785
|
+
},
|
|
66786
|
+
{
|
|
66787
|
+
"kind": "Content",
|
|
66788
|
+
"text": "void"
|
|
66789
|
+
},
|
|
66790
|
+
{
|
|
66791
|
+
"kind": "Content",
|
|
66792
|
+
"text": ";"
|
|
66793
|
+
}
|
|
66794
|
+
],
|
|
66795
|
+
"isOptional": false,
|
|
66796
|
+
"returnTypeTokenRange": {
|
|
66797
|
+
"startIndex": 5,
|
|
66798
|
+
"endIndex": 6
|
|
66799
|
+
},
|
|
66800
|
+
"releaseTag": "Public",
|
|
66801
|
+
"overloadIndex": 1,
|
|
66802
|
+
"parameters": [
|
|
66803
|
+
{
|
|
66804
|
+
"parameterName": "entity",
|
|
66805
|
+
"parameterTypeTokenRange": {
|
|
66806
|
+
"startIndex": 1,
|
|
66807
|
+
"endIndex": 2
|
|
66808
|
+
},
|
|
66809
|
+
"isOptional": false
|
|
66810
|
+
},
|
|
66811
|
+
{
|
|
66812
|
+
"parameterName": "ui",
|
|
66813
|
+
"parameterTypeTokenRange": {
|
|
66814
|
+
"startIndex": 3,
|
|
66815
|
+
"endIndex": 4
|
|
66816
|
+
},
|
|
66817
|
+
"isOptional": false
|
|
66818
|
+
}
|
|
66819
|
+
],
|
|
66820
|
+
"name": "addUiRenderer"
|
|
66821
|
+
},
|
|
66759
66822
|
{
|
|
66760
66823
|
"kind": "MethodSignature",
|
|
66761
66824
|
"canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#destroy:member(1)",
|
|
@@ -66784,6 +66847,52 @@
|
|
|
66784
66847
|
"parameters": [],
|
|
66785
66848
|
"name": "destroy"
|
|
66786
66849
|
},
|
|
66850
|
+
{
|
|
66851
|
+
"kind": "MethodSignature",
|
|
66852
|
+
"canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#removeUiRenderer:member(1)",
|
|
66853
|
+
"docComment": "/**\n * Remove a previously added UI renderer by its associated entity.\n *\n * @param entity - The entity whose UI renderer should be removed\n */\n",
|
|
66854
|
+
"excerptTokens": [
|
|
66855
|
+
{
|
|
66856
|
+
"kind": "Content",
|
|
66857
|
+
"text": "removeUiRenderer(entity: "
|
|
66858
|
+
},
|
|
66859
|
+
{
|
|
66860
|
+
"kind": "Reference",
|
|
66861
|
+
"text": "Entity",
|
|
66862
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
66863
|
+
},
|
|
66864
|
+
{
|
|
66865
|
+
"kind": "Content",
|
|
66866
|
+
"text": "): "
|
|
66867
|
+
},
|
|
66868
|
+
{
|
|
66869
|
+
"kind": "Content",
|
|
66870
|
+
"text": "void"
|
|
66871
|
+
},
|
|
66872
|
+
{
|
|
66873
|
+
"kind": "Content",
|
|
66874
|
+
"text": ";"
|
|
66875
|
+
}
|
|
66876
|
+
],
|
|
66877
|
+
"isOptional": false,
|
|
66878
|
+
"returnTypeTokenRange": {
|
|
66879
|
+
"startIndex": 3,
|
|
66880
|
+
"endIndex": 4
|
|
66881
|
+
},
|
|
66882
|
+
"releaseTag": "Public",
|
|
66883
|
+
"overloadIndex": 1,
|
|
66884
|
+
"parameters": [
|
|
66885
|
+
{
|
|
66886
|
+
"parameterName": "entity",
|
|
66887
|
+
"parameterTypeTokenRange": {
|
|
66888
|
+
"startIndex": 1,
|
|
66889
|
+
"endIndex": 2
|
|
66890
|
+
},
|
|
66891
|
+
"isOptional": false
|
|
66892
|
+
}
|
|
66893
|
+
],
|
|
66894
|
+
"name": "removeUiRenderer"
|
|
66895
|
+
},
|
|
66787
66896
|
{
|
|
66788
66897
|
"kind": "MethodSignature",
|
|
66789
66898
|
"canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#setUiRenderer:member(1)",
|
|
@@ -3877,8 +3877,10 @@ export type RaycastSystemOptions = {
|
|
|
3877
3877
|
|
|
3878
3878
|
// @public (undocumented)
|
|
3879
3879
|
export interface ReactBasedUiSystem {
|
|
3880
|
+
addUiRenderer(entity: Entity, ui: UiComponent): void;
|
|
3880
3881
|
// (undocumented)
|
|
3881
3882
|
destroy(): void;
|
|
3883
|
+
removeUiRenderer(entity: Entity): void;
|
|
3882
3884
|
// (undocumented)
|
|
3883
3885
|
setUiRenderer(ui: UiComponent): void;
|
|
3884
3886
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.17.1-
|
|
4
|
+
"version": "7.17.1-21217092165.commit-1c2ff72",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.17.1-
|
|
8
|
-
"@dcl/sdk": "7.17.1-
|
|
7
|
+
"@dcl/js-runtime": "7.17.1-21217092165.commit-1c2ff72",
|
|
8
|
+
"@dcl/sdk": "7.17.1-21217092165.commit-1c2ff72"
|
|
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": "
|
|
35
|
+
"commit": "1c2ff7242cd11eb981666a8318f670c0b302813b"
|
|
36
36
|
}
|