@dcl/playground-assets 7.23.4-26106700711.commit-2afa13b → 7.23.4-26723618219.commit-ea97433
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 -101
- package/dist/beta.d.ts +3 -101
- package/dist/index.bundled.d.ts +3 -101
- package/dist/index.js +9 -9
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +3 -101
- package/etc/playground-assets.api.json +3 -1000
- package/etc/playground-assets.api.md +3 -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)
|
|
@@ -259,20 +236,12 @@ export interface BaseComponent<T> {
|
|
|
259
236
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
260
237
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
261
238
|
get(entity: Entity): any;
|
|
262
|
-
getCrdtState(entity: Entity): {
|
|
263
|
-
data: Uint8Array;
|
|
264
|
-
timestamp: number;
|
|
265
|
-
} | null;
|
|
266
239
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
267
240
|
has(entity: Entity): boolean;
|
|
268
241
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
269
242
|
// (undocumented)
|
|
270
243
|
readonly schema: ISchema<T>;
|
|
271
244
|
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
245
|
}
|
|
277
246
|
|
|
278
247
|
// @public (undocumented)
|
|
@@ -904,10 +873,10 @@ export type Coords = {
|
|
|
904
873
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
905
874
|
|
|
906
875
|
// @public (undocumented)
|
|
907
|
-
export type CrdtMessage = PutComponentMessage |
|
|
876
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
908
877
|
|
|
909
878
|
// @public (undocumented)
|
|
910
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
879
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
911
880
|
|
|
912
881
|
// @public
|
|
913
882
|
export type CrdtMessageHeader = {
|
|
@@ -928,8 +897,6 @@ export enum CrdtMessageType {
|
|
|
928
897
|
// (undocumented)
|
|
929
898
|
APPEND_VALUE = 4,
|
|
930
899
|
// (undocumented)
|
|
931
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
932
|
-
// (undocumented)
|
|
933
900
|
DELETE_COMPONENT = 2,
|
|
934
901
|
// (undocumented)
|
|
935
902
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -938,7 +905,7 @@ export enum CrdtMessageType {
|
|
|
938
905
|
// (undocumented)
|
|
939
906
|
DELETE_ENTITY_NETWORK = 7,
|
|
940
907
|
// (undocumented)
|
|
941
|
-
MAX_MESSAGE_TYPE =
|
|
908
|
+
MAX_MESSAGE_TYPE = 8,
|
|
942
909
|
// (undocumented)
|
|
943
910
|
PUT_COMPONENT = 1,
|
|
944
911
|
// (undocumented)
|
|
@@ -950,11 +917,6 @@ export enum CrdtMessageType {
|
|
|
950
917
|
// @public (undocumented)
|
|
951
918
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
952
919
|
|
|
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
920
|
// @public (undocumented)
|
|
959
921
|
export function createEntityContainer(opts?: {
|
|
960
922
|
reservedStaticEntities: number;
|
|
@@ -1410,19 +1372,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1410
1372
|
// @public (undocumented)
|
|
1411
1373
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1412
1374
|
|
|
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
1375
|
// @public (undocumented)
|
|
1427
1376
|
export interface IEngine {
|
|
1428
1377
|
addEntity(): Entity;
|
|
@@ -1671,20 +1620,6 @@ export const enum InteractionType {
|
|
|
1671
1620
|
PROXIMITY = 1
|
|
1672
1621
|
}
|
|
1673
1622
|
|
|
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
1623
|
// @public (undocumented)
|
|
1689
1624
|
export interface ISchema<T = any> {
|
|
1690
1625
|
// (undocumented)
|
|
@@ -5419,17 +5354,6 @@ export interface UiTransformProps {
|
|
|
5419
5354
|
// @public (undocumented)
|
|
5420
5355
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5421
5356
|
|
|
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
5357
|
// @public (undocumented)
|
|
5434
5358
|
export type ValueSetOptions<T> = {
|
|
5435
5359
|
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-26723618219.commit-ea97433",
|
|
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-26723618219.commit-ea97433",
|
|
8
|
+
"@dcl/sdk": "7.23.4-26723618219.commit-ea97433"
|
|
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": "ea974331caffe948877a5bfadb0dc458ae60e15a"
|
|
37
36
|
}
|