@dcl/ecs 7.29.1-35862852104.commit-1f44e80 → 7.29.1-35917671376.commit-046b268

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 (75) hide show
  1. package/dist/components/generated/ExplorerItemPurchaseResult.gen.d.ts +1 -0
  2. package/dist/components/generated/ExplorerItemPurchaseResult.gen.js +25 -0
  3. package/dist/components/generated/component-names.gen.js +1 -0
  4. package/dist/components/generated/global.gen.d.ts +2 -0
  5. package/dist/components/generated/global.gen.js +1 -0
  6. package/dist/components/generated/index.gen.d.ts +4 -0
  7. package/dist/components/generated/index.gen.js +7 -0
  8. package/dist/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.d.ts +4 -2
  9. package/dist/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.js +3 -1
  10. package/dist/components/generated/pb/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +68 -0
  11. package/dist/components/generated/pb/decentraland/sdk/components/explorer_item_purchase_result.gen.js +184 -0
  12. package/dist/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +8 -3
  13. package/dist/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.js +10 -1
  14. package/dist/components/index.d.ts +0 -5
  15. package/dist/components/index.js +2 -5
  16. package/dist/components/manual/Transform.d.ts +0 -9
  17. package/dist/components/manual/Transform.js +3 -3
  18. package/dist/components/types.d.ts +0 -1
  19. package/dist/engine/component.d.ts +1 -52
  20. package/dist/engine/grow-only-value-set-component-definition.js +2 -45
  21. package/dist/engine/lww-element-set-component-definition.d.ts +1 -3
  22. package/dist/engine/lww-element-set-component-definition.js +13 -68
  23. package/dist/index.d.ts +1 -2
  24. package/dist/index.js +0 -1
  25. package/dist/serialization/crdt/index.d.ts +0 -1
  26. package/dist/serialization/crdt/index.js +0 -1
  27. package/dist/serialization/crdt/network/utils.d.ts +9 -0
  28. package/dist/serialization/crdt/network/utils.js +60 -0
  29. package/dist/serialization/crdt/types.d.ts +3 -25
  30. package/dist/serialization/crdt/types.js +1 -3
  31. package/dist/systems/crdt/index.d.ts +1 -0
  32. package/dist/systems/crdt/index.js +143 -76
  33. package/dist/systems/crdt/types.d.ts +0 -10
  34. package/dist-cjs/components/generated/ExplorerItemPurchaseResult.gen.d.ts +1 -0
  35. package/dist-cjs/components/generated/ExplorerItemPurchaseResult.gen.js +28 -0
  36. package/dist-cjs/components/generated/component-names.gen.js +1 -0
  37. package/dist-cjs/components/generated/global.gen.d.ts +2 -0
  38. package/dist-cjs/components/generated/global.gen.js +3 -2
  39. package/dist-cjs/components/generated/index.gen.d.ts +4 -0
  40. package/dist-cjs/components/generated/index.gen.js +10 -2
  41. package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.d.ts +4 -2
  42. package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.js +3 -1
  43. package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +68 -0
  44. package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_item_purchase_result.gen.js +190 -0
  45. package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +8 -3
  46. package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.js +10 -1
  47. package/dist-cjs/components/index.d.ts +0 -5
  48. package/dist-cjs/components/index.js +3 -7
  49. package/dist-cjs/components/manual/Transform.d.ts +0 -9
  50. package/dist-cjs/components/manual/Transform.js +3 -3
  51. package/dist-cjs/components/types.d.ts +0 -1
  52. package/dist-cjs/engine/component.d.ts +1 -52
  53. package/dist-cjs/engine/grow-only-value-set-component-definition.js +1 -44
  54. package/dist-cjs/engine/lww-element-set-component-definition.d.ts +1 -3
  55. package/dist-cjs/engine/lww-element-set-component-definition.js +14 -71
  56. package/dist-cjs/index.d.ts +1 -2
  57. package/dist-cjs/index.js +1 -2
  58. package/dist-cjs/serialization/crdt/index.d.ts +0 -1
  59. package/dist-cjs/serialization/crdt/index.js +0 -1
  60. package/dist-cjs/serialization/crdt/network/utils.d.ts +9 -0
  61. package/dist-cjs/serialization/crdt/network/utils.js +67 -0
  62. package/dist-cjs/serialization/crdt/types.d.ts +3 -25
  63. package/dist-cjs/serialization/crdt/types.js +1 -3
  64. package/dist-cjs/systems/crdt/index.d.ts +1 -0
  65. package/dist-cjs/systems/crdt/index.js +166 -76
  66. package/dist-cjs/systems/crdt/types.d.ts +0 -10
  67. package/package.json +2 -2
  68. package/dist/components/manual/CreatedBy.d.ts +0 -9
  69. package/dist/components/manual/CreatedBy.js +0 -8
  70. package/dist/serialization/crdt/authoritativePutComponent.d.ts +0 -15
  71. package/dist/serialization/crdt/authoritativePutComponent.js +0 -47
  72. package/dist-cjs/components/manual/CreatedBy.d.ts +0 -9
  73. package/dist-cjs/components/manual/CreatedBy.js +0 -10
  74. package/dist-cjs/serialization/crdt/authoritativePutComponent.d.ts +0 -15
  75. package/dist-cjs/serialization/crdt/authoritativePutComponent.js +0 -50
