@dcl/playground-assets 7.32.1-41691874543.commit-3063788 → 7.33.0
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 +9 -111
- package/dist/beta.d.ts +9 -111
- package/dist/index.bundled.d.ts +9 -111
- package/dist/index.js +7 -7
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +9 -111
- package/etc/playground-assets.api.json +32 -1001
- package/etc/playground-assets.api.md +4 -80
- package/package.json +5 -6
|
@@ -136,29 +136,6 @@ 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
|
-
|
|
162
139
|
// @public (undocumented)
|
|
163
140
|
export const enum AvatarAnchorPointType {
|
|
164
141
|
// (undocumented)
|
|
@@ -286,20 +263,12 @@ export interface BaseComponent<T> {
|
|
|
286
263
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
287
264
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
288
265
|
get(entity: Entity): any;
|
|
289
|
-
getCrdtState(entity: Entity): {
|
|
290
|
-
data: Uint8Array;
|
|
291
|
-
timestamp: number;
|
|
292
|
-
} | null;
|
|
293
266
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
294
267
|
has(entity: Entity): boolean;
|
|
295
268
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
296
269
|
// (undocumented)
|
|
297
270
|
readonly schema: ISchema<T>;
|
|
298
271
|
updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
|
|
299
|
-
// (undocumented)
|
|
300
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
301
|
-
// (undocumented)
|
|
302
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
303
272
|
}
|
|
304
273
|
|
|
305
274
|
// @public (undocumented)
|
|
@@ -971,10 +940,10 @@ export type Coords = {
|
|
|
971
940
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
972
941
|
|
|
973
942
|
// @public (undocumented)
|
|
974
|
-
export type CrdtMessage = PutComponentMessage |
|
|
943
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
975
944
|
|
|
976
945
|
// @public (undocumented)
|
|
977
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
946
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
978
947
|
|
|
979
948
|
// @public
|
|
980
949
|
export type CrdtMessageHeader = {
|
|
@@ -995,8 +964,6 @@ export enum CrdtMessageType {
|
|
|
995
964
|
// (undocumented)
|
|
996
965
|
APPEND_VALUE = 4,
|
|
997
966
|
// (undocumented)
|
|
998
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
999
|
-
// (undocumented)
|
|
1000
967
|
DELETE_COMPONENT = 2,
|
|
1001
968
|
// (undocumented)
|
|
1002
969
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -1005,7 +972,7 @@ export enum CrdtMessageType {
|
|
|
1005
972
|
// (undocumented)
|
|
1006
973
|
DELETE_ENTITY_NETWORK = 7,
|
|
1007
974
|
// (undocumented)
|
|
1008
|
-
MAX_MESSAGE_TYPE =
|
|
975
|
+
MAX_MESSAGE_TYPE = 8,
|
|
1009
976
|
// (undocumented)
|
|
1010
977
|
PUT_COMPONENT = 1,
|
|
1011
978
|
// (undocumented)
|
|
@@ -1017,11 +984,6 @@ export enum CrdtMessageType {
|
|
|
1017
984
|
// @public (undocumented)
|
|
1018
985
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1019
986
|
|
|
1020
|
-
// 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)
|
|
1021
|
-
//
|
|
1022
|
-
// @public (undocumented)
|
|
1023
|
-
export const CreatedBy: ICreatedBy;
|
|
1024
|
-
|
|
1025
987
|
// @public (undocumented)
|
|
1026
988
|
export function createEntityContainer(opts?: {
|
|
1027
989
|
reservedStaticEntities: number;
|
|
@@ -1518,19 +1480,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1518
1480
|
// @public (undocumented)
|
|
1519
1481
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1520
1482
|
|
|
1521
|
-
// 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)
|
|
1522
|
-
//
|
|
1523
|
-
// @public (undocumented)
|
|
1524
|
-
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1525
|
-
|
|
1526
|
-
// 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)
|
|
1527
|
-
//
|
|
1528
|
-
// @public (undocumented)
|
|
1529
|
-
export interface ICreatedByType {
|
|
1530
|
-
// (undocumented)
|
|
1531
|
-
address: string;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
1483
|
// @public (undocumented)
|
|
1535
1484
|
export interface IEngine {
|
|
1536
1485
|
addEntity(): Entity;
|
|
@@ -1787,20 +1736,6 @@ export const enum InteractionType {
|
|
|
1787
1736
|
PROXIMITY = 1
|
|
1788
1737
|
}
|
|
1789
1738
|
|
|
1790
|
-
// 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)
|
|
1791
|
-
//
|
|
1792
|
-
// @public
|
|
1793
|
-
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1794
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1795
|
-
// (undocumented)
|
|
1796
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1797
|
-
// (undocumented)
|
|
1798
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1799
|
-
// (undocumented)
|
|
1800
|
-
dirtyIterator(): Iterable<Entity>;
|
|
1801
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
1739
|
// @public (undocumented)
|
|
1805
1740
|
export interface ISchema<T = any> {
|
|
1806
1741
|
// (undocumented)
|
|
@@ -5510,6 +5445,7 @@ export interface TouchScreenControlsComponentDefinitionExtended extends LastWrit
|
|
|
5510
5445
|
setMainAction(action: InputAction): void;
|
|
5511
5446
|
showAll(): void;
|
|
5512
5447
|
showCrosshair(): void;
|
|
5448
|
+
showDefault(): void;
|
|
5513
5449
|
showJoystick(): void;
|
|
5514
5450
|
}
|
|
5515
5451
|
|
|
@@ -5566,7 +5502,6 @@ export type Transport = {
|
|
|
5566
5502
|
onmessage?(message: Uint8Array): void;
|
|
5567
5503
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
|
5568
5504
|
type?: string;
|
|
5569
|
-
allowReservedEntities?: boolean;
|
|
5570
5505
|
};
|
|
5571
5506
|
|
|
5572
5507
|
// @public (undocumented)
|
|
@@ -5866,17 +5801,6 @@ export interface UiTransformProps {
|
|
|
5866
5801
|
// @public (undocumented)
|
|
5867
5802
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5868
5803
|
|
|
5869
|
-
// 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)
|
|
5870
|
-
//
|
|
5871
|
-
// @public (undocumented)
|
|
5872
|
-
export type ValidateCallback<T> = (value: {
|
|
5873
|
-
entity: Entity;
|
|
5874
|
-
currentValue: T | undefined;
|
|
5875
|
-
newValue: T | undefined;
|
|
5876
|
-
senderAddress: string;
|
|
5877
|
-
createdBy: string;
|
|
5878
|
-
}) => boolean;
|
|
5879
|
-
|
|
5880
5804
|
// @public (undocumented)
|
|
5881
5805
|
export type ValueSetOptions<T> = {
|
|
5882
5806
|
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.
|
|
4
|
+
"version": "7.33.0",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.
|
|
8
|
-
"@dcl/sdk": "7.
|
|
7
|
+
"@dcl/js-runtime": "7.33.0",
|
|
8
|
+
"@dcl/sdk": "7.33.0"
|
|
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 scene-insights tail"
|
|
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": "f6053ef52bd1e8c057cce32ecce5c3c88b3da758"
|
|
37
36
|
}
|