@dcl/playground-assets 7.0.6-3942933325.commit-70f967f → 7.0.6-3987590195.commit-4fc1536
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 +114 -21
- package/dist/beta.d.ts +114 -21
- package/dist/index.bundled.d.ts +114 -21
- package/dist/index.js +212 -26
- 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 +8 -8
- package/dist/playground/snippets/ui-dropdown.tsx +23 -10
- package/dist/playground/snippets/ui.tsx +9 -12
- package/dist/playground-assets.d.ts +114 -21
- package/etc/playground-assets.api.json +490 -71
- package/etc/playground-assets.api.md +75 -19
- package/package.json +3 -3
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import _m0 from 'protobufjs/minimal';
|
|
8
8
|
|
|
9
|
+
// @public (undocumented)
|
|
10
|
+
export type AlignType = 'auto' | 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline' | 'space-between' | 'space-around';
|
|
11
|
+
|
|
9
12
|
// Warning: (ae-missing-release-tag) "AMOUNT_VERSION_AVAILABLE" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
10
13
|
//
|
|
11
14
|
// @public (undocumented)
|
|
@@ -585,6 +588,9 @@ export type DeleteEntityMessageBody = {
|
|
|
585
588
|
entityId: Entity;
|
|
586
589
|
};
|
|
587
590
|
|
|
591
|
+
// @public (undocumented)
|
|
592
|
+
export type DisplayType = 'flex' | 'none';
|
|
593
|
+
|
|
588
594
|
// @public (undocumented)
|
|
589
595
|
export function Dropdown(props: EntityPropTypes & UiDropdownProps): ReactEcs.JSX.Element;
|
|
590
596
|
|
|
@@ -706,6 +712,12 @@ export type ExcludeUndefined<T> = {
|
|
|
706
712
|
// @public (undocumented)
|
|
707
713
|
export const executeTask: (task: Task<unknown>) => void;
|
|
708
714
|
|
|
715
|
+
// @public (undocumented)
|
|
716
|
+
export type FlexDirectionType = 'row' | 'column' | 'column-reverse' | 'row-reverse';
|
|
717
|
+
|
|
718
|
+
// @public (undocumented)
|
|
719
|
+
export type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
720
|
+
|
|
709
721
|
// @public (undocumented)
|
|
710
722
|
export type FloatArray = number[];
|
|
711
723
|
|
|
@@ -1076,13 +1088,16 @@ export namespace JSX {
|
|
|
1076
1088
|
export type IntrinsicElements = EcsElements;
|
|
1077
1089
|
}
|
|
1078
1090
|
|
|
1091
|
+
// @public (undocumented)
|
|
1092
|
+
export type JustifyType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
1093
|
+
|
|
1079
1094
|
// Warning: (ae-missing-release-tag) "Key" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1080
1095
|
//
|
|
1081
1096
|
// @public (undocumented)
|
|
1082
1097
|
export type Key = number | string;
|
|
1083
1098
|
|
|
1084
1099
|
// @public (undocumented)
|
|
1085
|
-
export function Label(props: EntityPropTypes &
|
|
1100
|
+
export function Label(props: EntityPropTypes & UiLabelProps): ReactEcs.JSX.Element;
|
|
1086
1101
|
|
|
1087
1102
|
// Warning: (ae-missing-release-tag) "Listeners" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1088
1103
|
//
|
|
@@ -1579,6 +1594,9 @@ export const onVideoEvent: Observable<{
|
|
|
1579
1594
|
totalVideoLength: number;
|
|
1580
1595
|
}>;
|
|
1581
1596
|
|
|
1597
|
+
// @public (undocumented)
|
|
1598
|
+
export type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
1599
|
+
|
|
1582
1600
|
// Warning: (ae-missing-release-tag) "PBAnimationState" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1583
1601
|
// Warning: (ae-missing-release-tag) "PBAnimationState" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1584
1602
|
//
|
|
@@ -2607,6 +2625,9 @@ export type Position = {
|
|
|
2607
2625
|
left: PositionUnit;
|
|
2608
2626
|
};
|
|
2609
2627
|
|
|
2628
|
+
// @public (undocumented)
|
|
2629
|
+
export type PositionType = 'absolute' | 'relative';
|
|
2630
|
+
|
|
2610
2631
|
// Warning: (ae-missing-release-tag) "PositionUnit" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2611
2632
|
//
|
|
2612
2633
|
// @public (undocumented)
|
|
@@ -2929,6 +2950,9 @@ export const enum TextAlignMode {
|
|
|
2929
2950
|
TAM_TOP_RIGHT = 2
|
|
2930
2951
|
}
|
|
2931
2952
|
|
|
2953
|
+
// @public (undocumented)
|
|
2954
|
+
export type TextAlignType = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
2955
|
+
|
|
2932
2956
|
// @public (undocumented)
|
|
2933
2957
|
export const TextShape: ComponentDefinition<PBTextShape>;
|
|
2934
2958
|
|
|
@@ -2961,12 +2985,18 @@ export const enum TextureFilterMode {
|
|
|
2961
2985
|
TFM_TRILINEAR = 2
|
|
2962
2986
|
}
|
|
2963
2987
|
|
|
2988
|
+
// @public (undocumented)
|
|
2989
|
+
export type TextureFilterType = 'point' | 'bi-linear' | 'tri-linear';
|
|
2990
|
+
|
|
2964
2991
|
// @public (undocumented)
|
|
2965
2992
|
export type TextureHelper = {
|
|
2966
2993
|
Common: (texture: Texture) => TextureUnion;
|
|
2967
2994
|
Avatar: (avatarTexture: AvatarTexture) => TextureUnion;
|
|
2968
2995
|
};
|
|
2969
2996
|
|
|
2997
|
+
// @public
|
|
2998
|
+
export type TextureMode = 'nine-slices' | 'center' | 'stretch';
|
|
2999
|
+
|
|
2970
3000
|
// Warning: (ae-missing-release-tag) "TextureUnion" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2971
3001
|
// Warning: (ae-missing-release-tag) "TextureUnion" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2972
3002
|
//
|
|
@@ -3002,6 +3032,9 @@ export const enum TextureWrapMode {
|
|
|
3002
3032
|
TWM_REPEAT = 0
|
|
3003
3033
|
}
|
|
3004
3034
|
|
|
3035
|
+
// @public (undocumented)
|
|
3036
|
+
export type TextureWrapType = 'repeat' | 'clamp' | 'mirror' | 'mirror-once';
|
|
3037
|
+
|
|
3005
3038
|
// @public
|
|
3006
3039
|
export const ToGammaSpace: number;
|
|
3007
3040
|
|
|
@@ -3069,17 +3102,26 @@ export type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
|
3069
3102
|
|
|
3070
3103
|
// @public (undocumented)
|
|
3071
3104
|
export type UiAvatarTexture = {
|
|
3072
|
-
avatarTexture?:
|
|
3105
|
+
avatarTexture?: {
|
|
3106
|
+
userId: string;
|
|
3107
|
+
wrapMode?: TextureWrapType;
|
|
3108
|
+
filterMode?: TextureFilterType;
|
|
3109
|
+
};
|
|
3073
3110
|
};
|
|
3074
3111
|
|
|
3075
3112
|
// @public (undocumented)
|
|
3076
3113
|
export const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
3077
3114
|
|
|
3078
3115
|
// @public (undocumented)
|
|
3079
|
-
export type UiBackgroundProps =
|
|
3116
|
+
export type UiBackgroundProps = {
|
|
3117
|
+
color?: PBColor4 | undefined;
|
|
3118
|
+
textureMode?: TextureMode;
|
|
3119
|
+
textureSlices?: BorderRect | undefined;
|
|
3120
|
+
uvs?: number[];
|
|
3121
|
+
} & UiTextureUnion;
|
|
3080
3122
|
|
|
3081
3123
|
// @public (undocumented)
|
|
3082
|
-
export type UiButtonProps =
|
|
3124
|
+
export type UiButtonProps = UiLabelProps & {
|
|
3083
3125
|
type?: 'primary' | 'secondary';
|
|
3084
3126
|
};
|
|
3085
3127
|
|
|
@@ -3092,8 +3134,10 @@ export type UiComponent = () => JSX.Element;
|
|
|
3092
3134
|
export const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
3093
3135
|
|
|
3094
3136
|
// @public (undocumented)
|
|
3095
|
-
export type UiDropdownProps = Partial<PBUiDropdown
|
|
3137
|
+
export type UiDropdownProps = Partial<Omit<PBUiDropdown, 'textAlign' | 'font'>> & {
|
|
3096
3138
|
onChange?(value: number): void;
|
|
3139
|
+
font?: UiFontType;
|
|
3140
|
+
textAlign?: TextAlignType;
|
|
3097
3141
|
};
|
|
3098
3142
|
|
|
3099
3143
|
// @public (undocumented)
|
|
@@ -3102,17 +3146,28 @@ export const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
|
3102
3146
|
// @public (undocumented)
|
|
3103
3147
|
export function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
3104
3148
|
|
|
3149
|
+
// @public (undocumented)
|
|
3150
|
+
export type UiFontType = 'sans-serif' | 'serif' | 'monospace';
|
|
3151
|
+
|
|
3105
3152
|
// @public (undocumented)
|
|
3106
3153
|
export const UiInput: ComponentDefinition<PBUiInput>;
|
|
3107
3154
|
|
|
3108
3155
|
// @public (undocumented)
|
|
3109
|
-
export type UiInputProps = PBUiInput & {
|
|
3156
|
+
export type UiInputProps = Omit<PBUiInput, 'font' | 'textAlign'> & {
|
|
3110
3157
|
onChange?(value: string): void;
|
|
3158
|
+
font?: UiFontType;
|
|
3159
|
+
textAlign?: TextAlignType;
|
|
3111
3160
|
};
|
|
3112
3161
|
|
|
3113
3162
|
// @public (undocumented)
|
|
3114
3163
|
export const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
3115
3164
|
|
|
3165
|
+
// @public (undocumented)
|
|
3166
|
+
export type UiLabelProps = Omit<PBUiText, 'textAlign' | 'font'> & {
|
|
3167
|
+
textAlign?: TextAlignType | undefined;
|
|
3168
|
+
font?: UiFontType | undefined;
|
|
3169
|
+
};
|
|
3170
|
+
|
|
3116
3171
|
// Warning: (ae-missing-release-tag) "Uint32" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
3117
3172
|
//
|
|
3118
3173
|
// @public (undocumented)
|
|
@@ -3124,12 +3179,13 @@ export type uint32 = number;
|
|
|
3124
3179
|
// @public (undocumented)
|
|
3125
3180
|
export const UiText: ComponentDefinition<PBUiText>;
|
|
3126
3181
|
|
|
3127
|
-
// @public (undocumented)
|
|
3128
|
-
export type UiTextProps = PBUiText;
|
|
3129
|
-
|
|
3130
3182
|
// @public (undocumented)
|
|
3131
3183
|
export type UiTexture = {
|
|
3132
|
-
texture?:
|
|
3184
|
+
texture?: {
|
|
3185
|
+
src: string;
|
|
3186
|
+
wrapMode?: TextureWrapType;
|
|
3187
|
+
filterMode?: TextureFilterType;
|
|
3188
|
+
};
|
|
3133
3189
|
};
|
|
3134
3190
|
|
|
3135
3191
|
// @public (undocumented)
|
|
@@ -3141,29 +3197,29 @@ export const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
|
3141
3197
|
// @public (undocumented)
|
|
3142
3198
|
export interface UiTransformProps {
|
|
3143
3199
|
// (undocumented)
|
|
3144
|
-
alignContent?:
|
|
3200
|
+
alignContent?: AlignType;
|
|
3145
3201
|
// (undocumented)
|
|
3146
|
-
alignItems?:
|
|
3202
|
+
alignItems?: AlignType;
|
|
3147
3203
|
// (undocumented)
|
|
3148
|
-
alignSelf?:
|
|
3204
|
+
alignSelf?: AlignType;
|
|
3149
3205
|
// (undocumented)
|
|
3150
|
-
display?:
|
|
3206
|
+
display?: DisplayType;
|
|
3151
3207
|
// (undocumented)
|
|
3152
3208
|
flex?: number;
|
|
3153
3209
|
// (undocumented)
|
|
3154
3210
|
flexBasis?: number;
|
|
3155
3211
|
// (undocumented)
|
|
3156
|
-
flexDirection?:
|
|
3212
|
+
flexDirection?: FlexDirectionType;
|
|
3157
3213
|
// (undocumented)
|
|
3158
3214
|
flexGrow?: number;
|
|
3159
3215
|
// (undocumented)
|
|
3160
3216
|
flexShrink?: number;
|
|
3161
3217
|
// (undocumented)
|
|
3162
|
-
flexWrap?:
|
|
3218
|
+
flexWrap?: FlexWrapType;
|
|
3163
3219
|
// (undocumented)
|
|
3164
3220
|
height?: PositionUnit;
|
|
3165
3221
|
// (undocumented)
|
|
3166
|
-
justifyContent?:
|
|
3222
|
+
justifyContent?: JustifyType;
|
|
3167
3223
|
// (undocumented)
|
|
3168
3224
|
margin?: Partial<Position>;
|
|
3169
3225
|
// (undocumented)
|
|
@@ -3175,13 +3231,13 @@ export interface UiTransformProps {
|
|
|
3175
3231
|
// (undocumented)
|
|
3176
3232
|
minWidth?: PositionUnit;
|
|
3177
3233
|
// (undocumented)
|
|
3178
|
-
overflow?:
|
|
3234
|
+
overflow?: OverflowType;
|
|
3179
3235
|
// (undocumented)
|
|
3180
3236
|
padding?: Partial<Position>;
|
|
3181
3237
|
// (undocumented)
|
|
3182
3238
|
position?: Partial<Position>;
|
|
3183
3239
|
// (undocumented)
|
|
3184
|
-
positionType?:
|
|
3240
|
+
positionType?: PositionType;
|
|
3185
3241
|
// (undocumented)
|
|
3186
3242
|
width?: PositionUnit;
|
|
3187
3243
|
}
|
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-3987590195.commit-4fc1536",
|
|
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-3987590195.commit-4fc1536"
|
|
21
21
|
},
|
|
22
22
|
"minCliVersion": "3.12.3",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
25
|
"etc"
|
|
26
26
|
],
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "4fc1536e9bdd2501b3d9918ec7345084f7a49aca"
|
|
28
28
|
}
|