@dcl/playground-assets 7.29.1-36591934525.commit-48aa9b5 → 7.29.1-36625469671.commit-2d5ffac
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 +116 -94
- package/dist/beta.d.ts +116 -94
- package/dist/index.bundled.d.ts +116 -94
- package/dist/index.js +7 -7
- package/dist/playground/sdk/apis.d.ts +2 -11
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +116 -94
- package/etc/playground-assets.api.json +1264 -1187
- package/etc/playground-assets.api.md +80 -72
- 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)
|
|
@@ -263,12 +286,20 @@ export interface BaseComponent<T> {
|
|
|
263
286
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
264
287
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
265
288
|
get(entity: Entity): any;
|
|
289
|
+
getCrdtState(entity: Entity): {
|
|
290
|
+
data: Uint8Array;
|
|
291
|
+
timestamp: number;
|
|
292
|
+
} | null;
|
|
266
293
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
267
294
|
has(entity: Entity): boolean;
|
|
268
295
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
269
296
|
// (undocumented)
|
|
270
297
|
readonly schema: ISchema<T>;
|
|
271
298
|
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;
|
|
272
303
|
}
|
|
273
304
|
|
|
274
305
|
// @public (undocumented)
|
|
@@ -730,7 +761,6 @@ export const componentDefinitionByName: {
|
|
|
730
761
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
731
762
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
732
763
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
733
|
-
"core::ExplorerItemPurchaseResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
|
|
734
764
|
"core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
|
|
735
765
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
736
766
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
@@ -909,10 +939,10 @@ export type Coords = {
|
|
|
909
939
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
910
940
|
|
|
911
941
|
// @public (undocumented)
|
|
912
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
942
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
913
943
|
|
|
914
944
|
// @public (undocumented)
|
|
915
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
945
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
916
946
|
|
|
917
947
|
// @public
|
|
918
948
|
export type CrdtMessageHeader = {
|
|
@@ -933,6 +963,8 @@ export enum CrdtMessageType {
|
|
|
933
963
|
// (undocumented)
|
|
934
964
|
APPEND_VALUE = 4,
|
|
935
965
|
// (undocumented)
|
|
966
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
967
|
+
// (undocumented)
|
|
936
968
|
DELETE_COMPONENT = 2,
|
|
937
969
|
// (undocumented)
|
|
938
970
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -941,7 +973,7 @@ export enum CrdtMessageType {
|
|
|
941
973
|
// (undocumented)
|
|
942
974
|
DELETE_ENTITY_NETWORK = 7,
|
|
943
975
|
// (undocumented)
|
|
944
|
-
MAX_MESSAGE_TYPE =
|
|
976
|
+
MAX_MESSAGE_TYPE = 9,
|
|
945
977
|
// (undocumented)
|
|
946
978
|
PUT_COMPONENT = 1,
|
|
947
979
|
// (undocumented)
|
|
@@ -953,6 +985,11 @@ export enum CrdtMessageType {
|
|
|
953
985
|
// @public (undocumented)
|
|
954
986
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
955
987
|
|
|
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
|
+
|
|
956
993
|
// @public (undocumented)
|
|
957
994
|
export function createEntityContainer(opts?: {
|
|
958
995
|
reservedStaticEntities: number;
|
|
@@ -1285,9 +1322,6 @@ export type ExcludeUndefined<T> = {
|
|
|
1285
1322
|
// @public
|
|
1286
1323
|
export const executeTask: (task: Task<unknown>) => void;
|
|
1287
1324
|
|
|
1288
|
-
// @public (undocumented)
|
|
1289
|
-
export const ExplorerItemPurchaseResult: GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>;
|
|
1290
|
-
|
|
1291
1325
|
// @public (undocumented)
|
|
1292
1326
|
export const enum ExplorerUi {
|
|
1293
1327
|
// (undocumented)
|
|
@@ -1298,7 +1332,6 @@ export const enum ExplorerUi {
|
|
|
1298
1332
|
EU_COMMUNITIES = 4,
|
|
1299
1333
|
// (undocumented)
|
|
1300
1334
|
EU_EVENTS = 6,
|
|
1301
|
-
EU_ITEM_PURCHASE = 7,
|
|
1302
1335
|
// (undocumented)
|
|
1303
1336
|
EU_MAP = 1,
|
|
1304
1337
|
// (undocumented)
|
|
@@ -1446,6 +1479,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1446
1479
|
// @public (undocumented)
|
|
1447
1480
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1448
1481
|
|
|
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
|
+
|
|
1449
1495
|
// @public (undocumented)
|
|
1450
1496
|
export interface IEngine {
|
|
1451
1497
|
addEntity(): Entity;
|
|
@@ -1702,6 +1748,20 @@ export const enum InteractionType {
|
|
|
1702
1748
|
PROXIMITY = 1
|
|
1703
1749
|
}
|
|
1704
1750
|
|
|
1751
|
+
// 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)
|
|
1752
|
+
//
|
|
1753
|
+
// @public
|
|
1754
|
+
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1755
|
+
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1756
|
+
// (undocumented)
|
|
1757
|
+
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1758
|
+
// (undocumented)
|
|
1759
|
+
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1760
|
+
// (undocumented)
|
|
1761
|
+
dirtyIterator(): Iterable<Entity>;
|
|
1762
|
+
iterator(): Iterable<[Entity, any]>;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1705
1765
|
// @public (undocumented)
|
|
1706
1766
|
export interface ISchema<T = any> {
|
|
1707
1767
|
// (undocumented)
|
|
@@ -2799,69 +2859,6 @@ export namespace PBEngineInfo {
|
|
|
2799
2859
|
export function encode(message: PBEngineInfo, writer?: _m0.Writer): _m0.Writer;
|
|
2800
2860
|
}
|
|
2801
2861
|
|
|
2802
|
-
// @public (undocumented)
|
|
2803
|
-
export interface PBExplorerItemPurchaseResult {
|
|
2804
|
-
requestId: number;
|
|
2805
|
-
// (undocumented)
|
|
2806
|
-
status?: {
|
|
2807
|
-
$case: "purchased";
|
|
2808
|
-
purchased: PBExplorerItemPurchaseResult_Purchased;
|
|
2809
|
-
} | {
|
|
2810
|
-
$case: "dismissed";
|
|
2811
|
-
dismissed: PBExplorerItemPurchaseResult_Dismissed;
|
|
2812
|
-
} | {
|
|
2813
|
-
$case: "failed";
|
|
2814
|
-
failed: PBExplorerItemPurchaseResult_Failed;
|
|
2815
|
-
} | undefined;
|
|
2816
|
-
timestamp: number;
|
|
2817
|
-
// (undocumented)
|
|
2818
|
-
urn: string;
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
// @public (undocumented)
|
|
2822
|
-
export namespace PBExplorerItemPurchaseResult {
|
|
2823
|
-
// (undocumented)
|
|
2824
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult;
|
|
2825
|
-
// (undocumented)
|
|
2826
|
-
export function encode(message: PBExplorerItemPurchaseResult, writer?: _m0.Writer): _m0.Writer;
|
|
2827
|
-
}
|
|
2828
|
-
|
|
2829
|
-
// @public (undocumented)
|
|
2830
|
-
export interface PBExplorerItemPurchaseResult_Dismissed {
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
// @public (undocumented)
|
|
2834
|
-
export namespace PBExplorerItemPurchaseResult_Dismissed {
|
|
2835
|
-
// (undocumented)
|
|
2836
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Dismissed;
|
|
2837
|
-
// (undocumented)
|
|
2838
|
-
export function encode(_: PBExplorerItemPurchaseResult_Dismissed, writer?: _m0.Writer): _m0.Writer;
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
// @public (undocumented)
|
|
2842
|
-
export interface PBExplorerItemPurchaseResult_Failed {
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
|
-
// @public (undocumented)
|
|
2846
|
-
export namespace PBExplorerItemPurchaseResult_Failed {
|
|
2847
|
-
// (undocumented)
|
|
2848
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Failed;
|
|
2849
|
-
// (undocumented)
|
|
2850
|
-
export function encode(_: PBExplorerItemPurchaseResult_Failed, writer?: _m0.Writer): _m0.Writer;
|
|
2851
|
-
}
|
|
2852
|
-
|
|
2853
|
-
// @public (undocumented)
|
|
2854
|
-
export interface PBExplorerItemPurchaseResult_Purchased {
|
|
2855
|
-
}
|
|
2856
|
-
|
|
2857
|
-
// @public (undocumented)
|
|
2858
|
-
export namespace PBExplorerItemPurchaseResult_Purchased {
|
|
2859
|
-
// (undocumented)
|
|
2860
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Purchased;
|
|
2861
|
-
// (undocumented)
|
|
2862
|
-
export function encode(_: PBExplorerItemPurchaseResult_Purchased, writer?: _m0.Writer): _m0.Writer;
|
|
2863
|
-
}
|
|
2864
|
-
|
|
2865
2862
|
// @public (undocumented)
|
|
2866
2863
|
export interface PBExplorerUiEventsResult {
|
|
2867
2864
|
// (undocumented)
|
|
@@ -2872,7 +2869,6 @@ export interface PBExplorerUiEventsResult {
|
|
|
2872
2869
|
$case: "closed";
|
|
2873
2870
|
closed: PBExplorerUiEventsResult_UiClosed;
|
|
2874
2871
|
} | undefined;
|
|
2875
|
-
requestId: number;
|
|
2876
2872
|
timestamp: number;
|
|
2877
2873
|
ui: ExplorerUi;
|
|
2878
2874
|
}
|
|
@@ -5364,6 +5360,7 @@ export type Transport = {
|
|
|
5364
5360
|
onmessage?(message: Uint8Array): void;
|
|
5365
5361
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
|
5366
5362
|
type?: string;
|
|
5363
|
+
allowReservedEntities?: boolean;
|
|
5367
5364
|
};
|
|
5368
5365
|
|
|
5369
5366
|
// @public (undocumented)
|
|
@@ -5662,6 +5659,17 @@ export interface UiTransformProps {
|
|
|
5662
5659
|
// @public (undocumented)
|
|
5663
5660
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5664
5661
|
|
|
5662
|
+
// 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)
|
|
5663
|
+
//
|
|
5664
|
+
// @public (undocumented)
|
|
5665
|
+
export type ValidateCallback<T> = (value: {
|
|
5666
|
+
entity: Entity;
|
|
5667
|
+
currentValue: T | undefined;
|
|
5668
|
+
newValue: T | undefined;
|
|
5669
|
+
senderAddress: string;
|
|
5670
|
+
createdBy: string;
|
|
5671
|
+
}) => boolean;
|
|
5672
|
+
|
|
5665
5673
|
// @public (undocumented)
|
|
5666
5674
|
export type ValueSetOptions<T> = {
|
|
5667
5675
|
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-36625469671.commit-2d5ffac",
|
|
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-36625469671.commit-2d5ffac",
|
|
8
|
+
"@dcl/sdk": "7.29.1-36625469671.commit-2d5ffac"
|
|
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": "2d5ffaca13b81a16cd09d797bc95b052151a89df"
|
|
36
37
|
}
|