@@ -0,0 +1,25 @@
1
+ import { PBExplorerItemPurchaseResult } from './pb/decentraland/sdk/components/explorer_item_purchase_result.gen';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const ExplorerItemPurchaseResultSchema = {
6
+ COMPONENT_ID: 1222,
7
+ serialize(value, builder) {
8
+ const writer = PBExplorerItemPurchaseResult.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer, false);
11
+ },
12
+ deserialize(reader) {
13
+ return PBExplorerItemPurchaseResult.decode(reader.buffer(), reader.remainingBytes());
14
+ },
15
+ create() {
16
+ // TODO: this is a hack.
17
+ return PBExplorerItemPurchaseResult.decode(new Uint8Array());
18
+ },
19
+ jsonSchema: {
20
+ type: "object",
21
+ properties: {},
22
+ serializationType: "protocol-buffer",
23
+ protocolBuffer: "PBExplorerItemPurchaseResult"
24
+ }
25
+ };
@@ -22,6 +22,7 @@ export const coreComponentMappings = {
22
22
  "core::CameraMode": 1072,
23
23
  "core::CameraModeArea": 1071,
24
24
  "core::EngineInfo": 1048,
25
+ "core::ExplorerItemPurchaseResult": 1222,
25
26
  "core::ExplorerUiEventsResult": 1220,
26
27
  "core::GltfContainer": 1041,
27
28
  "core::GltfContainerLoadingState": 1049,
@@ -18,6 +18,7 @@ import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
18
18
  import { PBCameraMode } from './pb/decentraland/sdk/components/camera_mode.gen';
19
19
  import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_area.gen';
20
20
  import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
21
+ import { PBExplorerItemPurchaseResult } from './pb/decentraland/sdk/components/explorer_item_purchase_result.gen';
21
22
  import { PBExplorerUiEventsResult } from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
22
23
  import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
23
24
  import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
@@ -75,6 +76,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
75
76
  /** @public */ export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
76
77
  /** @public */ export declare const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraModeArea>;
77
78
  /** @public */ export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
79
+ /** @public */ export declare const ExplorerItemPurchaseResult: GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>;
78
80
  /** @public */ export declare const ExplorerUiEventsResult: GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>;
79
81
  /** @public */ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
80
82
  /** @public */ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
@@ -19,6 +19,7 @@ export * from './index.gen';
19
19
  /** @public */ export const CameraMode = /* @__PURE__ */ components.CameraMode(engine);
20
20
  /** @public */ export const CameraModeArea = /* @__PURE__ */ components.CameraModeArea(engine);
21
21
  /** @public */ export const EngineInfo = /* @__PURE__ */ components.EngineInfo(engine);
22
+ /** @public */ export const ExplorerItemPurchaseResult = /* @__PURE__ */ components.ExplorerItemPurchaseResult(engine);
22
23
  /** @public */ export const ExplorerUiEventsResult = /* @__PURE__ */ components.ExplorerUiEventsResult(engine);
23
24
  /** @public */ export const GltfContainer = /* @__PURE__ */ components.GltfContainer(engine);
24
25
  /** @public */ export const GltfContainerLoadingState = /* @__PURE__ */ components.GltfContainerLoadingState(engine);
@@ -19,6 +19,7 @@ import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
19
19
  import { PBCameraMode } from './pb/decentraland/sdk/components/camera_mode.gen';
20
20
  import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_area.gen';
21
21
  import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
22
+ import { PBExplorerItemPurchaseResult } from './pb/decentraland/sdk/components/explorer_item_purchase_result.gen';
22
23
  import { PBExplorerUiEventsResult } from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
23
24
  import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
24
25
  import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
@@ -81,6 +82,7 @@ export * from './pb/decentraland/sdk/components/billboard.gen';
81
82
  export * from './pb/decentraland/sdk/components/camera_mode.gen';
82
83
  export * from './pb/decentraland/sdk/components/camera_mode_area.gen';
83
84
  export * from './pb/decentraland/sdk/components/engine_info.gen';
85
+ export * from './pb/decentraland/sdk/components/explorer_item_purchase_result.gen';
84
86
  export * from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
85
87
  export * from './pb/decentraland/sdk/components/gltf_container.gen';
86
88
  export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
@@ -145,6 +147,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
145
147
  /** @public */ export declare const CameraMode: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
146
148
  /** @public */ export declare const CameraModeArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
147
149
  /** @public */ export declare const EngineInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
150
+ /** @public */ export declare const ExplorerItemPurchaseResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
148
151
  /** @public */ export declare const ExplorerUiEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
149
152
  /** @public */ export declare const GltfContainer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
150
153
  /** @public */ export declare const GltfContainerLoadingState: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
@@ -209,6 +212,7 @@ export declare const componentDefinitionByName: {
209
212
  "core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
210
213
  "core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
211
214
  "core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
215
+ "core::ExplorerItemPurchaseResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
212
216
  "core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
213
217
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
214
218
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
@@ -17,6 +17,7 @@ import { BillboardSchema } from './Billboard.gen';
17
17
  import { CameraModeSchema } from './CameraMode.gen';
18
18
  import { CameraModeAreaSchema } from './CameraModeArea.gen';
19
19
  import { EngineInfoSchema } from './EngineInfo.gen';
20
+ import { ExplorerItemPurchaseResultSchema } from './ExplorerItemPurchaseResult.gen';
20
21
  import { ExplorerUiEventsResultSchema } from './ExplorerUiEventsResult.gen';
21
22
  import { GltfContainerSchema } from './GltfContainer.gen';
22
23
  import { GltfContainerLoadingStateSchema } from './GltfContainerLoadingState.gen';
@@ -79,6 +80,7 @@ export * from './pb/decentraland/sdk/components/billboard.gen';
79
80
  export * from './pb/decentraland/sdk/components/camera_mode.gen';
80
81
  export * from './pb/decentraland/sdk/components/camera_mode_area.gen';
81
82
  export * from './pb/decentraland/sdk/components/engine_info.gen';
83
+ export * from './pb/decentraland/sdk/components/explorer_item_purchase_result.gen';
82
84
  export * from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
83
85
  export * from './pb/decentraland/sdk/components/gltf_container.gen';
84
86
  export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
@@ -166,6 +168,10 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
166
168
  /* @__PURE__ */ engine.defineComponentFromSchema("core::CameraModeArea", CameraModeAreaSchema);
167
169
  /** @public */ export const EngineInfo = engine =>
168
170
  /* @__PURE__ */ engine.defineComponentFromSchema("core::EngineInfo", EngineInfoSchema);
171
+ /** @public */ export const ExplorerItemPurchaseResult = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::ExplorerItemPurchaseResult", ExplorerItemPurchaseResultSchema, {
172
+ timestampFunction: (t) => t.timestamp,
173
+ maxElements: 100
174
+ });
169
175
  /** @public */ export const ExplorerUiEventsResult = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::ExplorerUiEventsResult", ExplorerUiEventsResultSchema, {
