@happyvertical/smrt-messages 0.60.16 → 0.60.18
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/chunks/{AccountCollection-BqxfVklR.js → AccountCollection-4ZT8LimZ.js} +2 -2
- package/dist/chunks/{AccountCollection-BqxfVklR.js.map → AccountCollection-4ZT8LimZ.js.map} +1 -1
- package/dist/chunks/{Email-pFuK_41u.js → Email-NNmas_WR.js} +3 -3
- package/dist/chunks/{Email-pFuK_41u.js.map → Email-NNmas_WR.js.map} +1 -1
- package/dist/chunks/{EmailFolder-BgQXYiFu.js → EmailFolder-DzNpDmjC.js} +2 -2
- package/dist/chunks/{EmailFolder-BgQXYiFu.js.map → EmailFolder-DzNpDmjC.js.map} +1 -1
- package/dist/chunks/{Message-CN0p80pA.js → Message-CHAl820M.js} +4 -4
- package/dist/chunks/{Message-CN0p80pA.js.map → Message-CHAl820M.js.map} +1 -1
- package/dist/chunks/{MessageCollection-BugOEL4f.js → MessageCollection-l7DpPn_N.js} +2 -2
- package/dist/chunks/{MessageCollection-BugOEL4f.js.map → MessageCollection-l7DpPn_N.js.map} +1 -1
- package/dist/chunks/__smrt-register__-zH3JfarO.js +6 -0
- package/dist/chunks/__smrt-register__-zH3JfarO.js.map +1 -0
- package/dist/index.js +9 -9
- package/dist/manifest.json +213 -11
- package/dist/smrt-knowledge.json +85 -7
- package/dist/svelte/components/AccountAvatar.svelte +34 -30
- package/dist/svelte/components/AccountCard.svelte +72 -63
- package/dist/svelte/components/AccountList.svelte +15 -9
- package/dist/svelte/components/AttachmentChip.svelte +54 -39
- package/dist/svelte/components/AttachmentUpload.svelte +55 -48
- package/dist/svelte/components/ComposeForm.svelte +105 -83
- package/dist/svelte/components/EmailAccountManager.svelte +245 -230
- package/dist/svelte/components/EmailFilterManager.svelte +250 -228
- package/dist/svelte/components/FolderNav.svelte +60 -50
- package/dist/svelte/components/ForwardForm.svelte +40 -34
- package/dist/svelte/components/MessageCard.svelte +116 -110
- package/dist/svelte/components/MessageDetail.svelte +107 -92
- package/dist/svelte/components/MessageFilters.svelte +73 -48
- package/dist/svelte/components/MessageList.svelte +20 -13
- package/dist/svelte/components/MessageStatusIndicator.svelte +24 -22
- package/dist/svelte/components/MessageToolbar.svelte +48 -36
- package/dist/svelte/components/MessageTypeBadge.svelte +8 -5
- package/dist/svelte/components/MessagingSettingsPanel.svelte +97 -32
- package/dist/svelte/components/RecipientInput.svelte +63 -43
- package/dist/svelte/components/ReplyForm.svelte +40 -34
- package/dist/svelte/components/SendStatusBadge.svelte +21 -14
- package/dist/svelte/components/ThreadView.svelte +68 -55
- package/package.json +16 -16
- package/dist/chunks/__smrt-register__-D5RmYQK6.js +0 -6
- package/dist/chunks/__smrt-register__-D5RmYQK6.js.map +0 -1
|
@@ -145,11 +145,11 @@ export interface Props {
|
|
|
145
145
|
}
|
|
146
146
|
</script>
|
|
147
147
|
|
|
148
|
-
<div class="compose-
|
|
148
|
+
<div class="smrt-compose-form__root" data-smrt-component="ComposeForm">
|
|
149
149
|
<Form class="compose-form" onsubmit={handleSend}>
|
|
150
150
|
{#if accounts.length > 1}
|
|
151
|
-
<div class="field">
|
|
152
|
-
<label class="
|
|
151
|
+
<div class="smrt-compose-form__field" data-smrt-part="field">
|
|
152
|
+
<label class="smrt-compose-form__label" data-smrt-part="label" for="compose-account">From</label>
|
|
153
153
|
<Select
|
|
154
154
|
id="compose-account"
|
|
155
155
|
class="select"
|
|
@@ -189,7 +189,7 @@ export interface Props {
|
|
|
189
189
|
{/if}
|
|
190
190
|
|
|
191
191
|
{#if !showCc || !showBcc}
|
|
192
|
-
<div class="
|
|
192
|
+
<div class="smrt-compose-form__toggles" data-smrt-part="actions">
|
|
193
193
|
{#if !showCc}
|
|
194
194
|
<Button variant="ghost" size="sm" class="link-btn" onclick={() => showCc = true}>Cc</Button>
|
|
195
195
|
{/if}
|
|
@@ -199,8 +199,8 @@ export interface Props {
|
|
|
199
199
|
</div>
|
|
200
200
|
{/if}
|
|
201
201
|
|
|
202
|
-
<div class="field">
|
|
203
|
-
<label class="
|
|
202
|
+
<div class="smrt-compose-form__field" data-smrt-part="field">
|
|
203
|
+
<label class="smrt-compose-form__label" data-smrt-part="label" for="compose-subject">Subject</label>
|
|
204
204
|
<Input
|
|
205
205
|
id="compose-subject"
|
|
206
206
|
type="text"
|
|
@@ -211,8 +211,8 @@ export interface Props {
|
|
|
211
211
|
/>
|
|
212
212
|
</div>
|
|
213
213
|
{:else if type === 'slack'}
|
|
214
|
-
<div class="field">
|
|
215
|
-
<label class="
|
|
214
|
+
<div class="smrt-compose-form__field" data-smrt-part="field">
|
|
215
|
+
<label class="smrt-compose-form__label" data-smrt-part="label" for="compose-channel">Channel</label>
|
|
216
216
|
<Input
|
|
217
217
|
id="compose-channel"
|
|
218
218
|
type="text"
|
|
@@ -224,7 +224,7 @@ export interface Props {
|
|
|
224
224
|
</div>
|
|
225
225
|
{/if}
|
|
226
226
|
|
|
227
|
-
<div class="
|
|
227
|
+
<div class="smrt-compose-form__body" data-smrt-part="body">
|
|
228
228
|
<Textarea
|
|
229
229
|
bind:value={body}
|
|
230
230
|
oninput={markDirty}
|
|
@@ -232,7 +232,7 @@ export interface Props {
|
|
|
232
232
|
rows={type === 'tweet' ? 4 : 10}
|
|
233
233
|
/>
|
|
234
234
|
{#if type === 'tweet'}
|
|
235
|
-
<div class="
|
|
235
|
+
<div class="smrt-compose-form__count" class:smrt-compose-form__over-limit={isOverLimit} data-smrt-part="count">
|
|
236
236
|
{charCount}/280
|
|
237
237
|
</div>
|
|
238
238
|
{/if}
|
|
@@ -261,12 +261,12 @@ export interface Props {
|
|
|
261
261
|
{/if}
|
|
262
262
|
|
|
263
263
|
{#if sendError}
|
|
264
|
-
<div class="
|
|
264
|
+
<div class="smrt-compose-form__message" role="alert" aria-live="assertive" data-smrt-part="message">
|
|
265
265
|
{sendError}
|
|
266
266
|
</div>
|
|
267
267
|
{/if}
|
|
268
268
|
|
|
269
|
-
<div class="actions">
|
|
269
|
+
<div class="smrt-compose-form__actions" data-smrt-part="actions">
|
|
270
270
|
<Button
|
|
271
271
|
type="submit"
|
|
272
272
|
variant="primary"
|
|
@@ -286,127 +286,149 @@ export interface Props {
|
|
|
286
286
|
|
|
287
287
|
<style>
|
|
288
288
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
289
|
-
@layer smrt.
|
|
289
|
+
@layer smrt.structure {
|
|
290
290
|
/*
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
.compose-
|
|
291
|
+
* The form now renders through smrt-ui's <Form> (Provider-free base `<form>`).
|
|
292
|
+
* `class="compose-form"` lands on the real `<form>` inside the Form child, so
|
|
293
|
+
* `.smrt-compose-form__root :global(.compose-form)` anchors on the wrapper and
|
|
294
|
+
* pierces the child scope to keep the column layout / padding (issue #1589).
|
|
295
|
+
*/
|
|
296
|
+
.smrt-compose-form__root :global(.compose-form) {
|
|
297
297
|
display: flex;
|
|
298
298
|
flex-direction: column;
|
|
299
299
|
gap: var(--smrt-spacing-2);
|
|
300
300
|
padding: var(--smrt-spacing-4);
|
|
301
|
-
font-family: var(--smrt-font-family, system-ui);
|
|
302
301
|
}
|
|
303
|
-
|
|
304
|
-
.field {
|
|
302
|
+
.smrt-compose-form__field {
|
|
305
303
|
display: flex;
|
|
306
304
|
align-items: center;
|
|
307
305
|
gap: var(--smrt-spacing-2);
|
|
308
306
|
padding: var(--smrt-spacing-1) 0;
|
|
309
|
-
border-bottom: var(--smrt-hairline);
|
|
310
307
|
}
|
|
308
|
+
.smrt-compose-form__label {
|
|
309
|
+
min-width: 56px;
|
|
310
|
+
}
|
|
311
|
+
/*
|
|
312
|
+
* The From <Select> and Subject/Channel <Input>s now render through smrt-ui's
|
|
313
|
+
* form primitives. These are naked, borderless inline fields that sit on the
|
|
314
|
+
* `.smrt-compose-form__field` row's bottom-border, so `.smrt-compose-form__field :global([data-smrt-component="Select"])` /
|
|
315
|
+
* `.smrt-compose-form__field :global(.text-input)` pierce the child scopes to strip the
|
|
316
|
+
* primitives' border / background / focus box-shadow and restore the flush
|
|
317
|
+
* inline look. `appearance: auto` brings back the Select's native arrow (the
|
|
318
|
+
* primitive paints a chevron on its own background, which we've cleared) —
|
|
319
|
+
* issue #1589.
|
|
320
|
+
*/
|
|
321
|
+
.smrt-compose-form__field :global([data-smrt-component="Select"]),
|
|
322
|
+
.smrt-compose-form__field :global(.text-input) {
|
|
323
|
+
flex: 1;
|
|
324
|
+
padding: var(--smrt-spacing-2) 0;
|
|
325
|
+
}
|
|
326
|
+
.smrt-compose-form__field :global([data-smrt-component="Select"]) {
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
}
|
|
329
|
+
.smrt-compose-form__toggles {
|
|
330
|
+
display: flex;
|
|
331
|
+
gap: var(--smrt-spacing-2);
|
|
332
|
+
justify-content: flex-end;
|
|
333
|
+
}
|
|
334
|
+
.smrt-compose-form__body {
|
|
335
|
+
position: relative;
|
|
336
|
+
}
|
|
337
|
+
.smrt-compose-form__count {
|
|
338
|
+
padding-top: var(--smrt-spacing-1);
|
|
339
|
+
}
|
|
340
|
+
.smrt-compose-form__message {
|
|
341
|
+
padding: var(--smrt-spacing-2) var(--smrt-spacing-3);
|
|
342
|
+
}
|
|
343
|
+
.smrt-compose-form__actions {
|
|
344
|
+
display: flex;
|
|
345
|
+
gap: var(--smrt-spacing-2);
|
|
346
|
+
padding-top: var(--smrt-spacing-2);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
311
349
|
|
|
312
|
-
|
|
350
|
+
@layer smrt.theme {
|
|
351
|
+
/*
|
|
352
|
+
* The form now renders through smrt-ui's <Form> (Provider-free base `<form>`).
|
|
353
|
+
* `class="compose-form"` lands on the real `<form>` inside the Form child, so
|
|
354
|
+
* `.smrt-compose-form__root :global(.compose-form)` anchors on the wrapper and
|
|
355
|
+
* pierces the child scope to keep the column layout / padding (issue #1589).
|
|
356
|
+
*/
|
|
357
|
+
.smrt-compose-form__root :global(.compose-form) {
|
|
358
|
+
font-family: var(--smrt-font-family, system-ui);
|
|
359
|
+
}
|
|
360
|
+
.smrt-compose-form__field {
|
|
361
|
+
border-bottom: var(--smrt-hairline);
|
|
362
|
+
}
|
|
363
|
+
.smrt-compose-form__label {
|
|
313
364
|
font-size: var(--smrt-typography-label-large-size);
|
|
314
365
|
color: var(--smrt-color-on-surface-variant);
|
|
315
|
-
min-width: 56px;
|
|
316
366
|
}
|
|
317
|
-
|
|
318
367
|
/*
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
.
|
|
329
|
-
.
|
|
330
|
-
flex: 1;
|
|
368
|
+
* The From <Select> and Subject/Channel <Input>s now render through smrt-ui's
|
|
369
|
+
* form primitives. These are naked, borderless inline fields that sit on the
|
|
370
|
+
* `.smrt-compose-form__field` row's bottom-border, so `.smrt-compose-form__field :global([data-smrt-component="Select"])` /
|
|
371
|
+
* `.smrt-compose-form__field :global(.text-input)` pierce the child scopes to strip the
|
|
372
|
+
* primitives' border / background / focus box-shadow and restore the flush
|
|
373
|
+
* inline look. `appearance: auto` brings back the Select's native arrow (the
|
|
374
|
+
* primitive paints a chevron on its own background, which we've cleared) —
|
|
375
|
+
* issue #1589.
|
|
376
|
+
*/
|
|
377
|
+
.smrt-compose-form__field :global([data-smrt-component="Select"]),
|
|
378
|
+
.smrt-compose-form__field :global(.text-input) {
|
|
331
379
|
border: none;
|
|
332
380
|
outline: none;
|
|
333
381
|
box-shadow: none;
|
|
334
382
|
font-family: inherit;
|
|
335
383
|
font-size: var(--smrt-typography-body-medium-size);
|
|
336
|
-
padding: var(--smrt-spacing-2) 0;
|
|
337
384
|
background: transparent;
|
|
338
385
|
color: var(--smrt-color-on-surface);
|
|
339
386
|
}
|
|
340
|
-
|
|
341
|
-
.field :global([data-smrt-component="Select"]) {
|
|
387
|
+
.smrt-compose-form__field :global([data-smrt-component="Select"]) {
|
|
342
388
|
appearance: auto;
|
|
343
|
-
cursor: pointer;
|
|
344
389
|
}
|
|
345
|
-
|
|
346
|
-
.
|
|
347
|
-
.field :global(.text-input):focus {
|
|
390
|
+
.smrt-compose-form__field :global([data-smrt-component="Select"]):focus,
|
|
391
|
+
.smrt-compose-form__field :global(.text-input):focus {
|
|
348
392
|
border: none;
|
|
349
393
|
box-shadow: none;
|
|
350
394
|
}
|
|
351
|
-
|
|
352
|
-
.cc-toggles {
|
|
353
|
-
display: flex;
|
|
354
|
-
gap: var(--smrt-spacing-2);
|
|
355
|
-
justify-content: flex-end;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
395
|
/*
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
.
|
|
396
|
+
* The Cc/Bcc toggles now render through smrt-ui's <Button variant="ghost">.
|
|
397
|
+
* `.smrt-compose-form__toggles :global(.link-btn)` anchors on the real `.smrt-compose-form__toggles` element
|
|
398
|
+
* and pierces the Button child scope to keep the underlined text-link look
|
|
399
|
+
* (issue #1589).
|
|
400
|
+
*/
|
|
401
|
+
.smrt-compose-form__toggles :global(.link-btn) {
|
|
365
402
|
background: none;
|
|
366
403
|
border: none;
|
|
367
404
|
color: var(--smrt-color-primary);
|
|
368
405
|
font-size: var(--smrt-typography-label-large-size);
|
|
369
406
|
text-decoration: underline;
|
|
370
407
|
}
|
|
371
|
-
|
|
372
|
-
.body-field {
|
|
373
|
-
position: relative;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.char-count {
|
|
408
|
+
.smrt-compose-form__count {
|
|
377
409
|
text-align: right;
|
|
378
410
|
font-size: var(--smrt-typography-label-medium-size);
|
|
379
411
|
color: var(--smrt-color-outline);
|
|
380
|
-
padding-top: var(--smrt-spacing-1);
|
|
381
412
|
}
|
|
382
|
-
|
|
383
|
-
.char-count.over-limit {
|
|
413
|
+
.smrt-compose-form__count.smrt-compose-form__over-limit {
|
|
384
414
|
color: var(--smrt-color-error);
|
|
385
415
|
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
386
416
|
}
|
|
387
|
-
|
|
388
|
-
.send-error {
|
|
389
|
-
padding: var(--smrt-spacing-2) var(--smrt-spacing-3);
|
|
417
|
+
.smrt-compose-form__message {
|
|
390
418
|
border-radius: var(--smrt-radius-sm);
|
|
391
419
|
background: var(--smrt-color-error-container);
|
|
392
420
|
color: var(--smrt-color-on-error-container);
|
|
393
421
|
font-size: var(--smrt-typography-body-small-size);
|
|
394
422
|
}
|
|
395
|
-
|
|
396
|
-
.actions {
|
|
397
|
-
display: flex;
|
|
398
|
-
gap: var(--smrt-spacing-2);
|
|
399
|
-
padding-top: var(--smrt-spacing-2);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
423
|
/*
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
.
|
|
424
|
+
* Send/Save-draft now use Button's primary/secondary variants directly (dead
|
|
425
|
+
* .btn-primary/.btn-secondary CSS removed). The Discard button keeps its
|
|
426
|
+
* neutral on-surface-variant text via `.smrt-compose-form__actions :global(.btn-text)` (Button's
|
|
427
|
+
* ghost uses the primary color) — issue #1589.
|
|
428
|
+
*/
|
|
429
|
+
.smrt-compose-form__actions :global(.btn-text) {
|
|
409
430
|
color: var(--smrt-color-on-surface-variant);
|
|
410
431
|
}
|
|
411
432
|
}
|
|
433
|
+
|
|
412
434
|
</style>
|