@dcl/playground-assets 7.1.2 → 7.1.3-4448471926.commit-264de76

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.1.2",
3
+ "version": "7.1.3-4448471926.commit-264de76",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -30,5 +30,5 @@
30
30
  "displayName": "SDK",
31
31
  "tsconfig": "./tsconfig.json"
32
32
  },
33
- "commit": "4c363ec1e57406326ff3b3d27941d63b44e7d2e2"
33
+ "commit": "264de7682c191f5abc8dbe754ea1b7e5fac96c4c"
34
34
  }
@@ -1080,6 +1080,19 @@ export declare type Color4Type = {
1080
1080
  a: number;
1081
1081
  };
1082
1082
 
1083
+ /**
1084
+ * @public
1085
+ */
1086
+ export declare interface ComponentData {
1087
+ data?: {
1088
+ $case: "json";
1089
+ json: any | undefined;
1090
+ } | {
1091
+ $case: "binary";
1092
+ binary: Uint8Array;
1093
+ };
1094
+ }
1095
+
1083
1096
  /**
1084
1097
  * @public
1085
1098
  */
@@ -1129,22 +1142,32 @@ export declare const enum ComponentType {
1129
1142
 
1130
1143
  /**
1131
1144
  * @public
1132
- * @deprecated composite is not being supported so far, please do not use this feature
1133
1145
  */
1134
- export declare type Composite = {
1146
+ export declare interface Composite {
1135
1147
  id: string;
1136
- components: {
1137
- name: string;
1138
- schema?: JsonSchemaExtended;
1139
- data: Map<Entity, unknown>;
1140
- }[];
1141
- };
1148
+ components: CompositeComponent[];
1149
+ }
1142
1150
 
1143
1151
  /**
1144
1152
  * @public
1145
- * @deprecated composite is not being supported so far, please do not use this feature
1146
1153
  */
1147
- export declare function compositeFromJson(jsonComposite: any): Composite;
1154
+ export declare interface CompositeComponent {
1155
+ name: string;
1156
+ jsonSchema: any | undefined;
1157
+ data: Map<number, ComponentData>;
1158
+ }
1159
+
1160
+ /**
1161
+ * @public
1162
+ */
1163
+ export declare interface CompositeComponent_DataEntry {
1164
+ key: number;
1165
+ value: ComponentData | undefined;
1166
+ }
1167
+
1168
+ export declare function compositeFromBinary(buffer: Uint8Array): Composite;
1169
+
1170
+ export declare function compositeFromJson(object: any): Composite;
1148
1171
 
1149
1172
  /**
1150
1173
  * @public
@@ -4986,6 +5009,10 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
4986
5009
  * Use any of the available button style types to create a styled button.
4987
5010
  */
4988
5011
  variant?: 'primary' | 'secondary';
5012
+ /**
5013
+ * Enable or disable the pointer events on the button
5014
+ */
5015
+ disabled?: boolean;
4989
5016
  }
4990
5017
 
