@livetiles/reach-plugin-types 0.5.0-preview.4 → 0.5.0-preview.42

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 +381 -34
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1026,6 +1026,233 @@ declare module "libs/reach/util/common/src/resources/ResourceContextProvider" {
1026
1026
  language?: string;
1027
1027
  }>;
1028
1028
  }
1029
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async" {
1030
+ import locale from 'date-fns/locale/ar-DZ';
1031
+ export default locale;
1032
+ }
1033
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-ma.async" {
1034
+ import locale from 'date-fns/locale/ar-MA';
1035
+ export default locale;
1036
+ }
1037
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-sa.async" {
1038
+ import locale from 'date-fns/locale/ar-SA';
1039
+ export default locale;
1040
+ }
1041
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/bg.async" {
1042
+ import locale from 'date-fns/locale/bg';
1043
+ export default locale;
1044
+ }
1045
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/bn.async" {
1046
+ import locale from 'date-fns/locale/bn';
1047
+ export default locale;
1048
+ }
1049
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ca.async" {
1050
+ import locale from 'date-fns/locale/ca';
1051
+ export default locale;
1052
+ }
1053
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/cs.async" {
1054
+ import locale from 'date-fns/locale/cs';
1055
+ export default locale;
1056
+ }
1057
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/da.async" {
1058
+ import locale from 'date-fns/locale/da';
1059
+ export default locale;
1060
+ }
1061
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/de.async" {
1062
+ import locale from 'date-fns/locale/de';
1063
+ export default locale;
1064
+ }
1065
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/el.async" {
1066
+ import locale from 'date-fns/locale/el';
1067
+ export default locale;
1068
+ }
1069
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-au.async" {
1070
+ import locale from 'date-fns/locale/en-AU';
1071
+ export default locale;
1072
+ }
1073
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-ca.async" {
1074
+ import locale from 'date-fns/locale/en-CA';
1075
+ export default locale;
1076
+ }
1077
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-gb.async" {
1078
+ import locale from 'date-fns/locale/en-GB';
1079
+ export default locale;
1080
+ }
1081
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-nz.async" {
1082
+ import locale from 'date-fns/locale/en-NZ';
1083
+ export default locale;
1084
+ }
1085
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/es.async" {
1086
+ import locale from 'date-fns/locale/es';
1087
+ export default locale;
1088
+ }
1089
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/et.async" {
1090
+ import locale from 'date-fns/locale/et';
1091
+ export default locale;
1092
+ }
1093
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fa-ir.async" {
1094
+ import locale from 'date-fns/locale/fa-IR';
1095
+ export default locale;
1096
+ }
1097
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fi.async" {
1098
+ import locale from 'date-fns/locale/fi';
1099
+ export default locale;
1100
+ }
1101
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr-ca.async" {
1102
+ import locale from 'date-fns/locale/fr-CA';
1103
+ export default locale;
1104
+ }
1105
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr-ch.async" {
1106
+ import locale from 'date-fns/locale/fr-CH';
1107
+ export default locale;
1108
+ }
1109
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr.async" {
1110
+ import locale from 'date-fns/locale/fr';
1111
+ export default locale;
1112
+ }
1113
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/gu.async" {
1114
+ import locale from 'date-fns/locale/gu';
1115
+ export default locale;
1116
+ }
1117
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/he.async" {
1118
+ import locale from 'date-fns/locale/he';
1119
+ export default locale;
1120
+ }
1121
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hi.async" {
1122
+ import locale from 'date-fns/locale/hi';
1123
+ export default locale;
1124
+ }
1125
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hr.async" {
1126
+ import locale from 'date-fns/locale/hr';
1127
+ export default locale;
1128
+ }
1129
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hu.async" {
1130
+ import locale from 'date-fns/locale/hu';
1131
+ export default locale;
1132
+ }
1133
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/id.async" {
1134
+ import locale from 'date-fns/locale/id';
1135
+ export default locale;
1136
+ }
1137
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/it.async" {
1138
+ import locale from 'date-fns/locale/it';
1139
+ export default locale;
1140
+ }
1141
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ja.async" {
1142
+ import locale from 'date-fns/locale/ja';
1143
+ export default locale;
1144
+ }
1145
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/kn.async" {
1146
+ import locale from 'date-fns/locale/kn';
1147
+ export default locale;
1148
+ }
1149
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ko.async" {
1150
+ import locale from 'date-fns/locale/ko';
1151
+ export default locale;
1152
+ }
1153
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/lt.async" {
1154
+ import locale from 'date-fns/locale/lt';
1155
+ export default locale;
1156
+ }
1157
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/lv.async" {
1158
+ import locale from 'date-fns/locale/lv';
1159
+ export default locale;
1160
+ }
1161
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ms.async" {
1162
+ import locale from 'date-fns/locale/ms';
1163
+ export default locale;
1164
+ }
1165
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nb.async" {
1166
+ import locale from 'date-fns/locale/nb';
1167
+ export default locale;
1168
+ }
1169
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nl-be.async" {
1170
+ import locale from 'date-fns/locale/nl-BE';
1171
+ export default locale;
1172
+ }
1173
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nl.async" {
1174
+ import locale from 'date-fns/locale/nl';
1175
+ export default locale;
1176
+ }
1177
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pl.async" {
1178
+ import locale from 'date-fns/locale/pl';
1179
+ export default locale;
1180
+ }
1181
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pt-br.async" {
1182
+ import locale from 'date-fns/locale/pt-BR';
1183
+ export default locale;
1184
+ }
1185
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pt.async" {
1186
+ import locale from 'date-fns/locale/pt';
1187
+ export default locale;
1188
+ }
1189
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ro.async" {
1190
+ import locale from 'date-fns/locale/ro';
1191
+ export default locale;
1192
+ }
1193
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ru.async" {
1194
+ import locale from 'date-fns/locale/ru';
1195
+ export default locale;
1196
+ }
1197
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sk.async" {
1198
+ import locale from 'date-fns/locale/sk';
1199
+ export default locale;
1200
+ }
1201
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sl.async" {
1202
+ import locale from 'date-fns/locale/sl';
1203
+ export default locale;
1204
+ }
1205
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sr-latn.async" {
1206
+ import locale from 'date-fns/locale/sr-Latn';
1207
+ export default locale;
1208
+ }
1209
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sr.async" {
1210
+ import locale from 'date-fns/locale/sr';
1211
+ export default locale;
1212
+ }
1213
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sv.async" {
1214
+ import locale from 'date-fns/locale/sv';
1215
+ export default locale;
1216
+ }
1217
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ta.async" {
1218
+ import locale from 'date-fns/locale/ta';
1219
+ export default locale;
1220
+ }
1221
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/te.async" {
1222
+ import locale from 'date-fns/locale/te';
1223
+ export default locale;
1224
+ }
1225
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/th.async" {
1226
+ import locale from 'date-fns/locale/th';
1227
+ export default locale;
1228
+ }
1229
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/tr.async" {
1230
+ import locale from 'date-fns/locale/tr';
1231
+ export default locale;
1232
+ }
1233
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/uk.async" {
1234
+ import locale from 'date-fns/locale/uk';
1235
+ export default locale;
1236
+ }
1237
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/vi.async" {
1238
+ import locale from 'date-fns/locale/vi';
1239
+ export default locale;
1240
+ }
1241
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/zh-cn.async" {
1242
+ import locale from 'date-fns/locale/zh-CN';
1243
+ export default locale;
1244
+ }
1245
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/zh-tw.async" {
1246
+ import locale from 'date-fns/locale/zh-TW';
1247
+ export default locale;
1248
+ }
1249
+ declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-us.async" {
1250
+ import locale from 'date-fns/locale/en-US';
1251
+ export default locale;
1252
+ }
1253
+ declare module "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter" {
1254
+ export function importDateFnsLocaleAsync(locale: string): Promise<typeof import("libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async")>;
1255
+ }
1029
1256
  declare module "libs/reach/util/common/src/user/features/FeatureSet" {
1030
1257
  export const orderedFeatureSet: string[];
1031
1258
  export class FeatureSet {
@@ -1443,6 +1670,7 @@ declare module "libs/reach/util/common/src/user/User" {
1443
1670
  subscriptionId: string;
1444
1671
  tenantId: string;
1445
1672
  expires?: string;
1673
+ hasPrivateEmail?: boolean;
1446
1674
  }
1447
1675
  export interface HashUser {
1448
1676
  id: string;
@@ -3098,7 +3326,7 @@ declare module "libs/reach/util/common/src/Variables" {
3098
3326
  export const videoAttachmentRoundedCornerSize = 20;
3099
3327
  export const inlinePageBannerRoundedCornerSize = 5;
3100
3328
  export const feedbackButtonHeight = 32;
3101
- export const mainScrollableContainerSelector = "lt-reach-main-content";
3329
+ export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
3102
3330
  export const statusColors: {
3103
3331
  draft: string;
3104
3332
  ready: string;
@@ -3264,6 +3492,35 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
3264
3492
  static create(): GenericAccessDeniedTriggerAction;
3265
3493
  }
3266
3494
  }
3495
+ declare module "libs/reach/util/common/src/useModalRouting" {
3496
+ export interface ModalRouting {
3497
+ isActive: boolean;
3498
+ itemId: string;
3499
+ backgroundLocation: any;
3500
+ }
3501
+ export function useModalRouting(): {
3502
+ isModalRoutingActive: boolean;
3503
+ modalItemId: string;
3504
+ backgroundLocation: any;
3505
+ };
3506
+ export function useModalRoutingSettings(): (itemId: string) => {
3507
+ modalRouting: {
3508
+ isActive: boolean;
3509
+ itemId: string;
3510
+ backgroundLocation: {
3511
+ state: {
3512
+ modalRouting: {
3513
+ isActive: boolean;
3514
+ };
3515
+ };
3516
+ pathname: string;
3517
+ search: string;
3518
+ hash: string;
3519
+ key?: string;
3520
+ };
3521
+ };
3522
+ };
3523
+ }
3267
3524
  declare module "libs/reach/util/common/src/index" {
3268
3525
  export { initializeIcons } from 'office-ui-fabric-react';
3269
3526
  export * from "libs/reach/util/common/src/FocusStyles";
@@ -3273,6 +3530,7 @@ declare module "libs/reach/util/common/src/index" {
3273
3530
  export * from "libs/reach/util/common/src/SortDirection";
3274
3531
  export * from "libs/reach/util/common/src/useCacheLanguageApi";
3275
3532
  export * from "libs/reach/util/common/src/resources/ResourceContextProvider";
3533
+ export * from "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter";
3276
3534
  export * from "libs/reach/util/common/src/user/index";
3277
3535
  export * from "libs/reach/util/common/src/plugins/index";
3278
3536
  export * from "libs/reach/util/common/src/theme/index";
@@ -3291,6 +3549,7 @@ declare module "libs/reach/util/common/src/index" {
3291
3549
  export * from "libs/reach/util/common/src/useBaseRoute";
3292
3550
  export * from "libs/reach/util/common/src/ForbiddenErrorTriggerAction";
3293
3551
  export * from "libs/reach/util/common/src/AccessDeniedIntercept";
3552
+ export * from "libs/reach/util/common/src/useModalRouting";
3294
3553
  }
3295
3554
  declare module "libs/reach/ui/common/src/Link" {
3296
3555
  import { Link as RouterLink } from 'react-router-dom';
@@ -3716,6 +3975,7 @@ declare module "libs/reach/ui/common/src/common/UiUtils" {
3716
3975
  export function getFileIcon(filename: string): string;
3717
3976
  export function getIconColor(fileIcon: string): "#1C5FC0" | "#138147" | "#CA4B27" | "#1C5FBF" | "#CF1700" | "#000";
3718
3977
  export function getFileIconByExtension(extension: string): "Page" | "Video" | "MusicInCollectionFill" | "VisioDocument" | "ZipFolder" | "PDF" | "WordDocument" | "ExcelDocument" | "PowerPointDocument" | "FileImage";
3978
+ export function getMainScrollableContainer(): HTMLElement;
3719
3979
  }
3720
3980
  declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
3721
3981
  export function useFileAccessTokenApi(): {
@@ -4025,7 +4285,7 @@ declare module "libs/reach/ui/common/src/common/ToggleWithLabel" {
4025
4285
  export const ToggleWithLabel: FC<IToggleProps>;
4026
4286
  }
4027
4287
  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>>;
4288
+ export const unreadCommentHighlight: (top?: string) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
4029
4289
  }
4030
4290
  declare module "libs/reach/ui/common/src/common/UserUtility" {
4031
4291
  import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
@@ -4980,8 +5240,9 @@ declare module "apps/reach-app/src/app/SkipLinksContext" {
4980
5240
  export const SkipLinksContextProvider: FC;
4981
5241
  }
4982
5242
  declare module "apps/reach-app/src/app/useAddSkipLinks" {
5243
+ import { DependencyList } from 'react';
4983
5244
  import { SkipLink } from "apps/reach-app/src/app/SkipLinksContext";
4984
- export function useAddSkipLinks(...skipLinks: SkipLink[]): void;
5245
+ export function useAddSkipLinks(skipLinks: SkipLink[], deps?: DependencyList): void;
4985
5246
  }
4986
5247
  declare module "apps/reach-app/src/app/chrome/MainContentPanel" {
4987
5248
  import { FC } from 'react';
@@ -5032,6 +5293,8 @@ declare module "apps/reach-app/src/app/chrome/BasicPage" {
5032
5293
  closeButtonOptions?: CloseButtonOptions;
5033
5294
  showSearchBox?: boolean;
5034
5295
  disableScrollableContainerFocus?: boolean;
5296
+ asModal?: boolean;
5297
+ domIdentifier?: string;
5035
5298
  }
5036
5299
  export const BasicPage: FC<Props>;
5037
5300
  }
@@ -6330,7 +6593,7 @@ declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyButton" {
6330
6593
  onApiKeyAdded: () => void;
6331
6594
  }>;
6332
6595
  }
6333
- declare module "apps/reach-app/src/app/admin/users/ImportUsersPreview" {
6596
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
6334
6597
  import { FC } from 'react';
6335
6598
  import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
6336
6599
  export enum GenericErrorType {
@@ -6339,6 +6602,7 @@ declare module "apps/reach-app/src/app/admin/users/ImportUsersPreview" {
6339
6602
  export interface UserImport {
6340
6603
  displayName?: string;
6341
6604
  email?: string;
6605
+ hasPrivateEmail?: boolean;
6342
6606
  importResult?: SubscriptionJoinResultType | GenericErrorType;
6343
6607
  errorMessage?: string;
6344
6608
  }
@@ -6346,8 +6610,8 @@ declare module "apps/reach-app/src/app/admin/users/ImportUsersPreview" {
6346
6610
  previewUsers: UserImport[];
6347
6611
  }>;
6348
6612
  }
6349
- declare module "apps/reach-app/src/app/admin/users/useUserCsvInviter" {
6350
- import { UserImport } from "apps/reach-app/src/app/admin/users/ImportUsersPreview";
6613
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
6614
+ import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6351
6615
  export function useUserCsvInviter(): {
6352
6616
  invitedUsers: UserImport[];
6353
6617
  isValidating: boolean;
@@ -6357,10 +6621,11 @@ declare module "apps/reach-app/src/app/admin/users/useUserCsvInviter" {
6357
6621
  setError: import("react").Dispatch<import("react").SetStateAction<string>>;
6358
6622
  inviteUsers: (onSuccess?: () => void) => Promise<void>;
6359
6623
  isParserReady: boolean;
6360
- isImporting: boolean;
6624
+ isInviting: boolean;
6625
+ canInvite: boolean;
6361
6626
  };
6362
6627
  }
6363
- declare module "apps/reach-app/src/app/admin/users/ImportUserButton" {
6628
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
6364
6629
  import { FC } from 'react';
6365
6630
  export const ImportUserButton: FC<{
6366
6631
  onSuccessfulImport?: () => void;
@@ -6397,29 +6662,28 @@ declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
6397
6662
  }
6398
6663
  declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6399
6664
  import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
6400
- export class EventResponseTriggerAction implements AppTriggerAction {
6665
+ export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
6401
6666
  static type: string;
6402
6667
  type: string;
6403
6668
  itemId: string;
6404
6669
  response: EventResponse;
6405
6670
  locationId: string;
6406
6671
  onBehalfOfUpn: string;
6407
- static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventResponseTriggerAction;
6672
+ static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
6408
6673
  }
6409
- export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
6674
+ export class EventResponseTriggerAction implements AppTriggerAction {
6410
6675
  static type: string;
6411
6676
  type: string;
6412
- recurrenceSeriesId: string;
6677
+ itemId: string;
6413
6678
  response: EventResponse;
6414
- static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
6679
+ static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
6415
6680
  }
6416
- export class LikeFullSeriesTriggerAction implements AppTriggerAction {
6681
+ export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
6417
6682
  static type: string;
6418
6683
  type: string;
6419
6684
  recurrenceSeriesId: string;
6420
- itemId: string;
6421
- isLiked: boolean;
6422
- static create(recurrenceSeriesId: string, itemId: string, isLiked: boolean): LikeFullSeriesTriggerAction;
6685
+ response: EventResponse;
6686
+ static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
6423
6687
  }
6424
6688
  export class FollowCommentsTriggerAction implements AppTriggerAction {
6425
6689
  static type: string;
@@ -6434,6 +6698,14 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6434
6698
  followByDefault: boolean;
6435
6699
  static create(followState: boolean): AutoFollowPostsTriggerAction;
6436
6700
  }
6701
+ export class AutoLikeItemTriggerAction implements AppTriggerAction {
6702
+ static type: string;
6703
+ type: string;
6704
+ recurrenceSeriesId: string;
6705
+ isLiked: boolean;
6706
+ likeCount: number;
6707
+ static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
6708
+ }
6437
6709
  export class DeletedItemsTriggerAction implements AppTriggerAction {
6438
6710
  static type: string;
6439
6711
  type: string;
@@ -6454,6 +6726,18 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
6454
6726
  type: string;
6455
6727
  static create(): StreamMarkAllAsReadAction;
6456
6728
  }
6729
+ export class RefetchItemAction implements AppTriggerAction {
6730
+ static type: string;
6731
+ type: string;
6732
+ itemId: string;
6733
+ static create(itemId: string): RefetchItemAction;
6734
+ }
6735
+ export class RefetchStreamItemAction implements AppTriggerAction {
6736
+ static type: string;
6737
+ type: string;
6738
+ itemId: string;
6739
+ static create(itemId: string): RefetchStreamItemAction;
6740
+ }
6457
6741
  }
6458
6742
  declare module "libs/reach/feature/content/src/comments/CommentFilter" {
6459
6743
  export interface CommentFilter {
@@ -6613,7 +6897,7 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
6613
6897
  import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
6614
6898
  import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
6615
6899
  import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
6616
- export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition {
6900
+ export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
6617
6901
  }
6618
6902
  export interface BaseFilterDefinition {
6619
6903
  search?: string;
@@ -6621,6 +6905,9 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
6621
6905
  pageSize?: string | number;
6622
6906
  groupId?: string;
6623
6907
  }
6908
+ export interface ItemIdsFilterDefinition {
6909
+ itemIds?: string;
6910
+ }
6624
6911
  export interface IndexableFilterDefinition {
6625
6912
  [key: string]: any;
6626
6913
  }
@@ -7108,6 +7395,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
7108
7395
  declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
7109
7396
  import { FC, MouseEvent } from 'react';
7110
7397
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
7398
+ import { LocationState } from 'history';
7111
7399
  export const ClickableOverlay: FC<{
7112
7400
  itemId: string;
7113
7401
  itemType: ItemResourceTypes;
@@ -7118,6 +7406,19 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
7118
7406
  onClick?: (event: MouseEvent<unknown>) => unknown;
7119
7407
  openTargetInNewWindow?: boolean;
7120
7408
  isExternalContent?: boolean;
7409
+ locationState?: LocationState;
7410
+ }>;
7411
+ }
7412
+ declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
7413
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
7414
+ import { FC } from 'react';
7415
+ export const ClickableOverlayWithModalRouting: FC<{
7416
+ itemId: string;
7417
+ itemType: ItemResourceTypes;
7418
+ baseRoute: string;
7419
+ title?: string;
7420
+ isExternalContent?: boolean;
7421
+ targetUrl?: string;
7121
7422
  }>;
7122
7423
  }
7123
7424
  declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
@@ -7128,6 +7429,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
7128
7429
  targetUrl?: string;
7129
7430
  readOnly?: boolean;
7130
7431
  backgroundColor?: string;
7432
+ enableModalRouting?: boolean;
7131
7433
  className?: string;
7132
7434
  }>;
7133
7435
  }
@@ -7462,10 +7764,12 @@ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegi
7462
7764
  }
7463
7765
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
7464
7766
  import { FC } from 'react';
7767
+ import { EventResponse } from "libs/reach/util/common/src/index";
7465
7768
  export const EventUserRegistration: FC<{
7466
7769
  disabled?: boolean;
7467
7770
  hideInfoMessage?: boolean;
7468
7771
  showNoRegistrationRequired?: boolean;
7772
+ onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7469
7773
  className?: string;
7470
7774
  }>;
7471
7775
  }
@@ -7535,8 +7839,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
7535
7839
  export const CardLikeButton: FC<{
7536
7840
  item: NewsItem | EventItem;
7537
7841
  itemResourceType: ItemResourceTypes;
7538
- isAutoLiked?: boolean;
7539
- onLiked?: (isLiked: boolean) => unknown;
7842
+ onToggleLike?: (isLiked: boolean, likeCount: number) => void;
7540
7843
  className?: string;
7541
7844
  }>;
7542
7845
  }
@@ -7558,6 +7861,18 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoN
7558
7861
  className?: string;
7559
7862
  }>;
7560
7863
  }
7864
+ declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
7865
+ import { FC } from 'react';
7866
+ export const LinkWithModalRouting: FC<{
7867
+ url: string;
7868
+ itemId: string;
7869
+ hash?: string;
7870
+ onClick?: (e: React.MouseEvent) => unknown;
7871
+ ariaHidden?: boolean;
7872
+ ariaLabel?: string;
7873
+ className?: string;
7874
+ }>;
7875
+ }
7561
7876
  declare module "libs/reach/feature/content/src/events/list/EventCard" {
7562
7877
  import { FC } from 'react';
7563
7878
  import { EventItem } from "libs/reach/util/common/src/index";
@@ -7768,6 +8083,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
7768
8083
  resourceKey?: string;
7769
8084
  resourceValues?: string;
7770
8085
  className?: string;
8086
+ enableModalRouting?: boolean;
8087
+ itemId?: string;
7771
8088
  isOverrideLink: boolean;
7772
8089
  }>;
