@minecraft/server-ui 2.2.0-beta.1.26.30-preview.30 → 2.2.0-beta.1.26.30-stable
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/index.d.ts +0 -26
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
import * as minecraftcommon from '@minecraft/common';
|
|
35
35
|
import * as minecraftserver from '@minecraft/server';
|
|
36
36
|
/**
|
|
37
|
-
* @rc
|
|
38
37
|
* The reason why a data driven UI screen (MessageBox or
|
|
39
38
|
* CustomForm) was closed.
|
|
40
39
|
*/
|
|
@@ -110,7 +109,6 @@ export enum FormRejectReason {
|
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
/**
|
|
113
|
-
* @rc
|
|
114
112
|
* The reason why a form visibility operation failed.
|
|
115
113
|
*/
|
|
116
114
|
export enum FormVisibilityErrorReason {
|
|
@@ -131,7 +129,6 @@ export enum FormVisibilityErrorReason {
|
|
|
131
129
|
}
|
|
132
130
|
|
|
133
131
|
/**
|
|
134
|
-
* @rc
|
|
135
132
|
* An enum representing the errors that can occur during text
|
|
136
133
|
* filtering. This is used to provide more context about the
|
|
137
134
|
* filtering process.
|
|
@@ -358,7 +355,6 @@ export class ActionFormResponse extends FormResponse {
|
|
|
358
355
|
}
|
|
359
356
|
|
|
360
357
|
/**
|
|
361
|
-
* @rc
|
|
362
358
|
* A customizable data driven (DDUI) form that lets you add
|
|
363
359
|
* buttons, labels, toggles, dropdowns, sliders, text fields,
|
|
364
360
|
* and more. The form layout is built by calling methods to add
|
|
@@ -672,7 +668,6 @@ export class FormResponse {
|
|
|
672
668
|
}
|
|
673
669
|
|
|
674
670
|
/**
|
|
675
|
-
* @rc
|
|
676
671
|
* A simple message form with two buttons and a text body. Use
|
|
677
672
|
* this class to show a basic dialog to a player and handle the
|
|
678
673
|
* player's button selection.
|
|
@@ -1179,7 +1174,6 @@ export class ModalFormResponse extends FormResponse {
|
|
|
1179
1174
|
}
|
|
1180
1175
|
|
|
1181
1176
|
/**
|
|
1182
|
-
* @rc
|
|
1183
1177
|
* An observable that holds a boolean value. Listeners are
|
|
1184
1178
|
* notified whenever the value changes.
|
|
1185
1179
|
*/
|
|
@@ -1256,7 +1250,6 @@ export class ObservableBoolean {
|
|
|
1256
1250
|
}
|
|
1257
1251
|
|
|
1258
1252
|
/**
|
|
1259
|
-
* @rc
|
|
1260
1253
|
* An observable that holds a numeric value. Listeners are
|
|
1261
1254
|
* notified whenever the value changes.
|
|
1262
1255
|
*/
|
|
@@ -1333,7 +1326,6 @@ export class ObservableNumber {
|
|
|
1333
1326
|
}
|
|
1334
1327
|
|
|
1335
1328
|
/**
|
|
1336
|
-
* @rc
|
|
1337
1329
|
* An observable that holds a string value. Listeners are
|
|
1338
1330
|
* notified whenever the value changes.
|
|
1339
1331
|
*/
|
|
@@ -1429,7 +1421,6 @@ export class ObservableString {
|
|
|
1429
1421
|
}
|
|
1430
1422
|
|
|
1431
1423
|
/**
|
|
1432
|
-
* @rc
|
|
1433
1424
|
* An observable that holds a UIRawMessage value. Listeners are
|
|
1434
1425
|
* notified whenever the value changes.
|
|
1435
1426
|
*/
|
|
@@ -1518,7 +1509,6 @@ export class UIManager {
|
|
|
1518
1509
|
}
|
|
1519
1510
|
|
|
1520
1511
|
/**
|
|
1521
|
-
* @rc
|
|
1522
1512
|
* Options for configuring a button component.
|
|
1523
1513
|
*/
|
|
1524
1514
|
export interface ButtonOptions {
|
|
@@ -1546,7 +1536,6 @@ export interface ButtonOptions {
|
|
|
1546
1536
|
}
|
|
1547
1537
|
|
|
1548
1538
|
/**
|
|
1549
|
-
* @rc
|
|
1550
1539
|
* Options for configuring a divider component in a CustomForm.
|
|
1551
1540
|
*/
|
|
1552
1541
|
export interface DividerOptions {
|
|
@@ -1560,7 +1549,6 @@ export interface DividerOptions {
|
|
|
1560
1549
|
}
|
|
1561
1550
|
|
|
1562
1551
|
/**
|
|
1563
|
-
* @rc
|
|
1564
1552
|
* Represents a single item in a dropdown component.
|
|
1565
1553
|
*/
|
|
1566
1554
|
export interface DropdownItemData {
|
|
@@ -1588,7 +1576,6 @@ export interface DropdownItemData {
|
|
|
1588
1576
|
}
|
|
1589
1577
|
|
|
1590
1578
|
/**
|
|
1591
|
-
* @rc
|
|
1592
1579
|
* Options for configuring a dropdown component.
|
|
1593
1580
|
*/
|
|
1594
1581
|
export interface DropdownOptions {
|
|
@@ -1616,7 +1603,6 @@ export interface DropdownOptions {
|
|
|
1616
1603
|
}
|
|
1617
1604
|
|
|
1618
1605
|
/**
|
|
1619
|
-
* @rc
|
|
1620
1606
|
* The result returned when an MessageBox is closed. Contains
|
|
1621
1607
|
* the reason the message box was closed and the player's
|
|
1622
1608
|
* button selection, if applicable.
|
|
@@ -1731,7 +1717,6 @@ export interface ModalFormDataToggleOptions {
|
|
|
1731
1717
|
}
|
|
1732
1718
|
|
|
1733
1719
|
/**
|
|
1734
|
-
* @rc
|
|
1735
1720
|
* Configuration options for creating an Observable. Controls
|
|
1736
1721
|
* how the observable value can be accessed and modified.
|
|
1737
1722
|
*/
|
|
@@ -1747,7 +1732,6 @@ export interface ObservableOptions {
|
|
|
1747
1732
|
}
|
|
1748
1733
|
|
|
1749
1734
|
/**
|
|
1750
|
-
* @rc
|
|
1751
1735
|
* Options for configuring a slider component.
|
|
1752
1736
|
*/
|
|
1753
1737
|
export interface SliderOptions {
|
|
@@ -1782,7 +1766,6 @@ export interface SliderOptions {
|
|
|
1782
1766
|
}
|
|
1783
1767
|
|
|
1784
1768
|
/**
|
|
1785
|
-
* @rc
|
|
1786
1769
|
* Options for configuring a spacer component.
|
|
1787
1770
|
*/
|
|
1788
1771
|
export interface SpacingOptions {
|
|
@@ -1796,7 +1779,6 @@ export interface SpacingOptions {
|
|
|
1796
1779
|
}
|
|
1797
1780
|
|
|
1798
1781
|
/**
|
|
1799
|
-
* @rc
|
|
1800
1782
|
* Options for configuring a text field component.
|
|
1801
1783
|
*/
|
|
1802
1784
|
export interface TextFieldOptions {
|
|
@@ -1824,7 +1806,6 @@ export interface TextFieldOptions {
|
|
|
1824
1806
|
}
|
|
1825
1807
|
|
|
1826
1808
|
/**
|
|
1827
|
-
* @rc
|
|
1828
1809
|
* Options for configuring a text component (label or header).
|
|
1829
1810
|
*/
|
|
1830
1811
|
export interface TextOptions {
|
|
@@ -1838,7 +1819,6 @@ export interface TextOptions {
|
|
|
1838
1819
|
}
|
|
1839
1820
|
|
|
1840
1821
|
/**
|
|
1841
|
-
* @rc
|
|
1842
1822
|
* Options for configuring a toggle component.
|
|
1843
1823
|
*/
|
|
1844
1824
|
export interface ToggleOptions {
|
|
@@ -1866,7 +1846,6 @@ export interface ToggleOptions {
|
|
|
1866
1846
|
}
|
|
1867
1847
|
|
|
1868
1848
|
/**
|
|
1869
|
-
* @rc
|
|
1870
1849
|
* A message that can be sent to the client. This is a subset
|
|
1871
1850
|
* of the RawMessage type, and is used for UI messages.
|
|
1872
1851
|
*/
|
|
@@ -1919,7 +1898,6 @@ export class FormRejectError extends Error {
|
|
|
1919
1898
|
}
|
|
1920
1899
|
|
|
1921
1900
|
/**
|
|
1922
|
-
* @rc
|
|
1923
1901
|
* Thrown when a form visibility operation fails, such as
|
|
1924
1902
|
* attempting to show a form that is already showing or
|
|
1925
1903
|
* attempting to close a form that is not currently open.
|
|
@@ -1946,7 +1924,6 @@ export class FormVisibilityError extends Error {
|
|
|
1946
1924
|
}
|
|
1947
1925
|
|
|
1948
1926
|
/**
|
|
1949
|
-
* @rc
|
|
1950
1927
|
* Thrown when attempting to interact with a form using an
|
|
1951
1928
|
* invalid or unknown form identifier.
|
|
1952
1929
|
*/
|
|
@@ -1964,7 +1941,6 @@ export class InvalidFormError extends Error {
|
|
|
1964
1941
|
}
|
|
1965
1942
|
|
|
1966
1943
|
/**
|
|
1967
|
-
* @rc
|
|
1968
1944
|
* Thrown when attempting to modify a form after it has already
|
|
1969
1945
|
* been shown to a player. Form properties cannot be changed
|
|
1970
1946
|
* while the form is active.
|
|
@@ -1984,7 +1960,6 @@ export class InvalidFormModificationError extends Error {
|
|
|
1984
1960
|
}
|
|
1985
1961
|
|
|
1986
1962
|
/**
|
|
1987
|
-
* @rc
|
|
1988
1963
|
* Thrown when an observable value is expected to be writable,
|
|
1989
1964
|
* but it is not.
|
|
1990
1965
|
*/
|
|
@@ -1994,7 +1969,6 @@ export class InvalidObservableError extends Error {
|
|
|
1994
1969
|
}
|
|
1995
1970
|
|
|
1996
1971
|
/**
|
|
1997
|
-
* @rc
|
|
1998
1972
|
* Thrown when a form operation fails because the target player
|
|
1999
1973
|
* has left the game.
|
|
2000
1974
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-ui",
|
|
3
|
-
"version": "2.2.0-beta.1.26.30-
|
|
3
|
+
"version": "2.2.0-beta.1.26.30-stable",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.0.0 || ^2.9.0-beta.1.26.30-
|
|
17
|
+
"@minecraft/server": "^2.0.0 || ^2.9.0-beta.1.26.30-stable"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|