@dcl/playground-assets 7.29.1-35154657340.commit-e2bbcc9 → 7.29.1-35290475382.commit-201a8a3
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 +7 -111
- package/dist/beta.d.ts +7 -111
- package/dist/index.bundled.d.ts +7 -111
- package/dist/index.js +7 -7
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +7 -111
- package/etc/playground-assets.api.json +31 -1001
- package/etc/playground-assets.api.md +6 -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)
|
|
@@ -939,10 +908,10 @@ export type Coords = {
|
|
|
939
908
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
940
909
|
|
|
941
910
|
// @public (undocumented)
|
|
942
|
-
export type CrdtMessage = PutComponentMessage |
|
|
911
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
943
912
|
|
|
944
913
|
// @public (undocumented)
|
|
945
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
914
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
946
915
|
|
|
947
916
|
// @public
|
|
948
917
|
export type CrdtMessageHeader = {
|
|
@@ -963,8 +932,6 @@ export enum CrdtMessageType {
|
|
|
963
932
|
// (undocumented)
|
|
964
933
|
APPEND_VALUE = 4,
|
|
965
934
|
// (undocumented)
|
|
966
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
967
|
-
// (undocumented)
|
|
968
935
|
DELETE_COMPONENT = 2,
|
|
969
936
|
// (undocumented)
|
|
970
937
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -973,7 +940,7 @@ export enum CrdtMessageType {
|
|
|
973
940
|
// (undocumented)
|
|
974
941
|
DELETE_ENTITY_NETWORK = 7,
|
|
975
942
|
// (undocumented)
|
|
976
|
-
MAX_MESSAGE_TYPE =
|
|
943
|
+
MAX_MESSAGE_TYPE = 8,
|
|
977
944
|
// (undocumented)
|
|
978
945
|
PUT_COMPONENT = 1,
|
|
979
946
|
// (undocumented)
|
|
@@ -985,11 +952,6 @@ export enum CrdtMessageType {
|
|
|
985
952
|
// @public (undocumented)
|
|
986
953
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
987
954
|
|
|
988
|
-
// 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)
|
|
989
|
-
//
|
|
990
|
-
// @public (undocumented)
|
|
991
|
-
export const CreatedBy: ICreatedBy;
|
|
992
|
-
|
|
993
955
|
// @public (undocumented)
|
|
994
956
|
export function createEntityContainer(opts?: {
|
|
995
957
|
reservedStaticEntities: number;
|
|
@@ -1479,19 +1441,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1479
1441
|
// @public (undocumented)
|
|
1480
1442
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1481
1443
|
|
|
1482
|
-
// 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)
|
|
1483
|
-
//
|
|
1484
|
-
// @public (undocumented)
|
|
1485
|
-
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1486
|
-
|
|
1487
|
-
// 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)
|
|
1488
|
-
//
|
|
1489
|
-
// @public (undocumented)
|
|
1490
|
-
export interface ICreatedByType {
|
|
1491
|
-
// (undocumented)
|
|
1492
|
-
address: string;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
1444
|
// @public (undocumented)
|
|
1496
1445
|
export interface IEngine {
|
|
1497
1446
|
addEntity(): Entity;
|
|
@@ -1554,6 +1503,9 @@ export interface IEvents {
|
|
|
1554
1503
|
sender: string;
|
|
1555
1504
|
message: string;
|
|
1556
1505
|
};
|
|
1506
|
+
localeChanged: {
|
|
1507
|
+
locale: string;
|
|
1508
|
+
};
|
|
1557
1509
|
onEnterScene: {
|
|
1558
1510
|
userId: string;
|
|
1559
1511
|
};
|
|
@@ -1745,20 +1697,6 @@ export const enum InteractionType {
|
|
|
1745
1697
|
PROXIMITY = 1
|
|
1746
1698
|
}
|
|
1747
1699
|
|
|
1748
|
-
// 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)
|
|
1749
|
-
//
|
|
1750
|
-
// @public
|
|
1751
|
-
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1752
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1753
|
-
// (undocumented)
|
|
1754
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1755
|
-
// (undocumented)
|
|
1756
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1757
|
-
// (undocumented)
|
|
1758
|
-
dirtyIterator(): Iterable<Entity>;
|
|
1759
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
1700
|
// @public (undocumented)
|
|
1763
1701
|
export interface ISchema<T = any> {
|
|
1764
1702
|
// (undocumented)
|
|
@@ -5357,7 +5295,6 @@ export type Transport = {
|
|
|
5357
5295
|
onmessage?(message: Uint8Array): void;
|
|
5358
5296
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
|
5359
5297
|
type?: string;
|
|
5360
|
-
allowReservedEntities?: boolean;
|
|
5361
5298
|
};
|
|
5362
5299
|
|
|
5363
5300
|
// @public (undocumented)
|
|
@@ -5656,17 +5593,6 @@ export interface UiTransformProps {
|
|
|
5656
5593
|
// @public (undocumented)
|
|
5657
5594
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5658
5595
|
|
|
5659
|
-
// 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)
|
|
5660
|
-
//
|
|
5661
|
-
// @public (undocumented)
|
|
5662
|
-
export type ValidateCallback<T> = (value: {
|
|
5663
|
-
entity: Entity;
|
|
5664
|
-
currentValue: T | undefined;
|
|
5665
|
-
newValue: T | undefined;
|
|
5666
|
-
senderAddress: string;
|
|
5667
|
-
createdBy: string;
|
|
5668
|
-
}) => boolean;
|
|
5669
|
-
|
|
5670
5596
|
// @public (undocumented)
|
|
5671
5597
|
export type ValueSetOptions<T> = {
|
|
5672
5598
|
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.29.1-
|
|
4
|
+
"version": "7.29.1-35290475382.commit-201a8a3",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.29.1-
|
|
8
|
-
"@dcl/sdk": "7.29.1-
|
|
7
|
+
"@dcl/js-runtime": "7.29.1-35290475382.commit-201a8a3",
|
|
8
|
+
"@dcl/sdk": "7.29.1-35290475382.commit-201a8a3"
|
|
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": "201a8a3552e90504b10e426177f1e4c681a68f74"
|
|
37
36
|
}
|