@livetiles/reach-plugin-types 0.5.0-preview.2 → 0.5.0-preview.200

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 (2) hide show
  1. package/lib/index.d.ts +626 -119
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="moment" />
3
3
  /// <reference types="draft-js" />
4
+ /// <reference types="draft-convert" />
4
5
  declare module "libs/reach/util/common/src/FocusStyles" {
5
6
  export const FocusStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
6
7
  export const applyFocusStyle: (input: string) => string;
@@ -306,6 +307,7 @@ declare module "libs/shared/util/environment/src/EnvironmentConfig" {
306
307
  buildId: string;
307
308
  useAzureAdFunctionality: boolean;
308
309
  envName: string;
310
+ mobileTeamsHost?: string;
309
311
  }
310
312
  type OperatingSystem = 'ios' | 'android' | 'windows' | 'mac' | 'unknown';
311
313
  interface DeviceInfo {
@@ -1026,6 +1028,233 @@ declare module "libs/reach/util/common/src/resources/ResourceContextProvider" {
1026
1028
  language?: string;
1027
1029
  }>;
1028
1030
  }
1031
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async" {
1032
+ import locale from 'date-fns/locale/ar-DZ';
1033
+ export default locale;
1034
+ }
1035
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-ma.async" {
1036
+ import locale from 'date-fns/locale/ar-MA';
1037
+ export default locale;
1038
+ }
1039
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-sa.async" {
1040
+ import locale from 'date-fns/locale/ar-SA';
1041
+ export default locale;
1042
+ }
1043
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/bg.async" {
1044
+ import locale from 'date-fns/locale/bg';
1045
+ export default locale;
1046
+ }
1047
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/bn.async" {
1048
+ import locale from 'date-fns/locale/bn';
1049
+ export default locale;
1050
+ }
1051
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ca.async" {
1052
+ import locale from 'date-fns/locale/ca';
1053
+ export default locale;
1054
+ }
1055
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/cs.async" {
1056
+ import locale from 'date-fns/locale/cs';
1057
+ export default locale;
1058
+ }
1059
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/da.async" {
1060
+ import locale from 'date-fns/locale/da';
1061
+ export default locale;
1062
+ }
1063
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/de.async" {
1064
+ import locale from 'date-fns/locale/de';
1065
+ export default locale;
1066
+ }
1067
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/el.async" {
1068
+ import locale from 'date-fns/locale/el';
1069
+ export default locale;
1070
+ }
1071
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-au.async" {
1072
+ import locale from 'date-fns/locale/en-AU';
1073
+ export default locale;
1074
+ }
1075
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-ca.async" {
1076
+ import locale from 'date-fns/locale/en-CA';
1077
+ export default locale;
1078
+ }
1079
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-gb.async" {
1080
+ import locale from 'date-fns/locale/en-GB';
1081
+ export default locale;
1082
+ }
1083
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-nz.async" {
1084
+ import locale from 'date-fns/locale/en-NZ';
1085
+ export default locale;
1086
+ }
1087
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/es.async" {
1088
+ import locale from 'date-fns/locale/es';
1089
+ export default locale;
1090
+ }
1091
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/et.async" {
1092
+ import locale from 'date-fns/locale/et';
1093
+ export default locale;
1094
+ }
1095
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fa-ir.async" {
1096
+ import locale from 'date-fns/locale/fa-IR';
1097
+ export default locale;
1098
+ }
1099
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fi.async" {
1100
+ import locale from 'date-fns/locale/fi';
1101
+ export default locale;
1102
+ }
1103
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr-ca.async" {
1104
+ import locale from 'date-fns/locale/fr-CA';
1105
+ export default locale;
1106
+ }
1107
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr-ch.async" {
1108
+ import locale from 'date-fns/locale/fr-CH';
1109
+ export default locale;
1110
+ }
1111
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr.async" {
1112
+ import locale from 'date-fns/locale/fr';
1113
+ export default locale;
1114
+ }
1115
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/gu.async" {
1116
+ import locale from 'date-fns/locale/gu';
1117
+ export default locale;
1118
+ }
1119
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/he.async" {
1120
+ import locale from 'date-fns/locale/he';
1121
+ export default locale;
1122
+ }
1123
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hi.async" {
1124
+ import locale from 'date-fns/locale/hi';
1125
+ export default locale;
1126
+ }
1127
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hr.async" {
1128
+ import locale from 'date-fns/locale/hr';
1129
+ export default locale;
1130
+ }
1131
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hu.async" {
1132
+ import locale from 'date-fns/locale/hu';
1133
+ export default locale;
1134
+ }
1135
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/id.async" {
1136
+ import locale from 'date-fns/locale/id';
1137
+ export default locale;
1138
+ }
1139
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/it.async" {
1140
+ import locale from 'date-fns/locale/it';
1141
+ export default locale;
1142
+ }
1143
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ja.async" {
1144
+ import locale from 'date-fns/locale/ja';
1145
+ export default locale;
1146
+ }
1147
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/kn.async" {
1148
+ import locale from 'date-fns/locale/kn';
1149
+ export default locale;
1150
+ }
1151
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ko.async" {
1152
+ import locale from 'date-fns/locale/ko';
1153
+ export default locale;
1154
+ }
1155
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/lt.async" {
1156
+ import locale from 'date-fns/locale/lt';
1157
+ export default locale;
1158
+ }
1159
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/lv.async" {
1160
+ import locale from 'date-fns/locale/lv';
1161
+ export default locale;
1162
+ }
1163
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ms.async" {
1164
+ import locale from 'date-fns/locale/ms';
1165
+ export default locale;
1166
+ }
1167
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nb.async" {
1168
+ import locale from 'date-fns/locale/nb';
1169
+ export default locale;
1170
+ }
1171
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nl-be.async" {
1172
+ import locale from 'date-fns/locale/nl-BE';
1173
+ export default locale;
1174
+ }
1175
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nl.async" {
1176
+ import locale from 'date-fns/locale/nl';
1177
+ export default locale;
1178
+ }
1179
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pl.async" {
1180
+ import locale from 'date-fns/locale/pl';
1181
+ export default locale;
1182
+ }
1183
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pt-br.async" {
1184
+ import locale from 'date-fns/locale/pt-BR';
1185
+ export default locale;
1186
+ }
1187
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pt.async" {
1188
+ import locale from 'date-fns/locale/pt';
1189
+ export default locale;
1190
+ }
1191
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ro.async" {
1192
+ import locale from 'date-fns/locale/ro';
1193
+ export default locale;
1194
+ }
1195
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ru.async" {
1196
+ import locale from 'date-fns/locale/ru';
1197
+ export default locale;
1198
+ }
1199
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sk.async" {
1200
+ import locale from 'date-fns/locale/sk';
1201
+ export default locale;
1202
+ }
1203
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sl.async" {
1204
+ import locale from 'date-fns/locale/sl';
1205
+ export default locale;
1206
+ }
1207
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sr-latn.async" {
1208
+ import locale from 'date-fns/locale/sr-Latn';
1209
+ export default locale;
1210
+ }
1211
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sr.async" {
1212
+ import locale from 'date-fns/locale/sr';
1213
+ export default locale;
1214
+ }
1215
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sv.async" {
1216
+ import locale from 'date-fns/locale/sv';
1217
+ export default locale;
1218
+ }
1219
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ta.async" {
1220
+ import locale from 'date-fns/locale/ta';
1221
+ export default locale;
1222
+ }
1223
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/te.async" {
1224
+ import locale from 'date-fns/locale/te';
1225
+ export default locale;
1226
+ }
1227
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/th.async" {
1228
+ import locale from 'date-fns/locale/th';
1229
+ export default locale;
1230
+ }
1231
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/tr.async" {
1232
+ import locale from 'date-fns/locale/tr';
1233
+ export default locale;
1234
+ }
1235
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/uk.async" {
1236
+ import locale from 'date-fns/locale/uk';
1237
+ export default locale;
1238
+ }
1239
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/vi.async" {
1240
+ import locale from 'date-fns/locale/vi';
1241
+ export default locale;
1242
+ }
1243
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/zh-cn.async" {
1244
+ import locale from 'date-fns/locale/zh-CN';
1245
+ export default locale;
1246
+ }
1247
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/zh-tw.async" {
1248
+ import locale from 'date-fns/locale/zh-TW';
1249
+ export default locale;
1250
+ }
1251
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-us.async" {
1252
+ import locale from 'date-fns/locale/en-US';
1253
+ export default locale;
1254
+ }
1255
+ declare module "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter" {
1256
+ export function importDateFnsLocaleAsync(locale: string): Promise<typeof import("libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async")>;
1257
+ }
1029
1258
  declare module "libs/reach/util/common/src/user/features/FeatureSet" {
1030
1259
  export const orderedFeatureSet: string[];
1031
1260
  export class FeatureSet {
@@ -1236,6 +1465,11 @@ declare module "libs/reach/util/common/src/user/Subscription" {
1236
1465
  primaryColor: string;
1237
1466
  secondaryColor: string;
1238
1467
  useHighlightColorOnWhiteBackground?: boolean;
1468
+ customFontColors?: CustomColor[];
1469
+ }
1470
+ export interface CustomColor {
1471
+ id: string;
1472
+ value: string;
1239
1473
  }
1240
1474
  export interface WebHook {
1241
1475
  id: string;
@@ -1274,9 +1508,19 @@ declare module "libs/reach/util/common/src/user/Subscription" {
1274
1508
  subscriptionId: string;
1275
1509
  subscriptionName: string;
1276
1510
  }
1277
- export interface PluginExtension {
1278
- area: string;
1279
- componentName: string;
1511
+ export enum ExtensionArea {
1512
+ global = "Global",
1513
+ page = "Page",
1514
+ eventEditorFeedbackSection = "EventEditorFeedbackSection",
1515
+ eventDetailViewSection = "EventDetailViewSection",
1516
+ itemEditor = "ItemEditor"
1517
+ }
1518
+ export type InlinePlugin = {
1519
+ area: ExtensionArea.itemEditor;
1520
+ objectButton: PluginObjectButton;
1521
+ };
1522
+ export type PagePlugin = {
1523
+ area: ExtensionArea.page;
1280
1524
  route: string;
1281
1525
  navigationNode?: {
1282
1526
  componentName?: string;
@@ -1286,7 +1530,20 @@ declare module "libs/reach/util/common/src/user/Subscription" {
1286
1530
  [key: string]: string;
1287
1531
  };
1288
1532
  };
1289
- }
1533
+ };
1534
+ export type PluginExtension = {
1535
+ area: ExtensionArea;
1536
+ componentName: string;
1537
+ } & (InlinePlugin | PagePlugin);
1538
+ export type PluginObjectButton = {
1539
+ buttonLabel: {
1540
+ defaultLabel: string;
1541
+ translations?: {
1542
+ [key: string]: string;
1543
+ };
1544
+ };
1545
+ iconName: string;
1546
+ };
1290
1547
  export interface PluginNotificationDefinitions {
1291
1548
  key: string;
1292
1549
  title: string;
@@ -1390,6 +1647,8 @@ declare module "libs/reach/util/common/src/user/User" {
1390
1647
  pluginNotifications: {
1391
1648
  [key: string]: NotificationType;
1392
1649
  };
1650
+ newsEditor: NotificationType;
1651
+ eventEditor: NotificationType;
1393
1652
  }
1394
1653
  export interface RequestUser extends BasicUserInformation {
1395
1654
  tenantId: string;
@@ -1443,6 +1702,7 @@ declare module "libs/reach/util/common/src/user/User" {
1443
1702
  subscriptionId: string;
1444
1703
  tenantId: string;
1445
1704
  expires?: string;
1705
+ hasPrivateEmail?: boolean;
1446
1706
  }
1447
1707
  export interface HashUser {
1448
1708
  id: string;
@@ -1489,6 +1749,7 @@ declare module "libs/reach/util/common/src/user/User" {
1489
1749
  user: UserSummary;
1490
1750
  type: SubscriptionJoinResultType;
1491
1751
  message?: string;
1752
+ isSuccess?: boolean;
1492
1753
  }
1493
1754
  export interface UserActivationResult {
1494
1755
  type: UserActivationResultType;
@@ -1930,6 +2191,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
1930
2191
  }
1931
2192
  }
1932
2193
  declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
2194
+ import { Api } from 'restful.js';
1933
2195
  import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
1934
2196
  export class ClientFactoryInstance {
1935
2197
  private env;
@@ -1940,7 +2202,7 @@ declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
1940
2202
  constructor(env: EnvironmentConfig, apiEndpoint: string, getToken: () => Promise<string>, handleError?: (error: any, config: {
1941
2203
  url: string;
1942
2204
  }) => Promise<unknown>);
1943
- createApi: (useAsUnauthorized: boolean, subscriptionId?: string) => any;
2205
+ createApi: (useAsUnauthorized: boolean, subscriptionId?: string) => Api;
1944
2206
  private createApiInternal;
1945
2207
  private addRequestTimeLogger;
1946
2208
  createApiUrl: (url: string, query?: {
@@ -2520,6 +2782,8 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
2520
2782
  updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
2521
2783
  deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
2522
2784
  importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
2785
+ refreshApiKey: (apiKeyId: string, expiryDate: string) => Promise<Response>;
2786
+ requestApiKey: (email: string, displayName: string, expiryDate: string) => Promise<Response>;
2523
2787
  };
2524
2788
  }
2525
2789
  declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
@@ -2710,7 +2974,7 @@ declare module "libs/reach/util/common/src/plugins/usePluginApi" {
2710
2974
  getPluginFileUrl: (pluginId: string, bundleUrl?: string, bundleModificationDate?: string) => string;
2711
2975
  saveDefinition: (plugin: WebPluginDefinition) => Promise<unknown>;
2712
2976
  saveFile: (pluginId: string, file: File) => Promise<Response>;
2713
- generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<any>;
2977
+ generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<string>;
2714
2978
  linkPlugin: (pluginId: string, settings: Record<string, string>) => Promise<any>;
2715
2979
  unlinkPlugin: (pluginId: string) => Promise<any>;
2716
2980
  };
@@ -2816,17 +3080,15 @@ declare module "libs/reach/util/common/src/Models" {
2816
3080
  }
2817
3081
  }
2818
3082
  declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
2819
- import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
3083
+ import { ExtensionArea, PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
2820
3084
  import { PageNavigationNodeProps } from "libs/reach/util/common/src/Models";
2821
- export enum ExtensionArea {
2822
- global = "Global",
2823
- page = "Page",
2824
- eventEditorFeedbackSection = "EventEditorFeedbackSection",
2825
- eventDetailViewSection = "EventDetailViewSection"
2826
- }
2827
3085
  export interface PluginNavigationNodeProps {
2828
3086
  navigationNodeProps?: PageNavigationNodeProps;
2829
3087
  }
3088
+ export type EmbeddedPluginProps = PluginProps & {
3089
+ isEditMode?: boolean;
3090
+ componentInstanceId: string;
3091
+ };
2830
3092
  export type PluginProps = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
2831
3093
  type DevPlugin = {
2832
3094
  pluginId: string;
@@ -2880,22 +3142,11 @@ declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
2880
3142
  }
2881
3143
  declare module "libs/reach/util/common/src/plugins/Plugins" {
2882
3144
  import { FC } from 'react';
2883
- import { ExtensionArea } from "libs/reach/util/common/src/plugins/usePluginExtensions";
3145
+ import { ExtensionArea } from "libs/reach/util/common/src/user/Subscription";
2884
3146
  export const Plugins: FC<{
2885
3147
  area: ExtensionArea;
2886
3148
  } & any>;
2887
3149
  }
2888
- declare module "libs/reach/util/common/src/plugins/index" {
2889
- export * from "libs/reach/util/common/src/plugins/PluginContext";
2890
- export * from "libs/reach/util/common/src/plugins/PluginWrapper";
2891
- export * from "libs/reach/util/common/src/plugins/Plugins";
2892
- export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
2893
- export * from "libs/reach/util/common/src/plugins/usePluginApi";
2894
- export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
2895
- export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
2896
- export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
2897
- export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
2898
- }
2899
3150
  declare module "libs/reach/util/common/src/theme/ColorGenerator" {
2900
3151
  export class Color {
2901
3152
  private r;
@@ -2945,11 +3196,6 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
2945
3196
  neutralTertiary: string;
2946
3197
  neutralTertiaryAlt: string;
2947
3198
  neutralQuaternary: string;
2948
- /**
2949
- * Theme Service applies custom themes.
2950
- * Accommodates overriding the custom UI Fabric default styles which
2951
- * are not automatically applied (e.g. ms-bgColor-themePrimary) via load-themed-styles
2952
- */
2953
3199
  neutralQuaternaryAlt: string;
2954
3200
  neutralLight: string;
2955
3201
  neutralLighter: string;
@@ -3011,6 +3257,10 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
3011
3257
  onSecondary?: string;
3012
3258
  onAccent?: string;
3013
3259
  default?: string;
3260
+ custom?: {
3261
+ key: string;
3262
+ value: string;
3263
+ }[];
3014
3264
  }
3015
3265
  export function getDarkAltColor(color: string): string;
3016
3266
  export function getTextColor(bgColor: string): "#333333" | "#ffffff";
@@ -3098,7 +3348,7 @@ declare module "libs/reach/util/common/src/Variables" {
3098
3348
  export const videoAttachmentRoundedCornerSize = 20;
3099
3349
  export const inlinePageBannerRoundedCornerSize = 5;
3100
3350
  export const feedbackButtonHeight = 32;
3101
- export const mainScrollableContainerSelector = "lt-reach-main-content";
3351
+ export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
3102
3352
  export const statusColors: {
3103
3353
  draft: string;
3104
3354
  ready: string;
@@ -3112,6 +3362,25 @@ declare module "libs/reach/util/common/src/Variables" {
3112
3362
  export const managePagesRowHeight = 40;
3113
3363
  export const mobilePreviewWidth = 414;
3114
3364
  }
3365
+ declare module "libs/reach/util/common/src/plugins/Plugin" {
3366
+ import { FC } from 'react';
3367
+ import { PluginProps } from "libs/reach/util/common/src/plugins/usePluginExtensions";
3368
+ export const Plugin: FC<PluginProps & {
3369
+ showDetailedErrorMessage?: boolean;
3370
+ } & any>;
3371
+ }
3372
+ declare module "libs/reach/util/common/src/plugins/index" {
3373
+ export * from "libs/reach/util/common/src/plugins/PluginContext";
3374
+ export * from "libs/reach/util/common/src/plugins/PluginWrapper";
3375
+ export * from "libs/reach/util/common/src/plugins/Plugins";
3376
+ export * from "libs/reach/util/common/src/plugins/Plugin";
3377
+ export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
3378
+ export * from "libs/reach/util/common/src/plugins/usePluginApi";
3379
+ export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
3380
+ export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
3381
+ export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
3382
+ export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
3383
+ }
3115
3384
  declare module "libs/reach/util/common/src/notification/NotificationContext" {
3116
3385
  import { FC, ReactNode } from 'react';
3117
3386
  import { ToastOptions } from 'react-toastify';
@@ -3214,6 +3483,15 @@ declare module "libs/reach/util/common/src/ImageDetails" {
3214
3483
  width?: number;
3215
3484
  height?: number;
3216
3485
  }
3486
+ export interface ImageWithAlignment extends ImageDetails {
3487
+ imageAlignment?: ImageAlignment;
3488
+ }
3489
+ export enum ImageAlignment {
3490
+ Default = "default",
3491
+ Left = "left",
3492
+ Right = "right",
3493
+ Center = "center"
3494
+ }
3217
3495
  }
3218
3496
  declare module "libs/reach/util/common/src/MainContentPanelContext" {
3219
3497
  export interface MainPanelContextType {
@@ -3264,6 +3542,35 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
3264
3542
  static create(): GenericAccessDeniedTriggerAction;
3265
3543
  }
3266
3544
  }
3545
+ declare module "libs/reach/util/common/src/useModalRouting" {
3546
+ export interface ModalRouting {
3547
+ isActive: boolean;
3548
+ itemId: string;
3549
+ backgroundLocation: any;
3550
+ }
3551
+ export function useModalRouting(): {
3552
+ isModalRoutingActive: boolean;
3553
+ modalItemId: string;
3554
+ backgroundLocation: any;
3555
+ };
3556
+ export function useModalRoutingSettings(): (itemId: string) => {
3557
+ modalRouting: {
3558
+ isActive: boolean;
3559
+ itemId: string;
3560
+ backgroundLocation: {
3561
+ state: {
3562
+ modalRouting: {
3563
+ isActive: boolean;
3564
+ };
3565
+ };
3566
+ pathname: string;
3567
+ search: string;
3568
+ hash: string;
3569
+ key?: string;
3570
+ };
3571
+ };
3572
+ };
3573
+ }
3267
3574
  declare module "libs/reach/util/common/src/index" {
3268
3575
  export { initializeIcons } from 'office-ui-fabric-react';
3269
3576
  export * from "libs/reach/util/common/src/FocusStyles";
@@ -3273,6 +3580,7 @@ declare module "libs/reach/util/common/src/index" {
3273
3580
  export * from "libs/reach/util/common/src/SortDirection";
3274
3581
  export * from "libs/reach/util/common/src/useCacheLanguageApi";
3275
3582
  export * from "libs/reach/util/common/src/resources/ResourceContextProvider";
3583
+ export * from "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter";
3276
3584
  export * from "libs/reach/util/common/src/user/index";
3277
3585
  export * from "libs/reach/util/common/src/plugins/index";
3278
3586
  export * from "libs/reach/util/common/src/theme/index";
@@ -3291,6 +3599,7 @@ declare module "libs/reach/util/common/src/index" {
3291
3599
  export * from "libs/reach/util/common/src/useBaseRoute";
3292
3600
  export * from "libs/reach/util/common/src/ForbiddenErrorTriggerAction";
3293
3601
  export * from "libs/reach/util/common/src/AccessDeniedIntercept";
3602
+ export * from "libs/reach/util/common/src/useModalRouting";
3294
3603
  }
3295
3604
  declare module "libs/reach/ui/common/src/Link" {
3296
3605
  import { Link as RouterLink } from 'react-router-dom';
@@ -3347,7 +3656,7 @@ declare module "libs/reach/ui/common/src/Tooltip" {
3347
3656
  text?: string | JSX.Element;
3348
3657
  resourceKey?: string;
3349
3658
  values?: {
3350
- [key: string]: string | number | boolean | Date;
3659
+ [key: string]: string | number | boolean | Date | any;
3351
3660
  };
3352
3661
  width?: number;
3353
3662
  onClick?: () => unknown;
@@ -3427,7 +3736,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
3427
3736
  export const PeoplePicker: FC<Props>;
3428
3737
  }
3429
3738
  declare module "libs/reach/ui/common/src/plugins/reach-core" {
3430
- import { Account, AccountType, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, useAccountApi, useCurrentUser, useNotificationContext, usePluginDeviceStore, usePluginSettings, usePluginSubscriptionStore, usePluginSubscriptionStoreValue, usePluginUserStore, usePluginUserStoreValue, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useSubscriptionWebAppUrl, useTheme } from "libs/reach/util/common/src/index";
3739
+ import { Account, AccountType, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, useAccountApi, useCurrentUser, useNotificationContext, usePluginDeviceStore, usePluginSettings, usePluginSubscriptionStore, usePluginSubscriptionStoreValue, usePluginUserStore, usePluginUserStoreValue, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useSubscriptionWebAppUrl, useTheme, EmbeddedPluginProps } from "libs/reach/util/common/src/index";
3431
3740
  import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
3432
3741
  import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
3433
3742
  import { createId, logger } from "libs/shared/util/common/src/index";
@@ -3444,7 +3753,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
3444
3753
  * @deprecated Please use `usePluginDeviceStore` instead
3445
3754
  */
3446
3755
  usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginSubscriptionStoreValue, usePluginUserStore, usePluginUserStoreValue, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, useSubscriptionWebAppUrl, };
3447
- export type { Account, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, };
3756
+ export type { Account, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, EmbeddedPluginProps, };
3448
3757
  }
3449
3758
  declare module "libs/reach/ui/common/src/content-keyword-utils" {
3450
3759
  import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
@@ -3460,6 +3769,9 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
3460
3769
  export function getPreSelectedKeywords(keywords: Keyword[], mandatoryKeywords: Keyword[]): Keyword[];
3461
3770
  export function checkIfHasSameKeywords(keywordsArray1: Keyword[], keywordsArray2: Keyword[]): boolean;
3462
3771
  }
3772
+ declare module "libs/reach/ui/common/src/common/messagebar/MessageBarStyles" {
3773
+ export const MessageBarBaseStyles: import("styled-components").FlattenSimpleInterpolation;
3774
+ }
3463
3775
  declare module "libs/reach/ui/common/src/NotificationBar" {
3464
3776
  import { FC } from 'react';
3465
3777
  export const NotificationBar: FC;
@@ -3553,12 +3865,13 @@ declare module "libs/reach/ui/common/src/common/ConfirmDeleteDialog" {
3553
3865
  titleResourceValues?: any;
3554
3866
  infoResourceKey: string;
3555
3867
  infoResourceValues?: any;
3556
- inputAriaLabelResourceKey: string;
3557
- compareValue: string;
3868
+ inputAriaLabelResourceKey?: string;
3869
+ compareValue?: string;
3558
3870
  onConfirm: () => any;
3559
3871
  onCancel: () => any;
3560
3872
  disabled?: boolean;
3561
3873
  hideCloseButton?: boolean;
3874
+ withValueConfirmation?: boolean;
3562
3875
  }
3563
3876
  export const ConfirmDeleteDialog: FC<ConfirmDeleteDialogProps>;
3564
3877
  }
@@ -3715,7 +4028,9 @@ declare module "libs/reach/ui/common/src/common/UiUtils" {
3715
4028
  }[]>;
3716
4029
  export function getFileIcon(filename: string): string;
3717
4030
  export function getIconColor(fileIcon: string): "#1C5FC0" | "#138147" | "#CA4B27" | "#1C5FBF" | "#CF1700" | "#000";
4031
+ export function getFileIconHorizontalTransform(fileIcon: string): -55 | -50;
3718
4032
  export function getFileIconByExtension(extension: string): "Page" | "Video" | "MusicInCollectionFill" | "VisioDocument" | "ZipFolder" | "PDF" | "WordDocument" | "ExcelDocument" | "PowerPointDocument" | "FileImage";
4033
+ export function getMainScrollableContainer(): HTMLElement;
3719
4034
  }
3720
4035
  declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
3721
4036
  export function useFileAccessTokenApi(): {
@@ -4025,7 +4340,7 @@ declare module "libs/reach/ui/common/src/common/ToggleWithLabel" {
4025
4340
  export const ToggleWithLabel: FC<IToggleProps>;
4026
4341
  }
4027
4342
  declare module "libs/reach/ui/common/src/common/UnreadCommentHighlight" {
4028
- export const unreadCommentHighlight: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
4343
+ export const unreadCommentHighlight: (top?: string) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
4029
4344
  }
4030
4345
  declare module "libs/reach/ui/common/src/common/UserUtility" {
4031
4346
  import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
@@ -4344,6 +4659,9 @@ declare module "libs/reach/ui/common/src/common/grid/Grid" {
4344
4659
  className?: string;
4345
4660
  }>;
4346
4661
  }
4662
+ declare module "libs/reach/ui/common/src/common/hooks/useIsMounted" {
4663
+ export const useIsMounted: () => () => boolean;
4664
+ }
4347
4665
  declare module "libs/reach/ui/common/src/common/hooks/usePagination" {
4348
4666
  import { PaginatedList } from "libs/reach/util/common/src/index";
4349
4667
  import { DependencyList, SetStateAction } from 'react';
@@ -4824,6 +5142,7 @@ declare module "libs/reach/ui/common/src/common/index" {
4824
5142
  export * from "libs/reach/ui/common/src/common/grid/Grid";
4825
5143
  export * from "libs/reach/ui/common/src/common/hooks/usePagination";
4826
5144
  export * from "libs/reach/ui/common/src/common/hooks/useUserPropertyDefinitionsHandler";
5145
+ export * from "libs/reach/ui/common/src/common/hooks/useIsMounted";
4827
5146
  export * from "libs/reach/ui/common/src/common/icon-with-callout/IconWithCallout";
4828
5147
  export * from "libs/reach/ui/common/src/common/inlineObjectsClassNames";
4829
5148
  export * from "libs/reach/ui/common/src/common/isNullOrWhitespaceUtil";
@@ -4856,6 +5175,7 @@ declare module "libs/reach/ui/common/src/common/index" {
4856
5175
  export * from "libs/reach/ui/common/src/common/error-states/index";
4857
5176
  export * from "libs/reach/ui/common/src/common/MenuItemBadge";
4858
5177
  export * from "libs/reach/ui/common/src/common/editor-svg/index";
5178
+ export * from "libs/reach/ui/common/src/common/messagebar/MessageBarStyles";
4859
5179
  }
4860
5180
  declare module "libs/reach/ui/common/src/error/PageAlert" {
4861
5181
  import { ReactNode } from 'react';
@@ -4907,7 +5227,7 @@ declare module "libs/reach/ui/common/src/index" {
4907
5227
  export * from "libs/reach/ui/common/src/ColorEditor";
4908
5228
  }
4909
5229
  declare module "apps/reach-app/src/app/chrome/CloseButton" {
4910
- import { FC } from 'react';
5230
+ import { FC, DependencyList } from 'react';
4911
5231
  export interface Props {
4912
5232
  navigateTo: string;
4913
5233
  onClose?: () => void;
@@ -4916,7 +5236,7 @@ declare module "apps/reach-app/src/app/chrome/CloseButton" {
4916
5236
  className?: string;
4917
5237
  }
4918
5238
  export const CloseButton: FC<Props>;
4919
- export function useEscapeOnClose(onClose: () => void): void;
5239
+ export function useEscapeOnClose(onClose: () => void, deps?: DependencyList): void;
4920
5240
  }
4921
5241
  declare module "apps/reach-app/src/app/common/LogoStyles" {
4922
5242
  export const LogoHostStyle: (size?: {
@@ -4980,8 +5300,9 @@ declare module "apps/reach-app/src/app/SkipLinksContext" {
4980
5300
  export const SkipLinksContextProvider: FC;
4981
5301
  }
4982
5302
  declare module "apps/reach-app/src/app/useAddSkipLinks" {
5303
+ import { DependencyList } from 'react';
4983
5304
  import { SkipLink } from "apps/reach-app/src/app/SkipLinksContext";
4984
- export function useAddSkipLinks(...skipLinks: SkipLink[]): void;
5305
+ export function useAddSkipLinks(skipLinks: SkipLink[], deps?: DependencyList): void;
4985
5306
  }
4986
5307
  declare module "apps/reach-app/src/app/chrome/MainContentPanel" {
4987
5308
  import { FC } from 'react';
@@ -5032,6 +5353,8 @@ declare module "apps/reach-app/src/app/chrome/BasicPage" {
5032
5353
  closeButtonOptions?: CloseButtonOptions;
5033
5354
  showSearchBox?: boolean;
5034
5355
  disableScrollableContainerFocus?: boolean;
5356
+ asModal?: boolean;
5357
+ domIdentifier?: string;
5035
5358
  }
5036
5359
  export const BasicPage: FC<Props>;
5037
5360
  }
@@ -5166,6 +5489,7 @@ declare module "apps/reach-app/src/app/admin/themes/ContrastInfo" {
5166
5489
  foregroundColor: string;
5167
5490
  backgroundColor: string;
5168
5491
  className?: string;
5492
+ showInfoIcon?: boolean;
5169
5493
  }>;
5170
5494
  }
5171
5495
  declare module "apps/reach-app/src/app/admin/themes/ColorButton" {
@@ -5188,6 +5512,14 @@ declare module "apps/reach-app/src/app/admin/themes/ThemeContrastPreview" {
5188
5512
  foregroundColor: string;
5189
5513
  }>;
5190
5514
  }
5515
+ declare module "apps/reach-app/src/app/admin/themes/CustomFontColors" {
5516
+ import { FC } from 'react';
5517
+ import { CustomColor, Theme } from "libs/reach/util/common/src/index";
5518
+ export const CustomFontColors: FC<{
5519
+ theme: Theme;
5520
+ onApply?: (colors: CustomColor[]) => void;
5521
+ }>;
5522
+ }
5191
5523
  declare module "apps/reach-app/src/app/admin/themes/Themes" {
5192
5524
  import { FC } from 'react';
5193
5525
  export const Themes: FC;
@@ -5431,11 +5763,11 @@ declare module "libs/shared/util/capacitor-plugins/push-client/src/index" {
5431
5763
  export { PushClient };
5432
5764
  }
5433
5765
  declare module "libs/shared/util/capacitor/src/MobileHybridStorage" {
5434
- import { ConfigureOptions, MigrateResult, StoragePlugin } from '@capacitor/storage';
5435
- export class MobileHybridStorage implements StoragePlugin {
5766
+ import { ConfigureOptions, MigrateResult, PreferencesPlugin } from '@capacitor/preferences';
5767
+ export class MobileHybridStorage implements PreferencesPlugin {
5436
5768
  private pluginStorage;
5437
5769
  private static memoryStorage;
5438
- constructor(pluginStorage: StoragePlugin);
5770
+ constructor(pluginStorage: PreferencesPlugin);
5439
5771
  get(options: {
5440
5772
  key: string;
5441
5773
  }): Promise<any>;
@@ -5447,7 +5779,7 @@ declare module "libs/shared/util/capacitor/src/MobileHybridStorage" {
5447
5779
  key: string;
5448
5780
  }): Promise<void>;
5449
5781
  clear(): Promise<void>;
5450
- keys(): Promise<import("@capacitor/storage").KeysResult>;
5782
+ keys(): Promise<import("@capacitor/preferences").KeysResult>;
5451
5783
  private static updateInMemoryStorage;
5452
5784
  configure(options: ConfigureOptions): Promise<void>;
5453
5785
  migrate(): Promise<MigrateResult>;
@@ -5483,7 +5815,7 @@ declare module "libs/shared/util/capacitor/src/mocks/MockStatusBarPlugin" {
5483
5815
  export const mockStatusBarPlugin: StatusBarPlugin;
5484
5816
  }
5485
5817
  declare module "libs/shared/util/capacitor/src/WebDevice" {
5486
- import { BatteryInfo, DeviceId, DeviceInfo, DevicePlugin, GetLanguageCodeResult } from '@capacitor/device';
5818
+ import { BatteryInfo, DeviceId, DeviceInfo, DevicePlugin, GetLanguageCodeResult, LanguageTag } from '@capacitor/device';
5487
5819
  import { PluginListenerHandle } from '@capacitor/core';
5488
5820
  export class WebDeviceFallback implements DevicePlugin {
5489
5821
  addListener(_eventName: string, _listenerFunc: Function): PluginListenerHandle;
@@ -5492,6 +5824,7 @@ declare module "libs/shared/util/capacitor/src/WebDevice" {
5492
5824
  getId(): Promise<DeviceId>;
5493
5825
  getBatteryInfo(): Promise<BatteryInfo>;
5494
5826
  getLanguageCode(): Promise<GetLanguageCodeResult>;
5827
+ getLanguageTag(): Promise<LanguageTag>;
5495
5828
  }
5496
5829
  }
5497
5830
  declare module "libs/shared/util/capacitor/src/WebNetwork" {
@@ -5508,8 +5841,8 @@ declare module "libs/shared/util/capacitor/src/WebNetwork" {
5508
5841
  }
5509
5842
  }
5510
5843
  declare module "libs/shared/util/capacitor/src/WebStorage" {
5511
- import { ConfigureOptions, MigrateResult, StoragePlugin } from '@capacitor/storage';
5512
- export class WebStorage implements StoragePlugin {
5844
+ import { ConfigureOptions, MigrateResult, PreferencesPlugin } from '@capacitor/preferences';
5845
+ export class WebStorage implements PreferencesPlugin {
5513
5846
  storage: Storage;
5514
5847
  get(options: {
5515
5848
  key: string;
@@ -5543,14 +5876,14 @@ declare module "libs/shared/util/capacitor/src/PluginLoader" {
5543
5876
  import { SharePlugin } from '@capacitor/share';
5544
5877
  import { SplashScreenPlugin } from '@capacitor/splash-screen';
5545
5878
  import { StatusBarPlugin } from '@capacitor/status-bar';
5546
- import { StoragePlugin } from '@capacitor/storage';
5879
+ import { PreferencesPlugin } from '@capacitor/preferences';
5547
5880
  import { AppInfoPlugin } from "libs/shared/util/capacitor-plugins/app-info/src/index";
5548
5881
  import { MsalClientPlugin } from "libs/shared/util/capacitor-plugins/msal-client/src/index";
5549
5882
  import { OpenIdClientPlugin } from "libs/shared/util/capacitor-plugins/openid-client/src/index";
5550
5883
  import { PushClientPlugin } from "libs/shared/util/capacitor-plugins/push-client/src/index";
5551
5884
  import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
5552
5885
  export interface CondensePluginRegistry {
5553
- Storage: StoragePlugin;
5886
+ Storage: PreferencesPlugin;
5554
5887
  Device: DevicePlugin;
5555
5888
  App: AppPlugin;
5556
5889
  Keyboard: KeyboardPlugin;
@@ -6212,7 +6545,7 @@ declare module "apps/reach-app/src/app/user/useSelfRegistrationApi" {
6212
6545
  import { UserRegistrationResult } from "libs/reach/util/common/src/index";
6213
6546
  import { SelfRegistrationOptions } from "libs/reach/util/common/src/index";
6214
6547
  export function useSelfRegistrationApi(): {
6215
- changeRegistrationStatus: (upn: string, doAccept: boolean) => any;
6548
+ changeRegistrationStatus: (upn: string, doAccept: boolean) => Promise<import("restful.js").MemberResponse<unknown>>;
6216
6549
  hasUserPendingRegistration: (subscriptionId: string, upn: string) => Promise<boolean>;
6217
6550
  register: (subscriptionId: string, mail: string, displayName: string) => Promise<UserRegistrationResult>;
6218
6551
  updateSelfRegistrationOptions: (config: Partial<SelfRegistrationOptions>) => Promise<unknown>;
@@ -6268,6 +6601,15 @@ declare module "apps/reach-app/src/app/admin/users/EditUserButton" {
6268
6601
  onSaved: (newProperties: UpdatableUserProperties) => void;
6269
6602
  }>;
6270
6603
  }
6604
+ declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyDialog" {
6605
+ import { FC } from 'react';
6606
+ import { UserItem } from "apps/reach-app/src/app/admin/users/UserList";
6607
+ export const GenerateApiKeyDialog: FC<{
6608
+ onApiKeyAdded?: () => void;
6609
+ onDismiss: () => void;
6610
+ user?: UserItem;
6611
+ }>;
6612
+ }
6271
6613
  declare module "apps/reach-app/src/app/admin/users/UserList" {
6272
6614
  import { Account, GroupRoles, GroupUser, SortDefinition, UpdatableUserProperties, UserSummary } from "libs/reach/util/common/src/index";
6273
6615
  import './UserList.scss';
@@ -6291,7 +6633,12 @@ declare module "apps/reach-app/src/app/admin/users/UserList" {
6291
6633
  isLoading?: boolean;
6292
6634
  isEmpty?: boolean;
6293
6635
  emptyPlaceholder?: ReactNode;
6636
+ onKeyChanged?: () => void;
6294
6637
  }
6638
+ export type UserItem = Account & UserSummary & GroupUser & {
6639
+ accountType: string;
6640
+ lastLogin: string | JSX.Element;
6641
+ };
6295
6642
  export const UserList: FC<Props>;
6296
6643
  }
6297
6644
  declare module "apps/reach-app/src/app/InfiniteScrollingStatus" {
@@ -6324,13 +6671,7 @@ declare module "apps/reach-app/src/app/admin/users/ExportUserButton" {
6324
6671
  className?: string;
6325
6672
  }>;
6326
6673
  }
6327
- declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyButton" {
6328
- import { FC } from 'react';
6329
- export const GenerateApiKeyButton: FC<{
6330
- onApiKeyAdded: () => void;
6331
- }>;
6332
- }
6333
- declare module "apps/reach-app/src/app/admin/users/ImportUsersPreview" {
6674
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
6334
6675
  import { FC } from 'react';
6335
6676
  import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
6336
6677
  export enum GenericErrorType {
@@ -6339,6 +6680,7 @@ declare module "apps/reach-app/src/app/admin/users/ImportUsersPreview" {
6339
6680
  export interface UserImport {
6340
6681
  displayName?: string;
6341
6682
  email?: string;
6683
+ hasPrivateEmail?: boolean;
6342
6684
  importResult?: SubscriptionJoinResultType | GenericErrorType;
6343
6685
  errorMessage?: string;
6344
6686
  }
@@ -6346,21 +6688,45 @@ declare module "apps/reach-app/src/app/admin/users/ImportUsersPreview" {
6346
6688
  previewUsers: UserImport[];
6347
6689
  }>;
6348
6690
  }
6349
- declare module "apps/reach-app/src/app/admin/users/useUserCsvInviter" {
6350
- import { UserImport } from "apps/reach-app/src/app/admin/users/ImportUsersPreview";
6691
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
6692
+ import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6693
+ export enum ValidationStatus {
6694
+ Valid = 0,
6695
+ WithErrors = 1,
6696
+ WithUserErrors = 2
6697
+ }
6698
+ export type CsvValidation = {
6699
+ Status?: ValidationStatus;
6700
+ Message?: string;
6701
+ InvalidItems?: string[];
6702
+ };
6351
6703
  export function useUserCsvInviter(): {
6352
6704
  invitedUsers: UserImport[];
6353
6705
  isValidating: boolean;
6354
6706
  isCsvValid: boolean;
6355
6707
  parseCsvFile: (csvFile: File) => void;
6356
- error: string;
6357
- setError: import("react").Dispatch<import("react").SetStateAction<string>>;
6708
+ csvValidation: CsvValidation;
6709
+ setCsvValidation: (status: ValidationStatus, message: string, invalidItems?: string[]) => void;
6358
6710
  inviteUsers: (onSuccess?: () => void) => Promise<void>;
6359
6711
  isParserReady: boolean;
6360
- isImporting: boolean;
6712
+ isInviting: boolean;
6713
+ canInvite: boolean;
6714
+ csvFile: File;
6361
6715
  };
6362
6716
  }
6363
- declare module "apps/reach-app/src/app/admin/users/ImportUserButton" {
6717
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/csvUtils" {
6718
+ export function createCsvUrl(header: string, content: string): string;
6719
+ }
6720
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/CsvFileValidationResult" {
6721
+ import { FC } from 'react';
6722
+ import { CsvValidation } from "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter";
6723
+ import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6724
+ export const CsvFileValidationResult: FC<{
6725
+ csvValidation: CsvValidation;
6726
+ invitedUsers: UserImport[];
6727
+ }>;
6728
+ }
6729
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
6364
6730
  import { FC } from 'react';
6365
6731
  export const ImportUserButton: FC<{
6366
6732
  onSuccessfulImport?: () => void;
@@ -6392,34 +6758,30 @@ declare module "libs/reach/feature/content/src/comments/ContentDisplay" {
6392
6758
  children?: (content: string, index: number) => JSX.Element;
6393
6759
  }>;
6394
6760
  }
6395
- declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
6396
- export const NeutralCheckBox: import("styled-components").StyledComponent<import("react").FunctionComponent<import("office-ui-fabric-react").ICheckboxProps>, import("styled-components").DefaultTheme, {}, never>;
6397
- }
6398
6761
  declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6399
6762
  import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
6400
- export class EventResponseTriggerAction implements AppTriggerAction {
6763
+ export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
6401
6764
  static type: string;
6402
6765
  type: string;
6403
6766
  itemId: string;
6404
6767
  response: EventResponse;
6405
6768
  locationId: string;
6406
6769
  onBehalfOfUpn: string;
6407
- static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventResponseTriggerAction;
6770
+ static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
6408
6771
  }
6409
- export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
6772
+ export class EventResponseTriggerAction implements AppTriggerAction {
6410
6773
  static type: string;
6411
6774
  type: string;
6412
- recurrenceSeriesId: string;
6775
+ itemId: string;
6413
6776
  response: EventResponse;
6414
- static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
6777
+ static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
6415
6778
  }
6416
- export class LikeFullSeriesTriggerAction implements AppTriggerAction {
6779
+ export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
6417
6780
  static type: string;
6418
6781
  type: string;
6419
6782
  recurrenceSeriesId: string;
6420
- itemId: string;
6421
- isLiked: boolean;
6422
- static create(recurrenceSeriesId: string, itemId: string, isLiked: boolean): LikeFullSeriesTriggerAction;
6783
+ response: EventResponse;
6784
+ static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
6423
6785
  }
6424
6786
  export class FollowCommentsTriggerAction implements AppTriggerAction {
6425
6787
  static type: string;
@@ -6434,6 +6796,14 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6434
6796
  followByDefault: boolean;
6435
6797
  static create(followState: boolean): AutoFollowPostsTriggerAction;
6436
6798
  }
6799
+ export class AutoLikeItemTriggerAction implements AppTriggerAction {
6800
+ static type: string;
6801
+ type: string;
6802
+ recurrenceSeriesId: string;
6803
+ isLiked: boolean;
6804
+ likeCount: number;
6805
+ static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
6806
+ }
6437
6807
  export class DeletedItemsTriggerAction implements AppTriggerAction {
6438
6808
  static type: string;
6439
6809
  type: string;
@@ -6454,6 +6824,18 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6454
6824
  type: string;
6455
6825
  static create(): StreamMarkAllAsReadAction;
6456
6826
  }
6827
+ export class RefetchItemAction implements AppTriggerAction {
6828
+ static type: string;
6829
+ type: string;
6830
+ itemId: string;
6831
+ static create(itemId: string): RefetchItemAction;
6832
+ }
6833
+ export class RefetchStreamItemAction implements AppTriggerAction {
6834
+ static type: string;
6835
+ type: string;
6836
+ itemId: string;
6837
+ static create(itemId: string): RefetchStreamItemAction;
6838
+ }
6457
6839
  }
6458
6840
  declare module "libs/reach/feature/content/src/comments/CommentFilter" {
6459
6841
  export interface CommentFilter {
@@ -6470,26 +6852,29 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
6470
6852
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
6471
6853
  import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
6472
6854
  import { Attachment } from "libs/reach/util/common/src/index";
6855
+ import { PaginatedList } from "libs/reach/util/common/src/index";
6473
6856
  import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
6474
6857
  export function useCommentApi(): {
6475
- createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => any;
6476
- createEditorComment: (itemId: string, comment: Partial<Comment>) => any;
6477
- listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => any;
6478
- getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => any;
6479
- getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => any;
6480
- getEditorConversations: (itemId: string) => any;
6858
+ createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
6859
+ createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
6860
+ listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
6861
+ getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
6862
+ getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
6863
+ getEditorConversations: (itemId: string) => Promise<Comment[]>;
6481
6864
  translateComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, targetLanguage: string) => Promise<string>;
6482
- deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => any;
6483
- deleteEditorComment: (itemId: string, commentId: string) => any;
6865
+ deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
6866
+ deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
6484
6867
  toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
6485
- updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => any;
6868
+ updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
6486
6869
  onCommentCreated$: import("rxjs").Observable<string>;
6487
6870
  };
6488
6871
  }
6872
+ declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
6873
+ export const NeutralCheckBox: import("styled-components").StyledComponent<import("react").FunctionComponent<import("office-ui-fabric-react").ICheckboxProps>, import("styled-components").DefaultTheme, {}, never>;
6874
+ }
6489
6875
  declare module "libs/reach/feature/content/src/comments/FollowComments" {
6490
6876
  import { FC } from 'react';
6491
- import { ConversationScope } from "libs/reach/util/common/src/index";
6492
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
6877
+ import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
6493
6878
  interface Props {
6494
6879
  type: ItemResourceTypes;
6495
6880
  itemId: string;
@@ -6613,7 +6998,7 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
6613
6998
  import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
6614
6999
  import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
6615
7000
  import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
6616
- export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition {
7001
+ export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
6617
7002
  }
6618
7003
  export interface BaseFilterDefinition {
6619
7004
  search?: string;
@@ -6621,6 +7006,9 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
6621
7006
  pageSize?: string | number;
6622
7007
  groupId?: string;
6623
7008
  }
7009
+ export interface ItemIdsFilterDefinition {
7010
+ itemIds?: string;
7011
+ }
6624
7012
  export interface IndexableFilterDefinition {
6625
7013
  [key: string]: any;
6626
7014
  }
@@ -6941,7 +7329,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
6941
7329
  deletePost: (postId: string) => Promise<unknown>;
6942
7330
  getPost: (postId: string, commentCount?: number) => Promise<Post>;
6943
7331
  getPostThread: (postId: string, threadId: string) => Promise<Post>;
6944
- translatePost: (postId: string, language: string) => any;
7332
+ translatePost: (postId: string, language: string) => Promise<string>;
6945
7333
  searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
6946
7334
  };
6947
7335
  }
@@ -7108,6 +7496,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
7108
7496
  declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
7109
7497
  import { FC, MouseEvent } from 'react';
7110
7498
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
7499
+ import { LocationState } from 'history';
7111
7500
  export const ClickableOverlay: FC<{
7112
7501
  itemId: string;
7113
7502
  itemType: ItemResourceTypes;
@@ -7118,6 +7507,19 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
7118
7507
  onClick?: (event: MouseEvent<unknown>) => unknown;
7119
7508
  openTargetInNewWindow?: boolean;
7120
7509
  isExternalContent?: boolean;
7510
+ locationState?: LocationState;
7511
+ }>;
7512
+ }
7513
+ declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
7514
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
7515
+ import { FC } from 'react';
7516
+ export const ClickableOverlayWithModalRouting: FC<{
7517
+ itemId: string;
7518
+ itemType: ItemResourceTypes;
7519
+ baseRoute: string;
7520
+ title?: string;
7521
+ isExternalContent?: boolean;
7522
+ targetUrl?: string;
7121
7523
  }>;
7122
7524
  }
7123
7525
  declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
@@ -7128,6 +7530,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
7128
7530
  targetUrl?: string;
7129
7531
  readOnly?: boolean;
7130
7532
  backgroundColor?: string;
7533
+ enableModalRouting?: boolean;
7131
7534
  className?: string;
7132
7535
  }>;
7133
7536
  }
@@ -7165,6 +7568,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7165
7568
  className?: string;
7166
7569
  allowFilterByChannels?: boolean;
7167
7570
  channelBackgroundColor?: string;
7571
+ onChannelClick?: (channel: string) => unknown;
7168
7572
  }>;
7169
7573
  }
7170
7574
  declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
@@ -7224,6 +7628,7 @@ declare module "libs/reach/feature/content/src/common/banner/PublishableItemBann
7224
7628
  height?: number;
7225
7629
  hidePlayerIfActive?: boolean;
7226
7630
  className?: string;
7631
+ documentIconName?: string;
7227
7632
  }
7228
7633
  export const PublishableItemBanner: FC<Props>;
7229
7634
  }
@@ -7462,10 +7867,12 @@ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegi
7462
7867
  }
7463
7868
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
7464
7869
  import { FC } from 'react';
7870
+ import { EventResponse } from "libs/reach/util/common/src/index";
7465
7871
  export const EventUserRegistration: FC<{
7466
7872
  disabled?: boolean;
7467
7873
  hideInfoMessage?: boolean;
7468
7874
  showNoRegistrationRequired?: boolean;
7875
+ onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7469
7876
  className?: string;
7470
7877
  }>;
7471
7878
  }
@@ -7535,8 +7942,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
7535
7942
  export const CardLikeButton: FC<{
7536
7943
  item: NewsItem | EventItem;
7537
7944
  itemResourceType: ItemResourceTypes;
7538
- isAutoLiked?: boolean;
7539
- onLiked?: (isLiked: boolean) => unknown;
7945
+ onToggleLike?: (isLiked: boolean, likeCount: number) => void;
7540
7946
  className?: string;
7541
7947
  }>;
7542
7948
  }
@@ -7558,6 +7964,18 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoN
7558
7964
  className?: string;
7559
7965
  }>;
7560
7966
  }
7967
+ declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
7968
+ import { FC } from 'react';
7969
+ export const LinkWithModalRouting: FC<{
7970
+ url: string;
7971
+ itemId: string;
7972
+ hash?: string;
7973
+ onClick?: (e: React.MouseEvent) => unknown;
7974
+ ariaHidden?: boolean;
7975
+ ariaLabel?: string;
7976
+ className?: string;
7977
+ }>;
7978
+ }
7561
7979
  declare module "libs/reach/feature/content/src/events/list/EventCard" {
7562
7980
  import { FC } from 'react';
7563
7981
  import { EventItem } from "libs/reach/util/common/src/index";
@@ -7576,6 +7994,7 @@ declare module "libs/reach/feature/content/src/events/list/EventCard" {
7576
7994
  allowFilterByChannels?: boolean;
7577
7995
  showFeedbackButtons?: boolean;
7578
7996
  readOnly?: boolean;
7997
+ enableModalRouting?: boolean;
7579
7998
  className?: string;
7580
7999
  }>;
7581
8000
  }
@@ -7611,6 +8030,36 @@ declare module "libs/reach/feature/content/src/common/body/inline-file-list/Inli
7611
8030
  className?: string;
7612
8031
  }>;
7613
8032
  }
8033
+ declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/ColoredText" {
8034
+ import { ContentState } from 'draft-js';
8035
+ import { FC } from 'react';
8036
+ export const ColoredText: FC<{
8037
+ entityKey: string;
8038
+ contentState: ContentState;
8039
+ }>;
8040
+ }
8041
+ declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextStrategy" {
8042
+ import { ContentBlock, ContentState } from 'draft-js';
8043
+ export const ColoredTextType = "colored-text";
8044
+ export function findColoredTextEntities(contentBlock: ContentBlock, callback: (start: number, end: number) => void, contentState: ContentState): void;
8045
+ }
8046
+ declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextUtils" {
8047
+ import { CompositeDecorator, EditorState } from 'draft-js';
8048
+ import { EditorPlugin } from '@draft-js-plugins/editor';
8049
+ import { EntityKey } from 'draft-convert';
8050
+ type ColoredTextPlugin = EditorPlugin & {
8051
+ decorators: CompositeDecorator[];
8052
+ };
8053
+ export function createColoredTextPlugin(): ColoredTextPlugin;
8054
+ export function createColoredTextEntity(node: HTMLElement, createEntity: (type: string, mutability: string, data: object) => EntityKey): string;
8055
+ export function createColoredTextAtSelection(editorState: EditorState, colorId: string): EditorState;
8056
+ export function removeColoredTextAtSelection(editorState: EditorState): EditorState;
8057
+ }
8058
+ declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/index" {
8059
+ export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/ColoredText";
8060
+ export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextStrategy";
8061
+ export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextUtils";
8062
+ }
7614
8063
  declare module "libs/reach/feature/content/src/common/body/TextViewer" {
7615
8064
  import { FC } from 'react';
7616
8065
  import { DraftBlockType } from 'draft-js';
@@ -7626,7 +8075,8 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
7626
8075
  Contact = "contact",
7627
8076
  InlinePageList = "inline-page-list",
7628
8077
  UrlPreview = "url-preview",
7629
- ActionButton = "action-button"
8078
+ ActionButton = "action-button",
8079
+ InlinePlugin = "inline-plugin"
7630
8080
  }
7631
8081
  export interface HtmlComponentMapper {
7632
8082
  component: FC<any>;
@@ -7768,7 +8218,10 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
7768
8218
  resourceKey?: string;
7769
8219
  resourceValues?: string;
7770
8220
  className?: string;
8221
+ enableModalRouting?: boolean;
8222
+ itemId?: string;
7771
8223
  isOverrideLink: boolean;
8224
+ icon?: string;
7772
8225
  }>;
7773
8226
  }
7774
8227
  declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
@@ -7827,6 +8280,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
7827
8280
  onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7828
8281
  onKeywordClick?: (keyword: string) => unknown;
7829
8282
  openTargetInNewWindow?: boolean;
8283
+ enableModalRouting?: boolean;
7830
8284
  className?: string;
7831
8285
  }
7832
8286
  export const PageItemTile: FC<Props>;
@@ -7872,6 +8326,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
7872
8326
  onClick?: (event: MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7873
8327
  styleDefinition?: StyleDefinition;
7874
8328
  readOnly?: boolean;
8329
+ enableModalRouting?: boolean;
7875
8330
  className?: string;
7876
8331
  }
7877
8332
  export const PublishableItemTileWrapper: FC<Props>;
@@ -7915,6 +8370,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
7915
8370
  onKeywordClick?: (keyword: string) => unknown;
7916
8371
  styleDefinition?: StyleDefinition;
7917
8372
  readOnly?: boolean;
8373
+ enableModalRouting?: boolean;
7918
8374
  className?: string;
7919
8375
  }
7920
8376
  export const NewsItemTile: FC<Props>;
@@ -7940,6 +8396,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
7940
8396
  previewTheme?: CommentInputTheme;
7941
8397
  buttons?: ReactNode;
7942
8398
  groupIds?: string[];
8399
+ enableModalRouting?: boolean;
7943
8400
  className?: string;
7944
8401
  }>;
7945
8402
  export const EmbeddedObjectAccessDeniedTile: FC<{
@@ -7956,6 +8413,7 @@ declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
7956
8413
  attachments: Attachment[];
7957
8414
  onDeleteClick?: (attachment: Attachment) => void;
7958
8415
  previewTheme?: CommentInputTheme;
8416
+ enableModalRouting?: boolean;
7959
8417
  className?: string;
7960
8418
  }>;
7961
8419
  }
