@livetiles/reach-plugin-types 0.5.0-preview.10 → 0.5.0-preview.104

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 +523 -67
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -306,6 +306,7 @@ declare module "libs/shared/util/environment/src/EnvironmentConfig" {
306
306
  buildId: string;
307
307
  useAzureAdFunctionality: boolean;
308
308
  envName: string;
309
+ mobileTeamsHost?: string;
309
310
  }
310
311
  type OperatingSystem = 'ios' | 'android' | 'windows' | 'mac' | 'unknown';
311
312
  interface DeviceInfo {
@@ -1026,6 +1027,233 @@ declare module "libs/reach/util/common/src/resources/ResourceContextProvider" {
1026
1027
  language?: string;
1027
1028
  }>;
1028
1029
  }
1030
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async" {
1031
+ import locale from 'date-fns/locale/ar-DZ';
1032
+ export default locale;
1033
+ }
1034
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-ma.async" {
1035
+ import locale from 'date-fns/locale/ar-MA';
1036
+ export default locale;
1037
+ }
1038
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-sa.async" {
1039
+ import locale from 'date-fns/locale/ar-SA';
1040
+ export default locale;
1041
+ }
1042
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/bg.async" {
1043
+ import locale from 'date-fns/locale/bg';
1044
+ export default locale;
1045
+ }
1046
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/bn.async" {
1047
+ import locale from 'date-fns/locale/bn';
1048
+ export default locale;
1049
+ }
1050
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ca.async" {
1051
+ import locale from 'date-fns/locale/ca';
1052
+ export default locale;
1053
+ }
1054
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/cs.async" {
1055
+ import locale from 'date-fns/locale/cs';
1056
+ export default locale;
1057
+ }
1058
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/da.async" {
1059
+ import locale from 'date-fns/locale/da';
1060
+ export default locale;
1061
+ }
1062
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/de.async" {
1063
+ import locale from 'date-fns/locale/de';
1064
+ export default locale;
1065
+ }
1066
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/el.async" {
1067
+ import locale from 'date-fns/locale/el';
1068
+ export default locale;
1069
+ }
1070
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-au.async" {
1071
+ import locale from 'date-fns/locale/en-AU';
1072
+ export default locale;
1073
+ }
1074
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-ca.async" {
1075
+ import locale from 'date-fns/locale/en-CA';
1076
+ export default locale;
1077
+ }
1078
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-gb.async" {
1079
+ import locale from 'date-fns/locale/en-GB';
1080
+ export default locale;
1081
+ }
1082
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-nz.async" {
1083
+ import locale from 'date-fns/locale/en-NZ';
1084
+ export default locale;
1085
+ }
1086
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/es.async" {
1087
+ import locale from 'date-fns/locale/es';
1088
+ export default locale;
1089
+ }
1090
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/et.async" {
1091
+ import locale from 'date-fns/locale/et';
1092
+ export default locale;
1093
+ }
1094
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fa-ir.async" {
1095
+ import locale from 'date-fns/locale/fa-IR';
1096
+ export default locale;
1097
+ }
1098
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fi.async" {
1099
+ import locale from 'date-fns/locale/fi';
1100
+ export default locale;
1101
+ }
1102
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr-ca.async" {
1103
+ import locale from 'date-fns/locale/fr-CA';
1104
+ export default locale;
1105
+ }
1106
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr-ch.async" {
1107
+ import locale from 'date-fns/locale/fr-CH';
1108
+ export default locale;
1109
+ }
1110
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr.async" {
1111
+ import locale from 'date-fns/locale/fr';
1112
+ export default locale;
1113
+ }
1114
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/gu.async" {
1115
+ import locale from 'date-fns/locale/gu';
1116
+ export default locale;
1117
+ }
1118
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/he.async" {
1119
+ import locale from 'date-fns/locale/he';
1120
+ export default locale;
1121
+ }
1122
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hi.async" {
1123
+ import locale from 'date-fns/locale/hi';
1124
+ export default locale;
1125
+ }
1126
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hr.async" {
1127
+ import locale from 'date-fns/locale/hr';
1128
+ export default locale;
1129
+ }
1130
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hu.async" {
1131
+ import locale from 'date-fns/locale/hu';
1132
+ export default locale;
1133
+ }
1134
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/id.async" {
1135
+ import locale from 'date-fns/locale/id';
1136
+ export default locale;
1137
+ }
1138
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/it.async" {
1139
+ import locale from 'date-fns/locale/it';
1140
+ export default locale;
1141
+ }
1142
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ja.async" {
1143
+ import locale from 'date-fns/locale/ja';
1144
+ export default locale;
1145
+ }
1146
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/kn.async" {
1147
+ import locale from 'date-fns/locale/kn';
1148
+ export default locale;
1149
+ }
1150
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ko.async" {
1151
+ import locale from 'date-fns/locale/ko';
1152
+ export default locale;
1153
+ }
1154
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/lt.async" {
1155
+ import locale from 'date-fns/locale/lt';
1156
+ export default locale;
1157
+ }
1158
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/lv.async" {
1159
+ import locale from 'date-fns/locale/lv';
1160
+ export default locale;
1161
+ }
1162
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ms.async" {
1163
+ import locale from 'date-fns/locale/ms';
1164
+ export default locale;
1165
+ }
1166
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nb.async" {
1167
+ import locale from 'date-fns/locale/nb';
1168
+ export default locale;
1169
+ }
1170
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nl-be.async" {
1171
+ import locale from 'date-fns/locale/nl-BE';
1172
+ export default locale;
1173
+ }
1174
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nl.async" {
1175
+ import locale from 'date-fns/locale/nl';
1176
+ export default locale;
1177
+ }
1178
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pl.async" {
1179
+ import locale from 'date-fns/locale/pl';
1180
+ export default locale;
1181
+ }
1182
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pt-br.async" {
1183
+ import locale from 'date-fns/locale/pt-BR';
1184
+ export default locale;
1185
+ }
1186
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pt.async" {
1187
+ import locale from 'date-fns/locale/pt';
1188
+ export default locale;
1189
+ }
1190
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ro.async" {
1191
+ import locale from 'date-fns/locale/ro';
1192
+ export default locale;
1193
+ }
1194
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ru.async" {
1195
+ import locale from 'date-fns/locale/ru';
1196
+ export default locale;
1197
+ }
1198
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sk.async" {
1199
+ import locale from 'date-fns/locale/sk';
1200
+ export default locale;
1201
+ }
1202
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sl.async" {
1203
+ import locale from 'date-fns/locale/sl';
1204
+ export default locale;
1205
+ }
1206
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sr-latn.async" {
1207
+ import locale from 'date-fns/locale/sr-Latn';
1208
+ export default locale;
1209
+ }
1210
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sr.async" {
1211
+ import locale from 'date-fns/locale/sr';
1212
+ export default locale;
1213
+ }
1214
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sv.async" {
1215
+ import locale from 'date-fns/locale/sv';
1216
+ export default locale;
1217
+ }
1218
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ta.async" {
1219
+ import locale from 'date-fns/locale/ta';
1220
+ export default locale;
1221
+ }
1222
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/te.async" {
1223
+ import locale from 'date-fns/locale/te';
1224
+ export default locale;
1225
+ }
1226
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/th.async" {
1227
+ import locale from 'date-fns/locale/th';
1228
+ export default locale;
1229
+ }
1230
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/tr.async" {
1231
+ import locale from 'date-fns/locale/tr';
1232
+ export default locale;
1233
+ }
1234
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/uk.async" {
1235
+ import locale from 'date-fns/locale/uk';
1236
+ export default locale;
1237
+ }
1238
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/vi.async" {
1239
+ import locale from 'date-fns/locale/vi';
1240
+ export default locale;
1241
+ }
1242
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/zh-cn.async" {
1243
+ import locale from 'date-fns/locale/zh-CN';
1244
+ export default locale;
1245
+ }
1246
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/zh-tw.async" {
1247
+ import locale from 'date-fns/locale/zh-TW';
1248
+ export default locale;
1249
+ }
1250
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-us.async" {
1251
+ import locale from 'date-fns/locale/en-US';
1252
+ export default locale;
1253
+ }
1254
+ declare module "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter" {
1255
+ export function importDateFnsLocaleAsync(locale: string): Promise<typeof import("libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async")>;
1256
+ }
1029
1257
  declare module "libs/reach/util/common/src/user/features/FeatureSet" {
1030
1258
  export const orderedFeatureSet: string[];
1031
1259
  export class FeatureSet {
@@ -1274,9 +1502,19 @@ declare module "libs/reach/util/common/src/user/Subscription" {
1274
1502
  subscriptionId: string;
1275
1503
  subscriptionName: string;
1276
1504
  }
1277
- export interface PluginExtension {
1278
- area: string;
1279
- componentName: string;
1505
+ export enum ExtensionArea {
1506
+ global = "Global",
1507
+ page = "Page",
1508
+ eventEditorFeedbackSection = "EventEditorFeedbackSection",
1509
+ eventDetailViewSection = "EventDetailViewSection",
1510
+ itemEditor = "ItemEditor"
1511
+ }
1512
+ export type InlinePlugin = {
1513
+ area: ExtensionArea.itemEditor;
1514
+ objectButton: PluginObjectButton;
1515
+ };
1516
+ export type PagePlugin = {
1517
+ area: ExtensionArea.page;
1280
1518
  route: string;
1281
1519
  navigationNode?: {
1282
1520
  componentName?: string;
@@ -1286,7 +1524,20 @@ declare module "libs/reach/util/common/src/user/Subscription" {
1286
1524
  [key: string]: string;
1287
1525
  };
1288
1526
  };
1289
- }
1527
+ };
1528
+ export type PluginExtension = {
1529
+ area: ExtensionArea;
1530
+ componentName: string;
1531
+ } & (InlinePlugin | PagePlugin);
1532
+ export type PluginObjectButton = {
1533
+ buttonLabel: {
1534
+ defaultLabel: string;
1535
+ translations?: {
1536
+ [key: string]: string;
1537
+ };
1538
+ };
1539
+ iconName: string;
1540
+ };
1290
1541
  export interface PluginNotificationDefinitions {
1291
1542
  key: string;
1292
1543
  title: string;
@@ -1490,6 +1741,7 @@ declare module "libs/reach/util/common/src/user/User" {
1490
1741
  user: UserSummary;
1491
1742
  type: SubscriptionJoinResultType;
1492
1743
  message?: string;
1744
+ isSuccess?: boolean;
1493
1745
  }
1494
1746
  export interface UserActivationResult {
1495
1747
  type: UserActivationResultType;
@@ -2521,6 +2773,8 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
2521
2773
  updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
2522
2774
  deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
2523
2775
  importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
2776
+ refreshApiKey: (apiKeyId: string, expiryDate: string) => Promise<Response>;
2777
+ requestApiKey: (email: string, displayName: string, expiryDate: string) => Promise<Response>;
2524
2778
  };
2525
2779
  }
2526
2780
  declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
@@ -2817,17 +3071,15 @@ declare module "libs/reach/util/common/src/Models" {
2817
3071
  }
2818
3072
  }
2819
3073
  declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
2820
- import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
3074
+ import { ExtensionArea, PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
2821
3075
  import { PageNavigationNodeProps } from "libs/reach/util/common/src/Models";
2822
- export enum ExtensionArea {
2823
- global = "Global",
2824
- page = "Page",
2825
- eventEditorFeedbackSection = "EventEditorFeedbackSection",
2826
- eventDetailViewSection = "EventDetailViewSection"
2827
- }
2828
3076
  export interface PluginNavigationNodeProps {
2829
3077
  navigationNodeProps?: PageNavigationNodeProps;
2830
3078
  }
3079
+ export type EmbeddedPluginProps = PluginProps & {
3080
+ isEditMode?: boolean;
3081
+ componentInstanceId: string;
3082
+ };
2831
3083
  export type PluginProps = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
2832
3084
  type DevPlugin = {
2833
3085
  pluginId: string;
@@ -2881,22 +3133,11 @@ declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
2881
3133
  }
2882
3134
  declare module "libs/reach/util/common/src/plugins/Plugins" {
2883
3135
  import { FC } from 'react';
2884
- import { ExtensionArea } from "libs/reach/util/common/src/plugins/usePluginExtensions";
3136
+ import { ExtensionArea } from "libs/reach/util/common/src/user/Subscription";
2885
3137
  export const Plugins: FC<{
2886
3138
  area: ExtensionArea;
2887
3139
  } & any>;
2888
3140
  }
2889
- declare module "libs/reach/util/common/src/plugins/index" {
2890
- export * from "libs/reach/util/common/src/plugins/PluginContext";
2891
- export * from "libs/reach/util/common/src/plugins/PluginWrapper";
2892
- export * from "libs/reach/util/common/src/plugins/Plugins";
2893
- export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
2894
- export * from "libs/reach/util/common/src/plugins/usePluginApi";
2895
- export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
2896
- export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
2897
- export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
2898
- export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
2899
- }
2900
3141
  declare module "libs/reach/util/common/src/theme/ColorGenerator" {
2901
3142
  export class Color {
2902
3143
  private r;
@@ -3099,7 +3340,7 @@ declare module "libs/reach/util/common/src/Variables" {
3099
3340
  export const videoAttachmentRoundedCornerSize = 20;
3100
3341
  export const inlinePageBannerRoundedCornerSize = 5;
3101
3342
  export const feedbackButtonHeight = 32;
3102
- export const mainScrollableContainerSelector = "lt-reach-main-content";
3343
+ export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
3103
3344
  export const statusColors: {
3104
3345
  draft: string;
3105
3346
  ready: string;
@@ -3113,6 +3354,25 @@ declare module "libs/reach/util/common/src/Variables" {
3113
3354
  export const managePagesRowHeight = 40;
3114
3355
  export const mobilePreviewWidth = 414;
3115
3356
  }
3357
+ declare module "libs/reach/util/common/src/plugins/Plugin" {
3358
+ import { FC } from 'react';
3359
+ import { PluginProps } from "libs/reach/util/common/src/plugins/usePluginExtensions";
3360
+ export const Plugin: FC<PluginProps & {
3361
+ showDetailedErrorMessage?: boolean;
3362
+ } & any>;
3363
+ }
3364
+ declare module "libs/reach/util/common/src/plugins/index" {
3365
+ export * from "libs/reach/util/common/src/plugins/PluginContext";
3366
+ export * from "libs/reach/util/common/src/plugins/PluginWrapper";
3367
+ export * from "libs/reach/util/common/src/plugins/Plugins";
3368
+ export * from "libs/reach/util/common/src/plugins/Plugin";
3369
+ export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
3370
+ export * from "libs/reach/util/common/src/plugins/usePluginApi";
3371
+ export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
3372
+ export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
3373
+ export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
3374
+ export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
3375
+ }
3116
3376
  declare module "libs/reach/util/common/src/notification/NotificationContext" {
3117
3377
  import { FC, ReactNode } from 'react';
3118
3378
  import { ToastOptions } from 'react-toastify';
@@ -3215,6 +3475,15 @@ declare module "libs/reach/util/common/src/ImageDetails" {
3215
3475
  width?: number;
3216
3476
  height?: number;
3217
3477
  }
3478
+ export interface ImageWithAlignment extends ImageDetails {
3479
+ imageAlignment?: ImageAlignment;
3480
+ }
3481
+ export enum ImageAlignment {
3482
+ Default = "default",
3483
+ Left = "left",
3484
+ Right = "right",
3485
+ Center = "center"
3486
+ }
3218
3487
  }
3219
3488
  declare module "libs/reach/util/common/src/MainContentPanelContext" {
3220
3489
  export interface MainPanelContextType {
@@ -3265,6 +3534,35 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
3265
3534
  static create(): GenericAccessDeniedTriggerAction;
3266
3535
  }
3267
3536
  }
3537
+ declare module "libs/reach/util/common/src/useModalRouting" {
3538
+ export interface ModalRouting {
3539
+ isActive: boolean;
3540
+ itemId: string;
3541
+ backgroundLocation: any;
3542
+ }
3543
+ export function useModalRouting(): {
3544
+ isModalRoutingActive: boolean;
3545
+ modalItemId: string;
3546
+ backgroundLocation: any;
3547
+ };
3548
+ export function useModalRoutingSettings(): (itemId: string) => {
3549
+ modalRouting: {
3550
+ isActive: boolean;
3551
+ itemId: string;
3552
+ backgroundLocation: {
3553
+ state: {
3554
+ modalRouting: {
3555
+ isActive: boolean;
3556
+ };
3557
+ };
3558
+ pathname: string;
3559
+ search: string;
3560
+ hash: string;
3561
+ key?: string;
3562
+ };
3563
+ };
3564
+ };
3565
+ }
3268
3566
  declare module "libs/reach/util/common/src/index" {
3269
3567
  export { initializeIcons } from 'office-ui-fabric-react';
3270
3568
  export * from "libs/reach/util/common/src/FocusStyles";
@@ -3274,6 +3572,7 @@ declare module "libs/reach/util/common/src/index" {
3274
3572
  export * from "libs/reach/util/common/src/SortDirection";
3275
3573
  export * from "libs/reach/util/common/src/useCacheLanguageApi";
3276
3574
  export * from "libs/reach/util/common/src/resources/ResourceContextProvider";
3575
+ export * from "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter";
3277
3576
  export * from "libs/reach/util/common/src/user/index";
3278
3577
  export * from "libs/reach/util/common/src/plugins/index";
3279
3578
  export * from "libs/reach/util/common/src/theme/index";
@@ -3292,6 +3591,7 @@ declare module "libs/reach/util/common/src/index" {
3292
3591
  export * from "libs/reach/util/common/src/useBaseRoute";
3293
3592
  export * from "libs/reach/util/common/src/ForbiddenErrorTriggerAction";
3294
3593
  export * from "libs/reach/util/common/src/AccessDeniedIntercept";
3594
+ export * from "libs/reach/util/common/src/useModalRouting";
3295
3595
  }
3296
3596
  declare module "libs/reach/ui/common/src/Link" {
3297
3597
  import { Link as RouterLink } from 'react-router-dom';
@@ -3428,7 +3728,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
3428
3728
  export const PeoplePicker: FC<Props>;
3429
3729
  }
3430
3730
  declare module "libs/reach/ui/common/src/plugins/reach-core" {
3431
- 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";
3731
+ 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";
3432
3732
  import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
3433
3733
  import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
3434
3734
  import { createId, logger } from "libs/shared/util/common/src/index";
@@ -3445,7 +3745,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
3445
3745
  * @deprecated Please use `usePluginDeviceStore` instead
3446
3746
  */
3447
3747
  usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginSubscriptionStoreValue, usePluginUserStore, usePluginUserStoreValue, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, useSubscriptionWebAppUrl, };
3448
- export type { Account, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, };
3748
+ export type { Account, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, EmbeddedPluginProps, };
3449
3749
  }
3450
3750
  declare module "libs/reach/ui/common/src/content-keyword-utils" {
3451
3751
  import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
@@ -3716,7 +4016,9 @@ declare module "libs/reach/ui/common/src/common/UiUtils" {
3716
4016
  }[]>;
3717
4017
  export function getFileIcon(filename: string): string;
3718
4018
  export function getIconColor(fileIcon: string): "#1C5FC0" | "#138147" | "#CA4B27" | "#1C5FBF" | "#CF1700" | "#000";
4019
+ export function getFileIconHorizontalTransform(fileIcon: string): -55 | -50;
3719
4020
  export function getFileIconByExtension(extension: string): "Page" | "Video" | "MusicInCollectionFill" | "VisioDocument" | "ZipFolder" | "PDF" | "WordDocument" | "ExcelDocument" | "PowerPointDocument" | "FileImage";
4021
+ export function getMainScrollableContainer(): HTMLElement;
3720
4022
  }
3721
4023
  declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
3722
4024
  export function useFileAccessTokenApi(): {
@@ -4026,7 +4328,7 @@ declare module "libs/reach/ui/common/src/common/ToggleWithLabel" {
4026
4328
  export const ToggleWithLabel: FC<IToggleProps>;
4027
4329
  }
4028
4330
  declare module "libs/reach/ui/common/src/common/UnreadCommentHighlight" {
4029
- export const unreadCommentHighlight: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
4331
+ export const unreadCommentHighlight: (top?: string) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
4030
4332
  }
4031
4333
  declare module "libs/reach/ui/common/src/common/UserUtility" {
4032
4334
  import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
@@ -4345,6 +4647,9 @@ declare module "libs/reach/ui/common/src/common/grid/Grid" {
4345
4647
  className?: string;
4346
4648
  }>;
4347
4649
  }
4650
+ declare module "libs/reach/ui/common/src/common/hooks/useIsMounted" {
4651
+ export const useIsMounted: () => () => boolean;
4652
+ }
4348
4653
  declare module "libs/reach/ui/common/src/common/hooks/usePagination" {
4349
4654
  import { PaginatedList } from "libs/reach/util/common/src/index";
4350
4655
  import { DependencyList, SetStateAction } from 'react';
@@ -4825,6 +5130,7 @@ declare module "libs/reach/ui/common/src/common/index" {
4825
5130
  export * from "libs/reach/ui/common/src/common/grid/Grid";
4826
5131
  export * from "libs/reach/ui/common/src/common/hooks/usePagination";
4827
5132
  export * from "libs/reach/ui/common/src/common/hooks/useUserPropertyDefinitionsHandler";
5133
+ export * from "libs/reach/ui/common/src/common/hooks/useIsMounted";
4828
5134
  export * from "libs/reach/ui/common/src/common/icon-with-callout/IconWithCallout";
4829
5135
  export * from "libs/reach/ui/common/src/common/inlineObjectsClassNames";
4830
5136
  export * from "libs/reach/ui/common/src/common/isNullOrWhitespaceUtil";
@@ -4908,7 +5214,7 @@ declare module "libs/reach/ui/common/src/index" {
4908
5214
  export * from "libs/reach/ui/common/src/ColorEditor";
4909
5215
  }
4910
5216
  declare module "apps/reach-app/src/app/chrome/CloseButton" {
4911
- import { FC } from 'react';
5217
+ import { FC, DependencyList } from 'react';
4912
5218
  export interface Props {
4913
5219
  navigateTo: string;
4914
5220
  onClose?: () => void;
@@ -4917,7 +5223,7 @@ declare module "apps/reach-app/src/app/chrome/CloseButton" {
4917
5223
  className?: string;
4918
5224
  }
4919
5225
  export const CloseButton: FC<Props>;
4920
- export function useEscapeOnClose(onClose: () => void): void;
5226
+ export function useEscapeOnClose(onClose: () => void, deps?: DependencyList): void;
4921
5227
  }
4922
5228
  declare module "apps/reach-app/src/app/common/LogoStyles" {
4923
5229
  export const LogoHostStyle: (size?: {
@@ -4981,8 +5287,9 @@ declare module "apps/reach-app/src/app/SkipLinksContext" {
4981
5287
  export const SkipLinksContextProvider: FC;
4982
5288
  }
4983
5289
  declare module "apps/reach-app/src/app/useAddSkipLinks" {
5290
+ import { DependencyList } from 'react';
4984
5291
  import { SkipLink } from "apps/reach-app/src/app/SkipLinksContext";
4985
- export function useAddSkipLinks(...skipLinks: SkipLink[]): void;
5292
+ export function useAddSkipLinks(skipLinks: SkipLink[], deps?: DependencyList): void;
4986
5293
  }
4987
5294
  declare module "apps/reach-app/src/app/chrome/MainContentPanel" {
4988
5295
  import { FC } from 'react';
@@ -5033,6 +5340,8 @@ declare module "apps/reach-app/src/app/chrome/BasicPage" {
5033
5340
  closeButtonOptions?: CloseButtonOptions;
5034
5341
  showSearchBox?: boolean;
5035
5342
  disableScrollableContainerFocus?: boolean;
5343
+ asModal?: boolean;
5344
+ domIdentifier?: string;
5036
5345
  }
5037
5346
  export const BasicPage: FC<Props>;
5038
5347
  }
@@ -6269,6 +6578,15 @@ declare module "apps/reach-app/src/app/admin/users/EditUserButton" {
6269
6578
  onSaved: (newProperties: UpdatableUserProperties) => void;
6270
6579
  }>;
6271
6580
  }
6581
+ declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyDialog" {
6582
+ import { FC } from 'react';
6583
+ import { UserItem } from "apps/reach-app/src/app/admin/users/UserList";
6584
+ export const GenerateApiKeyDialog: FC<{
6585
+ onApiKeyAdded?: () => void;
6586
+ onDismiss: () => void;
6587
+ user?: UserItem;
6588
+ }>;
6589
+ }
6272
6590
  declare module "apps/reach-app/src/app/admin/users/UserList" {
6273
6591
  import { Account, GroupRoles, GroupUser, SortDefinition, UpdatableUserProperties, UserSummary } from "libs/reach/util/common/src/index";
6274
6592
  import './UserList.scss';
@@ -6292,7 +6610,12 @@ declare module "apps/reach-app/src/app/admin/users/UserList" {
6292
6610
  isLoading?: boolean;
6293
6611
  isEmpty?: boolean;
6294
6612
  emptyPlaceholder?: ReactNode;
6613
+ onKeyChanged?: () => void;
6295
6614
  }
6615
+ export type UserItem = Account & UserSummary & GroupUser & {
6616
+ accountType: string;
6617
+ lastLogin: string | JSX.Element;
6618
+ };
6296
6619
  export const UserList: FC<Props>;
6297
6620
  }
6298
6621
  declare module "apps/reach-app/src/app/InfiniteScrollingStatus" {
@@ -6325,12 +6648,6 @@ declare module "apps/reach-app/src/app/admin/users/ExportUserButton" {
6325
6648
  className?: string;
6326
6649
  }>;
6327
6650
  }
6328
- declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyButton" {
6329
- import { FC } from 'react';
6330
- export const GenerateApiKeyButton: FC<{
6331
- onApiKeyAdded: () => void;
6332
- }>;
6333
- }
6334
6651
  declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
6335
6652
  import { FC } from 'react';
6336
6653
  import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
@@ -6350,18 +6667,42 @@ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersP
6350
6667
  }
6351
6668
  declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
6352
6669
  import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6670
+ export enum ValidationStatus {
6671
+ Valid = 0,
6672
+ WithErrors = 1,
6673
+ WithUserErrors = 2
6674
+ }
6675
+ export type CsvValidation = {
6676
+ Status?: ValidationStatus;
6677
+ Message?: string;
6678
+ InvalidItems?: string[];
6679
+ };
6353
6680
  export function useUserCsvInviter(): {
6354
6681
  invitedUsers: UserImport[];
6355
6682
  isValidating: boolean;
6356
6683
  isCsvValid: boolean;
6357
6684
  parseCsvFile: (csvFile: File) => void;
6358
- error: string;
6359
- setError: import("react").Dispatch<import("react").SetStateAction<string>>;
6685
+ csvValidation: CsvValidation;
6686
+ setCsvValidation: (status: ValidationStatus, message: string, invalidItems?: string[]) => void;
6360
6687
  inviteUsers: (onSuccess?: () => void) => Promise<void>;
6361
6688
  isParserReady: boolean;
6362
- isImporting: boolean;
6689
+ isInviting: boolean;
6690
+ canInvite: boolean;
6691
+ csvFile: File;
6363
6692
  };
6364
6693
  }
6694
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/csvUtils" {
6695
+ export function createCsvUrl(header: string, content: string): string;
6696
+ }
6697
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/CsvFileValidationResult" {
6698
+ import { FC } from 'react';
6699
+ import { CsvValidation } from "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter";
6700
+ import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6701
+ export const CsvFileValidationResult: FC<{
6702
+ csvValidation: CsvValidation;
6703
+ invitedUsers: UserImport[];
6704
+ }>;
6705
+ }
6365
6706
  declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
6366
6707
  import { FC } from 'react';
6367
6708
  export const ImportUserButton: FC<{
@@ -6399,29 +6740,28 @@ declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
6399
6740
  }
6400
6741
  declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6401
6742
  import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
6402
- export class EventResponseTriggerAction implements AppTriggerAction {
6743
+ export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
6403
6744
  static type: string;
6404
6745
  type: string;
6405
6746
  itemId: string;
6406
6747
  response: EventResponse;
6407
6748
  locationId: string;
6408
6749
  onBehalfOfUpn: string;
6409
- static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventResponseTriggerAction;
6750
+ static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
6410
6751
  }
6411
- export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
6752
+ export class EventResponseTriggerAction implements AppTriggerAction {
6412
6753
  static type: string;
6413
6754
  type: string;
6414
- recurrenceSeriesId: string;
6755
+ itemId: string;
6415
6756
  response: EventResponse;
6416
- static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
6757
+ static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
6417
6758
  }
6418
- export class LikeFullSeriesTriggerAction implements AppTriggerAction {
6759
+ export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
6419
6760
  static type: string;
6420
6761
  type: string;
6421
6762
  recurrenceSeriesId: string;
6422
- itemId: string;
6423
- isLiked: boolean;
6424
- static create(recurrenceSeriesId: string, itemId: string, isLiked: boolean): LikeFullSeriesTriggerAction;
6763
+ response: EventResponse;
6764
+ static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
6425
6765
  }
6426
6766
  export class FollowCommentsTriggerAction implements AppTriggerAction {
6427
6767
  static type: string;
@@ -6436,6 +6776,14 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6436
6776
  followByDefault: boolean;
6437
6777
  static create(followState: boolean): AutoFollowPostsTriggerAction;
6438
6778
  }
6779
+ export class AutoLikeItemTriggerAction implements AppTriggerAction {
6780
+ static type: string;
6781
+ type: string;
6782
+ recurrenceSeriesId: string;
6783
+ isLiked: boolean;
6784
+ likeCount: number;
6785
+ static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
6786
+ }
6439
6787
  export class DeletedItemsTriggerAction implements AppTriggerAction {
6440
6788
  static type: string;
6441
6789
  type: string;
@@ -6456,6 +6804,18 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6456
6804
  type: string;
6457
6805
  static create(): StreamMarkAllAsReadAction;
6458
6806
  }
6807
+ export class RefetchItemAction implements AppTriggerAction {
6808
+ static type: string;
6809
+ type: string;
6810
+ itemId: string;
6811
+ static create(itemId: string): RefetchItemAction;
6812
+ }
6813
+ export class RefetchStreamItemAction implements AppTriggerAction {
6814
+ static type: string;
6815
+ type: string;
6816
+ itemId: string;
6817
+ static create(itemId: string): RefetchStreamItemAction;
6818
+ }
6459
6819
  }
6460
6820
  declare module "libs/reach/feature/content/src/comments/CommentFilter" {
6461
6821
  export interface CommentFilter {
@@ -6615,7 +6975,7 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
6615
6975
  import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
6616
6976
  import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
6617
6977
  import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
6618
- export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition {
6978
+ export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
6619
6979
  }
6620
6980
  export interface BaseFilterDefinition {
6621
6981
  search?: string;
@@ -6623,6 +6983,9 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
6623
6983
  pageSize?: string | number;
6624
6984
  groupId?: string;
6625
6985
  }
6986
+ export interface ItemIdsFilterDefinition {
6987
+ itemIds?: string;
6988
+ }
6626
6989
  export interface IndexableFilterDefinition {
6627
6990
  [key: string]: any;
6628
6991
  }
@@ -7110,6 +7473,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
7110
7473
  declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
7111
7474
  import { FC, MouseEvent } from 'react';
7112
7475
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
7476
+ import { LocationState } from 'history';
7113
7477
  export const ClickableOverlay: FC<{
7114
7478
  itemId: string;
7115
7479
  itemType: ItemResourceTypes;
@@ -7120,6 +7484,19 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
7120
7484
  onClick?: (event: MouseEvent<unknown>) => unknown;
7121
7485
  openTargetInNewWindow?: boolean;
7122
7486
  isExternalContent?: boolean;
7487
+ locationState?: LocationState;
7488
+ }>;
7489
+ }
7490
+ declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
7491
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
7492
+ import { FC } from 'react';
7493
+ export const ClickableOverlayWithModalRouting: FC<{
7494
+ itemId: string;
7495
+ itemType: ItemResourceTypes;
7496
+ baseRoute: string;
7497
+ title?: string;
7498
+ isExternalContent?: boolean;
7499
+ targetUrl?: string;
7123
7500
  }>;
7124
7501
  }
7125
7502
  declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
@@ -7130,6 +7507,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
7130
7507
  targetUrl?: string;
7131
7508
  readOnly?: boolean;
7132
7509
  backgroundColor?: string;
7510
+ enableModalRouting?: boolean;
7133
7511
  className?: string;
7134
7512
  }>;
7135
7513
  }
@@ -7226,6 +7604,7 @@ declare module "libs/reach/feature/content/src/common/banner/PublishableItemBann
7226
7604
  height?: number;
7227
7605
  hidePlayerIfActive?: boolean;
7228
7606
  className?: string;
7607
+ documentIconName?: string;
7229
7608
  }
7230
7609
  export const PublishableItemBanner: FC<Props>;
7231
7610
  }
@@ -7464,10 +7843,12 @@ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegi
7464
7843
  }
7465
7844
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
7466
7845
  import { FC } from 'react';
7846
+ import { EventResponse } from "libs/reach/util/common/src/index";
7467
7847
  export const EventUserRegistration: FC<{
7468
7848
  disabled?: boolean;
7469
7849
  hideInfoMessage?: boolean;
7470
7850
  showNoRegistrationRequired?: boolean;
7851
+ onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7471
7852
  className?: string;
7472
7853
  }>;
7473
7854
  }
