@remit/ui 0.0.164 → 0.0.166

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/components/calendar-clash-strip.render.test.ts +51 -0
  3. package/src/components/calendar-clash-strip.stories.tsx +56 -0
  4. package/src/components/calendar-clash-strip.tsx +64 -0
  5. package/src/components/calendar-invite-card.render.test.ts +110 -0
  6. package/src/components/calendar-invite-card.stories.tsx +132 -0
  7. package/src/components/calendar-invite-card.tsx +288 -0
  8. package/src/components/calendar-parse-badge.render.test.ts +40 -0
  9. package/src/components/calendar-parse-badge.stories.tsx +46 -0
  10. package/src/components/calendar-parse-badge.tsx +59 -0
  11. package/src/components/calendar-slot-offers.render.test.ts +67 -0
  12. package/src/components/calendar-slot-offers.stories.tsx +79 -0
  13. package/src/components/calendar-slot-offers.tsx +67 -0
  14. package/src/components/calendar-suggestion-deck.render.test.ts +69 -0
  15. package/src/components/calendar-suggestion-deck.stories.tsx +165 -0
  16. package/src/components/calendar-suggestion-deck.tsx +116 -0
  17. package/src/components/calendar-types.ts +57 -0
  18. package/src/components/event-suggestion-card.tsx +8 -1
  19. package/src/components/intelligence-calendar-fixtures.ts +384 -0
  20. package/src/components/intelligence-calendar.deck-zone-gate.test.ts +142 -0
  21. package/src/components/intelligence-calendar.render.test.ts +122 -0
  22. package/src/components/intelligence-calendar.tsx +288 -0
  23. package/src/components/intelligence-panel-calendar.stories.tsx +401 -0
  24. package/src/components/intelligence-panel.render.test.ts +64 -1
  25. package/src/components/intelligence-panel.stories.tsx +21 -0
  26. package/src/components/intelligence-panel.tab-strip.test.ts +163 -0
  27. package/src/components/intelligence-panel.tsx +265 -179
  28. package/src/components/intelligence-section.tsx +24 -0
  29. package/src/components/selection-wizard.render.test.ts +32 -0
  30. package/src/components/selection-wizard.tsx +28 -12
  31. package/src/index.ts +46 -0
  32. package/src/lib/semantic-off.ts +20 -0
package/src/index.ts CHANGED
@@ -143,6 +143,10 @@ export {
143
143
  type ButtonLinkProps,
144
144
  type ButtonProps,
145
145
  } from "./components/button.js";
146
+ export {
147
+ CalendarClashStrip,
148
+ type CalendarClashStripProps,
149
+ } from "./components/calendar-clash-strip.js";
146
150
  export {
147
151
  CalendarEventChip,
148
152
  type CalendarEventChipProps,
@@ -155,10 +159,28 @@ export {
155
159
  CalendarGrid,
156
160
  type CalendarGridProps,
157
161
  } from "./components/calendar-grid.js";
162
+ export {
163
+ CalendarInviteCard,
164
+ type CalendarInviteCardProps,
165
+ } from "./components/calendar-invite-card.js";
158
166
  export {
159
167
  CalendarList,
160
168
  type CalendarListProps,
161
169
  } from "./components/calendar-list.js";
170
+ export {
171
+ CalendarParseBadge,
172
+ type CalendarParseBadgeProps,
173
+ calendarParseLabel,
174
+ calendarParseNote,
175
+ } from "./components/calendar-parse-badge.js";
176
+ export {
177
+ CalendarSlotOffers,
178
+ type CalendarSlotOffersProps,
179
+ } from "./components/calendar-slot-offers.js";
180
+ export {
181
+ CalendarSuggestionDeck,
182
+ type CalendarSuggestionDeckProps,
183
+ } from "./components/calendar-suggestion-deck.js";
162
184
  export {
163
185
  CalendarDateNav,
164
186
  type CalendarDateNavProps,
@@ -170,10 +192,15 @@ export {
170
192
  export {
171
193
  type AgendaParse,
172
194
  type CalendarAttendee,
195
+ type CalendarClash,
173
196
  type CalendarColorId,
174
197
  type CalendarDay,
175
198
  type CalendarDescriptor,
176
199
  type CalendarEventData,
200
+ type CalendarInvite,
201
+ type CalendarInviteState,
202
+ type CalendarParseMethod,
203
+ type CalendarProposal,
177
204
  type CalendarSlotPick,
178
205
  type CalendarViewId,
179
206
  type ChoicePicks,
@@ -410,12 +437,24 @@ export {
410
437
  type InputProps,
411
438
  type InputVariant,
412
439
  } from "./components/input.js";
440
+ export {
441
+ type CalendarDayEntry,
442
+ type CalendarInviteIntel,
443
+ type CalendarProseIntel,
444
+ type CalendarSuggestionIntel,
445
+ IntelligenceCalendar,
446
+ type IntelligenceCalendarActions,
447
+ type IntelligenceCalendarData,
448
+ type IntelligenceCalendarProps,
449
+ } from "./components/intelligence-calendar.js";
413
450
  export {
414
451
  type AuthenticityIntel,
452
+ type IntelligenceCalendarSurface,
415
453
  type IntelligenceData,
416
454
  IntelligencePanel,
417
455
  type IntelligencePanelProps,
418
456
  type IntelligenceQuickActions,
457
+ type IntelligenceTabId,
419
458
  type MatchedChunk,
420
459
  type SenderFlagsIntel,
421
460
  type SenderIntel,
@@ -425,6 +464,7 @@ export {
425
464
  type SimilarMessageLinkProps,
426
465
  type SimilarState,
427
466
  } from "./components/intelligence-panel.js";
467
+ export { IntelligenceSection } from "./components/intelligence-section.js";
428
468
  export {
429
469
  IntelligenceToggle,
430
470
  type IntelligenceToggleProps,
@@ -1043,6 +1083,12 @@ export {
1043
1083
  type SearchConversion,
1044
1084
  searchConversionNotice,
1045
1085
  } from "./lib/search-rule.js";
1086
+ export {
1087
+ SEMANTIC_OFF_BUYS,
1088
+ SEMANTIC_OFF_COMMAND,
1089
+ SEMANTIC_OFF_TITLE,
1090
+ semanticOffReason,
1091
+ } from "./lib/semantic-off.js";
1046
1092
  export {
1047
1093
  collapsibleDomain,
1048
1094
  deriveSenderClauses,
@@ -0,0 +1,20 @@
1
+ /**
2
+ * What the surfaces backed by stored message vectors say on an instance with
3
+ * semantic search off (#1068).
4
+ *
5
+ * Off is a deployment setting, not a failure, so the copy names the command
6
+ * that changes it and what changing it buys: the Organize widen to similar
7
+ * mail, and filters that match on similarity. It deliberately promises nothing
8
+ * about the "Similar messages" panel filling — answering a typed query needs a
9
+ * query embedder no self-host image carries, so that panel is empty either way
10
+ * (deploy/vps/README.md, Search).
11
+ */
12
+ export const SEMANTIC_OFF_TITLE = "Semantic search is off on this instance.";
13
+
14
+ export const SEMANTIC_OFF_BUYS =
15
+ "On, it stores a vector for every message, which is what the Organize widen to similar mail and semantic filters read.";
16
+
17
+ export const SEMANTIC_OFF_COMMAND = "remit semantic on";
18
+
19
+ /** The same three facts as one line, for a surface with room for one. */
20
+ export const semanticOffReason = `${SEMANTIC_OFF_TITLE} ${SEMANTIC_OFF_BUYS} Run '${SEMANTIC_OFF_COMMAND}' on the server.`;