@dcl/playground-assets 7.20.2-22169778016.commit-030cbfe → 7.20.2-22231111352.commit-d2f6f0a
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 +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +3 -101
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +4 -1001
- package/etc/playground-assets.api.md +3 -79
- package/package.json +5 -6
|
@@ -94,29 +94,6 @@ 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
|
-
|
|
120
97
|
// @public (undocumented)
|
|
121
98
|
export const enum AvatarAnchorPointType {
|
|
122
99
|
// (undocumented)
|
|
@@ -231,20 +208,12 @@ export interface BaseComponent<T> {
|
|
|
231
208
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
232
209
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
233
210
|
get(entity: Entity): any;
|
|
234
|
-
getCrdtState(entity: Entity): {
|
|
235
|
-
data: Uint8Array;
|
|
236
|
-
timestamp: number;
|
|
237
|
-
} | null;
|
|
238
211
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
239
212
|
has(entity: Entity): boolean;
|
|
240
213
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
241
214
|
// (undocumented)
|
|
242
215
|
readonly schema: ISchema<T>;
|
|
243
216
|
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;
|
|
248
217
|
}
|
|
249
218
|
|
|
250
219
|
// @public (undocumented)
|
|
@@ -855,10 +824,10 @@ export type Coords = {
|
|
|
855
824
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
856
825
|
|
|
857
826
|
// @public (undocumented)
|
|
858
|
-
export type CrdtMessage = PutComponentMessage |
|
|
827
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
859
828
|
|
|
860
829
|
// @public (undocumented)
|
|
861
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
830
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
862
831
|
|
|
863
832
|
// @public
|
|
864
833
|
export type CrdtMessageHeader = {
|
|
@@ -879,8 +848,6 @@ export enum CrdtMessageType {
|
|
|
879
848
|
// (undocumented)
|
|
880
849
|
APPEND_VALUE = 4,
|
|
881
850
|
// (undocumented)
|
|
882
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
883
|
-
// (undocumented)
|
|
884
851
|
DELETE_COMPONENT = 2,
|
|
885
852
|
// (undocumented)
|
|
886
853
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -889,7 +856,7 @@ export enum CrdtMessageType {
|
|
|
889
856
|
// (undocumented)
|
|
890
857
|
DELETE_ENTITY_NETWORK = 7,
|
|
891
858
|
// (undocumented)
|
|
892
|
-
MAX_MESSAGE_TYPE =
|
|
859
|
+
MAX_MESSAGE_TYPE = 8,
|
|
893
860
|
// (undocumented)
|
|
894
861
|
PUT_COMPONENT = 1,
|
|
895
862
|
// (undocumented)
|
|
@@ -901,11 +868,6 @@ export enum CrdtMessageType {
|
|
|
901
868
|
// @public (undocumented)
|
|
902
869
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
903
870
|
|
|
904
|
-
// 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)
|
|
905
|
-
//
|
|
906
|
-
// @public (undocumented)
|
|
907
|
-
export const CreatedBy: ICreatedBy;
|
|
908
|
-
|
|
909
871
|
// @public (undocumented)
|
|
910
872
|
export function createEntityContainer(opts?: {
|
|
911
873
|
reservedStaticEntities: number;
|
|
@@ -1341,19 +1303,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1341
1303
|
// @public (undocumented)
|
|
1342
1304
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1343
1305
|
|
|
1344
|
-
// 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)
|
|
1345
|
-
//
|
|
1346
|
-
// @public (undocumented)
|
|
1347
|
-
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1348
|
-
|
|
1349
|
-
// 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)
|
|
1350
|
-
//
|
|
1351
|
-
// @public (undocumented)
|
|
1352
|
-
export interface ICreatedByType {
|
|
1353
|
-
// (undocumented)
|
|
1354
|
-
address: string;
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
1306
|
// @public (undocumented)
|
|
1358
1307
|
export interface IEngine {
|
|
1359
1308
|
addEntity(): Entity;
|
|
@@ -1593,20 +1542,6 @@ export type InstanceCompositeOptions = {
|
|
|
1593
1542
|
alreadyRequestedSrc?: Set<string>;
|
|
1594
1543
|
};
|
|
1595
1544
|
|
|
1596
|
-
// 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)
|
|
1597
|
-
//
|
|
1598
|
-
// @public
|
|
1599
|
-
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1600
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1601
|
-
// (undocumented)
|
|
1602
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1603
|
-
// (undocumented)
|
|
1604
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1605
|
-
// (undocumented)
|
|
1606
|
-
dirtyIterator(): Iterable<Entity>;
|
|
1607
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
1545
|
// @public (undocumented)
|
|
1611
1546
|
export interface ISchema<T = any> {
|
|
1612
1547
|
// (undocumented)
|
|
@@ -4925,17 +4860,6 @@ export interface UiTransformProps {
|
|
|
4925
4860
|
// @public (undocumented)
|
|
4926
4861
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
4927
4862
|
|
|
4928
|
-
// 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)
|
|
4929
|
-
//
|
|
4930
|
-
// @public (undocumented)
|
|
4931
|
-
export type ValidateCallback<T> = (value: {
|
|
4932
|
-
entity: Entity;
|
|
4933
|
-
currentValue: T | undefined;
|
|
4934
|
-
newValue: T | undefined;
|
|
4935
|
-
senderAddress: string;
|
|
4936
|
-
createdBy: string;
|
|
4937
|
-
}) => boolean;
|
|
4938
|
-
|
|
4939
4863
|
// @public (undocumented)
|
|
4940
4864
|
export type ValueSetOptions<T> = {
|
|
4941
4865
|
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.20.2-
|
|
4
|
+
"version": "7.20.2-22231111352.commit-d2f6f0a",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.20.2-
|
|
8
|
-
"@dcl/sdk": "7.20.2-
|
|
7
|
+
"@dcl/js-runtime": "7.20.2-22231111352.commit-d2f6f0a",
|
|
8
|
+
"@dcl/sdk": "7.20.2-22231111352.commit-d2f6f0a"
|
|
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": "d2f6f0a879331345b3f46766f176294cc562da7b"
|
|
37
36
|
}
|