|
1
|
{ |
|
2
|
"description": "", |
|
3
|
"methods": [], |
|
4
|
"displayName": "RenderPrompt", |
|
5
|
"props": { |
|
6
|
"title": { |
|
7
|
"required": true, |
|
8
|
"tsType": { |
|
9
|
"name": "string" |
|
10
|
}, |
|
11
|
"description": "The prompt's title." |
|
12
|
}, |
|
13
|
"description": { |
|
14
|
"required": true, |
|
15
|
"tsType": { |
|
16
|
"name": "string" |
|
17
|
}, |
|
18
|
"description": "The prompt's description." |
|
19
|
}, |
|
20
|
"variant": { |
|
21
|
"required": false, |
|
22
|
"tsType": { |
|
23
|
"name": "union", |
|
24
|
"raw": "\"danger\" | \"confirmation\"", |
|
25
|
"elements": [ |
|
26
|
{ |
|
27
|
"name": "literal", |
|
28
|
"value": "\"danger\"" |
|
29
|
}, |
|
30
|
{ |
|
31
|
"name": "literal", |
|
32
|
"value": "\"confirmation\"" |
|
33
|
} |
|
34
|
] |
|
35
|
}, |
|
36
|
"description": "The variant of the prompt.", |
|
37
|
"defaultValue": { |
|
38
|
"value": "\"danger\"", |
|
39
|
"computed": false |
|
40
|
} |
|
41
|
}, |
|
42
|
"verificationText": { |
|
43
|
"required": false, |
|
44
|
"tsType": { |
|
45
|
"name": "string" |
|
46
|
}, |
|
47
|
"description": "The text the user has to input in order to confirm the action." |
|
48
|
}, |
|
49
|
"verificationInstruction": { |
|
50
|
"required": false, |
|
51
|
"tsType": { |
|
52
|
"name": "string" |
|
53
|
}, |
|
54
|
"description": "The instruction for the verification text. Useful for passing a translated string to use instead of the default english one.\nShould be in the format: \"Please type {val} to confirm:\"", |
|
55
|
"defaultValue": { |
|
56
|
"value": "\"Please type {val} to confirm:\"", |
|
57
|
"computed": false |
|
58
|
} |
|
59
|
}, |
|
60
|
"cancelText": { |
|
61
|
"required": false, |
|
62
|
"tsType": { |
|
63
|
"name": "string" |
|
64
|
}, |
|
65
|
"description": "The label for the Cancel button.", |
|
66
|
"defaultValue": { |
|
67
|
"value": "\"Cancel\"", |
|
68
|
"computed": false |
|
69
|
} |
|
70
|
}, |
|
71
|
"confirmText": { |
|
72
|
"required": false, |
|
73
|
"tsType": { |
|
74
|
"name": "string" |
|
75
|
}, |
|
76
|
"description": "Label for the Confirm button.", |
|
77
|
"defaultValue": { |
|
78
|
"value": "\"Confirm\"", |
|
79
|
"computed": false |
|
80
|
} |
|
81
|
} |
|
82
|
} |
|
83
|
} |