@dcl/playground-assets 7.23.4-26106700711.commit-2afa13b → 7.23.4-26110424113.commit-4b40cec
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 +21 -101
- package/dist/beta.d.ts +21 -101
- package/dist/index.bundled.d.ts +21 -101
- package/dist/index.js +9 -9
- package/dist/playground/sdk/apis.d.ts +6 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +21 -101
- package/etc/playground-assets.api.json +344 -1174
- package/etc/playground-assets.api.md +15 -79
- package/package.json +5 -6
|
@@ -119,29 +119,6 @@ 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
|
-
|
|
145
122
|
// @public (undocumented)
|
|
146
123
|
export const enum AvatarAnchorPointType {
|
|
147
124
|
// (undocumented)
|
|
@@ -207,6 +184,14 @@ export const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>
|
|
|
207
184
|
// @public (undocumented)
|
|
208
185
|
export const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
|
209
186
|
|
|
187
|
+
// @public (undocumented)
|
|
188
|
+
export const enum AvatarEmoteMask {
|
|
189
|
+
// (undocumented)
|
|
190
|
+
AEM_FULL_BODY = 0,
|
|
191
|
+
// (undocumented)
|
|
192
|
+
AEM_UPPER_BODY = 1
|
|
193
|
+
}
|
|
194
|
+
|
|
210
195
|
// @public (undocumented)
|
|
211
196
|
export const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
212
197
|
|
|
@@ -259,20 +244,12 @@ export interface BaseComponent<T> {
|
|
|
259
244
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
260
245
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
261
246
|
get(entity: Entity): any;
|
|
262
|
-
getCrdtState(entity: Entity): {
|
|
263
|
-
data: Uint8Array;
|
|
264
|
-
timestamp: number;
|
|
265
|
-
} | null;
|
|
266
247
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
267
248
|
has(entity: Entity): boolean;
|
|
268
249
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
269
250
|
// (undocumented)
|
|
270
251
|
readonly schema: ISchema<T>;
|
|
271
252
|
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;
|
|
276
253
|
}
|
|
277
254
|
|
|
278
255
|
// @public (undocumented)
|
|
@@ -904,10 +881,10 @@ export type Coords = {
|
|
|
904
881
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
905
882
|
|
|
906
883
|
// @public (undocumented)
|
|
907
|
-
export type CrdtMessage = PutComponentMessage |
|
|
884
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
908
885
|
|
|
909
886
|
// @public (undocumented)
|
|
910
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
887
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
911
888
|
|
|
912
889
|
// @public
|
|
913
890
|
export type CrdtMessageHeader = {
|
|
@@ -928,8 +905,6 @@ export enum CrdtMessageType {
|
|
|
928
905
|
// (undocumented)
|
|
929
906
|
APPEND_VALUE = 4,
|
|
930
907
|
// (undocumented)
|
|
931
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
932
|
-
// (undocumented)
|
|
933
908
|
DELETE_COMPONENT = 2,
|
|
934
909
|
// (undocumented)
|
|
935
910
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -938,7 +913,7 @@ export enum CrdtMessageType {
|
|
|
938
913
|
// (undocumented)
|
|
939
914
|
DELETE_ENTITY_NETWORK = 7,
|
|
940
915
|
// (undocumented)
|
|
941
|
-
MAX_MESSAGE_TYPE =
|
|
916
|
+
MAX_MESSAGE_TYPE = 8,
|
|
942
917
|
// (undocumented)
|
|
943
918
|
PUT_COMPONENT = 1,
|
|
944
919
|
// (undocumented)
|
|
@@ -950,11 +925,6 @@ export enum CrdtMessageType {
|
|
|
950
925
|
// @public (undocumented)
|
|
951
926
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
952
927
|
|
|
953
|
-
// 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)
|
|
954
|
-
//
|
|
955
|
-
// @public (undocumented)
|
|
956
|
-
export const CreatedBy: ICreatedBy;
|
|
957
|
-
|
|
958
928
|
// @public (undocumented)
|
|
959
929
|
export function createEntityContainer(opts?: {
|
|
960
930
|
reservedStaticEntities: number;
|
|
@@ -1410,19 +1380,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1410
1380
|
// @public (undocumented)
|
|
1411
1381
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1412
1382
|
|
|
1413
|
-
// 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)
|
|
1414
|
-
//
|
|
1415
|
-
// @public (undocumented)
|
|
1416
|
-
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1417
|
-
|
|
1418
|
-
// 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)
|
|
1419
|
-
//
|
|
1420
|
-
// @public (undocumented)
|
|
1421
|
-
export interface ICreatedByType {
|
|
1422
|
-
// (undocumented)
|
|
1423
|
-
address: string;
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
1383
|
// @public (undocumented)
|
|
1427
1384
|
export interface IEngine {
|
|
1428
1385
|
addEntity(): Entity;
|
|
@@ -1671,20 +1628,6 @@ export const enum InteractionType {
|
|
|
1671
1628
|
PROXIMITY = 1
|
|
1672
1629
|
}
|
|
1673
1630
|
|
|
1674
|
-
// 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)
|
|
1675
|
-
//
|
|
1676
|
-
// @public
|
|
1677
|
-
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1678
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1679
|
-
// (undocumented)
|
|
1680
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1681
|
-
// (undocumented)
|
|
1682
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1683
|
-
// (undocumented)
|
|
1684
|
-
dirtyIterator(): Iterable<Entity>;
|
|
1685
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
1631
|
// @public (undocumented)
|
|
1689
1632
|
export interface ISchema<T = any> {
|
|
1690
1633
|
// (undocumented)
|
|
@@ -2610,6 +2553,9 @@ export namespace PBAvatarEquippedData {
|
|
|
2610
2553
|
|
|
2611
2554
|
// @public (undocumented)
|
|
2612
2555
|
export interface PBAvatarLocomotionSettings {
|
|
2556
|
+
doubleJumpHeight?: number | undefined;
|
|
2557
|
+
glidingFallingSpeed?: number | undefined;
|
|
2558
|
+
glidingSpeed?: number | undefined;
|
|
2613
2559
|
hardLandingCooldown?: number | undefined;
|
|
2614
2560
|
jogSpeed?: number | undefined;
|
|
2615
2561
|
jumpHeight?: number | undefined;
|
|
@@ -4096,6 +4042,7 @@ export namespace PBVideoPlayer {
|
|
|
4096
4042
|
export interface PBVirtualCamera {
|
|
4097
4043
|
// (undocumented)
|
|
4098
4044
|
defaultTransition?: CameraTransition | undefined;
|
|
4045
|
+
fov?: number | undefined;
|
|
4099
4046
|
// (undocumented)
|
|
4100
4047
|
lookAtEntity?: number | undefined;
|
|
4101
4048
|
}
|
|
@@ -5419,17 +5366,6 @@ export interface UiTransformProps {
|
|
|
5419
5366
|
// @public (undocumented)
|
|
5420
5367
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5421
5368
|
|
|
5422
|
-
// 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)
|
|
5423
|
-
//
|
|
5424
|
-
// @public (undocumented)
|
|
5425
|
-
export type ValidateCallback<T> = (value: {
|
|
5426
|
-
entity: Entity;
|
|
5427
|
-
currentValue: T | undefined;
|
|
5428
|
-
newValue: T | undefined;
|
|
5429
|
-
senderAddress: string;
|
|
5430
|
-
createdBy: string;
|
|
5431
|
-
}) => boolean;
|
|
5432
|
-
|
|
5433
5369
|
// @public (undocumented)
|
|
5434
5370
|
export type ValueSetOptions<T> = {
|
|
5435
5371
|
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.23.4-
|
|
4
|
+
"version": "7.23.4-26110424113.commit-4b40cec",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.23.4-
|
|
8
|
-
"@dcl/sdk": "7.23.4-
|
|
7
|
+
"@dcl/js-runtime": "7.23.4-26110424113.commit-4b40cec",
|
|
8
|
+
"@dcl/sdk": "7.23.4-26110424113.commit-4b40cec"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -25,13 +25,12 @@
|
|
|
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"
|
|
29
|
-
"server-logs": "sdk-commands sdk-server-logs"
|
|
28
|
+
"build-playground": "./../sdk-commands/dist/index.js build --production --emitDeclaration --customEntryPoint"
|
|
30
29
|
},
|
|
31
30
|
"tsdoc": {
|
|
32
31
|
"tsdocFlavor": "AEDoc"
|
|
33
32
|
},
|
|
34
33
|
"types": "./dist/index.d.ts",
|
|
35
34
|
"typings": "./dist/index.d.ts",
|
|
36
|
-
"commit": "
|
|
35
|
+
"commit": "4b40cecb57de72e7f621c501ee058b6a35e28873"
|
|
37
36
|
}
|