@lotics/app-sdk 0.122.6 → 0.122.8
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/index.js +1 -0
- package/dist/rpc.d.ts +2 -0
- package/dist/viewer.d.ts +2 -0
- package/docs/members_and_options.md +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29222,6 +29222,7 @@ function useAppContext() {
|
|
|
29222
29222
|
commentsEnabled: data?.comments_enabled ?? false,
|
|
29223
29223
|
recordingEnabled: data?.recording_enabled === true,
|
|
29224
29224
|
peekAppEnabled: data?.peek_app_enabled === true,
|
|
29225
|
+
hostNamesApp: data?.host_names_app === true,
|
|
29225
29226
|
timezone: data?.timezone,
|
|
29226
29227
|
currency: data?.default_currency,
|
|
29227
29228
|
resolved: data !== void 0,
|
package/dist/rpc.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export interface AppContext {
|
|
|
74
74
|
recording_enabled?: boolean;
|
|
75
75
|
/** True only from a host that serves `peekApp`; absent reads as false. */
|
|
76
76
|
peek_app_enabled?: boolean;
|
|
77
|
+
/** True only from a host whose own chrome names the app on screen; absent reads as false. */
|
|
78
|
+
host_names_app?: boolean;
|
|
77
79
|
/** This app's recordings the host still tracks, by alias. */
|
|
78
80
|
recordings?: Record<string, unknown>;
|
|
79
81
|
/** Who in the organization is away, or will be, and who stands in — absent from an older host and for a visitor from
|
package/dist/viewer.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export declare function useAppContext(): {
|
|
|
25
25
|
recordingEnabled: boolean;
|
|
26
26
|
/** The host draws another app's record in a sheet over this one (`peekApp`). */
|
|
27
27
|
peekAppEnabled: boolean;
|
|
28
|
+
/** The host's own chrome already names the app, so a screen need not title itself with the app's name. */
|
|
29
|
+
hostNamesApp: boolean;
|
|
28
30
|
timezone: string | undefined;
|
|
29
31
|
currency: string | undefined;
|
|
30
32
|
resolved: boolean;
|
|
@@ -266,6 +266,11 @@ way through to a sibling app (`openApp`, `peekApp`) is offered by. `null` where
|
|
|
266
266
|
render, an older host, or a page that had not listed its apps when the app opened). Display only: the
|
|
267
267
|
app opened checks the viewer itself.
|
|
268
268
|
|
|
269
|
+
`hostNamesApp` is `true` where the host's own chrome already names the app on screen (the workspace's
|
|
270
|
+
app page), `false` everywhere else and from an older host. Where it is `true`, a screen that titles
|
|
271
|
+
itself with the app's name draws no visible title, keeping its `<h1>` for assistive technology alone
|
|
272
|
+
(`VisuallyHidden`, `@lotics/ui/visually_hidden`).
|
|
273
|
+
|
|
269
274
|
## The workspace's zone at the root
|
|
270
275
|
|
|
271
276
|
An app's root draws nothing until `useAppContext()` has `settled` — where it failed, it draws
|
package/package.json
CHANGED