7773
8090
  }
@@ -7827,6 +8144,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
7827
8144
  onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7828
8145
  onKeywordClick?: (keyword: string) => unknown;
7829
8146
  openTargetInNewWindow?: boolean;
8147
+ enableModalRouting?: boolean;
7830
8148
  className?: string;
7831
8149
  }
7832
8150
  export const PageItemTile: FC<Props>;
@@ -7872,6 +8190,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
7872
8190
  onClick?: (event: MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7873
8191
  styleDefinition?: StyleDefinition;
7874
8192
  readOnly?: boolean;
8193
+ enableModalRouting?: boolean;
7875
8194
  className?: string;
7876
8195
  }
7877
8196
  export const PublishableItemTileWrapper: FC<Props>;
@@ -7915,6 +8234,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
7915
8234
  onKeywordClick?: (keyword: string) => unknown;
7916
8235
  styleDefinition?: StyleDefinition;
7917
8236
  readOnly?: boolean;
8237
+ enableModalRouting?: boolean;
7918
8238
  className?: string;
7919
8239
  }
7920
8240
  export const NewsItemTile: FC<Props>;
@@ -7940,6 +8260,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
7940
8260
  previewTheme?: CommentInputTheme;
7941
8261
  buttons?: ReactNode;
7942
8262
  groupIds?: string[];
