@chat-leo/chatleo 0.0.0-stage → 2.0.2

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.
Files changed (144) hide show
  1. package/LICENSE +21 -0
  2. package/dist/chatleo/chatleo.esm.js +1 -0
  3. package/dist/chatleo/index.esm.js +1 -0
  4. package/dist/chatleo/p-43ada232.entry.js +1 -0
  5. package/dist/chatleo/p-4485e141.entry.js +1 -0
  6. package/dist/chatleo/p-BnCPdbII.js +1 -0
  7. package/dist/chatleo/p-C-l90Wre.js +1 -0
  8. package/dist/chatleo/p-DQuL1Twl.js +1 -0
  9. package/dist/chatleo/p-DmL518NK.js +3 -0
  10. package/dist/chatleo/p-aed60255.entry.js +1 -0
  11. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  12. package/dist/cjs/chatleo-avatar_13.cjs.entry.js +2986 -0
  13. package/dist/cjs/chatleo-call-adapter-B2OfC0VZ.js +35 -0
  14. package/dist/cjs/chatleo-chat-input.cjs.entry.js +67 -0
  15. package/dist/cjs/chatleo.cjs.js +25 -0
  16. package/dist/cjs/index-DkSDLR0y.js +56 -0
  17. package/dist/cjs/index-Dxw4YCA_.js +1741 -0
  18. package/dist/cjs/index.cjs.js +7 -0
  19. package/dist/cjs/loader.cjs.js +13 -0
  20. package/dist/cjs/my-component.cjs.entry.js +33 -0
  21. package/dist/collection/__mocks__/stencil-core.js +26 -0
  22. package/dist/collection/collection-manifest.json +27 -0
  23. package/dist/collection/components/chatleo-avatar/chatleo-avatar.css +40 -0
  24. package/dist/collection/components/chatleo-avatar/chatleo-avatar.js +116 -0
  25. package/dist/collection/components/chatleo-chat/chatleo-chat.css +108 -0
  26. package/dist/collection/components/chatleo-chat/chatleo-chat.js +459 -0
  27. package/dist/collection/components/chatleo-chat-header/chatleo-chat-header.css +22 -0
  28. package/dist/collection/components/chatleo-chat-header/chatleo-chat-header.js +105 -0
  29. package/dist/collection/components/chatleo-chat-input/chatleo-chat-input.css +84 -0
  30. package/dist/collection/components/chatleo-chat-input/chatleo-chat-input.js +141 -0
  31. package/dist/collection/components/chatleo-chat-message/chatleo-chat-message.css +149 -0
  32. package/dist/collection/components/chatleo-chat-message/chatleo-chat-message.js +259 -0
  33. package/dist/collection/components/chatleo-component/chatleo-component.css +271 -0
  34. package/dist/collection/components/chatleo-component/chatleo-component.js +1366 -0
  35. package/dist/collection/components/chatleo-new-message-selector/chatleo-new-message-selector.css +96 -0
  36. package/dist/collection/components/chatleo-new-message-selector/chatleo-new-message-selector.js +231 -0
  37. package/dist/collection/components/chatleo-rich-input/chatleo-rich-input.css +352 -0
  38. package/dist/collection/components/chatleo-rich-input/chatleo-rich-input.js +976 -0
  39. package/dist/collection/components/chatleo-rich-message-renderer/chatleo-rich-message-renderer.css +169 -0
  40. package/dist/collection/components/chatleo-rich-message-renderer/chatleo-rich-message-renderer.js +400 -0
  41. package/dist/collection/components/chatleo-room-list/chatleo-room-list.css +111 -0
  42. package/dist/collection/components/chatleo-room-list/chatleo-room-list.js +180 -0
  43. package/dist/collection/components/chatleo-room-tile-component/chatleo-room-tile-component.css +110 -0
  44. package/dist/collection/components/chatleo-room-tile-component/chatleo-room-tile-component.js +241 -0
  45. package/dist/collection/components/chatleo-room-view/chatleo-room-view.css +93 -0
  46. package/dist/collection/components/chatleo-room-view/chatleo-room-view.js +593 -0
  47. package/dist/collection/components/chatleo-tray-component/chatleo-tray-component.css +284 -0
  48. package/dist/collection/components/chatleo-tray-component/chatleo-tray-component.js +391 -0
  49. package/dist/collection/components/chatleo-user-tile/chatleo-user-tile.css +56 -0
  50. package/dist/collection/components/chatleo-user-tile/chatleo-user-tile.js +149 -0
  51. package/dist/collection/components/my-component/my-component.css +4 -0
  52. package/dist/collection/components/my-component/my-component.js +95 -0
  53. package/dist/collection/index.js +10 -0
  54. package/dist/collection/utils/call-entry.js +34 -0
  55. package/dist/collection/utils/delivery.js +7 -0
  56. package/dist/collection/utils/utils.js +51 -0
  57. package/dist/components/chatleo-avatar.d.ts +11 -0
  58. package/dist/components/chatleo-avatar.js +1 -0
  59. package/dist/components/chatleo-chat-header.d.ts +11 -0
  60. package/dist/components/chatleo-chat-header.js +1 -0
  61. package/dist/components/chatleo-chat-input.d.ts +11 -0
  62. package/dist/components/chatleo-chat-input.js +1 -0
  63. package/dist/components/chatleo-chat-message.d.ts +11 -0
  64. package/dist/components/chatleo-chat-message.js +1 -0
  65. package/dist/components/chatleo-chat.d.ts +11 -0
  66. package/dist/components/chatleo-chat.js +1 -0
  67. package/dist/components/chatleo-component.d.ts +11 -0
  68. package/dist/components/chatleo-component.js +1 -0
  69. package/dist/components/chatleo-new-message-selector.d.ts +11 -0
  70. package/dist/components/chatleo-new-message-selector.js +1 -0
  71. package/dist/components/chatleo-rich-input.d.ts +11 -0
  72. package/dist/components/chatleo-rich-input.js +1 -0
  73. package/dist/components/chatleo-rich-message-renderer.d.ts +11 -0
  74. package/dist/components/chatleo-rich-message-renderer.js +1 -0
  75. package/dist/components/chatleo-room-list.d.ts +11 -0
  76. package/dist/components/chatleo-room-list.js +1 -0
  77. package/dist/components/chatleo-room-tile-component.d.ts +11 -0
  78. package/dist/components/chatleo-room-tile-component.js +1 -0
  79. package/dist/components/chatleo-room-view.d.ts +11 -0
  80. package/dist/components/chatleo-room-view.js +1 -0
  81. package/dist/components/chatleo-tray-component.d.ts +11 -0
  82. package/dist/components/chatleo-tray-component.js +1 -0
  83. package/dist/components/chatleo-user-tile.d.ts +11 -0
  84. package/dist/components/chatleo-user-tile.js +1 -0
  85. package/dist/components/index.d.ts +35 -0
  86. package/dist/components/index.js +1 -0
  87. package/dist/components/my-component.d.ts +11 -0
  88. package/dist/components/my-component.js +1 -0
  89. package/dist/components/p-8kvQ-Uh-.js +1 -0
  90. package/dist/components/p-B7cdqAgv.js +1 -0
  91. package/dist/components/p-BdiOcOYZ.js +1 -0
  92. package/dist/components/p-BlbDSb7D.js +1 -0
  93. package/dist/components/p-BnCPdbII.js +1 -0
  94. package/dist/components/p-C-v19aUJ.js +1 -0
  95. package/dist/components/p-C1mF0s8g.js +1 -0
  96. package/dist/components/p-CRtBdzP3.js +1 -0
  97. package/dist/components/p-CfayCm9O.js +1 -0
  98. package/dist/components/p-DGjAxoQy.js +1 -0
  99. package/dist/components/p-Exj_2-yI.js +1 -0
  100. package/dist/components/p-XlwGxsqT.js +1 -0
  101. package/dist/components/p-fjMaTJam.js +1 -0
  102. package/dist/components/p-xt4kzz3B.js +1 -0
  103. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  104. package/dist/esm/chatleo-avatar_13.entry.js +2972 -0
  105. package/dist/esm/chatleo-call-adapter-BnCPdbII.js +33 -0
  106. package/dist/esm/chatleo-chat-input.entry.js +65 -0
  107. package/dist/esm/chatleo.js +21 -0
  108. package/dist/esm/index-C-l90Wre.js +53 -0
  109. package/dist/esm/index-DmL518NK.js +1733 -0
  110. package/dist/esm/index.js +1 -0
  111. package/dist/esm/loader.js +11 -0
  112. package/dist/esm/my-component.entry.js +31 -0
  113. package/dist/index.cjs.js +1 -0
  114. package/dist/index.js +1 -0
  115. package/dist/types/__mocks__/stencil-core.d.ts +24 -0
  116. package/dist/types/components/chatleo-avatar/chatleo-avatar.d.ts +27 -0
  117. package/dist/types/components/chatleo-chat/chatleo-chat.d.ts +75 -0
  118. package/dist/types/components/chatleo-chat-header/chatleo-chat-header.d.ts +27 -0
  119. package/dist/types/components/chatleo-chat-input/chatleo-chat-input.d.ts +31 -0
  120. package/dist/types/components/chatleo-chat-message/chatleo-chat-message.d.ts +22 -0
  121. package/dist/types/components/chatleo-component/chatleo-component.d.ts +278 -0
  122. package/dist/types/components/chatleo-new-message-selector/chatleo-new-message-selector.d.ts +68 -0
  123. package/dist/types/components/chatleo-rich-input/chatleo-rich-input.d.ts +216 -0
  124. package/dist/types/components/chatleo-rich-message-renderer/chatleo-rich-message-renderer.d.ts +77 -0
  125. package/dist/types/components/chatleo-room-list/chatleo-room-list.d.ts +52 -0
  126. package/dist/types/components/chatleo-room-tile-component/chatleo-room-tile-component.d.ts +59 -0
  127. package/dist/types/components/chatleo-room-view/chatleo-room-view.d.ts +91 -0
  128. package/dist/types/components/chatleo-tray-component/chatleo-tray-component.d.ts +112 -0
  129. package/dist/types/components/chatleo-user-tile/chatleo-user-tile.d.ts +36 -0
  130. package/dist/types/components/my-component/my-component.d.ts +16 -0
  131. package/dist/types/components.d.ts +1593 -0
  132. package/dist/types/index.d.ts +12 -0
  133. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  134. package/dist/types/utils/call-entry.d.ts +9 -0
  135. package/dist/types/utils/delivery.d.ts +7 -0
  136. package/dist/types/utils/utils.d.ts +24 -0
  137. package/loader/cdn.js +1 -0
  138. package/loader/index.cjs.js +1 -0
  139. package/loader/index.d.ts +24 -0
  140. package/loader/index.es2017.js +1 -0
  141. package/loader/index.js +2 -0
  142. package/package.json +70 -3
  143. package/readme.md +111 -0
  144. package/README.md +0 -3
