@dcl/sdk 7.0.0-2805922413.commit-7f80d4a → 7.0.0-2827081203.commit-fe0fe32

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.
@@ -10,9 +10,9 @@ message PBAnimator {
10
10
  message PBAnimationState {
11
11
  string name = 1;
12
12
  string clip = 2;
13
- bool playing = 3;
14
- float weight = 4;
15
- float speed = 5;
16
- bool loop = 6;
17
- bool should_reset = 7;
13
+ optional bool playing = 3;
14
+ optional float weight = 4; // default=1.0s
15
+ optional float speed = 5; // default=1.0
16
+ optional bool loop = 6; // default=true
17
+ optional bool should_reset = 7;
18
18
  }
@@ -4,9 +4,9 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1020;
5
5
 
6
6
  message PBAudioSource {
7
- bool playing = 1;
8
- float volume = 2;
9
- bool loop = 3;
10
- float pitch = 4;
7
+ optional bool playing = 1;
8
+ optional float volume = 2; // default=1.0f
9
+ optional bool loop = 3;
10
+ optional float pitch = 4; // default=1.0f
11
11
  string audio_clip_url = 5;
12
12
  }
@@ -4,7 +4,7 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1021;
5
5
 
6
6
  message PBAudioStream {
7
- bool playing = 1;
8
- float volume = 2;
7
+ optional bool playing = 1;
8
+ optional float volume = 2; // default=1.0f
9
9
  string url = 3;
10
10
  }
@@ -6,15 +6,15 @@ import "common/Color3.proto";
6
6
 
7
7
  message PBAvatarShape {
8
8
  string id = 1;
9
- string name = 2;
10
- string body_shape = 3;
11
- Color3 skin_color = 4;
12
- Color3 hair_color = 5;
13
- Color3 eye_color = 6;
9
+ optional string name = 2;
10
+ optional string body_shape = 3;
11
+ optional Color3 skin_color = 4;
12
+ optional Color3 hair_color = 5;
13
+ optional Color3 eye_color = 6;
14
14
  repeated string wearables = 7;
15
- string expression_trigger_id = 8;
16
- int64 expression_trigger_timestamp = 9;
17
- string sticker_trigger_id = 10;
18
- int64 sticker_trigger_timestamp = 11;
19
- bool talking = 12;
15
+ optional string expression_trigger_id = 8;
16
+ optional int64 expression_trigger_timestamp = 9;
17
+ optional string sticker_trigger_id = 10;
18
+ optional int64 sticker_trigger_timestamp = 11;
19
+ optional bool talking = 12;
20
20
  }
@@ -4,7 +4,7 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1090;
5
5
 
6
6
  message PBBillboard {
7
- bool x = 1;
8
- bool y = 2;
9
- bool z = 3;
7
+ optional bool x = 1; // default=true
8
+ optional bool y = 2; // default=true
9
+ optional bool z = 3; // default=true
10
10
  }
@@ -4,8 +4,11 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1013;
5
5
 
6
6
  message PBBoxShape {
7
- bool with_collisions = 1;
8
- bool is_pointer_blocker = 2;
9
- bool visible = 3;
7
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
8
+ optional bool with_collisions = 1; // default=true
9
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
+ optional bool is_pointer_blocker = 2; // default=true
11
+ // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
12
+ optional bool visible = 3; // default=true
10
13
  repeated float uvs = 4;
11
14
  }
@@ -4,9 +4,12 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1016;
5
5
 
6
6
  message PBCylinderShape {
7
- bool with_collisions = 1;
8
- bool is_pointer_blocker = 2;
9
- bool visible = 3;
10
- float radius_top = 4;
11
- float radius_bottom = 5;
7
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
8
+ optional bool with_collisions = 1; // default=true
9
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
+ optional bool is_pointer_blocker = 2; // default=true
11
+ // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
12
+ optional bool visible = 3; // default=true
13
+ optional float radius_top = 4; // default=1.0
14
+ optional float radius_bottom = 5; // default=1.0
12
15
  }
@@ -4,8 +4,11 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1041;
5
5
 
6
6
  message PBGLTFShape {
7
- bool with_collisions = 1;
8
- bool is_pointer_blocker = 2;
9
- bool visible = 3;
7
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
8
+ optional bool with_collisions = 1; // default=true
9
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
+ optional bool is_pointer_blocker = 2; // default=true
11
+ // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
12
+ optional bool visible = 3; // default=true
10
13
  string src = 4;
11
14
  }
@@ -6,11 +6,14 @@ option (ecs_component_id) = 1040;
6
6
  import "common/Color3.proto";
7
7
 
8
8
  message PBNFTShape {
9
- bool with_collisions = 1;
10
- bool is_pointer_blocker = 2;
11
- bool visible = 3;
9
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
+ optional bool with_collisions = 1; // default=true
11
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
12
+ optional bool is_pointer_blocker = 2; // default=true
13
+ // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
14
+ optional bool visible = 3; // default=true
12
15
  string src = 4;
13
- string asset_id = 5;
14
- int32 style = 6;
15
- Color3 color = 7;
16
+ optional string asset_id = 5;
17
+ optional int32 style = 6;
18
+ optional Color3 color = 7;
16
19
  }
@@ -5,8 +5,8 @@ option (ecs_component_id) = 1060;
5
5
  import "common/ActionButton.proto";
6
6
 
7
7
  message PBOnPointerDown {
8
- ActionButton button = 1;
9
- string hover_text = 2;
10
- float distance = 3;
11
- bool show_feedback = 4;
8
+ optional ActionButton button = 1; // default=ActionButton.ANY
9
+ optional string hover_text = 2; // default='Interact'
10
+ optional float max_distance = 3; // default=10
11
+ optional bool show_feedback = 4; // default=true
12
12
  }
@@ -5,8 +5,8 @@ option (ecs_component_id) = 1061;
5
5
  import "common/ActionButton.proto";
6
6
 
7
7
  message PBOnPointerUp {
8
- ActionButton button = 1;
9
- string hover_text = 2;
10
- float distance = 3;
11
- bool show_feedback = 4;
8
+ optional ActionButton button = 1; // default=ActionButton.ANY
9
+ optional string hover_text = 2; // default='Interact'
10
+ optional float max_distance = 3; // default=10
11
+ optional bool show_feedback = 4; // default=true
12
12
  }
@@ -4,8 +4,11 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1014;
5
5
 
6
6
  message PBPlaneShape {
7
- bool with_collisions = 1;
8
- bool is_pointer_blocker = 2;
9
- bool visible = 3;
7
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
8
+ optional bool with_collisions = 1; // default=true
9
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
+ optional bool is_pointer_blocker = 2; // default=true
11
+ // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
12
+ optional bool visible = 3; // default=true
10
13
  repeated float uvs = 4;
11
14
  }
@@ -4,7 +4,10 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1015;
5
5
 
6
6
  message PBSphereShape {
7
- bool with_collisions = 1;
8
- bool is_pointer_blocker = 2;
9
- bool visible = 3;
7
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
8
+ optional bool with_collisions = 1; // default=true
9
+ // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
+ optional bool is_pointer_blocker = 2; // default=true
11
+ // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
12
+ optional bool visible = 3; // default=true
10
13
  }
@@ -7,27 +7,28 @@ import "common/Color3.proto";
7
7
 
8
8
  message PBTextShape {
9
9
  string text = 1;
10
- bool visible = 2;
11
- string font = 3;
12
- float opacity = 4;
13
- float font_Size = 5;
14
- bool font_autoSize = 6;
15
- string h_text_align = 7;
16
- string v_text_align = 8;
17
- float width = 9;
18
- float height = 10;
19
- float padding_top = 11;
20
- float padding_right = 12;
21
- float padding_bottom = 13;
22
- float padding_left = 14;
23
- float line_spacing = 15;
24
- int32 line_count = 16;
25
- bool text_wrapping = 17;
26
- float shadow_blur = 18;
27
- float shadow_offsetX = 19;
28
- float shadow_offsetY = 20;
29
- float outline_width = 21;
30
- Color3 shadow_color = 22;
31
- Color3 outline_color = 23;
32
- Color3 text_color = 24;
10
+ // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
11
+ optional bool visible = 2; // default=true
12
+ optional string font = 3;
13
+ optional float opacity = 4; // default=1.0f
14
+ optional float font_Size = 5; // default=10
15
+ optional bool font_autoSize = 6;
16
+ optional string h_text_align = 7; // default='center'
17
+ optional string v_text_align = 8; // default='center'
18
+ optional float width = 9; // default=1
19
+ optional float height = 10; // default=1
20
+ optional float padding_top = 11;
21
+ optional float padding_right = 12;
22
+ optional float padding_bottom = 13;
23
+ optional float padding_left = 14;
24
+ optional float line_spacing = 15;
25
+ optional int32 line_count = 16;
26
+ optional bool text_wrapping = 17;
27
+ optional float shadow_blur = 18;
28
+ optional float shadow_offsetX = 19;
29
+ optional float shadow_offsetY = 20;
30
+ optional float outline_width = 21;
31
+ optional Color3 shadow_color = 22; // default=(1.0,1.0,1.0)
32
+ optional Color3 outline_color = 23; // default=(1.0,1.0,1.0)
33
+ optional Color3 text_color = 24; // default=(1.0,1.0,1.0)
33
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-2805922413.commit-7f80d4a",
3
+ "version": "7.0.0-2827081203.commit-fe0fe32",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "src/cli/**/*.js"
28
28
  ],
29
29
  "dependencies": {
30
- "@dcl/amd": "6.11.4-2805922413.commit-7f80d4a",
31
- "@dcl/build-ecs": "6.11.4-2805922413.commit-7f80d4a",
30
+ "@dcl/amd": "6.11.4-2827081203.commit-fe0fe32",
31
+ "@dcl/build-ecs": "6.11.4-2827081203.commit-fe0fe32",
32
32
  "@dcl/kernel": "1.0.0-2638443584.commit-696a74b",
33
33
  "@dcl/posix": "^1.0.4",
34
34
  "@dcl/schemas": "4.8.0",
@@ -38,5 +38,5 @@
38
38
  "ignore": "^5.1.8"
39
39
  },
40
40
  "minCliVersion": "3.10.2",
41
- "commit": "7f80d4aa892b79d9a838e32c8f1bd2fcfd5ec6c7"
41
+ "commit": "fe0fe321b54f9f8e457928a4eeea89f86263f23b"
42
42
  }