@@ -8116,6 +8574,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
8116
8574
  import { FC, ReactNode } from 'react';
8117
8575
  export const InlineObjectToolbar: FC<{
8118
8576
  onDelete?: () => void;
8577
+ deleteAriaLabelResourceKey?: string;
8119
8578
  additionalButtons?: ReactNode;
8120
8579
  }>;
8121
8580
  export const InlineObjectToolbarWrapper: FC<{
@@ -8123,15 +8582,18 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
8123
8582
  }>;
8124
8583
  }
8125
8584
  declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
8126
- import { FC } from 'react';
8585
+ import { FC, ReactNode } from 'react';
8586
+ import { ImageAlignment } from "libs/reach/util/common/src/index";
8127
8587
  export const ImageToolbar: FC<{
8128
8588
  onDelete?: () => void;
8129
8589
  onFullScreen?: (e: React.MouseEvent<any>) => void;
8130
8590
  onClose?: (e: React.MouseEvent<any>) => void;
8131
8591
  onCrop?: (e: React.MouseEvent<any>) => void;
8592
+ onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
8132
8593
  showFullScreenButton?: boolean;
8133
8594
  showCloseButton?: boolean;
8134
8595
  showCropButton?: boolean;
8596
+ alignmentButtons?: ReactNode;
8135
8597
  }>;