170
176
  timestampFunction: (t) => t.timestamp,
171
177
  maxElements: 100
@@ -281,6 +287,7 @@ export const componentDefinitionByName = /* @__PURE__ */ {
281
287
  "core::CameraMode": CameraMode,
282
288
  "core::CameraModeArea": CameraModeArea,
283
289
  "core::EngineInfo": EngineInfo,
290
+ "core::ExplorerItemPurchaseResult": ExplorerItemPurchaseResult,
284
291
  "core::ExplorerUiEventsResult": ExplorerUiEventsResult,
285
292
  "core::GltfContainer": GltfContainer,
286
293
  "core::GltfContainerLoadingState": GltfContainerLoadingState,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Identifies which fullscreen explorer panel OpenExplorerUi targets.
2
+ * Identifies which explorer panel OpenExplorerUi targets. Panels are not all fullscreen.
3
3
  * EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
4
4
  */
5
5
  /**
@@ -12,5 +12,7 @@ export declare const enum ExplorerUi {
12
12
  EU_CAMERA_REEL = 3,
13
13
  EU_COMMUNITIES = 4,
14
14
  EU_PLACES = 5,
15
- EU_EVENTS = 6
15
+ EU_EVENTS = 6,
16
+ /** EU_ITEM_PURCHASE - the item-purchase confirmation modal; see OpenExplorerUi for its parameters and result component */
17
+ EU_ITEM_PURCHASE = 7
16
18
  }
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  const protobufPackageSarasa = "decentraland.sdk.components.common";
3
3
  /**
4
- * Identifies which fullscreen explorer panel OpenExplorerUi targets.
4
+ * Identifies which explorer panel OpenExplorerUi targets. Panels are not all fullscreen.
5
5
  * EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
6
6
  */