@@ -7537,8 +7918,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
7537
7918
  export const CardLikeButton: FC<{
7538
7919
  item: NewsItem | EventItem;
7539
7920
  itemResourceType: ItemResourceTypes;
7540
- isAutoLiked?: boolean;
7541
- onLiked?: (isLiked: boolean) => unknown;
7921
+ onToggleLike?: (isLiked: boolean, likeCount: number) => void;
7542
7922
  className?: string;
7543
7923
  }>;
7544
7924
  }
@@ -7560,6 +7940,18 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoN
7560
7940
  className?: string;
7561
7941
  }>;
7562
7942
  }
7943
+ declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
7944
+ import { FC } from 'react';
7945
+ export const LinkWithModalRouting: FC<{
7946
+ url: string;
7947
+ itemId: string;
7948
+ hash?: string;
7949
+ onClick?: (e: React.MouseEvent) => unknown;
7950
+ ariaHidden?: boolean;
7951
+ ariaLabel?: string;
7952
+ className?: string;
7953
+ }>;
7954
+ }
7563
7955
  declare module "libs/reach/feature/content/src/events/list/EventCard" {
7564
7956
  import { FC } from 'react';
7565
7957
  import { EventItem } from "libs/reach/util/common/src/index";
@@ -7578,6 +7970,7 @@ declare module "libs/reach/feature/content/src/events/list/EventCard" {
7578
7970
  allowFilterByChannels?: boolean;
7579
7971
  showFeedbackButtons?: boolean;
7580
7972
  readOnly?: boolean;
7973
+ enableModalRouting?: boolean;
7581
7974
  className?: string;
7582
7975
  }>;
7583
7976
  }