8263
+ enableModalRouting?: boolean;
7943
8264
  className?: string;
7944
8265
  }>;
7945
8266
  export const EmbeddedObjectAccessDeniedTile: FC<{
@@ -7956,6 +8277,7 @@ declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
7956
8277
  attachments: Attachment[];
7957
8278
  onDeleteClick?: (attachment: Attachment) => void;
7958
8279
  previewTheme?: CommentInputTheme;
8280
+ enableModalRouting?: boolean;
7959
8281
  className?: string;
7960
8282
  }>;
7961
8283
  }
@@ -8258,6 +8580,15 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
8258
8580
  export const EditCommentWithAttachments: FC<Props>;
8259
8581
  export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
8260
8582
  }
8583
+ declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
8584
+ import { FC } from 'react';
8585
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8586
+ export const BookmarkButton: FC<{
8587
+ item: PublishableItem;
8588
+ isReadOnly?: boolean;
8589
+ className?: string;
8590
+ }>;
8591
+ }
8261
8592
  declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
8262
8593
  import { FC } from 'react';
8263
8594
  export const CardStatisticItem: FC<{
@@ -8275,13 +8606,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
8275
8606
  };
8276
8607
  }>;
8277
8608
  }
8278
- declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
8609
+ declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
8610
+ import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8279
8611
  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;