7
7
  /**
@@ -16,4 +16,6 @@ export var ExplorerUi;
16
16
  ExplorerUi[ExplorerUi["EU_COMMUNITIES"] = 4] = "EU_COMMUNITIES";
17
17
  ExplorerUi[ExplorerUi["EU_PLACES"] = 5] = "EU_PLACES";
18
18
  ExplorerUi[ExplorerUi["EU_EVENTS"] = 6] = "EU_EVENTS";
19
+ /** EU_ITEM_PURCHASE - the item-purchase confirmation modal; see OpenExplorerUi for its parameters and result component */
20
+ ExplorerUi[ExplorerUi["EU_ITEM_PURCHASE"] = 7] = "EU_ITEM_PURCHASE";
19
21
  })(ExplorerUi || (ExplorerUi = {}));
@@ -0,0 +1,68 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ /**
3
+ * Grow-only value set appended to the scene root entity.
4
+ * Reports the outcome of an EU_ITEM_PURCHASE flow triggered via OpenExplorerUi.
5
+ */
6
+ /**
7
+ * @public
8
+ */
9
+ export interface PBExplorerItemPurchaseResult {
10
+ urn: string;
11
+ /** The scene tick when the event occurred */
12
+ timestamp: number;
13
+ /** The OpenExplorerUiRequest.request_id that caused this event; 0 when the request carried none */
14
+ requestId: number;
15
+ status?: {
16
+ $case: "purchased";
17
+ purchased: PBExplorerItemPurchaseResult_Purchased;
18
+ } | {
19
+ $case: "dismissed";
20
+ dismissed: PBExplorerItemPurchaseResult_Dismissed;
21
+ } | {
22
+ $case: "failed";
23
+ failed: PBExplorerItemPurchaseResult_Failed;
24
+ } | undefined;
25
+ }
26
+ /**
27
+ * @public
28
+ */
29
+ export interface PBExplorerItemPurchaseResult_Purchased {
30
+ }
31
+ /**
32
+ * @public
33
+ */
34
+ export interface PBExplorerItemPurchaseResult_Dismissed {
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface PBExplorerItemPurchaseResult_Failed {
40
+ }
41
+ /**
42
+ * @public
43
+ */
44
+ export declare namespace PBExplorerItemPurchaseResult {
45
+ function encode(message: PBExplorerItemPurchaseResult, writer?: _m0.Writer): _m0.Writer;
46
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult;
47
+ }
48
+ /**
49
+ * @public
50
+ */
51
+ export declare namespace PBExplorerItemPurchaseResult_Purchased {
52
+ function encode(_: PBExplorerItemPurchaseResult_Purchased, writer?: _m0.Writer): _m0.Writer;
53
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Purchased;
54
+ }
55
+ /**
56
+ * @public
57
+ */
58
+ export declare namespace PBExplorerItemPurchaseResult_Dismissed {
59
+ function encode(_: PBExplorerItemPurchaseResult_Dismissed, writer?: _m0.Writer): _m0.Writer;
60
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Dismissed;
61
+ }
62
+ /**
63
+ * @public
64
+ */
65
+ export declare namespace PBExplorerItemPurchaseResult_Failed {
66
+ function encode(_: PBExplorerItemPurchaseResult_Failed, writer?: _m0.Writer): _m0.Writer;
67
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Failed;
68
+ }
@@ -0,0 +1,184 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ const protobufPackageSarasa = "decentraland.sdk.components";
4
+ function createBasePBExplorerItemPurchaseResult() {
5
+ return { urn: "", timestamp: 0, requestId: 0, status: undefined };
6
+ }
7
+ /**
8
+ * @public
9
+ */
10
+ export var PBExplorerItemPurchaseResult;
11
+ (function (PBExplorerItemPurchaseResult) {
12
+ function encode(message, writer = _m0.Writer.create()) {
13
+ if (message.urn !== "") {
14
+ writer.uint32(10).string(message.urn);
15
+ }
16
+ if (message.timestamp !== 0) {
17
+ writer.uint32(16).uint32(message.timestamp);
18
+ }
19
+ if (message.requestId !== 0) {
20
+ writer.uint32(24).uint32(message.requestId);
21
+ }
22
+ switch (message.status?.$case) {
23
+ case "purchased":
24
+ PBExplorerItemPurchaseResult_Purchased.encode(message.status.purchased, writer.uint32(82).fork()).ldelim();
25
+ break;
26
+ case "dismissed":
27
+ PBExplorerItemPurchaseResult_Dismissed.encode(message.status.dismissed, writer.uint32(90).fork()).ldelim();
28
+ break;
29
+ case "failed":
30
+ PBExplorerItemPurchaseResult_Failed.encode(message.status.failed, writer.uint32(98).fork()).ldelim();
31
+ break;
32
+ }
33
+ return writer;
34
+ }
35
+ PBExplorerItemPurchaseResult.encode = encode;
36
+ function decode(input, length) {
37
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38
+ let end = length === undefined ? reader.len : reader.pos + length;
39
+ const message = createBasePBExplorerItemPurchaseResult();
40
+ while (reader.pos < end) {
41
+ const tag = reader.uint32();
42
+ switch (tag >>> 3) {
43
+ case 1:
44
+ if (tag !== 10) {
45
+ break;
46
+ }
47
+ message.urn = reader.string();
48
+ continue;
49
+ case 2:
50
+ if (tag !== 16) {
51
+ break;
52
+ }
53
+ message.timestamp = reader.uint32();
54
+ continue;
55
+ case 3:
56
+ if (tag !== 24) {
57
+ break;
58
+ }
59
+ message.requestId = reader.uint32();
60
+ continue;
61
+ case 10:
62
+ if (tag !== 82) {
63
+ break;
64
+ }
65
+ message.status = {
66
+ $case: "purchased",
67
+ purchased: PBExplorerItemPurchaseResult_Purchased.decode(reader, reader.uint32()),
68
+ };
69
+ continue;
70
+ case 11:
71
+ if (tag !== 90) {
72
+ break;
73
+ }
74
+ message.status = {
75
+ $case: "dismissed",
76
+ dismissed: PBExplorerItemPurchaseResult_Dismissed.decode(reader, reader.uint32()),
77
+ };
78
+ continue;
79
+ case 12:
80
+ if (tag !== 98) {
81
+ break;
82
+ }
83
+ message.status = {
84
+ $case: "failed",
85
+ failed: PBExplorerItemPurchaseResult_Failed.decode(reader, reader.uint32()),
86
+ };
87
+ continue;
88
+ }
89
+ if ((tag & 7) === 4 || tag === 0) {
90
+ break;
91
+ }
92
+ reader.skipType(tag & 7);
93
+ }
94
+ return message;
95
+ }
96
+ PBExplorerItemPurchaseResult.decode = decode;
97
+ })(PBExplorerItemPurchaseResult || (PBExplorerItemPurchaseResult = {}));
98
+ function createBasePBExplorerItemPurchaseResult_Purchased() {
99
+ return {};
100
+ }
101
+ /**
102
+ * @public
103
+ */
104
+ export var PBExplorerItemPurchaseResult_Purchased;
105
+ (function (PBExplorerItemPurchaseResult_Purchased) {
106
+ function encode(_, writer = _m0.Writer.create()) {
107
+ return writer;
108
+ }
109
+ PBExplorerItemPurchaseResult_Purchased.encode = encode;
110
+ function decode(input, length) {
111
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
112
+ let end = length === undefined ? reader.len : reader.pos + length;
113
+ const message = createBasePBExplorerItemPurchaseResult_Purchased();
114
+ while (reader.pos < end) {
115
+ const tag = reader.uint32();
116
+ switch (tag >>> 3) {
117
+ }
118
+ if ((tag & 7) === 4 || tag === 0) {
119
+ break;
120
+ }
121
+ reader.skipType(tag & 7);
122
+ }
123
+ return message;
124
+ }
125
+ PBExplorerItemPurchaseResult_Purchased.decode = decode;
126
+ })(PBExplorerItemPurchaseResult_Purchased || (PBExplorerItemPurchaseResult_Purchased = {}));
127
+ function createBasePBExplorerItemPurchaseResult_Dismissed() {
128
+ return {};
129
+ }
130
+ /**
131
+ * @public
132
+ */
133
+ export var PBExplorerItemPurchaseResult_Dismissed;
134
+ (function (PBExplorerItemPurchaseResult_Dismissed) {
135
+ function encode(_, writer = _m0.Writer.create()) {
136
+ return writer;
137
+ }
138
+ PBExplorerItemPurchaseResult_Dismissed.encode = encode;
139
+ function decode(input, length) {
140
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
141
+ let end = length === undefined ? reader.len : reader.pos + length;
142
+ const message = createBasePBExplorerItemPurchaseResult_Dismissed();
143
+ while (reader.pos < end) {
144
+ const tag = reader.uint32();
145
+ switch (tag >>> 3) {
146
+ }
147
+ if ((tag & 7) === 4 || tag === 0) {
148
+ break;
149
+ }
150
+ reader.skipType(tag & 7);
151
+ }
152
+ return message;
153
+ }
154
+ PBExplorerItemPurchaseResult_Dismissed.decode = decode;
155
+ })(PBExplorerItemPurchaseResult_Dismissed || (PBExplorerItemPurchaseResult_Dismissed = {}));
156
+ function createBasePBExplorerItemPurchaseResult_Failed() {
157
+ return {};
158
+ }
159
+ /**
160
+ * @public
161
+ */
162
+ export var PBExplorerItemPurchaseResult_Failed;
163
+ (function (PBExplorerItemPurchaseResult_Failed) {
164
+ function encode(_, writer = _m0.Writer.create()) {
165
+ return writer;
166
+ }
167
+ PBExplorerItemPurchaseResult_Failed.encode = encode;
168
+ function decode(input, length) {
169
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
170
+ let end = length === undefined ? reader.len : reader.pos + length;
171
+ const message = createBasePBExplorerItemPurchaseResult_Failed();
172
+ while (reader.pos < end) {
173
+ const tag = reader.uint32();
174
+ switch (tag >>> 3) {
175
+ }
176
+ if ((tag & 7) === 4 || tag === 0) {
177
+ break;
178
+ }
179
+ reader.skipType(tag & 7);
180
+ }
181
+ return message;
182
+ }
183
+ PBExplorerItemPurchaseResult_Failed.decode = decode;
184
+ })(PBExplorerItemPurchaseResult_Failed || (PBExplorerItemPurchaseResult_Failed = {}));
@@ -1,7 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  import { ExplorerUi } from "./common/explorer_ui.gen";
3
3
  /**
4
- * PBExplorerUiEventsResult transports the lifecycle events of fullscreen explorer panels — a panel was
4
+ * PBExplorerUiEventsResult transports the lifecycle events of explorer UI panels — a panel was
5
5
  * opened, a panel was closed. It is a grow only value set appended to the scene root entity, so every
6
6
  * event of a tick is delivered and none overwrites another.
7
7
  */
@@ -13,6 +13,8 @@ export interface PBExplorerUiEventsResult {
13
13
  ui: ExplorerUi;
14
14
  /** The scene tick when the event occurred */
15
15
  timestamp: number;
16
+ /** The OpenExplorerUiRequest.request_id that caused this event; 0 when the request carried none */
17
+ requestId: number;
16
18
  event?: {
17
19
  $case: "opened";
18
20
  opened: PBExplorerUiEventsResult_UiOpened;
@@ -21,13 +23,16 @@ export interface PBExplorerUiEventsResult {
21
23
  closed: PBExplorerUiEventsResult_UiClosed;
22
24
  } | undefined;
23
25
  }
24
- /** Emitted when a fullscreen explorer panel is opened. */
26
+ /**
27
+ * Emitted when an explorer panel is opened. The OpenExplorerUi response carries the same fact,
28
+ * but it reaches only the caller; this channel is scene wide.
29
+ */
25
30
  /**
26
31
  * @public
27
32
  */
28
33
  export interface PBExplorerUiEventsResult_UiOpened {
29
34
  }
30
- /** Emitted when a fullscreen explorer panel is closed. */
35
+ /** Emitted when an explorer panel is closed. */
31
36
  /**
32
37
  * @public
33
38
  */
@@ -2,7 +2,7 @@
2
2
  import _m0 from "protobufjs/minimal";
3
3
  const protobufPackageSarasa = "decentraland.sdk.components";
4
4
  function createBasePBExplorerUiEventsResult() {
5
- return { ui: 0, timestamp: 0, event: undefined };
5
+ return { ui: 0, timestamp: 0, requestId: 0, event: undefined };
6
6
  }
7
7
  /**
8
8
  * @public
@@ -16,6 +16,9 @@ export var PBExplorerUiEventsResult;
16
16
  if (message.timestamp !== 0) {
17
17
  writer.uint32(16).uint32(message.timestamp);
18
18
  }
19
+ if (message.requestId !== 0) {
20
+ writer.uint32(24).uint32(message.requestId);
21
+ }
19
22
  switch (message.event?.$case) {
20
23
  case "opened":
21
24
  PBExplorerUiEventsResult_UiOpened.encode(message.event.opened, writer.uint32(82).fork()).ldelim();
@@ -46,6 +49,12 @@ export var PBExplorerUiEventsResult;
46
49
  }
47
50
  message.timestamp = reader.uint32();
48
51
  continue;
52
+ case 3:
53
+ if (tag !== 24) {
54
+ break;
55
+ }
56
+ message.requestId = reader.uint32();
57
+ continue;
49
58
  case 10:
50
59
  if (tag !== 82) {
51
60
  break;
@@ -23,7 +23,6 @@ import { TriggerAreaComponentDefinitionExtended } from './extended/TriggerArea';
23
23
  import { ParticleSystemComponentDefinitionExtended } from './extended/ParticleSystem';
24
24
  import { TouchScreenControlsComponentDefinitionExtended } from './extended/TouchScreenControls';
25
25
  import { TagsComponentDefinitionExtended } from './manual/Tags';
26
- import { ICreatedByType } from './manual/CreatedBy';
27
26
  export * from './generated/index.gen';
28
27
  export type { GrowOnlyValueSetComponentDefinition, LastWriteWinElementSetComponentDefinition, LwwComponentGetter, GSetComponentGetter };
29
28
  export declare const Transform: LwwComponentGetter<TransformComponentExtended>;
@@ -58,9 +57,5 @@ export declare const NetworkEntity: (engine: Pick<IEngine, 'defineComponent'>) =
58
57
  * @alpha
59
58
  */
60
59
  export declare const NetworkParent: (engine: Pick<IEngine, 'defineComponent'>) => LastWriteWinElementSetComponentDefinition<INetowrkParentType>;
61
- /**
62
- * @public
63
- */
64
- export declare const CreatedBy: (engine: Pick<IEngine, 'defineComponent'>) => LastWriteWinElementSetComponentDefinition<ICreatedByType>;
65
60
  export { MediaState };
66
61
  export type { AudioAnalysisView };
@@ -19,7 +19,6 @@ import { defineTriggerAreaComponent } from './extended/TriggerArea';
19
19
  import { defineParticleSystemComponent } from './extended/ParticleSystem';
20
20
  import { defineTouchScreenControlsComponent } from './extended/TouchScreenControls';
21
21
  import defineTagsComponent from './manual/Tags';
22
- import defineCreatedBy from './manual/CreatedBy';
23
22
  export * from './generated/index.gen';
24
23
  /* @__PURE__ */
25
24
  export const Transform = (engine) => defineTransformComponent(engine);
@@ -66,13 +65,11 @@ export const SyncComponents = (engine) => defineSyncComponent(engine);
66
65
  /**
67
66
  * @alpha
68
67
  */
68
+ /* @__PURE__ */
69
69
  export const NetworkEntity = (engine) => defineNetworkEntity(engine);
70
70
  /**
71
71
  * @alpha
72
72
  */
73
+ /* @__PURE__ */
73
74
  export const NetworkParent = (engine) => defineNetworkParent(engine);
74
- /**
75
- * @public
76
- */
77
- export const CreatedBy = (engine) => defineCreatedBy(engine);
78
75
  export { MediaState };
@@ -1,6 +1,5 @@
1
1
  import { LastWriteWinElementSetComponentDefinition, IEngine } from '../../engine';
2
2
  import { Entity } from '../../engine/entity';
3
- import type { ISchema } from '../../schemas/ISchema';
4
3
  import type { Vector3Type } from '../../schemas/custom/Vector3';
5
4
  /**
6
5
  * @public
@@ -25,10 +24,6 @@ export interface TransformComponentExtended extends TransformComponent {
25
24
  */
26
25
  localToWorldDirection(entity: Entity, localDirection: Vector3Type): Vector3Type;
27
26
  }
28
- /**
29
- * @public
30
- */
31
- export declare const COMPONENT_ID = 1;
32
27
  /**
33
28
  * @public
34
29
  */
@@ -51,10 +46,6 @@ export type TransformType = {
51
46
  };
52
47
  parent?: Entity;
53
48
  };
