@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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.23.4-26723618219.commit-ea97433",
4
+ "version": "7.23.4-26770223094.commit-52b9415",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -35,5 +35,5 @@
35
35
  },
36
36
  "types": "./index.d.ts",
37
37
  "typings": "./index.d.ts",
38
- "commit": "ea974331caffe948877a5bfadb0dc458ae60e15a"
38
+ "commit": "52b9415ebab8c77313e9fbc0725fd2e5f916d3c3"
39
39
  }
@@ -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
 
@@ -62363,6 +62363,38 @@
62363
62363
  "endIndex": 3
62364
62364
  }
62365
62365
  },
62366
+ {
62367
+ "kind": "PropertySignature",
62368
+ "canonicalReference": "@dcl/playground-assets!PBUiCanvasInformation#screenInsetArea:member",
62369
+ "docComment": "/**\n * informs the sdk about the screen inset area (safe margins). these are the insets from each edge of the screen that are reserved by the device or platform UI (for example: the notch, status bar, home indicator, or rounded corners on mobile). scenes should avoid placing critical UI within these insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).\n */\n",
62370
+ "excerptTokens": [
62371
+ {
62372
+ "kind": "Content",
62373
+ "text": "screenInsetArea?: "
62374
+ },
62375
+ {
62376
+ "kind": "Reference",
62377
+ "text": "BorderRect",
62378
+ "canonicalReference": "@dcl/playground-assets!BorderRect"
62379
+ },
62380
+ {
62381
+ "kind": "Content",
62382
+ "text": " | undefined"
62383
+ },
62384
+ {
62385
+ "kind": "Content",
62386
+ "text": ";"
62387
+ }
62388
+ ],
62389
+ "isReadonly": false,
62390
+ "isOptional": true,
62391
+ "releaseTag": "Public",
62392
+ "name": "screenInsetArea",
62393
+ "propertyTypeTokenRange": {
62394
+ "startIndex": 1,
62395
+ "endIndex": 3
62396
+ }
62397
+ },
62366
62398
  {
62367
62399
  "kind": "PropertySignature",
62368
62400
  "canonicalReference": "@dcl/playground-assets!PBUiCanvasInformation#width:member",
@@ -82018,6 +82050,53 @@
82018
82050
  }
82019
82051
  ]
82020
82052
  },
82053
+ {
82054
+ "kind": "Function",
82055
+ "canonicalReference": "@dcl/playground-assets!ScreenInsetArea:function(1)",
82056
+ "docComment": "/**\n * ScreenInsetArea component\n *\n * Constrains its children to the area inside the renderer-reported screen inset (safe margins). On mobile this is the area excluding the notch, status bar, home indicator and rounded corners. On desktop the insets are typically zero, so the container fills the canvas.\n *\n * The container is absolutely positioned with top/left/right/bottom matching the current `UiCanvasInformation.screenInsetArea`, so a child sized 100%x100% fills the safe area exactly.\n *\n * @example\n *\n * <ScreenInsetArea><MyHud /></ScreenInsetArea>\n *\n * @category Component\n *\n * @public\n */\n",
82057
+ "excerptTokens": [
82058
+ {
82059
+ "kind": "Content",
82060
+ "text": "export declare function ScreenInsetArea(props: "
82061
+ },
82062
+ {
82063
+ "kind": "Reference",
82064
+ "text": "UiScreenInsetAreaProps",
82065
+ "canonicalReference": "@dcl/playground-assets!UiScreenInsetAreaProps:type"
82066
+ },
82067
+ {
82068
+ "kind": "Content",
82069
+ "text": "): "
82070
+ },
82071
+ {
82072
+ "kind": "Reference",
82073
+ "text": "ReactEcs.JSX.Element",
82074
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:interface"
82075
+ },
82076
+ {
82077
+ "kind": "Content",
82078
+ "text": ";"
82079
+ }
82080
+ ],
82081
+ "fileUrlPath": "../react-ecs/dist/components/ScreenInsetArea/index.d.ts",
82082
+ "returnTypeTokenRange": {
82083
+ "startIndex": 3,
82084
+ "endIndex": 4
82085
+ },
82086
+ "releaseTag": "Public",
82087
+ "overloadIndex": 1,
82088
+ "parameters": [
82089
+ {
82090
+ "parameterName": "props",
82091
+ "parameterTypeTokenRange": {
82092
+ "startIndex": 1,
82093
+ "endIndex": 2
82094
+ },
82095
+ "isOptional": false
82096
+ }
82097
+ ],
82098
+ "name": "ScreenInsetArea"
82099
+ },
82021
82100
  {
82022
82101
  "kind": "Function",
82023
82102
  "canonicalReference": "@dcl/playground-assets!setGlobalPolyfill:function(1)",
@@ -89181,6 +89260,73 @@
89181
89260
  "endIndex": 2
89182
89261
  }
89183
89262
  },
