@dcl/playground-assets 7.26.1-32785242405.commit-c8d1817 → 7.26.1-32860802198.commit-dae48fb
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 +7 -7
- 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
|
@@ -136,6 +136,29 @@ 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
|
+
|
|
139
162
|
// @public (undocumented)
|
|
140
163
|
export const enum AvatarAnchorPointType {
|
|
141
164
|
// (undocumented)
|
|
@@ -260,12 +283,20 @@ export interface BaseComponent<T> {
|
|
|
260
283
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
261
284
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
262
285
|
get(entity: Entity): any;
|
|
286
|
+
getCrdtState(entity: Entity): {
|
|
287
|
+
data: Uint8Array;
|
|
288
|
+
timestamp: number;
|
|
289
|
+
} | null;
|
|
263
290
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
264
291
|
has(entity: Entity): boolean;
|
|
265
292
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
266
293
|
// (undocumented)
|
|
267
294
|
readonly schema: ISchema<T>;
|
|
268
295
|
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;
|
|
269
300
|
}
|
|
270
301
|
|
|
271
302
|
// @public (undocumented)
|
|
@@ -904,10 +935,10 @@ export type Coords = {
|
|
|
904
935
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
905
936
|
|
|
906
937
|
// @public (undocumented)
|
|
907
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
938
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
908
939
|
|
|
909
940
|
// @public (undocumented)
|
|
910
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
941
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
911
942
|
|
|
912
943
|
// @public
|
|
913
944
|
export type CrdtMessageHeader = {
|
|
@@ -928,6 +959,8 @@ export enum CrdtMessageType {
|
|
|
928
959
|
// (undocumented)
|
|
929
960
|
APPEND_VALUE = 4,
|
|
930
961
|
// (undocumented)
|
|
962
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
963
|
+
// (undocumented)
|
|
931
964
|
DELETE_COMPONENT = 2,
|
|
932
965
|
// (undocumented)
|
|
933
966
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -936,7 +969,7 @@ export enum CrdtMessageType {
|
|
|
936
969
|
// (undocumented)
|
|
937
970
|
DELETE_ENTITY_NETWORK = 7,
|
|
938
971
|
// (undocumented)
|
|
939
|
-
MAX_MESSAGE_TYPE =
|
|
972
|
+
MAX_MESSAGE_TYPE = 9,
|
|
940
973
|
// (undocumented)
|
|
941
974
|
PUT_COMPONENT = 1,
|
|
942
975
|
// (undocumented)
|
|
@@ -948,6 +981,11 @@ export enum CrdtMessageType {
|
|
|
948
981
|
// @public (undocumented)
|
|
949
982
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
950
983
|
|
|
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
|
+
|
|
951
989
|
// @public (undocumented)
|
|
952
990
|
export function createEntityContainer(opts?: {
|
|
953
991
|
reservedStaticEntities: number;
|
|
@@ -1436,6 +1474,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1436
1474
|
// @public (undocumented)
|
|
1437
1475
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1438
1476
|
|
|
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
|
+
|
|
1439
1490
|
// @public (undocumented)
|
|
1440
1491
|
export interface IEngine {
|
|
1441
1492
|
addEntity(): Entity;
|
|
@@ -1689,6 +1740,20 @@ export const enum InteractionType {
|
|
|
1689
1740
|
PROXIMITY = 1
|
|
1690
1741
|
}
|
|
1691
1742
|
|
|
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
|
+
|
|
1692
1757
|
// @public (undocumented)
|
|
1693
1758
|
export interface ISchema<T = any> {
|
|
1694
1759
|
// (undocumented)
|
|
@@ -5565,6 +5630,17 @@ export interface UiTransformProps {
|
|
|
5565
5630
|
// @public (undocumented)
|
|
5566
5631
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5567
5632
|
|
|
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
|
+
|
|
5568
5644
|
// @public (undocumented)
|
|
5569
5645
|
export type ValueSetOptions<T> = {
|
|
5570
5646
|
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-32860802198.commit-dae48fb",
|
|
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-32860802198.commit-dae48fb",
|
|
8
|
+
"@dcl/sdk": "7.26.1-32860802198.commit-dae48fb"
|
|
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": "dae48fba26034ac8e0cbe907daed8b2abb7085f3"
|
|
36
37
|
}
|