@dcl/playground-assets 7.23.4-26723618219.commit-ea97433 → 7.23.4-26770223094.commit-52b9415
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 +51 -0
- package/dist/beta.d.ts +51 -0
- package/dist/index.bundled.d.ts +51 -0
- package/dist/index.js +5 -5
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +51 -0
- package/etc/playground-assets.api.json +146 -0
- package/etc/playground-assets.api.md +11 -0
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -6570,6 +6570,14 @@ export declare interface PBUiCanvasInformation {
|
|
|
6570
6570
|
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
6571
6571
|
*/
|
|
6572
6572
|
interactableArea: BorderRect | undefined;
|
|
6573
|
+
/**
|
|
6574
|
+
* informs the sdk about the screen inset area (safe margins). these are the
|
|
6575
|
+
* insets from each edge of the screen that are reserved by the device or
|
|
6576
|
+
* platform UI (for example: the notch, status bar, home indicator, or rounded
|
|
6577
|
+
* corners on mobile). scenes should avoid placing critical UI within these
|
|
6578
|
+
* insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).
|
|
6579
|
+
*/
|
|
6580
|
+
screenInsetArea?: BorderRect | undefined;
|
|
6573
6581
|
}
|
|
6574
6582
|
|
|
6575
6583
|
/**
|
|
@@ -8560,6 +8568,27 @@ export declare namespace Schemas {
|
|
|
8560
8568
|
}) => void;
|
|
8561
8569
|
}
|
|
8562
8570
|
|
|
8571
|
+
/**
|
|
8572
|
+
*
|
|
8573
|
+
* @public
|
|
8574
|
+
* ScreenInsetArea component
|
|
8575
|
+
*
|
|
8576
|
+
* Constrains its children to the area inside the renderer-reported screen
|
|
8577
|
+
* inset (safe margins). On mobile this is the area excluding the notch,
|
|
8578
|
+
* status bar, home indicator and rounded corners. On desktop the insets are
|
|
8579
|
+
* typically zero, so the container fills the canvas.
|
|
8580
|
+
*
|
|
8581
|
+
* The container is absolutely positioned with top/left/right/bottom matching
|
|
8582
|
+
* the current `UiCanvasInformation.screenInsetArea`, so a child sized
|
|
8583
|
+
* 100%x100% fills the safe area exactly.
|
|
8584
|
+
*
|
|
8585
|
+
* @example
|
|
8586
|
+
* <ScreenInsetArea><MyHud /></ScreenInsetArea>
|
|
8587
|
+
*
|
|
8588
|
+
* @category Component
|
|
8589
|
+
*/
|
|
8590
|
+
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8591
|
+
|
|
8563
8592
|
/**
|
|
8564
8593
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8565
8594
|
* @public
|
|
@@ -9415,6 +9444,28 @@ export declare type UiRendererOptions = {
|
|
|
9415
9444
|
virtualHeight: number;
|
|
9416
9445
|
};
|
|
9417
9446
|
|
|
9447
|
+
/**
|
|
9448
|
+
* ScreenInsetArea component props
|
|
9449
|
+
*
|
|
9450
|
+
* The container reads the current `screenInsetArea` reported by the renderer
|
|
9451
|
+
* via `UiCanvasInformation` (the device safe margins — notch, status bar,
|
|
9452
|
+
* home indicator, rounded corners) and constrains its children to the area
|
|
9453
|
+
* inside those insets using absolute positioning. Layout props that control
|
|
9454
|
+
* the container's own position (`positionType`, `position`) are owned by the
|
|
9455
|
+
* component and are not configurable from props — every other layout,
|
|
9456
|
+
* background and event prop is forwarded as usual.
|
|
9457
|
+
*
|
|
9458
|
+
* @public
|
|
9459
|
+
*/
|
|
9460
|
+
export declare type UiScreenInsetAreaProps = Omit<EntityPropTypes, 'uiTransform'> & {
|
|
9461
|
+
/**
|
|
9462
|
+
* Layout overrides forwarded to the underlying entity. The
|
|
9463
|
+
* `positionType` and `position` fields are reserved by the container and
|
|
9464
|
+
* any value provided here is ignored.
|
|
9465
|
+
*/
|
|
9466
|
+
uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'positionType' | 'position'>;
|
|
9467
|
+
};
|
|
9468
|
+
|
|
9418
9469
|
/** @public */
|
|
9419
9470
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
9420
9471
|
|
package/dist/beta.d.ts
CHANGED
|
@@ -6542,6 +6542,14 @@ export declare interface PBUiCanvasInformation {
|
|
|
6542
6542
|
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
6543
6543
|
*/
|
|
6544
6544
|
interactableArea: BorderRect | undefined;
|
|
6545
|
+
/**
|
|
6546
|
+
* informs the sdk about the screen inset area (safe margins). these are the
|
|
6547
|
+
* insets from each edge of the screen that are reserved by the device or
|
|
6548
|
+
* platform UI (for example: the notch, status bar, home indicator, or rounded
|
|
6549
|
+
* corners on mobile). scenes should avoid placing critical UI within these
|
|
6550
|
+
* insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).
|
|
6551
|
+
*/
|
|
6552
|
+
screenInsetArea?: BorderRect | undefined;
|
|
6545
6553
|
}
|
|
6546
6554
|
|
|
6547
6555
|
/**
|
|
@@ -8532,6 +8540,27 @@ export declare namespace Schemas {
|
|
|
8532
8540
|
}) => void;
|
|
8533
8541
|
}
|
|
8534
8542
|
|
|
8543
|
+
/**
|
|
8544
|
+
*
|
|
8545
|
+
* @public
|
|
8546
|
+
* ScreenInsetArea component
|
|
8547
|
+
*
|
|
8548
|
+
* Constrains its children to the area inside the renderer-reported screen
|
|
8549
|
+
* inset (safe margins). On mobile this is the area excluding the notch,
|
|
8550
|
+
* status bar, home indicator and rounded corners. On desktop the insets are
|
|
8551
|
+
* typically zero, so the container fills the canvas.
|
|
8552
|
+
*
|
|
8553
|
+
* The container is absolutely positioned with top/left/right/bottom matching
|
|
8554
|
+
* the current `UiCanvasInformation.screenInsetArea`, so a child sized
|
|
8555
|
+
* 100%x100% fills the safe area exactly.
|
|
8556
|
+
*
|
|
8557
|
+
* @example
|
|
8558
|
+
* <ScreenInsetArea><MyHud /></ScreenInsetArea>
|
|
8559
|
+
*
|
|
8560
|
+
* @category Component
|
|
8561
|
+
*/
|
|
8562
|
+
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8563
|
+
|
|
8535
8564
|
/**
|
|
8536
8565
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8537
8566
|
* @public
|
|
@@ -9382,6 +9411,28 @@ export declare type UiRendererOptions = {
|
|
|
9382
9411
|
virtualHeight: number;
|
|
9383
9412
|
};
|
|
9384
9413
|
|
|
9414
|
+
/**
|
|
9415
|
+
* ScreenInsetArea component props
|
|
9416
|
+
*
|
|
9417
|
+
* The container reads the current `screenInsetArea` reported by the renderer
|
|
9418
|
+
* via `UiCanvasInformation` (the device safe margins — notch, status bar,
|
|
9419
|
+
* home indicator, rounded corners) and constrains its children to the area
|
|
9420
|
+
* inside those insets using absolute positioning. Layout props that control
|
|
9421
|
+
* the container's own position (`positionType`, `position`) are owned by the
|
|
9422
|
+
* component and are not configurable from props — every other layout,
|
|
9423
|
+
* background and event prop is forwarded as usual.
|
|
9424
|
+
*
|
|
9425
|
+
* @public
|
|
9426
|
+
*/
|
|
9427
|
+
export declare type UiScreenInsetAreaProps = Omit<EntityPropTypes, 'uiTransform'> & {
|
|
9428
|
+
/**
|
|
9429
|
+
* Layout overrides forwarded to the underlying entity. The
|
|
9430
|
+
* `positionType` and `position` fields are reserved by the container and
|
|
9431
|
+
* any value provided here is ignored.
|
|
9432
|
+
*/
|
|
9433
|
+
uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'positionType' | 'position'>;
|
|
9434
|
+
};
|
|
9435
|
+
|
|
9385
9436
|
/** @public */
|
|
9386
9437
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
9387
9438
|
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -6542,6 +6542,14 @@ export declare interface PBUiCanvasInformation {
|
|
|
6542
6542
|
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
6543
6543
|
*/
|
|
6544
6544
|
interactableArea: BorderRect | undefined;
|
|
6545
|
+
/**
|
|
6546
|
+
* informs the sdk about the screen inset area (safe margins). these are the
|
|
6547
|
+
* insets from each edge of the screen that are reserved by the device or
|
|
6548
|
+
* platform UI (for example: the notch, status bar, home indicator, or rounded
|
|
6549
|
+
* corners on mobile). scenes should avoid placing critical UI within these
|
|
6550
|
+
* insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).
|
|
6551
|
+
*/
|
|
6552
|
+
screenInsetArea?: BorderRect | undefined;
|
|
6545
6553
|
}
|
|
6546
6554
|
|
|
6547
6555
|
/**
|
|
@@ -8532,6 +8540,27 @@ export declare namespace Schemas {
|
|
|
8532
8540
|
}) => void;
|
|
8533
8541
|
}
|
|
8534
8542
|
|
|
8543
|
+
/**
|
|
8544
|
+
*
|
|
8545
|
+
* @public
|
|
8546
|
+
* ScreenInsetArea component
|
|
8547
|
+
*
|
|
8548
|
+
* Constrains its children to the area inside the renderer-reported screen
|
|
8549
|
+
* inset (safe margins). On mobile this is the area excluding the notch,
|
|
8550
|
+
* status bar, home indicator and rounded corners. On desktop the insets are
|
|
8551
|
+
* typically zero, so the container fills the canvas.
|
|
8552
|
+
*
|
|
8553
|
+
* The container is absolutely positioned with top/left/right/bottom matching
|
|
8554
|
+
* the current `UiCanvasInformation.screenInsetArea`, so a child sized
|
|
8555
|
+
* 100%x100% fills the safe area exactly.
|
|
8556
|
+
*
|
|
8557
|
+
* @example
|
|
8558
|
+
* <ScreenInsetArea><MyHud /></ScreenInsetArea>
|
|
8559
|
+
*
|
|
8560
|
+
* @category Component
|
|
8561
|
+
*/
|
|
8562
|
+
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8563
|
+
|
|
8535
8564
|
/**
|
|
8536
8565
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8537
8566
|
* @public
|
|
@@ -9382,6 +9411,28 @@ export declare type UiRendererOptions = {
|
|
|
9382
9411
|
virtualHeight: number;
|
|
9383
9412
|
};
|
|
9384
9413
|
|
|
9414
|
+
/**
|
|
9415
|
+
* ScreenInsetArea component props
|
|
9416
|
+
*
|
|
9417
|
+
* The container reads the current `screenInsetArea` reported by the renderer
|
|
9418
|
+
* via `UiCanvasInformation` (the device safe margins — notch, status bar,
|
|
9419
|
+
* home indicator, rounded corners) and constrains its children to the area
|
|
9420
|
+
* inside those insets using absolute positioning. Layout props that control
|
|
9421
|
+
* the container's own position (`positionType`, `position`) are owned by the
|
|
9422
|
+
* component and are not configurable from props — every other layout,
|
|
9423
|
+
* background and event prop is forwarded as usual.
|
|
9424
|
+
*
|
|
9425
|
+
* @public
|
|
9426
|
+
*/
|
|
9427
|
+
export declare type UiScreenInsetAreaProps = Omit<EntityPropTypes, 'uiTransform'> & {
|
|
9428
|
+
/**
|
|
9429
|
+
* Layout overrides forwarded to the underlying entity. The
|
|
9430
|
+
* `positionType` and `position` fields are reserved by the container and
|
|
9431
|
+
* any value provided here is ignored.
|
|
9432
|
+
*/
|
|
9433
|
+
uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'positionType' | 'position'>;
|
|
9434
|
+
};
|
|
9435
|
+
|
|
9385
9436
|
/** @public */
|
|
9386
9437
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
9387
9438
|
|