@dcl/ecs 7.20.2-22104870534.commit-0df3cc0 → 7.20.2-22169778016.commit-030cbfe

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 (85) hide show
  1. package/dist/components/generated/component-names.gen.js +0 -2
  2. package/dist/components/generated/global.gen.d.ts +0 -4
  3. package/dist/components/generated/global.gen.js +0 -2
  4. package/dist/components/generated/index.gen.d.ts +0 -8
  5. package/dist/components/generated/index.gen.js +0 -10
  6. package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts +1 -2
  7. package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.js +0 -1
  8. package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +0 -3
  9. package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +1 -10
  10. package/dist/components/index.d.ts +5 -4
  11. package/dist/components/index.js +5 -5
  12. package/dist/components/manual/CreatedBy.d.ts +9 -0
  13. package/dist/components/manual/CreatedBy.js +8 -0
  14. package/dist/components/manual/Transform.d.ts +9 -0
  15. package/dist/components/manual/Transform.js +3 -3
  16. package/dist/components/types.d.ts +1 -1
  17. package/dist/engine/component.d.ts +52 -1
  18. package/dist/engine/grow-only-value-set-component-definition.js +45 -2
  19. package/dist/engine/lww-element-set-component-definition.d.ts +3 -1
  20. package/dist/engine/lww-element-set-component-definition.js +65 -12
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +1 -1
  23. package/dist/serialization/crdt/authoritativePutComponent.d.ts +15 -0
  24. package/dist/serialization/crdt/authoritativePutComponent.js +47 -0
  25. package/dist/serialization/crdt/index.d.ts +1 -0
  26. package/dist/serialization/crdt/index.js +1 -0
  27. package/dist/serialization/crdt/types.d.ts +25 -3
  28. package/dist/serialization/crdt/types.js +3 -1
  29. package/dist/systems/crdt/index.d.ts +0 -1
  30. package/dist/systems/crdt/index.js +55 -146
  31. package/dist-cjs/components/generated/component-names.gen.js +0 -2
  32. package/dist-cjs/components/generated/global.gen.d.ts +0 -4
  33. package/dist-cjs/components/generated/global.gen.js +1 -3
  34. package/dist-cjs/components/generated/index.gen.d.ts +0 -8
  35. package/dist-cjs/components/generated/index.gen.js +2 -14
  36. package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts +1 -2
  37. package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/input_action.gen.js +0 -1
  38. package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +0 -3
  39. package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +1 -10
  40. package/dist-cjs/components/index.d.ts +5 -4
  41. package/dist-cjs/components/index.js +7 -7
  42. package/dist-cjs/components/manual/CreatedBy.d.ts +9 -0
  43. package/dist-cjs/components/manual/CreatedBy.js +10 -0
  44. package/dist-cjs/components/manual/Transform.d.ts +9 -0
  45. package/dist-cjs/components/manual/Transform.js +3 -3
  46. package/dist-cjs/components/types.d.ts +1 -1
  47. package/dist-cjs/engine/component.d.ts +52 -1
  48. package/dist-cjs/engine/grow-only-value-set-component-definition.js +44 -1
  49. package/dist-cjs/engine/lww-element-set-component-definition.d.ts +3 -1
  50. package/dist-cjs/engine/lww-element-set-component-definition.js +68 -13
  51. package/dist-cjs/index.d.ts +2 -2
  52. package/dist-cjs/index.js +2 -2
  53. package/dist-cjs/serialization/crdt/authoritativePutComponent.d.ts +15 -0
  54. package/dist-cjs/serialization/crdt/authoritativePutComponent.js +50 -0
  55. package/dist-cjs/serialization/crdt/index.d.ts +1 -0
  56. package/dist-cjs/serialization/crdt/index.js +1 -0
  57. package/dist-cjs/serialization/crdt/types.d.ts +25 -3
  58. package/dist-cjs/serialization/crdt/types.js +3 -1
  59. package/dist-cjs/systems/crdt/index.d.ts +0 -1
  60. package/dist-cjs/systems/crdt/index.js +55 -169
  61. package/package.json +2 -2
  62. package/dist/components/extended/AudioAnalysis.d.ts +0 -55
  63. package/dist/components/extended/AudioAnalysis.js +0 -66
  64. package/dist/components/generated/AudioAnalysis.gen.d.ts +0 -1
  65. package/dist/components/generated/AudioAnalysis.gen.js +0 -25
  66. package/dist/components/generated/AvatarLocomotionSettings.gen.d.ts +0 -1
  67. package/dist/components/generated/AvatarLocomotionSettings.gen.js +0 -25
  68. package/dist/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.d.ts +0 -37
  69. package/dist/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.js +0 -161
  70. package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -29
  71. package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -93
  72. package/dist/serialization/crdt/network/utils.d.ts +0 -9
  73. package/dist/serialization/crdt/network/utils.js +0 -60
  74. package/dist-cjs/components/extended/AudioAnalysis.d.ts +0 -55
  75. package/dist-cjs/components/extended/AudioAnalysis.js +0 -70
  76. package/dist-cjs/components/generated/AudioAnalysis.gen.d.ts +0 -1
  77. package/dist-cjs/components/generated/AudioAnalysis.gen.js +0 -28
  78. package/dist-cjs/components/generated/AvatarLocomotionSettings.gen.d.ts +0 -1
  79. package/dist-cjs/components/generated/AvatarLocomotionSettings.gen.js +0 -28
  80. package/dist-cjs/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.d.ts +0 -37
  81. package/dist-cjs/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.js +0 -167
  82. package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -29
  83. package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -99
  84. package/dist-cjs/serialization/crdt/network/utils.d.ts +0 -9
  85. package/dist-cjs/serialization/crdt/network/utils.js +0 -67
