@dcl/playground-assets 7.31.1-40604676255.commit-cb3ed84 → 7.31.1-40606969412.commit-24c05c3
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 +111 -3
- package/dist/beta.d.ts +111 -3
- package/dist/index.bundled.d.ts +111 -3
- package/dist/index.js +9 -9
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +111 -3
- package/etc/playground-assets.api.json +1001 -4
- package/etc/playground-assets.api.md +80 -3
- package/package.json +6 -5
|
@@ -136,6 +136,29 @@ export interface AudioStreamComponentDefinitionExtended extends LastWriteWinElem
|
|
|
136
136
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
// @public (undocumented)
|
|
140
|
+
export type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
141
|
+
|
|
142
|
+
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
143
|
+
//
|
|
144
|
+
// @public
|
|
145
|
+
export type AuthoritativePutComponentMessageBody = {
|
|
146
|
+
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
147
|
+
entityId: Entity;
|
|
148
|
+
componentId: number;
|
|
149
|
+
timestamp: number;
|
|
150
|
+
data: Uint8Array;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
// @public (undocumented)
|
|
154
|
+
export namespace AuthoritativePutComponentOperation {
|
|
155
|
+
const // (undocumented)
|
|
156
|
+
MESSAGE_HEADER_LENGTH = 16;
|
|
157
|
+
// (undocumented)
|
|
158
|
+
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
159
|
+
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
160
|
+
}
|
|
161
|
+
|
|
139
162
|
// @public (undocumented)
|
|
140
163
|
export const enum AvatarAnchorPointType {
|
|
141
164
|
// (undocumented)
|
|
@@ -308,12 +331,20 @@ export interface BaseComponent<T> {
|
|
|
308
331
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
309
332
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
310
333
|
get(entity: Entity): any;
|
|
334
|
+
getCrdtState(entity: Entity): {
|
|
335
|
+
data: Uint8Array;
|
|
336
|
+
timestamp: number;
|
|
337
|
+
} | null;
|
|
311
338
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
312
339
|
has(entity: Entity): boolean;
|
|
313
340
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
314
341
|
// (undocumented)
|
|
315
342
|
readonly schema: ISchema<T>;
|
|
316
343
|
updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
|
|
344
|
+
// (undocumented)
|
|
345
|
+
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
346
|
+
// (undocumented)
|
|
347
|
+
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
317
348
|
}
|
|
318
349
|
|
|
319
350
|
// @public (undocumented)
|
|
@@ -970,10 +1001,10 @@ export type Coords = {
|
|
|
970
1001
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
971
1002
|
|
|
972
1003
|
// @public (undocumented)
|
|
973
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1004
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
974
1005
|
|
|
975
1006
|
// @public (undocumented)
|
|
976
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1007
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
977
1008
|
|
|
978
1009
|
// @public
|
|
979
1010
|
export type CrdtMessageHeader = {
|
|
@@ -994,6 +1025,8 @@ export enum CrdtMessageType {
|
|
|
994
1025
|
// (undocumented)
|
|
995
1026
|
APPEND_VALUE = 4,
|
|
996
1027
|
// (undocumented)
|
|
1028
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
1029
|
+
// (undocumented)
|
|
997
1030
|
DELETE_COMPONENT = 2,
|
|
998
1031
|
// (undocumented)
|
|
999
1032
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -1002,7 +1035,7 @@ export enum CrdtMessageType {
|
|
|
1002
1035
|
// (undocumented)
|
|
1003
1036
|
DELETE_ENTITY_NETWORK = 7,
|
|
1004
1037
|
// (undocumented)
|
|
1005
|
-
MAX_MESSAGE_TYPE =
|
|
1038
|
+
MAX_MESSAGE_TYPE = 9,
|
|
1006
1039
|
// (undocumented)
|
|
1007
1040
|
PUT_COMPONENT = 1,
|
|
1008
1041
|
// (undocumented)
|
|
@@ -1014,6 +1047,11 @@ export enum CrdtMessageType {
|
|
|
1014
1047
|
// @public (undocumented)
|
|
1015
1048
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1016
1049
|
|
|
1050
|
+
// 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)
|
|
1051
|
+
//
|
|
1052
|
+
// @public (undocumented)
|
|
1053
|
+
export const CreatedBy: ICreatedBy;
|
|
1054
|
+
|
|
1017
1055
|
// @public (undocumented)
|
|
1018
1056
|
export function createEntityContainer(opts?: {
|
|
1019
1057
|
reservedStaticEntities: number;
|
|
@@ -1529,6 +1567,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1529
1567
|
// @public (undocumented)
|
|
1530
1568
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1531
1569
|
|
|
1570
|
+
// 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)
|
|
1571
|
+
//
|
|
1572
|
+
// @public (undocumented)
|
|
1573
|
+
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1574
|
+
|
|
1575
|
+
// 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)
|
|
1576
|
+
//
|
|
1577
|
+
// @public (undocumented)
|
|
1578
|
+
export interface ICreatedByType {
|
|
1579
|
+
// (undocumented)
|
|
1580
|
+
address: string;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1532
1583
|
// @public (undocumented)
|
|
1533
1584
|
export interface IEngine {
|
|
1534
1585
|
addEntity(): Entity;
|
|
@@ -1785,6 +1836,20 @@ export const enum InteractionType {
|
|
|
1785
1836
|
PROXIMITY = 1
|
|
1786
1837
|
}
|
|
1787
1838
|
|
|
1839
|
+
// 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)
|
|
1840
|
+
//
|
|
1841
|
+
// @public
|
|
1842
|
+
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1843
|
+
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1844
|
+
// (undocumented)
|
|
1845
|
+
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1846
|
+
// (undocumented)
|
|
1847
|
+
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1848
|
+
// (undocumented)
|
|
1849
|
+
dirtyIterator(): Iterable<Entity>;
|
|
1850
|
+
iterator(): Iterable<[Entity, any]>;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1788
1853
|
// @public (undocumented)
|
|
1789
1854
|
export interface ISchema<T = any> {
|
|
1790
1855
|
// (undocumented)
|
|
@@ -5829,6 +5894,7 @@ export type Transport = {
|
|
|
5829
5894
|
onmessage?(message: Uint8Array): void;
|
|
5830
5895
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
|
5831
5896
|
type?: string;
|
|
5897
|
+
allowReservedEntities?: boolean;
|
|
5832
5898
|
};
|
|
5833
5899
|
|
|
5834
5900
|
// @public (undocumented)
|
|
@@ -6164,6 +6230,17 @@ export interface UiVideoTexture {
|
|
|
6164
6230
|
// @public (undocumented)
|
|
6165
6231
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
6166
6232
|
|
|
6233
|
+
// 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)
|
|
6234
|
+
//
|
|
6235
|
+
// @public (undocumented)
|
|
6236
|
+
export type ValidateCallback<T> = (value: {
|
|
6237
|
+
entity: Entity;
|
|
6238
|
+
currentValue: T | undefined;
|
|
6239
|
+
newValue: T | undefined;
|
|
6240
|
+
senderAddress: string;
|
|
6241
|
+
createdBy: string;
|
|
6242
|
+
}) => boolean;
|
|
6243
|
+
|
|
6167
6244
|
// @public (undocumented)
|
|
6168
6245
|
export type ValueSetOptions<T> = {
|
|
6169
6246
|
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.31.1-
|
|
4
|
+
"version": "7.31.1-40606969412.commit-24c05c3",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.31.1-
|
|
8
|
-
"@dcl/sdk": "7.31.1-
|
|
7
|
+
"@dcl/js-runtime": "7.31.1-40606969412.commit-24c05c3",
|
|
8
|
+
"@dcl/sdk": "7.31.1-40606969412.commit-24c05c3"
|
|
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": "24c05c38dee2062d70b9bd7a6790b01cd6e98678"
|
|
36
37
|
}
|