@@ -7628,7 +8021,8 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
7628
8021
  Contact = "contact",
7629
8022
  InlinePageList = "inline-page-list",
7630
8023
  UrlPreview = "url-preview",
7631
- ActionButton = "action-button"
8024
+ ActionButton = "action-button",
8025
+ InlinePlugin = "inline-plugin"
7632
8026
  }
7633
8027
  export interface HtmlComponentMapper {
7634
8028
  component: FC<any>;
@@ -7770,7 +8164,10 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
7770
8164
  resourceKey?: string;
7771
8165
  resourceValues?: string;
7772
8166
  className?: string;
8167
+ enableModalRouting?: boolean;
8168
+ itemId?: string;
7773
8169
  isOverrideLink: boolean;
8170
+ icon?: string;
7774
8171
  }>;
7775
8172
  }
7776
8173
  declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
@@ -7829,6 +8226,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
7829
8226
  onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7830
8227
  onKeywordClick?: (keyword: string) => unknown;
7831
8228
  openTargetInNewWindow?: boolean;
8229
+ enableModalRouting?: boolean;
7832
8230
  className?: string;
7833
8231
  }
7834
8232
  export const PageItemTile: FC<Props>;
@@ -7874,6 +8272,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
7874
8272
  onClick?: (event: MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7875
8273
  styleDefinition?: StyleDefinition;
7876
8274
  readOnly?: boolean;
8275
+ enableModalRouting?: boolean;
7877
8276
  className?: string;
7878
8277
  }