@@ -1159,11 +1159,14 @@ declare enum Orientation {
1159
1159
  declare interface PBAnimationState {
1160
1160
  name: string;
1161
1161
  clip: string;
1162
- playing: boolean;
1163
- weight: number;
1164
- speed: number;
1165
- loop: boolean;
1166
- shouldReset: boolean;
1162
+ playing?: boolean | undefined;
1163
+ /** default=1.0s */
1164
+ weight?: number | undefined;
1165
+ /** default=1.0 */
1166
+ speed?: number | undefined;
1167
+ /** default=true */
1168
+ loop?: boolean | undefined;
1169
+ shouldReset?: boolean | undefined;
1167
1170
  }
1168
1171
 
1169
1172
  declare interface PBAnimator {
@@ -1171,10 +1174,12 @@ declare interface PBAnimator {
1171
1174
  }
1172
1175
 
1173
1176
  declare interface PBAudioSource {
1174
- playing: boolean;
1175
- volume: number;
1176
- loop: boolean;
1177
- pitch: number;
1177
+ playing?: boolean | undefined;
1178
+ /** default=1.0f */
1179
+ volume?: number | undefined;
1180
+ loop?: boolean | undefined;
1181
+ /** default=1.0f */
1182
+ pitch?: number | undefined;
1178
1183
  audioClipUrl: string;
1179
1184
  }
1180
1185
 
@@ -1185,29 +1190,35 @@ declare interface PBAvatarAttach {
1185
1190
 
1186
1191
  declare interface PBAvatarShape {
1187
1192
  id: string;
1188
- name: string;
1189
- bodyShape: string;
1190
- skinColor: Color3 | undefined;
1191
- hairColor: Color3 | undefined;
1192
- eyeColor: Color3 | undefined;
1193
+ name?: string | undefined;
1194
+ bodyShape?: string | undefined;
1195
+ skinColor?: Color3 | undefined;
1196
+ hairColor?: Color3 | undefined;
1197
+ eyeColor?: Color3 | undefined;
1193
1198
  wearables: string[];
1194
- expressionTriggerId: string;
1195
- expressionTriggerTimestamp: number;
1196
- stickerTriggerId: string;
1197
- stickerTriggerTimestamp: number;
1198
- talking: boolean;
1199
+ expressionTriggerId?: string | undefined;
1200
+ expressionTriggerTimestamp?: number | undefined;
1201
+ stickerTriggerId?: string | undefined;
1202
+ stickerTriggerTimestamp?: number | undefined;
1203
+ talking?: boolean | undefined;
1199
1204
  }
1200
1205
 
1201
1206
  declare interface PBBillboard {
1202
- x: boolean;
1203
- y: boolean;
1204
- z: boolean;
1207
+ /** default=true */
1208
+ x?: boolean | undefined;
1209
+ /** default=true */
1210
+ y?: boolean | undefined;
1211
+ /** default=true */
1212
+ z?: boolean | undefined;
1205
1213
  }
1206
1214
 
1207
1215
  declare interface PBBoxShape {
1208
- withCollisions: boolean;
1209
- isPointerBlocker: boolean;
1210
- visible: boolean;
1216
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1217
+ withCollisions?: boolean | undefined;
1218
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1219
+ isPointerBlocker?: boolean | undefined;
1220
+ /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1221
+ visible?: boolean | undefined;
1211
1222
  uvs: number[];
1212
1223
  }
1213
1224
 
@@ -1221,35 +1232,50 @@ declare interface PBCameraModeArea {
1221
1232
  }
1222
1233
 
1223
1234
  declare interface PBCylinderShape {
1224
- withCollisions: boolean;
1225
- isPointerBlocker: boolean;
1226
- visible: boolean;
1227
- radiusTop: number;
1228
- radiusBottom: number;
1235
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1236
+ withCollisions?: boolean | undefined;
1237
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1238
+ isPointerBlocker?: boolean | undefined;
1239
+ /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1240
+ visible?: boolean | undefined;
1241
+ /** default=1.0 */
1242
+ radiusTop?: number | undefined;
1243
+ /** default=1.0 */
1244
+ radiusBottom?: number | undefined;
1229
1245
  }
1230
1246
 
1231
1247
  declare interface PBGLTFShape {
1232
- withCollisions: boolean;
1233
- isPointerBlocker: boolean;
1234
- visible: boolean;
1248
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1249
+ withCollisions?: boolean | undefined;
1250
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1251
+ isPointerBlocker?: boolean | undefined;
1252
+ /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1253
+ visible?: boolean | undefined;
1235
1254
  src: string;
1236
1255
  }
1237
1256
 
1238
1257
  declare interface PBNFTShape {
1239
- withCollisions: boolean;
1240
- isPointerBlocker: boolean;
1241
- visible: boolean;
1258
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1259
+ withCollisions?: boolean | undefined;
1260
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1261
+ isPointerBlocker?: boolean | undefined;
1262
+ /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1263
+ visible?: boolean | undefined;
1242
1264
  src: string;
1243
- assetId: string;
1244
- style: number;
1245
- color: Color3 | undefined;
1265
+ assetId?: string | undefined;
1266
+ style?: number | undefined;
1267
+ color?: Color3 | undefined;
1246
1268
  }
1247
1269
 
1248
1270
  declare interface PBOnPointerDown {
1249
- button: ActionButton;
1250
- hoverText: string;
1251
- distance: number;
1252
- showFeedback: boolean;
1271
+ /** default=ActionButton.ANY */
1272
+ button?: ActionButton | undefined;
1273
+ /** default='Interact' */
1274
+ hoverText?: string | undefined;
1275
+ /** default=10 */
1276
+ maxDistance?: number | undefined;
1277
+ /** default=true */
1278
+ showFeedback?: boolean | undefined;
1253
1279
  }
1254
1280
 
1255
1281
  declare interface PBOnPointerDownResult {
@@ -1264,10 +1290,14 @@ declare interface PBOnPointerDownResult {
1264
1290
  }
1265
1291
 
1266
1292
  declare interface PBOnPointerUp {
1267
- button: ActionButton;
1268
- hoverText: string;
1269
- distance: number;
1270
- showFeedback: boolean;
1293
+ /** default=ActionButton.ANY */
1294
+ button?: ActionButton | undefined;
1295
+ /** default='Interact' */
1296
+ hoverText?: string | undefined;
1297
+ /** default=10 */
1298
+ maxDistance?: number | undefined;
1299
+ /** default=true */
1300
+ showFeedback?: boolean | undefined;
1271
1301
  }
1272
1302
 
1273
1303
  declare interface PBOnPointerUpResult {
@@ -1282,9 +1312,12 @@ declare interface PBOnPointerUpResult {
1282
1312
  }
1283
1313
 
1284
1314
  declare interface PBPlaneShape {
1285
- withCollisions: boolean;
1286
- isPointerBlocker: boolean;
1287
- visible: boolean;
1315
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1316
+ withCollisions?: boolean | undefined;
1317
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1318
+ isPointerBlocker?: boolean | undefined;
1319
+ /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1320
+ visible?: boolean | undefined;
1288
1321
  uvs: number[];
1289
1322
  }
1290
1323
 
@@ -1293,36 +1326,49 @@ declare interface PBPointerLock {
1293
1326
  }
1294
1327
 
1295
1328
  declare interface PBSphereShape {
1296
- withCollisions: boolean;
1297
- isPointerBlocker: boolean;
1298
- visible: boolean;
1329
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1330
+ withCollisions?: boolean | undefined;
1331
+ /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1332
+ isPointerBlocker?: boolean | undefined;
1333
+ /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1334
+ visible?: boolean | undefined;
1299
1335
  }
1300
1336
 
1301
1337
  declare interface PBTextShape {
1302
1338
  text: string;
1303
- visible: boolean;
1304
- font: string;
1305
- opacity: number;
1306
- fontSize: number;
1307
- fontAutoSize: boolean;
1308
- hTextAlign: string;
1309
- vTextAlign: string;
1310
- width: number;
1311
- height: number;
1312
- paddingTop: number;
1313
- paddingRight: number;
1314
- paddingBottom: number;
1315
- paddingLeft: number;
1316
- lineSpacing: number;
1317
- lineCount: number;
1318
- textWrapping: boolean;
1319
- shadowBlur: number;
1320
- shadowOffsetX: number;
1321
- shadowOffsetY: number;
1322
- outlineWidth: number;
1323
- shadowColor: Color3 | undefined;
1324
- outlineColor: Color3 | undefined;
1325
- textColor: Color3 | undefined;
1339
+ /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1340
+ visible?: boolean | undefined;
1341
+ font?: string | undefined;
1342
+ /** default=1.0f */
1343
+ opacity?: number | undefined;
1344
+ /** default=10 */
1345
+ fontSize?: number | undefined;
1346
+ fontAutoSize?: boolean | undefined;
1347
+ /** default='center' */
1348
+ hTextAlign?: string | undefined;
1349
+ /** default='center' */
1350
+ vTextAlign?: string | undefined;
1351
+ /** default=1 */
1352
+ width?: number | undefined;
1353
+ /** default=1 */
1354
+ height?: number | undefined;
1355
+ paddingTop?: number | undefined;
1356
+ paddingRight?: number | undefined;
1357
+ paddingBottom?: number | undefined;
1358
+ paddingLeft?: number | undefined;
1359
+ lineSpacing?: number | undefined;
1360
+ lineCount?: number | undefined;
1361
+ textWrapping?: boolean | undefined;
1362
+ shadowBlur?: number | undefined;
1363
+ shadowOffsetX?: number | undefined;
1364
+ shadowOffsetY?: number | undefined;
1365
+ outlineWidth?: number | undefined;
1366
+ /** default=(1.0,1.0,1.0) */
1367
+ shadowColor?: Color3 | undefined;
1368
+ /** default=(1.0,1.0,1.0) */
1369
+ outlineColor?: Color3 | undefined;
1370
+ /** default=(1.0,1.0,1.0) */
1371
+ textColor?: Color3 | undefined;
1326
1372
  }
1327
1373
 
1328
1374
  /**