8612
+ export const CardCommentButton: FC<{
8613
+ item: NewsItem | EventItem;
8614
+ itemResourceType: ItemResourceTypes;
8615
+ targetRoute: string;
8616
+ enableModalRouting?: boolean;
8285
8617
  }>;
8286
8618
  }
8287
8619
  declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
@@ -8289,11 +8621,9 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8289
8621
  import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8290
8622
  export const CardFooter: FC<{
8291
8623
  item: NewsItem | EventItem;
8292
- showComments: boolean;
8293
8624
  targetRoute: string;
8294
8625
  itemResourceType: ItemResourceTypes;
8295
- isAutoLiked?: boolean;
8296
- onLiked?: (isLiked: boolean) => unknown;
8626
+ enableModalRouting?: boolean;
8297
8627
  }>;
8298
8628
  export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
8299
8629
  }
@@ -8592,7 +8922,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
8592
8922
  item: NewsItem;
8593
8923
  baseRoute: string;
8594
8924
  language: string;
8595
- showComments: boolean;
8596
8925
  highlight: boolean;
8597
8926
  className?: string;
8598
8927
  }
@@ -9749,7 +10078,7 @@ declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton"
9749
10078
  import { FC } from 'react';
9750
10079
  export const ContentWithShowMoreButton: FC<{
9751
10080
  domIdentifier: string;
9752
- trimContent: boolean;
10081
+ trimContent?: boolean;
9753
10082
  className?: string;
9754
10083
  }>;
