@dcl/playground-assets 7.24.5 → 7.24.6-29505165911.commit-d270434
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 +101 -3
- package/dist/beta.d.ts +101 -3
- package/dist/index.bundled.d.ts +101 -3
- package/dist/index.js +7 -7
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +101 -3
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +1001 -4
- package/etc/playground-assets.api.md +79 -3
- package/package.json +6 -5
|
@@ -119,6 +119,29 @@ export interface AudioStreamComponentDefinitionExtended extends LastWriteWinElem
|
|
|
119
119
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
// @public (undocumented)
|
|
123
|
+
export type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
124
|
+
|
|
125
|
+
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
126
|
+
//
|
|
127
|
+
// @public
|
|
128
|
+
export type AuthoritativePutComponentMessageBody = {
|
|
129
|
+
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
130
|
+
entityId: Entity;
|
|
131
|
+
componentId: number;
|
|
132
|
+
timestamp: number;
|
|
133
|
+
data: Uint8Array;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
// @public (undocumented)
|
|
137
|
+
export namespace AuthoritativePutComponentOperation {
|
|
138
|
+
const // (undocumented)
|
|
139
|
+
MESSAGE_HEADER_LENGTH = 16;
|
|
140
|
+
// (undocumented)
|
|
141
|
+
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
142
|
+
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
143
|
+
}
|
|
144
|
+
|
|
122
145
|
// @public (undocumented)
|
|
123
146
|
export const enum AvatarAnchorPointType {
|
|
124
147
|
// (undocumented)
|
|
@@ -243,12 +266,20 @@ export interface BaseComponent<T> {
|
|
|
243
266
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
244
267
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
245
268
|
get(entity: Entity): any;
|
|
269
|
+
getCrdtState(entity: Entity): {
|
|
270
|
+
data: Uint8Array;
|
|
271
|
+
timestamp: number;
|
|
272
|
+
} | null;
|
|
246
273
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
247
274
|
has(entity: Entity): boolean;
|
|
248
275
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
249
276
|
// (undocumented)
|
|
250
277
|
readonly schema: ISchema<T>;
|
|
251
278
|
updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
|
|
279
|
+
// (undocumented)
|
|
280
|
+
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
281
|
+
// (undocumented)
|
|
282
|
+
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
252
283
|
}
|
|
253
284
|
|
|
254
285
|
// @public (undocumented)
|
|
@@ -884,10 +915,10 @@ export type Coords = {
|
|
|
884
915
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
885
916
|
|
|
886
917
|
// @public (undocumented)
|
|
887
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
918
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
888
919
|
|
|
889
920
|
// @public (undocumented)
|
|
890
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
921
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
891
922
|
|
|
892
923
|
// @public
|
|
893
924
|
export type CrdtMessageHeader = {
|
|
@@ -908,6 +939,8 @@ export enum CrdtMessageType {
|
|
|
908
939
|
// (undocumented)
|
|
909
940
|
APPEND_VALUE = 4,
|
|
910
941
|
// (undocumented)
|
|
942
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
943
|
+
// (undocumented)
|
|
911
944
|
DELETE_COMPONENT = 2,
|
|
912
945
|
// (undocumented)
|
|
913
946
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -916,7 +949,7 @@ export enum CrdtMessageType {
|
|
|
916
949
|
// (undocumented)
|
|
917
950
|
DELETE_ENTITY_NETWORK = 7,
|
|
918
951
|
// (undocumented)
|
|
919
|
-
MAX_MESSAGE_TYPE =
|
|
952
|
+
MAX_MESSAGE_TYPE = 9,
|
|
920
953
|
// (undocumented)
|
|
921
954
|
PUT_COMPONENT = 1,
|
|
922
955
|
// (undocumented)
|
|
@@ -928,6 +961,11 @@ export enum CrdtMessageType {
|
|
|
928
961
|
// @public (undocumented)
|
|
929
962
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
930
963
|
|
|
964
|
+
// Warning: (ae-missing-release-tag) "CreatedBy" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
965
|
+
//
|
|
966
|
+
// @public (undocumented)
|
|
967
|
+
export const CreatedBy: ICreatedBy;
|
|
968
|
+
|
|
931
969
|
// @public (undocumented)
|
|
932
970
|
export function createEntityContainer(opts?: {
|
|
933
971
|
reservedStaticEntities: number;
|
|
@@ -1386,6 +1424,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1386
1424
|
// @public (undocumented)
|
|
1387
1425
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1388
1426
|
|
|
1427
|
+
// Warning: (ae-missing-release-tag) "ICreatedBy" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1428
|
+
//
|
|
1429
|
+
// @public (undocumented)
|
|
1430
|
+
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1431
|
+
|
|
1432
|
+
// Warning: (ae-missing-release-tag) "ICreatedByType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1433
|
+
//
|
|
1434
|
+
// @public (undocumented)
|
|
1435
|
+
export interface ICreatedByType {
|
|
1436
|
+
// (undocumented)
|
|
1437
|
+
address: string;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1389
1440
|
// @public (undocumented)
|
|
1390
1441
|
export interface IEngine {
|
|
1391
1442
|
addEntity(): Entity;
|
|
@@ -1639,6 +1690,20 @@ export const enum InteractionType {
|
|
|
1639
1690
|
PROXIMITY = 1
|
|
1640
1691
|
}
|
|
1641
1692
|
|
|
1693
|
+
// Warning: (ae-missing-release-tag) "InternalBaseComponent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1694
|
+
//
|
|
1695
|
+
// @public
|
|
1696
|
+
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1697
|
+
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1698
|
+
// (undocumented)
|
|
1699
|
+
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1700
|
+
// (undocumented)
|
|
1701
|
+
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1702
|
+
// (undocumented)
|
|
1703
|
+
dirtyIterator(): Iterable<Entity>;
|
|
1704
|
+
iterator(): Iterable<[Entity, any]>;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1642
1707
|
// @public (undocumented)
|
|
1643
1708
|
export interface ISchema<T = any> {
|
|
1644
1709
|
// (undocumented)
|
|
@@ -5398,6 +5463,17 @@ export interface UiTransformProps {
|
|
|
5398
5463
|
// @public (undocumented)
|
|
5399
5464
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5400
5465
|
|
|
5466
|
+
// Warning: (ae-missing-release-tag) "ValidateCallback" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
5467
|
+
//
|
|
5468
|
+
// @public (undocumented)
|
|
5469
|
+
export type ValidateCallback<T> = (value: {
|
|
5470
|
+
entity: Entity;
|
|
5471
|
+
currentValue: T | undefined;
|
|
5472
|
+
newValue: T | undefined;
|
|
5473
|
+
senderAddress: string;
|
|
5474
|
+
createdBy: string;
|
|
5475
|
+
}) => boolean;
|
|
5476
|
+
|
|
5401
5477
|
// @public (undocumented)
|
|
5402
5478
|
export type ValueSetOptions<T> = {
|
|
5403
5479
|
timestampFunction: (value: DeepReadonly<T>) => number;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.24.
|
|
4
|
+
"version": "7.24.6-29505165911.commit-d270434",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.24.
|
|
8
|
-
"@dcl/sdk": "7.24.
|
|
7
|
+
"@dcl/js-runtime": "7.24.6-29505165911.commit-d270434",
|
|
8
|
+
"@dcl/sdk": "7.24.6-29505165911.commit-d270434"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -25,12 +25,13 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "npm run build-playground && node_modules/.bin/api-extractor run",
|
|
27
27
|
"build-local": "npm run build-playground && node_modules/.bin/api-extractor run --local --verbose --diagnostics",
|
|
28
|
-
"build-playground": "./../sdk-commands/dist/index.js build --production --emitDeclaration --customEntryPoint"
|
|
28
|
+
"build-playground": "./../sdk-commands/dist/index.js build --production --emitDeclaration --customEntryPoint",
|
|
29
|
+
"server-logs": "sdk-commands sdk-server-logs"
|
|
29
30
|
},
|
|
30
31
|
"tsdoc": {
|
|
31
32
|
"tsdocFlavor": "AEDoc"
|
|
32
33
|
},
|
|
33
34
|
"types": "./dist/index.d.ts",
|
|
34
35
|
"typings": "./dist/index.d.ts",
|
|
35
|
-
"commit": "
|
|
36
|
+
"commit": "d270434c6d9ad4a12304c6d251d2bc5f14495cc0"
|
|
36
37
|
}
|