@thestatic-tv/dcl-sdk 2.12.0 → 2.14.0
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/README.md +35 -11
- package/dist/index.d.mts +71 -8
- package/dist/index.d.ts +71 -8
- package/dist/index.js +634 -429
- package/dist/index.mjs +586 -381
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -105,13 +105,14 @@ staticTV.guideUI.toggle()
|
|
|
105
105
|
staticTV.chatUI.toggle()
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
## The toolbar on a phone (2.12.0)
|
|
108
|
+
## The toolbar on a phone (2.12.0; 2.13.0 places it)
|
|
109
109
|
|
|
110
110
|
On a phone the explorer draws its own controls over the bottom right, where the toolbar sits. So
|
|
111
111
|
on a phone (the explorer says `mobile`, read once at start) CHAT, GUIDE and ADMIN stand in a
|
|
112
|
-
column on the right edge at mid-height,
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
column flush on the right edge at mid-height, every panel opens centered on the screen's height
|
|
113
|
+
just left of the column, and only one panel is open at a time. On desktop, VR and the web nothing
|
|
114
|
+
changes: the row along the bottom right, the panels where they were, and the guide and the admin
|
|
115
|
+
panel still the only two that close each other.
|
|
115
116
|
|
|
116
117
|
`staticTV.platform` is `'desktop'`, `'mobile'`, `'vr'`, `'web'`, or `'unknown'` until the explorer
|
|
117
118
|
answers (and if it cannot); `staticTV.isPhone` is true on a phone only.
|
|
@@ -128,16 +129,39 @@ staticTV.toolbarButton(3, {
|
|
|
128
129
|
children: [ReactEcs.createElement(UiEntity, { uiText: { value: 'MAP', fontSize: 14 } })],
|
|
129
130
|
})
|
|
130
131
|
|
|
131
|
-
// The panel: its
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
// The panel (2.13.0): its props as on desktop, place included. On desktop it is drawn as they say;
|
|
133
|
+
// on a phone it opens centered on the screen's height just left of the column, and a panel taller
|
|
134
|
+
// than the screen starts at the top, so its header and its close button stay on screen.
|
|
135
|
+
myPanel.isOpen ? staticTV.toolbarPanel({
|
|
136
|
+
uiTransform: { positionType: 'absolute', position: { right: 20, bottom: 55 }, width: 380, height: 580 },
|
|
137
|
+
uiBackground: { color: Color4.create(0.05, 0.05, 0.08, 0.98) },
|
|
138
|
+
children: [header, body],
|
|
139
|
+
}) : null
|
|
140
|
+
|
|
141
|
+
// One panel at a time on a phone: register how yours hides, and say when it opens. On desktop
|
|
142
|
+
// (2.13.0) coversGuide says your panel sits over the guide's place: opening it closes the guide
|
|
143
|
+
// and the admin panel, and opening either closes yours.
|
|
144
|
+
staticTV.registerPanel('map', () => myPanel.hide(), { coversGuide: true })
|
|
136
145
|
myPanel.onOpen = () => staticTV.panelOpened('map')
|
|
137
146
|
```
|
|
138
147
|
|
|
139
|
-
On desktop
|
|
140
|
-
|
|
148
|
+
On desktop a panel closes any panel it would cover: the guide and the admin panel close each
|
|
149
|
+
other, a `coversGuide` panel and those two close each other, and the chat stays open beside the
|
|
150
|
+
guide or the admin panel. A panel registered without the option is left to the scene there. The
|
|
151
|
+
names `guide`, `chat` and `admin` are the SDK's.
|
|
152
|
+
|
|
153
|
+
**Collapse to strips (2.14.0).** A small `>` handle sits on top of the column (a phone) or at the
|
|
154
|
+
row's left end (desktop, past the last button, so no button moves). It collapses the toolbar:
|
|
155
|
+
every open panel closes (the scene's registered ones too), and each button becomes a thin strip
|
|
156
|
+
in its own color, flush on the edge where it stood (on a phone 12 wide and the button's height;
|
|
157
|
+
on desktop the button's width and 10 tall at the bottom). A press on any strip expands it again.
|
|
158
|
+
It lasts for the visit and starts expanded. A scene's buttons drawn through `toolbarButton`
|
|
159
|
+
collapse with the rest, their strip in the `uiBackground` color they already pass; nothing else
|
|
160
|
+
to do. `staticTV.toolbarCollapsed` says which it is.
|
|
161
|
+
|
|
162
|
+
**The version (2.14.0).** The guide shows `TheStatic SDK <version>` small and dim at the bottom
|
|
163
|
+
of its sidebar, so a visitor can name it when asking for help. The build writes it from
|
|
164
|
+
`package.json`.
|
|
141
165
|
|
|
142
166
|
## 18+ channels (2.8.0)
|
|
143
167
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1513,8 +1513,25 @@ declare class AdminPanelUIModule {
|
|
|
1513
1513
|
* Slots: 0 is CHAT's, 1 GUIDE's, 2 ADMIN's (an admin's only; a scene's own button takes it for
|
|
1514
1514
|
* everyone else), then a scene's own. In the column, slot 0 is on top and the column's middle slot
|
|
1515
1515
|
* (2) sits at mid-height, so the SDK's three and two of a scene's center on the screen.
|
|
1516
|
+
*
|
|
1517
|
+
* 2.13.0 (his look on his phone, 2026-12-01, Decentraland mobile 1.16.3): the column stood about 160
|
|
1518
|
+
* px in from the glass while the explorer's own jump button ends about 135 px in, so the scene's
|
|
1519
|
+
* canvas already ends at the device's safe edge and the 2.12.0 edge of 20 only added a gap. On a
|
|
1520
|
+
* phone the column now sits flush on the canvas's right edge (PHONE_EDGE, 0); nothing is drawn
|
|
1521
|
+
* outside the canvas. And a panel on a phone opens centered on the screen's height, one gap left of
|
|
1522
|
+
* the column (src/ui/toolbar-panel.ts), where 2.12.0 kept the desktop's bottom 55 and covered the
|
|
1523
|
+
* phone's E, hand and jump buttons. His words: "Buttons should be in the edge and windows should
|
|
1524
|
+
* open middle of screen next to buttons."
|
|
1516
1525
|
*/
|
|
1517
1526
|
type Platform = 'desktop' | 'mobile' | 'vr' | 'web' | 'unknown';
|
|
1527
|
+
/** How a scene's panel sits among the SDK's on desktop (registerPanel's options, 2.13.0) */
|
|
1528
|
+
interface PanelOptions {
|
|
1529
|
+
/**
|
|
1530
|
+
* The panel covers the guide's place (the guide's and the admin panel's): on desktop opening it closes them, and
|
|
1531
|
+
* opening either closes it. On a phone every panel closes every other one anyway.
|
|
1532
|
+
*/
|
|
1533
|
+
coversGuide?: boolean;
|
|
1534
|
+
}
|
|
1518
1535
|
|
|
1519
1536
|
/** A toolbar button's face: what a UiEntity takes, its place and size left to the slot */
|
|
1520
1537
|
interface ToolbarButtonProps {
|
|
@@ -1526,6 +1543,15 @@ interface ToolbarButtonProps {
|
|
|
1526
1543
|
[prop: string]: unknown;
|
|
1527
1544
|
}
|
|
1528
1545
|
|
|
1546
|
+
/** A panel's props, as its desktop UiEntity takes them (key, uiTransform with its place, uiBackground, children) */
|
|
1547
|
+
interface ToolbarPanelProps {
|
|
1548
|
+
key?: string | number;
|
|
1549
|
+
uiTransform?: Record<string, unknown>;
|
|
1550
|
+
uiBackground?: unknown;
|
|
1551
|
+
children?: unknown[];
|
|
1552
|
+
[prop: string]: unknown;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1529
1555
|
/**
|
|
1530
1556
|
* StaticTVClient - Main client for connecting DCL scenes to thestatic.tv
|
|
1531
1557
|
*
|
|
@@ -1590,6 +1616,8 @@ declare class StaticTVClient {
|
|
|
1590
1616
|
* scene's (registerPanel); elsewhere the guide and the admin panel close each other, as before.
|
|
1591
1617
|
*/
|
|
1592
1618
|
private readonly panelRules;
|
|
1619
|
+
/** The toolbar collapsed to strips or not, for the visit (2.14.0): collapsing closes every panel first */
|
|
1620
|
+
private readonly fold;
|
|
1593
1621
|
/** The SDK's own panels, which a scene cannot register over */
|
|
1594
1622
|
private static readonly OWN_PANELS;
|
|
1595
1623
|
/** Get the API base URL (for internal module use) */
|
|
@@ -2025,7 +2053,8 @@ declare class StaticTVClient {
|
|
|
2025
2053
|
* placed its own by hand before), the column on a phone. Slots count from the right (the row) or the top (the
|
|
2026
2054
|
* column): 0 is CHAT's, 1 GUIDE's, 2 ADMIN's (for a non-admin the scene's first button may take it), then the
|
|
2027
2055
|
* scene's. `props` is the button's face - its uiBackground, onMouseDown and children - the slot gives its place and
|
|
2028
|
-
* size (a width or height in props.uiTransform wins).
|
|
2056
|
+
* size (a width or height in props.uiTransform wins). Collapsed (2.14.0) it draws a strip in the face's uiBackground
|
|
2057
|
+
* color instead, flush on the edge, and a press on any strip expands the toolbar.
|
|
2029
2058
|
*
|
|
2030
2059
|
* @example
|
|
2031
2060
|
* ```typescript
|
|
@@ -2038,16 +2067,50 @@ declare class StaticTVClient {
|
|
|
2038
2067
|
* ```
|
|
2039
2068
|
*/
|
|
2040
2069
|
toolbarButton(slot: number, props: ToolbarButtonProps): any;
|
|
2041
|
-
/**
|
|
2070
|
+
/**
|
|
2071
|
+
* The toolbar collapsed to strips (2.14.0, his ask: "small tabs out of users way"): the `>` handle collapses it and
|
|
2072
|
+
* closes every open panel, the scene's registered ones too; any strip expands it. For the visit only; it starts
|
|
2073
|
+
* expanded. A scene drawing its buttons through toolbarButton needs nothing more.
|
|
2074
|
+
*/
|
|
2075
|
+
get toolbarCollapsed(): boolean;
|
|
2076
|
+
/**
|
|
2077
|
+
* The `>` handle, drawn by the SDK's chat (2.14.0): on a phone a bar on top of the column, on desktop a tab one slot
|
|
2078
|
+
* past the row's last button (ADMIN's or a scene's), so no button moves. Nothing while collapsed.
|
|
2079
|
+
* @internal
|
|
2080
|
+
*/
|
|
2081
|
+
toolbarHandle(): any;
|
|
2082
|
+
/** Where a scene's own panel's right edge goes: on a phone one gap left of the column; elsewhere `desktopRight` */
|
|
2042
2083
|
panelRight(desktopRight: number): number;
|
|
2043
2084
|
/**
|
|
2044
|
-
*
|
|
2045
|
-
*
|
|
2085
|
+
* Draw one of the scene's own panels in its place (2.13.0): on desktop exactly as `props` say (their absolute
|
|
2086
|
+
* position included), on a phone centered on the screen's height one gap left of the toolbar's column, its top at
|
|
2087
|
+
* (canvas height - panel height) / 2 - or at the canvas's top when the panel is taller, so its header and close
|
|
2088
|
+
* button stay on screen. `props` is the panel's UiEntity props as on desktop: key, uiTransform, uiBackground,
|
|
2089
|
+
* children. The SDK's own chat, guide and admin panel draw through it.
|
|
2090
|
+
*
|
|
2091
|
+
* @example
|
|
2092
|
+
* ```typescript
|
|
2093
|
+
* myPanel.isOpen ? staticTV.toolbarPanel({
|
|
2094
|
+
* uiTransform: { positionType: 'absolute', position: { right: 20, bottom: 55 }, width: 380, height: 580 },
|
|
2095
|
+
* uiBackground: { color: Color4.create(0.05, 0.05, 0.08, 0.98) },
|
|
2096
|
+
* children: [header, body],
|
|
2097
|
+
* }) : null
|
|
2098
|
+
* ```
|
|
2099
|
+
*/
|
|
2100
|
+
toolbarPanel(props: ToolbarPanelProps): any;
|
|
2101
|
+
/**
|
|
2102
|
+
* Put one of the scene's own panels under the panel rule: on a phone, when another panel opens (the SDK's or the
|
|
2103
|
+
* scene's), `hide` runs. On desktop (2.13.0), with `{ coversGuide: true }`, the panel and the guide's place close
|
|
2104
|
+
* each other: opening it closes the guide and the admin panel, and opening either runs `hide`; without it, the SDK
|
|
2105
|
+
* leaves the panel to the scene there. The SDK's own names (guide, chat, admin) are taken. Call panelOpened(name)
|
|
2106
|
+
* when it opens.
|
|
2046
2107
|
*/
|
|
2047
|
-
registerPanel(name: string, hide: () => void): void;
|
|
2108
|
+
registerPanel(name: string, hide: () => void, options?: PanelOptions): void;
|
|
2048
2109
|
/**
|
|
2049
|
-
* A panel opened: on a phone every other one closes, the SDK's and the scene's registered ones
|
|
2050
|
-
* and the admin panel close each other,
|
|
2110
|
+
* A panel opened: on a phone every other one closes, the SDK's and the scene's registered ones. Elsewhere a panel
|
|
2111
|
+
* closes any panel it would cover: the guide and the admin panel close each other, and each closes a scene's panel
|
|
2112
|
+
* registered with coversGuide, as that panel closes them (2.13.0); the chat stays open beside the guide or the admin
|
|
2113
|
+
* panel, and a scene's other panels are left to the scene.
|
|
2051
2114
|
*/
|
|
2052
2115
|
panelOpened(name: string): void;
|
|
2053
2116
|
/**
|
|
@@ -2197,4 +2260,4 @@ declare function getPlayerPosition(): {
|
|
|
2197
2260
|
z: number;
|
|
2198
2261
|
} | null;
|
|
2199
2262
|
|
|
2200
|
-
export { type AdminPanelConfig, AdminPanelUIModule, type Channel, type ChatChannel, type ChatMessage, type ChatUIConfig, ChatUIModule, type CommandHandler, type FrameContent, FramesModule, type GuideFeaturedPlaylist, GuideModule, type GuideResponse, type GuideUIConfig, GuideUIModule, type GuideVideo, HeartbeatModule, type HeartbeatResponse, type InteractionResponse, InteractionsModule, KEY_TYPE_CHANNEL, KEY_TYPE_SCENE, ModerationModule, NotificationBanner, type Platform, type PlayerData, type SDKTier, type SceneBounds$1 as SceneBounds, type SceneControl, type SceneControlOption, type SceneFrame, type SceneStats, type SceneStatsResponse, type SceneTabDefinition, SessionModule, type SessionResponse, type Standing, StaticTVClient, type StaticTVConfig, type StreamData, type ToolbarButtonProps, type VideoSlot, type Vod, fetchUserData, getParcelRects, getPlayerDisplayName, getPlayerPosition, getPlayerWallet, getSceneBounds, hideNotification, isPlayerInBounds, setupStaticUI, showNotification };
|
|
2263
|
+
export { type AdminPanelConfig, AdminPanelUIModule, type Channel, type ChatChannel, type ChatMessage, type ChatUIConfig, ChatUIModule, type CommandHandler, type FrameContent, FramesModule, type GuideFeaturedPlaylist, GuideModule, type GuideResponse, type GuideUIConfig, GuideUIModule, type GuideVideo, HeartbeatModule, type HeartbeatResponse, type InteractionResponse, InteractionsModule, KEY_TYPE_CHANNEL, KEY_TYPE_SCENE, ModerationModule, NotificationBanner, type PanelOptions, type Platform, type PlayerData, type SDKTier, type SceneBounds$1 as SceneBounds, type SceneControl, type SceneControlOption, type SceneFrame, type SceneStats, type SceneStatsResponse, type SceneTabDefinition, SessionModule, type SessionResponse, type Standing, StaticTVClient, type StaticTVConfig, type StreamData, type ToolbarButtonProps, type ToolbarPanelProps, type VideoSlot, type Vod, fetchUserData, getParcelRects, getPlayerDisplayName, getPlayerPosition, getPlayerWallet, getSceneBounds, hideNotification, isPlayerInBounds, setupStaticUI, showNotification };
|
package/dist/index.d.ts
CHANGED
|
@@ -1513,8 +1513,25 @@ declare class AdminPanelUIModule {
|
|
|
1513
1513
|
* Slots: 0 is CHAT's, 1 GUIDE's, 2 ADMIN's (an admin's only; a scene's own button takes it for
|
|
1514
1514
|
* everyone else), then a scene's own. In the column, slot 0 is on top and the column's middle slot
|
|
1515
1515
|
* (2) sits at mid-height, so the SDK's three and two of a scene's center on the screen.
|
|
1516
|
+
*
|
|
1517
|
+
* 2.13.0 (his look on his phone, 2026-12-01, Decentraland mobile 1.16.3): the column stood about 160
|
|
1518
|
+
* px in from the glass while the explorer's own jump button ends about 135 px in, so the scene's
|
|
1519
|
+
* canvas already ends at the device's safe edge and the 2.12.0 edge of 20 only added a gap. On a
|
|
1520
|
+
* phone the column now sits flush on the canvas's right edge (PHONE_EDGE, 0); nothing is drawn
|
|
1521
|
+
* outside the canvas. And a panel on a phone opens centered on the screen's height, one gap left of
|
|
1522
|
+
* the column (src/ui/toolbar-panel.ts), where 2.12.0 kept the desktop's bottom 55 and covered the
|
|
1523
|
+
* phone's E, hand and jump buttons. His words: "Buttons should be in the edge and windows should
|
|
1524
|
+
* open middle of screen next to buttons."
|
|
1516
1525
|
*/
|
|
1517
1526
|
type Platform = 'desktop' | 'mobile' | 'vr' | 'web' | 'unknown';
|
|
1527
|
+
/** How a scene's panel sits among the SDK's on desktop (registerPanel's options, 2.13.0) */
|
|
1528
|
+
interface PanelOptions {
|
|
1529
|
+
/**
|
|
1530
|
+
* The panel covers the guide's place (the guide's and the admin panel's): on desktop opening it closes them, and
|
|
1531
|
+
* opening either closes it. On a phone every panel closes every other one anyway.
|
|
1532
|
+
*/
|
|
1533
|
+
coversGuide?: boolean;
|
|
1534
|
+
}
|
|
1518
1535
|
|
|
1519
1536
|
/** A toolbar button's face: what a UiEntity takes, its place and size left to the slot */
|
|
1520
1537
|
interface ToolbarButtonProps {
|
|
@@ -1526,6 +1543,15 @@ interface ToolbarButtonProps {
|
|
|
1526
1543
|
[prop: string]: unknown;
|
|
1527
1544
|
}
|
|
1528
1545
|
|
|
1546
|
+
/** A panel's props, as its desktop UiEntity takes them (key, uiTransform with its place, uiBackground, children) */
|
|
1547
|
+
interface ToolbarPanelProps {
|
|
1548
|
+
key?: string | number;
|
|
1549
|
+
uiTransform?: Record<string, unknown>;
|
|
1550
|
+
uiBackground?: unknown;
|
|
1551
|
+
children?: unknown[];
|
|
1552
|
+
[prop: string]: unknown;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1529
1555
|
/**
|
|
1530
1556
|
* StaticTVClient - Main client for connecting DCL scenes to thestatic.tv
|
|
1531
1557
|
*
|
|
@@ -1590,6 +1616,8 @@ declare class StaticTVClient {
|
|
|
1590
1616
|
* scene's (registerPanel); elsewhere the guide and the admin panel close each other, as before.
|
|
1591
1617
|
*/
|
|
1592
1618
|
private readonly panelRules;
|
|
1619
|
+
/** The toolbar collapsed to strips or not, for the visit (2.14.0): collapsing closes every panel first */
|
|
1620
|
+
private readonly fold;
|
|
1593
1621
|
/** The SDK's own panels, which a scene cannot register over */
|
|
1594
1622
|
private static readonly OWN_PANELS;
|
|
1595
1623
|
/** Get the API base URL (for internal module use) */
|
|
@@ -2025,7 +2053,8 @@ declare class StaticTVClient {
|
|
|
2025
2053
|
* placed its own by hand before), the column on a phone. Slots count from the right (the row) or the top (the
|
|
2026
2054
|
* column): 0 is CHAT's, 1 GUIDE's, 2 ADMIN's (for a non-admin the scene's first button may take it), then the
|
|
2027
2055
|
* scene's. `props` is the button's face - its uiBackground, onMouseDown and children - the slot gives its place and
|
|
2028
|
-
* size (a width or height in props.uiTransform wins).
|
|
2056
|
+
* size (a width or height in props.uiTransform wins). Collapsed (2.14.0) it draws a strip in the face's uiBackground
|
|
2057
|
+
* color instead, flush on the edge, and a press on any strip expands the toolbar.
|
|
2029
2058
|
*
|
|
2030
2059
|
* @example
|
|
2031
2060
|
* ```typescript
|
|
@@ -2038,16 +2067,50 @@ declare class StaticTVClient {
|
|
|
2038
2067
|
* ```
|
|
2039
2068
|
*/
|
|
2040
2069
|
toolbarButton(slot: number, props: ToolbarButtonProps): any;
|
|
2041
|
-
/**
|
|
2070
|
+
/**
|
|
2071
|
+
* The toolbar collapsed to strips (2.14.0, his ask: "small tabs out of users way"): the `>` handle collapses it and
|
|
2072
|
+
* closes every open panel, the scene's registered ones too; any strip expands it. For the visit only; it starts
|
|
2073
|
+
* expanded. A scene drawing its buttons through toolbarButton needs nothing more.
|
|
2074
|
+
*/
|
|
2075
|
+
get toolbarCollapsed(): boolean;
|
|
2076
|
+
/**
|
|
2077
|
+
* The `>` handle, drawn by the SDK's chat (2.14.0): on a phone a bar on top of the column, on desktop a tab one slot
|
|
2078
|
+
* past the row's last button (ADMIN's or a scene's), so no button moves. Nothing while collapsed.
|
|
2079
|
+
* @internal
|
|
2080
|
+
*/
|
|
2081
|
+
toolbarHandle(): any;
|
|
2082
|
+
/** Where a scene's own panel's right edge goes: on a phone one gap left of the column; elsewhere `desktopRight` */
|
|
2042
2083
|
panelRight(desktopRight: number): number;
|
|
2043
2084
|
/**
|
|
2044
|
-
*
|
|
2045
|
-
*
|
|
2085
|
+
* Draw one of the scene's own panels in its place (2.13.0): on desktop exactly as `props` say (their absolute
|
|
2086
|
+
* position included), on a phone centered on the screen's height one gap left of the toolbar's column, its top at
|
|
2087
|
+
* (canvas height - panel height) / 2 - or at the canvas's top when the panel is taller, so its header and close
|
|
2088
|
+
* button stay on screen. `props` is the panel's UiEntity props as on desktop: key, uiTransform, uiBackground,
|
|
2089
|
+
* children. The SDK's own chat, guide and admin panel draw through it.
|
|
2090
|
+
*
|
|
2091
|
+
* @example
|
|
2092
|
+
* ```typescript
|
|
2093
|
+
* myPanel.isOpen ? staticTV.toolbarPanel({
|
|
2094
|
+
* uiTransform: { positionType: 'absolute', position: { right: 20, bottom: 55 }, width: 380, height: 580 },
|
|
2095
|
+
* uiBackground: { color: Color4.create(0.05, 0.05, 0.08, 0.98) },
|
|
2096
|
+
* children: [header, body],
|
|
2097
|
+
* }) : null
|
|
2098
|
+
* ```
|
|
2099
|
+
*/
|
|
2100
|
+
toolbarPanel(props: ToolbarPanelProps): any;
|
|
2101
|
+
/**
|
|
2102
|
+
* Put one of the scene's own panels under the panel rule: on a phone, when another panel opens (the SDK's or the
|
|
2103
|
+
* scene's), `hide` runs. On desktop (2.13.0), with `{ coversGuide: true }`, the panel and the guide's place close
|
|
2104
|
+
* each other: opening it closes the guide and the admin panel, and opening either runs `hide`; without it, the SDK
|
|
2105
|
+
* leaves the panel to the scene there. The SDK's own names (guide, chat, admin) are taken. Call panelOpened(name)
|
|
2106
|
+
* when it opens.
|
|
2046
2107
|
*/
|
|
2047
|
-
registerPanel(name: string, hide: () => void): void;
|
|
2108
|
+
registerPanel(name: string, hide: () => void, options?: PanelOptions): void;
|
|
2048
2109
|
/**
|
|
2049
|
-
* A panel opened: on a phone every other one closes, the SDK's and the scene's registered ones
|
|
2050
|
-
* and the admin panel close each other,
|
|
2110
|
+
* A panel opened: on a phone every other one closes, the SDK's and the scene's registered ones. Elsewhere a panel
|
|
2111
|
+
* closes any panel it would cover: the guide and the admin panel close each other, and each closes a scene's panel
|
|
2112
|
+
* registered with coversGuide, as that panel closes them (2.13.0); the chat stays open beside the guide or the admin
|
|
2113
|
+
* panel, and a scene's other panels are left to the scene.
|
|
2051
2114
|
*/
|
|
2052
2115
|
panelOpened(name: string): void;
|
|
2053
2116
|
/**
|
|
@@ -2197,4 +2260,4 @@ declare function getPlayerPosition(): {
|
|
|
2197
2260
|
z: number;
|
|
2198
2261
|
} | null;
|
|
2199
2262
|
|
|
2200
|
-
export { type AdminPanelConfig, AdminPanelUIModule, type Channel, type ChatChannel, type ChatMessage, type ChatUIConfig, ChatUIModule, type CommandHandler, type FrameContent, FramesModule, type GuideFeaturedPlaylist, GuideModule, type GuideResponse, type GuideUIConfig, GuideUIModule, type GuideVideo, HeartbeatModule, type HeartbeatResponse, type InteractionResponse, InteractionsModule, KEY_TYPE_CHANNEL, KEY_TYPE_SCENE, ModerationModule, NotificationBanner, type Platform, type PlayerData, type SDKTier, type SceneBounds$1 as SceneBounds, type SceneControl, type SceneControlOption, type SceneFrame, type SceneStats, type SceneStatsResponse, type SceneTabDefinition, SessionModule, type SessionResponse, type Standing, StaticTVClient, type StaticTVConfig, type StreamData, type ToolbarButtonProps, type VideoSlot, type Vod, fetchUserData, getParcelRects, getPlayerDisplayName, getPlayerPosition, getPlayerWallet, getSceneBounds, hideNotification, isPlayerInBounds, setupStaticUI, showNotification };
|
|
2263
|
+
export { type AdminPanelConfig, AdminPanelUIModule, type Channel, type ChatChannel, type ChatMessage, type ChatUIConfig, ChatUIModule, type CommandHandler, type FrameContent, FramesModule, type GuideFeaturedPlaylist, GuideModule, type GuideResponse, type GuideUIConfig, GuideUIModule, type GuideVideo, HeartbeatModule, type HeartbeatResponse, type InteractionResponse, InteractionsModule, KEY_TYPE_CHANNEL, KEY_TYPE_SCENE, ModerationModule, NotificationBanner, type PanelOptions, type Platform, type PlayerData, type SDKTier, type SceneBounds$1 as SceneBounds, type SceneControl, type SceneControlOption, type SceneFrame, type SceneStats, type SceneStatsResponse, type SceneTabDefinition, SessionModule, type SessionResponse, type Standing, StaticTVClient, type StaticTVConfig, type StreamData, type ToolbarButtonProps, type ToolbarPanelProps, type VideoSlot, type Vod, fetchUserData, getParcelRects, getPlayerDisplayName, getPlayerPosition, getPlayerWallet, getSceneBounds, hideNotification, isPlayerInBounds, setupStaticUI, showNotification };
|