@dcl/protocol 1.0.0-20302100396.commit-b2ab885 → 1.0.0-20440300149.commit-417c1dc

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.
Files changed (31) hide show
  1. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -50
  2. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +12 -353
  3. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  4. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -1
  5. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -6
  6. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +8 -0
  8. package/out-js/decentraland/sdk/components/visibility_component.gen.js +17 -3
  9. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
  10. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1368
  11. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -7057
  12. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  13. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +3 -420
  14. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
  15. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +28 -3
  16. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +984 -8945
  17. package/package.json +3 -3
  18. package/proto/decentraland/kernel/comms/rfc4/comms.proto +2 -33
  19. package/proto/decentraland/sdk/components/common/input_action.proto +0 -1
  20. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  21. package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
  22. package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
  23. package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -563
  24. package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
  25. package/out-js/decentraland/social_service/errors.gen.js +0 -405
  26. package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
  27. package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
  28. package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
  29. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
  30. package/proto/decentraland/social_service/errors.proto +0 -30
  31. package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
@@ -5,11 +5,21 @@ export const protobufPackage = "decentraland.sdk.components";
5
5
 
6
6
  export interface PBVisibilityComponent {
7
7
  /** default=true */
8
- visible?: boolean | undefined;
8
+ visible?:
9
+ | boolean
10
+ | undefined;
11
+ /**
12
+ * Propagation follows certain rules:
13
+ * - Any own visibility component takes priority
14
+ * - If no own visibility component, visibility is determined by visibility of the nearest parent with propagate = true
15
+ * - If no own component and no parent with propagate = true, visibility is "visible"
16
+ * - Visibility is always updated, whenever hierarchy, parent component or own component changes
17
+ */
18
+ propagateToChildren?: boolean | undefined;
9
19
  }
10
20
 
11
21
  function createBasePBVisibilityComponent(): PBVisibilityComponent {
12
- return { visible: undefined };
22
+ return { visible: undefined, propagateToChildren: undefined };
13
23
  }
14
24
 
15
25
  export namespace PBVisibilityComponent {
@@ -17,6 +27,9 @@ export namespace PBVisibilityComponent {
17
27
  if (message.visible !== undefined) {
18
28
  writer.uint32(8).bool(message.visible);
19
29
  }
30
+ if (message.propagateToChildren !== undefined) {
31
+ writer.uint32(16).bool(message.propagateToChildren);
32
+ }
20
33
  return writer;
21
34
  }
22
35
 
@@ -34,6 +47,13 @@ export namespace PBVisibilityComponent {
34
47
 
35
48
  message.visible = reader.bool();
36
49
  continue;
50
+ case 2:
51
+ if (tag !== 16) {
52
+ break;
53
+ }
54
+
55
+ message.propagateToChildren = reader.bool();
56
+ continue;
37
57
  }
38
58
  if ((tag & 7) === 4 || tag === 0) {
39
59
  break;
@@ -44,12 +64,16 @@ export namespace PBVisibilityComponent {
44
64
  }
45
65
 
46
66
  export function fromJSON(object: any): PBVisibilityComponent {
47
- return { visible: isSet(object.visible) ? Boolean(object.visible) : undefined };
67
+ return {
68
+ visible: isSet(object.visible) ? Boolean(object.visible) : undefined,
69
+ propagateToChildren: isSet(object.propagateToChildren) ? Boolean(object.propagateToChildren) : undefined,
70
+ };
48
71
  }
49
72
 
50
73
  export function toJSON(message: PBVisibilityComponent): unknown {
51
74
  const obj: any = {};
52
75
  message.visible !== undefined && (obj.visible = message.visible);
76
+ message.propagateToChildren !== undefined && (obj.propagateToChildren = message.propagateToChildren);
53
77
  return obj;
54
78
  }
55
79
 
@@ -62,6 +86,7 @@ export namespace PBVisibilityComponent {
62
86
  ): PBVisibilityComponent {
63
87
  const message = createBasePBVisibilityComponent();
64
88
  message.visible = object.visible ?? undefined;
89
+ message.propagateToChildren = object.propagateToChildren ?? undefined;
65
90
  return message;
66
91
  }
67
92
  }