8136
8598
  }
8137
8599
  declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
@@ -8258,6 +8720,15 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
8258
8720
  export const EditCommentWithAttachments: FC<Props>;
8259
8721
  export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
8260
8722
  }
8723
+ declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
8724
+ import { FC } from 'react';
8725
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8726
+ export const BookmarkButton: FC<{
8727
+ item: PublishableItem;
8728
+ isReadOnly?: boolean;
8729
+ className?: string;
8730
+ }>;
8731
+ }
8261
8732
  declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
8262
8733
  import { FC } from 'react';
8263
8734
  export const CardStatisticItem: FC<{
@@ -8275,13 +8746,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
8275
8746
  };
8276
8747
  }>;
8277
8748
  }
8278
- declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
8749
+ declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
8750
+ import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8279
8751
  import { FC } from 'react';
8280
- import { PublishableItem } from "libs/reach/util/common/src/index";
8281
- export const BookmarkButton: FC<{
8282
- item: PublishableItem;
8283
- isReadOnly?: boolean;
8284
- className?: string;
8752
+ export const CardCommentButton: FC<{
8753
+ item: NewsItem | EventItem;
8754
+ itemResourceType: ItemResourceTypes;
8755
+ targetRoute: string;
8756
+ enableModalRouting?: boolean;
8285
8757
  }>;
8286
8758
  }
