@dcl/playground-assets 7.21.0 → 7.21.1-22918726402.commit-ee210ee
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/index.js.map +4 -4
- 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)
|
|
@@ -826,10 +857,10 @@ export type Coords = {
|
|
|
826
857
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
827
858
|
|
|
828
859
|
// @public (undocumented)
|
|
829
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
860
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
830
861
|
|
|
831
862
|
// @public (undocumented)
|
|
832
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
863
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
833
864
|
|
|
834
865
|
// @public
|
|
835
866
|
export type CrdtMessageHeader = {
|
|
@@ -850,6 +881,8 @@ export enum CrdtMessageType {
|
|
|
850
881
|
// (undocumented)
|
|
851
882
|
APPEND_VALUE = 4,
|
|
852
883
|
// (undocumented)
|
|
884
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
885
|
+
// (undocumented)
|
|
853
886
|
DELETE_COMPONENT = 2,
|
|
854
887
|
// (undocumented)
|
|
855
888
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -858,7 +891,7 @@ export enum CrdtMessageType {
|
|
|
858
891
|
// (undocumented)
|
|
859
892
|
DELETE_ENTITY_NETWORK = 7,
|
|
860
893
|
// (undocumented)
|
|
861
|
-
MAX_MESSAGE_TYPE =
|
|
894
|
+
MAX_MESSAGE_TYPE = 9,
|
|
862
895
|
// (undocumented)
|
|
863
896
|
PUT_COMPONENT = 1,
|
|
864
897
|
// (undocumented)
|
|
@@ -870,6 +903,11 @@ export enum CrdtMessageType {
|
|
|
870
903
|
// @public (undocumented)
|
|
871
904
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
872
905
|
|
|
906
|
+
// 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)
|
|
907
|
+
//
|
|
908
|
+
// @public (undocumented)
|
|
909
|
+
export const CreatedBy: ICreatedBy;
|
|
910
|
+
|
|
873
911
|
// @public (undocumented)
|
|
874
912
|
export function createEntityContainer(opts?: {
|
|
875
913
|
reservedStaticEntities: number;
|
|
@@ -1308,6 +1346,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1308
1346
|
// @public (undocumented)
|
|
1309
1347
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1310
1348
|
|
|
1349
|
+
// 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)
|
|
1350
|
+
//
|
|
1351
|
+
// @public (undocumented)
|
|
1352
|
+
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1353
|
+
|
|
1354
|
+
// 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)
|
|
1355
|
+
//
|
|
1356
|
+
// @public (undocumented)
|
|
1357
|
+
export interface ICreatedByType {
|
|
1358
|
+
// (undocumented)
|
|
1359
|
+
address: string;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1311
1362
|
// @public (undocumented)
|
|
1312
1363
|
export interface IEngine {
|
|
1313
1364
|
addEntity(): Entity;
|
|
@@ -1547,6 +1598,20 @@ export type InstanceCompositeOptions = {
|
|
|
1547
1598
|
alreadyRequestedSrc?: Set<string>;
|
|
1548
1599
|
};
|
|
1549
1600
|
|
|
1601
|
+
// 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)
|
|
1602
|
+
//
|
|
1603
|
+
// @public
|
|
1604
|
+
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1605
|
+
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1606
|
+
// (undocumented)
|
|
1607
|
+
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1608
|
+
// (undocumented)
|
|
1609
|
+
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1610
|
+
// (undocumented)
|
|
1611
|
+
dirtyIterator(): Iterable<Entity>;
|
|
1612
|
+
iterator(): Iterable<[Entity, any]>;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1550
1615
|
// @public (undocumented)
|
|
1551
1616
|
export interface ISchema<T = any> {
|
|
1552
1617
|
// (undocumented)
|
|
@@ -4957,6 +5022,17 @@ export interface UiTransformProps {
|
|
|
4957
5022
|
// @public (undocumented)
|
|
4958
5023
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
4959
5024
|
|
|
5025
|
+
// 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)
|
|
5026
|
+
//
|
|
5027
|
+
// @public (undocumented)
|
|
5028
|
+
export type ValidateCallback<T> = (value: {
|
|
5029
|
+
entity: Entity;
|
|
5030
|
+
currentValue: T | undefined;
|
|
5031
|
+
newValue: T | undefined;
|
|
5032
|
+
senderAddress: string;
|
|
5033
|
+
createdBy: string;
|
|
5034
|
+
}) => boolean;
|
|
5035
|
+
|
|
4960
5036
|
// @public (undocumented)
|
|
4961
5037
|
export type ValueSetOptions<T> = {
|
|
4962
5038
|
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.21.
|
|
4
|
+
"version": "7.21.1-22918726402.commit-ee210ee",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.21.
|
|
8
|
-
"@dcl/sdk": "7.21.
|
|
7
|
+
"@dcl/js-runtime": "7.21.1-22918726402.commit-ee210ee",
|
|
8
|
+
"@dcl/sdk": "7.21.1-22918726402.commit-ee210ee"
|
|
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": "ee210ee78e334e8e696dbae117a8e0019aa13c97"
|
|
36
37
|
}
|