9755
10084
  }
@@ -9896,7 +10225,6 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
9896
10225
  mentionSearchHandler: (searchText: string) => Promise<Account[]>;
9897
10226
  getHashtagFilterRoute?: (hashtag: string) => string;
9898
10227
  highlight?: boolean;
9899
- isInitialLiked?: boolean;
9900
10228
  hasUnreadReplies?: boolean;
9901
10229
  onReplyIconClick?: () => void;
9902
10230
  onReply?: (comment: Comment, commentSender?: Account) => void;
@@ -10197,6 +10525,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10197
10525
  baseTargetUrl?: string;
10198
10526
  }
10199
10527
  export const PostDisplay: FC<Props>;
10528
+ export const PostDisplayWithModalRouting: FC<Props>;
10200
10529
  }
10201
10530
  declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
10202
10531
  import { FC } from 'react';
@@ -11055,6 +11384,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11055
11384
  poll?: import("@livetiles/reach/util/common").Poll;
11056
11385
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
11057
11386
  })[];
11387
+ export function updateStreamItemStatistics(items: StreamItem[], updatedItem: StreamItem): StreamItem[];
11058
11388
  }
11059
11389
  declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
11060
11390
  import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11079,6 +11409,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
11079
11409
  };
11080
11410
  refresh: () => Promise<void>;