8287
8759
  declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
@@ -8289,13 +8761,11 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8289
8761
  import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8290
8762
  export const CardFooter: FC<{
8291
8763
  item: NewsItem | EventItem;
8292
- showComments: boolean;
8293
8764
  targetRoute: string;
8294
8765
  itemResourceType: ItemResourceTypes;
8295
- isAutoLiked?: boolean;
8296
- onLiked?: (isLiked: boolean) => unknown;
8766
+ enableModalRouting?: boolean;
8297
8767
  }>;
8298
- export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
8768
+ export const CardFooterHost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8299
8769
  }
8300
8770
  declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
8301
8771
  export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -8344,6 +8814,7 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
8344
8814
  target?: string;
8345
8815
  language?: string;
8346
8816
  hideCurrentPageNode?: boolean;
8817
+ homeTargetUrlOverride?: string;
8347
8818
  className?: string;
8348
8819
  }>;
8349
8820
  }
@@ -8543,6 +9014,7 @@ declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
8543
9014
  language?: string;
8544
9015
  buildChannelFilterUrl?: (channelName: string) => string;
8545
9016
  clickableAvatar?: boolean;
9017
+ onChannelClick?: (channel: string) => unknown;
8546
9018
  }>;
8547
9019
  }
8548
9020
  declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
