@gamention/pulse-elements 0.1.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.
@@ -0,0 +1,160 @@
1
+ import { CSSResult } from 'lit';
2
+ import { LitElement } from 'lit';
3
+ import { PulseClient } from '@gamention/pulse-core';
4
+ import { TemplateResult } from 'lit';
5
+
6
+ declare type DisplayMode = "floating" | "inline";
7
+
8
+ declare type Position = "bottom-right" | "bottom-left" | "top-right" | "top-left";
9
+
10
+ export declare class PulseComments extends LitElement {
11
+ static styles: CSSResult;
12
+ client: PulseClient;
13
+ showResolved: boolean;
14
+ private threads;
15
+ private replyingTo;
16
+ private unsub?;
17
+ connectedCallback(): void;
18
+ disconnectedCallback(): void;
19
+ updated(changed: Map<string, unknown>): void;
20
+ private setupListener;
21
+ private parseMentions;
22
+ private getInitials;
23
+ private getUserForComment;
24
+ private handleNewThread;
25
+ private handleReply;
26
+ protected render(): TemplateResult<1>;
27
+ private renderThread;
28
+ private formatTime;
29
+ }
30
+
31
+ export declare class PulseCursors extends LitElement {
32
+ static styles: CSSResult;
33
+ client: PulseClient;
34
+ private cursors;
35
+ private unsubs;
36
+ connectedCallback(): void;
37
+ disconnectedCallback(): void;
38
+ updated(changed: Map<string, unknown>): void;
39
+ private setupListeners;
40
+ private handleLocalCursor;
41
+ protected render(): TemplateResult<1>;
42
+ }
43
+
44
+ export declare class PulseNotifications extends LitElement {
45
+ static styles: CSSResult;
46
+ client: PulseClient;
47
+ private notifications;
48
+ private unsub?;
49
+ connectedCallback(): void;
50
+ disconnectedCallback(): void;
51
+ updated(changed: Map<string, unknown>): void;
52
+ private setupListener;
53
+ private handleClick;
54
+ private getActorName;
55
+ private formatTime;
56
+ protected render(): TemplateResult<1>;
57
+ }
58
+
59
+ export declare class PulsePresence extends LitElement {
60
+ static styles: CSSResult;
61
+ client: PulseClient;
62
+ maxVisible: number;
63
+ private users;
64
+ private unsub?;
65
+ connectedCallback(): void;
66
+ disconnectedCallback(): void;
67
+ updated(changed: Map<string, unknown>): void;
68
+ private setupListener;
69
+ private getInitials;
70
+ protected render(): TemplateResult<1>;
71
+ }
72
+
73
+ export declare class PulseProvider extends LitElement {
74
+ apiKey: string;
75
+ token: string;
76
+ room: string;
77
+ endpoint?: string;
78
+ client: PulseClient;
79
+ connectedCallback(): void;
80
+ disconnectedCallback(): void;
81
+ protected render(): TemplateResult<1>;
82
+ }
83
+
84
+ export declare class PulseReactions extends LitElement {
85
+ static styles: CSSResult;
86
+ client: PulseClient;
87
+ targetId: string;
88
+ targetType: "comment" | "thread";
89
+ private reactions;
90
+ private showPicker;
91
+ private unsub?;
92
+ connectedCallback(): void;
93
+ disconnectedCallback(): void;
94
+ updated(changed: Map<string, unknown>): void;
95
+ private setupListener;
96
+ private groupReactions;
97
+ private toggleReaction;
98
+ private addEmoji;
99
+ protected render(): TemplateResult<1>;
100
+ }
101
+
102
+ export declare class PulseWidget extends LitElement {
103
+ static styles: CSSResult[];
104
+ apiKey: string;
105
+ token: string;
106
+ room: string;
107
+ endpoint?: string;
108
+ position: Position;
109
+ display: DisplayMode;
110
+ private collapsed;
111
+ private activePanel;
112
+ private pinModeActive;
113
+ private highlightThreadId;
114
+ private settings;
115
+ private followingUserId;
116
+ private drawModeActive;
117
+ private connectionState;
118
+ private showConnectedFlash;
119
+ private client?;
120
+ private cursorOverlay?;
121
+ private commentPins?;
122
+ private viewportOverlay?;
123
+ private selectionOverlay?;
124
+ private drawingOverlay?;
125
+ private unsubs;
126
+ private clientConfigKey;
127
+ private _isFollowScrolling;
128
+ private _viewportThrottleTimer;
129
+ private _selectionThrottleTimer;
130
+ private _connectedFlashTimer;
131
+ private _wasDisconnected;
132
+ connectedCallback(): void;
133
+ disconnectedCallback(): void;
134
+ private getConfigKey;
135
+ private initClient;
136
+ private teardownClient;
137
+ private handleScroll;
138
+ private handleSelectionChange;
139
+ private handleDocumentClick;
140
+ private handleKeydown;
141
+ private handlePanelClose;
142
+ private handleToolbarAction;
143
+ private handleFollow;
144
+ private handleSettingsChange;
145
+ private applySettings;
146
+ private applyCursorSettings;
147
+ protected updated(changed: Map<string, unknown>): void;
148
+ /**
149
+ * Smart-position all fixed popups (toolbar popover + panel) relative to
150
+ * the trigger element, flipping vertically/horizontally as needed.
151
+ */
152
+ private positionPopups;
153
+ private computePosition;
154
+ private getFollowUserName;
155
+ private renderConnectionBanner;
156
+ private handleToolbarToggle;
157
+ protected render(): TemplateResult<1>;
158
+ }
159
+
160
+ export { }