@dcl/playground-assets 7.20.2-22104870534.commit-0df3cc0 → 7.20.2-22169778016.commit-030cbfe
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 -137
- package/dist/beta.d.ts +102 -137
- package/dist/index.bundled.d.ts +102 -137
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +102 -137
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +2092 -2529
- package/etc/playground-assets.api.md +79 -94
- package/package.json +6 -5
|
@@ -70,31 +70,6 @@ export const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
70
70
|
// @public (undocumented)
|
|
71
71
|
export type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
72
72
|
|
|
73
|
-
// Warning: (ae-missing-release-tag) "AudioAnalysis" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
74
|
-
//
|
|
75
|
-
// @public (undocumented)
|
|
76
|
-
export const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
77
|
-
|
|
78
|
-
// Warning: (ae-missing-release-tag) "AudioAnalysisComponentDefinitionExtended" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
79
|
-
//
|
|
80
|
-
// @public (undocumented)
|
|
81
|
-
export interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
82
|
-
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
83
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
84
|
-
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
85
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
86
|
-
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
87
|
-
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// Warning: (ae-missing-release-tag) "AudioAnalysisView" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
91
|
-
//
|
|
92
|
-
// @public
|
|
93
|
-
export type AudioAnalysisView = {
|
|
94
|
-
amplitude: number;
|
|
95
|
-
bands: number[];
|
|
96
|
-
};
|
|
97
|
-
|
|
98
73
|
// @public (undocumented)
|
|
99
74
|
export const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
100
75
|
|
|
@@ -119,6 +94,29 @@ export interface AudioStreamComponentDefinitionExtended extends LastWriteWinElem
|
|
|
119
94
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
120
95
|
}
|
|
121
96
|
|
|
97
|
+
// @public (undocumented)
|
|
98
|
+
export type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
99
|
+
|
|
100
|
+
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
101
|
+
//
|
|
102
|
+
// @public
|
|
103
|
+
export type AuthoritativePutComponentMessageBody = {
|
|
104
|
+
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
105
|
+
entityId: Entity;
|
|
106
|
+
componentId: number;
|
|
107
|
+
timestamp: number;
|
|
108
|
+
data: Uint8Array;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// @public (undocumented)
|
|
112
|
+
export namespace AuthoritativePutComponentOperation {
|
|
113
|
+
const // (undocumented)
|
|
114
|
+
MESSAGE_HEADER_LENGTH = 16;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
117
|
+
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
118
|
+
}
|
|
119
|
+
|
|
122
120
|
// @public (undocumented)
|
|
123
121
|
export const enum AvatarAnchorPointType {
|
|
124
122
|
// (undocumented)
|
|
@@ -187,9 +185,6 @@ export const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmo
|
|
|
187
185
|
// @public (undocumented)
|
|
188
186
|
export const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
189
187
|
|
|
190
|
-
// @public (undocumented)
|
|
191
|
-
export const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
192
|
-
|
|
193
188
|
// @public (undocumented)
|
|
194
189
|
export const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
195
190
|
|
|
@@ -236,12 +231,20 @@ export interface BaseComponent<T> {
|
|
|
236
231
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
237
232
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
238
233
|
get(entity: Entity): any;
|
|
234
|
+
getCrdtState(entity: Entity): {
|
|
235
|
+
data: Uint8Array;
|
|
236
|
+
timestamp: number;
|
|
237
|
+
} | null;
|
|
239
238
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
240
239
|
has(entity: Entity): boolean;
|
|
241
240
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
242
241
|
// (undocumented)
|
|
243
242
|
readonly schema: ISchema<T>;
|
|
244
243
|
updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
|
|
244
|
+
// (undocumented)
|
|
245
|
+
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
246
|
+
// (undocumented)
|
|
247
|
+
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
245
248
|
}
|
|
246
249
|
|
|
247
250
|
// @public (undocumented)
|
|
@@ -672,7 +675,6 @@ export const componentDefinitionByName: {
|
|
|
672
675
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
673
676
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
674
677
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
675
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
676
678
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
677
679
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
678
680
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -680,7 +682,6 @@ export const componentDefinitionByName: {
|
|
|
680
682
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
681
683
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
682
684
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
683
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
684
685
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
685
686
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
686
687
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -854,10 +855,10 @@ export type Coords = {
|
|
|
854
855
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
855
856
|
|
|
856
857
|
// @public (undocumented)
|
|
857
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
858
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
858
859
|
|
|
859
860
|
// @public (undocumented)
|
|
860
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
861
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
861
862
|
|
|
862
863
|
// @public
|
|
863
864
|
export type CrdtMessageHeader = {
|
|
@@ -878,6 +879,8 @@ export enum CrdtMessageType {
|
|
|
878
879
|
// (undocumented)
|
|
879
880
|
APPEND_VALUE = 4,
|
|
880
881
|
// (undocumented)
|
|
882
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
883
|
+
// (undocumented)
|
|
881
884
|
DELETE_COMPONENT = 2,
|
|
882
885
|
// (undocumented)
|
|
883
886
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -886,7 +889,7 @@ export enum CrdtMessageType {
|
|
|
886
889
|
// (undocumented)
|
|
887
890
|
DELETE_ENTITY_NETWORK = 7,
|
|
888
891
|
// (undocumented)
|
|
889
|
-
MAX_MESSAGE_TYPE =
|
|
892
|
+
MAX_MESSAGE_TYPE = 9,
|
|
890
893
|
// (undocumented)
|
|
891
894
|
PUT_COMPONENT = 1,
|
|
892
895
|
// (undocumented)
|
|
@@ -898,6 +901,11 @@ export enum CrdtMessageType {
|
|
|
898
901
|
// @public (undocumented)
|
|
899
902
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
900
903
|
|
|
904
|
+
// 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)
|
|
905
|
+
//
|
|
906
|
+
// @public (undocumented)
|
|
907
|
+
export const CreatedBy: ICreatedBy;
|
|
908
|
+
|
|
901
909
|
// @public (undocumented)
|
|
902
910
|
export function createEntityContainer(opts?: {
|
|
903
911
|
reservedStaticEntities: number;
|
|
@@ -1333,6 +1341,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1333
1341
|
// @public (undocumented)
|
|
1334
1342
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1335
1343
|
|
|
1344
|
+
// 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)
|
|
1345
|
+
//
|
|
1346
|
+
// @public (undocumented)
|
|
1347
|
+
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1348
|
+
|
|
1349
|
+
// 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)
|
|
1350
|
+
//
|
|
1351
|
+
// @public (undocumented)
|
|
1352
|
+
export interface ICreatedByType {
|
|
1353
|
+
// (undocumented)
|
|
1354
|
+
address: string;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1336
1357
|
// @public (undocumented)
|
|
1337
1358
|
export interface IEngine {
|
|
1338
1359
|
addEntity(): Entity;
|
|
@@ -1529,8 +1550,6 @@ export const enum InputAction {
|
|
|
1529
1550
|
// (undocumented)
|
|
1530
1551
|
IA_LEFT = 7,
|
|
1531
1552
|
// (undocumented)
|
|
1532
|
-
IA_MODIFIER = 14,
|
|
1533
|
-
// (undocumented)
|
|
1534
1553
|
IA_POINTER = 0,
|
|
1535
1554
|
// (undocumented)
|
|
1536
1555
|
IA_PRIMARY = 1,
|
|
@@ -1574,6 +1593,20 @@ export type InstanceCompositeOptions = {
|
|
|
1574
1593
|
alreadyRequestedSrc?: Set<string>;
|
|
1575
1594
|
};
|
|
1576
1595
|
|
|
1596
|
+
// 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)
|
|
1597
|
+
//
|
|
1598
|
+
// @public
|
|
1599
|
+
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1600
|
+
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1601
|
+
// (undocumented)
|
|
1602
|
+
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1603
|
+
// (undocumented)
|
|
1604
|
+
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1605
|
+
// (undocumented)
|
|
1606
|
+
dirtyIterator(): Iterable<Entity>;
|
|
1607
|
+
iterator(): Iterable<[Entity, any]>;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1577
1610
|
// @public (undocumented)
|
|
1578
1611
|
export interface ISchema<T = any> {
|
|
1579
1612
|
// (undocumented)
|
|
@@ -2271,46 +2304,6 @@ export namespace PBAssetLoadLoadingState {
|
|
|
2271
2304
|
export function encode(message: PBAssetLoadLoadingState, writer?: _m0.Writer): _m0.Writer;
|
|
2272
2305
|
}
|
|
2273
2306
|
|
|
2274
|
-
// @public (undocumented)
|
|
2275
|
-
export interface PBAudioAnalysis {
|
|
2276
|
-
amplitude: number;
|
|
2277
|
-
amplitudeGain?: number | undefined;
|
|
2278
|
-
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
2279
|
-
band0: number;
|
|
2280
|
-
// (undocumented)
|
|
2281
|
-
band1: number;
|
|
2282
|
-
// (undocumented)
|
|
2283
|
-
band2: number;
|
|
2284
|
-
// (undocumented)
|
|
2285
|
-
band3: number;
|
|
2286
|
-
// (undocumented)
|
|
2287
|
-
band4: number;
|
|
2288
|
-
// (undocumented)
|
|
2289
|
-
band5: number;
|
|
2290
|
-
// (undocumented)
|
|
2291
|
-
band6: number;
|
|
2292
|
-
// (undocumented)
|
|
2293
|
-
band7: number;
|
|
2294
|
-
bandsGain?: number | undefined;
|
|
2295
|
-
mode: PBAudioAnalysisMode;
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
// @public (undocumented)
|
|
2299
|
-
export namespace PBAudioAnalysis {
|
|
2300
|
-
// (undocumented)
|
|
2301
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
2302
|
-
// (undocumented)
|
|
2303
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
// @public (undocumented)
|
|
2307
|
-
export const enum PBAudioAnalysisMode {
|
|
2308
|
-
// (undocumented)
|
|
2309
|
-
MODE_LOGARITHMIC = 1,
|
|
2310
|
-
// (undocumented)
|
|
2311
|
-
MODE_RAW = 0
|
|
2312
|
-
}
|
|
2313
|
-
|
|
2314
2307
|
// @public (undocumented)
|
|
2315
2308
|
export interface PBAudioEvent {
|
|
2316
2309
|
// (undocumented)
|
|
@@ -2432,24 +2425,6 @@ export namespace PBAvatarEquippedData {
|
|
|
2432
2425
|
export function encode(message: PBAvatarEquippedData, writer?: _m0.Writer): _m0.Writer;
|
|
2433
2426
|
}
|
|
2434
2427
|
|
|
2435
|
-
// @public (undocumented)
|
|
2436
|
-
export interface PBAvatarLocomotionSettings {
|
|
2437
|
-
hardLandingCooldown?: number | undefined;
|
|
2438
|
-
jogSpeed?: number | undefined;
|
|
2439
|
-
jumpHeight?: number | undefined;
|
|
2440
|
-
runJumpHeight?: number | undefined;
|
|
2441
|
-
runSpeed?: number | undefined;
|
|
2442
|
-
walkSpeed?: number | undefined;
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
// @public (undocumented)
|
|
2446
|
-
export namespace PBAvatarLocomotionSettings {
|
|
2447
|
-
// (undocumented)
|
|
2448
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
2449
|
-
// (undocumented)
|
|
2450
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
2451
|
-
}
|
|
2452
|
-
|
|
2453
2428
|
// @public (undocumented)
|
|
2454
2429
|
export interface PBAvatarModifierArea {
|
|
2455
2430
|
area: PBVector3 | undefined;
|
|
@@ -3692,7 +3667,6 @@ export namespace PBVideoPlayer {
|
|
|
3692
3667
|
export interface PBVirtualCamera {
|
|
3693
3668
|
// (undocumented)
|
|
3694
3669
|
defaultTransition?: CameraTransition | undefined;
|
|
3695
|
-
fov?: number | undefined;
|
|
3696
3670
|
// (undocumented)
|
|
3697
3671
|
lookAtEntity?: number | undefined;
|
|
3698
3672
|
}
|
|
@@ -4951,6 +4925,17 @@ export interface UiTransformProps {
|
|
|
4951
4925
|
// @public (undocumented)
|
|
4952
4926
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
4953
4927
|
|
|
4928
|
+
// 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)
|
|
4929
|
+
//
|
|
4930
|
+
// @public (undocumented)
|
|
4931
|
+
export type ValidateCallback<T> = (value: {
|
|
4932
|
+
entity: Entity;
|
|
4933
|
+
currentValue: T | undefined;
|
|
4934
|
+
newValue: T | undefined;
|
|
4935
|
+
senderAddress: string;
|
|
4936
|
+
createdBy: string;
|
|
4937
|
+
}) => boolean;
|
|
4938
|
+
|
|
4954
4939
|
// @public (undocumented)
|
|
4955
4940
|
export type ValueSetOptions<T> = {
|
|
4956
4941
|
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.20.2-
|
|
4
|
+
"version": "7.20.2-22169778016.commit-030cbfe",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.20.2-
|
|
8
|
-
"@dcl/sdk": "7.20.2-
|
|
7
|
+
"@dcl/js-runtime": "7.20.2-22169778016.commit-030cbfe",
|
|
8
|
+
"@dcl/sdk": "7.20.2-22169778016.commit-030cbfe"
|
|
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": "030cbfee8a40495d9916ade20280282e63e3cc8b"
|
|
36
37
|
}
|