@@ -8592,7 +9064,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
8592
9064
  item: NewsItem;
8593
9065
  baseRoute: string;
8594
9066
  language: string;
8595
- showComments: boolean;
8596
9067
  highlight: boolean;
8597
9068
  className?: string;
8598
9069
  }
@@ -8699,6 +9170,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
8699
9170
  }
8700
9171
  declare module "libs/reach/feature/content/src/common/body/InlineImage" {
8701
9172
  import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
9173
+ export const ImageAlignmentStyles: (alignment: string, width: number, preventFloat?: boolean) => string | import("styled-components").FlattenSimpleInterpolation;
8702
9174
  export const InlineImageMapper: HtmlComponentMapper;
8703
9175
  }
8704
9176
  declare module "libs/reach/feature/content/src/common/body/InlineContact" {
@@ -8917,6 +9389,10 @@ declare module "libs/reach/feature/content/src/common/body/InlineActionButtonLis
8917
9389
  }
8918
9390
  export const InlineActionButtonMapper: HtmlComponentMapper;
8919
9391
  }
9392
+ declare module "libs/reach/feature/content/src/common/body/InlineObjectPluginView" {
9393
+ import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
9394
+ export const InlineObjectPluginMapper: HtmlComponentMapper;
9395
+ }
8920
9396
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewPeopleInfo" {
8921
9397
  import { FC } from 'react';