7879
8278
  export const PublishableItemTileWrapper: FC<Props>;
@@ -7917,6 +8316,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
7917
8316
  onKeywordClick?: (keyword: string) => unknown;
7918
8317
  styleDefinition?: StyleDefinition;
7919
8318
  readOnly?: boolean;
8319
+ enableModalRouting?: boolean;
7920
8320
  className?: string;
7921
8321
  }
7922
8322
  export const NewsItemTile: FC<Props>;
@@ -7942,6 +8342,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
7942
8342
  previewTheme?: CommentInputTheme;
7943
8343
  buttons?: ReactNode;
7944
8344
  groupIds?: string[];
8345
+ enableModalRouting?: boolean;
7945
8346
  className?: string;
7946
8347
  }>;
7947
8348
  export const EmbeddedObjectAccessDeniedTile: FC<{
@@ -7958,6 +8359,7 @@ declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
7958
8359
  attachments: Attachment[];
7959
8360
  onDeleteClick?: (attachment: Attachment) => void;
7960
8361
  previewTheme?: CommentInputTheme;
8362
+ enableModalRouting?: boolean;
7961
8363
  className?: string;
7962
8364
  }>;
7963
8365
  }
@@ -8118,6 +8520,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
8118
8520
  import { FC, ReactNode } from 'react';