@@ -6,7 +6,6 @@ export const coreComponentMappings = {
6
6
  "core::Animator": 1042,
7
7
  "core::AssetLoad": 1213,
8
8
  "core::AssetLoadLoadingState": 1214,
9
- "core::AudioAnalysis": 1212,
10
9
  "core::AudioEvent": 1105,
11
10
  "core::AudioSource": 1020,
12
11
  "core::AudioStream": 1021,
@@ -14,7 +13,6 @@ export const coreComponentMappings = {
14
13
  "core::AvatarBase": 1087,
15
14
  "core::AvatarEmoteCommand": 1088,
16
15
  "core::AvatarEquippedData": 1091,
17
- "core::AvatarLocomotionSettings": 1211,
18
16
  "core::AvatarModifierArea": 1070,
19
17
  "core::AvatarShape": 1080,
20
18
  "core::Billboard": 1090,
@@ -2,7 +2,6 @@ import { LastWriteWinElementSetComponentDefinition, GrowOnlyValueSetComponentDef
2
2
  export * from './index.gen';
3
3
  import { PBAssetLoad } from './pb/decentraland/sdk/components/asset_load.gen';
4
4
  import { PBAssetLoadLoadingState } from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
5
- import { PBAudioAnalysis } from './pb/decentraland/sdk/components/audio_analysis.gen';
6
5
  import { PBAudioEvent } from './pb/decentraland/sdk/components/audio_event.gen';
7
6
  import { PBAudioSource } from './pb/decentraland/sdk/components/audio_source.gen';
8
7
  import { PBAudioStream } from './pb/decentraland/sdk/components/audio_stream.gen';
@@ -10,7 +9,6 @@ import { PBAvatarAttach } from './pb/decentraland/sdk/components/avatar_attach.g
10
9
  import { PBAvatarBase } from './pb/decentraland/sdk/components/avatar_base.gen';
11
10
  import { PBAvatarEmoteCommand } from './pb/decentraland/sdk/components/avatar_emote_command.gen';
12
11
  import { PBAvatarEquippedData } from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
13
- import { PBAvatarLocomotionSettings } from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
14
12
  import { PBAvatarModifierArea } from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
15
13
  import { PBAvatarShape } from './pb/decentraland/sdk/components/avatar_shape.gen';
16
14
  import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
@@ -52,7 +50,6 @@ import { PBVirtualCamera } from './pb/decentraland/sdk/components/virtual_camera
52
50
  import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibility_component.gen';
53
51
  /** @public */ export declare const AssetLoad: LastWriteWinElementSetComponentDefinition<PBAssetLoad>;
54
52
  /** @public */ export declare const AssetLoadLoadingState: GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>;
55
- /** @public */ export declare const AudioAnalysis: LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>;
56
53
  /** @public */ export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
57
54
  /** @public */ export declare const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
58
55
  /** @public */ export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
@@ -60,7 +57,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
60
57
  /** @public */ export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
61
58
  /** @public */ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
62
59
  /** @public */ export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
63
- /** @public */ export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
64
60
  /** @public */ export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
65
61
  /** @public */ export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
66
62
  /** @public */ export declare const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
@@ -3,7 +3,6 @@ import * as components from './index.gen';
3
3
  export * from './index.gen';
4
4
  /** @public */ export const AssetLoad = /* @__PURE__ */ components.AssetLoad(engine);
5
5
  /** @public */ export const AssetLoadLoadingState = /* @__PURE__ */ components.AssetLoadLoadingState(engine);
6
- /** @public */ export const AudioAnalysis = /* @__PURE__ */ components.AudioAnalysis(engine);
7
6
  /** @public */ export const AudioEvent = /* @__PURE__ */ components.AudioEvent(engine);
8
7
  /** @public */ export const AudioSource = /* @__PURE__ */ components.AudioSource(engine);
9
8
  /** @public */ export const AudioStream = /* @__PURE__ */ components.AudioStream(engine);
@@ -11,7 +10,6 @@ export * from './index.gen';
11
10
  /** @public */ export const AvatarBase = /* @__PURE__ */ components.AvatarBase(engine);
12
11
  /** @public */ export const AvatarEmoteCommand = /* @__PURE__ */ components.AvatarEmoteCommand(engine);
13
12
  /** @public */ export const AvatarEquippedData = /* @__PURE__ */ components.AvatarEquippedData(engine);
14
- /** @public */ export const AvatarLocomotionSettings = /* @__PURE__ */ components.AvatarLocomotionSettings(engine);
15
13
  /** @public */ export const AvatarModifierArea = /* @__PURE__ */ components.AvatarModifierArea(engine);
16
14
  /** @public */ export const AvatarShape = /* @__PURE__ */ components.AvatarShape(engine);
17
15
  /** @public */ export const Billboard = /* @__PURE__ */ components.Billboard(engine);
@@ -3,7 +3,6 @@ import { LastWriteWinElementSetComponentDefinition, GrowOnlyValueSetComponentDef
3
3
  import { PBAnimator } from './pb/decentraland/sdk/components/animator.gen';
4
4
  import { PBAssetLoad } from './pb/decentraland/sdk/components/asset_load.gen';
5
5
  import { PBAssetLoadLoadingState } from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
6
- import { PBAudioAnalysis } from './pb/decentraland/sdk/components/audio_analysis.gen';
7
6
  import { PBAudioEvent } from './pb/decentraland/sdk/components/audio_event.gen';
8
7
  import { PBAudioSource } from './pb/decentraland/sdk/components/audio_source.gen';
9
8
  import { PBAudioStream } from './pb/decentraland/sdk/components/audio_stream.gen';
@@ -11,7 +10,6 @@ import { PBAvatarAttach } from './pb/decentraland/sdk/components/avatar_attach.g
11
10
  import { PBAvatarBase } from './pb/decentraland/sdk/components/avatar_base.gen';
12
11
  import { PBAvatarEmoteCommand } from './pb/decentraland/sdk/components/avatar_emote_command.gen';
13
12
  import { PBAvatarEquippedData } from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
14
- import { PBAvatarLocomotionSettings } from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
15
13
  import { PBAvatarModifierArea } from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
16
14
  import { PBAvatarShape } from './pb/decentraland/sdk/components/avatar_shape.gen';
17
15
  import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
@@ -58,7 +56,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
58
56
  export * from './pb/decentraland/sdk/components/animator.gen';
59
57
  export * from './pb/decentraland/sdk/components/asset_load.gen';
60
58
  export * from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
61
- export * from './pb/decentraland/sdk/components/audio_analysis.gen';
62
59
  export * from './pb/decentraland/sdk/components/audio_event.gen';
63
60
  export * from './pb/decentraland/sdk/components/audio_source.gen';
64
61
  export * from './pb/decentraland/sdk/components/audio_stream.gen';
@@ -66,7 +63,6 @@ export * from './pb/decentraland/sdk/components/avatar_attach.gen';
66
63
  export * from './pb/decentraland/sdk/components/avatar_base.gen';
67
64
  export * from './pb/decentraland/sdk/components/avatar_emote_command.gen';
68
65
  export * from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
69
- export * from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
70
66
  export * from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
71
67
  export * from './pb/decentraland/sdk/components/avatar_shape.gen';
72
68
  export * from './pb/decentraland/sdk/components/billboard.gen';
@@ -115,7 +111,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
115
111
  /** @public */ export declare const Animator: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
116
112
  /** @public */ export declare const AssetLoad: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
117
113
  /** @public */ export declare const AssetLoadLoadingState: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
118
- /** @public */ export declare const AudioAnalysis: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
119
114
  /** @public */ export declare const AudioEvent: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
120
115
  /** @public */ export declare const AudioSource: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
121
116
  /** @public */ export declare const AudioStream: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -123,7 +118,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
123
118
  /** @public */ export declare const AvatarBase: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
124
119
  /** @public */ export declare const AvatarEmoteCommand: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
125
120
  /** @public */ export declare const AvatarEquippedData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
126
- /** @public */ export declare const AvatarLocomotionSettings: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
127
121
  /** @public */ export declare const AvatarModifierArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
128
122
  /** @public */ export declare const AvatarShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
129
123
  /** @public */ export declare const Billboard: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
@@ -172,7 +166,6 @@ export declare const componentDefinitionByName: {
172
166
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
173
167
  "core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
174
168
  "core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
175
- "core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
176
169
  "core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
177
170
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
178
171
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -180,7 +173,6 @@ export declare const componentDefinitionByName: {
180
173
  "core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
181
174
  "core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
182
175
  "core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
183
- "core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
184
176
  "core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
185
177
  "core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
186
178
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
@@ -1,7 +1,6 @@
1
1
  import { AnimatorSchema } from './Animator.gen';
2
2
  import { AssetLoadSchema } from './AssetLoad.gen';
3
3
  import { AssetLoadLoadingStateSchema } from './AssetLoadLoadingState.gen';
4
- import { AudioAnalysisSchema } from './AudioAnalysis.gen';
5
4
  import { AudioEventSchema } from './AudioEvent.gen';
6
5
  import { AudioSourceSchema } from './AudioSource.gen';
7
6
  import { AudioStreamSchema } from './AudioStream.gen';
@@ -9,7 +8,6 @@ import { AvatarAttachSchema } from './AvatarAttach.gen';
9
8
  import { AvatarBaseSchema } from './AvatarBase.gen';
10
9
  import { AvatarEmoteCommandSchema } from './AvatarEmoteCommand.gen';
11
10
  import { AvatarEquippedDataSchema } from './AvatarEquippedData.gen';
12
- import { AvatarLocomotionSettingsSchema } from './AvatarLocomotionSettings.gen';
13
11
  import { AvatarModifierAreaSchema } from './AvatarModifierArea.gen';
14
12
  import { AvatarShapeSchema } from './AvatarShape.gen';
15
13
  import { BillboardSchema } from './Billboard.gen';
@@ -56,7 +54,6 @@ import { VisibilityComponentSchema } from './VisibilityComponent.gen';
56
54
  export * from './pb/decentraland/sdk/components/animator.gen';
57
55
  export * from './pb/decentraland/sdk/components/asset_load.gen';
58
56
  export * from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
59
- export * from './pb/decentraland/sdk/components/audio_analysis.gen';
60
57
  export * from './pb/decentraland/sdk/components/audio_event.gen';
61
58
  export * from './pb/decentraland/sdk/components/audio_source.gen';
62
59
  export * from './pb/decentraland/sdk/components/audio_stream.gen';
@@ -64,7 +61,6 @@ export * from './pb/decentraland/sdk/components/avatar_attach.gen';
64
61
  export * from './pb/decentraland/sdk/components/avatar_base.gen';
65
62
  export * from './pb/decentraland/sdk/components/avatar_emote_command.gen';
66
63
  export * from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
67
- export * from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
68
64
  export * from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
69
65
  export * from './pb/decentraland/sdk/components/avatar_shape.gen';
70
66
  export * from './pb/decentraland/sdk/components/billboard.gen';
@@ -116,8 +112,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
116
112
  timestampFunction: (t) => t.timestamp,
117
113
  maxElements: 100
118
114
  });
119
- /** @public */ export const AudioAnalysis = engine =>
120
- /* @__PURE__ */ engine.defineComponentFromSchema("core::AudioAnalysis", AudioAnalysisSchema);
121
115
  /** @public */ export const AudioEvent = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::AudioEvent", AudioEventSchema, {
122
116
  timestampFunction: (t) => t.timestamp,
123
117
  maxElements: 100
@@ -136,8 +130,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
136
130
  });
137
131
  /** @public */ export const AvatarEquippedData = engine =>
138
132
  /* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarEquippedData", AvatarEquippedDataSchema);
139
- /** @public */ export const AvatarLocomotionSettings = engine =>
140
- /* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarLocomotionSettings", AvatarLocomotionSettingsSchema);
141
133
  /** @public */ export const AvatarModifierArea = engine =>
142
134
  /* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarModifierArea", AvatarModifierAreaSchema);
143
135
  /** @public */ export const AvatarShape = engine =>
@@ -235,7 +227,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
235
227
  "core::Animator": Animator,
236
228
  "core::AssetLoad": AssetLoad,
237
229
  "core::AssetLoadLoadingState": AssetLoadLoadingState,
238
- "core::AudioAnalysis": AudioAnalysis,
239
230
  "core::AudioEvent": AudioEvent,
240
231
  "core::AudioSource": AudioSource,
241
232
  "core::AudioStream": AudioStream,
@@ -243,7 +234,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
243
234
  "core::AvatarBase": AvatarBase,
244
235
  "core::AvatarEmoteCommand": AvatarEmoteCommand,
245
236
  "core::AvatarEquippedData": AvatarEquippedData,
246
- "core::AvatarLocomotionSettings": AvatarLocomotionSettings,
247
237
  "core::AvatarModifierArea": AvatarModifierArea,
248
238
  "core::AvatarShape": AvatarShape,
249
239
  "core::Billboard": Billboard,
@@ -15,8 +15,7 @@ export declare const enum InputAction {
15
15
  IA_ACTION_3 = 10,
16
16
  IA_ACTION_4 = 11,
17
17
  IA_ACTION_5 = 12,
18
- IA_ACTION_6 = 13,
19
- IA_MODIFIER = 14
18
+ IA_ACTION_6 = 13
20
19
  }
21
20
  /** PointerEventType is a kind of interaction that can be detected. */
22
21
  /**
@@ -19,7 +19,6 @@ export var InputAction;
19
19
  InputAction[InputAction["IA_ACTION_4"] = 11] = "IA_ACTION_4";
20
20
  InputAction[InputAction["IA_ACTION_5"] = 12] = "IA_ACTION_5";
21
21
  InputAction[InputAction["IA_ACTION_6"] = 13] = "IA_ACTION_6";
22
- InputAction[InputAction["IA_MODIFIER"] = 14] = "IA_MODIFIER";
23
22
  })(InputAction || (InputAction = {}));
24
23
  /** PointerEventType is a kind of interaction that can be detected. */
25
24
  /**
@@ -6,7 +6,6 @@ import { CameraTransition } from "./common/camera_transition.gen";
6
6
  * an 'instant' transition (like using speed/time = 0)
7
7
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
8
8
  * the holding entity transform).
9
- * * The fov defines the Field of View of the virtual camera
10
9
  */
11
10
  /**
12
11
  * @public
@@ -14,8 +13,6 @@ import { CameraTransition } from "./common/camera_transition.gen";
14
13
  export interface PBVirtualCamera {
15
14
  defaultTransition?: CameraTransition | undefined;
16
15
  lookAtEntity?: number | undefined;
17
- /** default: 60 */
18
- fov?: number | undefined;
19
16
  }
20
17
  /**
21
18
  * @public
@@ -3,7 +3,7 @@ import _m0 from "protobufjs/minimal";
3
3
  import { CameraTransition } from "./common/camera_transition.gen";
4
4
  const protobufPackageSarasa = "decentraland.sdk.components";
5
5
  function createBasePBVirtualCamera() {
6
- return { defaultTransition: undefined, lookAtEntity: undefined, fov: undefined };
6
+ return { defaultTransition: undefined, lookAtEntity: undefined };
7
7
  }
8
8
  /**
9
9
  * @public
@@ -17,9 +17,6 @@ export var PBVirtualCamera;
17
17
  if (message.lookAtEntity !== undefined) {
18
18
  writer.uint32(16).uint32(message.lookAtEntity);
19
19
  }
20
- if (message.fov !== undefined) {
21
- writer.uint32(29).float(message.fov);
22
- }
23
20
  return writer;
24
21
  }
25
22
  PBVirtualCamera.encode = encode;
@@ -42,12 +39,6 @@ export var PBVirtualCamera;
42
39
  }
43
40
  message.lookAtEntity = reader.uint32();
44
41
  continue;
45
- case 3:
46
- if (tag !== 29) {
47
- break;
48
- }
49
- message.fov = reader.float();
50
- continue;
51
42
  }
52
43
  if ((tag & 7) === 4 || tag === 0) {
53
44
  break;
@@ -2,8 +2,6 @@ import { GrowOnlyValueSetComponentDefinition, LastWriteWinElementSetComponentDef
2
2
  import { IEngine } from '../engine/types';
3
3
  import { AnimatorComponentDefinitionExtended } from './extended/Animator';
4
4
  import { AudioSourceComponentDefinitionExtended } from './extended/AudioSource';
5
- import { AudioAnalysisComponentDefinitionExtended } from './extended/AudioAnalysis';
6
- import type { AudioAnalysisView } from './extended/AudioAnalysis';
7
5
  import { MaterialComponentDefinitionExtended } from './extended/Material';
8
6
  import { MeshColliderComponentDefinitionExtended } from './extended/MeshCollider';
9
7
  import { MeshRendererComponentDefinitionExtended } from './extended/MeshRenderer';
@@ -21,13 +19,13 @@ import { InputModifierComponentDefinitionExtended } from './extended/InputModifi
21
19
  import { LightSourceComponentDefinitionExtended } from './extended/LightSource';
22
20
  import { TriggerAreaComponentDefinitionExtended } from './extended/TriggerArea';
23
21
  import { TagsComponentDefinitionExtended } from './manual/Tags';
22
+ import { ICreatedByType } from './manual/CreatedBy';
24
23
  export * from './generated/index.gen';
25
24
  export type { GrowOnlyValueSetComponentDefinition, LastWriteWinElementSetComponentDefinition, LwwComponentGetter, GSetComponentGetter };
26
25
  export declare const Transform: LwwComponentGetter<TransformComponentExtended>;
27
26
  export declare const Material: LwwComponentGetter<MaterialComponentDefinitionExtended>;
28
27
  export declare const Animator: LwwComponentGetter<AnimatorComponentDefinitionExtended>;
29
28
  export declare const AudioSource: LwwComponentGetter<AudioSourceComponentDefinitionExtended>;
30
- export declare const AudioAnalysis: LwwComponentGetter<AudioAnalysisComponentDefinitionExtended>;
31
29
  export declare const AudioStream: (engine: Pick<IEngine, 'defineComponentFromSchema' | 'defineValueSetComponentFromSchema'>) => AudioStreamComponentDefinitionExtended;
32
30
  export declare const MeshRenderer: LwwComponentGetter<MeshRendererComponentDefinitionExtended>;
33
31
  export declare const MeshCollider: LwwComponentGetter<MeshColliderComponentDefinitionExtended>;
@@ -53,5 +51,8 @@ export declare const NetworkEntity: (engine: Pick<IEngine, 'defineComponent'>) =
53
51
  * @alpha
54
52
  */
55
53
  export declare const NetworkParent: (engine: Pick<IEngine, 'defineComponent'>) => LastWriteWinElementSetComponentDefinition<INetowrkParentType>;
54
+ /**
55
+ * @public
56
+ */
57
+ export declare const CreatedBy: (engine: Pick<IEngine, 'defineComponent'>) => LastWriteWinElementSetComponentDefinition<ICreatedByType>;
56
58
  export { MediaState };
57
- export type { AudioAnalysisView };
@@ -1,6 +1,5 @@
1
1
  import { defineAnimatorComponent } from './extended/Animator';
2
2
  import { defineAudioSourceComponent } from './extended/AudioSource';
3
- import { defineAudioAnalysisComponent } from './extended/AudioAnalysis';
4
3
  import { defineMaterialComponent } from './extended/Material';
5
4
  import { defineMeshColliderComponent } from './extended/MeshCollider';
6
5
  import { defineMeshRendererComponent } from './extended/MeshRenderer';
@@ -17,6 +16,7 @@ import { defineInputModifierComponent } from './extended/InputModifier';
17
16
  import { defineLightSourceComponent } from './extended/LightSource';
18
17
  import { defineTriggerAreaComponent } from './extended/TriggerArea';
19
18
  import defineTagsComponent from './manual/Tags';
19
+ import defineCreatedBy from './manual/CreatedBy';
20
20
  export * from './generated/index.gen';
21
21
  /* @__PURE__ */
22
22
  export const Transform = (engine) => defineTransformComponent(engine);
@@ -27,8 +27,6 @@ export const Animator = (engine) => defineAnimatorComponent(engine);
27
27
  /* @__PURE__ */
28
28
  export const AudioSource = (engine) => defineAudioSourceComponent(engine);
29
29
  /* @__PURE__ */
30
- export const AudioAnalysis = (engine) => defineAudioAnalysisComponent(engine);
31
- /* @__PURE__ */
32
30
  export const AudioStream = (engine) => defineAudioStreamComponent(engine);
33
31
  /* @__PURE__ */
34
32
  export const MeshRenderer = (engine) => defineMeshRendererComponent(engine);
@@ -59,11 +57,13 @@ export const SyncComponents = (engine) => defineSyncComponent(engine);
59
57
  /**
60
58
  * @alpha
61
59
  */
62
- /* @__PURE__ */
63
60
  export const NetworkEntity = (engine) => defineNetworkEntity(engine);
64
61
  /**
65
62
  * @alpha
66
63
  */
67
- /* @__PURE__ */
68
64
  export const NetworkParent = (engine) => defineNetworkParent(engine);
65
+ /**
66
+ * @public
67
+ */
68
+ export const CreatedBy = (engine) => defineCreatedBy(engine);
69
69
  export { MediaState };
@@ -0,0 +1,9 @@
1
+ import { IEngine, LastWriteWinElementSetComponentDefinition } from '../../engine/types';
2
+ export interface ICreatedByType {
3
+ address: string;
4
+ }
5
+ export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
6
+ declare function defineCreatedBy(engine: Pick<IEngine, 'defineComponent'>): import("../../engine/types").MapComponentDefinition<import("../..").MapResult<{
7
+ address: import("../../schemas").ISchema<string>;
8
+ }>>;
9
+ export default defineCreatedBy;
@@ -0,0 +1,8 @@
1
+ import { Schemas } from '../../schemas';
2
+ function defineCreatedBy(engine) {
3
+ const CreatedBy = engine.defineComponent('core-schema::Created-By', {
4
+ address: Schemas.String
5
+ });
6
+ return CreatedBy;
7
+ }
8
+ export default defineCreatedBy;
@@ -1,5 +1,6 @@
1
1
  import { LastWriteWinElementSetComponentDefinition, IEngine } from '../../engine';
2
2
  import { Entity } from '../../engine/entity';
3
+ import type { ISchema } from '../../schemas/ISchema';
3
4
  /**
4
5
  * @public
5
6
  */
@@ -11,6 +12,10 @@ export interface TransformComponentExtended extends TransformComponent {
11
12
  create(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
12
13
  createOrReplace(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
13
14
  }
15
+ /**
16
+ * @public
17
+ */
18
+ export declare const COMPONENT_ID = 1;
14
19
  /**
15
20
  * @public
16
21
  */
@@ -33,6 +38,10 @@ export type TransformType = {
33
38
  };
34
39
  parent?: Entity;
35
40
  };
41
+ /** @public */
42
+ export declare const TRANSFORM_LENGTH = 44;
43
+ /** @public */
44
+ export declare const TransformSchema: ISchema<TransformType>;
36
45
  /**
37
46
  * @public
38
47
  */
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @internal
2
+ * @public
3
3
  */
4
4
  export const COMPONENT_ID = 1;
5
- /** @internal */
5
+ /** @public */
6
6
  export const TRANSFORM_LENGTH = 44;
7
- /** @internal */
7
+ /** @public */
8
8
  export const TransformSchema = {
9
9
  serialize(value, builder) {
10
10
  const ptr = builder.incrementWriteOffset(TRANSFORM_LENGTH);
@@ -1,6 +1,5 @@
1
1
  export type { AnimatorComponentDefinitionExtended } from './extended/Animator';
2
2
  export type { AudioSourceComponentDefinitionExtended } from './extended/AudioSource';
3
- export type { AudioAnalysisComponentDefinitionExtended, AudioAnalysisView } from './extended/AudioAnalysis';
4
3
  export type { AudioStreamComponentDefinitionExtended } from './extended/AudioStream';
5
4
  export type { MeshRendererComponentDefinitionExtended } from './extended/MeshRenderer';
6
5
  export type { MeshColliderComponentDefinitionExtended } from './extended/MeshCollider';
@@ -13,6 +12,7 @@ export type { TagsComponentDefinitionExtended, TagsType } from './manual/Tags';
13
12
  export type { ISyncComponents, ISyncComponentsType } from './manual/SyncComponents';
14
13
  export type { INetowrkEntity, INetowrkEntityType } from './manual/NetworkEntity';
15
14
  export type { INetowrkParent, INetowrkParentType } from './manual/NetworkParent';
15
+ export type { ICreatedBy, ICreatedByType } from './manual/CreatedBy';
16
16
  export type { InputModifierHelper, InputModifierComponentDefinitionExtended } from './extended/InputModifier';
17
17
  export type { LightSourceHelper, LightSourceComponentDefinitionExtended } from './extended/LightSource';
18
18
  export type { TriggerAreaComponentDefinitionExtended } from './extended/TriggerArea';
@@ -1,6 +1,6 @@
1
1
  import { ISchema } from '../schemas';
2
2
  import { ByteBuffer } from '../serialization/ByteBuffer';
3
- import { CrdtMessageBody, DeleteComponentMessageBody, PutComponentMessageBody } from '../serialization/crdt';
3
+ import { CrdtMessageBody, DeleteComponentMessageBody, ProcessMessageResultType, PutComponentMessageBody } from '../serialization/crdt';
4
4
  import { Entity } from './entity';
5
5
  import { DeepReadonly, DeepReadonlySet } from './readonly';
6
6
  /**
@@ -70,7 +70,58 @@ export interface BaseComponent<T> {
70
70
  * If the value is undefined, the component was deleted.
71
71
  */
72
72
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
73
+ /**
74
+ * @public
75
+ *
76
+ */
77
+ validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
78
+ validateBeforeChange(cb: ValidateCallback<T>): void;
79
+ /**
80
+ * Get the CRDT state for an entity (serialized data and timestamp)
81
+ * @param entity - Entity to get the CRDT state for
82
+ * @returns Object with serialized data and timestamp, or null if entity doesn't have the component
83
+ * @public
84
+ */
85
+ getCrdtState(entity: Entity): {
86
+ data: Uint8Array;
87
+ timestamp: number;
88
+ } | null;
89
+ }
90
+ /**
91
+ * Internal component interface that exposes all internal methods for SDK use
92
+ * This is not exposed to users, only for internal SDK operations
93
+ */
94
+ export interface InternalBaseComponent<T> extends BaseComponent<T> {
95
+ /**
96
+ * @public
97
+ * Dry run update to check if a CRDT message would be accepted without actually applying it
98
+ */
99
+ __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
100
+ /**
101
+ * @public
102
+ * Get the iterator to every entity has the component
103
+ */
104
+ iterator(): Iterable<[Entity, any]>;
105
+ /**
106
+ * @public
107
+ */
108
+ dirtyIterator(): Iterable<Entity>;
109
+ /**
110
+ * @public
111
+ */
112
+ __onChangeCallbacks(entity: Entity, value: T): void;
113
+ /**
114
+ * @public
115
+ */
116
+ __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
73
117
  }
118
+ export type ValidateCallback<T> = (value: {
119
+ entity: Entity;
120
+ currentValue: T | undefined;
121
+ newValue: T | undefined;
122
+ senderAddress: string;
123
+ createdBy: string;
124
+ }) => boolean;
74
125
  /**
75
126
  * @public
76
127
  */
@@ -1,7 +1,8 @@
1
1
  import { ReadWriteByteBuffer } from '../serialization/ByteBuffer';
2
- import { AppendValueOperation, CrdtMessageType } from '../serialization/crdt';
2
+ import { AppendValueOperation, CrdtMessageType, ProcessMessageResultType } from '../serialization/crdt';
3
3
  import { __DEV__ } from '../runtime/invariant';
4
4
  const emptyReadonlySet = freezeSet(new Set());
5
+ const __GLOBAL_ENTITY = '__GLOBAL_ENTITY';
5
6
  function frozenError() {
6
7
  throw new Error('The set is frozen');
7
8
  }
@@ -22,6 +23,7 @@ export function createValueSetComponentDefinitionFromSchema(componentName, compo
22
23
  const dirtyIterator = new Set();
23
24
  const queuedCommands = [];
24
25
  const onChangeCallbacks = new Map();
26
+ const validateCallbacks = new Map();
25
27
  // only sort the array if the latest (N) element has a timestamp <= N-1
26
28
  function shouldSort(row) {
27
29
  const len = row.raw.length;
@@ -80,8 +82,11 @@ export function createValueSetComponentDefinitionFromSchema(componentName, compo
80
82
  has(entity) {
81
83
  return data.has(entity);
82
84
  },
83
- entityDeleted(entity) {
85
+ entityDeleted(entity, markAsDirty) {
84
86
  data.delete(entity);
87
+ if (markAsDirty) {
88
+ // For grow-only sets, we don't need to mark as dirty since deletion doesn't generate CRDT messages
89
+ }
85
90
  },
86
91
  get(entity) {
87
92
  const values = data.get(entity);
@@ -152,6 +157,44 @@ export function createValueSetComponentDefinitionFromSchema(componentName, compo
152
157
  for (const cb of cbs) {
153
158
  cb(value);
154
159
  }
160
+ },
161
+ __dry_run_updateFromCrdt(_body) {
162
+ return ProcessMessageResultType.StateUpdatedData;
163
+ },
164
+ validateBeforeChange(entityOrCb, cb) {
165
+ if (arguments.length === 1) {
166
+ // Second overload: just callback (global validation)
167
+ validateCallbacks.set(__GLOBAL_ENTITY, entityOrCb);
168
+ }
169
+ else {
170
+ if (cb) {
171
+ validateCallbacks.set(entityOrCb, cb);
172
+ }
173
+ }
174
+ },
175
+ __run_validateBeforeChange(entity, newValue, senderAddress, createdBy) {
176
+ const cb = entity && validateCallbacks.get(entity);
177
+ const globalCb = validateCallbacks.get(__GLOBAL_ENTITY);
178
+ const currentValue = [...this.get(entity).values()];
179
+ const value = { entity, currentValue: currentValue, newValue, senderAddress, createdBy };
180
+ const globalResult = globalCb?.(value) ?? true;
181
+ const entityResult = (globalResult && cb?.(value)) ?? true;
182
+ return globalResult && entityResult;
183
+ },
184
+ getCrdtState(entity) {
185
+ const row = data.get(entity);
186
+ if (!row || row.raw.length === 0) {
187
+ return null;
188
+ }
189
+ // For GrowOnlySet, we need to return the complete CRDT messages for all values
190
+ // This is complex because GrowOnlySet uses APPEND messages, not a single PUT
191
+ // For now, return null to indicate this component type doesn't support simple corrections
192
+ return null;
193
+ },
194
+ __forceUpdateFromCrdt(_msg) {
195
+ // GrowOnlySet doesn't support authoritative corrections in the same way as LWW
196
+ // since it uses APPEND_VALUE messages instead of PUT_COMPONENT messages
197
+ return [null, undefined];
155
198
  }
156
199
  };
157
200
  return ret;
@@ -1,8 +1,10 @@
1
1
  import { ISchema } from '../schemas';
2
2
  import { ByteBuffer } from '../serialization/ByteBuffer';
3
- import { PutComponentMessageBody, DeleteComponentMessageBody, CrdtMessageBody } from '../serialization/crdt';
3
+ import { PutComponentMessageBody, DeleteComponentMessageBody, ProcessMessageResultType, CrdtMessageBody, PutNetworkComponentMessageBody, DeleteComponentNetworkMessageBody, AuthoritativePutComponentMessageBody } from '../serialization/crdt';
4
4
  import { Entity } from './entity';
5
5
  export declare function incrementTimestamp(entity: Entity, timestamps: Map<Entity, number>): number;
6
6
  export declare function createDumpLwwFunctionFromCrdt(componentId: number, timestamps: Map<Entity, number>, schema: Pick<ISchema<any>, 'serialize' | 'deserialize'>, data: Map<Entity, unknown>): (buffer: ByteBuffer, filterEntity?: ((entity: Entity) => boolean) | undefined) => void;
7
+ export declare function createCrdtRuleValidator(timestamps: Map<Entity, number>, schema: Pick<ISchema<any>, 'serialize' | 'deserialize'>, data: Map<Entity, unknown>): (message: PutComponentMessageBody | DeleteComponentMessageBody | PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody) => ProcessMessageResultType;
8
+ export declare function createForceUpdateLwwFromCrdt(componentId: number, timestamps: Map<Entity, number>, schema: Pick<ISchema<any>, 'serialize' | 'deserialize'>, data: Map<Entity, unknown>): (msg: AuthoritativePutComponentMessageBody) => [null, any];
7
9
  export declare function createUpdateLwwFromCrdt(componentId: number, timestamps: Map<Entity, number>, schema: Pick<ISchema<any>, 'serialize' | 'deserialize'>, data: Map<Entity, unknown>): (msg: CrdtMessageBody) => [null | PutComponentMessageBody | DeleteComponentMessageBody, any];
8
10
  export declare function createGetCrdtMessagesForLww(componentId: number, timestamps: Map<Entity, number>, dirtyIterator: Set<Entity>, schema: Pick<ISchema<any>, 'serialize'>, data: Map<Entity, unknown>): () => Generator<PutComponentMessageBody | DeleteComponentMessageBody, void, unknown>;