@livetiles/reach-plugin-types 0.5.0-preview.16 → 0.5.0-preview.160
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.
- package/lib/index.d.ts +550 -85
- 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 {
|
|
@@ -1236,6 +1464,7 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1236
1464
|
primaryColor: string;
|
|
1237
1465
|
secondaryColor: string;
|
|
1238
1466
|
useHighlightColorOnWhiteBackground?: boolean;
|
|
1467
|
+
customFontColors?: string[];
|
|
1239
1468
|
}
|
|
1240
1469
|
export interface WebHook {
|
|
1241
1470
|
id: string;
|
|
@@ -1274,9 +1503,19 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1274
1503
|
subscriptionId: string;
|
|
1275
1504
|
subscriptionName: string;
|
|
1276
1505
|
}
|
|
1277
|
-
export
|
|
1278
|
-
|
|
1279
|
-
|
|
1506
|
+
export enum ExtensionArea {
|
|
1507
|
+
global = "Global",
|
|
1508
|
+
page = "Page",
|
|
1509
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
1510
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
1511
|
+
itemEditor = "ItemEditor"
|
|
1512
|
+
}
|
|
1513
|
+
export type InlinePlugin = {
|
|
1514
|
+
area: ExtensionArea.itemEditor;
|
|
1515
|
+
objectButton: PluginObjectButton;
|
|
1516
|
+
};
|
|
1517
|
+
export type PagePlugin = {
|
|
1518
|
+
area: ExtensionArea.page;
|
|
1280
1519
|
route: string;
|
|
1281
1520
|
navigationNode?: {
|
|
1282
1521
|
componentName?: string;
|
|
@@ -1286,7 +1525,20 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1286
1525
|
[key: string]: string;
|
|
1287
1526
|
};
|
|
1288
1527
|
};
|
|
1289
|
-
}
|
|
1528
|
+
};
|
|
1529
|
+
export type PluginExtension = {
|
|
1530
|
+
area: ExtensionArea;
|
|
1531
|
+
componentName: string;
|
|
1532
|
+
} & (InlinePlugin | PagePlugin);
|
|
1533
|
+
export type PluginObjectButton = {
|
|
1534
|
+
buttonLabel: {
|
|
1535
|
+
defaultLabel: string;
|
|
1536
|
+
translations?: {
|
|
1537
|
+
[key: string]: string;
|
|
1538
|
+
};
|
|
1539
|
+
};
|
|
1540
|
+
iconName: string;
|
|
1541
|
+
};
|
|
1290
1542
|
export interface PluginNotificationDefinitions {
|
|
1291
1543
|
key: string;
|
|
1292
1544
|
title: string;
|
|
@@ -1390,6 +1642,8 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1390
1642
|
pluginNotifications: {
|
|
1391
1643
|
[key: string]: NotificationType;
|
|
1392
1644
|
};
|
|
1645
|
+
newsEditor: NotificationType;
|
|
1646
|
+
eventEditor: NotificationType;
|
|
1393
1647
|
}
|
|
1394
1648
|
export interface RequestUser extends BasicUserInformation {
|
|
1395
1649
|
tenantId: string;
|
|
@@ -1490,6 +1744,7 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1490
1744
|
user: UserSummary;
|
|
1491
1745
|
type: SubscriptionJoinResultType;
|
|
1492
1746
|
message?: string;
|
|
1747
|
+
isSuccess?: boolean;
|
|
1493
1748
|
}
|
|
1494
1749
|
export interface UserActivationResult {
|
|
1495
1750
|
type: UserActivationResultType;
|
|
@@ -1931,6 +2186,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
|
|
|
1931
2186
|
}
|
|
1932
2187
|
}
|
|
1933
2188
|
declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
2189
|
+
import { Api } from 'restful.js';
|
|
1934
2190
|
import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
|
|
1935
2191
|
export class ClientFactoryInstance {
|
|
1936
2192
|
private env;
|
|
@@ -1941,7 +2197,7 @@ declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
|
1941
2197
|
constructor(env: EnvironmentConfig, apiEndpoint: string, getToken: () => Promise<string>, handleError?: (error: any, config: {
|
|
1942
2198
|
url: string;
|
|
1943
2199
|
}) => Promise<unknown>);
|
|
1944
|
-
createApi: (useAsUnauthorized: boolean, subscriptionId?: string) =>
|
|
2200
|
+
createApi: (useAsUnauthorized: boolean, subscriptionId?: string) => Api;
|
|
1945
2201
|
private createApiInternal;
|
|
1946
2202
|
private addRequestTimeLogger;
|
|
1947
2203
|
createApiUrl: (url: string, query?: {
|
|
@@ -2521,6 +2777,8 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
|
|
|
2521
2777
|
updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
|
|
2522
2778
|
deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
|
|
2523
2779
|
importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
|
|
2780
|
+
refreshApiKey: (apiKeyId: string, expiryDate: string) => Promise<Response>;
|
|
2781
|
+
requestApiKey: (email: string, displayName: string, expiryDate: string) => Promise<Response>;
|
|
2524
2782
|
};
|
|
2525
2783
|
}
|
|
2526
2784
|
declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
|
|
@@ -2711,7 +2969,7 @@ declare module "libs/reach/util/common/src/plugins/usePluginApi" {
|
|
|
2711
2969
|
getPluginFileUrl: (pluginId: string, bundleUrl?: string, bundleModificationDate?: string) => string;
|
|
2712
2970
|
saveDefinition: (plugin: WebPluginDefinition) => Promise<unknown>;
|
|
2713
2971
|
saveFile: (pluginId: string, file: File) => Promise<Response>;
|
|
2714
|
-
generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<
|
|
2972
|
+
generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<string>;
|
|
2715
2973
|
linkPlugin: (pluginId: string, settings: Record<string, string>) => Promise<any>;
|
|
2716
2974
|
unlinkPlugin: (pluginId: string) => Promise<any>;
|
|
2717
2975
|
};
|
|
@@ -2817,17 +3075,15 @@ declare module "libs/reach/util/common/src/Models" {
|
|
|
2817
3075
|
}
|
|
2818
3076
|
}
|
|
2819
3077
|
declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
2820
|
-
import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
3078
|
+
import { ExtensionArea, PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
2821
3079
|
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
3080
|
export interface PluginNavigationNodeProps {
|
|
2829
3081
|
navigationNodeProps?: PageNavigationNodeProps;
|
|
2830
3082
|
}
|
|
3083
|
+
export type EmbeddedPluginProps = PluginProps & {
|
|
3084
|
+
isEditMode?: boolean;
|
|
3085
|
+
componentInstanceId: string;
|
|
3086
|
+
};
|
|
2831
3087
|
export type PluginProps = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2832
3088
|
type DevPlugin = {
|
|
2833
3089
|
pluginId: string;
|
|
@@ -2881,22 +3137,11 @@ declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
|
|
|
2881
3137
|
}
|
|
2882
3138
|
declare module "libs/reach/util/common/src/plugins/Plugins" {
|
|
2883
3139
|
import { FC } from 'react';
|
|
2884
|
-
import { ExtensionArea } from "libs/reach/util/common/src/
|
|
3140
|
+
import { ExtensionArea } from "libs/reach/util/common/src/user/Subscription";
|
|
2885
3141
|
export const Plugins: FC<{
|
|
2886
3142
|
area: ExtensionArea;
|
|
2887
3143
|
} & any>;
|
|
2888
3144
|
}
|
|
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
3145
|
declare module "libs/reach/util/common/src/theme/ColorGenerator" {
|
|
2901
3146
|
export class Color {
|
|
2902
3147
|
private r;
|
|
@@ -3012,6 +3257,14 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
3012
3257
|
onSecondary?: string;
|
|
3013
3258
|
onAccent?: string;
|
|
3014
3259
|
default?: string;
|
|
3260
|
+
customOne?: string;
|
|
3261
|
+
customTwo?: string;
|
|
3262
|
+
customThree?: string;
|
|
3263
|
+
customFour?: string;
|
|
3264
|
+
customFive?: string;
|
|
3265
|
+
customSix?: string;
|
|
3266
|
+
customSeven?: string;
|
|
3267
|
+
customEight?: string;
|
|
3015
3268
|
}
|
|
3016
3269
|
export function getDarkAltColor(color: string): string;
|
|
3017
3270
|
export function getTextColor(bgColor: string): "#333333" | "#ffffff";
|
|
@@ -3099,7 +3352,7 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
3099
3352
|
export const videoAttachmentRoundedCornerSize = 20;
|
|
3100
3353
|
export const inlinePageBannerRoundedCornerSize = 5;
|
|
3101
3354
|
export const feedbackButtonHeight = 32;
|
|
3102
|
-
export const mainScrollableContainerSelector = "lt-reach-main-content";
|
|
3355
|
+
export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
|
|
3103
3356
|
export const statusColors: {
|
|
3104
3357
|
draft: string;
|
|
3105
3358
|
ready: string;
|
|
@@ -3113,6 +3366,25 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
3113
3366
|
export const managePagesRowHeight = 40;
|
|
3114
3367
|
export const mobilePreviewWidth = 414;
|
|
3115
3368
|
}
|
|
3369
|
+
declare module "libs/reach/util/common/src/plugins/Plugin" {
|
|
3370
|
+
import { FC } from 'react';
|
|
3371
|
+
import { PluginProps } from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
3372
|
+
export const Plugin: FC<PluginProps & {
|
|
3373
|
+
showDetailedErrorMessage?: boolean;
|
|
3374
|
+
} & any>;
|
|
3375
|
+
}
|
|
3376
|
+
declare module "libs/reach/util/common/src/plugins/index" {
|
|
3377
|
+
export * from "libs/reach/util/common/src/plugins/PluginContext";
|
|
3378
|
+
export * from "libs/reach/util/common/src/plugins/PluginWrapper";
|
|
3379
|
+
export * from "libs/reach/util/common/src/plugins/Plugins";
|
|
3380
|
+
export * from "libs/reach/util/common/src/plugins/Plugin";
|
|
3381
|
+
export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
|
|
3382
|
+
export * from "libs/reach/util/common/src/plugins/usePluginApi";
|
|
3383
|
+
export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
3384
|
+
export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
|
|
3385
|
+
export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
3386
|
+
export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
3387
|
+
}
|
|
3116
3388
|
declare module "libs/reach/util/common/src/notification/NotificationContext" {
|
|
3117
3389
|
import { FC, ReactNode } from 'react';
|
|
3118
3390
|
import { ToastOptions } from 'react-toastify';
|
|
@@ -3215,6 +3487,15 @@ declare module "libs/reach/util/common/src/ImageDetails" {
|
|
|
3215
3487
|
width?: number;
|
|
3216
3488
|
height?: number;
|
|
3217
3489
|
}
|
|
3490
|
+
export interface ImageWithAlignment extends ImageDetails {
|
|
3491
|
+
imageAlignment?: ImageAlignment;
|
|
3492
|
+
}
|
|
3493
|
+
export enum ImageAlignment {
|
|
3494
|
+
Default = "default",
|
|
3495
|
+
Left = "left",
|
|
3496
|
+
Right = "right",
|
|
3497
|
+
Center = "center"
|
|
3498
|
+
}
|
|
3218
3499
|
}
|
|
3219
3500
|
declare module "libs/reach/util/common/src/MainContentPanelContext" {
|
|
3220
3501
|
export interface MainPanelContextType {
|
|
@@ -3265,6 +3546,35 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
|
|
|
3265
3546
|
static create(): GenericAccessDeniedTriggerAction;
|
|
3266
3547
|
}
|
|
3267
3548
|
}
|
|
3549
|
+
declare module "libs/reach/util/common/src/useModalRouting" {
|
|
3550
|
+
export interface ModalRouting {
|
|
3551
|
+
isActive: boolean;
|
|
3552
|
+
itemId: string;
|
|
3553
|
+
backgroundLocation: any;
|
|
3554
|
+
}
|
|
3555
|
+
export function useModalRouting(): {
|
|
3556
|
+
isModalRoutingActive: boolean;
|
|
3557
|
+
modalItemId: string;
|
|
3558
|
+
backgroundLocation: any;
|
|
3559
|
+
};
|
|
3560
|
+
export function useModalRoutingSettings(): (itemId: string) => {
|
|
3561
|
+
modalRouting: {
|
|
3562
|
+
isActive: boolean;
|
|
3563
|
+
itemId: string;
|
|
3564
|
+
backgroundLocation: {
|
|
3565
|
+
state: {
|
|
3566
|
+
modalRouting: {
|
|
3567
|
+
isActive: boolean;
|
|
3568
|
+
};
|
|
3569
|
+
};
|
|
3570
|
+
pathname: string;
|
|
3571
|
+
search: string;
|
|
3572
|
+
hash: string;
|
|
3573
|
+
key?: string;
|
|
3574
|
+
};
|
|
3575
|
+
};
|
|
3576
|
+
};
|
|
3577
|
+
}
|
|
3268
3578
|
declare module "libs/reach/util/common/src/index" {
|
|
3269
3579
|
export { initializeIcons } from 'office-ui-fabric-react';
|
|
3270
3580
|
export * from "libs/reach/util/common/src/FocusStyles";
|
|
@@ -3274,6 +3584,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3274
3584
|
export * from "libs/reach/util/common/src/SortDirection";
|
|
3275
3585
|
export * from "libs/reach/util/common/src/useCacheLanguageApi";
|
|
3276
3586
|
export * from "libs/reach/util/common/src/resources/ResourceContextProvider";
|
|
3587
|
+
export * from "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter";
|
|
3277
3588
|
export * from "libs/reach/util/common/src/user/index";
|
|
3278
3589
|
export * from "libs/reach/util/common/src/plugins/index";
|
|
3279
3590
|
export * from "libs/reach/util/common/src/theme/index";
|
|
@@ -3292,6 +3603,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3292
3603
|
export * from "libs/reach/util/common/src/useBaseRoute";
|
|
3293
3604
|
export * from "libs/reach/util/common/src/ForbiddenErrorTriggerAction";
|
|
3294
3605
|
export * from "libs/reach/util/common/src/AccessDeniedIntercept";
|
|
3606
|
+
export * from "libs/reach/util/common/src/useModalRouting";
|
|
3295
3607
|
}
|
|
3296
3608
|
declare module "libs/reach/ui/common/src/Link" {
|
|
3297
3609
|
import { Link as RouterLink } from 'react-router-dom';
|
|
@@ -3428,7 +3740,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3428
3740
|
export const PeoplePicker: FC<Props>;
|
|
3429
3741
|
}
|
|
3430
3742
|
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";
|
|
3743
|
+
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
3744
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3433
3745
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3434
3746
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3445,7 +3757,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3445
3757
|
* @deprecated Please use `usePluginDeviceStore` instead
|
|
3446
3758
|
*/
|
|
3447
3759
|
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, };
|
|
3760
|
+
export type { Account, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, EmbeddedPluginProps, };
|
|
3449
3761
|
}
|
|
3450
3762
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
3451
3763
|
import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
|
|
@@ -3716,7 +4028,9 @@ declare module "libs/reach/ui/common/src/common/UiUtils" {
|
|
|
3716
4028
|
}[]>;
|
|
3717
4029
|
export function getFileIcon(filename: string): string;
|
|
3718
4030
|
export function getIconColor(fileIcon: string): "#1C5FC0" | "#138147" | "#CA4B27" | "#1C5FBF" | "#CF1700" | "#000";
|
|
4031
|
+
export function getFileIconHorizontalTransform(fileIcon: string): -55 | -50;
|
|
3719
4032
|
export function getFileIconByExtension(extension: string): "Page" | "Video" | "MusicInCollectionFill" | "VisioDocument" | "ZipFolder" | "PDF" | "WordDocument" | "ExcelDocument" | "PowerPointDocument" | "FileImage";
|
|
4033
|
+
export function getMainScrollableContainer(): HTMLElement;
|
|
3720
4034
|
}
|
|
3721
4035
|
declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
|
|
3722
4036
|
export function useFileAccessTokenApi(): {
|
|
@@ -4026,7 +4340,7 @@ declare module "libs/reach/ui/common/src/common/ToggleWithLabel" {
|
|
|
4026
4340
|
export const ToggleWithLabel: FC<IToggleProps>;
|
|
4027
4341
|
}
|
|
4028
4342
|
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>>;
|
|
4343
|
+
export const unreadCommentHighlight: (top?: string) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
4030
4344
|
}
|
|
4031
4345
|
declare module "libs/reach/ui/common/src/common/UserUtility" {
|
|
4032
4346
|
import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
|
|
@@ -4345,6 +4659,9 @@ declare module "libs/reach/ui/common/src/common/grid/Grid" {
|
|
|
4345
4659
|
className?: string;
|
|
4346
4660
|
}>;
|
|
4347
4661
|
}
|
|
4662
|
+
declare module "libs/reach/ui/common/src/common/hooks/useIsMounted" {
|
|
4663
|
+
export const useIsMounted: () => () => boolean;
|
|
4664
|
+
}
|
|
4348
4665
|
declare module "libs/reach/ui/common/src/common/hooks/usePagination" {
|
|
4349
4666
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
4350
4667
|
import { DependencyList, SetStateAction } from 'react';
|
|
@@ -4825,6 +5142,7 @@ declare module "libs/reach/ui/common/src/common/index" {
|
|
|
4825
5142
|
export * from "libs/reach/ui/common/src/common/grid/Grid";
|
|
4826
5143
|
export * from "libs/reach/ui/common/src/common/hooks/usePagination";
|
|
4827
5144
|
export * from "libs/reach/ui/common/src/common/hooks/useUserPropertyDefinitionsHandler";
|
|
5145
|
+
export * from "libs/reach/ui/common/src/common/hooks/useIsMounted";
|
|
4828
5146
|
export * from "libs/reach/ui/common/src/common/icon-with-callout/IconWithCallout";
|
|
4829
5147
|
export * from "libs/reach/ui/common/src/common/inlineObjectsClassNames";
|
|
4830
5148
|
export * from "libs/reach/ui/common/src/common/isNullOrWhitespaceUtil";
|
|
@@ -4908,7 +5226,7 @@ declare module "libs/reach/ui/common/src/index" {
|
|
|
4908
5226
|
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
4909
5227
|
}
|
|
4910
5228
|
declare module "apps/reach-app/src/app/chrome/CloseButton" {
|
|
4911
|
-
import { FC } from 'react';
|
|
5229
|
+
import { FC, DependencyList } from 'react';
|
|
4912
5230
|
export interface Props {
|
|
4913
5231
|
navigateTo: string;
|
|
4914
5232
|
onClose?: () => void;
|
|
@@ -4917,7 +5235,7 @@ declare module "apps/reach-app/src/app/chrome/CloseButton" {
|
|
|
4917
5235
|
className?: string;
|
|
4918
5236
|
}
|
|
4919
5237
|
export const CloseButton: FC<Props>;
|
|
4920
|
-
export function useEscapeOnClose(onClose: () => void): void;
|
|
5238
|
+
export function useEscapeOnClose(onClose: () => void, deps?: DependencyList): void;
|
|
4921
5239
|
}
|
|
4922
5240
|
declare module "apps/reach-app/src/app/common/LogoStyles" {
|
|
4923
5241
|
export const LogoHostStyle: (size?: {
|
|
@@ -4981,8 +5299,9 @@ declare module "apps/reach-app/src/app/SkipLinksContext" {
|
|
|
4981
5299
|
export const SkipLinksContextProvider: FC;
|
|
4982
5300
|
}
|
|
4983
5301
|
declare module "apps/reach-app/src/app/useAddSkipLinks" {
|
|
5302
|
+
import { DependencyList } from 'react';
|
|
4984
5303
|
import { SkipLink } from "apps/reach-app/src/app/SkipLinksContext";
|
|
4985
|
-
export function useAddSkipLinks(
|
|
5304
|
+
export function useAddSkipLinks(skipLinks: SkipLink[], deps?: DependencyList): void;
|
|
4986
5305
|
}
|
|
4987
5306
|
declare module "apps/reach-app/src/app/chrome/MainContentPanel" {
|
|
4988
5307
|
import { FC } from 'react';
|
|
@@ -5033,6 +5352,8 @@ declare module "apps/reach-app/src/app/chrome/BasicPage" {
|
|
|
5033
5352
|
closeButtonOptions?: CloseButtonOptions;
|
|
5034
5353
|
showSearchBox?: boolean;
|
|
5035
5354
|
disableScrollableContainerFocus?: boolean;
|
|
5355
|
+
asModal?: boolean;
|
|
5356
|
+
domIdentifier?: string;
|
|
5036
5357
|
}
|
|
5037
5358
|
export const BasicPage: FC<Props>;
|
|
5038
5359
|
}
|
|
@@ -5167,6 +5488,7 @@ declare module "apps/reach-app/src/app/admin/themes/ContrastInfo" {
|
|
|
5167
5488
|
foregroundColor: string;
|
|
5168
5489
|
backgroundColor: string;
|
|
5169
5490
|
className?: string;
|
|
5491
|
+
showInfoIcon?: boolean;
|
|
5170
5492
|
}>;
|
|
5171
5493
|
}
|
|
5172
5494
|
declare module "apps/reach-app/src/app/admin/themes/ColorButton" {
|
|
@@ -5189,6 +5511,14 @@ declare module "apps/reach-app/src/app/admin/themes/ThemeContrastPreview" {
|
|
|
5189
5511
|
foregroundColor: string;
|
|
5190
5512
|
}>;
|
|
5191
5513
|
}
|
|
5514
|
+
declare module "apps/reach-app/src/app/admin/themes/CustomFontColors" {
|
|
5515
|
+
import { FC } from 'react';
|
|
5516
|
+
import { Theme } from "libs/reach/util/common/src/index";
|
|
5517
|
+
export const CustomFontColors: FC<{
|
|
5518
|
+
theme: Theme;
|
|
5519
|
+
onApply?: (colors: string[]) => void;
|
|
5520
|
+
}>;
|
|
5521
|
+
}
|
|
5192
5522
|
declare module "apps/reach-app/src/app/admin/themes/Themes" {
|
|
5193
5523
|
import { FC } from 'react';
|
|
5194
5524
|
export const Themes: FC;
|
|
@@ -6213,7 +6543,7 @@ declare module "apps/reach-app/src/app/user/useSelfRegistrationApi" {
|
|
|
6213
6543
|
import { UserRegistrationResult } from "libs/reach/util/common/src/index";
|
|
6214
6544
|
import { SelfRegistrationOptions } from "libs/reach/util/common/src/index";
|
|
6215
6545
|
export function useSelfRegistrationApi(): {
|
|
6216
|
-
changeRegistrationStatus: (upn: string, doAccept: boolean) =>
|
|
6546
|
+
changeRegistrationStatus: (upn: string, doAccept: boolean) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6217
6547
|
hasUserPendingRegistration: (subscriptionId: string, upn: string) => Promise<boolean>;
|
|
6218
6548
|
register: (subscriptionId: string, mail: string, displayName: string) => Promise<UserRegistrationResult>;
|
|
6219
6549
|
updateSelfRegistrationOptions: (config: Partial<SelfRegistrationOptions>) => Promise<unknown>;
|
|
@@ -6269,6 +6599,15 @@ declare module "apps/reach-app/src/app/admin/users/EditUserButton" {
|
|
|
6269
6599
|
onSaved: (newProperties: UpdatableUserProperties) => void;
|
|
6270
6600
|
}>;
|
|
6271
6601
|
}
|
|
6602
|
+
declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyDialog" {
|
|
6603
|
+
import { FC } from 'react';
|
|
6604
|
+
import { UserItem } from "apps/reach-app/src/app/admin/users/UserList";
|
|
6605
|
+
export const GenerateApiKeyDialog: FC<{
|
|
6606
|
+
onApiKeyAdded?: () => void;
|
|
6607
|
+
onDismiss: () => void;
|
|
6608
|
+
user?: UserItem;
|
|
6609
|
+
}>;
|
|
6610
|
+
}
|
|
6272
6611
|
declare module "apps/reach-app/src/app/admin/users/UserList" {
|
|
6273
6612
|
import { Account, GroupRoles, GroupUser, SortDefinition, UpdatableUserProperties, UserSummary } from "libs/reach/util/common/src/index";
|
|
6274
6613
|
import './UserList.scss';
|
|
@@ -6292,7 +6631,12 @@ declare module "apps/reach-app/src/app/admin/users/UserList" {
|
|
|
6292
6631
|
isLoading?: boolean;
|
|
6293
6632
|
isEmpty?: boolean;
|
|
6294
6633
|
emptyPlaceholder?: ReactNode;
|
|
6634
|
+
onKeyChanged?: () => void;
|
|
6295
6635
|
}
|
|
6636
|
+
export type UserItem = Account & UserSummary & GroupUser & {
|
|
6637
|
+
accountType: string;
|
|
6638
|
+
lastLogin: string | JSX.Element;
|
|
6639
|
+
};
|
|
6296
6640
|
export const UserList: FC<Props>;
|
|
6297
6641
|
}
|
|
6298
6642
|
declare module "apps/reach-app/src/app/InfiniteScrollingStatus" {
|
|
@@ -6325,12 +6669,6 @@ declare module "apps/reach-app/src/app/admin/users/ExportUserButton" {
|
|
|
6325
6669
|
className?: string;
|
|
6326
6670
|
}>;
|
|
6327
6671
|
}
|
|
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
6672
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
|
|
6335
6673
|
import { FC } from 'react';
|
|
6336
6674
|
import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
|
|
@@ -6350,18 +6688,42 @@ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersP
|
|
|
6350
6688
|
}
|
|
6351
6689
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
|
|
6352
6690
|
import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
|
|
6691
|
+
export enum ValidationStatus {
|
|
6692
|
+
Valid = 0,
|
|
6693
|
+
WithErrors = 1,
|
|
6694
|
+
WithUserErrors = 2
|
|
6695
|
+
}
|
|
6696
|
+
export type CsvValidation = {
|
|
6697
|
+
Status?: ValidationStatus;
|
|
6698
|
+
Message?: string;
|
|
6699
|
+
InvalidItems?: string[];
|
|
6700
|
+
};
|
|
6353
6701
|
export function useUserCsvInviter(): {
|
|
6354
6702
|
invitedUsers: UserImport[];
|
|
6355
6703
|
isValidating: boolean;
|
|
6356
6704
|
isCsvValid: boolean;
|
|
6357
6705
|
parseCsvFile: (csvFile: File) => void;
|
|
6358
|
-
|
|
6359
|
-
|
|
6706
|
+
csvValidation: CsvValidation;
|
|
6707
|
+
setCsvValidation: (status: ValidationStatus, message: string, invalidItems?: string[]) => void;
|
|
6360
6708
|
inviteUsers: (onSuccess?: () => void) => Promise<void>;
|
|
6361
6709
|
isParserReady: boolean;
|
|
6362
|
-
|
|
6710
|
+
isInviting: boolean;
|
|
6711
|
+
canInvite: boolean;
|
|
6712
|
+
csvFile: File;
|
|
6363
6713
|
};
|
|
6364
6714
|
}
|
|
6715
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/csvUtils" {
|
|
6716
|
+
export function createCsvUrl(header: string, content: string): string;
|
|
6717
|
+
}
|
|
6718
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/CsvFileValidationResult" {
|
|
6719
|
+
import { FC } from 'react';
|
|
6720
|
+
import { CsvValidation } from "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter";
|
|
6721
|
+
import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
|
|
6722
|
+
export const CsvFileValidationResult: FC<{
|
|
6723
|
+
csvValidation: CsvValidation;
|
|
6724
|
+
invitedUsers: UserImport[];
|
|
6725
|
+
}>;
|
|
6726
|
+
}
|
|
6365
6727
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
|
|
6366
6728
|
import { FC } from 'react';
|
|
6367
6729
|
export const ImportUserButton: FC<{
|
|
@@ -6399,29 +6761,28 @@ declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
|
6399
6761
|
}
|
|
6400
6762
|
declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
6401
6763
|
import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
|
|
6402
|
-
export class
|
|
6764
|
+
export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
|
|
6403
6765
|
static type: string;
|
|
6404
6766
|
type: string;
|
|
6405
6767
|
itemId: string;
|
|
6406
6768
|
response: EventResponse;
|
|
6407
6769
|
locationId: string;
|
|
6408
6770
|
onBehalfOfUpn: string;
|
|
6409
|
-
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string):
|
|
6771
|
+
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
|
|
6410
6772
|
}
|
|
6411
|
-
export class
|
|
6773
|
+
export class EventResponseTriggerAction implements AppTriggerAction {
|
|
6412
6774
|
static type: string;
|
|
6413
6775
|
type: string;
|
|
6414
|
-
|
|
6776
|
+
itemId: string;
|
|
6415
6777
|
response: EventResponse;
|
|
6416
|
-
static create(
|
|
6778
|
+
static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
|
|
6417
6779
|
}
|
|
6418
|
-
export class
|
|
6780
|
+
export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
|
|
6419
6781
|
static type: string;
|
|
6420
6782
|
type: string;
|
|
6421
6783
|
recurrenceSeriesId: string;
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
static create(recurrenceSeriesId: string, itemId: string, isLiked: boolean): LikeFullSeriesTriggerAction;
|
|
6784
|
+
response: EventResponse;
|
|
6785
|
+
static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
|
|
6425
6786
|
}
|
|
6426
6787
|
export class FollowCommentsTriggerAction implements AppTriggerAction {
|
|
6427
6788
|
static type: string;
|
|
@@ -6436,6 +6797,14 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6436
6797
|
followByDefault: boolean;
|
|
6437
6798
|
static create(followState: boolean): AutoFollowPostsTriggerAction;
|
|
6438
6799
|
}
|
|
6800
|
+
export class AutoLikeItemTriggerAction implements AppTriggerAction {
|
|
6801
|
+
static type: string;
|
|
6802
|
+
type: string;
|
|
6803
|
+
recurrenceSeriesId: string;
|
|
6804
|
+
isLiked: boolean;
|
|
6805
|
+
likeCount: number;
|
|
6806
|
+
static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
|
|
6807
|
+
}
|
|
6439
6808
|
export class DeletedItemsTriggerAction implements AppTriggerAction {
|
|
6440
6809
|
static type: string;
|
|
6441
6810
|
type: string;
|
|
@@ -6456,6 +6825,18 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6456
6825
|
type: string;
|
|
6457
6826
|
static create(): StreamMarkAllAsReadAction;
|
|
6458
6827
|
}
|
|
6828
|
+
export class RefetchItemAction implements AppTriggerAction {
|
|
6829
|
+
static type: string;
|
|
6830
|
+
type: string;
|
|
6831
|
+
itemId: string;
|
|
6832
|
+
static create(itemId: string): RefetchItemAction;
|
|
6833
|
+
}
|
|
6834
|
+
export class RefetchStreamItemAction implements AppTriggerAction {
|
|
6835
|
+
static type: string;
|
|
6836
|
+
type: string;
|
|
6837
|
+
itemId: string;
|
|
6838
|
+
static create(itemId: string): RefetchStreamItemAction;
|
|
6839
|
+
}
|
|
6459
6840
|
}
|
|
6460
6841
|
declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
6461
6842
|
export interface CommentFilter {
|
|
@@ -6472,19 +6853,20 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
|
6472
6853
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
6473
6854
|
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
6474
6855
|
import { Attachment } from "libs/reach/util/common/src/index";
|
|
6856
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
6475
6857
|
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
6476
6858
|
export function useCommentApi(): {
|
|
6477
|
-
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) =>
|
|
6478
|
-
createEditorComment: (itemId: string, comment: Partial<Comment>) =>
|
|
6479
|
-
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) =>
|
|
6480
|
-
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) =>
|
|
6481
|
-
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) =>
|
|
6482
|
-
getEditorConversations: (itemId: string) =>
|
|
6859
|
+
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6860
|
+
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6861
|
+
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6862
|
+
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6863
|
+
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
6864
|
+
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
6483
6865
|
translateComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, targetLanguage: string) => Promise<string>;
|
|
6484
|
-
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) =>
|
|
6485
|
-
deleteEditorComment: (itemId: string, commentId: string) =>
|
|
6866
|
+
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6867
|
+
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6486
6868
|
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
6487
|
-
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) =>
|
|
6869
|
+
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6488
6870
|
onCommentCreated$: import("rxjs").Observable<string>;
|
|
6489
6871
|
};
|
|
6490
6872
|
}
|
|
@@ -6615,7 +6997,7 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6615
6997
|
import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
6616
6998
|
import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
6617
6999
|
import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
6618
|
-
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition {
|
|
7000
|
+
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
|
|
6619
7001
|
}
|
|
6620
7002
|
export interface BaseFilterDefinition {
|
|
6621
7003
|
search?: string;
|
|
@@ -6623,6 +7005,9 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6623
7005
|
pageSize?: string | number;
|
|
6624
7006
|
groupId?: string;
|
|
6625
7007
|
}
|
|
7008
|
+
export interface ItemIdsFilterDefinition {
|
|
7009
|
+
itemIds?: string;
|
|
7010
|
+
}
|
|
6626
7011
|
export interface IndexableFilterDefinition {
|
|
6627
7012
|
[key: string]: any;
|
|
6628
7013
|
}
|
|
@@ -6943,7 +7328,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
|
6943
7328
|
deletePost: (postId: string) => Promise<unknown>;
|
|
6944
7329
|
getPost: (postId: string, commentCount?: number) => Promise<Post>;
|
|
6945
7330
|
getPostThread: (postId: string, threadId: string) => Promise<Post>;
|
|
6946
|
-
translatePost: (postId: string, language: string) =>
|
|
7331
|
+
translatePost: (postId: string, language: string) => Promise<string>;
|
|
6947
7332
|
searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
|
|
6948
7333
|
};
|
|
6949
7334
|
}
|
|
@@ -7110,6 +7495,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
|
7110
7495
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7111
7496
|
import { FC, MouseEvent } from 'react';
|
|
7112
7497
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7498
|
+
import { LocationState } from 'history';
|
|
7113
7499
|
export const ClickableOverlay: FC<{
|
|
7114
7500
|
itemId: string;
|
|
7115
7501
|
itemType: ItemResourceTypes;
|
|
@@ -7120,6 +7506,19 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
|
7120
7506
|
onClick?: (event: MouseEvent<unknown>) => unknown;
|
|
7121
7507
|
openTargetInNewWindow?: boolean;
|
|
7122
7508
|
isExternalContent?: boolean;
|
|
7509
|
+
locationState?: LocationState;
|
|
7510
|
+
}>;
|
|
7511
|
+
}
|
|
7512
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
|
|
7513
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7514
|
+
import { FC } from 'react';
|
|
7515
|
+
export const ClickableOverlayWithModalRouting: FC<{
|
|
7516
|
+
itemId: string;
|
|
7517
|
+
itemType: ItemResourceTypes;
|
|
7518
|
+
baseRoute: string;
|
|
7519
|
+
title?: string;
|
|
7520
|
+
isExternalContent?: boolean;
|
|
7521
|
+
targetUrl?: string;
|
|
7123
7522
|
}>;
|
|
7124
7523
|
}
|
|
7125
7524
|
declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
@@ -7130,6 +7529,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
|
7130
7529
|
targetUrl?: string;
|
|
7131
7530
|
readOnly?: boolean;
|
|
7132
7531
|
backgroundColor?: string;
|
|
7532
|
+
enableModalRouting?: boolean;
|
|
7133
7533
|
className?: string;
|
|
7134
7534
|
}>;
|
|
7135
7535
|
}
|
|
@@ -7167,6 +7567,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
7167
7567
|
className?: string;
|
|
7168
7568
|
allowFilterByChannels?: boolean;
|
|
7169
7569
|
channelBackgroundColor?: string;
|
|
7570
|
+
onChannelClick?: (channel: string) => unknown;
|
|
7170
7571
|
}>;
|
|
7171
7572
|
}
|
|
7172
7573
|
declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
|
|
@@ -7226,6 +7627,7 @@ declare module "libs/reach/feature/content/src/common/banner/PublishableItemBann
|
|
|
7226
7627
|
height?: number;
|
|
7227
7628
|
hidePlayerIfActive?: boolean;
|
|
7228
7629
|
className?: string;
|
|
7630
|
+
documentIconName?: string;
|
|
7229
7631
|
}
|
|
7230
7632
|
export const PublishableItemBanner: FC<Props>;
|
|
7231
7633
|
}
|
|
@@ -7464,10 +7866,12 @@ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegi
|
|
|
7464
7866
|
}
|
|
7465
7867
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
|
|
7466
7868
|
import { FC } from 'react';
|
|
7869
|
+
import { EventResponse } from "libs/reach/util/common/src/index";
|
|
7467
7870
|
export const EventUserRegistration: FC<{
|
|
7468
7871
|
disabled?: boolean;
|
|
7469
7872
|
hideInfoMessage?: boolean;
|
|
7470
7873
|
showNoRegistrationRequired?: boolean;
|
|
7874
|
+
onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
|
|
7471
7875
|
className?: string;
|
|
7472
7876
|
}>;
|
|
7473
7877
|
}
|
|
@@ -7537,8 +7941,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
|
|
|
7537
7941
|
export const CardLikeButton: FC<{
|
|
7538
7942
|
item: NewsItem | EventItem;
|
|
7539
7943
|
itemResourceType: ItemResourceTypes;
|
|
7540
|
-
|
|
7541
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
7944
|
+
onToggleLike?: (isLiked: boolean, likeCount: number) => void;
|
|
7542
7945
|
className?: string;
|
|
7543
7946
|
}>;
|
|
7544
7947
|
}
|
|
@@ -7560,6 +7963,18 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoN
|
|
|
7560
7963
|
className?: string;
|
|
7561
7964
|
}>;
|
|
7562
7965
|
}
|
|
7966
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
|
|
7967
|
+
import { FC } from 'react';
|
|
7968
|
+
export const LinkWithModalRouting: FC<{
|
|
7969
|
+
url: string;
|
|
7970
|
+
itemId: string;
|
|
7971
|
+
hash?: string;
|
|
7972
|
+
onClick?: (e: React.MouseEvent) => unknown;
|
|
7973
|
+
ariaHidden?: boolean;
|
|
7974
|
+
ariaLabel?: string;
|
|
7975
|
+
className?: string;
|
|
7976
|
+
}>;
|
|
7977
|
+
}
|
|
7563
7978
|
declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
7564
7979
|
import { FC } from 'react';
|
|
7565
7980
|
import { EventItem } from "libs/reach/util/common/src/index";
|
|
@@ -7578,6 +7993,7 @@ declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
|
7578
7993
|
allowFilterByChannels?: boolean;
|
|
7579
7994
|
showFeedbackButtons?: boolean;
|
|
7580
7995
|
readOnly?: boolean;
|
|
7996
|
+
enableModalRouting?: boolean;
|
|
7581
7997
|
className?: string;
|
|
7582
7998
|
}>;
|
|
7583
7999
|
}
|
|
@@ -7628,7 +8044,8 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
|
7628
8044
|
Contact = "contact",
|
|
7629
8045
|
InlinePageList = "inline-page-list",
|
|
7630
8046
|
UrlPreview = "url-preview",
|
|
7631
|
-
ActionButton = "action-button"
|
|
8047
|
+
ActionButton = "action-button",
|
|
8048
|
+
InlinePlugin = "inline-plugin"
|
|
7632
8049
|
}
|
|
7633
8050
|
export interface HtmlComponentMapper {
|
|
7634
8051
|
component: FC<any>;
|
|
@@ -7770,7 +8187,10 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
|
|
|
7770
8187
|
resourceKey?: string;
|
|
7771
8188
|
resourceValues?: string;
|
|
7772
8189
|
className?: string;
|
|
8190
|
+
enableModalRouting?: boolean;
|
|
8191
|
+
itemId?: string;
|
|
7773
8192
|
isOverrideLink: boolean;
|
|
8193
|
+
icon?: string;
|
|
7774
8194
|
}>;
|
|
7775
8195
|
}
|
|
7776
8196
|
declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
|
|
@@ -7829,6 +8249,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
|
|
|
7829
8249
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7830
8250
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7831
8251
|
openTargetInNewWindow?: boolean;
|
|
8252
|
+
enableModalRouting?: boolean;
|
|
7832
8253
|
className?: string;
|
|
7833
8254
|
}
|
|
7834
8255
|
export const PageItemTile: FC<Props>;
|
|
@@ -7874,6 +8295,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
7874
8295
|
onClick?: (event: MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7875
8296
|
styleDefinition?: StyleDefinition;
|
|
7876
8297
|
readOnly?: boolean;
|
|
8298
|
+
enableModalRouting?: boolean;
|
|
7877
8299
|
className?: string;
|
|
7878
8300
|
}
|
|
7879
8301
|
export const PublishableItemTileWrapper: FC<Props>;
|
|
@@ -7917,6 +8339,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7917
8339
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7918
8340
|
styleDefinition?: StyleDefinition;
|
|
7919
8341
|
readOnly?: boolean;
|
|
8342
|
+
enableModalRouting?: boolean;
|
|
7920
8343
|
className?: string;
|
|
7921
8344
|
}
|
|
7922
8345
|
export const NewsItemTile: FC<Props>;
|
|
@@ -7942,6 +8365,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
|
|
|
7942
8365
|
previewTheme?: CommentInputTheme;
|
|
7943
8366
|
buttons?: ReactNode;
|
|
7944
8367
|
groupIds?: string[];
|
|
8368
|
+
enableModalRouting?: boolean;
|
|
7945
8369
|
className?: string;
|
|
7946
8370
|
}>;
|
|
7947
8371
|
export const EmbeddedObjectAccessDeniedTile: FC<{
|
|
@@ -7958,6 +8382,7 @@ declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
|
|
|
7958
8382
|
attachments: Attachment[];
|
|
7959
8383
|
onDeleteClick?: (attachment: Attachment) => void;
|
|
7960
8384
|
previewTheme?: CommentInputTheme;
|
|
8385
|
+
enableModalRouting?: boolean;
|
|
7961
8386
|
className?: string;
|
|
7962
8387
|
}>;
|
|
7963
8388
|
}
|
|
@@ -8118,6 +8543,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
|
|
|
8118
8543
|
import { FC, ReactNode } from 'react';
|
|
8119
8544
|
export const InlineObjectToolbar: FC<{
|
|
8120
8545
|
onDelete?: () => void;
|
|
8546
|
+
deleteAriaLabelResourceKey?: string;
|
|
8121
8547
|
additionalButtons?: ReactNode;
|
|
8122
8548
|
}>;
|
|
8123
8549
|
export const InlineObjectToolbarWrapper: FC<{
|
|
@@ -8125,15 +8551,18 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
|
|
|
8125
8551
|
}>;
|
|
8126
8552
|
}
|
|
8127
8553
|
declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
|
|
8128
|
-
import { FC } from 'react';
|
|
8554
|
+
import { FC, ReactNode } from 'react';
|
|
8555
|
+
import { ImageAlignment } from "libs/reach/util/common/src/index";
|
|
8129
8556
|
export const ImageToolbar: FC<{
|
|
8130
8557
|
onDelete?: () => void;
|
|
8131
8558
|
onFullScreen?: (e: React.MouseEvent<any>) => void;
|
|
8132
8559
|
onClose?: (e: React.MouseEvent<any>) => void;
|
|
8133
8560
|
onCrop?: (e: React.MouseEvent<any>) => void;
|
|
8561
|
+
onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
|
|
8134
8562
|
showFullScreenButton?: boolean;
|
|
8135
8563
|
showCloseButton?: boolean;
|
|
8136
8564
|
showCropButton?: boolean;
|
|
8565
|
+
alignmentButtons?: ReactNode;
|
|
8137
8566
|
}>;
|
|
8138
8567
|
}
|
|
8139
8568
|
declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
|
|
@@ -8260,6 +8689,15 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
8260
8689
|
export const EditCommentWithAttachments: FC<Props>;
|
|
8261
8690
|
export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
|
|
8262
8691
|
}
|
|
8692
|
+
declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
|
|
8693
|
+
import { FC } from 'react';
|
|
8694
|
+
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8695
|
+
export const BookmarkButton: FC<{
|
|
8696
|
+
item: PublishableItem;
|
|
8697
|
+
isReadOnly?: boolean;
|
|
8698
|
+
className?: string;
|
|
8699
|
+
}>;
|
|
8700
|
+
}
|
|
8263
8701
|
declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
8264
8702
|
import { FC } from 'react';
|
|
8265
8703
|
export const CardStatisticItem: FC<{
|
|
@@ -8277,13 +8715,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
|
8277
8715
|
};
|
|
8278
8716
|
}>;
|
|
8279
8717
|
}
|
|
8280
|
-
declare module "libs/reach/feature/content/src/
|
|
8718
|
+
declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
|
|
8719
|
+
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8281
8720
|
import { FC } from 'react';
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8721
|
+
export const CardCommentButton: FC<{
|
|
8722
|
+
item: NewsItem | EventItem;
|
|
8723
|
+
itemResourceType: ItemResourceTypes;
|
|
8724
|
+
targetRoute: string;
|
|
8725
|
+
enableModalRouting?: boolean;
|
|
8287
8726
|
}>;
|
|
8288
8727
|
}
|
|
8289
8728
|
declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
@@ -8291,11 +8730,9 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
|
8291
8730
|
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8292
8731
|
export const CardFooter: FC<{
|
|
8293
8732
|
item: NewsItem | EventItem;
|
|
8294
|
-
showComments: boolean;
|
|
8295
8733
|
targetRoute: string;
|
|
8296
8734
|
itemResourceType: ItemResourceTypes;
|
|
8297
|
-
|
|
8298
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
8735
|
+
enableModalRouting?: boolean;
|
|
8299
8736
|
}>;
|
|
8300
8737
|
export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
|
|
8301
8738
|
}
|
|
@@ -8346,6 +8783,7 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
|
|
|
8346
8783
|
target?: string;
|
|
8347
8784
|
language?: string;
|
|
8348
8785
|
hideCurrentPageNode?: boolean;
|
|
8786
|
+
homeTargetUrlOverride?: string;
|
|
8349
8787
|
className?: string;
|
|
8350
8788
|
}>;
|
|
8351
8789
|
}
|
|
@@ -8545,6 +8983,7 @@ declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
|
|
|
8545
8983
|
language?: string;
|
|
8546
8984
|
buildChannelFilterUrl?: (channelName: string) => string;
|
|
8547
8985
|
clickableAvatar?: boolean;
|
|
8986
|
+
onChannelClick?: (channel: string) => unknown;
|
|
8548
8987
|
}>;
|
|
8549
8988
|
}
|
|
8550
8989
|
declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
|
|
@@ -8594,7 +9033,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
|
|
|
8594
9033
|
item: NewsItem;
|
|
8595
9034
|
baseRoute: string;
|
|
8596
9035
|
language: string;
|
|
8597
|
-
showComments: boolean;
|
|
8598
9036
|
highlight: boolean;
|
|
8599
9037
|
className?: string;
|
|
8600
9038
|
}
|
|
@@ -8701,6 +9139,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
|
|
|
8701
9139
|
}
|
|
8702
9140
|
declare module "libs/reach/feature/content/src/common/body/InlineImage" {
|
|
8703
9141
|
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9142
|
+
export const ImageAlignmentStyles: (alignment: string, width: number, preventFloat?: boolean) => string | import("styled-components").FlattenSimpleInterpolation;
|
|
8704
9143
|
export const InlineImageMapper: HtmlComponentMapper;
|
|
8705
9144
|
}
|
|
8706
9145
|
declare module "libs/reach/feature/content/src/common/body/InlineContact" {
|
|
@@ -8919,6 +9358,10 @@ declare module "libs/reach/feature/content/src/common/body/InlineActionButtonLis
|
|
|
8919
9358
|
}
|
|
8920
9359
|
export const InlineActionButtonMapper: HtmlComponentMapper;
|
|
8921
9360
|
}
|
|
9361
|
+
declare module "libs/reach/feature/content/src/common/body/InlineObjectPluginView" {
|
|
9362
|
+
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9363
|
+
export const InlineObjectPluginMapper: HtmlComponentMapper;
|
|
9364
|
+
}
|
|
8922
9365
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewPeopleInfo" {
|
|
8923
9366
|
import { FC } from 'react';
|
|
8924
9367
|
export const EventDetailViewPeopleInfo: FC;
|
|
@@ -8931,6 +9374,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
8931
9374
|
import { FC } from 'react';
|
|
8932
9375
|
export const EventDetailViewMetaInfo: FC<{
|
|
8933
9376
|
allowFilterByChannels?: boolean;
|
|
9377
|
+
onChannelClick?: (channel: string) => unknown;
|
|
8934
9378
|
}>;
|
|
8935
9379
|
}
|
|
8936
9380
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewDatesInfo" {
|
|
@@ -9138,6 +9582,7 @@ declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
|
|
|
9138
9582
|
readOnly?: boolean;
|
|
9139
9583
|
trimContent?: boolean;
|
|
9140
9584
|
showReplyBox?: boolean;
|
|
9585
|
+
enableModalRouting?: boolean;
|
|
9141
9586
|
className?: string;
|
|
9142
9587
|
}>;
|
|
9143
9588
|
}
|
|
@@ -9160,6 +9605,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
|
|
|
9160
9605
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9161
9606
|
readOnly?: boolean;
|
|
9162
9607
|
trimContent?: boolean;
|
|
9608
|
+
enableModalRouting?: boolean;
|
|
9163
9609
|
className?: string;
|
|
9164
9610
|
}
|
|
9165
9611
|
export const CommentList: FC<CommentListProps>;
|
|
@@ -9219,6 +9665,7 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
|
|
|
9219
9665
|
showReplyBox?: boolean;
|
|
9220
9666
|
trimContent?: boolean;
|
|
9221
9667
|
title?: ReactNode;
|
|
9668
|
+
enableModalRouting?: boolean;
|
|
9222
9669
|
className?: string;
|
|
9223
9670
|
};
|
|
9224
9671
|
export const PagedCommentsSection: FC<Props>;
|
|
@@ -9487,6 +9934,7 @@ declare module "libs/reach/feature/content/src/common/banner/Banner" {
|
|
|
9487
9934
|
layoutMode?: ItemTileLayoutMode;
|
|
9488
9935
|
bannerDefaultWidth?: number;
|
|
9489
9936
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
9937
|
+
documentIconName?: string;
|
|
9490
9938
|
}>;
|
|
9491
9939
|
}
|
|
9492
9940
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
@@ -9557,6 +10005,7 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9557
10005
|
import { FC } from 'react';
|
|
9558
10006
|
export const DetailViewKeywords: FC<{
|
|
9559
10007
|
filterBaseUrl: string;
|
|
10008
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
9560
10009
|
}>;
|
|
9561
10010
|
}
|
|
9562
10011
|
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
@@ -9604,8 +10053,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9604
10053
|
import { FC, ReactNode } from 'react';
|
|
9605
10054
|
export const DetailViewNavigation: FC<{
|
|
9606
10055
|
offsetRight?: number;
|
|
9607
|
-
children?: ReactNode;
|
|
9608
10056
|
callout?: ReactNode;
|
|
10057
|
+
className?: string;
|
|
10058
|
+
children?: ReactNode;
|
|
9609
10059
|
}>;
|
|
9610
10060
|
}
|
|
9611
10061
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBodyExternalContent" {
|
|
@@ -9648,6 +10098,13 @@ declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi"
|
|
|
9648
10098
|
getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
|
|
9649
10099
|
};
|
|
9650
10100
|
}
|
|
10101
|
+
declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
|
|
10102
|
+
interface IClickHandles {
|
|
10103
|
+
onInsideClick: () => void;
|
|
10104
|
+
onOutsideClick: () => void;
|
|
10105
|
+
}
|
|
10106
|
+
export function useClickOutside<T extends HTMLElement>({ onInsideClick, onOutsideClick, }: IClickHandles): import("react").MutableRefObject<T>;
|
|
10107
|
+
}
|
|
9651
10108
|
declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
|
|
9652
10109
|
import { LocationDescriptor } from 'history';
|
|
9653
10110
|
import { FC, ReactNode } from 'react';
|
|
@@ -9751,7 +10208,7 @@ declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton"
|
|
|
9751
10208
|
import { FC } from 'react';
|
|
9752
10209
|
export const ContentWithShowMoreButton: FC<{
|
|
9753
10210
|
domIdentifier: string;
|
|
9754
|
-
trimContent
|
|
10211
|
+
trimContent?: boolean;
|
|
9755
10212
|
className?: string;
|
|
9756
10213
|
}>;
|
|
9757
10214
|
}
|
|
@@ -9816,6 +10273,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
9816
10273
|
export * from "libs/reach/feature/content/src/common/body/ItemBodyWrapper";
|
|
9817
10274
|
export * from "libs/reach/feature/content/src/common/body/InlineFileList";
|
|
9818
10275
|
export * from "libs/reach/feature/content/src/common/body/InlineActionButtonList";
|
|
10276
|
+
export * from "libs/reach/feature/content/src/common/body/InlineObjectPluginView";
|
|
9819
10277
|
export * from "libs/reach/feature/content/src/common/body/inline-action-button/InlineActionButtonStyles";
|
|
9820
10278
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo";
|
|
9821
10279
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton";
|
|
@@ -9869,6 +10327,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
9869
10327
|
export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
|
|
9870
10328
|
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
9871
10329
|
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
10330
|
+
export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
|
|
9872
10331
|
export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
|
|
9873
10332
|
export * from "libs/reach/feature/content/src/common/sidebar/BaseSidebarItem";
|
|
9874
10333
|
export * from "libs/reach/feature/content/src/common/sidebar/SidebarGroup";
|
|
@@ -9898,13 +10357,13 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
|
|
|
9898
10357
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
9899
10358
|
getHashtagFilterRoute?: (hashtag: string) => string;
|
|
9900
10359
|
highlight?: boolean;
|
|
9901
|
-
isInitialLiked?: boolean;
|
|
9902
10360
|
hasUnreadReplies?: boolean;
|
|
9903
10361
|
onReplyIconClick?: () => void;
|
|
9904
10362
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9905
10363
|
replyCount?: number;
|
|
9906
10364
|
readOnly?: boolean;
|
|
9907
10365
|
trimContent?: boolean;
|
|
10366
|
+
enableModalRouting?: boolean;
|
|
9908
10367
|
className?: string;
|
|
9909
10368
|
}
|
|
9910
10369
|
export const CommentDisplay: FC<Props>;
|
|
@@ -10132,6 +10591,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
10132
10591
|
onReplyAdded: () => void;
|
|
10133
10592
|
onReplyDeleted: () => void;
|
|
10134
10593
|
trimContent?: boolean;
|
|
10594
|
+
enableModalRouting?: boolean;
|
|
10135
10595
|
}
|
|
10136
10596
|
export const PostReplies: FC<Props>;
|
|
10137
10597
|
}
|
|
@@ -10199,6 +10659,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
10199
10659
|
baseTargetUrl?: string;
|
|
10200
10660
|
}
|
|
10201
10661
|
export const PostDisplay: FC<Props>;
|
|
10662
|
+
export const PostDisplayWithModalRouting: FC<Props>;
|
|
10202
10663
|
}
|
|
10203
10664
|
declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
|
|
10204
10665
|
import { FC } from 'react';
|
|
@@ -11057,6 +11518,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11057
11518
|
poll?: import("@livetiles/reach/util/common").Poll;
|
|
11058
11519
|
searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
|
|
11059
11520
|
})[];
|
|
11521
|
+
export function updateStreamItemStatistics(items: StreamItem[], updatedItem: StreamItem): StreamItem[];
|
|
11060
11522
|
}
|
|
11061
11523
|
declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
11062
11524
|
import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
@@ -11081,6 +11543,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
11081
11543
|
};
|
|
11082
11544
|
refresh: () => Promise<void>;
|
|
11083
11545
|
isLoadingFirstPage: boolean;
|
|
11546
|
+
refetchItem: (itemId: string) => Promise<void>;
|
|
11084
11547
|
};
|
|
11085
11548
|
export function hasFilter(filter?: StreamFilterDefinition): boolean;
|
|
11086
11549
|
export const getStreamQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
|
|
@@ -11219,8 +11682,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11219
11682
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11220
11683
|
export type ShareTokenType = 'preview' | 'published';
|
|
11221
11684
|
export function useShareTokenEditorApi(): {
|
|
11222
|
-
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11223
|
-
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11685
|
+
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
|
|
11686
|
+
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
|
|
11224
11687
|
};
|
|
11225
11688
|
}
|
|
11226
11689
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
@@ -11231,9 +11694,9 @@ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
|
11231
11694
|
cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
|
|
11232
11695
|
uncancelEvent: (id: string) => Promise<unknown>;
|
|
11233
11696
|
unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
|
|
11234
|
-
deleteEventPermanently: (eventId: string) =>
|
|
11697
|
+
deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11235
11698
|
saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
|
|
11236
|
-
deleteModifiedRecurrence: (eventId: string) =>
|
|
11699
|
+
deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11237
11700
|
};
|
|
11238
11701
|
}
|
|
11239
11702
|
declare module "libs/reach/feature/content/src/editor/index" {
|
|
@@ -11801,7 +12264,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11801
12264
|
import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
|
|
11802
12265
|
import { SearchBoxProps } from "libs/reach/ui/common/src/index";
|
|
11803
12266
|
import { MainContentPanelProps } from "apps/reach-app/src/app/chrome/MainContentPanel";
|
|
11804
|
-
export interface
|
|
12267
|
+
export interface PageProps extends SearchBoxProps {
|
|
11805
12268
|
className?: string;
|
|
11806
12269
|
headerContents?: JSX.Element;
|
|
11807
12270
|
headerToolbar?: HeaderToolbarTypeHack;
|
|
@@ -11819,12 +12282,14 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11819
12282
|
submenuContents?: JSX.Element;
|
|
11820
12283
|
submenuClassName?: string;
|
|
11821
12284
|
disableScrollableContainerFocus?: boolean;
|
|
12285
|
+
asModal?: boolean;
|
|
12286
|
+
domIdentifier?: string;
|
|
11822
12287
|
}
|
|
11823
12288
|
export enum MenuNavigationMode {
|
|
11824
12289
|
Collapse = 0,
|
|
11825
12290
|
KeepOpen = 1
|
|
11826
12291
|
}
|
|
11827
|
-
export const Page: FC<
|
|
12292
|
+
export const Page: FC<PageProps>;
|
|
11828
12293
|
}
|
|
11829
12294
|
declare module "apps/reach-app/src/plugins/reach-chrome" {
|
|
11830
12295
|
import { Page } from "apps/reach-app/src/app/chrome/Page";
|