@@ -0,0 +1,271 @@
1
+ :host {
2
+ overflow: hidden;
3
+ position: relative;
4
+ height: 100%;
5
+ max-height: 100%;
6
+ min-height: 0;
7
+
8
+ /* Display */
9
+ --display: block;
10
+
11
+ /* Common Colors */
12
+ --bg-primary: #ffffff;
13
+ --bg-secondary: #f3f4f6;
14
+ --bg-light: #e7effc;
15
+ --text-primary: #171a1f;
16
+ --text-secondary: #9095a1;
17
+ --border-color: #bdc1ca;
18
+ --border-light: #eeeeee;
19
+ --accent-color: #4a86e8;
20
+ --accent-hover: #3a7bd8;
21
+ --status-online: #21d184;
22
+ --status-offline: #6b7280;
23
+
24
+ /* Typography */
25
+ --font-primary: 'Manrope', sans-serif;
26
+
27
+ /* Common Sizes */
28
+ --avatar-size: 36px;
29
+ --border-radius: 8px;
30
+ --transition-duration: 0.2s;
31
+
32
+ /* Component Display */
33
+ display: var(--display);
34
+ }
35
+
36
+ /* Connection status banner */
37
+ .connection-banner {
38
+ display: flex;
39
+ align-items: center;
40
+ gap: 6px;
41
+ padding: 5px 12px;
42
+ font-family: var(--font-primary, 'Manrope', sans-serif);
43
+ font-size: 12px;
44
+ font-weight: 600;
45
+ color: #fff;
46
+ background: #6b7280;
47
+ z-index: 100;
48
+ flex-shrink: 0;
49
+ }
50
+
51
+ .connection-banner--connecting,
52
+ .connection-banner--reconnecting {
53
+ background: #f59e0b;
54
+ color: #fff;
55
+ }
56
+
57
+ .connection-banner--disconnected {
58
+ background: #ef4444;
59
+ color: #fff;
60
+ }
61
+
62
+ .connection-banner__dot {
63
+ width: 7px;
64
+ height: 7px;
65
+ border-radius: 50%;
66
+ background: rgba(255, 255, 255, 0.8);
67
+ flex-shrink: 0;
68
+ animation: pulse-dot 1.4s ease-in-out infinite;
69
+ }
70
+
71
+ .connection-banner--disconnected .connection-banner__dot {
72
+ animation: none;
73
+ }
74
+
75
+ @keyframes pulse-dot {
76
+ 0%,
77
+ 100% {
78
+ opacity: 1;
79
+ }
80
+ 50% {
81
+ opacity: 0.3;
82
+ }
83
+ }
84
+
85
+ /* Session-expired overlay */
86
+ .session-expired-overlay {
87
+ position: absolute;
88
+ inset: 0;
89
+ z-index: 9999;
90
+ background: rgba(255, 255, 255, 0.85);
91
+ backdrop-filter: blur(4px);
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: center;
95
+ }
96
+
97
+ .session-expired-box {
98
+ background: var(--bg-primary, #fff);
99
+ border: 1px solid var(--border-color, #bdc1ca);
100
+ border-radius: var(--border-radius, 8px);
101
+ box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
102
+ padding: 32px 28px;
103
+ max-width: 340px;
104
+ width: 100%;
105
+ text-align: center;
106
+ display: flex;
107
+ flex-direction: column;
108
+ align-items: center;
109
+ gap: 12px;
110
+ }
111
+
112
+ .session-expired-icon {
113
+ color: #f59e0b;
114
+ width: 32px;
115
+ height: 32px;
116
+ }
117
+
118
+ .session-expired-title {
119
+ margin: 0;
120
+ font-family: var(--font-primary, 'Manrope', sans-serif);
121
+ font-size: 16px;
122
+ font-weight: 700;
123
+ color: var(--text-primary, #171a1f);
124
+ }
125
+
126
+ .session-expired-message {
127
+ margin: 0;
128
+ font-family: var(--font-primary, 'Manrope', sans-serif);
129
+ font-size: 13px;
130
+ color: var(--text-secondary, #9095a1);
131
+ line-height: 1.6;
132
+ }
133
+
134
+ .session-expired-button {
135
+ margin-top: 4px;
136
+ padding: 8px 20px;
137
+ background: var(--accent-color, #4a86e8);
138
+ color: #fff;
139
+ border: none;
140
+ border-radius: var(--border-radius, 8px);
141
+ font-family: var(--font-primary, 'Manrope', sans-serif);
142
+ font-size: 14px;
143
+ font-weight: 600;
144
+ cursor: pointer;
145
+ transition: background var(--transition-duration, 0.2s);
146
+ }
147
+
148
+ .session-expired-button:hover {
149
+ background: var(--accent-hover, #3a7bd8);
150
+ }
151
+
152
+ .call-layer {
153
+ position: absolute;
154
+ inset: 0;
155
+ z-index: 40;
156
+ background: var(--bg-primary, #fff);
157
+ flex-direction: column;
158
+ }
159
+
160
+ .call-layer__back {
161
+ align-self: flex-end;
162
+ margin: 8px 16px 0;
163
+ border: 1px solid var(--border-color, #ddd);
164
+ background: transparent;
165
+ border-radius: 6px;
166
+ padding: 4px 10px;
167
+ font: inherit;
168
+ cursor: pointer;
169
+ }
170
+
171
+ .incoming-call {
172
+ position: absolute;
173
+ inset: 0;
174
+ z-index: 50;
175
+ display: flex;
176
+ align-items: center;
177
+ justify-content: center;
178
+ background: rgba(15, 23, 42, 0.45);
179
+ }
180
+
181
+ .incoming-call:focus {
182
+ outline: none;
183
+ }
184
+
185
+ .incoming-call__box {
186
+ width: min(320px, calc(100% - 32px));
187
+ background: var(--bg-primary, #fff);
188
+ border-radius: 12px;
189
+ padding: 24px;
190
+ text-align: center;
191
+ box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
192
+ }
193
+
194
+ .incoming-call__eyebrow {
195
+ margin: 0 0 12px;
196
+ font-size: 12px;
197
+ letter-spacing: 0.08em;
198
+ text-transform: uppercase;
199
+ color: var(--text-secondary, #667);
200
+ }
201
+
202
+ .incoming-call__name {
203
+ margin: 12px 0 20px;
204
+ font-size: 18px;
205
+ font-weight: 700;
206
+ }
207
+
208
+ .incoming-call__actions {
209
+ display: flex;
210
+ gap: 10px;
211
+ justify-content: center;
212
+ }
213
+
214
+ .incoming-call__accept,
215
+ .incoming-call__decline {
216
+ border-radius: 8px;
217
+ padding: 8px 18px;
218
+ font: inherit;
219
+ cursor: pointer;
220
+ }
221
+
222
+ .incoming-call__accept {
223
+ border: none;
224
+ background: #1b8a3a;
225
+ color: #fff;
226
+ }
227
+
228
+ .incoming-call__decline {
229
+ border: 1px solid var(--border-color, #ddd);
230
+ background: transparent;
231
+ color: inherit;
232
+ }
233
+
234
+ .push-control {
235
+ display: flex;
236
+ align-items: center;
237
+ gap: 8px;
238
+ padding: 6px 12px;
239
+ border: 0;
240
+ border-bottom: 1px solid var(--border-light, #eee);
241
+ background: var(--bg-secondary, #f7f8fa);
242
+ color: var(--text-primary, #222);
243
+ font: inherit;
244
+ font-size: 12px;
245
+ text-align: left;
246
+ cursor: pointer;
247
+ }
248
+
249
+ .push-control--hint {
250
+ cursor: default;
251
+ color: var(--text-secondary, #667);
252
+ }
253
+
254
+ .push-control--prompt {
255
+ flex-wrap: wrap;
256
+ }
257
+
258
+ .push-control--prompt button {
259
+ border: 1px solid var(--accent-color, #4a86e8);
260
+ border-radius: 6px;
261
+ background: transparent;
262
+ color: var(--accent-color, #4a86e8);
263
+ padding: 3px 10px;
264
+ font: inherit;
265
+ cursor: pointer;
266
+ }
267
+
268
+ .push-control__secondary {
269
+ border-color: var(--border-color, #ddd) !important;
270
+ color: var(--text-secondary, #667) !important;
271
+ }