@thestatic-tv/dcl-sdk 2.13.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 +13 -0
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +510 -363
- package/dist/index.mjs +460 -313
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -150,6 +150,19 @@ other, a `coversGuide` panel and those two close each other, and the chat stays
|
|
|
150
150
|
guide or the admin panel. A panel registered without the option is left to the scene there. The
|
|
151
151
|
names `guide`, `chat` and `admin` are the SDK's.
|
|
152
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`.
|
|
165
|
+
|
|
153
166
|
## 18+ channels (2.8.0)
|
|
154
167
|
|
|
155
168
|
18+ channels are in the lineup with the rest: each 18+ channel and each of its VODs carries
|
package/dist/index.d.mts
CHANGED
|
@@ -1616,6 +1616,8 @@ declare class StaticTVClient {
|
|
|
1616
1616
|
* scene's (registerPanel); elsewhere the guide and the admin panel close each other, as before.
|
|
1617
1617
|
*/
|
|
1618
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;
|
|
1619
1621
|
/** The SDK's own panels, which a scene cannot register over */
|
|
1620
1622
|
private static readonly OWN_PANELS;
|
|
1621
1623
|
/** Get the API base URL (for internal module use) */
|
|
@@ -2051,7 +2053,8 @@ declare class StaticTVClient {
|
|
|
2051
2053
|
* placed its own by hand before), the column on a phone. Slots count from the right (the row) or the top (the
|
|
2052
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
|
|
2053
2055
|
* scene's. `props` is the button's face - its uiBackground, onMouseDown and children - the slot gives its place and
|
|
2054
|
-
* 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.
|
|
2055
2058
|
*
|
|
2056
2059
|
* @example
|
|
2057
2060
|
* ```typescript
|
|
@@ -2064,6 +2067,18 @@ declare class StaticTVClient {
|
|
|
2064
2067
|
* ```
|
|
2065
2068
|
*/
|
|
2066
2069
|
toolbarButton(slot: number, props: ToolbarButtonProps): any;
|
|
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;
|
|
2067
2082
|
/** Where a scene's own panel's right edge goes: on a phone one gap left of the column; elsewhere `desktopRight` */
|
|
2068
2083
|
panelRight(desktopRight: number): number;
|
|
2069
2084
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1616,6 +1616,8 @@ declare class StaticTVClient {
|
|
|
1616
1616
|
* scene's (registerPanel); elsewhere the guide and the admin panel close each other, as before.
|
|
1617
1617
|
*/
|
|
1618
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;
|
|
1619
1621
|
/** The SDK's own panels, which a scene cannot register over */
|
|
1620
1622
|
private static readonly OWN_PANELS;
|
|
1621
1623
|
/** Get the API base URL (for internal module use) */
|
|
@@ -2051,7 +2053,8 @@ declare class StaticTVClient {
|
|
|
2051
2053
|
* placed its own by hand before), the column on a phone. Slots count from the right (the row) or the top (the
|
|
2052
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
|
|
2053
2055
|
* scene's. `props` is the button's face - its uiBackground, onMouseDown and children - the slot gives its place and
|
|
2054
|
-
* 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.
|
|
2055
2058
|
*
|
|
2056
2059
|
* @example
|
|
2057
2060
|
* ```typescript
|
|
@@ -2064,6 +2067,18 @@ declare class StaticTVClient {
|
|
|
2064
2067
|
* ```
|
|
2065
2068
|
*/
|
|
2066
2069
|
toolbarButton(slot: number, props: ToolbarButtonProps): any;
|
|
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;
|
|
2067
2082
|
/** Where a scene's own panel's right edge goes: on a phone one gap left of the column; elsewhere `desktopRight` */
|
|
2068
2083
|
panelRight(desktopRight: number): number;
|
|
2069
2084
|
/**
|