@dcl/playground-assets 7.26.1-32860802198.commit-dae48fb → 7.26.1-32862325783.commit-08de733
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 +7 -7
- 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
|
@@ -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)
|
|
@@ -283,20 +260,12 @@ export interface BaseComponent<T> {
|
|
|
283
260
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
284
261
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
285
262
|
get(entity: Entity): any;
|
|
286
|
-
getCrdtState(entity: Entity): {
|
|
287
|
-
data: Uint8Array;
|
|
288
|
-
timestamp: number;
|
|
289
|
-
} | null;
|
|
290
263
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
291
264
|
has(entity: Entity): boolean;
|
|
292
265
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
293
266
|
// (undocumented)
|
|
294
267
|
readonly schema: ISchema<T>;
|
|
295
268
|
updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
|
|
296
|
-
// (undocumented)
|
|
297
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
298
|
-
// (undocumented)
|
|
299
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
300
269
|
}
|
|
301
270
|
|
|
302
271
|
// @public (undocumented)
|
|
@@ -935,10 +904,10 @@ export type Coords = {
|
|
|
935
904
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
936
905
|
|
|
937
906
|
// @public (undocumented)
|
|
938
|
-
export type CrdtMessage = PutComponentMessage |
|
|
907
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
939
908
|
|
|
940
909
|
// @public (undocumented)
|
|
941
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
910
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
942
911
|
|
|
943
912
|
// @public
|
|
944
913
|
export type CrdtMessageHeader = {
|
|
@@ -959,8 +928,6 @@ export enum CrdtMessageType {
|
|
|
959
928
|
// (undocumented)
|
|
960
929
|
APPEND_VALUE = 4,
|
|
961
930
|
// (undocumented)
|
|
962
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
963
|
-
// (undocumented)
|
|
964
931
|
DELETE_COMPONENT = 2,
|
|
965
932
|
// (undocumented)
|
|
966
933
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -969,7 +936,7 @@ export enum CrdtMessageType {
|
|
|
969
936
|
// (undocumented)
|
|
970
937
|
DELETE_ENTITY_NETWORK = 7,
|
|
971
938
|
// (undocumented)
|
|
972
|
-
MAX_MESSAGE_TYPE =
|
|
939
|
+
MAX_MESSAGE_TYPE = 8,
|
|
973
940
|
// (undocumented)
|
|
974
941
|
PUT_COMPONENT = 1,
|
|
975
942
|
// (undocumented)
|
|
@@ -981,11 +948,6 @@ export enum CrdtMessageType {
|
|
|
981
948
|
// @public (undocumented)
|
|
982
949
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
983
950
|
|
|
984
|
-
// 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)
|
|
985
|
-
//
|
|
986
|
-
// @public (undocumented)
|
|
987
|
-
export const CreatedBy: ICreatedBy;
|
|
988
|
-
|
|
989
951
|
// @public (undocumented)
|
|
990
952
|
export function createEntityContainer(opts?: {
|
|
991
953
|
reservedStaticEntities: number;
|
|
@@ -1474,19 +1436,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1474
1436
|
// @public (undocumented)
|
|
1475
1437
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1476
1438
|
|
|
1477
|
-
// 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)
|
|
1478
|
-
//
|
|
1479
|
-
// @public (undocumented)
|
|
1480
|
-
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1481
|
-
|
|
1482
|
-
// 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)
|
|
1483
|
-
//
|
|
1484
|
-
// @public (undocumented)
|
|
1485
|
-
export interface ICreatedByType {
|
|
1486
|
-
// (undocumented)
|
|
1487
|
-
address: string;
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
1439
|
// @public (undocumented)
|
|
1491
1440
|
export interface IEngine {
|
|
1492
1441
|
addEntity(): Entity;
|
|
@@ -1740,20 +1689,6 @@ export const enum InteractionType {
|
|
|
1740
1689
|
PROXIMITY = 1
|
|
1741
1690
|
}
|
|
1742
1691
|
|
|
1743
|
-
// 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)
|
|
1744
|
-
//
|
|
1745
|
-
// @public
|
|
1746
|
-
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1747
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1748
|
-
// (undocumented)
|
|
1749
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1750
|
-
// (undocumented)
|
|
1751
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1752
|
-
// (undocumented)
|
|
1753
|
-
dirtyIterator(): Iterable<Entity>;
|
|
1754
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
1692
|
// @public (undocumented)
|
|
1758
1693
|
export interface ISchema<T = any> {
|
|
1759
1694
|
// (undocumented)
|
|
@@ -5630,17 +5565,6 @@ export interface UiTransformProps {
|
|
|
5630
5565
|
// @public (undocumented)
|
|
5631
5566
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5632
5567
|
|
|
5633
|
-
// 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)
|
|
5634
|
-
//
|
|
5635
|
-
// @public (undocumented)
|
|
5636
|
-
export type ValidateCallback<T> = (value: {
|
|
5637
|
-
entity: Entity;
|
|
5638
|
-
currentValue: T | undefined;
|
|
5639
|
-
newValue: T | undefined;
|
|
5640
|
-
senderAddress: string;
|
|
5641
|
-
createdBy: string;
|
|
5642
|
-
}) => boolean;
|
|
5643
|
-
|
|
5644
5568
|
// @public (undocumented)
|
|
5645
5569
|
export type ValueSetOptions<T> = {
|
|
5646
5570
|
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.26.1-
|
|
4
|
+
"version": "7.26.1-32862325783.commit-08de733",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.26.1-
|
|
8
|
-
"@dcl/sdk": "7.26.1-
|
|
7
|
+
"@dcl/js-runtime": "7.26.1-32862325783.commit-08de733",
|
|
8
|
+
"@dcl/sdk": "7.26.1-32862325783.commit-08de733"
|
|
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": "08de73386157539b3e5741db142055d2a0cd7d28"
|
|
37
36
|
}
|