@dcl/playground-assets 7.0.6-4153633895.commit-4aad233 → 7.0.6-4177592674.commit-39cdc99
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 +22 -7
- package/dist/beta.d.ts +22 -7
- package/dist/index.bundled.d.ts +22 -7
- package/dist/index.js +90 -57
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground/snippets/ui-backgrounds.tsx +5 -26
- package/dist/playground/snippets/ui.tsx +4 -21
- package/dist/playground-assets.d.ts +22 -7
- package/etc/playground-assets.api.json +151 -11
- package/etc/playground-assets.api.md +10 -5
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
|
-
"version": "7.0.6-
|
|
3
|
+
"version": "7.0.6-4177592674.commit-39cdc99",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"displayName": "SDK",
|
|
58
58
|
"tsconfig": "./tsconfig.json"
|
|
59
59
|
},
|
|
60
|
-
"commit": "
|
|
60
|
+
"commit": "39cdc99ea857c63f707ec9188836116d838fa10e"
|
|
61
61
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { engine } from '@dcl/sdk/ecs'
|
|
2
2
|
import { Color4 } from '@dcl/sdk/math'
|
|
3
|
-
import ReactEcs, {
|
|
4
|
-
UiEntity,
|
|
5
|
-
Label,
|
|
6
|
-
ReactEcsRenderer,
|
|
7
|
-
Dropdown
|
|
8
|
-
} from '@dcl/sdk/react-ecs'
|
|
3
|
+
import ReactEcs, { UiEntity, Label, ReactEcsRenderer, Dropdown } from '@dcl/sdk/react-ecs'
|
|
9
4
|
|
|
10
5
|
type GenesisPlazaContent = string
|
|
11
6
|
const src: GenesisPlazaContent = 'images/rounded_alpha_square.png'
|
|
@@ -21,11 +16,7 @@ engine.addSystem((t) => {
|
|
|
21
16
|
let currentValue = 0
|
|
22
17
|
const options = [
|
|
23
18
|
function StretchAndTint() {
|
|
24
|
-
const tint2 = Color4.lerp(
|
|
25
|
-
Color4.Red(),
|
|
26
|
-
Color4.Blue(),
|
|
27
|
-
1 + Math.sin(dt + Math.cos(dt * 0.3)) * 0.5
|
|
28
|
-
)
|
|
19
|
+
const tint2 = Color4.lerp(Color4.Red(), Color4.Blue(), 1 + Math.sin(dt + Math.cos(dt * 0.3)) * 0.5)
|
|
29
20
|
return (
|
|
30
21
|
<UiEntity
|
|
31
22
|
uiTransform={{
|
|
@@ -45,11 +36,7 @@ const options = [
|
|
|
45
36
|
)
|
|
46
37
|
},
|
|
47
38
|
function NineSlicesAndTint() {
|
|
48
|
-
const tint = Color4.lerp(
|
|
49
|
-
Color4.Red(),
|
|
50
|
-
Color4.Blue(),
|
|
51
|
-
1 + Math.sin(dt + Math.cos(dt * 0.3)) * 0.5
|
|
52
|
-
)
|
|
39
|
+
const tint = Color4.lerp(Color4.Red(), Color4.Blue(), 1 + Math.sin(dt + Math.cos(dt * 0.3)) * 0.5)
|
|
53
40
|
return (
|
|
54
41
|
<UiEntity
|
|
55
42
|
uiTransform={{
|
|
@@ -64,11 +51,7 @@ const options = [
|
|
|
64
51
|
}
|
|
65
52
|
}}
|
|
66
53
|
>
|
|
67
|
-
<Label
|
|
68
|
-
value="NINE_SLICES + TINT"
|
|
69
|
-
color={Color4.Black()}
|
|
70
|
-
fontSize={29}
|
|
71
|
-
/>
|
|
54
|
+
<Label value="NINE_SLICES + TINT" color={Color4.Black()} fontSize={29} />
|
|
72
55
|
</UiEntity>
|
|
73
56
|
)
|
|
74
57
|
},
|
|
@@ -119,11 +102,7 @@ const options = [
|
|
|
119
102
|
}
|
|
120
103
|
}}
|
|
121
104
|
>
|
|
122
|
-
<Label
|
|
123
|
-
value={`NINE_SLICES (with margins ${margin.toFixed(2)})`}
|
|
124
|
-
color={Color4.Red()}
|
|
125
|
-
fontSize={29}
|
|
126
|
-
/>
|
|
105
|
+
<Label value={`NINE_SLICES (with margins ${margin.toFixed(2)})`} color={Color4.Red()} fontSize={29} />
|
|
127
106
|
</UiEntity>
|
|
128
107
|
)
|
|
129
108
|
},
|
|
@@ -32,11 +32,7 @@ export const uiComponent = () => (
|
|
|
32
32
|
display: 'flex'
|
|
33
33
|
}}
|
|
34
34
|
>
|
|
35
|
-
<Label
|
|
36
|
-
value="SDK 7"
|
|
37
|
-
fontSize={80}
|
|
38
|
-
uiBackground={{ color: Color4.fromHexString('#fbf0f0') }}
|
|
39
|
-
/>
|
|
35
|
+
<Label value="SDK 7" fontSize={80} uiBackground={{ color: Color4.fromHexString('#fbf0f0') }} />
|
|
40
36
|
</UiEntity>
|
|
41
37
|
<UiEntity
|
|
42
38
|
uiTransform={{
|
|
@@ -47,11 +43,7 @@ export const uiComponent = () => (
|
|
|
47
43
|
display: 'flex'
|
|
48
44
|
}}
|
|
49
45
|
>
|
|
50
|
-
<Label
|
|
51
|
-
value={`Counter: ${counter}`}
|
|
52
|
-
fontSize={60}
|
|
53
|
-
uiBackground={{ color: Color4.fromHexString('#fbf0f0') }}
|
|
54
|
-
/>
|
|
46
|
+
<Label value={`Counter: ${counter}`} fontSize={60} uiBackground={{ color: Color4.fromHexString('#fbf0f0') }} />
|
|
55
47
|
</UiEntity>
|
|
56
48
|
<UiEntity
|
|
57
49
|
uiTransform={{
|
|
@@ -106,10 +98,7 @@ function createCube(x: number, y: number, z: number, spawner = true): Entity {
|
|
|
106
98
|
|
|
107
99
|
// Systems
|
|
108
100
|
function circularSystem(dt: number) {
|
|
109
|
-
const entitiesWithMeshRenderer = engine.getEntitiesWith(
|
|
110
|
-
MeshRenderer,
|
|
111
|
-
Transform
|
|
112
|
-
)
|
|
101
|
+
const entitiesWithMeshRenderer = engine.getEntitiesWith(MeshRenderer, Transform)
|
|
113
102
|
for (const [entity, _meshRenderer, _transform] of entitiesWithMeshRenderer) {
|
|
114
103
|
const mutableTransform = Transform.getMutable(entity)
|
|
115
104
|
|
|
@@ -123,13 +112,7 @@ function circularSystem(dt: number) {
|
|
|
123
112
|
function spawnerSystem() {
|
|
124
113
|
const clickedCubes = engine.getEntitiesWith(PointerEvents)
|
|
125
114
|
for (const [entity] of clickedCubes) {
|
|
126
|
-
if (
|
|
127
|
-
inputSystem.isTriggered(
|
|
128
|
-
InputAction.IA_PRIMARY,
|
|
129
|
-
PointerEventType.PET_DOWN,
|
|
130
|
-
entity
|
|
131
|
-
)
|
|
132
|
-
) {
|
|
115
|
+
if (inputSystem.isTriggered(InputAction.IA_PRIMARY, PointerEventType.PET_DOWN, entity)) {
|
|
133
116
|
counter++
|
|
134
117
|
}
|
|
135
118
|
}
|
|
@@ -3767,6 +3767,20 @@ export declare interface Position {
|
|
|
3767
3767
|
left: PositionUnit;
|
|
3768
3768
|
}
|
|
3769
3769
|
|
|
3770
|
+
/**
|
|
3771
|
+
* The values are in clockwise order, beginning at the top: top, right, bottom, then left
|
|
3772
|
+
|
|
3773
|
+
* When one value is specified, it applies the same margin to all four sides.
|
|
3774
|
+
*
|
|
3775
|
+
* When two values are specified, the first margin applies to the top and bottom, the second to the left and right.
|
|
3776
|
+
*
|
|
3777
|
+
* When three values are specified, the first margin applies to the top, the second to the left and right, the third to the bottom.
|
|
3778
|
+
*
|
|
3779
|
+
When four values are specified, the margins apply to the top, right, bottom, and left in that order (clockwise).
|
|
3780
|
+
* @public
|
|
3781
|
+
*/
|
|
3782
|
+
export declare type PositionShorthand = PositionUnit | `${PositionUnit} ${PositionUnit}` | `${PositionUnit} ${PositionUnit} ${PositionUnit}` | `${PositionUnit} ${PositionUnit} ${PositionUnit} ${PositionUnit}`;
|
|
3783
|
+
|
|
3770
3784
|
/**
|
|
3771
3785
|
* @public
|
|
3772
3786
|
* The position property specifies the type of positioning method used for an element
|
|
@@ -3774,11 +3788,10 @@ export declare interface Position {
|
|
|
3774
3788
|
export declare type PositionType = 'absolute' | 'relative';
|
|
3775
3789
|
|
|
3776
3790
|
/**
|
|
3777
|
-
*
|
|
3778
|
-
* i.e. width="100", width="100%", width="100px"
|
|
3791
|
+
* unit value specified. i.e. 1 || '100%' || '1px'
|
|
3779
3792
|
* @public
|
|
3780
3793
|
*/
|
|
3781
|
-
export declare type PositionUnit = `${number}px` | `${number}%` | number
|
|
3794
|
+
export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}`;
|
|
3782
3795
|
|
|
3783
3796
|
export declare enum ProcessMessageResultType {
|
|
3784
3797
|
/**
|
|
@@ -4725,7 +4738,9 @@ export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
|
4725
4738
|
* @public
|
|
4726
4739
|
* @category Component
|
|
4727
4740
|
*/
|
|
4728
|
-
export declare function UiEntity(props: EntityPropTypes
|
|
4741
|
+
export declare function UiEntity(props: EntityPropTypes & {
|
|
4742
|
+
uiText?: UiLabelProps;
|
|
4743
|
+
}): ReactEcs.JSX.Element;
|
|
4729
4744
|
|
|
4730
4745
|
/**
|
|
4731
4746
|
* @public
|
|
@@ -4808,11 +4823,11 @@ export declare interface UiTransformProps {
|
|
|
4808
4823
|
/** The flex-direction property sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed). */
|
|
4809
4824
|
flexDirection?: FlexDirectionType;
|
|
4810
4825
|
/** The position property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
|
|
4811
|
-
position?: Partial<Position
|
|
4826
|
+
position?: Partial<Position> | PositionShorthand;
|
|
4812
4827
|
/** The padding shorthand property sets the padding area on all four sides of an element at once. */
|
|
4813
|
-
padding?: Partial<Position
|
|
4828
|
+
padding?: Partial<Position> | PositionShorthand;
|
|
4814
4829
|
/** The margin shorthand property sets the margin area on all four sides of an element. */
|
|
4815
|
-
margin?: Partial<Position
|
|
4830
|
+
margin?: Partial<Position> | PositionShorthand;
|
|
4816
4831
|
/** The width property specifies the width of an element. */
|
|
4817
4832
|
width?: PositionUnit;
|
|
4818
4833
|
/** The height property specifies the height of an element. */
|
|
@@ -35656,6 +35656,118 @@
|
|
|
35656
35656
|
],
|
|
35657
35657
|
"extendsTokenRanges": []
|
|
35658
35658
|
},
|
|
35659
|
+
{
|
|
35660
|
+
"kind": "TypeAlias",
|
|
35661
|
+
"canonicalReference": "@dcl/playground-assets!PositionShorthand:type",
|
|
35662
|
+
"docComment": "/**\n * The values are in clockwise order, beginning at the top: top, right, bottom, then left\n *\n * When one value is specified, it applies the same margin to all four sides.\n *\n * When two values are specified, the first margin applies to the top and bottom, the second to the left and right.\n *\n * When three values are specified, the first margin applies to the top, the second to the left and right, the third to the bottom.\n *\n * When four values are specified, the margins apply to the top, right, bottom, and left in that order (clockwise).\n *\n * @public\n */\n",
|
|
35663
|
+
"excerptTokens": [
|
|
35664
|
+
{
|
|
35665
|
+
"kind": "Content",
|
|
35666
|
+
"text": "export type PositionShorthand = "
|
|
35667
|
+
},
|
|
35668
|
+
{
|
|
35669
|
+
"kind": "Reference",
|
|
35670
|
+
"text": "PositionUnit",
|
|
35671
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35672
|
+
},
|
|
35673
|
+
{
|
|
35674
|
+
"kind": "Content",
|
|
35675
|
+
"text": " | `${"
|
|
35676
|
+
},
|
|
35677
|
+
{
|
|
35678
|
+
"kind": "Reference",
|
|
35679
|
+
"text": "PositionUnit",
|
|
35680
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35681
|
+
},
|
|
35682
|
+
{
|
|
35683
|
+
"kind": "Content",
|
|
35684
|
+
"text": "} ${"
|
|
35685
|
+
},
|
|
35686
|
+
{
|
|
35687
|
+
"kind": "Reference",
|
|
35688
|
+
"text": "PositionUnit",
|
|
35689
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35690
|
+
},
|
|
35691
|
+
{
|
|
35692
|
+
"kind": "Content",
|
|
35693
|
+
"text": "}` | `${"
|
|
35694
|
+
},
|
|
35695
|
+
{
|
|
35696
|
+
"kind": "Reference",
|
|
35697
|
+
"text": "PositionUnit",
|
|
35698
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35699
|
+
},
|
|
35700
|
+
{
|
|
35701
|
+
"kind": "Content",
|
|
35702
|
+
"text": "} ${"
|
|
35703
|
+
},
|
|
35704
|
+
{
|
|
35705
|
+
"kind": "Reference",
|
|
35706
|
+
"text": "PositionUnit",
|
|
35707
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35708
|
+
},
|
|
35709
|
+
{
|
|
35710
|
+
"kind": "Content",
|
|
35711
|
+
"text": "} ${"
|
|
35712
|
+
},
|
|
35713
|
+
{
|
|
35714
|
+
"kind": "Reference",
|
|
35715
|
+
"text": "PositionUnit",
|
|
35716
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35717
|
+
},
|
|
35718
|
+
{
|
|
35719
|
+
"kind": "Content",
|
|
35720
|
+
"text": "}` | `${"
|
|
35721
|
+
},
|
|
35722
|
+
{
|
|
35723
|
+
"kind": "Reference",
|
|
35724
|
+
"text": "PositionUnit",
|
|
35725
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35726
|
+
},
|
|
35727
|
+
{
|
|
35728
|
+
"kind": "Content",
|
|
35729
|
+
"text": "} ${"
|
|
35730
|
+
},
|
|
35731
|
+
{
|
|
35732
|
+
"kind": "Reference",
|
|
35733
|
+
"text": "PositionUnit",
|
|
35734
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35735
|
+
},
|
|
35736
|
+
{
|
|
35737
|
+
"kind": "Content",
|
|
35738
|
+
"text": "} ${"
|
|
35739
|
+
},
|
|
35740
|
+
{
|
|
35741
|
+
"kind": "Reference",
|
|
35742
|
+
"text": "PositionUnit",
|
|
35743
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35744
|
+
},
|
|
35745
|
+
{
|
|
35746
|
+
"kind": "Content",
|
|
35747
|
+
"text": "} ${"
|
|
35748
|
+
},
|
|
35749
|
+
{
|
|
35750
|
+
"kind": "Reference",
|
|
35751
|
+
"text": "PositionUnit",
|
|
35752
|
+
"canonicalReference": "@dcl/playground-assets!PositionUnit:type"
|
|
35753
|
+
},
|
|
35754
|
+
{
|
|
35755
|
+
"kind": "Content",
|
|
35756
|
+
"text": "}`"
|
|
35757
|
+
},
|
|
35758
|
+
{
|
|
35759
|
+
"kind": "Content",
|
|
35760
|
+
"text": ";"
|
|
35761
|
+
}
|
|
35762
|
+
],
|
|
35763
|
+
"fileUrlPath": "../react-ecs/dist/components/uiTransform/types.d.ts",
|
|
35764
|
+
"releaseTag": "Public",
|
|
35765
|
+
"name": "PositionShorthand",
|
|
35766
|
+
"typeTokenRange": {
|
|
35767
|
+
"startIndex": 1,
|
|
35768
|
+
"endIndex": 21
|
|
35769
|
+
}
|
|
35770
|
+
},
|
|
35659
35771
|
{
|
|
35660
35772
|
"kind": "TypeAlias",
|
|
35661
35773
|
"canonicalReference": "@dcl/playground-assets!PositionType:type",
|
|
@@ -35685,7 +35797,7 @@
|
|
|
35685
35797
|
{
|
|
35686
35798
|
"kind": "TypeAlias",
|
|
35687
35799
|
"canonicalReference": "@dcl/playground-assets!PositionUnit:type",
|
|
35688
|
-
"docComment": "/**\n *
|
|
35800
|
+
"docComment": "/**\n * unit value specified. i.e. 1 || '100%' || '1px'\n *\n * @public\n */\n",
|
|
35689
35801
|
"excerptTokens": [
|
|
35690
35802
|
{
|
|
35691
35803
|
"kind": "Content",
|
|
@@ -35693,7 +35805,7 @@
|
|
|
35693
35805
|
},
|
|
35694
35806
|
{
|
|
35695
35807
|
"kind": "Content",
|
|
35696
|
-
"text": "`${number}px` | `${number}%` | number"
|
|
35808
|
+
"text": "`${number}px` | `${number}%` | number | `${number}`"
|
|
35697
35809
|
},
|
|
35698
35810
|
{
|
|
35699
35811
|
"kind": "Content",
|
|
@@ -43126,6 +43238,19 @@
|
|
|
43126
43238
|
"text": "EntityPropTypes",
|
|
43127
43239
|
"canonicalReference": "@dcl/playground-assets!EntityPropTypes:interface"
|
|
43128
43240
|
},
|
|
43241
|
+
{
|
|
43242
|
+
"kind": "Content",
|
|
43243
|
+
"text": " & {\n uiText?: "
|
|
43244
|
+
},
|
|
43245
|
+
{
|
|
43246
|
+
"kind": "Reference",
|
|
43247
|
+
"text": "UiLabelProps",
|
|
43248
|
+
"canonicalReference": "@dcl/playground-assets!UiLabelProps:interface"
|
|
43249
|
+
},
|
|
43250
|
+
{
|
|
43251
|
+
"kind": "Content",
|
|
43252
|
+
"text": ";\n}"
|
|
43253
|
+
},
|
|
43129
43254
|
{
|
|
43130
43255
|
"kind": "Content",
|
|
43131
43256
|
"text": "): "
|
|
@@ -43142,8 +43267,8 @@
|
|
|
43142
43267
|
],
|
|
43143
43268
|
"fileUrlPath": "../react-ecs/dist/components/index.d.ts",
|
|
43144
43269
|
"returnTypeTokenRange": {
|
|
43145
|
-
"startIndex":
|
|
43146
|
-
"endIndex":
|
|
43270
|
+
"startIndex": 6,
|
|
43271
|
+
"endIndex": 7
|
|
43147
43272
|
},
|
|
43148
43273
|
"releaseTag": "Public",
|
|
43149
43274
|
"overloadIndex": 1,
|
|
@@ -43152,7 +43277,7 @@
|
|
|
43152
43277
|
"parameterName": "props",
|
|
43153
43278
|
"parameterTypeTokenRange": {
|
|
43154
43279
|
"startIndex": 1,
|
|
43155
|
-
"endIndex":
|
|
43280
|
+
"endIndex": 5
|
|
43156
43281
|
},
|
|
43157
43282
|
"isOptional": false
|
|
43158
43283
|
}
|
|
@@ -44089,7 +44214,12 @@
|
|
|
44089
44214
|
},
|
|
44090
44215
|
{
|
|
44091
44216
|
"kind": "Content",
|
|
44092
|
-
"text": ">"
|
|
44217
|
+
"text": "> | "
|
|
44218
|
+
},
|
|
44219
|
+
{
|
|
44220
|
+
"kind": "Reference",
|
|
44221
|
+
"text": "PositionShorthand",
|
|
44222
|
+
"canonicalReference": "@dcl/playground-assets!PositionShorthand:type"
|
|
44093
44223
|
},
|
|
44094
44224
|
{
|
|
44095
44225
|
"kind": "Content",
|
|
@@ -44102,7 +44232,7 @@
|
|
|
44102
44232
|
"name": "margin",
|
|
44103
44233
|
"propertyTypeTokenRange": {
|
|
44104
44234
|
"startIndex": 1,
|
|
44105
|
-
"endIndex":
|
|
44235
|
+
"endIndex": 6
|
|
44106
44236
|
}
|
|
44107
44237
|
},
|
|
44108
44238
|
{
|
|
@@ -44270,7 +44400,12 @@
|
|
|
44270
44400
|
},
|
|
44271
44401
|
{
|
|
44272
44402
|
"kind": "Content",
|
|
44273
|
-
"text": ">"
|
|
44403
|
+
"text": "> | "
|
|
44404
|
+
},
|
|
44405
|
+
{
|
|
44406
|
+
"kind": "Reference",
|
|
44407
|
+
"text": "PositionShorthand",
|
|
44408
|
+
"canonicalReference": "@dcl/playground-assets!PositionShorthand:type"
|
|
44274
44409
|
},
|
|
44275
44410
|
{
|
|
44276
44411
|
"kind": "Content",
|
|
@@ -44283,7 +44418,7 @@
|
|
|
44283
44418
|
"name": "padding",
|
|
44284
44419
|
"propertyTypeTokenRange": {
|
|
44285
44420
|
"startIndex": 1,
|
|
44286
|
-
"endIndex":
|
|
44421
|
+
"endIndex": 6
|
|
44287
44422
|
}
|
|
44288
44423
|
},
|
|
44289
44424
|
{
|
|
@@ -44311,7 +44446,12 @@
|
|
|
44311
44446
|
},
|
|
44312
44447
|
{
|
|
44313
44448
|
"kind": "Content",
|
|
44314
|
-
"text": ">"
|
|
44449
|
+
"text": "> | "
|
|
44450
|
+
},
|
|
44451
|
+
{
|
|
44452
|
+
"kind": "Reference",
|
|
44453
|
+
"text": "PositionShorthand",
|
|
44454
|
+
"canonicalReference": "@dcl/playground-assets!PositionShorthand:type"
|
|
44315
44455
|
},
|
|
44316
44456
|
{
|
|
44317
44457
|
"kind": "Content",
|
|
@@ -44324,7 +44464,7 @@
|
|
|
44324
44464
|
"name": "position",
|
|
44325
44465
|
"propertyTypeTokenRange": {
|
|
44326
44466
|
"startIndex": 1,
|
|
44327
|
-
"endIndex":
|
|
44467
|
+
"endIndex": 6
|
|
44328
44468
|
}
|
|
44329
44469
|
},
|
|
44330
44470
|
{
|
|
@@ -2097,11 +2097,14 @@ export interface Position {
|
|
|
2097
2097
|
top: PositionUnit;
|
|
2098
2098
|
}
|
|
2099
2099
|
|
|
2100
|
+
// @public
|
|
2101
|
+
export type PositionShorthand = PositionUnit | `${PositionUnit} ${PositionUnit}` | `${PositionUnit} ${PositionUnit} ${PositionUnit}` | `${PositionUnit} ${PositionUnit} ${PositionUnit} ${PositionUnit}`;
|
|
2102
|
+
|
|
2100
2103
|
// @public
|
|
2101
2104
|
export type PositionType = 'absolute' | 'relative';
|
|
2102
2105
|
|
|
2103
2106
|
// @public
|
|
2104
|
-
export type PositionUnit = `${number}px` | `${number}%` | number
|
|
2107
|
+
export type PositionUnit = `${number}px` | `${number}%` | number | `${number}`;
|
|
2105
2108
|
|
|
2106
2109
|
// Warning: (ae-missing-release-tag) "ProcessMessageResultType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2107
2110
|
//
|
|
@@ -2595,7 +2598,9 @@ export const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
|
2595
2598
|
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@category" is not defined in this configuration
|
|
2596
2599
|
//
|
|
2597
2600
|
// @public
|
|
2598
|
-
export function UiEntity(props: EntityPropTypes
|
|
2601
|
+
export function UiEntity(props: EntityPropTypes & {
|
|
2602
|
+
uiText?: UiLabelProps;
|
|
2603
|
+
}): ReactEcs.JSX.Element;
|
|
2599
2604
|
|
|
2600
2605
|
// @public (undocumented)
|
|
2601
2606
|
export type UiFontType = 'sans-serif' | 'serif' | 'monospace';
|
|
@@ -2654,14 +2659,14 @@ export interface UiTransformProps {
|
|
|
2654
2659
|
flexWrap?: FlexWrapType;
|
|
2655
2660
|
height?: PositionUnit;
|
|
2656
2661
|
justifyContent?: JustifyType;
|
|
2657
|
-
margin?: Partial<Position
|
|
2662
|
+
margin?: Partial<Position> | PositionShorthand;
|
|
2658
2663
|
maxHeight?: PositionUnit;
|
|
2659
2664
|
maxWidth?: PositionUnit;
|
|
2660
2665
|
minHeight?: PositionUnit;
|
|
2661
2666
|
minWidth?: PositionUnit;
|
|
2662
2667
|
overflow?: OverflowType;
|
|
2663
|
-
padding?: Partial<Position
|
|
2664
|
-
position?: Partial<Position
|
|
2668
|
+
padding?: Partial<Position> | PositionShorthand;
|
|
2669
|
+
position?: Partial<Position> | PositionShorthand;
|
|
2665
2670
|
positionType?: PositionType;
|
|
2666
2671
|
width?: PositionUnit;
|
|
2667
2672
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
|
-
"version": "7.0.6-
|
|
3
|
+
"version": "7.0.6-4177592674.commit-39cdc99",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"author": "Decentraland",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dcl/sdk": "7.0.6-
|
|
20
|
+
"@dcl/sdk": "7.0.6-4177592674.commit-39cdc99"
|
|
21
21
|
},
|
|
22
22
|
"minCliVersion": "3.12.3",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
25
|
"etc"
|
|
26
26
|
],
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "39cdc99ea857c63f707ec9188836116d838fa10e"
|
|
28
28
|
}
|