8119
8521
  export const InlineObjectToolbar: FC<{
8120
8522
  onDelete?: () => void;
8523
+ deleteAriaLabelResourceKey?: string;
8121
8524
  additionalButtons?: ReactNode;
8122
8525
  }>;
8123
8526
  export const InlineObjectToolbarWrapper: FC<{
@@ -8125,15 +8528,18 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
8125
8528
  }>;
8126
8529
  }
8127
8530
  declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
8128
- import { FC } from 'react';
8531
+ import { FC, ReactNode } from 'react';
8532
+ import { ImageAlignment } from "libs/reach/util/common/src/index";
8129
8533
  export const ImageToolbar: FC<{
8130
8534
  onDelete?: () => void;
8131
8535
  onFullScreen?: (e: React.MouseEvent<any>) => void;
8132
8536
  onClose?: (e: React.MouseEvent<any>) => void;
8133
8537
  onCrop?: (e: React.MouseEvent<any>) => void;
8538
+ onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
8134
8539
  showFullScreenButton?: boolean;
8135
8540
  showCloseButton?: boolean;
8136
8541
  showCropButton?: boolean;
8542
+ alignmentButtons?: ReactNode;
8137
8543
  }>;
8138
8544
  }
8139
8545
  declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
@@ -8260,6 +8666,15 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
8260
8666
  export const EditCommentWithAttachments: FC<Props>;
