@dcl/playground-assets 7.23.4-26723618219.commit-ea97433 → 7.23.4-26955626649.commit-5d040fd
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 +78 -5
- package/dist/beta.d.ts +78 -5
- package/dist/index.bundled.d.ts +78 -5
- package/dist/index.js +5 -5
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +78 -5
- package/etc/playground-assets.api.json +279 -5
- package/etc/playground-assets.api.md +23 -1
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -1488,14 +1488,16 @@ export declare namespace Composite {
|
|
|
1488
1488
|
/** @public */
|
|
1489
1489
|
export function toBinary(composite: Composite.Definition): Uint8Array;
|
|
1490
1490
|
/**
|
|
1491
|
-
* Instance a composite and
|
|
1492
|
-
* @param
|
|
1493
|
-
* @param
|
|
1494
|
-
* @param
|
|
1491
|
+
* Instance a composite and return its root entity.
|
|
1492
|
+
* @param engine - the engine that will own the new entities
|
|
1493
|
+
* @param compositeData - the composite resource to instance
|
|
1494
|
+
* @param compositeProvider - provider used to resolve nested composite references
|
|
1495
|
+
* @param options - instancing options (`rootEntity`, `entityMapping`, `alreadyRequestedSrc`)
|
|
1496
|
+
* @returns the root entity of the instanced composite
|
|
1495
1497
|
*
|
|
1496
1498
|
* @public
|
|
1497
1499
|
*/
|
|
1498
|
-
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions):
|
|
1500
|
+
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
1499
1501
|
/**
|
|
1500
1502
|
* Resolve and normalize a composite path
|
|
1501
1503
|
* @param src - the source path
|
|
@@ -1568,6 +1570,11 @@ export declare namespace CompositeDefinition {
|
|
|
1568
1570
|
*/
|
|
1569
1571
|
export declare type CompositeProvider = {
|
|
1570
1572
|
getCompositeOrNull(src: string): CompositeResource | null;
|
|
1573
|
+
loadComposite?: (src: string) => Promise<CompositeResource>;
|
|
1574
|
+
schemas?: Iterable<{
|
|
1575
|
+
name: string;
|
|
1576
|
+
jsonSchema: any;
|
|
1577
|
+
}>;
|
|
1571
1578
|
};
|
|
1572
1579
|
|
|
1573
1580
|
/**
|
|
@@ -2276,6 +2283,13 @@ export declare function getComponentEntityTree<T>(engine: Pick<IEngine, 'getEnti
|
|
|
2276
2283
|
parent?: Entity;
|
|
2277
2284
|
}>): Generator<Entity>;
|
|
2278
2285
|
|
|
2286
|
+
/**
|
|
2287
|
+
* Get the composite provider registered via setCompositeProvider. Returns null if
|
|
2288
|
+
* no provider has been set.
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
export declare function getCompositeProvider(): CompositeProvider | null;
|
|
2292
|
+
|
|
2279
2293
|
/**
|
|
2280
2294
|
* @public
|
|
2281
2295
|
* @deprecated composite is not being supported so far, please do not use this feature
|
|
@@ -6570,6 +6584,14 @@ export declare interface PBUiCanvasInformation {
|
|
|
6570
6584
|
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
6571
6585
|
*/
|
|
6572
6586
|
interactableArea: BorderRect | undefined;
|
|
6587
|
+
/**
|
|
6588
|
+
* informs the sdk about the screen inset area (safe margins). these are the
|
|
6589
|
+
* insets from each edge of the screen that are reserved by the device or
|
|
6590
|
+
* platform UI (for example: the notch, status bar, home indicator, or rounded
|
|
6591
|
+
* corners on mobile). scenes should avoid placing critical UI within these
|
|
6592
|
+
* insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).
|
|
6593
|
+
*/
|
|
6594
|
+
screenInsetArea?: BorderRect | undefined;
|
|
6573
6595
|
}
|
|
6574
6596
|
|
|
6575
6597
|
/**
|
|
@@ -8560,6 +8582,35 @@ export declare namespace Schemas {
|
|
|
8560
8582
|
}) => void;
|
|
8561
8583
|
}
|
|
8562
8584
|
|
|
8585
|
+
/**
|
|
8586
|
+
*
|
|
8587
|
+
* @public
|
|
8588
|
+
* ScreenInsetArea component
|
|
8589
|
+
*
|
|
8590
|
+
* Constrains its children to the area inside the renderer-reported screen
|
|
8591
|
+
* inset (safe margins). On mobile this is the area excluding the notch,
|
|
8592
|
+
* status bar, home indicator and rounded corners. On desktop the insets are
|
|
8593
|
+
* typically zero, so the container fills the canvas.
|
|
8594
|
+
*
|
|
8595
|
+
* The container is absolutely positioned with top/left/right/bottom matching
|
|
8596
|
+
* the current `UiCanvasInformation.screenInsetArea`, so a child sized
|
|
8597
|
+
* 100%x100% fills the safe area exactly.
|
|
8598
|
+
*
|
|
8599
|
+
* @example
|
|
8600
|
+
* <ScreenInsetArea><MyHud /></ScreenInsetArea>
|
|
8601
|
+
*
|
|
8602
|
+
* @category Component
|
|
8603
|
+
*/
|
|
8604
|
+
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8605
|
+
|
|
8606
|
+
/**
|
|
8607
|
+
* Register the composite provider used to resolve composite files. Also registers
|
|
8608
|
+
* any `provider.schemas` on the engine pre-seal so composites that reference those
|
|
8609
|
+
* components can be instanced without further setup.
|
|
8610
|
+
* @public
|
|
8611
|
+
*/
|
|
8612
|
+
export declare function setCompositeProvider(engine: IEngine, provider: CompositeProvider): void;
|
|
8613
|
+
|
|
8563
8614
|
/**
|
|
8564
8615
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8565
8616
|
* @public
|
|
@@ -9415,6 +9466,28 @@ export declare type UiRendererOptions = {
|
|
|
9415
9466
|
virtualHeight: number;
|
|
9416
9467
|
};
|
|
9417
9468
|
|
|
9469
|
+
/**
|
|
9470
|
+
* ScreenInsetArea component props
|
|
9471
|
+
*
|
|
9472
|
+
* The container reads the current `screenInsetArea` reported by the renderer
|
|
9473
|
+
* via `UiCanvasInformation` (the device safe margins — notch, status bar,
|
|
9474
|
+
* home indicator, rounded corners) and constrains its children to the area
|
|
9475
|
+
* inside those insets using absolute positioning. Layout props that control
|
|
9476
|
+
* the container's own position (`positionType`, `position`) are owned by the
|
|
9477
|
+
* component and are not configurable from props — every other layout,
|
|
9478
|
+
* background and event prop is forwarded as usual.
|
|
9479
|
+
*
|
|
9480
|
+
* @public
|
|
9481
|
+
*/
|
|
9482
|
+
export declare type UiScreenInsetAreaProps = Omit<EntityPropTypes, 'uiTransform'> & {
|
|
9483
|
+
/**
|
|
9484
|
+
* Layout overrides forwarded to the underlying entity. The
|
|
9485
|
+
* `positionType` and `position` fields are reserved by the container and
|
|
9486
|
+
* any value provided here is ignored.
|
|
9487
|
+
*/
|
|
9488
|
+
uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'positionType' | 'position'>;
|
|
9489
|
+
};
|
|
9490
|
+
|
|
9418
9491
|
/** @public */
|
|
9419
9492
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
9420
9493
|
|
package/dist/beta.d.ts
CHANGED
|
@@ -1488,14 +1488,16 @@ export declare namespace Composite {
|
|
|
1488
1488
|
/** @public */
|
|
1489
1489
|
export function toBinary(composite: Composite.Definition): Uint8Array;
|
|
1490
1490
|
/**
|
|
1491
|
-
* Instance a composite and
|
|
1492
|
-
* @param
|
|
1493
|
-
* @param
|
|
1494
|
-
* @param
|
|
1491
|
+
* Instance a composite and return its root entity.
|
|
1492
|
+
* @param engine - the engine that will own the new entities
|
|
1493
|
+
* @param compositeData - the composite resource to instance
|
|
1494
|
+
* @param compositeProvider - provider used to resolve nested composite references
|
|
1495
|
+
* @param options - instancing options (`rootEntity`, `entityMapping`, `alreadyRequestedSrc`)
|
|
1496
|
+
* @returns the root entity of the instanced composite
|
|
1495
1497
|
*
|
|
1496
1498
|
* @public
|
|
1497
1499
|
*/
|
|
1498
|
-
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions):
|
|
1500
|
+
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
1499
1501
|
/**
|
|
1500
1502
|
* Resolve and normalize a composite path
|
|
1501
1503
|
* @param src - the source path
|
|
@@ -1568,6 +1570,11 @@ export declare namespace CompositeDefinition {
|
|
|
1568
1570
|
*/
|
|
1569
1571
|
export declare type CompositeProvider = {
|
|
1570
1572
|
getCompositeOrNull(src: string): CompositeResource | null;
|
|
1573
|
+
loadComposite?: (src: string) => Promise<CompositeResource>;
|
|
1574
|
+
schemas?: Iterable<{
|
|
1575
|
+
name: string;
|
|
1576
|
+
jsonSchema: any;
|
|
1577
|
+
}>;
|
|
1571
1578
|
};
|
|
1572
1579
|
|
|
1573
1580
|
/**
|
|
@@ -2276,6 +2283,13 @@ export declare function getComponentEntityTree<T>(engine: Pick<IEngine, 'getEnti
|
|
|
2276
2283
|
parent?: Entity;
|
|
2277
2284
|
}>): Generator<Entity>;
|
|
2278
2285
|
|
|
2286
|
+
/**
|
|
2287
|
+
* Get the composite provider registered via setCompositeProvider. Returns null if
|
|
2288
|
+
* no provider has been set.
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
export declare function getCompositeProvider(): CompositeProvider | null;
|
|
2292
|
+
|
|
2279
2293
|
/**
|
|
2280
2294
|
* @public
|
|
2281
2295
|
* @deprecated composite is not being supported so far, please do not use this feature
|
|
@@ -6542,6 +6556,14 @@ export declare interface PBUiCanvasInformation {
|
|
|
6542
6556
|
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
6543
6557
|
*/
|
|
6544
6558
|
interactableArea: BorderRect | undefined;
|
|
6559
|
+
/**
|
|
6560
|
+
* informs the sdk about the screen inset area (safe margins). these are the
|
|
6561
|
+
* insets from each edge of the screen that are reserved by the device or
|
|
6562
|
+
* platform UI (for example: the notch, status bar, home indicator, or rounded
|
|
6563
|
+
* corners on mobile). scenes should avoid placing critical UI within these
|
|
6564
|
+
* insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).
|
|
6565
|
+
*/
|
|
6566
|
+
screenInsetArea?: BorderRect | undefined;
|
|
6545
6567
|
}
|
|
6546
6568
|
|
|
6547
6569
|
/**
|
|
@@ -8532,6 +8554,35 @@ export declare namespace Schemas {
|
|
|
8532
8554
|
}) => void;
|
|
8533
8555
|
}
|
|
8534
8556
|
|
|
8557
|
+
/**
|
|
8558
|
+
*
|
|
8559
|
+
* @public
|
|
8560
|
+
* ScreenInsetArea component
|
|
8561
|
+
*
|
|
8562
|
+
* Constrains its children to the area inside the renderer-reported screen
|
|
8563
|
+
* inset (safe margins). On mobile this is the area excluding the notch,
|
|
8564
|
+
* status bar, home indicator and rounded corners. On desktop the insets are
|
|
8565
|
+
* typically zero, so the container fills the canvas.
|
|
8566
|
+
*
|
|
8567
|
+
* The container is absolutely positioned with top/left/right/bottom matching
|
|
8568
|
+
* the current `UiCanvasInformation.screenInsetArea`, so a child sized
|
|
8569
|
+
* 100%x100% fills the safe area exactly.
|
|
8570
|
+
*
|
|
8571
|
+
* @example
|
|
8572
|
+
* <ScreenInsetArea><MyHud /></ScreenInsetArea>
|
|
8573
|
+
*
|
|
8574
|
+
* @category Component
|
|
8575
|
+
*/
|
|
8576
|
+
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8577
|
+
|
|
8578
|
+
/**
|
|
8579
|
+
* Register the composite provider used to resolve composite files. Also registers
|
|
8580
|
+
* any `provider.schemas` on the engine pre-seal so composites that reference those
|
|
8581
|
+
* components can be instanced without further setup.
|
|
8582
|
+
* @public
|
|
8583
|
+
*/
|
|
8584
|
+
export declare function setCompositeProvider(engine: IEngine, provider: CompositeProvider): void;
|
|
8585
|
+
|
|
8535
8586
|
/**
|
|
8536
8587
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8537
8588
|
* @public
|
|
@@ -9382,6 +9433,28 @@ export declare type UiRendererOptions = {
|
|
|
9382
9433
|
virtualHeight: number;
|
|
9383
9434
|
};
|
|
9384
9435
|
|
|
9436
|
+
/**
|
|
9437
|
+
* ScreenInsetArea component props
|
|
9438
|
+
*
|
|
9439
|
+
* The container reads the current `screenInsetArea` reported by the renderer
|
|
9440
|
+
* via `UiCanvasInformation` (the device safe margins — notch, status bar,
|
|
9441
|
+
* home indicator, rounded corners) and constrains its children to the area
|
|
9442
|
+
* inside those insets using absolute positioning. Layout props that control
|
|
9443
|
+
* the container's own position (`positionType`, `position`) are owned by the
|
|
9444
|
+
* component and are not configurable from props — every other layout,
|
|
9445
|
+
* background and event prop is forwarded as usual.
|
|
9446
|
+
*
|
|
9447
|
+
* @public
|
|
9448
|
+
*/
|
|
9449
|
+
export declare type UiScreenInsetAreaProps = Omit<EntityPropTypes, 'uiTransform'> & {
|
|
9450
|
+
/**
|
|
9451
|
+
* Layout overrides forwarded to the underlying entity. The
|
|
9452
|
+
* `positionType` and `position` fields are reserved by the container and
|
|
9453
|
+
* any value provided here is ignored.
|
|
9454
|
+
*/
|
|
9455
|
+
uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'positionType' | 'position'>;
|
|
9456
|
+
};
|
|
9457
|
+
|
|
9385
9458
|
/** @public */
|
|
9386
9459
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
9387
9460
|
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -1488,14 +1488,16 @@ export declare namespace Composite {
|
|
|
1488
1488
|
/** @public */
|
|
1489
1489
|
export function toBinary(composite: Composite.Definition): Uint8Array;
|
|
1490
1490
|
/**
|
|
1491
|
-
* Instance a composite and
|
|
1492
|
-
* @param
|
|
1493
|
-
* @param
|
|
1494
|
-
* @param
|
|
1491
|
+
* Instance a composite and return its root entity.
|
|
1492
|
+
* @param engine - the engine that will own the new entities
|
|
1493
|
+
* @param compositeData - the composite resource to instance
|
|
1494
|
+
* @param compositeProvider - provider used to resolve nested composite references
|
|
1495
|
+
* @param options - instancing options (`rootEntity`, `entityMapping`, `alreadyRequestedSrc`)
|
|
1496
|
+
* @returns the root entity of the instanced composite
|
|
1495
1497
|
*
|
|
1496
1498
|
* @public
|
|
1497
1499
|
*/
|
|
1498
|
-
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions):
|
|
1500
|
+
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
1499
1501
|
/**
|
|
1500
1502
|
* Resolve and normalize a composite path
|
|
1501
1503
|
* @param src - the source path
|
|
@@ -1568,6 +1570,11 @@ export declare namespace CompositeDefinition {
|
|
|
1568
1570
|
*/
|
|
1569
1571
|
export declare type CompositeProvider = {
|
|
1570
1572
|
getCompositeOrNull(src: string): CompositeResource | null;
|
|
1573
|
+
loadComposite?: (src: string) => Promise<CompositeResource>;
|
|
1574
|
+
schemas?: Iterable<{
|
|
1575
|
+
name: string;
|
|
1576
|
+
jsonSchema: any;
|
|
1577
|
+
}>;
|
|
1571
1578
|
};
|
|
1572
1579
|
|
|
1573
1580
|
/**
|
|
@@ -2276,6 +2283,13 @@ export declare function getComponentEntityTree<T>(engine: Pick<IEngine, 'getEnti
|
|
|
2276
2283
|
parent?: Entity;
|
|
2277
2284
|
}>): Generator<Entity>;
|
|
2278
2285
|
|
|
2286
|
+
/**
|
|
2287
|
+
* Get the composite provider registered via setCompositeProvider. Returns null if
|
|
2288
|
+
* no provider has been set.
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
export declare function getCompositeProvider(): CompositeProvider | null;
|
|
2292
|
+
|
|
2279
2293
|
/**
|
|
2280
2294
|
* @public
|
|
2281
2295
|
* @deprecated composite is not being supported so far, please do not use this feature
|
|
@@ -6542,6 +6556,14 @@ export declare interface PBUiCanvasInformation {
|
|
|
6542
6556
|
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
6543
6557
|
*/
|
|
6544
6558
|
interactableArea: BorderRect | undefined;
|
|
6559
|
+
/**
|
|
6560
|
+
* informs the sdk about the screen inset area (safe margins). these are the
|
|
6561
|
+
* insets from each edge of the screen that are reserved by the device or
|
|
6562
|
+
* platform UI (for example: the notch, status bar, home indicator, or rounded
|
|
6563
|
+
* corners on mobile). scenes should avoid placing critical UI within these
|
|
6564
|
+
* insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).
|
|
6565
|
+
*/
|
|
6566
|
+
screenInsetArea?: BorderRect | undefined;
|
|
6545
6567
|
}
|
|
6546
6568
|
|
|
6547
6569
|
/**
|
|
@@ -8532,6 +8554,35 @@ export declare namespace Schemas {
|
|
|
8532
8554
|
}) => void;
|
|
8533
8555
|
}
|
|
8534
8556
|
|
|
8557
|
+
/**
|
|
8558
|
+
*
|
|
8559
|
+
* @public
|
|
8560
|
+
* ScreenInsetArea component
|
|
8561
|
+
*
|
|
8562
|
+
* Constrains its children to the area inside the renderer-reported screen
|
|
8563
|
+
* inset (safe margins). On mobile this is the area excluding the notch,
|
|
8564
|
+
* status bar, home indicator and rounded corners. On desktop the insets are
|
|
8565
|
+
* typically zero, so the container fills the canvas.
|
|
8566
|
+
*
|
|
8567
|
+
* The container is absolutely positioned with top/left/right/bottom matching
|
|
8568
|
+
* the current `UiCanvasInformation.screenInsetArea`, so a child sized
|
|
8569
|
+
* 100%x100% fills the safe area exactly.
|
|
8570
|
+
*
|
|
8571
|
+
* @example
|
|
8572
|
+
* <ScreenInsetArea><MyHud /></ScreenInsetArea>
|
|
8573
|
+
*
|
|
8574
|
+
* @category Component
|
|
8575
|
+
*/
|
|
8576
|
+
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8577
|
+
|
|
8578
|
+
/**
|
|
8579
|
+
* Register the composite provider used to resolve composite files. Also registers
|
|
8580
|
+
* any `provider.schemas` on the engine pre-seal so composites that reference those
|
|
8581
|
+
* components can be instanced without further setup.
|
|
8582
|
+
* @public
|
|
8583
|
+
*/
|
|
8584
|
+
export declare function setCompositeProvider(engine: IEngine, provider: CompositeProvider): void;
|
|
8585
|
+
|
|
8535
8586
|
/**
|
|
8536
8587
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8537
8588
|
* @public
|
|
@@ -9382,6 +9433,28 @@ export declare type UiRendererOptions = {
|
|
|
9382
9433
|
virtualHeight: number;
|
|
9383
9434
|
};
|
|
9384
9435
|
|
|
9436
|
+
/**
|
|
9437
|
+
* ScreenInsetArea component props
|
|
9438
|
+
*
|
|
9439
|
+
* The container reads the current `screenInsetArea` reported by the renderer
|
|
9440
|
+
* via `UiCanvasInformation` (the device safe margins — notch, status bar,
|
|
9441
|
+
* home indicator, rounded corners) and constrains its children to the area
|
|
9442
|
+
* inside those insets using absolute positioning. Layout props that control
|
|
9443
|
+
* the container's own position (`positionType`, `position`) are owned by the
|
|
9444
|
+
* component and are not configurable from props — every other layout,
|
|
9445
|
+
* background and event prop is forwarded as usual.
|
|
9446
|
+
*
|
|
9447
|
+
* @public
|
|
9448
|
+
*/
|
|
9449
|
+
export declare type UiScreenInsetAreaProps = Omit<EntityPropTypes, 'uiTransform'> & {
|
|
9450
|
+
/**
|
|
9451
|
+
* Layout overrides forwarded to the underlying entity. The
|
|
9452
|
+
* `positionType` and `position` fields are reserved by the container and
|
|
9453
|
+
* any value provided here is ignored.
|
|
9454
|
+
*/
|
|
9455
|
+
uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'positionType' | 'position'>;
|
|
9456
|
+
};
|
|
9457
|
+
|
|
9385
9458
|
/** @public */
|
|
9386
9459
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
9387
9460
|
|