@dcl/playground-assets 7.20.2-22169778016.commit-030cbfe → 7.20.2-22231111352.commit-d2f6f0a
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.
- package/dist/alpha.d.ts +3 -101
- package/dist/beta.d.ts +3 -101
- package/dist/index.bundled.d.ts +3 -101
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +3 -101
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +4 -1001
- package/etc/playground-assets.api.md +3 -79
- package/package.json +5 -6
package/dist/alpha.d.ts
CHANGED
|
@@ -163,42 +163,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
163
163
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
/**
|
|
167
|
-
* @public
|
|
168
|
-
*/
|
|
169
|
-
export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Server authoritative message - identical to PutComponentMessageBody but with forced processing
|
|
173
|
-
* Min. length = header (8 bytes) + 16 bytes = 24 bytes
|
|
174
|
-
*
|
|
175
|
-
* @param entity - Uint32 number of the entity
|
|
176
|
-
* @param componentId - Uint32 number of id
|
|
177
|
-
* @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
|
|
178
|
-
* @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
export declare type AuthoritativePutComponentMessageBody = {
|
|
182
|
-
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
183
|
-
entityId: Entity;
|
|
184
|
-
componentId: number;
|
|
185
|
-
timestamp: number;
|
|
186
|
-
data: Uint8Array;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @public
|
|
191
|
-
*/
|
|
192
|
-
export declare namespace AuthoritativePutComponentOperation {
|
|
193
|
-
const MESSAGE_HEADER_LENGTH = 16;
|
|
194
|
-
/**
|
|
195
|
-
* Call this function for an optimal writing data passing the ByteBuffer
|
|
196
|
-
* already allocated
|
|
197
|
-
*/
|
|
198
|
-
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
199
|
-
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
166
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
203
167
|
/**
|
|
204
168
|
* @public
|
|
@@ -358,22 +322,6 @@ export declare interface BaseComponent<T> {
|
|
|
358
322
|
* If the value is undefined, the component was deleted.
|
|
359
323
|
*/
|
|
360
324
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
361
|
-
/**
|
|
362
|
-
* @public
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
366
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
367
|
-
/**
|
|
368
|
-
* Get the CRDT state for an entity (serialized data and timestamp)
|
|
369
|
-
* @param entity - Entity to get the CRDT state for
|
|
370
|
-
* @returns Object with serialized data and timestamp, or null if entity doesn't have the component
|
|
371
|
-
* @public
|
|
372
|
-
*/
|
|
373
|
-
getCrdtState(entity: Entity): {
|
|
374
|
-
data: Uint8Array;
|
|
375
|
-
timestamp: number;
|
|
376
|
-
} | null;
|
|
377
325
|
}
|
|
378
326
|
|
|
379
327
|
/** @public */
|
|
@@ -1582,12 +1530,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1582
1530
|
/**
|
|
1583
1531
|
* @public
|
|
1584
1532
|
*/
|
|
1585
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1533
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1586
1534
|
|
|
1587
1535
|
/**
|
|
1588
1536
|
* @public
|
|
1589
1537
|
*/
|
|
1590
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1538
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1591
1539
|
|
|
1592
1540
|
/**
|
|
1593
1541
|
* Min length = 8 bytes
|
|
@@ -1642,8 +1590,7 @@ export declare enum CrdtMessageType {
|
|
|
1642
1590
|
PUT_COMPONENT_NETWORK = 5,
|
|
1643
1591
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1644
1592
|
DELETE_ENTITY_NETWORK = 7,
|
|
1645
|
-
|
|
1646
|
-
MAX_MESSAGE_TYPE = 9
|
|
1593
|
+
MAX_MESSAGE_TYPE = 8
|
|
1647
1594
|
}
|
|
1648
1595
|
|
|
1649
1596
|
/**
|
|
@@ -1651,8 +1598,6 @@ export declare enum CrdtMessageType {
|
|
|
1651
1598
|
*/
|
|
1652
1599
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1653
1600
|
|
|
1654
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1655
|
-
|
|
1656
1601
|
/**
|
|
1657
1602
|
* @public
|
|
1658
1603
|
*/
|
|
@@ -2345,12 +2290,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2345
2290
|
|
|
2346
2291
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2347
2292
|
|
|
2348
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2349
|
-
|
|
2350
|
-
export declare interface ICreatedByType {
|
|
2351
|
-
address: string;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
2293
|
/**
|
|
2355
2294
|
* @public
|
|
2356
2295
|
*/
|
|
@@ -2794,35 +2733,6 @@ export declare type InstanceCompositeOptions = {
|
|
|
2794
2733
|
alreadyRequestedSrc?: Set<string>;
|
|
2795
2734
|
};
|
|
2796
2735
|
|
|
2797
|
-
/**
|
|
2798
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
2799
|
-
* This is not exposed to users, only for internal SDK operations
|
|
2800
|
-
*/
|
|
2801
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
2802
|
-
/**
|
|
2803
|
-
* @public
|
|
2804
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
2805
|
-
*/
|
|
2806
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
2807
|
-
/**
|
|
2808
|
-
* @public
|
|
2809
|
-
* Get the iterator to every entity has the component
|
|
2810
|
-
*/
|
|
2811
|
-
iterator(): Iterable<[Entity, any]>;
|
|
2812
|
-
/**
|
|
2813
|
-
* @public
|
|
2814
|
-
*/
|
|
2815
|
-
dirtyIterator(): Iterable<Entity>;
|
|
2816
|
-
/**
|
|
2817
|
-
* @public
|
|
2818
|
-
*/
|
|
2819
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
2820
|
-
/**
|
|
2821
|
-
* @public
|
|
2822
|
-
*/
|
|
2823
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
2824
|
-
}
|
|
2825
|
-
|
|
2826
2736
|
/**
|
|
2827
2737
|
* @public
|
|
2828
2738
|
*/
|
|
@@ -8794,14 +8704,6 @@ export declare interface UiTransformProps {
|
|
|
8794
8704
|
*/
|
|
8795
8705
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
8796
8706
|
|
|
8797
|
-
export declare type ValidateCallback<T> = (value: {
|
|
8798
|
-
entity: Entity;
|
|
8799
|
-
currentValue: T | undefined;
|
|
8800
|
-
newValue: T | undefined;
|
|
8801
|
-
senderAddress: string;
|
|
8802
|
-
createdBy: string;
|
|
8803
|
-
}) => boolean;
|
|
8804
|
-
|
|
8805
8707
|
/**
|
|
8806
8708
|
* @public
|
|
8807
8709
|
*/
|
package/dist/beta.d.ts
CHANGED
|
@@ -163,42 +163,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
163
163
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
/**
|
|
167
|
-
* @public
|
|
168
|
-
*/
|
|
169
|
-
export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Server authoritative message - identical to PutComponentMessageBody but with forced processing
|
|
173
|
-
* Min. length = header (8 bytes) + 16 bytes = 24 bytes
|
|
174
|
-
*
|
|
175
|
-
* @param entity - Uint32 number of the entity
|
|
176
|
-
* @param componentId - Uint32 number of id
|
|
177
|
-
* @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
|
|
178
|
-
* @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
export declare type AuthoritativePutComponentMessageBody = {
|
|
182
|
-
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
183
|
-
entityId: Entity;
|
|
184
|
-
componentId: number;
|
|
185
|
-
timestamp: number;
|
|
186
|
-
data: Uint8Array;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @public
|
|
191
|
-
*/
|
|
192
|
-
export declare namespace AuthoritativePutComponentOperation {
|
|
193
|
-
const MESSAGE_HEADER_LENGTH = 16;
|
|
194
|
-
/**
|
|
195
|
-
* Call this function for an optimal writing data passing the ByteBuffer
|
|
196
|
-
* already allocated
|
|
197
|
-
*/
|
|
198
|
-
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
199
|
-
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
166
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
203
167
|
/**
|
|
204
168
|
* @public
|
|
@@ -358,22 +322,6 @@ export declare interface BaseComponent<T> {
|
|
|
358
322
|
* If the value is undefined, the component was deleted.
|
|
359
323
|
*/
|
|
360
324
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
361
|
-
/**
|
|
362
|
-
* @public
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
366
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
367
|
-
/**
|
|
368
|
-
* Get the CRDT state for an entity (serialized data and timestamp)
|
|
369
|
-
* @param entity - Entity to get the CRDT state for
|
|
370
|
-
* @returns Object with serialized data and timestamp, or null if entity doesn't have the component
|
|
371
|
-
* @public
|
|
372
|
-
*/
|
|
373
|
-
getCrdtState(entity: Entity): {
|
|
374
|
-
data: Uint8Array;
|
|
375
|
-
timestamp: number;
|
|
376
|
-
} | null;
|
|
377
325
|
}
|
|
378
326
|
|
|
379
327
|
/** @public */
|
|
@@ -1582,12 +1530,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1582
1530
|
/**
|
|
1583
1531
|
* @public
|
|
1584
1532
|
*/
|
|
1585
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1533
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1586
1534
|
|
|
1587
1535
|
/**
|
|
1588
1536
|
* @public
|
|
1589
1537
|
*/
|
|
1590
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1538
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1591
1539
|
|
|
1592
1540
|
/**
|
|
1593
1541
|
* Min length = 8 bytes
|
|
@@ -1642,8 +1590,7 @@ export declare enum CrdtMessageType {
|
|
|
1642
1590
|
PUT_COMPONENT_NETWORK = 5,
|
|
1643
1591
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1644
1592
|
DELETE_ENTITY_NETWORK = 7,
|
|
1645
|
-
|
|
1646
|
-
MAX_MESSAGE_TYPE = 9
|
|
1593
|
+
MAX_MESSAGE_TYPE = 8
|
|
1647
1594
|
}
|
|
1648
1595
|
|
|
1649
1596
|
/**
|
|
@@ -1651,8 +1598,6 @@ export declare enum CrdtMessageType {
|
|
|
1651
1598
|
*/
|
|
1652
1599
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1653
1600
|
|
|
1654
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1655
|
-
|
|
1656
1601
|
/**
|
|
1657
1602
|
* @public
|
|
1658
1603
|
*/
|
|
@@ -2345,12 +2290,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2345
2290
|
|
|
2346
2291
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2347
2292
|
|
|
2348
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2349
|
-
|
|
2350
|
-
export declare interface ICreatedByType {
|
|
2351
|
-
address: string;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
2293
|
/**
|
|
2355
2294
|
* @public
|
|
2356
2295
|
*/
|
|
@@ -2785,35 +2724,6 @@ export declare type InstanceCompositeOptions = {
|
|
|
2785
2724
|
alreadyRequestedSrc?: Set<string>;
|
|
2786
2725
|
};
|
|
2787
2726
|
|
|
2788
|
-
/**
|
|
2789
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
2790
|
-
* This is not exposed to users, only for internal SDK operations
|
|
2791
|
-
*/
|
|
2792
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
2793
|
-
/**
|
|
2794
|
-
* @public
|
|
2795
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
2796
|
-
*/
|
|
2797
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
2798
|
-
/**
|
|
2799
|
-
* @public
|
|
2800
|
-
* Get the iterator to every entity has the component
|
|
2801
|
-
*/
|
|
2802
|
-
iterator(): Iterable<[Entity, any]>;
|
|
2803
|
-
/**
|
|
2804
|
-
* @public
|
|
2805
|
-
*/
|
|
2806
|
-
dirtyIterator(): Iterable<Entity>;
|
|
2807
|
-
/**
|
|
2808
|
-
* @public
|
|
2809
|
-
*/
|
|
2810
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
2811
|
-
/**
|
|
2812
|
-
* @public
|
|
2813
|
-
*/
|
|
2814
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
2815
|
-
}
|
|
2816
|
-
|
|
2817
2727
|
/**
|
|
2818
2728
|
* @public
|
|
2819
2729
|
*/
|
|
@@ -8761,14 +8671,6 @@ export declare interface UiTransformProps {
|
|
|
8761
8671
|
*/
|
|
8762
8672
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
8763
8673
|
|
|
8764
|
-
export declare type ValidateCallback<T> = (value: {
|
|
8765
|
-
entity: Entity;
|
|
8766
|
-
currentValue: T | undefined;
|
|
8767
|
-
newValue: T | undefined;
|
|
8768
|
-
senderAddress: string;
|
|
8769
|
-
createdBy: string;
|
|
8770
|
-
}) => boolean;
|
|
8771
|
-
|
|
8772
8674
|
/**
|
|
8773
8675
|
* @public
|
|
8774
8676
|
*/
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -163,42 +163,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
163
163
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
/**
|
|
167
|
-
* @public
|
|
168
|
-
*/
|
|
169
|
-
export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Server authoritative message - identical to PutComponentMessageBody but with forced processing
|
|
173
|
-
* Min. length = header (8 bytes) + 16 bytes = 24 bytes
|
|
174
|
-
*
|
|
175
|
-
* @param entity - Uint32 number of the entity
|
|
176
|
-
* @param componentId - Uint32 number of id
|
|
177
|
-
* @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
|
|
178
|
-
* @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
export declare type AuthoritativePutComponentMessageBody = {
|
|
182
|
-
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
183
|
-
entityId: Entity;
|
|
184
|
-
componentId: number;
|
|
185
|
-
timestamp: number;
|
|
186
|
-
data: Uint8Array;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @public
|
|
191
|
-
*/
|
|
192
|
-
export declare namespace AuthoritativePutComponentOperation {
|
|
193
|
-
const MESSAGE_HEADER_LENGTH = 16;
|
|
194
|
-
/**
|
|
195
|
-
* Call this function for an optimal writing data passing the ByteBuffer
|
|
196
|
-
* already allocated
|
|
197
|
-
*/
|
|
198
|
-
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
199
|
-
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
166
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
203
167
|
/**
|
|
204
168
|
* @public
|
|
@@ -358,22 +322,6 @@ export declare interface BaseComponent<T> {
|
|
|
358
322
|
* If the value is undefined, the component was deleted.
|
|
359
323
|
*/
|
|
360
324
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
361
|
-
/**
|
|
362
|
-
* @public
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
366
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
367
|
-
/**
|
|
368
|
-
* Get the CRDT state for an entity (serialized data and timestamp)
|
|
369
|
-
* @param entity - Entity to get the CRDT state for
|
|
370
|
-
* @returns Object with serialized data and timestamp, or null if entity doesn't have the component
|
|
371
|
-
* @public
|
|
372
|
-
*/
|
|
373
|
-
getCrdtState(entity: Entity): {
|
|
374
|
-
data: Uint8Array;
|
|
375
|
-
timestamp: number;
|
|
376
|
-
} | null;
|
|
377
325
|
}
|
|
378
326
|
|
|
379
327
|
/** @public */
|
|
@@ -1582,12 +1530,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1582
1530
|
/**
|
|
1583
1531
|
* @public
|
|
1584
1532
|
*/
|
|
1585
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1533
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1586
1534
|
|
|
1587
1535
|
/**
|
|
1588
1536
|
* @public
|
|
1589
1537
|
*/
|
|
1590
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1538
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1591
1539
|
|
|
1592
1540
|
/**
|
|
1593
1541
|
* Min length = 8 bytes
|
|
@@ -1642,8 +1590,7 @@ export declare enum CrdtMessageType {
|
|
|
1642
1590
|
PUT_COMPONENT_NETWORK = 5,
|
|
1643
1591
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1644
1592
|
DELETE_ENTITY_NETWORK = 7,
|
|
1645
|
-
|
|
1646
|
-
MAX_MESSAGE_TYPE = 9
|
|
1593
|
+
MAX_MESSAGE_TYPE = 8
|
|
1647
1594
|
}
|
|
1648
1595
|
|
|
1649
1596
|
/**
|
|
@@ -1651,8 +1598,6 @@ export declare enum CrdtMessageType {
|
|
|
1651
1598
|
*/
|
|
1652
1599
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1653
1600
|
|
|
1654
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1655
|
-
|
|
1656
1601
|
/**
|
|
1657
1602
|
* @public
|
|
1658
1603
|
*/
|
|
@@ -2345,12 +2290,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2345
2290
|
|
|
2346
2291
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2347
2292
|
|
|
2348
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2349
|
-
|
|
2350
|
-
export declare interface ICreatedByType {
|
|
2351
|
-
address: string;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
2293
|
/**
|
|
2355
2294
|
* @public
|
|
2356
2295
|
*/
|
|
@@ -2785,35 +2724,6 @@ export declare type InstanceCompositeOptions = {
|
|
|
2785
2724
|
alreadyRequestedSrc?: Set<string>;
|
|
2786
2725
|
};
|
|
2787
2726
|
|
|
2788
|
-
/**
|
|
2789
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
2790
|
-
* This is not exposed to users, only for internal SDK operations
|
|
2791
|
-
*/
|
|
2792
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
2793
|
-
/**
|
|
2794
|
-
* @public
|
|
2795
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
2796
|
-
*/
|
|
2797
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
2798
|
-
/**
|
|
2799
|
-
* @public
|
|
2800
|
-
* Get the iterator to every entity has the component
|
|
2801
|
-
*/
|
|
2802
|
-
iterator(): Iterable<[Entity, any]>;
|
|
2803
|
-
/**
|
|
2804
|
-
* @public
|
|
2805
|
-
*/
|
|
2806
|
-
dirtyIterator(): Iterable<Entity>;
|
|
2807
|
-
/**
|
|
2808
|
-
* @public
|
|
2809
|
-
*/
|
|
2810
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
2811
|
-
/**
|
|
2812
|
-
* @public
|
|
2813
|
-
*/
|
|
2814
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
2815
|
-
}
|
|
2816
|
-
|
|
2817
2727
|
/**
|
|
2818
2728
|
* @public
|
|
2819
2729
|
*/
|
|
@@ -8761,14 +8671,6 @@ export declare interface UiTransformProps {
|
|
|
8761
8671
|
*/
|
|
8762
8672
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
8763
8673
|
|
|
8764
|
-
export declare type ValidateCallback<T> = (value: {
|
|
8765
|
-
entity: Entity;
|
|
8766
|
-
currentValue: T | undefined;
|
|
8767
|
-
newValue: T | undefined;
|
|
8768
|
-
senderAddress: string;
|
|
8769
|
-
createdBy: string;
|
|
8770
|
-
}) => boolean;
|
|
8771
|
-
|
|
8772
8674
|
/**
|
|
8773
8675
|
* @public
|
|
8774
8676
|
*/
|