4991
5018
  /**
@@ -9892,6 +9892,60 @@
9892
9892
  "endIndex": 2
9893
9893
  }
9894
9894
  },
9895
+ {
9896
+ "kind": "Interface",
9897
+ "canonicalReference": "@dcl/playground-assets!ComponentData:interface",
9898
+ "docComment": "/**\n * @public\n */\n",
9899
+ "excerptTokens": [
9900
+ {
9901
+ "kind": "Content",
9902
+ "text": "export interface ComponentData "
9903
+ }
9904
+ ],
9905
+ "fileUrlPath": "../ecs/dist/composite/proto/gen/composite.gen.d.ts",
9906
+ "releaseTag": "Public",
9907
+ "name": "ComponentData",
9908
+ "preserveMemberOrder": false,
9909
+ "members": [
9910
+ {
9911
+ "kind": "PropertySignature",
9912
+ "canonicalReference": "@dcl/playground-assets!ComponentData#data:member",
9913
+ "docComment": "",
9914
+ "excerptTokens": [
9915
+ {
9916
+ "kind": "Content",
9917
+ "text": "data?: "
9918
+ },
9919
+ {
9920
+ "kind": "Content",
9921
+ "text": "{\n $case: \"json\";\n json: any | undefined;\n } | {\n $case: \"binary\";\n binary: "
9922
+ },
9923
+ {
9924
+ "kind": "Reference",
9925
+ "text": "Uint8Array",
9926
+ "canonicalReference": "!Uint8Array:interface"
9927
+ },
9928
+ {
9929
+ "kind": "Content",
9930
+ "text": ";\n }"
9931
+ },
9932
+ {
9933
+ "kind": "Content",
9934
+ "text": ";"
9935
+ }
9936
+ ],
9937
+ "isReadonly": false,
9938
+ "isOptional": true,
9939
+ "releaseTag": "Public",
9940
+ "name": "data",
9941
+ "propertyTypeTokenRange": {
9942
+ "startIndex": 1,
9943
+ "endIndex": 4
9944
+ }
9945
+ }
9946
+ ],
9947
+ "extendsTokenRanges": []
9948
+ },
9895
9949
  {
9896
9950
  "kind": "TypeAlias",
9897
9951
  "canonicalReference": "@dcl/playground-assets!ComponentDefinition:type",
@@ -10811,66 +10865,327 @@
10811
10865
  ]
10812
10866
  },
