@dcl/playground-assets 7.22.5 → 7.22.6-25321038582.commit-63ddb3f
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 +101 -3
- package/dist/beta.d.ts +101 -3
- package/dist/index.bundled.d.ts +101 -3
- package/dist/index.js +9 -9
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +101 -3
- package/etc/playground-assets.api.json +1000 -3
- package/etc/playground-assets.api.md +79 -3
- package/package.json +6 -5
|
@@ -94,6 +94,29 @@ export interface AudioStreamComponentDefinitionExtended extends LastWriteWinElem
|
|
|
94
94
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
95
95
|
}
|
|
96
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
|
+
|
|
97
120
|
// @public (undocumented)
|
|
98
121
|
export const enum AvatarAnchorPointType {
|
|
99
122
|
// (undocumented)
|
|
@@ -208,12 +231,20 @@ export interface BaseComponent<T> {
|
|
|
208
231
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
209
232
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
210
233
|
get(entity: Entity): any;
|
|
234
|
+
getCrdtState(entity: Entity): {
|
|
235
|
+
data: Uint8Array;
|
|
236
|
+
timestamp: number;
|
|
237
|
+
} | null;
|
|
211
238
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
212
239
|
has(entity: Entity): boolean;
|
|
213
240
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
214
241
|
// (undocumented)
|
|
215
242
|
readonly schema: ISchema<T>;
|
|
216
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;
|
|
217
248
|
}
|
|
218
249
|
|
|
219
250
|
// @public (undocumented)
|
|
@@ -843,10 +874,10 @@ export type Coords = {
|
|
|
843
874
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
844
875
|
|
|
845
876
|
// @public (undocumented)
|
|
846
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
877
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
847
878
|
|
|
848
879
|
// @public (undocumented)
|
|
849
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
880
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
850
881
|
|
|
851
882
|
// @public
|
|
852
883
|
export type CrdtMessageHeader = {
|
|
@@ -867,6 +898,8 @@ export enum CrdtMessageType {
|
|
|
867
898
|
// (undocumented)
|
|
868
899
|
APPEND_VALUE = 4,
|
|
869
900
|
// (undocumented)
|
|
901
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
902
|
+
// (undocumented)
|
|
870
903
|
DELETE_COMPONENT = 2,
|
|
871
904
|
// (undocumented)
|
|
872
905
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -875,7 +908,7 @@ export enum CrdtMessageType {
|
|
|
875
908
|
// (undocumented)
|
|
876
909
|
DELETE_ENTITY_NETWORK = 7,
|
|
877
910
|
// (undocumented)
|
|
878
|
-
MAX_MESSAGE_TYPE =
|
|
911
|
+
MAX_MESSAGE_TYPE = 9,
|
|
879
912
|
// (undocumented)
|
|
880
913
|
PUT_COMPONENT = 1,
|
|
881
914
|
// (undocumented)
|
|
@@ -887,6 +920,11 @@ export enum CrdtMessageType {
|
|
|
887
920
|
// @public (undocumented)
|
|
888
921
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
889
922
|
|
|
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
|
+
|
|
890
928
|
// @public (undocumented)
|
|
891
929
|
export function createEntityContainer(opts?: {
|
|
892
930
|
reservedStaticEntities: number;
|
|
@@ -1342,6 +1380,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1342
1380
|
// @public (undocumented)
|
|
1343
1381
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1344
1382
|
|
|
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
|
+
|
|
1345
1396
|
// @public (undocumented)
|
|
1346
1397
|
export interface IEngine {
|
|
1347
1398
|
addEntity(): Entity;
|
|
@@ -1589,6 +1640,20 @@ export const enum InteractionType {
|
|
|
1589
1640
|
PROXIMITY = 1
|
|
1590
1641
|
}
|
|
1591
1642
|
|
|
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
|
+
|
|
1592
1657
|
// @public (undocumented)
|
|
1593
1658
|
export interface ISchema<T = any> {
|
|
1594
1659
|
// (undocumented)
|
|
@@ -5265,6 +5330,17 @@ export interface UiTransformProps {
|
|
|
5265
5330
|
// @public (undocumented)
|
|
5266
5331
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5267
5332
|
|
|
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
|
+
|
|
5268
5344
|
// @public (undocumented)
|
|
5269
5345
|
export type ValueSetOptions<T> = {
|
|
5270
5346
|
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.
|
|
4
|
+
"version": "7.22.6-25321038582.commit-63ddb3f",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.22.
|
|
8
|
-
"@dcl/sdk": "7.22.
|
|
7
|
+
"@dcl/js-runtime": "7.22.6-25321038582.commit-63ddb3f",
|
|
8
|
+
"@dcl/sdk": "7.22.6-25321038582.commit-63ddb3f"
|
|
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": "63ddb3f830af153cda9489c9393a7c3b0288e550"
|
|
36
37
|
}
|