8922
9398
  export const EventDetailViewPeopleInfo: FC;
@@ -8929,6 +9405,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
8929
9405
  import { FC } from 'react';
8930
9406
  export const EventDetailViewMetaInfo: FC<{
8931
9407
  allowFilterByChannels?: boolean;
9408
+ onChannelClick?: (channel: string) => unknown;
8932
9409
  }>;
8933
9410
  }
8934
9411
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewDatesInfo" {
@@ -9136,6 +9613,7 @@ declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
9136
9613
  readOnly?: boolean;
9137
9614
  trimContent?: boolean;
9138
9615
  showReplyBox?: boolean;
9616
+ enableModalRouting?: boolean;
9139
9617
  className?: string;
9140
9618
  }>;
9141
9619
  }
@@ -9158,6 +9636,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
9158
9636
  onReply?: (comment: Comment, commentSender?: Account) => void;
9159
9637
  readOnly?: boolean;
9160
9638
  trimContent?: boolean;
9639
+ enableModalRouting?: boolean;
9161
9640
  className?: string;
9162
9641
  }
9163
9642
  export const CommentList: FC<CommentListProps>;
@@ -9217,6 +9696,7 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
9217
9696
  showReplyBox?: boolean;
9218
9697
  trimContent?: boolean;
9219
9698
  title?: ReactNode;
