@meetelise/chat 1.59.3 → 1.59.4

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.
@@ -37,6 +37,13 @@ export declare class PubnubChat extends LitElement {
37
37
  private _replyAnnouncement;
38
38
  private announcedReplyKeys;
39
39
  private hasReplySnapshot;
40
+ /** True from Send until the reply paint settles, so focus can be repaired. */
41
+ private holdMessageFieldFocus;
42
+ /** True until initializePubnub and publish settle. Streaming is still false then. */
43
+ private sendInFlight;
44
+ private releaseFocusHoldQueued;
45
+ /** Widget element whose siblings were hidden for the phone dialog. */
46
+ private hostPageLock;
40
47
  privacyPolicyUrl: string;
41
48
  websitePreviewMapping: {
42
49
  [messageId: string]: {
@@ -58,8 +65,20 @@ export declare class PubnubChat extends LitElement {
58
65
  private syncReplyAnnouncement;
59
66
  private renderReplyAnnouncer;
60
67
  updated(): Promise<void>;
68
+ /** Phone layout only. Desktop must leave the host page alone. */
69
+ private syncHostPage;
70
+ private releaseHostPage;
71
+ /**
72
+ * If Send or a dropped focus (document / body) is active during a send,
73
+ * put the caret back in the field. A control the user moved to inside
74
+ * the dialog, or a desktop page control they clicked, is left alone.
75
+ */
76
+ private restoreMessageFieldFocus;
77
+ private scheduleFocusHoldRelease;
61
78
  autoResizeMessageInput: () => void;
62
79
  needsConsent: () => boolean;
80
+ /** Visible caption for the message field. Stays on screen while typing. */
81
+ private renderMessageFieldLabel;
63
82
  /** Caret in the message field when the composer is on screen. */
64
83
  focusMessageField(): boolean;
65
84
  /** Tab cycles inside the fullscreen mobile dialog. Desktop stays non-modal. */
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The phone layout is a fullscreen dialog. aria-modal alone does not stop
3
+ * iOS VoiceOver from reaching the host page, so siblings of the widget are
4
+ * marked inert and aria-hidden while that layout is open.
5
+ * Desktop chat stays non-modal and must not touch the host page.
6
+ */
7
+ /** Light-DOM widget element. Its siblings are the host page. */
8
+ export declare const widgetLightHost: (start: Element) => Element | null;
9
+ /** Hide every element sibling of the widget. Safe to call again on send. */
10
+ export declare const hideHostSiblings: (host: Element) => void;
11
+ /** Put host siblings back the way they were when the dialog opened. */
12
+ export declare const restoreHostSiblings: (host: Element) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.59.3",
3
+ "version": "1.59.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",