BlueGit

ict rusty-teams

Files

rusty-teams / crates / core / src / lib.rs

lib.rs

lib.rs 7.8 KiB Download Raw
1mod actions;
2mod activity_sync;
3mod adaptive_card;
4mod announcement;
5mod announcement_post;
6mod avatars;
7mod bot_partners;
8mod call_event;
9mod card_actions;
10mod card_chart;
11mod card_date;
12mod card_inputs;
13mod card_layout;
14mod card_table;
15mod card_widgets;
16mod card_width;
17mod channel_mentions;
18mod channel_sync;
19mod channel_visibility;
20mod chat_paging;
21mod chat_send;
22mod chat_settings_sync;
23mod cloud_files;
24mod copilot;
25mod default_reactions;
26mod download;
27mod draft;
28mod emoticon_tags;
29mod emotion_sync;
30mod engine;
31mod error;
32mod events;
33mod external_image;
34mod folders;
35mod forward_sync;
36mod forwarded;
37mod gifs;
38mod hidden_chats;
39mod image_size;
40mod images;
41mod italic;
42mod jumbo;
43mod library;
44mod link_sync;
45mod links;
46mod mapping;
47mod markdown;
48mod meeting_join;
49mod mentions;
50mod message_actions;
51mod message_link;
52mod message_window;
53pub mod native;
54mod notes_chat;
55mod people;
56mod presence;
57mod preview;
58mod profile;
59mod receipts;
60mod recording_rights;
61mod remote;
62pub mod roster_event;
63mod scheduled;
64mod search;
65mod server_search;
66mod sidebar_sync;
67mod skin_tone;
68mod spans;
69mod stored;
70mod table;
71mod team_admin;
72mod teams_quote;
73mod time_zone;
74mod translate_sync;
75mod translation;
76mod youtube;
77
78pub use actions::OpenedPost;
79pub use activity_sync::stored_activity_feed;
80pub use adaptive_card::{
81 ActionSplit, AdaptiveCard, CARD_THEME, CardAction, CardActionIcon, CardActionKind, CardColumn,
82 CardElement, CardFact, CardIcon, CardImage, CardItem, CardMedia, CardRefresh, CardSpacing,
83 CardText, ColumnWidth, ContainerStyle, ExecuteAction, ExecuteTrigger, IconSize, ImageSize,
84 InvokePayload, SubmitAction, TextColor, TextSize, ToggleTarget, VerticalAlignment,
85 card_content_text, split_overflow, task_value,
86};
87pub use announcement::{
88 ANNOUNCEMENT_APP_ID, ANNOUNCEMENT_BANNER_TYPE, AnnouncementBanner, BannerBackground,
89 TeamsBannerImage, teams_theme,
90};
91pub use avatars::{Avatar, team_avatar_key};
92pub use call_event::{
93 CallEvent, CallPhase, CallType, Recording, call_event, format_duration, parse_duration_seconds,
94};
95pub use card_actions::{CardActionOutcome, DialogIdentity, TaskDialog, TaskDialogKind};
96pub use card_chart::{
97 AxisScale, BarDisplayMode, CardChart, ChartColor, ChartGauge, ChartKind, ChartPoint,
98 ChartSeries, GaugeSegment, GaugeValueFormat, format_chart_value, label_stride, nice_scale,
99 series_categories, series_maximum, series_value, slice_angles, unit_fraction,
100};
101pub use card_date::{format_card_dates, format_card_dates_in};
102pub use card_inputs::{
103 CardInput, CardInputKind, ChoiceInput, ChoiceQuery, ChoiceStyle, DATE_PLACEHOLDER,
104 InlineAction, InputChoice, InputError, MomentInput, NumberInput, RatingColor, RatingDisplay,
105 RatingInput, RatingSize, RatingStyle, SEARCH_INVOKE_NAME, TIME_PLACEHOLDER, TextInput,
106 TextStyle, ToggleInput, collect_input_values, format_date, format_time, merge_input_data,
107 parse_search_results, search_request_value,
108};
109pub use card_layout::{ContainerLayout, HorizontalAlignment};
110pub use card_table::{CardTable, TableCell, TableColumn, TableRow};
111pub use card_widgets::{
112 BadgeAppearance, BadgeShape, BadgeSize, BadgeStyle, CardBadge, CardCarousel, CardCarouselPage,
113 CardCodeBlock, CardCompoundButton, CardProgressBar, CardProgressRing, IconPosition,
114 LabelPosition, RingSize,
115};
116pub use card_width::{TargetWidth, WidthClass};
117pub use chat_settings_sync::{store_chat_settings, stored_chat_settings};
118pub use chatsvc::compose_copilot::{Adjustment as ComposeAdjustment, ComposeAction};
119pub use chatsvc::substrate_search;
120pub use chatsvc::{
121 ActivityAlert, ChatAccountSettings, ChatNotificationMode, ChatSettingChange,
122 ChatSettingsDocument, DesktopNotifications, EnterKeyBehavior, MeetingChatNotifications,
123 MessageDensity, NotificationAccountSettings, NotificationPreset, UpArrowBehavior,
124};
125pub use chatsvc::{ActivityHorizons, ActivityItem, ActivitySnapshot};
126pub use chatsvc::{
127 CallDirection, CallLogEntry, CallOutcome, ChatApp, ForcedAvailability, ForcedKind,
128 ForwardResult, Gif, PinnedMessage, PostFollowState, PresenceStatus, SavedMessage,
129 ScheduledDraft, StatusNote, WindowDirection, WorkLocation, WorkLocationKind,
130 WorkLocationSource,
131};
132pub use chatsvc::{ChannelPrivacy, ChatSection, ChatSectionSettings, RecordingPolicy};
133pub use chatsvc::{
134 Language, LanguageSettings, MessageLanguage, Translation, TranslationBehavior,
135 TranslationStatus, TranslationTrigger, authoring_patch, behavior_patch, language_code,
136 parse_language_settings, target_patch,
137};
138pub use default_reactions::{
139 DEFAULT_REACTION_SLOTS, TEAMS_DEFAULT_REACTIONS, default_reactions,
140 store_account_default_reactions,
141};
142pub use download::LibraryFile;
143pub use draft::{
144 Draft, DraftLine, Edit, FormatState, INDENT_PIXELS, LineKind, MAX_DEPTH, MAX_INDENT, Mark,
145 MarkKind, OBJECT_MARK, RULE_MARK, SizeStep, TypingStyle, changed_span, has_markdown, link_url,
146 map_offset, reverse_edits,
147};
148pub use emoticon_tags::{EmoticonTag, emoticon_tags};
149pub use engine::{Delta, Me, SidebarSummary, SyncConfig, SyncEngine};
150pub use error::{Error, Result};
151pub use events::CoreEvent;
152pub use external_image::external_image_url;
153pub use folders::{
154 BoxFuture, ChatFolder, ChatsvcFolderSource, FolderChange, FolderKind, FolderSource,
155 store_section_settings, stored_section_settings,
156};
157pub use forwarded::{
158 FORWARD_LOADING_TEXT, FORWARD_UNAVAILABLE_TEXT, FORWARDED_CONTENT_TYPE, ForwardHeader,
159 ForwardInfo, ForwardState, forwarded_texts, forwards, is_forwarded,
160};
161pub use graph::{
162 CloudFile, DriveEntry, DriveFolder, FileReference, HostedImage, KeptAttachment, MentionTarget,
163 MessageExtras, QuickSite, SharedFile, UploadedFile,
164};
165pub use images::StoredImage;
166pub use jumbo::{JumboEmoji, MAX_JUMBO_EMOJI, jumbo_emoji};
167pub use links::{LinkPreview, first_public_link, is_public_link, link_preview, public_links};
168pub use mapping::{chat_record, message_record};
169pub use markdown::{card_markdown_to_html, escape_html, markdown_to_html, plain_text_to_html};
170pub use meeting_join::{
171 MeetingCode, MeetingLink, ThreadMeeting, find_meeting_link, meeting_code_from_id,
172 meeting_link_in_html, parse_meeting_link,
173};
174pub use mentions::{MentionInput, apply_mentions, plain_mention_spans};
175pub use message_link::{
176 ChannelAddress, ChannelLinkInput, channel_link, channel_message_link, channel_tab_link,
177 chat_link, chat_message_link, outlook_compose_link, team_link,
178};
179pub use message_window::{JumpPlan, WINDOW_PAGE_SIZE, WindowPage, jump_plan, without_islands};
180pub use notes_chat::{is_notes_chat, notes_chat_title};
181pub use people::{MentionCandidate, PersonCandidate, PersonSource};
182pub use presence::{Activity, Availability, Presence};
183pub use preview::{is_event_preview, preview_text};
184pub use profile::{OrgPerson, PersonProfile};
185pub use receipts::{ReceiptReader, ReceiptState};
186pub use remote::{ChatsPage, DeltaPage, Remote, RemotePage};
187pub use scheduled::NOTES_CHAT_ID;
188pub use skin_tone::{skin_tone, store_account_skin_tone};
189pub use spans::{FontSize, Span, html_to_spans};
190pub use store::{ConversationHit, HIGHLIGHT_END, HIGHLIGHT_START, SearchHit};
191pub use stored::{
192 AttachmentInfo, FileCard, FileKind, ImageKind, ImageRef, MentionInfo, PROFILE_LINK_PREFIX,
193 QuoteInfo, ReactionInfo, ReactionSummary, adaptive_cards, attachments, can_delete, can_edit,
194 card_texts, copy_text, files, images, linked_message_spans, linked_message_spans_with,
195 mentions, mentions_whole_chat, message_quote, message_spans, quote_html, quotes,
196 reaction_summaries, reactions, readable_text, translated_spans, user_mention_inputs,
197};
198pub use table::{Cell, PICKER_COLUMNS, PICKER_ROWS, TABLE_MARK, Table, TableEdit};
199pub use team_admin::{MAX_CHANNEL_DESCRIPTION_LENGTH, MAX_CHANNEL_NAME_LENGTH};
200pub use time_zone::local_time;
201pub use translation::{
202 FALLBACK_TARGET, LanguageStamp, confident_language, default_target, language_name, min_chars,
203 offered_language,
204};
205pub use youtube::fallback_poster_url;