9699
+ enableModalRouting?: boolean;
9220
9700
  className?: string;
9221
9701
  };
9222
9702
  export const PagedCommentsSection: FC<Props>;
@@ -9241,14 +9721,12 @@ declare module "libs/reach/feature/content/src/public-user/PublicUserFullAccessB
9241
9721
  }
9242
9722
  declare module "libs/reach/feature/content/src/comments/PublishableItemComments" {
9243
9723
  import { FC } from 'react';
9244
- import { PublishableItem } from "libs/reach/util/common/src/index";
9245
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9724
+ import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
9246
9725
  export const PublishableItemComments: FC<{
9247
9726
  item: PublishableItem;
9248
9727
  readOnly?: boolean;
9249
9728
  loadInReadOnlyMode?: boolean;
9250
9729
  type: ItemResourceTypes;
9251
- hideProfileUrl?: boolean;
9252
9730
  disableLoginForPublicUser?: boolean;
9253
9731
  }>;
9254
9732
  }
@@ -9309,16 +9787,13 @@ declare module "libs/reach/feature/content/src/comments/PublishableItemThreadVie
9309
9787
  }
9310
9788
  declare module "libs/reach/feature/content/src/feedback/FeedbackSection" {
9311
9789
  import { FC } from 'react';
9312
- import { FeedbackSettings } from "libs/reach/util/common/src/index";
9313
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9314
- import { PublishableItem } from "libs/reach/util/common/src/index";
9790
+ import { FeedbackSettings, ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
9315
9791
  export const FeedbackSection: FC<{
9316
9792
  item: PublishableItem;
9317
9793
  language: string;
9318
9794
  type: ItemResourceTypes;
9319
9795
  feedbackSettings: FeedbackSettings;
9320
9796
  hideComments?: boolean;
9321
- hideProfileUrl?: boolean;
9322
9797
  disableLoginForPublicUser?: boolean;
9323
9798
  isReadOnly?: boolean;
9324
9799
  className?: string;
@@ -9485,6 +9960,7 @@ declare module "libs/reach/feature/content/src/common/banner/Banner" {
9485
9960
  layoutMode?: ItemTileLayoutMode;
9486
9961
  bannerDefaultWidth?: number;
9487
9962
  showPlaceholderIfNoBannerInfo?: boolean;
9963
+ documentIconName?: string;
9488
9964
  }>;
9489
9965
  }
9490
9966
  declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
@@ -9555,6 +10031,7 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
9555
10031
  import { FC } from 'react';
9556
10032
  export const DetailViewKeywords: FC<{
9557
10033
  filterBaseUrl: string;
10034
+ onKeywordClick?: (keyword: string) => unknown;
9558
10035
  }>;
9559
10036
  }
9560
10037
  declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
@@ -9602,8 +10079,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
9602
10079
  import { FC, ReactNode } from 'react';
9603
10080
  export const DetailViewNavigation: FC<{
9604
10081
  offsetRight?: number;
9605
- children?: ReactNode;
9606
10082
  callout?: ReactNode;
10083
+ className?: string;
10084
+ children?: ReactNode;
9607
10085
  }>;
9608
10086
  }
