@dcl/playground-assets 7.24.4-28553021180.commit-e8ab68c → 7.24.4-28592331167.commit-697ce9e
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 +102 -18
- package/dist/beta.d.ts +102 -18
- package/dist/index.bundled.d.ts +102 -18
- package/dist/index.js +7 -7
- package/dist/playground/sdk/apis.d.ts +0 -6
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +102 -18
- package/etc/playground-assets.api.json +1000 -110
- package/etc/playground-assets.api.md +80 -14
- 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)
|
|
@@ -184,14 +207,6 @@ export const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>
|
|
|
184
207
|
// @public (undocumented)
|
|
185
208
|
export const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
|
186
209
|
|
|
187
|
-
// @public (undocumented)
|
|
188
|
-
export const enum AvatarEmoteMask {
|
|
189
|
-
// (undocumented)
|
|
190
|
-
AEM_FULL_BODY = 0,
|
|
191
|
-
// (undocumented)
|
|
192
|
-
AEM_UPPER_BODY = 1
|
|
193
|
-
}
|
|
194
|
-
|
|
195
210
|
// @public (undocumented)
|
|
196
211
|
export const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
197
212
|
|
|
@@ -204,8 +219,7 @@ export const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAva
|
|
|
204
219
|
// @public (undocumented)
|
|
205
220
|
export const enum AvatarModifierType {
|
|
206
221
|
AMT_DISABLE_PASSPORTS = 1,
|
|
207
|
-
AMT_HIDE_AVATARS = 0
|
|
208
|
-
AMT_HIDE_NAMETAGS = 2
|
|
222
|
+
AMT_HIDE_AVATARS = 0
|
|
209
223
|
}
|
|
210
224
|
|
|
211
225
|
// @public (undocumented)
|
|
@@ -245,12 +259,20 @@ export interface BaseComponent<T> {
|
|
|
245
259
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
246
260
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
247
261
|
get(entity: Entity): any;
|
|
262
|
+
getCrdtState(entity: Entity): {
|
|
263
|
+
data: Uint8Array;
|
|
264
|
+
timestamp: number;
|
|
265
|
+
} | null;
|
|
248
266
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
249
267
|
has(entity: Entity): boolean;
|
|
250
268
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
251
269
|
// (undocumented)
|
|
252
270
|
readonly schema: ISchema<T>;
|
|
253
271
|
updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
|
|
272
|
+
// (undocumented)
|
|
273
|
+
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
274
|
+
// (undocumented)
|
|
275
|
+
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
254
276
|
}
|
|
255
277
|
|
|
256
278
|
// @public (undocumented)
|
|
@@ -886,10 +908,10 @@ export type Coords = {
|
|
|
886
908
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
887
909
|
|
|
888
910
|
// @public (undocumented)
|
|
889
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
911
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
890
912
|
|
|
891
913
|
// @public (undocumented)
|
|
892
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
914
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
893
915
|
|
|
894
916
|
// @public
|
|
895
917
|
export type CrdtMessageHeader = {
|
|
@@ -910,6 +932,8 @@ export enum CrdtMessageType {
|
|
|
910
932
|
// (undocumented)
|
|
911
933
|
APPEND_VALUE = 4,
|
|
912
934
|
// (undocumented)
|
|
935
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
936
|
+
// (undocumented)
|
|
913
937
|
DELETE_COMPONENT = 2,
|
|
914
938
|
// (undocumented)
|
|
915
939
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -918,7 +942,7 @@ export enum CrdtMessageType {
|
|
|
918
942
|
// (undocumented)
|
|
919
943
|
DELETE_ENTITY_NETWORK = 7,
|
|
920
944
|
// (undocumented)
|
|
921
|
-
MAX_MESSAGE_TYPE =
|
|
945
|
+
MAX_MESSAGE_TYPE = 9,
|
|
922
946
|
// (undocumented)
|
|
923
947
|
PUT_COMPONENT = 1,
|
|
924
948
|
// (undocumented)
|
|
@@ -930,6 +954,11 @@ export enum CrdtMessageType {
|
|
|
930
954
|
// @public (undocumented)
|
|
931
955
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
932
956
|
|
|
957
|
+
// 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)
|
|
958
|
+
//
|
|
959
|
+
// @public (undocumented)
|
|
960
|
+
export const CreatedBy: ICreatedBy;
|
|
961
|
+
|
|
933
962
|
// @public (undocumented)
|
|
934
963
|
export function createEntityContainer(opts?: {
|
|
935
964
|
reservedStaticEntities: number;
|
|
@@ -1388,6 +1417,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1388
1417
|
// @public (undocumented)
|
|
1389
1418
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1390
1419
|
|
|
1420
|
+
// 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)
|
|
1421
|
+
//
|
|
1422
|
+
// @public (undocumented)
|
|
1423
|
+
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1424
|
+
|
|
1425
|
+
// 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)
|
|
1426
|
+
//
|
|
1427
|
+
// @public (undocumented)
|
|
1428
|
+
export interface ICreatedByType {
|
|
1429
|
+
// (undocumented)
|
|
1430
|
+
address: string;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1391
1433
|
// @public (undocumented)
|
|
1392
1434
|
export interface IEngine {
|
|
1393
1435
|
addEntity(): Entity;
|
|
@@ -1636,6 +1678,20 @@ export const enum InteractionType {
|
|
|
1636
1678
|
PROXIMITY = 1
|
|
1637
1679
|
}
|
|
1638
1680
|
|
|
1681
|
+
// 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)
|
|
1682
|
+
//
|
|
1683
|
+
// @public
|
|
1684
|
+
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1685
|
+
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1686
|
+
// (undocumented)
|
|
1687
|
+
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1688
|
+
// (undocumented)
|
|
1689
|
+
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1690
|
+
// (undocumented)
|
|
1691
|
+
dirtyIterator(): Iterable<Entity>;
|
|
1692
|
+
iterator(): Iterable<[Entity, any]>;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1639
1695
|
// @public (undocumented)
|
|
1640
1696
|
export interface ISchema<T = any> {
|
|
1641
1697
|
// (undocumented)
|
|
@@ -4051,7 +4107,6 @@ export namespace PBVideoPlayer {
|
|
|
4051
4107
|
export interface PBVirtualCamera {
|
|
4052
4108
|
// (undocumented)
|
|
4053
4109
|
defaultTransition?: CameraTransition | undefined;
|
|
4054
|
-
fov?: number | undefined;
|
|
4055
4110
|
// (undocumented)
|
|
4056
4111
|
lookAtEntity?: number | undefined;
|
|
4057
4112
|
}
|
|
@@ -5388,6 +5443,17 @@ export interface UiTransformProps {
|
|
|
5388
5443
|
// @public (undocumented)
|
|
5389
5444
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5390
5445
|
|
|
5446
|
+
// 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)
|
|
5447
|
+
//
|
|
5448
|
+
// @public (undocumented)
|
|
5449
|
+
export type ValidateCallback<T> = (value: {
|
|
5450
|
+
entity: Entity;
|
|
5451
|
+
currentValue: T | undefined;
|
|
5452
|
+
newValue: T | undefined;
|
|
5453
|
+
senderAddress: string;
|
|
5454
|
+
createdBy: string;
|
|
5455
|
+
}) => boolean;
|
|
5456
|
+
|
|
5391
5457
|
// @public (undocumented)
|
|
5392
5458
|
export type ValueSetOptions<T> = {
|
|
5393
5459
|
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-
|
|
4
|
+
"version": "7.24.4-28592331167.commit-697ce9e",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.24.4-
|
|
8
|
-
"@dcl/sdk": "7.24.4-
|
|
7
|
+
"@dcl/js-runtime": "7.24.4-28592331167.commit-697ce9e",
|
|
8
|
+
"@dcl/sdk": "7.24.4-28592331167.commit-697ce9e"
|
|
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": "697ce9e4c717549d30c0a0bc927a173df5d0febf"
|
|
36
37
|
}
|