8261
8667
  export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
8262
8668
  }
8669
+ declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
8670
+ import { FC } from 'react';
8671
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8672
+ export const BookmarkButton: FC<{
8673
+ item: PublishableItem;
8674
+ isReadOnly?: boolean;
8675
+ className?: string;
8676
+ }>;
8677
+ }
8263
8678
  declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
8264
8679
  import { FC } from 'react';
8265
8680
  export const CardStatisticItem: FC<{
@@ -8277,13 +8692,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
8277
8692
  };
8278
8693
  }>;
8279
8694
  }
8280
- declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
8695
+ declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
8696
+ import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8281
8697
  import { FC } from 'react';
8282
- import { PublishableItem } from "libs/reach/util/common/src/index";
8283
- export const BookmarkButton: FC<{
8284
- item: PublishableItem;
8285
- isReadOnly?: boolean;
8286
- className?: string;
8698
+ export const CardCommentButton: FC<{
8699
+ item: NewsItem | EventItem;
8700
+ itemResourceType: ItemResourceTypes;
8701
+ targetRoute: string;
8702
+ enableModalRouting?: boolean;
8287
8703
  }>;
8288
8704
  }
8289
8705
  declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
@@ -8291,11 +8707,9 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8291
8707
  import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8292
8708
  export const CardFooter: FC<{
8293
8709
  item: NewsItem | EventItem;
8294
- showComments: boolean;
8295
8710
  targetRoute: string;
8296
8711
  itemResourceType: ItemResourceTypes;
8297
- isAutoLiked?: boolean;
8298
- onLiked?: (isLiked: boolean) => unknown;
8712
+ enableModalRouting?: boolean;
8299
8713
  }>;