9609
10087
  declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBodyExternalContent" {
@@ -9646,6 +10124,13 @@ declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi"
9646
10124
  getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
9647
10125
  };
9648
10126
  }
10127
+ declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
10128
+ interface IClickHandles {
10129
+ onInsideClick: () => void;
10130
+ onOutsideClick: () => void;
10131
+ }
10132
+ export function useClickOutside<T extends HTMLElement>({ onInsideClick, onOutsideClick, }: IClickHandles): import("react").MutableRefObject<T>;
10133
+ }
9649
10134
  declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
9650
10135
  import { LocationDescriptor } from 'history';
9651
10136
  import { FC, ReactNode } from 'react';
@@ -9749,7 +10234,7 @@ declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton"
9749
10234
  import { FC } from 'react';
9750
10235
  export const ContentWithShowMoreButton: FC<{
9751
10236
  domIdentifier: string;
9752
- trimContent: boolean;
10237
+ trimContent?: boolean;
9753
10238
  className?: string;
9754
10239
  }>;
9755
10240
  }
@@ -9814,6 +10299,7 @@ declare module "libs/reach/feature/content/src/common/index" {
9814
10299
  export * from "libs/reach/feature/content/src/common/body/ItemBodyWrapper";
9815
10300
  export * from "libs/reach/feature/content/src/common/body/InlineFileList";
9816
10301
  export * from "libs/reach/feature/content/src/common/body/InlineActionButtonList";
10302
+ export * from "libs/reach/feature/content/src/common/body/InlineObjectPluginView";
9817
10303
  export * from "libs/reach/feature/content/src/common/body/inline-action-button/InlineActionButtonStyles";
9818
10304
  export * from "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo";
9819
10305
  export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton";
@@ -9867,6 +10353,7 @@ declare module "libs/reach/feature/content/src/common/index" {
9867
10353
  export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
9868
10354
  export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
9869
10355
  export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
10356
+ export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
9870
10357
  export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
9871
10358
  export * from "libs/reach/feature/content/src/common/sidebar/BaseSidebarItem";
9872
10359
  export * from "libs/reach/feature/content/src/common/sidebar/SidebarGroup";
@@ -9877,6 +10364,7 @@ declare module "libs/reach/feature/content/src/common/index" {
9877
10364
  export * from "libs/reach/feature/content/src/common/FilterLogicalOperators";
9878
10365
  export * from "libs/reach/feature/content/src/common/channels/ChannelSelector";
9879
10366
  export * from "libs/reach/feature/content/src/common/item-tile/PageItemTile";
10367
+ export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/index";
9880
10368
  }
9881
10369
  declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
9882
10370
  import { FC } from 'react';
@@ -9896,13 +10384,13 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
9896
10384
  mentionSearchHandler: (searchText: string) => Promise<Account[]>;
9897
10385
  getHashtagFilterRoute?: (hashtag: string) => string;
9898
10386
  highlight?: boolean;
9899
- isInitialLiked?: boolean;
9900
10387
  hasUnreadReplies?: boolean;
9901
10388
  onReplyIconClick?: () => void;
9902
10389
  onReply?: (comment: Comment, commentSender?: Account) => void;
9903
10390
  replyCount?: number;
9904
10391
  readOnly?: boolean;
9905
10392
  trimContent?: boolean;
10393
+ enableModalRouting?: boolean;
9906
10394
  className?: string;
9907
10395
  }
9908
10396
  export const CommentDisplay: FC<Props>;
@@ -10130,6 +10618,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
10130
10618
  onReplyAdded: () => void;
10131
10619
  onReplyDeleted: () => void;
10132
10620
  trimContent?: boolean;
10621
+ enableModalRouting?: boolean;
10133
10622
  }
10134
10623
  export const PostReplies: FC<Props>;
10135
10624
  }
@@ -10197,6 +10686,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10197
10686
  baseTargetUrl?: string;
10198
10687
  }
10199
10688
  export const PostDisplay: FC<Props>;
10689
+ export const PostDisplayWithModalRouting: FC<Props>;
10200
10690
  }
10201
10691
  declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
10202
10692
  import { FC } from 'react';
@@ -11055,6 +11545,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11055
11545
  poll?: import("@livetiles/reach/util/common").Poll;
11056
11546
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
11057
11547
  })[];
11548
+ export function updateStreamItemStatistics(items: StreamItem[], updatedItem: StreamItem): StreamItem[];
11058
11549
  }
11059
11550
  declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
11060
11551
  import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11079,6 +11570,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
11079
11570
  };
11080
11571
  refresh: () => Promise<void>;
11081
11572
  isLoadingFirstPage: boolean;
11573
+ refetchItem: (itemId: string) => Promise<void>;
11082
11574
  };
11083
11575
  export function hasFilter(filter?: StreamFilterDefinition): boolean;
11084
11576
  export const getStreamQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
@@ -11217,8 +11709,21 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
11217
11709
  declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
11218
11710
  export type ShareTokenType = 'preview' | 'published';
11219
11711
  export function useShareTokenEditorApi(): {
11220
- activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11221
- deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11712
+ activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
11713
+ deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
11714
+ };
11715
+ }
11716
+ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
11717
+ import { EventCancelReasons, EventCancelInformation, EventItem } from "libs/reach/util/common/src/index";
11718
+ import { PublishableItem } from "libs/reach/util/common/src/index";
11719
+ export function useEventsEditorApi(): {
11720
+ getEvent: (eventId: string) => Promise<EventItem>;
11721
+ cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
11722
+ uncancelEvent: (id: string) => Promise<unknown>;
11723
+ unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
11724
+ deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
11725
+ saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
11726
+ deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
11222
11727
  };
11223
11728
  }
11224
11729
  declare module "libs/reach/feature/content/src/editor/index" {
@@ -11230,6 +11735,7 @@ declare module "libs/reach/feature/content/src/editor/index" {
11230
11735
  export * from "libs/reach/feature/content/src/editor/useEditorApi";
11231
11736
  export * from "libs/reach/feature/content/src/editor/useNewsEditorApi";
11232
11737
  export * from "libs/reach/feature/content/src/editor/useShareTokenEditorApi";
11738
+ export * from "libs/reach/feature/content/src/editor/useEventsEditorApi";
11233
11739
  }
11234
11740
  declare module "libs/reach/feature/content/src/public-user/index" {
11235
11741
  export * from "libs/reach/feature/content/src/public-user/PublicUserFullAccessButton";
@@ -11306,9 +11812,8 @@ declare module "libs/reach/feature/content/src/stream/usePagesStreamDataLoader"
11306
11812
  import { ItemLoader } from "libs/reach/ui/common/src/index";
11307
11813
  import { PageStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
11308
11814
  import { PageFilterDefinition } from "libs/reach/feature/content/src/pages/index";
11309
- export function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string, pageParentId?: string): ItemLoader<PageStreamItem, number>;
11815
+ export function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
11310
11816
  export const PAGES_QUERY: (whereConditions?: string) => import("@apollo/client").DocumentNode;
11311
- export const PARENT_ID_CONDITION: (parentId?: string) => string;
11312
11817
  }
11313
11818
  declare module "libs/reach/feature/content/src/stream/index" {
11314
11819
  export * from "libs/reach/feature/content/src/stream/StreamList";
@@ -11786,7 +12291,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
11786
12291
  import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
11787
12292
  import { SearchBoxProps } from "libs/reach/ui/common/src/index";
11788
12293
  import { MainContentPanelProps } from "apps/reach-app/src/app/chrome/MainContentPanel";
11789
- export interface Props extends SearchBoxProps {
12294
+ export interface PageProps extends SearchBoxProps {
11790
12295
  className?: string;
11791
12296
  headerContents?: JSX.Element;
11792
12297
  headerToolbar?: HeaderToolbarTypeHack;
@@ -11804,12 +12309,14 @@ declare module "apps/reach-app/src/app/chrome/Page" {
11804
12309
  submenuContents?: JSX.Element;
11805
12310
  submenuClassName?: string;
11806
12311
  disableScrollableContainerFocus?: boolean;
12312
+ asModal?: boolean;
12313
+ domIdentifier?: string;
11807
12314
  }
11808
12315
  export enum MenuNavigationMode {
11809
12316
  Collapse = 0,
11810
12317
  KeepOpen = 1
11811
12318
  }
11812
- export const Page: FC<Props>;
12319
+ export const Page: FC<PageProps>;
11813
12320
  }
11814
12321
  declare module "apps/reach-app/src/plugins/reach-chrome" {
11815
12322
  import { Page } from "apps/reach-app/src/app/chrome/Page";