@dcl/playground-assets 7.22.6-25321038582.commit-63ddb3f → 7.22.6-25375246959.commit-ec25d50
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 +83 -102
- package/dist/beta.d.ts +83 -102
- package/dist/index.bundled.d.ts +83 -102
- package/dist/index.js +9 -9
- package/dist/playground/sdk/apis.d.ts +30 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +83 -102
- package/etc/playground-assets.api.json +1476 -1440
- package/etc/playground-assets.api.md +70 -79
- package/package.json +5 -6
|
@@ -70,6 +70,9 @@ export const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
70
70
|
// @public (undocumented)
|
|
71
71
|
export type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
72
72
|
|
|
73
|
+
// @public (undocumented)
|
|
74
|
+
export const AudioAnalysis: LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>;
|
|
75
|
+
|
|
73
76
|
// @public (undocumented)
|
|
74
77
|
export const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
75
78
|
|
|
@@ -94,29 +97,6 @@ export interface AudioStreamComponentDefinitionExtended extends LastWriteWinElem
|
|
|
94
97
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
95
98
|
}
|
|
96
99
|
|
|
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
|
-
|
|
120
100
|
// @public (undocumented)
|
|
121
101
|
export const enum AvatarAnchorPointType {
|
|
122
102
|
// (undocumented)
|
|
@@ -185,6 +165,9 @@ export const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmo
|
|
|
185
165
|
// @public (undocumented)
|
|
186
166
|
export const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
187
167
|
|
|
168
|
+
// @public (undocumented)
|
|
169
|
+
export const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
170
|
+
|
|
188
171
|
// @public (undocumented)
|
|
189
172
|
export const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
190
173
|
|
|
@@ -231,20 +214,12 @@ export interface BaseComponent<T> {
|
|
|
231
214
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
232
215
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
233
216
|
get(entity: Entity): any;
|
|
234
|
-
getCrdtState(entity: Entity): {
|
|
235
|
-
data: Uint8Array;
|
|
236
|
-
timestamp: number;
|
|
237
|
-
} | null;
|
|
238
217
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
239
218
|
has(entity: Entity): boolean;
|
|
240
219
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
241
220
|
// (undocumented)
|
|
242
221
|
readonly schema: ISchema<T>;
|
|
243
222
|
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;
|
|
248
223
|
}
|
|
249
224
|
|
|
250
225
|
// @public (undocumented)
|
|
@@ -691,6 +666,7 @@ export const componentDefinitionByName: {
|
|
|
691
666
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
692
667
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
693
668
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
669
|
+
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
694
670
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
695
671
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
696
672
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -698,6 +674,7 @@ export const componentDefinitionByName: {
|
|
|
698
674
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
699
675
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
700
676
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
677
|
+
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
701
678
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
702
679
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
703
680
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -874,10 +851,10 @@ export type Coords = {
|
|
|
874
851
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
875
852
|
|
|
876
853
|
// @public (undocumented)
|
|
877
|
-
export type CrdtMessage = PutComponentMessage |
|
|
854
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
878
855
|
|
|
879
856
|
// @public (undocumented)
|
|
880
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
857
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
881
858
|
|
|
882
859
|
// @public
|
|
883
860
|
export type CrdtMessageHeader = {
|
|
@@ -898,8 +875,6 @@ export enum CrdtMessageType {
|
|
|
898
875
|
// (undocumented)
|
|
899
876
|
APPEND_VALUE = 4,
|
|
900
877
|
// (undocumented)
|
|
901
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
902
|
-
// (undocumented)
|
|
903
878
|
DELETE_COMPONENT = 2,
|
|
904
879
|
// (undocumented)
|
|
905
880
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -908,7 +883,7 @@ export enum CrdtMessageType {
|
|
|
908
883
|
// (undocumented)
|
|
909
884
|
DELETE_ENTITY_NETWORK = 7,
|
|
910
885
|
// (undocumented)
|
|
911
|
-
MAX_MESSAGE_TYPE =
|
|
886
|
+
MAX_MESSAGE_TYPE = 8,
|
|
912
887
|
// (undocumented)
|
|
913
888
|
PUT_COMPONENT = 1,
|
|
914
889
|
// (undocumented)
|
|
@@ -920,11 +895,6 @@ export enum CrdtMessageType {
|
|
|
920
895
|
// @public (undocumented)
|
|
921
896
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
922
897
|
|
|
923
|
-
// 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)
|
|
924
|
-
//
|
|
925
|
-
// @public (undocumented)
|
|
926
|
-
export const CreatedBy: ICreatedBy;
|
|
927
|
-
|
|
928
898
|
// @public (undocumented)
|
|
929
899
|
export function createEntityContainer(opts?: {
|
|
930
900
|
reservedStaticEntities: number;
|
|
@@ -1380,19 +1350,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1380
1350
|
// @public (undocumented)
|
|
1381
1351
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1382
1352
|
|
|
1383
|
-
// 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)
|
|
1384
|
-
//
|
|
1385
|
-
// @public (undocumented)
|
|
1386
|
-
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1387
|
-
|
|
1388
|
-
// 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)
|
|
1389
|
-
//
|
|
1390
|
-
// @public (undocumented)
|
|
1391
|
-
export interface ICreatedByType {
|
|
1392
|
-
// (undocumented)
|
|
1393
|
-
address: string;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
1353
|
// @public (undocumented)
|
|
1397
1354
|
export interface IEngine {
|
|
1398
1355
|
addEntity(): Entity;
|
|
@@ -1588,6 +1545,7 @@ export const enum InputAction {
|
|
|
1588
1545
|
IA_JUMP = 8,
|
|
1589
1546
|
// (undocumented)
|
|
1590
1547
|
IA_LEFT = 7,
|
|
1548
|
+
IA_MODIFIER = 14,
|
|
1591
1549
|
// (undocumented)
|
|
1592
1550
|
IA_POINTER = 0,
|
|
1593
1551
|
// (undocumented)
|
|
@@ -1640,20 +1598,6 @@ export const enum InteractionType {
|
|
|
1640
1598
|
PROXIMITY = 1
|
|
1641
1599
|
}
|
|
1642
1600
|
|
|
1643
|
-
// 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)
|
|
1644
|
-
//
|
|
1645
|
-
// @public
|
|
1646
|
-
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1647
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1648
|
-
// (undocumented)
|
|
1649
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1650
|
-
// (undocumented)
|
|
1651
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1652
|
-
// (undocumented)
|
|
1653
|
-
dirtyIterator(): Iterable<Entity>;
|
|
1654
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
1601
|
// @public (undocumented)
|
|
1658
1602
|
export interface ISchema<T = any> {
|
|
1659
1603
|
// (undocumented)
|
|
@@ -2416,6 +2360,46 @@ export namespace PBAssetLoadLoadingState {
|
|
|
2416
2360
|
export function encode(message: PBAssetLoadLoadingState, writer?: _m0.Writer): _m0.Writer;
|
|
2417
2361
|
}
|
|
2418
2362
|
|
|
2363
|
+
// @public (undocumented)
|
|
2364
|
+
export interface PBAudioAnalysis {
|
|
2365
|
+
amplitude: number;
|
|
2366
|
+
amplitudeGain?: number | undefined;
|
|
2367
|
+
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
2368
|
+
band0: number;
|
|
2369
|
+
// (undocumented)
|
|
2370
|
+
band1: number;
|
|
2371
|
+
// (undocumented)
|
|
2372
|
+
band2: number;
|
|
2373
|
+
// (undocumented)
|
|
2374
|
+
band3: number;
|
|
2375
|
+
// (undocumented)
|
|
2376
|
+
band4: number;
|
|
2377
|
+
// (undocumented)
|
|
2378
|
+
band5: number;
|
|
2379
|
+
// (undocumented)
|
|
2380
|
+
band6: number;
|
|
2381
|
+
// (undocumented)
|
|
2382
|
+
band7: number;
|
|
2383
|
+
bandsGain?: number | undefined;
|
|
2384
|
+
mode: PBAudioAnalysisMode;
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
// @public (undocumented)
|
|
2388
|
+
export namespace PBAudioAnalysis {
|
|
2389
|
+
// (undocumented)
|
|
2390
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
2391
|
+
// (undocumented)
|
|
2392
|
+
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
// @public (undocumented)
|
|
2396
|
+
export const enum PBAudioAnalysisMode {
|
|
2397
|
+
// (undocumented)
|
|
2398
|
+
MODE_LOGARITHMIC = 1,
|
|
2399
|
+
// (undocumented)
|
|
2400
|
+
MODE_RAW = 0
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2419
2403
|
// @public (undocumented)
|
|
2420
2404
|
export interface PBAudioEvent {
|
|
2421
2405
|
// (undocumented)
|
|
@@ -2537,6 +2521,24 @@ export namespace PBAvatarEquippedData {
|
|
|
2537
2521
|
export function encode(message: PBAvatarEquippedData, writer?: _m0.Writer): _m0.Writer;
|
|
2538
2522
|
}
|
|
2539
2523
|
|
|
2524
|
+
// @public (undocumented)
|
|
2525
|
+
export interface PBAvatarLocomotionSettings {
|
|
2526
|
+
hardLandingCooldown?: number | undefined;
|
|
2527
|
+
jogSpeed?: number | undefined;
|
|
2528
|
+
jumpHeight?: number | undefined;
|
|
2529
|
+
runJumpHeight?: number | undefined;
|
|
2530
|
+
runSpeed?: number | undefined;
|
|
2531
|
+
walkSpeed?: number | undefined;
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
// @public (undocumented)
|
|
2535
|
+
export namespace PBAvatarLocomotionSettings {
|
|
2536
|
+
// (undocumented)
|
|
2537
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
2538
|
+
// (undocumented)
|
|
2539
|
+
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2540
2542
|
// @public (undocumented)
|
|
2541
2543
|
export interface PBAvatarModifierArea {
|
|
2542
2544
|
area: PBVector3 | undefined;
|
|
@@ -5330,17 +5332,6 @@ export interface UiTransformProps {
|
|
|
5330
5332
|
// @public (undocumented)
|
|
5331
5333
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5332
5334
|
|
|
5333
|
-
// 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)
|
|
5334
|
-
//
|
|
5335
|
-
// @public (undocumented)
|
|
5336
|
-
export type ValidateCallback<T> = (value: {
|
|
5337
|
-
entity: Entity;
|
|
5338
|
-
currentValue: T | undefined;
|
|
5339
|
-
newValue: T | undefined;
|
|
5340
|
-
senderAddress: string;
|
|
5341
|
-
createdBy: string;
|
|
5342
|
-
}) => boolean;
|
|
5343
|
-
|
|
5344
5335
|
// @public (undocumented)
|
|
5345
5336
|
export type ValueSetOptions<T> = {
|
|
5346
5337
|
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.22.6-
|
|
4
|
+
"version": "7.22.6-25375246959.commit-ec25d50",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.22.6-
|
|
8
|
-
"@dcl/sdk": "7.22.6-
|
|
7
|
+
"@dcl/js-runtime": "7.22.6-25375246959.commit-ec25d50",
|
|
8
|
+
"@dcl/sdk": "7.22.6-25375246959.commit-ec25d50"
|
|
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": "ec25d50ae79f2036c284c592d385ca01a17a8ae7"
|
|
37
36
|
}
|