@dcl/playground-assets 7.3.27-6724658310.commit-6b8ca94 → 7.3.27-6730660340.commit-f58fd69
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 +7 -0
- package/dist/beta.d.ts +7 -0
- package/dist/index.bundled.d.ts +7 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +3 -3
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +7 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +74 -2
- package/etc/playground-assets.api.md +7 -0
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.3.27-
|
4
|
+
"version": "7.3.27-6730660340.commit-f58fd69",
|
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": "f58fd69f1dc7178d6d26b86cf6fe6243f1e9328b"
|
39
39
|
}
|
@@ -2265,6 +2265,9 @@ export declare type IncludeUndefined<T> = {
|
|
2265
2265
|
onChange={(value) => {
|
2266
2266
|
email = value
|
2267
2267
|
}}
|
2268
|
+
onSubmit={(value) => {
|
2269
|
+
email = value
|
2270
|
+
}}
|
2268
2271
|
uiBackground={{ color: Color4.Red() }}
|
2269
2272
|
uiTransform={{ width: 200, height: 36 }}
|
2270
2273
|
value={textValue}
|
@@ -4785,6 +4788,8 @@ export declare namespace PBUiInput {
|
|
4785
4788
|
*/
|
4786
4789
|
export declare interface PBUiInputResult {
|
4787
4790
|
value: string;
|
4791
|
+
/** default: false */
|
4792
|
+
isSubmit?: boolean | undefined;
|
4788
4793
|
}
|
4789
4794
|
|
4790
4795
|
/**
|
@@ -6592,6 +6597,8 @@ export declare const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInpu
|
|
6592
6597
|
export declare interface UiInputProps extends Omit<PBUiInput, 'font' | 'textAlign'> {
|
6593
6598
|
/** function to be called on value change */
|
6594
6599
|
onChange?(value: string): void;
|
6600
|
+
/** function to be called on text field submit */
|
6601
|
+
onSubmit?(value: string): void;
|
6595
6602
|
font?: UiFontType;
|
6596
6603
|
textAlign?: TextAlignType;
|
6597
6604
|
}
|
package/dist/tsdoc-metadata.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"metadata": {
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
4
|
-
"toolVersion": "7.38.
|
4
|
+
"toolVersion": "7.38.2",
|
5
5
|
"schemaVersion": 1011,
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
7
7
|
"tsdocConfig": {
|
@@ -20743,7 +20743,7 @@
|
|
20743
20743
|
{
|
20744
20744
|
"kind": "Function",
|
20745
20745
|
"canonicalReference": "@dcl/playground-assets!Input:function(1)",
|
20746
|
-
"docComment": "/**\n * Input component\n *\n * An Input is a field used to obtain a response from a user.\n *\n * @example\n *\n * <Input placeholder=\"Please enter your email\" onChange={(value) => { email = value }} uiBackground={{ color: Color4.Red() }} uiTransform={{ width: 200, height: 36 }} value={textValue} />\n *\n * @category Component\n *\n * @public\n */\n",
|
20746
|
+
"docComment": "/**\n * Input component\n *\n * An Input is a field used to obtain a response from a user.\n *\n * @example\n *\n * <Input placeholder=\"Please enter your email\" onChange={(value) => { email = value }} onSubmit={(value) => { email = value }} uiBackground={{ color: Color4.Red() }} uiTransform={{ width: 200, height: 36 }} value={textValue} />\n *\n * @category Component\n *\n * @public\n */\n",
|
20747
20747
|
"excerptTokens": [
|
20748
20748
|
{
|
20749
20749
|
"kind": "Content",
|
@@ -47329,6 +47329,33 @@
|
|
47329
47329
|
"name": "PBUiInputResult",
|
47330
47330
|
"preserveMemberOrder": false,
|
47331
47331
|
"members": [
|
47332
|
+
{
|
47333
|
+
"kind": "PropertySignature",
|
47334
|
+
"canonicalReference": "@dcl/playground-assets!PBUiInputResult#isSubmit:member",
|
47335
|
+
"docComment": "/**\n * default: false\n */\n",
|
47336
|
+
"excerptTokens": [
|
47337
|
+
{
|
47338
|
+
"kind": "Content",
|
47339
|
+
"text": "isSubmit?: "
|
47340
|
+
},
|
47341
|
+
{
|
47342
|
+
"kind": "Content",
|
47343
|
+
"text": "boolean | undefined"
|
47344
|
+
},
|
47345
|
+
{
|
47346
|
+
"kind": "Content",
|
47347
|
+
"text": ";"
|
47348
|
+
}
|
47349
|
+
],
|
47350
|
+
"isReadonly": false,
|
47351
|
+
"isOptional": true,
|
47352
|
+
"releaseTag": "Public",
|
47353
|
+
"name": "isSubmit",
|
47354
|
+
"propertyTypeTokenRange": {
|
47355
|
+
"startIndex": 1,
|
47356
|
+
"endIndex": 2
|
47357
|
+
}
|
47358
|
+
},
|
47332
47359
|
{
|
47333
47360
|
"kind": "PropertySignature",
|
47334
47361
|
"canonicalReference": "@dcl/playground-assets!PBUiInputResult#value:member",
|
@@ -64143,6 +64170,51 @@
|
|
64143
64170
|
],
|
64144
64171
|
"name": "onChange"
|
64145
64172
|
},
|
64173
|
+
{
|
64174
|
+
"kind": "MethodSignature",
|
64175
|
+
"canonicalReference": "@dcl/playground-assets!UiInputProps#onSubmit:member(1)",
|
64176
|
+
"docComment": "/**\n * function to be called on text field submit\n */\n",
|
64177
|
+
"excerptTokens": [
|
64178
|
+
{
|
64179
|
+
"kind": "Content",
|
64180
|
+
"text": "onSubmit?(value: "
|
64181
|
+
},
|
64182
|
+
{
|
64183
|
+
"kind": "Content",
|
64184
|
+
"text": "string"
|
64185
|
+
},
|
64186
|
+
{
|
64187
|
+
"kind": "Content",
|
64188
|
+
"text": "): "
|
64189
|
+
},
|
64190
|
+
{
|
64191
|
+
"kind": "Content",
|
64192
|
+
"text": "void"
|
64193
|
+
},
|
64194
|
+
{
|
64195
|
+
"kind": "Content",
|
64196
|
+
"text": ";"
|
64197
|
+
}
|
64198
|
+
],
|
64199
|
+
"isOptional": true,
|
64200
|
+
"returnTypeTokenRange": {
|
64201
|
+
"startIndex": 3,
|
64202
|
+
"endIndex": 4
|
64203
|
+
},
|
64204
|
+
"releaseTag": "Public",
|
64205
|
+
"overloadIndex": 1,
|
64206
|
+
"parameters": [
|
64207
|
+
{
|
64208
|
+
"parameterName": "value",
|
64209
|
+
"parameterTypeTokenRange": {
|
64210
|
+
"startIndex": 1,
|
64211
|
+
"endIndex": 2
|
64212
|
+
},
|
64213
|
+
"isOptional": false
|
64214
|
+
}
|
64215
|
+
],
|
64216
|
+
"name": "onSubmit"
|
64217
|
+
},
|
64146
64218
|
{
|
64147
64219
|
"kind": "PropertySignature",
|
64148
64220
|
"canonicalReference": "@dcl/playground-assets!UiInputProps#textAlign:member",
|
@@ -1334,6 +1334,11 @@ export type IncludeUndefined<T> = {
|
|
1334
1334
|
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
|
1335
1335
|
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
1336
1336
|
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
1337
|
+
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
1338
|
+
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
|
1339
|
+
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
|
1340
|
+
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
1341
|
+
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
1337
1342
|
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
1338
1343
|
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
1339
1344
|
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
|
@@ -2853,6 +2858,7 @@ export namespace PBUiInput {
|
|
2853
2858
|
|
2854
2859
|
// @public (undocumented)
|
2855
2860
|
export interface PBUiInputResult {
|
2861
|
+
isSubmit?: boolean | undefined;
|
2856
2862
|
// (undocumented)
|
2857
2863
|
value: string;
|
2858
2864
|
}
|
@@ -3900,6 +3906,7 @@ export interface UiInputProps extends Omit<PBUiInput, 'font' | 'textAlign'> {
|
|
3900
3906
|
// (undocumented)
|
3901
3907
|
font?: UiFontType;
|
3902
3908
|
onChange?(value: string): void;
|
3909
|
+
onSubmit?(value: string): void;
|
3903
3910
|
// (undocumented)
|
3904
3911
|
textAlign?: TextAlignType;
|
3905
3912
|
}
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/playground-assets",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.3.27-
|
4
|
+
"version": "7.3.27-6730660340.commit-f58fd69",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"dependencies": {
|
7
|
-
"@dcl/js-runtime": "7.3.27-
|
8
|
-
"@dcl/sdk": "7.3.27-
|
7
|
+
"@dcl/js-runtime": "7.3.27-6730660340.commit-f58fd69",
|
8
|
+
"@dcl/sdk": "7.3.27-6730660340.commit-f58fd69"
|
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": "f58fd69f1dc7178d6d26b86cf6fe6243f1e9328b"
|
36
36
|
}
|