11081
11411
  isLoadingFirstPage: boolean;
11412
+ refetchItem: (itemId: string) => Promise<void>;
11082
11413
  };
11083
11414
  export function hasFilter(filter?: StreamFilterDefinition): boolean;
11084
11415
  export const getStreamQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
@@ -11221,6 +11552,19 @@ declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
11221
11552
  deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11222
11553
  };
11223
11554
  }
11555
+ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
11556
+ import { EventCancelReasons, EventCancelInformation, EventItem } from "libs/reach/util/common/src/index";
11557
+ import { PublishableItem } from "libs/reach/util/common/src/index";
11558
+ export function useEventsEditorApi(): {
11559
+ getEvent: (eventId: string) => Promise<EventItem>;
11560
+ cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
11561
+ uncancelEvent: (id: string) => Promise<unknown>;
11562
+ unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
11563
+ deleteEventPermanently: (eventId: string) => any;
11564
+ saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
11565
+ deleteModifiedRecurrence: (eventId: string) => any;
11566
+ };
11567
+ }
11224
11568
  declare module "libs/reach/feature/content/src/editor/index" {
11225
11569
  export * from "libs/reach/feature/content/src/editor/EditorListItem";
11226
11570
  export * from "libs/reach/feature/content/src/editor/NewsEditorItem";
@@ -11230,6 +11574,7 @@ declare module "libs/reach/feature/content/src/editor/index" {
11230
11574
  export * from "libs/reach/feature/content/src/editor/useEditorApi";
11231
11575
  export * from "libs/reach/feature/content/src/editor/useNewsEditorApi";
11232
11576
  export * from "libs/reach/feature/content/src/editor/useShareTokenEditorApi";
11577
+ export * from "libs/reach/feature/content/src/editor/useEventsEditorApi";
11233
11578
  }
11234
11579
  declare module "libs/reach/feature/content/src/public-user/index" {
11235
11580
  export * from "libs/reach/feature/content/src/public-user/PublicUserFullAccessButton";
@@ -11785,7 +12130,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
11785
12130
  import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
11786
12131
  import { SearchBoxProps } from "libs/reach/ui/common/src/index";
11787
12132
  import { MainContentPanelProps } from "apps/reach-app/src/app/chrome/MainContentPanel";
11788
- export interface Props extends SearchBoxProps {
12133
+ export interface PageProps extends SearchBoxProps {
11789
12134
  className?: string;
11790
12135
  headerContents?: JSX.Element;
11791
12136
  headerToolbar?: HeaderToolbarTypeHack;
@@ -11803,12 +12148,14 @@ declare module "apps/reach-app/src/app/chrome/Page" {
11803
12148
  submenuContents?: JSX.Element;
11804
12149
  submenuClassName?: string;
11805
12150
  disableScrollableContainerFocus?: boolean;
12151
+ asModal?: boolean;
12152
+ domIdentifier?: string;
11806
12153
  }
11807
12154
  export enum MenuNavigationMode {
11808
12155
  Collapse = 0,
11809
12156
  KeepOpen = 1
11810
12157
  }
11811
- export const Page: FC<Props>;
12158
+ export const Page: FC<PageProps>;
11812
12159
  }
11813
12160
  declare module "apps/reach-app/src/plugins/reach-chrome" {
11814
12161
  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.4",
7
+ "version": "0.5.0-preview.42",
8
8
  "dependencies": {}
9
9
  }