@remit/ui 0.0.238 → 0.0.240
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/components/app-shell-types.d.ts +12 -2
- package/dist/components/button.d.ts +5 -0
- package/dist/components/button.js +2 -0
- package/dist/components/check-again-panel.d.ts +43 -0
- package/dist/components/check-again-panel.js +60 -0
- package/dist/components/failure-banner.d.ts +11 -0
- package/dist/components/failure-banner.js +7 -0
- package/dist/components/intelligence-calendar-fixtures.js +0 -12
- package/dist/components/intelligence-panel.d.ts +7 -26
- package/dist/components/intelligence-panel.js +4 -16
- package/dist/components/intelligence-section.d.ts +3 -1
- package/dist/components/intelligence-section.js +2 -2
- package/dist/components/message-row.js +13 -3
- package/dist/components/nav-sidebar.js +49 -16
- package/dist/components/search-result-row.d.ts +1 -1
- package/dist/components/search-result-row.js +4 -7
- package/dist/components/selection-top-bar.d.ts +3 -1
- package/dist/components/selection-top-bar.js +10 -2
- package/dist/components/spam-copy.d.ts +25 -0
- package/dist/components/spam-copy.js +100 -0
- package/dist/components/spam-daily-chart.d.ts +17 -0
- package/dist/components/spam-daily-chart.js +18 -0
- package/dist/components/spam-fixtures.d.ts +19 -0
- package/dist/components/spam-fixtures.js +143 -0
- package/dist/components/spam-row-marker.d.ts +12 -0
- package/dist/components/spam-row-marker.js +10 -0
- package/dist/components/spam-verdict-panel.d.ts +37 -0
- package/dist/components/spam-verdict-panel.js +74 -0
- package/dist/components/spam-warning-banner.d.ts +20 -0
- package/dist/components/spam-warning-banner.js +62 -0
- package/dist/index.d.ts +10 -3
- package/dist/index.js +8 -1
- package/dist/lib/folder-tree.d.ts +2 -1
- package/dist/lib/folder-tree.js +15 -9
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { NextUpCard, type NextUpCardProps, } from "./components/agenda-panels.js
|
|
|
11
11
|
export { AppChrome, type AppChromeProps } from "./components/app-chrome.js";
|
|
12
12
|
export { AppPasswordHint, type AppPasswordHintProps, } from "./components/app-password-hint.js";
|
|
13
13
|
export { type AppShellLayoutContext, AppShellSlotted, type AppShellSlottedProps, useAppShellLayout, } from "./components/app-shell-slotted.js";
|
|
14
|
-
export { type AppShellProps, type Density, INTELLIGENCE_MIN_WIDTH, type MessageListKeyboard, type MessageListSelection, type NarrowView, type NavAccount, type NavAccountStatus, type NavLabel, type NavLinkComponent, type NavLinkRenderProps, type NavMailbox, type NavMailboxRole, type PaneLayout, READING_PANE_MIN_WIDTH, resolvePaneLayout, type ThreadData, type ThreadMessageData, type ThreadRowData, type ThreadSection, type TouchSeed, useContainerWidth, } from "./components/app-shell-types.js";
|
|
14
|
+
export { type AppShellProps, type Density, INTELLIGENCE_MIN_WIDTH, type MessageListKeyboard, type MessageListSelection, type NarrowView, type NavAccount, type NavAccountStatus, type NavLabel, type NavLinkComponent, type NavLinkRenderProps, type NavMailbox, type NavMailboxRole, type PaneLayout, READING_PANE_MIN_WIDTH, resolvePaneLayout, type ThreadData, type ThreadMessageData, type ThreadRowData, type ThreadRowSpam, type ThreadSection, type TouchSeed, useContainerWidth, } from "./components/app-shell-types.js";
|
|
15
15
|
export { AppBar, type AppId, type AppSwitcherProps, type AppSwitchItem, AppTabBar, } from "./components/app-switcher.js";
|
|
16
16
|
export { AppTopBar, type AppTopBarProps } from "./components/app-top-bar.js";
|
|
17
17
|
export { type AttachmentDownloadState, type AttachmentItem, type AttachmentKind, AttachmentList, type AttachmentListProps, } from "./components/attachment-list.js";
|
|
@@ -29,7 +29,7 @@ export { BottomSheet, type BottomSheetProps, } from "./components/bottom-sheet.j
|
|
|
29
29
|
export { BriefEmpty, type BriefEmptyProps, type BriefSyncProgress, } from "./components/brief-empty.js";
|
|
30
30
|
export { BriefSection, type BriefSectionProps, SECTION_ROW_CAP, } from "./components/brief-section.js";
|
|
31
31
|
export { type BriefCategoryControl, type BriefFilterControl, type BriefFilterSurface, BriefSections, type BriefSectionsProps, type BriefSourceControl, } from "./components/brief-sections.js";
|
|
32
|
-
export { Button, ButtonLink, type ButtonLinkProps, type ButtonProps, } from "./components/button.js";
|
|
32
|
+
export { Button, ButtonLink, type ButtonLinkProps, type ButtonProps, buttonClassName, } from "./components/button.js";
|
|
33
33
|
export { CalendarClashStrip, type CalendarClashStripProps, } from "./components/calendar-clash-strip.js";
|
|
34
34
|
export { CalendarEventChip, type CalendarEventChipProps, } from "./components/calendar-event-chip.js";
|
|
35
35
|
export { CalendarEventChipContent, type CalendarEventChipContentProps, } from "./components/calendar-event-chip-content.js";
|
|
@@ -55,6 +55,7 @@ export { type CalendarAttendee, type CalendarClash, type CalendarColorId, type C
|
|
|
55
55
|
export { CalendarYear, type CalendarYearProps, } from "./components/calendar-year.js";
|
|
56
56
|
export { Card, CardBody, CardHeader, type CardProps, CardTitle, } from "./components/card.js";
|
|
57
57
|
export { CategoryBadge, type CategoryBadgeProps, } from "./components/category-badge.js";
|
|
58
|
+
export { type CheckAgainFailure, type CheckAgainOutcome, CheckAgainPanel, type CheckAgainPanelProps, CheckAgainResultTag, type CheckAgainSummary, checkAgainSummarySentence, } from "./components/check-again-panel.js";
|
|
58
59
|
export { Checkbox, type CheckboxProps } from "./components/checkbox.js";
|
|
59
60
|
export { ComposeActionBar, type ComposeActionBarProps, type ComposeSaveState, type ComposeSendState, } from "./components/compose-action-bar.js";
|
|
60
61
|
export { type AddressEntry, type ComposeAddressCommit, ComposeAddressField, type ComposeAddressFieldHandle, type ComposeAddressFieldProps, type ParsedAddressInput, } from "./components/compose-address-field.js";
|
|
@@ -80,6 +81,7 @@ export type { AuthorDeclarations, EmailFrameVariant, } from "./components/email-
|
|
|
80
81
|
export { EventEditor, type EventEditorLayout, type EventEditorProps, endsBeforeStart, withAllDay, withStartDate, } from "./components/event-editor.js";
|
|
81
82
|
export { EventEditorPane, type EventEditorPaneProps, } from "./components/event-editor-pane.js";
|
|
82
83
|
export { EventSuggestionCard, type EventSuggestionCardProps, settleZone, ZONE_UNSETTLED_REASON, type ZoneSettlement, } from "./components/event-suggestion-card.js";
|
|
84
|
+
export { FailureBanner, type FailureBannerProps, } from "./components/failure-banner.js";
|
|
83
85
|
export { FieldLabel, type FieldLabelProps, } from "./components/field-label.js";
|
|
84
86
|
export { AddChipButton, type AddChipButtonProps, ClauseChip, type ClauseChipProps, type ClauseDraft, ClauseEditor, type ClauseEditorProps, } from "./components/filter-clause-chip.js";
|
|
85
87
|
export { FilterPreviewCount, type FilterPreviewCountProps, } from "./components/filter-preview-count.js";
|
|
@@ -97,7 +99,7 @@ export { FolderSyncBadge, type FolderSyncBadgeProps, type FolderSyncMailbox, typ
|
|
|
97
99
|
export { type FolderTreeNode, FolderTreePicker, type FolderTreePickerLabels, type FolderTreePickerProps, type FolderTreeRow, } from "./components/folder-tree-picker.js";
|
|
98
100
|
export { Input, type InputProps, type InputVariant, } from "./components/input.js";
|
|
99
101
|
export { type CalendarDayEntry, type CalendarInviteIntel, type CalendarProseIntel, type CalendarSuggestionIntel, IntelligenceCalendar, type IntelligenceCalendarActions, type IntelligenceCalendarData, type IntelligenceCalendarProps, } from "./components/intelligence-calendar.js";
|
|
100
|
-
export { type
|
|
102
|
+
export { type IntelligenceCalendarSurface, type IntelligenceData, IntelligencePanel, type IntelligencePanelProps, type IntelligenceQuickActions, type IntelligenceTabId, type SenderFlagsIntel, type SenderIntel, type SenderTrustLevel, type SpamQuickAction, } from "./components/intelligence-panel.js";
|
|
101
103
|
export type { PlacementIntel } from "./components/intelligence-placement.js";
|
|
102
104
|
export { IntelligenceSection } from "./components/intelligence-section.js";
|
|
103
105
|
export { IntelligenceToggle, type IntelligenceToggleProps, } from "./components/intelligence-toggle.js";
|
|
@@ -170,7 +172,12 @@ export { type SenderTrust, SenderTrustIndicator, type SenderTrustIndicatorProps,
|
|
|
170
172
|
export { AccountHealthCard, type AccountHealthCardProps, SenderFlagRow, type SenderFlagRowProps, type SettingsNavItem, SettingsShell, type SettingsShellProps, } from "./components/settings-screen.js";
|
|
171
173
|
export { type ShellSearchScope, ShellTopBar, type ShellTopBarProps, type ShellTopBarSearch, } from "./components/shell-top-bar.js";
|
|
172
174
|
export { SlidePanel, type SlidePanelProps, } from "./components/slide-panel.js";
|
|
175
|
+
export { BASIC_CHECKS_ONLY, CHECK_AGAIN_FAILURE_SENTENCES, CHECK_FAILED_HEADLINE, filterScreenSentence, formatSpamScore, isModelReason, MODEL_SKIP_CAUSES, modelSaid, modelSkipCause, spamReasonSentence, spamScoreSentence, topSpamReason, topSpamReasonSentence, UNKNOWN_REASON_SENTENCE, } from "./components/spam-copy.js";
|
|
176
|
+
export { SpamDailyChart, type SpamDailyChartProps, type SpamDay, spamDayDescription, } from "./components/spam-daily-chart.js";
|
|
173
177
|
export { SpamResultsOffer, type SpamResultsOfferProps, } from "./components/spam-results-offer.js";
|
|
178
|
+
export { SpamRowMarker, type SpamRowMarkerProps, } from "./components/spam-row-marker.js";
|
|
179
|
+
export { SPAM_CHECK_HEADING_ID, type SpamVerdictLinkComponent, type SpamVerdictLinkProps, type SpamVerdictLinkTarget, SpamVerdictPanel, type SpamVerdictPanelProps, } from "./components/spam-verdict-panel.js";
|
|
180
|
+
export { SpamWarningBanner, type SpamWarningBannerProps, type SpamWarningPending, } from "./components/spam-warning-banner.js";
|
|
174
181
|
export { type Suggestion, SuggestList, type SuggestListProps, } from "./components/suggest-list.js";
|
|
175
182
|
export { commitPeek, SwipeableRow, type SwipePeek, } from "./components/swipeable-row.js";
|
|
176
183
|
export { Switch, type SwitchProps } from "./components/switch.js";
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export { BottomSheet, } from "./components/bottom-sheet.js";
|
|
|
29
29
|
export { BriefEmpty, } from "./components/brief-empty.js";
|
|
30
30
|
export { BriefSection, SECTION_ROW_CAP, } from "./components/brief-section.js";
|
|
31
31
|
export { BriefSections, } from "./components/brief-sections.js";
|
|
32
|
-
export { Button, ButtonLink, } from "./components/button.js";
|
|
32
|
+
export { Button, ButtonLink, buttonClassName, } from "./components/button.js";
|
|
33
33
|
export { CalendarClashStrip, } from "./components/calendar-clash-strip.js";
|
|
34
34
|
export { CalendarEventChip, } from "./components/calendar-event-chip.js";
|
|
35
35
|
export { CalendarEventChipContent, } from "./components/calendar-event-chip-content.js";
|
|
@@ -55,6 +55,7 @@ export { calendarColorIds, } from "./components/calendar-types.js";
|
|
|
55
55
|
export { CalendarYear, } from "./components/calendar-year.js";
|
|
56
56
|
export { Card, CardBody, CardHeader, CardTitle, } from "./components/card.js";
|
|
57
57
|
export { CategoryBadge, } from "./components/category-badge.js";
|
|
58
|
+
export { CheckAgainPanel, CheckAgainResultTag, checkAgainSummarySentence, } from "./components/check-again-panel.js";
|
|
58
59
|
export { Checkbox } from "./components/checkbox.js";
|
|
59
60
|
export { ComposeActionBar, } from "./components/compose-action-bar.js";
|
|
60
61
|
export { ComposeAddressField, } from "./components/compose-address-field.js";
|
|
@@ -79,6 +80,7 @@ export { ErrorState, formatErrorMessage } from "./components/ErrorState.js";
|
|
|
79
80
|
export { EventEditor, endsBeforeStart, withAllDay, withStartDate, } from "./components/event-editor.js";
|
|
80
81
|
export { EventEditorPane, } from "./components/event-editor-pane.js";
|
|
81
82
|
export { EventSuggestionCard, settleZone, ZONE_UNSETTLED_REASON, } from "./components/event-suggestion-card.js";
|
|
83
|
+
export { FailureBanner, } from "./components/failure-banner.js";
|
|
82
84
|
export { FieldLabel, } from "./components/field-label.js";
|
|
83
85
|
export { AddChipButton, ClauseChip, ClauseEditor, } from "./components/filter-clause-chip.js";
|
|
84
86
|
export { FilterPreviewCount, } from "./components/filter-preview-count.js";
|
|
@@ -168,7 +170,12 @@ export { SenderTrustIndicator, selectSenderTrustVariant, } from "./components/se
|
|
|
168
170
|
export { AccountHealthCard, SenderFlagRow, SettingsShell, } from "./components/settings-screen.js";
|
|
169
171
|
export { ShellTopBar, } from "./components/shell-top-bar.js";
|
|
170
172
|
export { SlidePanel, } from "./components/slide-panel.js";
|
|
173
|
+
export { BASIC_CHECKS_ONLY, CHECK_AGAIN_FAILURE_SENTENCES, CHECK_FAILED_HEADLINE, filterScreenSentence, formatSpamScore, isModelReason, MODEL_SKIP_CAUSES, modelSaid, modelSkipCause, spamReasonSentence, spamScoreSentence, topSpamReason, topSpamReasonSentence, UNKNOWN_REASON_SENTENCE, } from "./components/spam-copy.js";
|
|
174
|
+
export { SpamDailyChart, spamDayDescription, } from "./components/spam-daily-chart.js";
|
|
171
175
|
export { SpamResultsOffer, } from "./components/spam-results-offer.js";
|
|
176
|
+
export { SpamRowMarker, } from "./components/spam-row-marker.js";
|
|
177
|
+
export { SPAM_CHECK_HEADING_ID, SpamVerdictPanel, } from "./components/spam-verdict-panel.js";
|
|
178
|
+
export { SpamWarningBanner, } from "./components/spam-warning-banner.js";
|
|
172
179
|
export { SuggestList, } from "./components/suggest-list.js";
|
|
173
180
|
export { commitPeek, SwipeableRow, } from "./components/swipeable-row.js";
|
|
174
181
|
export { Switch } from "./components/switch.js";
|
|
@@ -68,7 +68,8 @@ export declare const filterFolderTree: (ordered: readonly FolderTreeNode[], quer
|
|
|
68
68
|
/**
|
|
69
69
|
* The unfiltered list: roots always, and a child only while every ancestor it
|
|
70
70
|
* has on screen is open. A folder whose parent is absent from the list is a
|
|
71
|
-
* root, so it never hides behind something that was never there
|
|
71
|
+
* root, so it never hides behind something that was never there, and it
|
|
72
|
+
* indents only by the ancestors the list holds.
|
|
72
73
|
*/
|
|
73
74
|
export declare const collapseFolderTree: (ordered: readonly FolderTreeNode[], expanded: ReadonlySet<string>, delimiter: string) => FolderTreeRow[];
|
|
74
75
|
/**
|
package/dist/lib/folder-tree.js
CHANGED
|
@@ -107,18 +107,24 @@ export const filterFolderTree = (ordered, query, delimiter, expanded = new Set()
|
|
|
107
107
|
/**
|
|
108
108
|
* The unfiltered list: roots always, and a child only while every ancestor it
|
|
109
109
|
* has on screen is open. A folder whose parent is absent from the list is a
|
|
110
|
-
* root, so it never hides behind something that was never there
|
|
110
|
+
* root, so it never hides behind something that was never there, and it
|
|
111
|
+
* indents only by the ancestors the list holds.
|
|
111
112
|
*/
|
|
112
113
|
export const collapseFolderTree = (ordered, expanded, delimiter) => {
|
|
113
114
|
const present = new Set(ordered.map((folder) => folder.path));
|
|
114
|
-
return ordered
|
|
115
|
-
|
|
116
|
-
.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
115
|
+
return ordered.flatMap((folder) => {
|
|
116
|
+
const shown = folderAncestors(folder.path, delimiter).filter((ancestor) => present.has(ancestor));
|
|
117
|
+
if (!shown.every((ancestor) => expanded.has(ancestor)))
|
|
118
|
+
return [];
|
|
119
|
+
return [
|
|
120
|
+
{
|
|
121
|
+
folder,
|
|
122
|
+
depth: shown.length,
|
|
123
|
+
context: false,
|
|
124
|
+
expanded: expanded.has(folder.path),
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
});
|
|
122
128
|
};
|
|
123
129
|
/**
|
|
124
130
|
* Drops a create action at the end of every open folder's children, so "New
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remit/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.240",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css",
|
|
@@ -76,7 +76,8 @@
|
|
|
76
76
|
"react-dom": "^19",
|
|
77
77
|
"@types/react": "^19",
|
|
78
78
|
"@types/react-dom": "^19",
|
|
79
|
-
"@remit/domain-enums": "*"
|
|
79
|
+
"@remit/domain-enums": "*",
|
|
80
|
+
"@remit/api-http-client": "*"
|
|
80
81
|
},
|
|
81
82
|
"devDependencies": {
|
|
82
83
|
"@remit/test-dom": "*",
|