8300
8714
  export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
8301
8715
  }
@@ -8346,6 +8760,7 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
8346
8760
  target?: string;
8347
8761
  language?: string;
8348
8762
  hideCurrentPageNode?: boolean;
8763
+ onPageRedirect?: (id: string) => void;
8349
8764
  className?: string;
8350
8765
  }>;
8351
8766
  }
@@ -8406,6 +8821,7 @@ declare module "libs/reach/feature/content/src/pages/PageTocNode" {
8406
8821
  hide?: boolean;
8407
8822
  onPageSelected?: (pageId: string) => unknown;
8408
8823
  selectedPageId?: string;
8824
+ onPageRedirect?: (id: string) => void;
8409
8825
  }>;
8410
8826
  }
8411
8827
  declare module "libs/reach/feature/content/src/pages/PageTableOfContents" {
@@ -8422,6 +8838,7 @@ declare module "libs/reach/feature/content/src/pages/PageTableOfContents" {
8422
8838
  selectedPageId?: string;
8423
8839
  isLoading?: boolean;
8424
8840
  disableScrollableList?: boolean;
8841
+ onPageRedirect?: (id: string) => void;
8425
8842
  }>;
8426
8843
  export const PageTableOfContentsInPanel: FC<{
8427
8844
  basePath?: string;
@@ -8443,6 +8860,7 @@ declare module "libs/reach/feature/content/src/pages/PageTableOfContentsDialog"
8443
8860
  loadChildren: (id: string) => Promise<PageNavigationNode[]>;
8444
8861
  onSearch: (value: string) => Promise<PaginatedList<PageItem>>;
8445
8862
  onDismiss: () => void;
8863
+ onPageRedirect?: (id: string) => void;
8446
8864
  basePath: string;
8447
8865
  }>;
8448
8866
  }
@@ -8456,6 +8874,7 @@ declare module "libs/reach/feature/content/src/pages/PageTableOfContentsButton"
8456
8874
  loadChildren: (id: string) => Promise<PageNavigationNode[]>;
8457
8875
  onSearch: (value: string) => Promise<PaginatedList<PageItem>>;
8458
8876
  basePath: string;
8877
+ onPageRedirect?: (id: string) => void;
8459
8878
  className?: string;
8460
8879
  }>;
8461
8880
  }
@@ -8594,7 +9013,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
8594
9013
  item: NewsItem;
8595
9014
  baseRoute: string;
8596
9015
  language: string;
8597
- showComments: boolean;
8598
9016
  highlight: boolean;
8599
9017
  className?: string;
8600
9018
  }
@@ -8701,6 +9119,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
8701
9119
  }
8702
9120
  declare module "libs/reach/feature/content/src/common/body/InlineImage" {
8703
9121
  import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
9122
+ export const ImageAlignmentStyles: (alignment: string, width: number) => import("styled-components").FlattenSimpleInterpolation | "";
8704
9123
  export const InlineImageMapper: HtmlComponentMapper;
8705
9124
  }
8706
9125
  declare module "libs/reach/feature/content/src/common/body/InlineContact" {
@@ -8919,6 +9338,10 @@ declare module "libs/reach/feature/content/src/common/body/InlineActionButtonLis
8919
9338
  }
8920
9339
  export const InlineActionButtonMapper: HtmlComponentMapper;
8921
9340
  }
9341
+ declare module "libs/reach/feature/content/src/common/body/InlineObjectPluginView" {
9342
+ import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
9343
+ export const InlineObjectPluginMapper: HtmlComponentMapper;
9344
+ }
8922
9345
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewPeopleInfo" {
8923
9346
  import { FC } from 'react';
8924
9347
  export const EventDetailViewPeopleInfo: FC;
@@ -9138,6 +9561,7 @@ declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
9138
9561
  readOnly?: boolean;
9139
9562
  trimContent?: boolean;
9140
9563
  showReplyBox?: boolean;
9564
+ enableModalRouting?: boolean;
9141
9565
  className?: string;
9142
9566
  }>;
9143
9567
  }
@@ -9160,6 +9584,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
9160
9584
  onReply?: (comment: Comment, commentSender?: Account) => void;
9161
9585
  readOnly?: boolean;
9162
9586
  trimContent?: boolean;
9587
+ enableModalRouting?: boolean;
9163
9588
  className?: string;
9164
9589
  }
9165
9590
  export const CommentList: FC<CommentListProps>;
@@ -9219,6 +9644,7 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
9219
9644
  showReplyBox?: boolean;
9220
9645
  trimContent?: boolean;
9221
9646
  title?: ReactNode;
9647
+ enableModalRouting?: boolean;
9222
9648
  className?: string;
9223
9649
  };
9224
9650
  export const PagedCommentsSection: FC<Props>;
@@ -9487,6 +9913,7 @@ declare module "libs/reach/feature/content/src/common/banner/Banner" {
9487
9913
  layoutMode?: ItemTileLayoutMode;
9488
9914
  bannerDefaultWidth?: number;
9489
9915
  showPlaceholderIfNoBannerInfo?: boolean;
9916
+ documentIconName?: string;
9490
9917
  }>;
9491
9918
  }
9492
9919
  declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
@@ -9648,6 +10075,13 @@ declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi"
9648
10075
  getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
9649
10076
  };
9650
10077
  }
10078
+ declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
10079
+ interface IClickHandles {
10080
+ onInsideClick: () => void;
10081
+ onOutsideClick: () => void;
10082
+ }
10083
+ export function useClickOutside<T extends HTMLElement>({ onInsideClick, onOutsideClick, }: IClickHandles): import("react").MutableRefObject<T>;
10084
+ }
9651
10085
  declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
9652
10086
  import { LocationDescriptor } from 'history';
9653
10087
  import { FC, ReactNode } from 'react';