10813
10867
  {
10814
- "kind": "TypeAlias",
10815
- "canonicalReference": "@dcl/playground-assets!Composite:type",
10816
- "docComment": "/**\n * @deprecated\n *\n * composite is not being supported so far, please do not use this feature\n *\n * @public\n */\n",
10868
+ "kind": "Interface",
10869
+ "canonicalReference": "@dcl/playground-assets!Composite:interface",
10870
+ "docComment": "/**\n * @public\n */\n",
10817
10871
  "excerptTokens": [
10818
10872
  {
10819
10873
  "kind": "Content",
10820
- "text": "export type Composite = "
10874
+ "text": "export interface Composite "
10875
+ }
10876
+ ],
10877
+ "fileUrlPath": "../ecs/dist/composite/proto/gen/composite.gen.d.ts",
10878
+ "releaseTag": "Public",
10879
+ "name": "Composite",
10880
+ "preserveMemberOrder": false,
10881
+ "members": [
10882
+ {
10883
+ "kind": "PropertySignature",
10884
+ "canonicalReference": "@dcl/playground-assets!Composite#components:member",
10885
+ "docComment": "",
10886
+ "excerptTokens": [
10887
+ {
10888
+ "kind": "Content",
10889
+ "text": "components: "
10890
+ },
10891
+ {
10892
+ "kind": "Reference",
10893
+ "text": "CompositeComponent",
10894
+ "canonicalReference": "@dcl/playground-assets!CompositeComponent:interface"
10895
+ },
10896
+ {
10897
+ "kind": "Content",
10898
+ "text": "[]"
10899
+ },
10900
+ {
10901
+ "kind": "Content",
10902
+ "text": ";"
10903
+ }
10904
+ ],
10905
+ "isReadonly": false,
10906
+ "isOptional": false,
10907
+ "releaseTag": "Public",
10908
+ "name": "components",
10909
+ "propertyTypeTokenRange": {
10910
+ "startIndex": 1,
10911
+ "endIndex": 3
10912
+ }
10821
10913
  },
10914
+ {
10915
+ "kind": "PropertySignature",
10916
+ "canonicalReference": "@dcl/playground-assets!Composite#id:member",
10917
+ "docComment": "",
10918
+ "excerptTokens": [
10919
+ {
10920
+ "kind": "Content",
10921
+ "text": "id: "
10922
+ },
10923
+ {
10924
+ "kind": "Content",
10925
+ "text": "string"
10926
+ },
10927
+ {
10928
+ "kind": "Content",
10929
+ "text": ";"
10930
+ }
10931
+ ],
10932
+ "isReadonly": false,
10933
+ "isOptional": false,
10934
+ "releaseTag": "Public",
10935
+ "name": "id",
10936
+ "propertyTypeTokenRange": {
10937
+ "startIndex": 1,
10938
+ "endIndex": 2
10939
+ }
10940
+ }
10941
+ ],
10942
+ "extendsTokenRanges": []
10943
+ },
10944
+ {
10945
+ "kind": "Interface",
10946
+ "canonicalReference": "@dcl/playground-assets!CompositeComponent_DataEntry:interface",
10947
+ "docComment": "/**\n * @public\n */\n",
10948
+ "excerptTokens": [
10822
10949
  {
10823
10950
  "kind": "Content",
10824
- "text": "{\n id: string;\n components: {\n name: string;\n schema?: "
10825
- },
10951
+ "text": "export interface CompositeComponent_DataEntry "
10952
+ }
10953
+ ],
10954
+ "fileUrlPath": "../ecs/dist/composite/proto/gen/composite.gen.d.ts",
10955
+ "releaseTag": "Public",
10956
+ "name": "CompositeComponent_DataEntry",
10957
+ "preserveMemberOrder": false,
10958
+ "members": [
10826
10959
  {
10827
- "kind": "Reference",
10828
- "text": "JsonSchemaExtended",
10829
- "canonicalReference": "@dcl/playground-assets!JsonSchemaExtended:type"
10960
+ "kind": "PropertySignature",
10961
+ "canonicalReference": "@dcl/playground-assets!CompositeComponent_DataEntry#key:member",
10962
+ "docComment": "",
10963
+ "excerptTokens": [
10964
+ {
10965
+ "kind": "Content",
10966
+ "text": "key: "
10967
+ },
10968
+ {
10969
+ "kind": "Content",
10970
+ "text": "number"
10971
+ },
10972
+ {
10973
+ "kind": "Content",
10974
+ "text": ";"
10975
+ }
10976
+ ],
10977
+ "isReadonly": false,
10978
+ "isOptional": false,
10979
+ "releaseTag": "Public",
10980
+ "name": "key",
10981
+ "propertyTypeTokenRange": {
10982
+ "startIndex": 1,
10983
+ "endIndex": 2
10984
+ }
10830
10985
  },
10986
+ {
10987
+ "kind": "PropertySignature",
10988
+ "canonicalReference": "@dcl/playground-assets!CompositeComponent_DataEntry#value:member",
10989
+ "docComment": "",
10990
+ "excerptTokens": [
10991
+ {
10992
+ "kind": "Content",
10993
+ "text": "value: "
10994
+ },
10995
+ {
10996
+ "kind": "Reference",
10997
+ "text": "ComponentData",
10998
+ "canonicalReference": "@dcl/playground-assets!ComponentData:interface"
10999
+ },
11000
+ {
11001
+ "kind": "Content",
11002
+ "text": " | undefined"
11003
+ },
11004
+ {
11005
+ "kind": "Content",
11006
+ "text": ";"
11007
+ }
11008
+ ],
11009
+ "isReadonly": false,
11010
+ "isOptional": false,
11011
+ "releaseTag": "Public",
11012
+ "name": "value",
11013
+ "propertyTypeTokenRange": {
11014
+ "startIndex": 1,
11015
+ "endIndex": 3
11016
+ }
11017
+ }
11018
+ ],
11019
+ "extendsTokenRanges": []
11020
+ },
11021
+ {
11022
+ "kind": "Interface",
11023
+ "canonicalReference": "@dcl/playground-assets!CompositeComponent:interface",
11024
+ "docComment": "/**\n * @public\n */\n",
11025
+ "excerptTokens": [
10831
11026
  {
10832
11027
  "kind": "Content",
10833
- "text": ";\n data: "
11028
+ "text": "export interface CompositeComponent "
11029
+ }
11030
+ ],
11031
+ "fileUrlPath": "../ecs/dist/composite/proto/gen/composite.gen.d.ts",
11032
+ "releaseTag": "Public",
11033
+ "name": "CompositeComponent",
11034
+ "preserveMemberOrder": false,
11035
+ "members": [
11036
+ {
11037
+ "kind": "PropertySignature",
11038
+ "canonicalReference": "@dcl/playground-assets!CompositeComponent#data:member",
11039
+ "docComment": "",
11040
+ "excerptTokens": [
11041
+ {
11042
+ "kind": "Content",
11043
+ "text": "data: "
11044
+ },
11045
+ {
11046
+ "kind": "Reference",
11047
+ "text": "Map",
11048
+ "canonicalReference": "!Map:interface"
11049
+ },
11050
+ {
11051
+ "kind": "Content",
11052
+ "text": "<number, "
11053
+ },
11054
+ {
11055
+ "kind": "Reference",
11056
+ "text": "ComponentData",
11057
+ "canonicalReference": "@dcl/playground-assets!ComponentData:interface"
11058
+ },
11059
+ {
11060
+ "kind": "Content",
11061
+ "text": ">"
11062
+ },
11063
+ {
11064
+ "kind": "Content",
11065
+ "text": ";"
11066
+ }
11067
+ ],
11068
+ "isReadonly": false,
11069
+ "isOptional": false,
11070
+ "releaseTag": "Public",
11071
+ "name": "data",
11072
+ "propertyTypeTokenRange": {
11073
+ "startIndex": 1,
11074
+ "endIndex": 5
11075
+ }
10834
11076
  },
10835
11077
  {
10836
- "kind": "Reference",
10837
- "text": "Map",
10838
- "canonicalReference": "!Map:interface"
11078
+ "kind": "PropertySignature",
11079
+ "canonicalReference": "@dcl/playground-assets!CompositeComponent#jsonSchema:member",
11080
+ "docComment": "",
11081
+ "excerptTokens": [
11082
+ {
11083
+ "kind": "Content",
11084
+ "text": "jsonSchema: "
11085
+ },
11086
+ {
11087
+ "kind": "Content",
11088
+ "text": "any | undefined"
11089
+ },
11090
+ {
11091
+ "kind": "Content",
11092
+ "text": ";"
11093
+ }
11094
+ ],
11095
+ "isReadonly": false,
11096
+ "isOptional": false,
11097
+ "releaseTag": "Public",
11098
+ "name": "jsonSchema",
11099
+ "propertyTypeTokenRange": {
11100
+ "startIndex": 1,
11101
+ "endIndex": 2
11102
+ }
10839
11103
  },
11104
+ {
11105
+ "kind": "PropertySignature",
11106
+ "canonicalReference": "@dcl/playground-assets!CompositeComponent#name:member",
11107
+ "docComment": "",
11108
+ "excerptTokens": [
11109
+ {
11110
+ "kind": "Content",
11111
+ "text": "name: "
11112
+ },
11113
+ {
11114
+ "kind": "Content",
11115
+ "text": "string"
11116
+ },
11117
+ {
11118
+ "kind": "Content",
11119
+ "text": ";"
11120
+ }
11121
+ ],
11122
+ "isReadonly": false,
11123
+ "isOptional": false,
11124
+ "releaseTag": "Public",
11125
+ "name": "name",
11126
+ "propertyTypeTokenRange": {
11127
+ "startIndex": 1,
11128
+ "endIndex": 2
11129
+ }
11130
+ }
11131
+ ],
11132
+ "extendsTokenRanges": []
11133
+ },
11134
+ {
11135
+ "kind": "Function",
11136
+ "canonicalReference": "@dcl/playground-assets!compositeFromBinary:function(1)",
11137
+ "docComment": "",
11138
+ "excerptTokens": [
10840
11139
  {
10841
11140
  "kind": "Content",
10842
- "text": "<"
11141
+ "text": "export declare function compositeFromBinary(buffer: "
10843
11142
  },
10844
11143
  {
10845
11144
  "kind": "Reference",
10846
- "text": "Entity",
10847
- "canonicalReference": "@dcl/playground-assets!Entity:type"
11145
+ "text": "Uint8Array",
11146
+ "canonicalReference": "!Uint8Array:interface"
10848
11147
  },
10849
11148
  {
10850
11149
  "kind": "Content",
10851
- "text": ", unknown>;\n }[];\n}"
11150
+ "text": "): "
11151
+ },
11152
+ {
11153
+ "kind": "Reference",
11154
+ "text": "Composite",
11155
+ "canonicalReference": "@dcl/playground-assets!Composite:interface"
10852
11156
  },
10853
11157
  {
10854
11158
  "kind": "Content",
10855
11159
  "text": ";"
10856
11160
  }
10857
11161
  ],
10858
- "fileUrlPath": "../ecs/dist/composite/types.d.ts",
11162
+ "fileUrlPath": "../ecs/dist/composite/serialization.d.ts",
11163
+ "returnTypeTokenRange": {
11164
+ "startIndex": 3,
11165
+ "endIndex": 4
11166
+ },
10859
11167
  "releaseTag": "Public",
10860
- "name": "Composite",
10861
- "typeTokenRange": {
10862
- "startIndex": 1,
10863
- "endIndex": 8
10864
- }
11168
+ "overloadIndex": 1,
11169
+ "parameters": [
11170
+ {
11171
+ "parameterName": "buffer",
11172
+ "parameterTypeTokenRange": {
11173
+ "startIndex": 1,
11174
+ "endIndex": 2
11175
+ },
11176
+ "isOptional": false
11177
+ }
11178
+ ],
11179
+ "name": "compositeFromBinary"
10865
11180
  },