89263
+ {
89264
+ "kind": "TypeAlias",
89265
+ "canonicalReference": "@dcl/playground-assets!UiScreenInsetAreaProps:type",
89266
+ "docComment": "/**\n * ScreenInsetArea component props\n *\n * The container reads the current `screenInsetArea` reported by the renderer via `UiCanvasInformation` (the device safe margins — notch, status bar, home indicator, rounded corners) and constrains its children to the area inside those insets using absolute positioning. Layout props that control the container's own position (`positionType`, `position`) are owned by the component and are not configurable from props — every other layout, background and event prop is forwarded as usual.\n *\n * @public\n */\n",
89267
+ "excerptTokens": [
89268
+ {
89269
+ "kind": "Content",
89270
+ "text": "export type UiScreenInsetAreaProps = "
89271
+ },
89272
+ {
89273
+ "kind": "Reference",
89274
+ "text": "Omit",
89275
+ "canonicalReference": "!Omit:type"
89276
+ },
89277
+ {
89278
+ "kind": "Content",
89279
+ "text": "<"
89280
+ },
89281
+ {
89282
+ "kind": "Reference",
89283
+ "text": "EntityPropTypes",
89284
+ "canonicalReference": "@dcl/playground-assets!EntityPropTypes:interface"
89285
+ },
89286
+ {
89287
+ "kind": "Content",
89288
+ "text": ", 'uiTransform'> & {\n uiTransform?: "
89289
+ },
89290
+ {
89291
+ "kind": "Reference",
89292
+ "text": "Omit",
89293
+ "canonicalReference": "!Omit:type"
89294
+ },
89295
+ {
89296
+ "kind": "Content",
89297
+ "text": "<"
89298
+ },
89299
+ {
89300
+ "kind": "Reference",
89301
+ "text": "NonNullable",
89302
+ "canonicalReference": "!NonNullable:type"
89303
+ },
89304
+ {
89305
+ "kind": "Content",
89306
+ "text": "<"
89307
+ },
89308
+ {
89309
+ "kind": "Reference",
89310
+ "text": "EntityPropTypes",
89311
+ "canonicalReference": "@dcl/playground-assets!EntityPropTypes:interface"
89312
+ },
89313
+ {
89314
+ "kind": "Content",
89315
+ "text": "['uiTransform']>, 'positionType' | 'position'>;\n}"
89316
+ },
89317
+ {
89318
+ "kind": "Content",
89319
+ "text": ";"
89320
+ }
89321
+ ],
89322
+ "fileUrlPath": "../react-ecs/dist/components/ScreenInsetArea/types.d.ts",
89323
+ "releaseTag": "Public",
89324
+ "name": "UiScreenInsetAreaProps",
89325
+ "typeTokenRange": {
89326
+ "startIndex": 1,
89327
+ "endIndex": 11
89328
+ }
89329
+ },
89184
89330
  {
89185
89331
  "kind": "Variable",
89186
89332
  "canonicalReference": "@dcl/playground-assets!UiText:var",
@@ -3727,6 +3727,7 @@ export interface PBUiCanvasInformation {
3727
3727
  devicePixelRatio: number;
3728
3728
  height: number;
3729
3729
  interactableArea: BorderRect | undefined;
3730
+ screenInsetArea?: BorderRect | undefined;
3730
3731
  width: number;
3731
3732
  }
3732
3733
 
@@ -4756,6 +4757,11 @@ export namespace Schemas {
4756
4757
  }) => void;
4757
4758
  }
4758
4759
 
4760
+ // Warning: (tsdoc-undefined-tag) The TSDoc tag "@category" is not defined in this configuration
4761
+ //
4762
+ // @public
4763
+ export function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
4764
+
4759
4765
  // @public
4760
4766
  export function setGlobalPolyfill<T>(key: string, value: T): void;
4761
4767
 
@@ -5300,6 +5306,11 @@ export type UiRendererOptions = {
5300
5306
  virtualHeight: number;
5301
5307
  };
5302
5308
 
5309
+ // @public
5310
+ export type UiScreenInsetAreaProps = Omit<EntityPropTypes, 'uiTransform'> & {
5311
+ uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'positionType' | 'position'>;
5312
+ };
5313
+
5303
5314
  // @public (undocumented)
5304
5315
  export const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
5305
5316
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.23.4-26723618219.commit-ea97433",
4
+ "version": "7.23.4-26770223094.commit-52b9415",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.23.4-26723618219.commit-ea97433",
8
- "@dcl/sdk": "7.23.4-26723618219.commit-ea97433"
7
+ "@dcl/js-runtime": "7.23.4-26770223094.commit-52b9415",
8
+ "@dcl/sdk": "7.23.4-26770223094.commit-52b9415"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@microsoft/api-extractor": "^7.33.8"
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "typings": "./dist/index.d.ts",
35
- "commit": "ea974331caffe948877a5bfadb0dc458ae60e15a"
35
+ "commit": "52b9415ebab8c77313e9fbc0725fd2e5f916d3c3"
36
36
  }