@dcl/playground-assets 7.30.2-39796956377.commit-4223559 → 7.31.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 +3 -111
- package/dist/beta.d.ts +3 -111
- package/dist/index.bundled.d.ts +3 -111
- package/dist/index.js +7 -7
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +3 -111
- package/etc/playground-assets.api.json +4 -1001
- package/etc/playground-assets.api.md +3 -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)
|
|
@@ -940,10 +909,10 @@ export type Coords = {
|
|
|
940
909
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
941
910
|
|
|
942
911
|
// @public (undocumented)
|
|
943
|
-
export type CrdtMessage = PutComponentMessage |
|
|
912
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
944
913
|
|
|
945
914
|
// @public (undocumented)
|
|
946
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
915
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
947
916
|
|
|
948
917
|
// @public
|
|
949
918
|
export type CrdtMessageHeader = {
|
|
@@ -964,8 +933,6 @@ export enum CrdtMessageType {
|
|
|
964
933
|
// (undocumented)
|
|
965
934
|
APPEND_VALUE = 4,
|
|
966
935
|
// (undocumented)
|
|
967
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
968
|
-
// (undocumented)
|
|
969
936
|
DELETE_COMPONENT = 2,
|
|
970
937
|
// (undocumented)
|
|
971
938
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -974,7 +941,7 @@ export enum CrdtMessageType {
|
|
|
974
941
|
// (undocumented)
|
|
975
942
|
DELETE_ENTITY_NETWORK = 7,
|
|
976
943
|
// (undocumented)
|
|
977
|
-
MAX_MESSAGE_TYPE =
|
|
944
|
+
MAX_MESSAGE_TYPE = 8,
|
|
978
945
|
// (undocumented)
|
|
979
946
|
PUT_COMPONENT = 1,
|
|
980
947
|
// (undocumented)
|
|
@@ -986,11 +953,6 @@ export enum CrdtMessageType {
|
|
|
986
953
|
// @public (undocumented)
|
|
987
954
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
988
955
|
|
|
989
|
-
// 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)
|
|
990
|
-
//
|
|
991
|
-
// @public (undocumented)
|
|
992
|
-
export const CreatedBy: ICreatedBy;
|
|
993
|
-
|
|
994
956
|
// @public (undocumented)
|
|
995
957
|
export function createEntityContainer(opts?: {
|
|
996
958
|
reservedStaticEntities: number;
|
|
@@ -1484,19 +1446,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1484
1446
|
// @public (undocumented)
|
|
1485
1447
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1486
1448
|
|
|
1487
|
-
// 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)
|
|
1488
|
-
//
|
|
1489
|
-
// @public (undocumented)
|
|
1490
|
-
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1491
|
-
|
|
1492
|
-
// 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)
|
|
1493
|
-
//
|
|
1494
|
-
// @public (undocumented)
|
|
1495
|
-
export interface ICreatedByType {
|
|
1496
|
-
// (undocumented)
|
|
1497
|
-
address: string;
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
1449
|
// @public (undocumented)
|
|
1501
1450
|
export interface IEngine {
|
|
1502
1451
|
addEntity(): Entity;
|
|
@@ -1753,20 +1702,6 @@ export const enum InteractionType {
|
|
|
1753
1702
|
PROXIMITY = 1
|
|
1754
1703
|
}
|
|
1755
1704
|
|
|
1756
|
-
// 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)
|
|
1757
|
-
//
|
|
1758
|
-
// @public
|
|
1759
|
-
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1760
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1761
|
-
// (undocumented)
|
|
1762
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1763
|
-
// (undocumented)
|
|
1764
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1765
|
-
// (undocumented)
|
|
1766
|
-
dirtyIterator(): Iterable<Entity>;
|
|
1767
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
1705
|
// @public (undocumented)
|
|
1771
1706
|
export interface ISchema<T = any> {
|
|
1772
1707
|
// (undocumented)
|
|
@@ -5433,7 +5368,6 @@ export type Transport = {
|
|
|
5433
5368
|
onmessage?(message: Uint8Array): void;
|
|
5434
5369
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
|
5435
5370
|
type?: string;
|
|
5436
|
-
allowReservedEntities?: boolean;
|
|
5437
5371
|
};
|
|
5438
5372
|
|
|
5439
5373
|
// @public (undocumented)
|
|
@@ -5733,17 +5667,6 @@ export interface UiTransformProps {
|
|
|
5733
5667
|
// @public (undocumented)
|
|
5734
5668
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5735
5669
|
|
|
5736
|
-
// 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)
|
|
5737
|
-
//
|
|
5738
|
-
// @public (undocumented)
|
|
5739
|
-
export type ValidateCallback<T> = (value: {
|
|
5740
|
-
entity: Entity;
|
|
5741
|
-
currentValue: T | undefined;
|
|
5742
|
-
newValue: T | undefined;
|
|
5743
|
-
senderAddress: string;
|
|
5744
|
-
createdBy: string;
|
|
5745
|
-
}) => boolean;
|
|
5746
|
-
|
|
5747
5670
|
// @public (undocumented)
|
|
5748
5671
|
export type ValueSetOptions<T> = {
|
|
5749
5672
|
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.31.0",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.
|
|
8
|
-
"@dcl/sdk": "7.
|
|
7
|
+
"@dcl/js-runtime": "7.31.0",
|
|
8
|
+
"@dcl/sdk": "7.31.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 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": "06bfc6c91343ebe71a3abc9aa9a9be06a9bda47b"
|
|
37
36
|
}
|