@livetiles/reach-plugin-types 0.5.0-preview.16 → 0.5.0-preview.161
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 -90
- 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,11 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1236
1464
|
primaryColor: string;
|
|
1237
1465
|
secondaryColor: string;
|
|
1238
1466
|
useHighlightColorOnWhiteBackground?: boolean;
|
|
1467
|
+
customFontColors?: CustomColor[];
|
|
1468
|
+
}
|
|
1469
|
+
export interface CustomColor {
|
|
1470
|
+
id: string;
|
|
1471
|
+
value: string;
|
|
1239
1472
|
}
|
|
1240
1473
|
export interface WebHook {
|
|
1241
1474
|
id: string;
|
|
@@ -1274,9 +1507,19 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1274
1507
|
subscriptionId: string;
|
|
1275
1508
|
subscriptionName: string;
|
|
1276
1509
|
}
|
|
1277
|
-
export
|
|
1278
|
-
|
|
1279
|
-
|
|
1510
|
+
export enum ExtensionArea {
|
|
1511
|
+
global = "Global",
|
|
1512
|
+
page = "Page",
|
|
1513
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
1514
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
1515
|
+
itemEditor = "ItemEditor"
|
|
1516
|
+
}
|
|
1517
|
+
export type InlinePlugin = {
|
|
1518
|
+
area: ExtensionArea.itemEditor;
|
|
1519
|
+
objectButton: PluginObjectButton;
|
|
1520
|
+
};
|
|
1521
|
+
export type PagePlugin = {
|
|
1522
|
+
area: ExtensionArea.page;
|
|
1280
1523
|
route: string;
|
|
1281
1524
|
navigationNode?: {
|
|
1282
1525
|
componentName?: string;
|
|
@@ -1286,7 +1529,20 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1286
1529
|
[key: string]: string;
|
|
1287
1530
|
};
|
|
1288
1531
|
};
|
|
1289
|
-
}
|
|
1532
|
+
};
|
|
1533
|
+
export type PluginExtension = {
|
|
1534
|
+
area: ExtensionArea;
|
|
1535
|
+
componentName: string;
|
|
1536
|
+
} & (InlinePlugin | PagePlugin);
|
|
1537
|
+
export type PluginObjectButton = {
|
|
1538
|
+
buttonLabel: {
|
|
1539
|
+
defaultLabel: string;
|
|
1540
|
+
translations?: {
|
|
1541
|
+
[key: string]: string;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
iconName: string;
|
|
1545
|
+
};
|
|
1290
1546
|
export interface PluginNotificationDefinitions {
|
|
1291
1547
|
key: string;
|
|
1292
1548
|
title: string;
|
|
@@ -1390,6 +1646,8 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1390
1646
|
pluginNotifications: {
|
|
1391
1647
|
[key: string]: NotificationType;
|
|
1392
1648
|
};
|
|
1649
|
+
newsEditor: NotificationType;
|
|
1650
|
+
eventEditor: NotificationType;
|
|
1393
1651
|
}
|
|
1394
1652
|
export interface RequestUser extends BasicUserInformation {
|
|
1395
1653
|
tenantId: string;
|
|
@@ -1490,6 +1748,7 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1490
1748
|
user: UserSummary;
|
|
1491
1749
|
type: SubscriptionJoinResultType;
|
|
1492
1750
|
message?: string;
|
|
1751
|
+
isSuccess?: boolean;
|
|
1493
1752
|
}
|
|
1494
1753
|
export interface UserActivationResult {
|
|
1495
1754
|
type: UserActivationResultType;
|
|
@@ -1931,6 +2190,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
|
|
|
1931
2190
|
}
|
|
1932
2191
|
}
|
|
1933
2192
|
declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
2193
|
+
import { Api } from 'restful.js';
|
|
1934
2194
|
import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
|
|
1935
2195
|
export class ClientFactoryInstance {
|
|
1936
2196
|
private env;
|
|
@@ -1941,7 +2201,7 @@ declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
|
1941
2201
|
constructor(env: EnvironmentConfig, apiEndpoint: string, getToken: () => Promise<string>, handleError?: (error: any, config: {
|
|
1942
2202
|
url: string;
|
|
1943
2203
|
}) => Promise<unknown>);
|
|
1944
|
-
createApi: (useAsUnauthorized: boolean, subscriptionId?: string) =>
|
|
2204
|
+
createApi: (useAsUnauthorized: boolean, subscriptionId?: string) => Api;
|
|
1945
2205
|
private createApiInternal;
|
|
1946
2206
|
private addRequestTimeLogger;
|
|
1947
2207
|
createApiUrl: (url: string, query?: {
|
|
@@ -2521,6 +2781,8 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
|
|
|
2521
2781
|
updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
|
|
2522
2782
|
deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
|
|
2523
2783
|
importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
|
|
2784
|
+
refreshApiKey: (apiKeyId: string, expiryDate: string) => Promise<Response>;
|
|
2785
|
+
requestApiKey: (email: string, displayName: string, expiryDate: string) => Promise<Response>;
|
|
2524
2786
|
};
|
|
2525
2787
|
}
|
|
2526
2788
|
declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
|
|
@@ -2711,7 +2973,7 @@ declare module "libs/reach/util/common/src/plugins/usePluginApi" {
|
|
|
2711
2973
|
getPluginFileUrl: (pluginId: string, bundleUrl?: string, bundleModificationDate?: string) => string;
|
|
2712
2974
|
saveDefinition: (plugin: WebPluginDefinition) => Promise<unknown>;
|
|
2713
2975
|
saveFile: (pluginId: string, file: File) => Promise<Response>;
|
|
2714
|
-
generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<
|
|
2976
|
+
generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<string>;
|
|
2715
2977
|
linkPlugin: (pluginId: string, settings: Record<string, string>) => Promise<any>;
|
|
2716
2978
|
unlinkPlugin: (pluginId: string) => Promise<any>;
|
|
2717
2979
|
};
|
|
@@ -2817,17 +3079,15 @@ declare module "libs/reach/util/common/src/Models" {
|
|
|
2817
3079
|
}
|
|
2818
3080
|
}
|
|
2819
3081
|
declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
2820
|
-
import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
3082
|
+
import { ExtensionArea, PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
2821
3083
|
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
3084
|
export interface PluginNavigationNodeProps {
|
|
2829
3085
|
navigationNodeProps?: PageNavigationNodeProps;
|
|
2830
3086
|
}
|
|
3087
|
+
export type EmbeddedPluginProps = PluginProps & {
|
|
3088
|
+
isEditMode?: boolean;
|
|
3089
|
+
componentInstanceId: string;
|
|
3090
|
+
};
|
|
2831
3091
|
export type PluginProps = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2832
3092
|
type DevPlugin = {
|
|
2833
3093
|
pluginId: string;
|
|
@@ -2881,22 +3141,11 @@ declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
|
|
|
2881
3141
|
}
|
|
2882
3142
|
declare module "libs/reach/util/common/src/plugins/Plugins" {
|
|
2883
3143
|
import { FC } from 'react';
|
|
2884
|
-
import { ExtensionArea } from "libs/reach/util/common/src/
|
|
3144
|
+
import { ExtensionArea } from "libs/reach/util/common/src/user/Subscription";
|
|
2885
3145
|
export const Plugins: FC<{
|
|
2886
3146
|
area: ExtensionArea;
|
|
2887
3147
|
} & any>;
|
|
2888
3148
|
}
|
|
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
3149
|
declare module "libs/reach/util/common/src/theme/ColorGenerator" {
|
|
2901
3150
|
export class Color {
|
|
2902
3151
|
private r;
|
|
@@ -2946,11 +3195,6 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
2946
3195
|
neutralTertiary: string;
|
|
2947
3196
|
neutralTertiaryAlt: string;
|
|
2948
3197
|
neutralQuaternary: string;
|
|
2949
|
-
/**
|
|
2950
|
-
* Theme Service applies custom themes.
|
|
2951
|
-
* Accommodates overriding the custom UI Fabric default styles which
|
|
2952
|
-
* are not automatically applied (e.g. ms-bgColor-themePrimary) via load-themed-styles
|
|
2953
|
-
*/
|
|
2954
3198
|
neutralQuaternaryAlt: string;
|
|
2955
3199
|
neutralLight: string;
|
|
2956
3200
|
neutralLighter: string;
|
|
@@ -3012,6 +3256,10 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
3012
3256
|
onSecondary?: string;
|
|
3013
3257
|
onAccent?: string;
|
|
3014
3258
|
default?: string;
|
|
3259
|
+
custom?: {
|
|
3260
|
+
key: string;
|
|
3261
|
+
value: string;
|
|
3262
|
+
}[];
|
|
3015
3263
|
}
|
|
3016
3264
|
export function getDarkAltColor(color: string): string;
|
|
3017
3265
|
export function getTextColor(bgColor: string): "#333333" | "#ffffff";
|
|
@@ -3099,7 +3347,7 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
3099
3347
|
export const videoAttachmentRoundedCornerSize = 20;
|
|
3100
3348
|
export const inlinePageBannerRoundedCornerSize = 5;
|
|
3101
3349
|
export const feedbackButtonHeight = 32;
|
|
3102
|
-
export const mainScrollableContainerSelector = "lt-reach-main-content";
|
|
3350
|
+
export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
|
|
3103
3351
|
export const statusColors: {
|
|
3104
3352
|
draft: string;
|
|
3105
3353
|
ready: string;
|
|
@@ -3113,6 +3361,25 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
3113
3361
|
export const managePagesRowHeight = 40;
|
|
3114
3362
|
export const mobilePreviewWidth = 414;
|
|
3115
3363
|
}
|
|
3364
|
+
declare module "libs/reach/util/common/src/plugins/Plugin" {
|
|
3365
|
+
import { FC } from 'react';
|
|
3366
|
+
import { PluginProps } from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
3367
|
+
export const Plugin: FC<PluginProps & {
|
|
3368
|
+
showDetailedErrorMessage?: boolean;
|
|
3369
|
+
} & any>;
|
|
3370
|
+
}
|
|
3371
|
+
declare module "libs/reach/util/common/src/plugins/index" {
|
|
3372
|
+
export * from "libs/reach/util/common/src/plugins/PluginContext";
|
|
3373
|
+
export * from "libs/reach/util/common/src/plugins/PluginWrapper";
|
|
3374
|
+
export * from "libs/reach/util/common/src/plugins/Plugins";
|
|
3375
|
+
export * from "libs/reach/util/common/src/plugins/Plugin";
|
|
3376
|
+
export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
|
|
3377
|
+
export * from "libs/reach/util/common/src/plugins/usePluginApi";
|
|
3378
|
+
export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
3379
|
+
export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
|
|
3380
|
+
export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
3381
|
+
export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
3382
|
+
}
|
|
3116
3383
|
declare module "libs/reach/util/common/src/notification/NotificationContext" {
|
|
3117
3384
|
import { FC, ReactNode } from 'react';
|
|
3118
3385
|
import { ToastOptions } from 'react-toastify';
|
|
@@ -3215,6 +3482,15 @@ declare module "libs/reach/util/common/src/ImageDetails" {
|
|
|
3215
3482
|
width?: number;
|
|
3216
3483
|
height?: number;
|
|
3217
3484
|
}
|
|
3485
|
+
export interface ImageWithAlignment extends ImageDetails {
|
|
3486
|
+
imageAlignment?: ImageAlignment;
|
|
3487
|
+
}
|
|
3488
|
+
export enum ImageAlignment {
|
|
3489
|
+
Default = "default",
|
|
3490
|
+
Left = "left",
|
|
3491
|
+
Right = "right",
|
|
3492
|
+
Center = "center"
|
|
3493
|
+
}
|
|
3218
3494
|
}
|
|
3219
3495
|
declare module "libs/reach/util/common/src/MainContentPanelContext" {
|
|
3220
3496
|
export interface MainPanelContextType {
|
|
@@ -3265,6 +3541,35 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
|
|
|
3265
3541
|
static create(): GenericAccessDeniedTriggerAction;
|
|
3266
3542
|
}
|
|
3267
3543
|
}
|
|
3544
|
+
declare module "libs/reach/util/common/src/useModalRouting" {
|
|
3545
|
+
export interface ModalRouting {
|
|
3546
|
+
isActive: boolean;
|
|
3547
|
+
itemId: string;
|
|
3548
|
+
backgroundLocation: any;
|
|
3549
|
+
}
|
|
3550
|
+
export function useModalRouting(): {
|
|
3551
|
+
isModalRoutingActive: boolean;
|
|
3552
|
+
modalItemId: string;
|
|
3553
|
+
backgroundLocation: any;
|
|
3554
|
+
};
|
|
3555
|
+
export function useModalRoutingSettings(): (itemId: string) => {
|
|
3556
|
+
modalRouting: {
|
|
3557
|
+
isActive: boolean;
|
|
3558
|
+
itemId: string;
|
|
3559
|
+
backgroundLocation: {
|
|
3560
|
+
state: {
|
|
3561
|
+
modalRouting: {
|
|
3562
|
+
isActive: boolean;
|
|
3563
|
+
};
|
|
3564
|
+
};
|
|
3565
|
+
pathname: string;
|
|
3566
|
+
search: string;
|
|
3567
|
+
hash: string;
|
|
3568
|
+
key?: string;
|
|
3569
|
+
};
|
|
3570
|
+
};
|
|
3571
|
+
};
|
|
3572
|
+
}
|
|
3268
3573
|
declare module "libs/reach/util/common/src/index" {
|
|
3269
3574
|
export { initializeIcons } from 'office-ui-fabric-react';
|
|
3270
3575
|
export * from "libs/reach/util/common/src/FocusStyles";
|
|
@@ -3274,6 +3579,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3274
3579
|
export * from "libs/reach/util/common/src/SortDirection";
|
|
3275
3580
|
export * from "libs/reach/util/common/src/useCacheLanguageApi";
|
|
3276
3581
|
export * from "libs/reach/util/common/src/resources/ResourceContextProvider";
|
|
3582
|
+
export * from "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter";
|
|
3277
3583
|
export * from "libs/reach/util/common/src/user/index";
|
|
3278
3584
|
export * from "libs/reach/util/common/src/plugins/index";
|
|
3279
3585
|
export * from "libs/reach/util/common/src/theme/index";
|
|
@@ -3292,6 +3598,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3292
3598
|
export * from "libs/reach/util/common/src/useBaseRoute";
|
|
3293
3599
|
export * from "libs/reach/util/common/src/ForbiddenErrorTriggerAction";
|
|
3294
3600
|
export * from "libs/reach/util/common/src/AccessDeniedIntercept";
|
|
3601
|
+
export * from "libs/reach/util/common/src/useModalRouting";
|
|
3295
3602
|
}
|
|
3296
3603
|
declare module "libs/reach/ui/common/src/Link" {
|
|
3297
3604
|
import { Link as RouterLink } from 'react-router-dom';
|
|
@@ -3428,7 +3735,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3428
3735
|
export const PeoplePicker: FC<Props>;
|
|
3429
3736
|
}
|
|
3430
3737
|
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";
|
|
3738
|
+
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
3739
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3433
3740
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3434
3741
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3445,7 +3752,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3445
3752
|
* @deprecated Please use `usePluginDeviceStore` instead
|
|
3446
3753
|
*/
|
|
3447
3754
|
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, };
|
|
3755
|
+
export type { Account, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, EmbeddedPluginProps, };
|
|
3449
3756
|
}
|
|
3450
3757
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
3451
3758
|
import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
|
|
@@ -3716,7 +4023,9 @@ declare module "libs/reach/ui/common/src/common/UiUtils" {
|
|
|
3716
4023
|
}[]>;
|
|
3717
4024
|
export function getFileIcon(filename: string): string;
|
|
3718
4025
|
export function getIconColor(fileIcon: string): "#1C5FC0" | "#138147" | "#CA4B27" | "#1C5FBF" | "#CF1700" | "#000";
|
|
4026
|
+
export function getFileIconHorizontalTransform(fileIcon: string): -55 | -50;
|
|
3719
4027
|
export function getFileIconByExtension(extension: string): "Page" | "Video" | "MusicInCollectionFill" | "VisioDocument" | "ZipFolder" | "PDF" | "WordDocument" | "ExcelDocument" | "PowerPointDocument" | "FileImage";
|
|
4028
|
+
export function getMainScrollableContainer(): HTMLElement;
|
|
3720
4029
|
}
|
|
3721
4030
|
declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
|
|
3722
4031
|
export function useFileAccessTokenApi(): {
|
|
@@ -4026,7 +4335,7 @@ declare module "libs/reach/ui/common/src/common/ToggleWithLabel" {
|
|
|
4026
4335
|
export const ToggleWithLabel: FC<IToggleProps>;
|
|
4027
4336
|
}
|
|
4028
4337
|
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>>;
|
|
4338
|
+
export const unreadCommentHighlight: (top?: string) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
4030
4339
|
}
|
|
4031
4340
|
declare module "libs/reach/ui/common/src/common/UserUtility" {
|
|
4032
4341
|
import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
|
|
@@ -4345,6 +4654,9 @@ declare module "libs/reach/ui/common/src/common/grid/Grid" {
|
|
|
4345
4654
|
className?: string;
|
|
4346
4655
|
}>;
|
|
4347
4656
|
}
|
|
4657
|
+
declare module "libs/reach/ui/common/src/common/hooks/useIsMounted" {
|
|
4658
|
+
export const useIsMounted: () => () => boolean;
|
|
4659
|
+
}
|
|
4348
4660
|
declare module "libs/reach/ui/common/src/common/hooks/usePagination" {
|
|
4349
4661
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
4350
4662
|
import { DependencyList, SetStateAction } from 'react';
|
|
@@ -4825,6 +5137,7 @@ declare module "libs/reach/ui/common/src/common/index" {
|
|
|
4825
5137
|
export * from "libs/reach/ui/common/src/common/grid/Grid";
|
|
4826
5138
|
export * from "libs/reach/ui/common/src/common/hooks/usePagination";
|
|
4827
5139
|
export * from "libs/reach/ui/common/src/common/hooks/useUserPropertyDefinitionsHandler";
|
|
5140
|
+
export * from "libs/reach/ui/common/src/common/hooks/useIsMounted";
|
|
4828
5141
|
export * from "libs/reach/ui/common/src/common/icon-with-callout/IconWithCallout";
|
|
4829
5142
|
export * from "libs/reach/ui/common/src/common/inlineObjectsClassNames";
|
|
4830
5143
|
export * from "libs/reach/ui/common/src/common/isNullOrWhitespaceUtil";
|
|
@@ -4908,7 +5221,7 @@ declare module "libs/reach/ui/common/src/index" {
|
|
|
4908
5221
|
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
4909
5222
|
}
|
|
4910
5223
|
declare module "apps/reach-app/src/app/chrome/CloseButton" {
|
|
4911
|
-
import { FC } from 'react';
|
|
5224
|
+
import { FC, DependencyList } from 'react';
|
|
4912
5225
|
export interface Props {
|
|
4913
5226
|
navigateTo: string;
|
|
4914
5227
|
onClose?: () => void;
|
|
@@ -4917,7 +5230,7 @@ declare module "apps/reach-app/src/app/chrome/CloseButton" {
|
|
|
4917
5230
|
className?: string;
|
|
4918
5231
|
}
|
|
4919
5232
|
export const CloseButton: FC<Props>;
|
|
4920
|
-
export function useEscapeOnClose(onClose: () => void): void;
|
|
5233
|
+
export function useEscapeOnClose(onClose: () => void, deps?: DependencyList): void;
|
|
4921
5234
|
}
|
|
4922
5235
|
declare module "apps/reach-app/src/app/common/LogoStyles" {
|
|
4923
5236
|
export const LogoHostStyle: (size?: {
|
|
@@ -4981,8 +5294,9 @@ declare module "apps/reach-app/src/app/SkipLinksContext" {
|
|
|
4981
5294
|
export const SkipLinksContextProvider: FC;
|
|
4982
5295
|
}
|
|
4983
5296
|
declare module "apps/reach-app/src/app/useAddSkipLinks" {
|
|
5297
|
+
import { DependencyList } from 'react';
|
|
4984
5298
|
import { SkipLink } from "apps/reach-app/src/app/SkipLinksContext";
|
|
4985
|
-
export function useAddSkipLinks(
|
|
5299
|
+
export function useAddSkipLinks(skipLinks: SkipLink[], deps?: DependencyList): void;
|
|
4986
5300
|
}
|
|
4987
5301
|
declare module "apps/reach-app/src/app/chrome/MainContentPanel" {
|
|
4988
5302
|
import { FC } from 'react';
|
|
@@ -5033,6 +5347,8 @@ declare module "apps/reach-app/src/app/chrome/BasicPage" {
|
|
|
5033
5347
|
closeButtonOptions?: CloseButtonOptions;
|
|
5034
5348
|
showSearchBox?: boolean;
|
|
5035
5349
|
disableScrollableContainerFocus?: boolean;
|
|
5350
|
+
asModal?: boolean;
|
|
5351
|
+
domIdentifier?: string;
|
|
5036
5352
|
}
|
|
5037
5353
|
export const BasicPage: FC<Props>;
|
|
5038
5354
|
}
|
|
@@ -5167,6 +5483,7 @@ declare module "apps/reach-app/src/app/admin/themes/ContrastInfo" {
|
|
|
5167
5483
|
foregroundColor: string;
|
|
5168
5484
|
backgroundColor: string;
|
|
5169
5485
|
className?: string;
|
|
5486
|
+
showInfoIcon?: boolean;
|
|
5170
5487
|
}>;
|
|
5171
5488
|
}
|
|
5172
5489
|
declare module "apps/reach-app/src/app/admin/themes/ColorButton" {
|
|
@@ -5189,6 +5506,14 @@ declare module "apps/reach-app/src/app/admin/themes/ThemeContrastPreview" {
|
|
|
5189
5506
|
foregroundColor: string;
|
|
5190
5507
|
}>;
|
|
5191
5508
|
}
|
|
5509
|
+
declare module "apps/reach-app/src/app/admin/themes/CustomFontColors" {
|
|
5510
|
+
import { FC } from 'react';
|
|
5511
|
+
import { CustomColor, Theme } from "libs/reach/util/common/src/index";
|
|
5512
|
+
export const CustomFontColors: FC<{
|
|
5513
|
+
theme: Theme;
|
|
5514
|
+
onApply?: (colors: CustomColor[]) => void;
|
|
5515
|
+
}>;
|
|
5516
|
+
}
|
|
5192
5517
|
declare module "apps/reach-app/src/app/admin/themes/Themes" {
|
|
5193
5518
|
import { FC } from 'react';
|
|
5194
5519
|
export const Themes: FC;
|
|
@@ -6213,7 +6538,7 @@ declare module "apps/reach-app/src/app/user/useSelfRegistrationApi" {
|
|
|
6213
6538
|
import { UserRegistrationResult } from "libs/reach/util/common/src/index";
|
|
6214
6539
|
import { SelfRegistrationOptions } from "libs/reach/util/common/src/index";
|
|
6215
6540
|
export function useSelfRegistrationApi(): {
|
|
6216
|
-
changeRegistrationStatus: (upn: string, doAccept: boolean) =>
|
|
6541
|
+
changeRegistrationStatus: (upn: string, doAccept: boolean) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6217
6542
|
hasUserPendingRegistration: (subscriptionId: string, upn: string) => Promise<boolean>;
|
|
6218
6543
|
register: (subscriptionId: string, mail: string, displayName: string) => Promise<UserRegistrationResult>;
|
|
6219
6544
|
updateSelfRegistrationOptions: (config: Partial<SelfRegistrationOptions>) => Promise<unknown>;
|
|
@@ -6269,6 +6594,15 @@ declare module "apps/reach-app/src/app/admin/users/EditUserButton" {
|
|
|
6269
6594
|
onSaved: (newProperties: UpdatableUserProperties) => void;
|
|
6270
6595
|
}>;
|
|
6271
6596
|
}
|
|
6597
|
+
declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyDialog" {
|
|
6598
|
+
import { FC } from 'react';
|
|
6599
|
+
import { UserItem } from "apps/reach-app/src/app/admin/users/UserList";
|
|
6600
|
+
export const GenerateApiKeyDialog: FC<{
|
|
6601
|
+
onApiKeyAdded?: () => void;
|
|
6602
|
+
onDismiss: () => void;
|
|
6603
|
+
user?: UserItem;
|
|
6604
|
+
}>;
|
|
6605
|
+
}
|
|
6272
6606
|
declare module "apps/reach-app/src/app/admin/users/UserList" {
|
|
6273
6607
|
import { Account, GroupRoles, GroupUser, SortDefinition, UpdatableUserProperties, UserSummary } from "libs/reach/util/common/src/index";
|
|
6274
6608
|
import './UserList.scss';
|
|
@@ -6292,7 +6626,12 @@ declare module "apps/reach-app/src/app/admin/users/UserList" {
|
|
|
6292
6626
|
isLoading?: boolean;
|
|
6293
6627
|
isEmpty?: boolean;
|
|
6294
6628
|
emptyPlaceholder?: ReactNode;
|
|
6629
|
+
onKeyChanged?: () => void;
|
|
6295
6630
|
}
|
|
6631
|
+
export type UserItem = Account & UserSummary & GroupUser & {
|
|
6632
|
+
accountType: string;
|
|
6633
|
+
lastLogin: string | JSX.Element;
|
|
6634
|
+
};
|
|
6296
6635
|
export const UserList: FC<Props>;
|
|
6297
6636
|
}
|
|
6298
6637
|
declare module "apps/reach-app/src/app/InfiniteScrollingStatus" {
|
|
@@ -6325,12 +6664,6 @@ declare module "apps/reach-app/src/app/admin/users/ExportUserButton" {
|
|
|
6325
6664
|
className?: string;
|
|
6326
6665
|
}>;
|
|
6327
6666
|
}
|
|
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
6667
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
|
|
6335
6668
|
import { FC } from 'react';
|
|
6336
6669
|
import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
|
|
@@ -6350,18 +6683,42 @@ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersP
|
|
|
6350
6683
|
}
|
|
6351
6684
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
|
|
6352
6685
|
import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
|
|
6686
|
+
export enum ValidationStatus {
|
|
6687
|
+
Valid = 0,
|
|
6688
|
+
WithErrors = 1,
|
|
6689
|
+
WithUserErrors = 2
|
|
6690
|
+
}
|
|
6691
|
+
export type CsvValidation = {
|
|
6692
|
+
Status?: ValidationStatus;
|
|
6693
|
+
Message?: string;
|
|
6694
|
+
InvalidItems?: string[];
|
|
6695
|
+
};
|
|
6353
6696
|
export function useUserCsvInviter(): {
|
|
6354
6697
|
invitedUsers: UserImport[];
|
|
6355
6698
|
isValidating: boolean;
|
|
6356
6699
|
isCsvValid: boolean;
|
|
6357
6700
|
parseCsvFile: (csvFile: File) => void;
|
|
6358
|
-
|
|
6359
|
-
|
|
6701
|
+
csvValidation: CsvValidation;
|
|
6702
|
+
setCsvValidation: (status: ValidationStatus, message: string, invalidItems?: string[]) => void;
|
|
6360
6703
|
inviteUsers: (onSuccess?: () => void) => Promise<void>;
|
|
6361
6704
|
isParserReady: boolean;
|
|
6362
|
-
|
|
6705
|
+
isInviting: boolean;
|
|
6706
|
+
canInvite: boolean;
|
|
6707
|
+
csvFile: File;
|
|
6363
6708
|
};
|
|
6364
6709
|
}
|
|
6710
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/csvUtils" {
|
|
6711
|
+
export function createCsvUrl(header: string, content: string): string;
|
|
6712
|
+
}
|
|
6713
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/CsvFileValidationResult" {
|
|
6714
|
+
import { FC } from 'react';
|
|
6715
|
+
import { CsvValidation } from "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter";
|
|
6716
|
+
import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
|
|
6717
|
+
export const CsvFileValidationResult: FC<{
|
|
6718
|
+
csvValidation: CsvValidation;
|
|
6719
|
+
invitedUsers: UserImport[];
|
|
6720
|
+
}>;
|
|
6721
|
+
}
|
|
6365
6722
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
|
|
6366
6723
|
import { FC } from 'react';
|
|
6367
6724
|
export const ImportUserButton: FC<{
|
|
@@ -6399,29 +6756,28 @@ declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
|
6399
6756
|
}
|
|
6400
6757
|
declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
6401
6758
|
import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
|
|
6402
|
-
export class
|
|
6759
|
+
export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
|
|
6403
6760
|
static type: string;
|
|
6404
6761
|
type: string;
|
|
6405
6762
|
itemId: string;
|
|
6406
6763
|
response: EventResponse;
|
|
6407
6764
|
locationId: string;
|
|
6408
6765
|
onBehalfOfUpn: string;
|
|
6409
|
-
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string):
|
|
6766
|
+
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
|
|
6410
6767
|
}
|
|
6411
|
-
export class
|
|
6768
|
+
export class EventResponseTriggerAction implements AppTriggerAction {
|
|
6412
6769
|
static type: string;
|
|
6413
6770
|
type: string;
|
|
6414
|
-
|
|
6771
|
+
itemId: string;
|
|
6415
6772
|
response: EventResponse;
|
|
6416
|
-
static create(
|
|
6773
|
+
static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
|
|
6417
6774
|
}
|
|
6418
|
-
export class
|
|
6775
|
+
export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
|
|
6419
6776
|
static type: string;
|
|
6420
6777
|
type: string;
|
|
6421
6778
|
recurrenceSeriesId: string;
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
static create(recurrenceSeriesId: string, itemId: string, isLiked: boolean): LikeFullSeriesTriggerAction;
|
|
6779
|
+
response: EventResponse;
|
|
6780
|
+
static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
|
|
6425
6781
|
}
|
|
6426
6782
|
export class FollowCommentsTriggerAction implements AppTriggerAction {
|
|
6427
6783
|
static type: string;
|
|
@@ -6436,6 +6792,14 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6436
6792
|
followByDefault: boolean;
|
|
6437
6793
|
static create(followState: boolean): AutoFollowPostsTriggerAction;
|
|
6438
6794
|
}
|
|
6795
|
+
export class AutoLikeItemTriggerAction implements AppTriggerAction {
|
|
6796
|
+
static type: string;
|
|
6797
|
+
type: string;
|
|
6798
|
+
recurrenceSeriesId: string;
|
|
6799
|
+
isLiked: boolean;
|
|
6800
|
+
likeCount: number;
|
|
6801
|
+
static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
|
|
6802
|
+
}
|
|
6439
6803
|
export class DeletedItemsTriggerAction implements AppTriggerAction {
|
|
6440
6804
|
static type: string;
|
|
6441
6805
|
type: string;
|
|
@@ -6456,6 +6820,18 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6456
6820
|
type: string;
|
|
6457
6821
|
static create(): StreamMarkAllAsReadAction;
|
|
6458
6822
|
}
|
|
6823
|
+
export class RefetchItemAction implements AppTriggerAction {
|
|
6824
|
+
static type: string;
|
|
6825
|
+
type: string;
|
|
6826
|
+
itemId: string;
|
|
6827
|
+
static create(itemId: string): RefetchItemAction;
|
|
6828
|
+
}
|
|
6829
|
+
export class RefetchStreamItemAction implements AppTriggerAction {
|
|
6830
|
+
static type: string;
|
|
6831
|
+
type: string;
|
|
6832
|
+
itemId: string;
|
|
6833
|
+
static create(itemId: string): RefetchStreamItemAction;
|
|
6834
|
+
}
|
|
6459
6835
|
}
|
|
6460
6836
|
declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
6461
6837
|
export interface CommentFilter {
|
|
@@ -6472,19 +6848,20 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
|
6472
6848
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
6473
6849
|
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
6474
6850
|
import { Attachment } from "libs/reach/util/common/src/index";
|
|
6851
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
6475
6852
|
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
6476
6853
|
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) =>
|
|
6854
|
+
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6855
|
+
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6856
|
+
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6857
|
+
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6858
|
+
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
6859
|
+
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
6483
6860
|
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) =>
|
|
6861
|
+
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6862
|
+
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6486
6863
|
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
6487
|
-
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) =>
|
|
6864
|
+
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6488
6865
|
onCommentCreated$: import("rxjs").Observable<string>;
|
|
6489
6866
|
};
|
|
6490
6867
|
}
|
|
@@ -6615,7 +6992,7 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6615
6992
|
import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
6616
6993
|
import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
6617
6994
|
import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
6618
|
-
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition {
|
|
6995
|
+
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
|
|
6619
6996
|
}
|
|
6620
6997
|
export interface BaseFilterDefinition {
|
|
6621
6998
|
search?: string;
|
|
@@ -6623,6 +7000,9 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6623
7000
|
pageSize?: string | number;
|
|
6624
7001
|
groupId?: string;
|
|
6625
7002
|
}
|
|
7003
|
+
export interface ItemIdsFilterDefinition {
|
|
7004
|
+
itemIds?: string;
|
|
7005
|
+
}
|
|
6626
7006
|
export interface IndexableFilterDefinition {
|
|
6627
7007
|
[key: string]: any;
|
|
6628
7008
|
}
|
|
@@ -6943,7 +7323,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
|
6943
7323
|
deletePost: (postId: string) => Promise<unknown>;
|
|
6944
7324
|
getPost: (postId: string, commentCount?: number) => Promise<Post>;
|
|
6945
7325
|
getPostThread: (postId: string, threadId: string) => Promise<Post>;
|
|
6946
|
-
translatePost: (postId: string, language: string) =>
|
|
7326
|
+
translatePost: (postId: string, language: string) => Promise<string>;
|
|
6947
7327
|
searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
|
|
6948
7328
|
};
|
|
6949
7329
|
}
|
|
@@ -7110,6 +7490,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
|
7110
7490
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7111
7491
|
import { FC, MouseEvent } from 'react';
|
|
7112
7492
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7493
|
+
import { LocationState } from 'history';
|
|
7113
7494
|
export const ClickableOverlay: FC<{
|
|
7114
7495
|
itemId: string;
|
|
7115
7496
|
itemType: ItemResourceTypes;
|
|
@@ -7120,6 +7501,19 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
|
7120
7501
|
onClick?: (event: MouseEvent<unknown>) => unknown;
|
|
7121
7502
|
openTargetInNewWindow?: boolean;
|
|
7122
7503
|
isExternalContent?: boolean;
|
|
7504
|
+
locationState?: LocationState;
|
|
7505
|
+
}>;
|
|
7506
|
+
}
|
|
7507
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
|
|
7508
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7509
|
+
import { FC } from 'react';
|
|
7510
|
+
export const ClickableOverlayWithModalRouting: FC<{
|
|
7511
|
+
itemId: string;
|
|
7512
|
+
itemType: ItemResourceTypes;
|
|
7513
|
+
baseRoute: string;
|
|
7514
|
+
title?: string;
|
|
7515
|
+
isExternalContent?: boolean;
|
|
7516
|
+
targetUrl?: string;
|
|
7123
7517
|
}>;
|
|
7124
7518
|
}
|
|
7125
7519
|
declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
@@ -7130,6 +7524,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
|
7130
7524
|
targetUrl?: string;
|
|
7131
7525
|
readOnly?: boolean;
|
|
7132
7526
|
backgroundColor?: string;
|
|
7527
|
+
enableModalRouting?: boolean;
|
|
7133
7528
|
className?: string;
|
|
7134
7529
|
}>;
|
|
7135
7530
|
}
|
|
@@ -7167,6 +7562,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
7167
7562
|
className?: string;
|
|
7168
7563
|
allowFilterByChannels?: boolean;
|
|
7169
7564
|
channelBackgroundColor?: string;
|
|
7565
|
+
onChannelClick?: (channel: string) => unknown;
|
|
7170
7566
|
}>;
|
|
7171
7567
|
}
|
|
7172
7568
|
declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
|
|
@@ -7226,6 +7622,7 @@ declare module "libs/reach/feature/content/src/common/banner/PublishableItemBann
|
|
|
7226
7622
|
height?: number;
|
|
7227
7623
|
hidePlayerIfActive?: boolean;
|
|
7228
7624
|
className?: string;
|
|
7625
|
+
documentIconName?: string;
|
|
7229
7626
|
}
|
|
7230
7627
|
export const PublishableItemBanner: FC<Props>;
|
|
7231
7628
|
}
|
|
@@ -7464,10 +7861,12 @@ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegi
|
|
|
7464
7861
|
}
|
|
7465
7862
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
|
|
7466
7863
|
import { FC } from 'react';
|
|
7864
|
+
import { EventResponse } from "libs/reach/util/common/src/index";
|
|
7467
7865
|
export const EventUserRegistration: FC<{
|
|
7468
7866
|
disabled?: boolean;
|
|
7469
7867
|
hideInfoMessage?: boolean;
|
|
7470
7868
|
showNoRegistrationRequired?: boolean;
|
|
7869
|
+
onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
|
|
7471
7870
|
className?: string;
|
|
7472
7871
|
}>;
|
|
7473
7872
|
}
|
|
@@ -7537,8 +7936,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
|
|
|
7537
7936
|
export const CardLikeButton: FC<{
|
|
7538
7937
|
item: NewsItem | EventItem;
|
|
7539
7938
|
itemResourceType: ItemResourceTypes;
|
|
7540
|
-
|
|
7541
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
7939
|
+
onToggleLike?: (isLiked: boolean, likeCount: number) => void;
|
|
7542
7940
|
className?: string;
|
|
7543
7941
|
}>;
|
|
7544
7942
|
}
|
|
@@ -7560,6 +7958,18 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoN
|
|
|
7560
7958
|
className?: string;
|
|
7561
7959
|
}>;
|
|
7562
7960
|
}
|
|
7961
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
|
|
7962
|
+
import { FC } from 'react';
|
|
7963
|
+
export const LinkWithModalRouting: FC<{
|
|
7964
|
+
url: string;
|
|
7965
|
+
itemId: string;
|
|
7966
|
+
hash?: string;
|
|
7967
|
+
onClick?: (e: React.MouseEvent) => unknown;
|
|
7968
|
+
ariaHidden?: boolean;
|
|
7969
|
+
ariaLabel?: string;
|
|
7970
|
+
className?: string;
|
|
7971
|
+
}>;
|
|
7972
|
+
}
|
|
7563
7973
|
declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
7564
7974
|
import { FC } from 'react';
|
|
7565
7975
|
import { EventItem } from "libs/reach/util/common/src/index";
|
|
@@ -7578,6 +7988,7 @@ declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
|
7578
7988
|
allowFilterByChannels?: boolean;
|
|
7579
7989
|
showFeedbackButtons?: boolean;
|
|
7580
7990
|
readOnly?: boolean;
|
|
7991
|
+
enableModalRouting?: boolean;
|
|
7581
7992
|
className?: string;
|
|
7582
7993
|
}>;
|
|
7583
7994
|
}
|
|
@@ -7628,7 +8039,8 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
|
7628
8039
|
Contact = "contact",
|
|
7629
8040
|
InlinePageList = "inline-page-list",
|
|
7630
8041
|
UrlPreview = "url-preview",
|
|
7631
|
-
ActionButton = "action-button"
|
|
8042
|
+
ActionButton = "action-button",
|
|
8043
|
+
InlinePlugin = "inline-plugin"
|
|
7632
8044
|
}
|
|
7633
8045
|
export interface HtmlComponentMapper {
|
|
7634
8046
|
component: FC<any>;
|
|
@@ -7770,7 +8182,10 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
|
|
|
7770
8182
|
resourceKey?: string;
|
|
7771
8183
|
resourceValues?: string;
|
|
7772
8184
|
className?: string;
|
|
8185
|
+
enableModalRouting?: boolean;
|
|
8186
|
+
itemId?: string;
|
|
7773
8187
|
isOverrideLink: boolean;
|
|
8188
|
+
icon?: string;
|
|
7774
8189
|
}>;
|
|
7775
8190
|
}
|
|
7776
8191
|
declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
|
|
@@ -7829,6 +8244,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
|
|
|
7829
8244
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7830
8245
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7831
8246
|
openTargetInNewWindow?: boolean;
|
|
8247
|
+
enableModalRouting?: boolean;
|
|
7832
8248
|
className?: string;
|
|
7833
8249
|
}
|
|
7834
8250
|
export const PageItemTile: FC<Props>;
|
|
@@ -7874,6 +8290,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
7874
8290
|
onClick?: (event: MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7875
8291
|
styleDefinition?: StyleDefinition;
|
|
7876
8292
|
readOnly?: boolean;
|
|
8293
|
+
enableModalRouting?: boolean;
|
|
7877
8294
|
className?: string;
|
|
7878
8295
|
}
|
|
7879
8296
|
export const PublishableItemTileWrapper: FC<Props>;
|
|
@@ -7917,6 +8334,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7917
8334
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7918
8335
|
styleDefinition?: StyleDefinition;
|
|
7919
8336
|
readOnly?: boolean;
|
|
8337
|
+
enableModalRouting?: boolean;
|
|
7920
8338
|
className?: string;
|
|
7921
8339
|
}
|
|
7922
8340
|
export const NewsItemTile: FC<Props>;
|
|
@@ -7942,6 +8360,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
|
|
|
7942
8360
|
previewTheme?: CommentInputTheme;
|
|
7943
8361
|
buttons?: ReactNode;
|
|
7944
8362
|
groupIds?: string[];
|
|
8363
|
+
enableModalRouting?: boolean;
|
|
7945
8364
|
className?: string;
|
|
7946
8365
|
}>;
|
|
7947
8366
|
export const EmbeddedObjectAccessDeniedTile: FC<{
|
|
@@ -7958,6 +8377,7 @@ declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
|
|
|
7958
8377
|
attachments: Attachment[];
|
|
7959
8378
|
onDeleteClick?: (attachment: Attachment) => void;
|
|
7960
8379
|
previewTheme?: CommentInputTheme;
|
|
8380
|
+
enableModalRouting?: boolean;
|
|
7961
8381
|
className?: string;
|
|
7962
8382
|
}>;
|
|
7963
8383
|
}
|
|
@@ -8118,6 +8538,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
|
|
|
8118
8538
|
import { FC, ReactNode } from 'react';
|
|
8119
8539
|
export const InlineObjectToolbar: FC<{
|
|
8120
8540
|
onDelete?: () => void;
|
|
8541
|
+
deleteAriaLabelResourceKey?: string;
|
|
8121
8542
|
additionalButtons?: ReactNode;
|
|
8122
8543
|
}>;
|
|
8123
8544
|
export const InlineObjectToolbarWrapper: FC<{
|
|
@@ -8125,15 +8546,18 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
|
|
|
8125
8546
|
}>;
|
|
8126
8547
|
}
|
|
8127
8548
|
declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
|
|
8128
|
-
import { FC } from 'react';
|
|
8549
|
+
import { FC, ReactNode } from 'react';
|
|
8550
|
+
import { ImageAlignment } from "libs/reach/util/common/src/index";
|
|
8129
8551
|
export const ImageToolbar: FC<{
|
|
8130
8552
|
onDelete?: () => void;
|
|
8131
8553
|
onFullScreen?: (e: React.MouseEvent<any>) => void;
|
|
8132
8554
|
onClose?: (e: React.MouseEvent<any>) => void;
|
|
8133
8555
|
onCrop?: (e: React.MouseEvent<any>) => void;
|
|
8556
|
+
onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
|
|
8134
8557
|
showFullScreenButton?: boolean;
|
|
8135
8558
|
showCloseButton?: boolean;
|
|
8136
8559
|
showCropButton?: boolean;
|
|
8560
|
+
alignmentButtons?: ReactNode;
|
|
8137
8561
|
}>;
|
|
8138
8562
|
}
|
|
8139
8563
|
declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
|
|
@@ -8260,6 +8684,15 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
8260
8684
|
export const EditCommentWithAttachments: FC<Props>;
|
|
8261
8685
|
export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
|
|
8262
8686
|
}
|
|
8687
|
+
declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
|
|
8688
|
+
import { FC } from 'react';
|
|
8689
|
+
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8690
|
+
export const BookmarkButton: FC<{
|
|
8691
|
+
item: PublishableItem;
|
|
8692
|
+
isReadOnly?: boolean;
|
|
8693
|
+
className?: string;
|
|
8694
|
+
}>;
|
|
8695
|
+
}
|
|
8263
8696
|
declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
8264
8697
|
import { FC } from 'react';
|
|
8265
8698
|
export const CardStatisticItem: FC<{
|
|
@@ -8277,13 +8710,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
|
8277
8710
|
};
|
|
8278
8711
|
}>;
|
|
8279
8712
|
}
|
|
8280
|
-
declare module "libs/reach/feature/content/src/
|
|
8713
|
+
declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
|
|
8714
|
+
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8281
8715
|
import { FC } from 'react';
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8716
|
+
export const CardCommentButton: FC<{
|
|
8717
|
+
item: NewsItem | EventItem;
|
|
8718
|
+
itemResourceType: ItemResourceTypes;
|
|
8719
|
+
targetRoute: string;
|
|
8720
|
+
enableModalRouting?: boolean;
|
|
8287
8721
|
}>;
|
|
8288
8722
|
}
|
|
8289
8723
|
declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
@@ -8291,11 +8725,9 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
|
8291
8725
|
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8292
8726
|
export const CardFooter: FC<{
|
|
8293
8727
|
item: NewsItem | EventItem;
|
|
8294
|
-
showComments: boolean;
|
|
8295
8728
|
targetRoute: string;
|
|
8296
8729
|
itemResourceType: ItemResourceTypes;
|
|
8297
|
-
|
|
8298
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
8730
|
+
enableModalRouting?: boolean;
|
|
8299
8731
|
}>;
|
|
8300
8732
|
export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
|
|
8301
8733
|
}
|
|
@@ -8346,6 +8778,7 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
|
|
|
8346
8778
|
target?: string;
|
|
8347
8779
|
language?: string;
|
|
8348
8780
|
hideCurrentPageNode?: boolean;
|
|
8781
|
+
homeTargetUrlOverride?: string;
|
|
8349
8782
|
className?: string;
|
|
8350
8783
|
}>;
|
|
8351
8784
|
}
|
|
@@ -8545,6 +8978,7 @@ declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
|
|
|
8545
8978
|
language?: string;
|
|
8546
8979
|
buildChannelFilterUrl?: (channelName: string) => string;
|
|
8547
8980
|
clickableAvatar?: boolean;
|
|
8981
|
+
onChannelClick?: (channel: string) => unknown;
|
|
8548
8982
|
}>;
|
|
8549
8983
|
}
|
|
8550
8984
|
declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
|
|
@@ -8594,7 +9028,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
|
|
|
8594
9028
|
item: NewsItem;
|
|
8595
9029
|
baseRoute: string;
|
|
8596
9030
|
language: string;
|
|
8597
|
-
showComments: boolean;
|
|
8598
9031
|
highlight: boolean;
|
|
8599
9032
|
className?: string;
|
|
8600
9033
|
}
|
|
@@ -8701,6 +9134,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
|
|
|
8701
9134
|
}
|
|
8702
9135
|
declare module "libs/reach/feature/content/src/common/body/InlineImage" {
|
|
8703
9136
|
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9137
|
+
export const ImageAlignmentStyles: (alignment: string, width: number, preventFloat?: boolean) => string | import("styled-components").FlattenSimpleInterpolation;
|
|
8704
9138
|
export const InlineImageMapper: HtmlComponentMapper;
|
|
8705
9139
|
}
|
|
8706
9140
|
declare module "libs/reach/feature/content/src/common/body/InlineContact" {
|
|
@@ -8919,6 +9353,10 @@ declare module "libs/reach/feature/content/src/common/body/InlineActionButtonLis
|
|
|
8919
9353
|
}
|
|
8920
9354
|
export const InlineActionButtonMapper: HtmlComponentMapper;
|
|
8921
9355
|
}
|
|
9356
|
+
declare module "libs/reach/feature/content/src/common/body/InlineObjectPluginView" {
|
|
9357
|
+
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9358
|
+
export const InlineObjectPluginMapper: HtmlComponentMapper;
|
|
9359
|
+
}
|
|
8922
9360
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewPeopleInfo" {
|
|
8923
9361
|
import { FC } from 'react';
|
|
8924
9362
|
export const EventDetailViewPeopleInfo: FC;
|
|
@@ -8931,6 +9369,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
8931
9369
|
import { FC } from 'react';
|
|
8932
9370
|
export const EventDetailViewMetaInfo: FC<{
|
|
8933
9371
|
allowFilterByChannels?: boolean;
|
|
9372
|
+
onChannelClick?: (channel: string) => unknown;
|
|
8934
9373
|
}>;
|
|
8935
9374
|
}
|
|
8936
9375
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewDatesInfo" {
|
|
@@ -9138,6 +9577,7 @@ declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
|
|
|
9138
9577
|
readOnly?: boolean;
|
|
9139
9578
|
trimContent?: boolean;
|
|
9140
9579
|
showReplyBox?: boolean;
|
|
9580
|
+
enableModalRouting?: boolean;
|
|
9141
9581
|
className?: string;
|
|
9142
9582
|
}>;
|
|
9143
9583
|
}
|
|
@@ -9160,6 +9600,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
|
|
|
9160
9600
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9161
9601
|
readOnly?: boolean;
|
|
9162
9602
|
trimContent?: boolean;
|
|
9603
|
+
enableModalRouting?: boolean;
|
|
9163
9604
|
className?: string;
|
|
9164
9605
|
}
|
|
9165
9606
|
export const CommentList: FC<CommentListProps>;
|
|
@@ -9219,6 +9660,7 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
|
|
|
9219
9660
|
showReplyBox?: boolean;
|
|
9220
9661
|
trimContent?: boolean;
|
|
9221
9662
|
title?: ReactNode;
|
|
9663
|
+
enableModalRouting?: boolean;
|
|
9222
9664
|
className?: string;
|
|
9223
9665
|
};
|
|
9224
9666
|
export const PagedCommentsSection: FC<Props>;
|
|
@@ -9487,6 +9929,7 @@ declare module "libs/reach/feature/content/src/common/banner/Banner" {
|
|
|
9487
9929
|
layoutMode?: ItemTileLayoutMode;
|
|
9488
9930
|
bannerDefaultWidth?: number;
|
|
9489
9931
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
9932
|
+
documentIconName?: string;
|
|
9490
9933
|
}>;
|
|
9491
9934
|
}
|
|
9492
9935
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
@@ -9557,6 +10000,7 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9557
10000
|
import { FC } from 'react';
|
|
9558
10001
|
export const DetailViewKeywords: FC<{
|
|
9559
10002
|
filterBaseUrl: string;
|
|
10003
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
9560
10004
|
}>;
|
|
9561
10005
|
}
|
|
9562
10006
|
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
@@ -9604,8 +10048,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9604
10048
|
import { FC, ReactNode } from 'react';
|
|
9605
10049
|
export const DetailViewNavigation: FC<{
|
|
9606
10050
|
offsetRight?: number;
|
|
9607
|
-
children?: ReactNode;
|
|
9608
10051
|
callout?: ReactNode;
|
|
10052
|
+
className?: string;
|
|
10053
|
+
children?: ReactNode;
|
|
9609
10054
|
}>;
|
|
9610
10055
|
}
|
|
9611
10056
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBodyExternalContent" {
|
|
@@ -9648,6 +10093,13 @@ declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi"
|
|
|
9648
10093
|
getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
|
|
9649
10094
|
};
|
|
9650
10095
|
}
|
|
10096
|
+
declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
|
|
10097
|
+
interface IClickHandles {
|
|
10098
|
+
onInsideClick: () => void;
|
|
10099
|
+
onOutsideClick: () => void;
|
|
10100
|
+
}
|
|
10101
|
+
export function useClickOutside<T extends HTMLElement>({ onInsideClick, onOutsideClick, }: IClickHandles): import("react").MutableRefObject<T>;
|
|
10102
|
+
}
|
|
9651
10103
|
declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
|
|
9652
10104
|
import { LocationDescriptor } from 'history';
|
|
9653
10105
|
import { FC, ReactNode } from 'react';
|
|
@@ -9751,7 +10203,7 @@ declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton"
|
|
|
9751
10203
|
import { FC } from 'react';
|
|
9752
10204
|
export const ContentWithShowMoreButton: FC<{
|
|
9753
10205
|
domIdentifier: string;
|
|
9754
|
-
trimContent
|
|
10206
|
+
trimContent?: boolean;
|
|
9755
10207
|
className?: string;
|
|
9756
10208
|
}>;
|
|
9757
10209
|
}
|
|
@@ -9816,6 +10268,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
9816
10268
|
export * from "libs/reach/feature/content/src/common/body/ItemBodyWrapper";
|
|
9817
10269
|
export * from "libs/reach/feature/content/src/common/body/InlineFileList";
|
|
9818
10270
|
export * from "libs/reach/feature/content/src/common/body/InlineActionButtonList";
|
|
10271
|
+
export * from "libs/reach/feature/content/src/common/body/InlineObjectPluginView";
|
|
9819
10272
|
export * from "libs/reach/feature/content/src/common/body/inline-action-button/InlineActionButtonStyles";
|
|
9820
10273
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo";
|
|
9821
10274
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton";
|
|
@@ -9869,6 +10322,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
9869
10322
|
export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
|
|
9870
10323
|
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
9871
10324
|
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
10325
|
+
export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
|
|
9872
10326
|
export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
|
|
9873
10327
|
export * from "libs/reach/feature/content/src/common/sidebar/BaseSidebarItem";
|
|
9874
10328
|
export * from "libs/reach/feature/content/src/common/sidebar/SidebarGroup";
|
|
@@ -9898,13 +10352,13 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
|
|
|
9898
10352
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
9899
10353
|
getHashtagFilterRoute?: (hashtag: string) => string;
|
|
9900
10354
|
highlight?: boolean;
|
|
9901
|
-
isInitialLiked?: boolean;
|
|
9902
10355
|
hasUnreadReplies?: boolean;
|
|
9903
10356
|
onReplyIconClick?: () => void;
|
|
9904
10357
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9905
10358
|
replyCount?: number;
|
|
9906
10359
|
readOnly?: boolean;
|
|
9907
10360
|
trimContent?: boolean;
|
|
10361
|
+
enableModalRouting?: boolean;
|
|
9908
10362
|
className?: string;
|
|
9909
10363
|
}
|
|
9910
10364
|
export const CommentDisplay: FC<Props>;
|
|
@@ -10132,6 +10586,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
10132
10586
|
onReplyAdded: () => void;
|
|
10133
10587
|
onReplyDeleted: () => void;
|
|
10134
10588
|
trimContent?: boolean;
|
|
10589
|
+
enableModalRouting?: boolean;
|
|
10135
10590
|
}
|
|
10136
10591
|
export const PostReplies: FC<Props>;
|
|
10137
10592
|
}
|
|
@@ -10199,6 +10654,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
10199
10654
|
baseTargetUrl?: string;
|
|
10200
10655
|
}
|
|
10201
10656
|
export const PostDisplay: FC<Props>;
|
|
10657
|
+
export const PostDisplayWithModalRouting: FC<Props>;
|
|
10202
10658
|
}
|
|
10203
10659
|
declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
|
|
10204
10660
|
import { FC } from 'react';
|
|
@@ -11057,6 +11513,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11057
11513
|
poll?: import("@livetiles/reach/util/common").Poll;
|
|
11058
11514
|
searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
|
|
11059
11515
|
})[];
|
|
11516
|
+
export function updateStreamItemStatistics(items: StreamItem[], updatedItem: StreamItem): StreamItem[];
|
|
11060
11517
|
}
|
|
11061
11518
|
declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
11062
11519
|
import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
@@ -11081,6 +11538,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
11081
11538
|
};
|
|
11082
11539
|
refresh: () => Promise<void>;
|
|
11083
11540
|
isLoadingFirstPage: boolean;
|
|
11541
|
+
refetchItem: (itemId: string) => Promise<void>;
|
|
11084
11542
|
};
|
|
11085
11543
|
export function hasFilter(filter?: StreamFilterDefinition): boolean;
|
|
11086
11544
|
export const getStreamQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
|
|
@@ -11219,8 +11677,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11219
11677
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11220
11678
|
export type ShareTokenType = 'preview' | 'published';
|
|
11221
11679
|
export function useShareTokenEditorApi(): {
|
|
11222
|
-
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11223
|
-
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11680
|
+
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
|
|
11681
|
+
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
|
|
11224
11682
|
};
|
|
11225
11683
|
}
|
|
11226
11684
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
@@ -11231,9 +11689,9 @@ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
|
11231
11689
|
cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
|
|
11232
11690
|
uncancelEvent: (id: string) => Promise<unknown>;
|
|
11233
11691
|
unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
|
|
11234
|
-
deleteEventPermanently: (eventId: string) =>
|
|
11692
|
+
deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11235
11693
|
saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
|
|
11236
|
-
deleteModifiedRecurrence: (eventId: string) =>
|
|
11694
|
+
deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11237
11695
|
};
|
|
11238
11696
|
}
|
|
11239
11697
|
declare module "libs/reach/feature/content/src/editor/index" {
|
|
@@ -11801,7 +12259,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11801
12259
|
import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
|
|
11802
12260
|
import { SearchBoxProps } from "libs/reach/ui/common/src/index";
|
|
11803
12261
|
import { MainContentPanelProps } from "apps/reach-app/src/app/chrome/MainContentPanel";
|
|
11804
|
-
export interface
|
|
12262
|
+
export interface PageProps extends SearchBoxProps {
|
|
11805
12263
|
className?: string;
|
|
11806
12264
|
headerContents?: JSX.Element;
|
|
11807
12265
|
headerToolbar?: HeaderToolbarTypeHack;
|
|
@@ -11819,12 +12277,14 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11819
12277
|
submenuContents?: JSX.Element;
|
|
11820
12278
|
submenuClassName?: string;
|
|
11821
12279
|
disableScrollableContainerFocus?: boolean;
|
|
12280
|
+
asModal?: boolean;
|
|
12281
|
+
domIdentifier?: string;
|
|
11822
12282
|
}
|
|
11823
12283
|
export enum MenuNavigationMode {
|
|
11824
12284
|
Collapse = 0,
|
|
11825
12285
|
KeepOpen = 1
|
|
11826
12286
|
}
|
|
11827
|
-
export const Page: FC<
|
|
12287
|
+
export const Page: FC<PageProps>;
|
|
11828
12288
|
}
|
|
11829
12289
|
declare module "apps/reach-app/src/plugins/reach-chrome" {
|
|
11830
12290
|
import { Page } from "apps/reach-app/src/app/chrome/Page";
|