@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.23.4-
|
|
4
|
+
"version": "7.23.4-26955626649.commit-5d040fd",
|
|
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": "
|
|
38
|
+
"commit": "5d040fd6fe9e018eb005a5c2a85e3419e1ea87a4"
|
|
39
39
|
}
|
|
@@ -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
|
|
|
@@ -15043,7 +15043,7 @@
|
|
|
15043
15043
|
{
|
|
15044
15044
|
"kind": "Function",
|
|
15045
15045
|
"canonicalReference": "@dcl/playground-assets!Composite.instance:function(1)",
|
|
15046
|
-
"docComment": "/**\n * Instance a composite and
|
|
15046
|
+
"docComment": "/**\n * Instance a composite and return its root entity.\n *\n * @param engine - the engine that will own the new entities\n *\n * @param compositeData - the composite resource to instance\n *\n * @param compositeProvider - provider used to resolve nested composite references\n *\n * @param options - instancing options (`rootEntity`, `entityMapping`, `alreadyRequestedSrc`)\n *\n * @returns the root entity of the instanced composite\n *\n * @public\n */\n",
|
|
15047
15047
|
"excerptTokens": [
|
|
15048
15048
|
{
|
|
15049
15049
|
"kind": "Content",
|
|
@@ -15087,7 +15087,12 @@
|
|
|
15087
15087
|
},
|
|
15088
15088
|
{
|
|
15089
15089
|
"kind": "Content",
|
|
15090
|
-
"text": "
|
|
15090
|
+
"text": "import(\"../engine\")."
|
|
15091
|
+
},
|
|
15092
|
+
{
|
|
15093
|
+
"kind": "Reference",
|
|
15094
|
+
"text": "Entity",
|
|
15095
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
15091
15096
|
},
|
|
15092
15097
|
{
|
|
15093
15098
|
"kind": "Content",
|
|
@@ -15096,7 +15101,7 @@
|
|
|
15096
15101
|
],
|
|
15097
15102
|
"returnTypeTokenRange": {
|
|
15098
15103
|
"startIndex": 9,
|
|
15099
|
-
"endIndex":
|
|
15104
|
+
"endIndex": 11
|
|
15100
15105
|
},
|
|
15101
15106
|
"releaseTag": "Public",
|
|
15102
15107
|
"overloadIndex": 1,
|
|
@@ -16378,7 +16383,34 @@
|
|
|
16378
16383
|
},
|
|
16379
16384
|
{
|
|
16380
16385
|
"kind": "Content",
|
|
16381
|
-
"text": " | null;\n
|
|
16386
|
+
"text": " | null;\n loadComposite?: (src: string) => "
|
|
16387
|
+
},
|
|
16388
|
+
{
|
|
16389
|
+
"kind": "Reference",
|
|
16390
|
+
"text": "Promise",
|
|
16391
|
+
"canonicalReference": "!Promise:interface"
|
|
16392
|
+
},
|
|
16393
|
+
{
|
|
16394
|
+
"kind": "Content",
|
|
16395
|
+
"text": "<"
|
|
16396
|
+
},
|
|
16397
|
+
{
|
|
16398
|
+
"kind": "Reference",
|
|
16399
|
+
"text": "CompositeResource",
|
|
16400
|
+
"canonicalReference": "@dcl/playground-assets!CompositeResource:type"
|
|
16401
|
+
},
|
|
16402
|
+
{
|
|
16403
|
+
"kind": "Content",
|
|
16404
|
+
"text": ">;\n schemas?: "
|
|
16405
|
+
},
|
|
16406
|
+
{
|
|
16407
|
+
"kind": "Reference",
|
|
16408
|
+
"text": "Iterable",
|
|
16409
|
+
"canonicalReference": "!Iterable:interface"
|
|
16410
|
+
},
|
|
16411
|
+
{
|
|
16412
|
+
"kind": "Content",
|
|
16413
|
+
"text": "<{\n name: string;\n jsonSchema: any;\n }>;\n}"
|
|
16382
16414
|
},
|
|
16383
16415
|
{
|
|
16384
16416
|
"kind": "Content",
|
|
@@ -16390,7 +16422,7 @@
|
|
|
16390
16422
|
"name": "CompositeProvider",
|
|
16391
16423
|
"typeTokenRange": {
|
|
16392
16424
|
"startIndex": 1,
|
|
16393
|
-
"endIndex":
|
|
16425
|
+
"endIndex": 10
|
|
16394
16426
|
}
|
|
16395
16427
|
},
|
|
16396
16428
|
{
|
|
@@ -21747,6 +21779,39 @@
|
|
|
21747
21779
|
],
|
|
21748
21780
|
"name": "getComponentEntityTree"
|
|
21749
21781
|
},
|
|
21782
|
+
{
|
|
21783
|
+
"kind": "Function",
|
|
21784
|
+
"canonicalReference": "@dcl/playground-assets!getCompositeProvider:function(1)",
|
|
21785
|
+
"docComment": "/**\n * Get the composite provider registered via setCompositeProvider. Returns null if no provider has been set.\n *\n * @public\n */\n",
|
|
21786
|
+
"excerptTokens": [
|
|
21787
|
+
{
|
|
21788
|
+
"kind": "Content",
|
|
21789
|
+
"text": "export declare function getCompositeProvider(): "
|
|
21790
|
+
},
|
|
21791
|
+
{
|
|
21792
|
+
"kind": "Reference",
|
|
21793
|
+
"text": "CompositeProvider",
|
|
21794
|
+
"canonicalReference": "@dcl/playground-assets!CompositeProvider:type"
|
|
21795
|
+
},
|
|
21796
|
+
{
|
|
21797
|
+
"kind": "Content",
|
|
21798
|
+
"text": " | null"
|
|
21799
|
+
},
|
|
21800
|
+
{
|
|
21801
|
+
"kind": "Content",
|
|
21802
|
+
"text": ";"
|
|
21803
|
+
}
|
|
21804
|
+
],
|
|
21805
|
+
"fileUrlPath": "../ecs/dist/composite/provider-registry.d.ts",
|
|
21806
|
+
"returnTypeTokenRange": {
|
|
21807
|
+
"startIndex": 1,
|
|
21808
|
+
"endIndex": 3
|
|
21809
|
+
},
|
|
21810
|
+
"releaseTag": "Public",
|
|
21811
|
+
"overloadIndex": 1,
|
|
21812
|
+
"parameters": [],
|
|
21813
|
+
"name": "getCompositeProvider"
|
|
21814
|
+
},
|
|
21750
21815
|
{
|
|
21751
21816
|
"kind": "Function",
|
|
21752
21817
|
"canonicalReference": "@dcl/playground-assets!getCompositeRootComponent:function(1)",
|
|
@@ -62363,6 +62428,38 @@
|
|
|
62363
62428
|
"endIndex": 3
|
|
62364
62429
|
}
|
|
62365
62430
|
},
|
|
62431
|
+
{
|
|
62432
|
+
"kind": "PropertySignature",
|
|
62433
|
+
"canonicalReference": "@dcl/playground-assets!PBUiCanvasInformation#screenInsetArea:member",
|
|
62434
|
+
"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",
|
|
62435
|
+
"excerptTokens": [
|
|
62436
|
+
{
|
|
62437
|
+
"kind": "Content",
|
|
62438
|
+
"text": "screenInsetArea?: "
|
|
62439
|
+
},
|
|
62440
|
+
{
|
|
62441
|
+
"kind": "Reference",
|
|
62442
|
+
"text": "BorderRect",
|
|
62443
|
+
"canonicalReference": "@dcl/playground-assets!BorderRect"
|
|
62444
|
+
},
|
|
62445
|
+
{
|
|
62446
|
+
"kind": "Content",
|
|
62447
|
+
"text": " | undefined"
|
|
62448
|
+
},
|
|
62449
|
+
{
|
|
62450
|
+
"kind": "Content",
|
|
62451
|
+
"text": ";"
|
|
62452
|
+
}
|
|
62453
|
+
],
|
|
62454
|
+
"isReadonly": false,
|
|
62455
|
+
"isOptional": true,
|
|
62456
|
+
"releaseTag": "Public",
|
|
62457
|
+
"name": "screenInsetArea",
|
|
62458
|
+
"propertyTypeTokenRange": {
|
|
62459
|
+
"startIndex": 1,
|
|
62460
|
+
"endIndex": 3
|
|
62461
|
+
}
|
|
62462
|
+
},
|
|
62366
62463
|
{
|
|
62367
62464
|
"kind": "PropertySignature",
|
|
62368
62465
|
"canonicalReference": "@dcl/playground-assets!PBUiCanvasInformation#width:member",
|
|
@@ -82018,6 +82115,116 @@
|
|
|
82018
82115
|
}
|
|
82019
82116
|
]
|
|
82020
82117
|
},
|
|
82118
|
+
{
|
|
82119
|
+
"kind": "Function",
|
|
82120
|
+
"canonicalReference": "@dcl/playground-assets!ScreenInsetArea:function(1)",
|
|
82121
|
+
"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",
|
|
82122
|
+
"excerptTokens": [
|
|
82123
|
+
{
|
|
82124
|
+
"kind": "Content",
|
|
82125
|
+
"text": "export declare function ScreenInsetArea(props: "
|
|
82126
|
+
},
|
|
82127
|
+
{
|
|
82128
|
+
"kind": "Reference",
|
|
82129
|
+
"text": "UiScreenInsetAreaProps",
|
|
82130
|
+
"canonicalReference": "@dcl/playground-assets!UiScreenInsetAreaProps:type"
|
|
82131
|
+
},
|
|
82132
|
+
{
|
|
82133
|
+
"kind": "Content",
|
|
82134
|
+
"text": "): "
|
|
82135
|
+
},
|
|
82136
|
+
{
|
|
82137
|
+
"kind": "Reference",
|
|
82138
|
+
"text": "ReactEcs.JSX.Element",
|
|
82139
|
+
"canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:interface"
|
|
82140
|
+
},
|
|
82141
|
+
{
|
|
82142
|
+
"kind": "Content",
|
|
82143
|
+
"text": ";"
|
|
82144
|
+
}
|
|
82145
|
+
],
|
|
82146
|
+
"fileUrlPath": "../react-ecs/dist/components/ScreenInsetArea/index.d.ts",
|
|
82147
|
+
"returnTypeTokenRange": {
|
|
82148
|
+
"startIndex": 3,
|
|
82149
|
+
"endIndex": 4
|
|
82150
|
+
},
|
|
82151
|
+
"releaseTag": "Public",
|
|
82152
|
+
"overloadIndex": 1,
|
|
82153
|
+
"parameters": [
|
|
82154
|
+
{
|
|
82155
|
+
"parameterName": "props",
|
|
82156
|
+
"parameterTypeTokenRange": {
|
|
82157
|
+
"startIndex": 1,
|
|
82158
|
+
"endIndex": 2
|
|
82159
|
+
},
|
|
82160
|
+
"isOptional": false
|
|
82161
|
+
}
|
|
82162
|
+
],
|
|
82163
|
+
"name": "ScreenInsetArea"
|
|
82164
|
+
},
|
|
82165
|
+
{
|
|
82166
|
+
"kind": "Function",
|
|
82167
|
+
"canonicalReference": "@dcl/playground-assets!setCompositeProvider:function(1)",
|
|
82168
|
+
"docComment": "/**\n * Register the composite provider used to resolve composite files. Also registers any `provider.schemas` on the engine pre-seal so composites that reference those components can be instanced without further setup.\n *\n * @public\n */\n",
|
|
82169
|
+
"excerptTokens": [
|
|
82170
|
+
{
|
|
82171
|
+
"kind": "Content",
|
|
82172
|
+
"text": "export declare function setCompositeProvider(engine: "
|
|
82173
|
+
},
|
|
82174
|
+
{
|
|
82175
|
+
"kind": "Reference",
|
|
82176
|
+
"text": "IEngine",
|
|
82177
|
+
"canonicalReference": "@dcl/playground-assets!IEngine:interface"
|
|
82178
|
+
},
|
|
82179
|
+
{
|
|
82180
|
+
"kind": "Content",
|
|
82181
|
+
"text": ", provider: "
|
|
82182
|
+
},
|
|
82183
|
+
{
|
|
82184
|
+
"kind": "Reference",
|
|
82185
|
+
"text": "CompositeProvider",
|
|
82186
|
+
"canonicalReference": "@dcl/playground-assets!CompositeProvider:type"
|
|
82187
|
+
},
|
|
82188
|
+
{
|
|
82189
|
+
"kind": "Content",
|
|
82190
|
+
"text": "): "
|
|
82191
|
+
},
|
|
82192
|
+
{
|
|
82193
|
+
"kind": "Content",
|
|
82194
|
+
"text": "void"
|
|
82195
|
+
},
|
|
82196
|
+
{
|
|
82197
|
+
"kind": "Content",
|
|
82198
|
+
"text": ";"
|
|
82199
|
+
}
|
|
82200
|
+
],
|
|
82201
|
+
"fileUrlPath": "../ecs/dist/composite/provider-registry.d.ts",
|
|
82202
|
+
"returnTypeTokenRange": {
|
|
82203
|
+
"startIndex": 5,
|
|
82204
|
+
"endIndex": 6
|
|
82205
|
+
},
|
|
82206
|
+
"releaseTag": "Public",
|
|
82207
|
+
"overloadIndex": 1,
|
|
82208
|
+
"parameters": [
|
|
82209
|
+
{
|
|
82210
|
+
"parameterName": "engine",
|
|
82211
|
+
"parameterTypeTokenRange": {
|
|
82212
|
+
"startIndex": 1,
|
|
82213
|
+
"endIndex": 2
|
|
82214
|
+
},
|
|
82215
|
+
"isOptional": false
|
|
82216
|
+
},
|
|
82217
|
+
{
|
|
82218
|
+
"parameterName": "provider",
|
|
82219
|
+
"parameterTypeTokenRange": {
|
|
82220
|
+
"startIndex": 3,
|
|
82221
|
+
"endIndex": 4
|
|
82222
|
+
},
|
|
82223
|
+
"isOptional": false
|
|
82224
|
+
}
|
|
82225
|
+
],
|
|
82226
|
+
"name": "setCompositeProvider"
|
|
82227
|
+
},
|
|
82021
82228
|
{
|
|
82022
82229
|
"kind": "Function",
|
|
82023
82230
|
"canonicalReference": "@dcl/playground-assets!setGlobalPolyfill:function(1)",
|
|
@@ -89181,6 +89388,73 @@
|
|
|
89181
89388
|
"endIndex": 2
|
|
89182
89389
|
}
|
|
89183
89390
|
},
|
|
89391
|
+
{
|
|
89392
|
+
"kind": "TypeAlias",
|
|
89393
|
+
"canonicalReference": "@dcl/playground-assets!UiScreenInsetAreaProps:type",
|
|
89394
|
+
"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",
|
|
89395
|
+
"excerptTokens": [
|
|
89396
|
+
{
|
|
89397
|
+
"kind": "Content",
|
|
89398
|
+
"text": "export type UiScreenInsetAreaProps = "
|
|
89399
|
+
},
|
|
89400
|
+
{
|
|
89401
|
+
"kind": "Reference",
|
|
89402
|
+
"text": "Omit",
|
|
89403
|
+
"canonicalReference": "!Omit:type"
|
|
89404
|
+
},
|
|
89405
|
+
{
|
|
89406
|
+
"kind": "Content",
|
|
89407
|
+
"text": "<"
|
|
89408
|
+
},
|
|
89409
|
+
{
|
|
89410
|
+
"kind": "Reference",
|
|
89411
|
+
"text": "EntityPropTypes",
|
|
89412
|
+
"canonicalReference": "@dcl/playground-assets!EntityPropTypes:interface"
|
|
89413
|
+
},
|
|
89414
|
+
{
|
|
89415
|
+
"kind": "Content",
|
|
89416
|
+
"text": ", 'uiTransform'> & {\n uiTransform?: "
|
|
89417
|
+
},
|
|
89418
|
+
{
|
|
89419
|
+
"kind": "Reference",
|
|
89420
|
+
"text": "Omit",
|
|
89421
|
+
"canonicalReference": "!Omit:type"
|
|
89422
|
+
},
|
|
89423
|
+
{
|
|
89424
|
+
"kind": "Content",
|
|
89425
|
+
"text": "<"
|
|
89426
|
+
},
|
|
89427
|
+
{
|
|
89428
|
+
"kind": "Reference",
|
|
89429
|
+
"text": "NonNullable",
|
|
89430
|
+
"canonicalReference": "!NonNullable:type"
|
|
89431
|
+
},
|
|
89432
|
+
{
|
|
89433
|
+
"kind": "Content",
|
|
89434
|
+
"text": "<"
|
|
89435
|
+
},
|
|
89436
|
+
{
|
|
89437
|
+
"kind": "Reference",
|
|
89438
|
+
"text": "EntityPropTypes",
|
|
89439
|
+
"canonicalReference": "@dcl/playground-assets!EntityPropTypes:interface"
|
|
89440
|
+
},
|
|
89441
|
+
{
|
|
89442
|
+
"kind": "Content",
|
|
89443
|
+
"text": "['uiTransform']>, 'positionType' | 'position'>;\n}"
|
|
89444
|
+
},
|
|
89445
|
+
{
|
|
89446
|
+
"kind": "Content",
|
|
89447
|
+
"text": ";"
|
|
89448
|
+
}
|
|
89449
|
+
],
|
|
89450
|
+
"fileUrlPath": "../react-ecs/dist/components/ScreenInsetArea/types.d.ts",
|
|
89451
|
+
"releaseTag": "Public",
|
|
89452
|
+
"name": "UiScreenInsetAreaProps",
|
|
89453
|
+
"typeTokenRange": {
|
|
89454
|
+
"startIndex": 1,
|
|
89455
|
+
"endIndex": 11
|
|
89456
|
+
}
|
|
89457
|
+
},
|
|
89184
89458
|
{
|
|
89185
89459
|
"kind": "Variable",
|
|
89186
89460
|
"canonicalReference": "@dcl/playground-assets!UiText:var",
|
|
@@ -764,7 +764,7 @@ export namespace Composite {
|
|
|
764
764
|
export function fromBinary(buffer: Uint8Array): Composite.Definition;
|
|
765
765
|
// (undocumented)
|
|
766
766
|
export function fromJson(object: any): Composite.Definition;
|
|
767
|
-
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions):
|
|
767
|
+
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
768
768
|
// (undocumented)
|
|
769
769
|
export type Provider = CompositeProvider;
|
|
770
770
|
export function resolveAndNormalizePath(src: string, cwd?: string): string;
|
|
@@ -841,6 +841,11 @@ export namespace CompositeDefinition {
|
|
|
841
841
|
// @public (undocumented)
|
|
842
842
|
export type CompositeProvider = {
|
|
843
843
|
getCompositeOrNull(src: string): CompositeResource | null;
|
|
844
|
+
loadComposite?: (src: string) => Promise<CompositeResource>;
|
|
845
|
+
schemas?: Iterable<{
|
|
846
|
+
name: string;
|
|
847
|
+
jsonSchema: any;
|
|
848
|
+
}>;
|
|
844
849
|
};
|
|
845
850
|
|
|
846
851
|
// @public (undocumented)
|
|
@@ -1306,6 +1311,9 @@ export function getComponentEntityTree<T>(engine: Pick<IEngine, 'getEntitiesWith
|
|
|
1306
1311
|
parent?: Entity;
|
|
1307
1312
|
}>): Generator<Entity>;
|
|
1308
1313
|
|
|
1314
|
+
// @public
|
|
1315
|
+
export function getCompositeProvider(): CompositeProvider | null;
|
|
1316
|
+
|
|
1309
1317
|
// @public @deprecated (undocumented)
|
|
1310
1318
|
export function getCompositeRootComponent(engine: IEngine): LastWriteWinElementSetComponentDefinition<CompositeRootType>;
|
|
1311
1319
|
|
|
@@ -3727,6 +3735,7 @@ export interface PBUiCanvasInformation {
|
|
|
3727
3735
|
devicePixelRatio: number;
|
|
3728
3736
|
height: number;
|
|
3729
3737
|
interactableArea: BorderRect | undefined;
|
|
3738
|
+
screenInsetArea?: BorderRect | undefined;
|
|
3730
3739
|
width: number;
|
|
3731
3740
|
}
|
|
3732
3741
|
|
|
@@ -4756,6 +4765,14 @@ export namespace Schemas {
|
|
|
4756
4765
|
}) => void;
|
|
4757
4766
|
}
|
|
4758
4767
|
|
|
4768
|
+
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@category" is not defined in this configuration
|
|
4769
|
+
//
|
|
4770
|
+
// @public
|
|
4771
|
+
export function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
4772
|
+
|
|
4773
|
+
// @public
|
|
4774
|
+
export function setCompositeProvider(engine: IEngine, provider: CompositeProvider): void;
|
|
4775
|
+
|
|
4759
4776
|
// @public
|
|
4760
4777
|
export function setGlobalPolyfill<T>(key: string, value: T): void;
|
|
4761
4778
|
|
|
@@ -5300,6 +5317,11 @@ export type UiRendererOptions = {
|
|
|
5300
5317
|
virtualHeight: number;
|
|
5301
5318
|
};
|
|
5302
5319
|
|
|
5320
|
+
// @public
|
|
5321
|
+
export type UiScreenInsetAreaProps = Omit<EntityPropTypes, 'uiTransform'> & {
|
|
5322
|
+
uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'positionType' | 'position'>;
|
|
5323
|
+
};
|
|
5324
|
+
|
|
5303
5325
|
// @public (undocumented)
|
|
5304
5326
|
export const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
5305
5327
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.23.4-
|
|
4
|
+
"version": "7.23.4-26955626649.commit-5d040fd",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.23.4-
|
|
8
|
-
"@dcl/sdk": "7.23.4-
|
|
7
|
+
"@dcl/js-runtime": "7.23.4-26955626649.commit-5d040fd",
|
|
8
|
+
"@dcl/sdk": "7.23.4-26955626649.commit-5d040fd"
|
|
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": "
|
|
35
|
+
"commit": "5d040fd6fe9e018eb005a5c2a85e3419e1ea87a4"
|
|
36
36
|
}
|