10866
11181
  {
10867
11182
  "kind": "Function",
10868
11183
  "canonicalReference": "@dcl/playground-assets!compositeFromJson:function(1)",
10869
- "docComment": "/**\n * @deprecated\n *\n * composite is not being supported so far, please do not use this feature\n *\n * @public\n */\n",
11184
+ "docComment": "",
10870
11185
  "excerptTokens": [
10871
11186
  {
10872
11187
  "kind": "Content",
10873
- "text": "export declare function compositeFromJson(jsonComposite: "
11188
+ "text": "export declare function compositeFromJson(object: "
10874
11189
  },
10875
11190
  {
10876
11191
  "kind": "Content",
@@ -10883,7 +11198,7 @@
10883
11198
  {
10884
11199
  "kind": "Reference",
10885
11200
  "text": "Composite",
10886
- "canonicalReference": "@dcl/playground-assets!Composite:type"
11201
+ "canonicalReference": "@dcl/playground-assets!Composite:interface"
10887
11202
  },
10888
11203
  {
10889
11204
  "kind": "Content",
@@ -10899,7 +11214,7 @@
10899
11214
  "overloadIndex": 1,
10900
11215
  "parameters": [
10901
11216
  {
10902
- "parameterName": "jsonComposite",
11217
+ "parameterName": "object",
10903
11218
  "parameterTypeTokenRange": {
10904
11219
  "startIndex": 1,
10905
11220
  "endIndex": 2
@@ -10925,7 +11240,7 @@
10925
11240
  {
10926
11241
  "kind": "Reference",
10927
11242
  "text": "Composite",
10928
- "canonicalReference": "@dcl/playground-assets!Composite:type"
11243
+ "canonicalReference": "@dcl/playground-assets!Composite:interface"
10929
11244
  },
10930
11245
  {
10931
11246
  "kind": "Content",
@@ -17070,7 +17385,7 @@
17070
17385
  {
17071
17386
  "kind": "Reference",
17072
17387
  "text": "Composite",
17073
- "canonicalReference": "@dcl/playground-assets!Composite:type"
17388
+ "canonicalReference": "@dcl/playground-assets!Composite:interface"
17074
17389
  },
17075
17390
  {
17076
17391
  "kind": "Content",
@@ -45653,6 +45968,33 @@
45653
45968
  "name": "UiButtonProps",
45654
45969
  "preserveMemberOrder": false,
45655
45970
  "members": [
45971
+ {
45972
+ "kind": "PropertySignature",
45973
+ "canonicalReference": "@dcl/playground-assets!UiButtonProps#disabled:member",
45974
+ "docComment": "/**\n * Enable or disable the pointer events on the button\n */\n",
45975
+ "excerptTokens": [
45976
+ {
45977
+ "kind": "Content",
45978
+ "text": "disabled?: "
45979
+ },
45980
+ {
45981
+ "kind": "Content",
45982
+ "text": "boolean"
45983
+ },
45984
+ {
45985
+ "kind": "Content",
45986
+ "text": ";"
45987
+ }
45988
+ ],
45989
+ "isReadonly": false,
45990
+ "isOptional": true,
45991
+ "releaseTag": "Public",
45992
+ "name": "disabled",
45993
+ "propertyTypeTokenRange": {
45994
+ "startIndex": 1,
45995
+ "endIndex": 2
45996
+ }
45997
+ },
45656
45998
  {
45657
45999
  "kind": "PropertySignature",
45658
46000
  "canonicalReference": "@dcl/playground-assets!UiButtonProps#variant:member",
@@ -433,6 +433,18 @@ export type Color4Type = {
433
433
  a: number;
434
434
  };
435
435
 
436
+ // @public (undocumented)
437
+ export interface ComponentData {
438
+ // (undocumented)
439
+ data?: {
440
+ $case: "json";
441
+ json: any | undefined;
442
+ } | {
443
+ $case: "binary";
444
+ binary: Uint8Array;
445
+ };
446
+ }
447
+
436
448
  // @public (undocumented)
437
449
  export type ComponentDefinition<T> = LastWriteWinElementSetComponentDefinition<T> | GrowOnlyValueSetComponentDefinition<T>;
438
450
 
@@ -479,18 +491,41 @@ export const enum ComponentType {
479
491
  LastWriteWinElementSet = 0
480
492
  }
481
493
 
482
- // @public @deprecated (undocumented)
483
- export type Composite = {
494
+ // @public (undocumented)
495
+ export interface Composite {
496
+ // (undocumented)
497
+ components: CompositeComponent[];
498
+ // (undocumented)
484
499
  id: string;
485
- components: {
486
- name: string;
487
- schema?: JsonSchemaExtended;
488
- data: Map<Entity, unknown>;
489
- }[];
490
- };
500
+ }
491
501
 
492
- // @public @deprecated (undocumented)
493
- export function compositeFromJson(jsonComposite: any): Composite;
502
+ // @public (undocumented)
503
+ export interface CompositeComponent {
504
+ // (undocumented)
505
+ data: Map<number, ComponentData>;
506
+ // (undocumented)
507
+ jsonSchema: any | undefined;
508
+ // (undocumented)
509
+ name: string;
510
+ }
511
+
512
+ // @public (undocumented)
513
+ export interface CompositeComponent_DataEntry {
514
+ // (undocumented)
515
+ key: number;
516
+ // (undocumented)
517
+ value: ComponentData | undefined;
518
+ }
519
+
520
+ // Warning: (ae-missing-release-tag) "compositeFromBinary" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
521
+ //
522
+ // @public (undocumented)
523
+ export function compositeFromBinary(buffer: Uint8Array): Composite;
524
+
525
+ // Warning: (ae-missing-release-tag) "compositeFromJson" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
526
+ //
527
+ // @public (undocumented)
528
+ export function compositeFromJson(object: any): Composite;
494
529
 
495
530
  // @public @deprecated (undocumented)
496
531
  export type CompositeProvider = {
@@ -2742,6 +2777,7 @@ export interface UiBackgroundProps {
2742
2777
 
2743
2778
  // @public
2744
2779
  export interface UiButtonProps extends UiLabelProps, EntityPropTypes {
2780
+ disabled?: boolean;
2745
2781
  variant?: 'primary' | 'secondary';
2746
2782
  }
2747
2783
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
- "version": "7.1.2",
3
+ "version": "7.1.3-4448471926.commit-264de76",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "author": "Decentraland",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcl/sdk": "7.1.2"
20
+ "@dcl/sdk": "7.1.3-4448471926.commit-264de76"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@microsoft/api-extractor": "^7.33.8"
@@ -27,5 +27,5 @@
27
27
  "dist",
28
28
  "etc"
29
29
  ],
30
- "commit": "4c363ec1e57406326ff3b3d27941d63b44e7d2e2"
30
+ "commit": "264de7682c191f5abc8dbe754ea1b7e5fac96c4c"
31
31
  }