@@ -9751,7 +10185,7 @@ declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton"
9751
10185
  import { FC } from 'react';
9752
10186
  export const ContentWithShowMoreButton: FC<{
9753
10187
  domIdentifier: string;
9754
- trimContent: boolean;
10188
+ trimContent?: boolean;
9755
10189
  className?: string;
9756
10190
  }>;
9757
10191
  }
@@ -9816,6 +10250,7 @@ declare module "libs/reach/feature/content/src/common/index" {
9816
10250
  export * from "libs/reach/feature/content/src/common/body/ItemBodyWrapper";
9817
10251
  export * from "libs/reach/feature/content/src/common/body/InlineFileList";
9818
10252
  export * from "libs/reach/feature/content/src/common/body/InlineActionButtonList";
10253
+ export * from "libs/reach/feature/content/src/common/body/InlineObjectPluginView";
9819
10254
  export * from "libs/reach/feature/content/src/common/body/inline-action-button/InlineActionButtonStyles";
9820
10255
  export * from "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo";
9821
10256
  export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton";
@@ -9869,6 +10304,7 @@ declare module "libs/reach/feature/content/src/common/index" {
9869
10304
  export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
9870
10305
  export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
9871
10306
  export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
10307
+ export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
9872
10308
  export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
9873
10309
  export * from "libs/reach/feature/content/src/common/sidebar/BaseSidebarItem";
9874
10310
  export * from "libs/reach/feature/content/src/common/sidebar/SidebarGroup";
@@ -9898,13 +10334,13 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
9898
10334
  mentionSearchHandler: (searchText: string) => Promise<Account[]>;
9899
10335
  getHashtagFilterRoute?: (hashtag: string) => string;
9900
10336
  highlight?: boolean;
9901
- isInitialLiked?: boolean;
9902
10337
  hasUnreadReplies?: boolean;
9903
10338
  onReplyIconClick?: () => void;
9904
10339
  onReply?: (comment: Comment, commentSender?: Account) => void;
9905
10340
  replyCount?: number;
9906
10341
  readOnly?: boolean;
9907
10342
  trimContent?: boolean;
10343
+ enableModalRouting?: boolean;
9908
10344
  className?: string;
9909
10345
  }
9910
10346
  export const CommentDisplay: FC<Props>;
@@ -10132,6 +10568,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
10132
10568
  onReplyAdded: () => void;
10133
10569
  onReplyDeleted: () => void;
10134
10570
  trimContent?: boolean;
10571
+ enableModalRouting?: boolean;
10135
10572
  }
10136
10573
  export const PostReplies: FC<Props>;
10137
10574
  }
@@ -10199,6 +10636,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10199
10636
  baseTargetUrl?: string;
10200
10637
  }
10201
10638
  export const PostDisplay: FC<Props>;
10639
+ export const PostDisplayWithModalRouting: FC<Props>;
10202
10640
  }
10203
10641
  declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
10204
10642
  import { FC } from 'react';
@@ -11057,6 +11495,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11057
11495
  poll?: import("@livetiles/reach/util/common").Poll;
11058
11496
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
11059
11497
  })[];
11498
+ export function updateStreamItemStatistics(items: StreamItem[], updatedItem: StreamItem): StreamItem[];
11060
11499
  }
11061
11500
  declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
11062
11501
  import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11081,6 +11520,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
11081
11520
  };
11082
11521
  refresh: () => Promise<void>;
11083
11522
  isLoadingFirstPage: boolean;
11523
+ refetchItem: (itemId: string) => Promise<void>;
11084
11524
  };
11085
11525
  export function hasFilter(filter?: StreamFilterDefinition): boolean;
11086
11526
  export const getStreamQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
@@ -11223,6 +11663,19 @@ declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
11223
11663
  deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11224
11664
  };
11225
11665
  }
11666
+ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
11667
+ import { EventCancelReasons, EventCancelInformation, EventItem } from "libs/reach/util/common/src/index";
11668
+ import { PublishableItem } from "libs/reach/util/common/src/index";
11669
+ export function useEventsEditorApi(): {
11670
+ getEvent: (eventId: string) => Promise<EventItem>;
11671
+ cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
11672
+ uncancelEvent: (id: string) => Promise<unknown>;
11673
+ unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
11674
+ deleteEventPermanently: (eventId: string) => any;
11675
+ saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
11676
+ deleteModifiedRecurrence: (eventId: string) => any;
11677
+ };
11678
+ }
11226
11679
  declare module "libs/reach/feature/content/src/editor/index" {
11227
11680
  export * from "libs/reach/feature/content/src/editor/EditorListItem";
11228
11681
  export * from "libs/reach/feature/content/src/editor/NewsEditorItem";
@@ -11232,6 +11685,7 @@ declare module "libs/reach/feature/content/src/editor/index" {
11232
11685
  export * from "libs/reach/feature/content/src/editor/useEditorApi";
11233
11686
  export * from "libs/reach/feature/content/src/editor/useNewsEditorApi";
11234
11687
  export * from "libs/reach/feature/content/src/editor/useShareTokenEditorApi";
11688
+ export * from "libs/reach/feature/content/src/editor/useEventsEditorApi";
11235
11689
  }
11236
11690
  declare module "libs/reach/feature/content/src/public-user/index" {
11237
11691
  export * from "libs/reach/feature/content/src/public-user/PublicUserFullAccessButton";
@@ -11787,7 +12241,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
11787
12241
  import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
11788
12242
  import { SearchBoxProps } from "libs/reach/ui/common/src/index";
11789
12243
  import { MainContentPanelProps } from "apps/reach-app/src/app/chrome/MainContentPanel";
11790
- export interface Props extends SearchBoxProps {
12244
+ export interface PageProps extends SearchBoxProps {
11791
12245
  className?: string;
11792
12246
  headerContents?: JSX.Element;
11793
12247
  headerToolbar?: HeaderToolbarTypeHack;
@@ -11805,12 +12259,14 @@ declare module "apps/reach-app/src/app/chrome/Page" {
11805
12259
  submenuContents?: JSX.Element;
11806
12260
  submenuClassName?: string;
11807
12261
  disableScrollableContainerFocus?: boolean;
12262
+ asModal?: boolean;
12263
+ domIdentifier?: string;
11808
12264
  }
11809
12265
  export enum MenuNavigationMode {
11810
12266
  Collapse = 0,
11811
12267
  KeepOpen = 1
11812
12268
  }
11813
- export const Page: FC<Props>;
12269
+ export const Page: FC<PageProps>;
11814
12270
  }
11815
12271
  declare module "apps/reach-app/src/plugins/reach-chrome" {
11816
12272
  import { Page } from "apps/reach-app/src/app/chrome/Page";
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.10",
7
+ "version": "0.5.0-preview.104",
8
8
  "dependencies": {}
9
9
  }