54
- /** @public */
55
- export declare const TRANSFORM_LENGTH = 44;
56
- /** @public */
57
- export declare const TransformSchema: ISchema<TransformType>;
58
49
  /**
59
50
  * @public
60
51
  */
@@ -3,12 +3,12 @@
3
3
  // getters via __importStar in CJS), so by the time methods are called all exports are available.
4
4
  import * as treeHelpers from '../../runtime/helpers/tree';
5
5
  /**
6
- * @public
6
+ * @internal
7
7
  */
8
8
  export const COMPONENT_ID = 1;
9
- /** @public */
9
+ /** @internal */
10
10
  export const TRANSFORM_LENGTH = 44;
11
- /** @public */
11
+ /** @internal */
12
12
  export const TransformSchema = {
13
13
  serialize(value, builder) {
14
14
  const ptr = builder.incrementWriteOffset(TRANSFORM_LENGTH);
@@ -13,7 +13,6 @@ export type { TagsComponentDefinitionExtended, TagsType } from './manual/Tags';
13
13
  export type { ISyncComponents, ISyncComponentsType } from './manual/SyncComponents';
14
14
  export type { INetowrkEntity, INetowrkEntityType } from './manual/NetworkEntity';
15
15
  export type { INetowrkParent, INetowrkParentType } from './manual/NetworkParent';
16
- export type { ICreatedBy, ICreatedByType } from './manual/CreatedBy';
17
16
  export type { InputModifierHelper, InputModifierComponentDefinitionExtended } from './extended/InputModifier';
18
17
  export type { LightSourceHelper, LightSourceComponentDefinitionExtended } from './extended/LightSource';
19
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, ProcessMessageResultType, PutComponentMessageBody } from '../serialization/crdt';
3
+ import { CrdtMessageBody, DeleteComponentMessageBody, PutComponentMessageBody } from '../serialization/crdt';
4
4
  import { Entity } from './entity';
5
5
  import { DeepReadonly, DeepReadonlySet } from './readonly';
6
6
  /**
@@ -70,58 +70,7 @@ 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;
117
73
  }
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;
125
74
  /**
126
75
  * @public
127
76
  */