@livetiles/reach-plugin-types 0.5.0-preview.19 → 0.5.0-preview.190
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 +597 -100
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="moment" />
|
|
3
3
|
/// <reference types="draft-js" />
|
|
4
|
+
/// <reference types="draft-convert" />
|
|
4
5
|
declare module "libs/reach/util/common/src/FocusStyles" {
|
|
5
6
|
export const FocusStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
6
7
|
export const applyFocusStyle: (input: string) => string;
|
|
@@ -306,6 +307,7 @@ declare module "libs/shared/util/environment/src/EnvironmentConfig" {
|
|
|
306
307
|
buildId: string;
|
|
307
308
|
useAzureAdFunctionality: boolean;
|
|
308
309
|
envName: string;
|
|
310
|
+
mobileTeamsHost?: string;
|
|
309
311
|
}
|
|
310
312
|
type OperatingSystem = 'ios' | 'android' | 'windows' | 'mac' | 'unknown';
|
|
311
313
|
interface DeviceInfo {
|
|
@@ -1026,6 +1028,233 @@ declare module "libs/reach/util/common/src/resources/ResourceContextProvider" {
|
|
|
1026
1028
|
language?: string;
|
|
1027
1029
|
}>;
|
|
1028
1030
|
}
|
|
1031
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async" {
|
|
1032
|
+
import locale from 'date-fns/locale/ar-DZ';
|
|
1033
|
+
export default locale;
|
|
1034
|
+
}
|
|
1035
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-ma.async" {
|
|
1036
|
+
import locale from 'date-fns/locale/ar-MA';
|
|
1037
|
+
export default locale;
|
|
1038
|
+
}
|
|
1039
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-sa.async" {
|
|
1040
|
+
import locale from 'date-fns/locale/ar-SA';
|
|
1041
|
+
export default locale;
|
|
1042
|
+
}
|
|
1043
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/bg.async" {
|
|
1044
|
+
import locale from 'date-fns/locale/bg';
|
|
1045
|
+
export default locale;
|
|
1046
|
+
}
|
|
1047
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/bn.async" {
|
|
1048
|
+
import locale from 'date-fns/locale/bn';
|
|
1049
|
+
export default locale;
|
|
1050
|
+
}
|
|
1051
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ca.async" {
|
|
1052
|
+
import locale from 'date-fns/locale/ca';
|
|
1053
|
+
export default locale;
|
|
1054
|
+
}
|
|
1055
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/cs.async" {
|
|
1056
|
+
import locale from 'date-fns/locale/cs';
|
|
1057
|
+
export default locale;
|
|
1058
|
+
}
|
|
1059
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/da.async" {
|
|
1060
|
+
import locale from 'date-fns/locale/da';
|
|
1061
|
+
export default locale;
|
|
1062
|
+
}
|
|
1063
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/de.async" {
|
|
1064
|
+
import locale from 'date-fns/locale/de';
|
|
1065
|
+
export default locale;
|
|
1066
|
+
}
|
|
1067
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/el.async" {
|
|
1068
|
+
import locale from 'date-fns/locale/el';
|
|
1069
|
+
export default locale;
|
|
1070
|
+
}
|
|
1071
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-au.async" {
|
|
1072
|
+
import locale from 'date-fns/locale/en-AU';
|
|
1073
|
+
export default locale;
|
|
1074
|
+
}
|
|
1075
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-ca.async" {
|
|
1076
|
+
import locale from 'date-fns/locale/en-CA';
|
|
1077
|
+
export default locale;
|
|
1078
|
+
}
|
|
1079
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-gb.async" {
|
|
1080
|
+
import locale from 'date-fns/locale/en-GB';
|
|
1081
|
+
export default locale;
|
|
1082
|
+
}
|
|
1083
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-nz.async" {
|
|
1084
|
+
import locale from 'date-fns/locale/en-NZ';
|
|
1085
|
+
export default locale;
|
|
1086
|
+
}
|
|
1087
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/es.async" {
|
|
1088
|
+
import locale from 'date-fns/locale/es';
|
|
1089
|
+
export default locale;
|
|
1090
|
+
}
|
|
1091
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/et.async" {
|
|
1092
|
+
import locale from 'date-fns/locale/et';
|
|
1093
|
+
export default locale;
|
|
1094
|
+
}
|
|
1095
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fa-ir.async" {
|
|
1096
|
+
import locale from 'date-fns/locale/fa-IR';
|
|
1097
|
+
export default locale;
|
|
1098
|
+
}
|
|
1099
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fi.async" {
|
|
1100
|
+
import locale from 'date-fns/locale/fi';
|
|
1101
|
+
export default locale;
|
|
1102
|
+
}
|
|
1103
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr-ca.async" {
|
|
1104
|
+
import locale from 'date-fns/locale/fr-CA';
|
|
1105
|
+
export default locale;
|
|
1106
|
+
}
|
|
1107
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr-ch.async" {
|
|
1108
|
+
import locale from 'date-fns/locale/fr-CH';
|
|
1109
|
+
export default locale;
|
|
1110
|
+
}
|
|
1111
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/fr.async" {
|
|
1112
|
+
import locale from 'date-fns/locale/fr';
|
|
1113
|
+
export default locale;
|
|
1114
|
+
}
|
|
1115
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/gu.async" {
|
|
1116
|
+
import locale from 'date-fns/locale/gu';
|
|
1117
|
+
export default locale;
|
|
1118
|
+
}
|
|
1119
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/he.async" {
|
|
1120
|
+
import locale from 'date-fns/locale/he';
|
|
1121
|
+
export default locale;
|
|
1122
|
+
}
|
|
1123
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hi.async" {
|
|
1124
|
+
import locale from 'date-fns/locale/hi';
|
|
1125
|
+
export default locale;
|
|
1126
|
+
}
|
|
1127
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hr.async" {
|
|
1128
|
+
import locale from 'date-fns/locale/hr';
|
|
1129
|
+
export default locale;
|
|
1130
|
+
}
|
|
1131
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/hu.async" {
|
|
1132
|
+
import locale from 'date-fns/locale/hu';
|
|
1133
|
+
export default locale;
|
|
1134
|
+
}
|
|
1135
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/id.async" {
|
|
1136
|
+
import locale from 'date-fns/locale/id';
|
|
1137
|
+
export default locale;
|
|
1138
|
+
}
|
|
1139
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/it.async" {
|
|
1140
|
+
import locale from 'date-fns/locale/it';
|
|
1141
|
+
export default locale;
|
|
1142
|
+
}
|
|
1143
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ja.async" {
|
|
1144
|
+
import locale from 'date-fns/locale/ja';
|
|
1145
|
+
export default locale;
|
|
1146
|
+
}
|
|
1147
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/kn.async" {
|
|
1148
|
+
import locale from 'date-fns/locale/kn';
|
|
1149
|
+
export default locale;
|
|
1150
|
+
}
|
|
1151
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ko.async" {
|
|
1152
|
+
import locale from 'date-fns/locale/ko';
|
|
1153
|
+
export default locale;
|
|
1154
|
+
}
|
|
1155
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/lt.async" {
|
|
1156
|
+
import locale from 'date-fns/locale/lt';
|
|
1157
|
+
export default locale;
|
|
1158
|
+
}
|
|
1159
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/lv.async" {
|
|
1160
|
+
import locale from 'date-fns/locale/lv';
|
|
1161
|
+
export default locale;
|
|
1162
|
+
}
|
|
1163
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ms.async" {
|
|
1164
|
+
import locale from 'date-fns/locale/ms';
|
|
1165
|
+
export default locale;
|
|
1166
|
+
}
|
|
1167
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nb.async" {
|
|
1168
|
+
import locale from 'date-fns/locale/nb';
|
|
1169
|
+
export default locale;
|
|
1170
|
+
}
|
|
1171
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nl-be.async" {
|
|
1172
|
+
import locale from 'date-fns/locale/nl-BE';
|
|
1173
|
+
export default locale;
|
|
1174
|
+
}
|
|
1175
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/nl.async" {
|
|
1176
|
+
import locale from 'date-fns/locale/nl';
|
|
1177
|
+
export default locale;
|
|
1178
|
+
}
|
|
1179
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pl.async" {
|
|
1180
|
+
import locale from 'date-fns/locale/pl';
|
|
1181
|
+
export default locale;
|
|
1182
|
+
}
|
|
1183
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pt-br.async" {
|
|
1184
|
+
import locale from 'date-fns/locale/pt-BR';
|
|
1185
|
+
export default locale;
|
|
1186
|
+
}
|
|
1187
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/pt.async" {
|
|
1188
|
+
import locale from 'date-fns/locale/pt';
|
|
1189
|
+
export default locale;
|
|
1190
|
+
}
|
|
1191
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ro.async" {
|
|
1192
|
+
import locale from 'date-fns/locale/ro';
|
|
1193
|
+
export default locale;
|
|
1194
|
+
}
|
|
1195
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ru.async" {
|
|
1196
|
+
import locale from 'date-fns/locale/ru';
|
|
1197
|
+
export default locale;
|
|
1198
|
+
}
|
|
1199
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sk.async" {
|
|
1200
|
+
import locale from 'date-fns/locale/sk';
|
|
1201
|
+
export default locale;
|
|
1202
|
+
}
|
|
1203
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sl.async" {
|
|
1204
|
+
import locale from 'date-fns/locale/sl';
|
|
1205
|
+
export default locale;
|
|
1206
|
+
}
|
|
1207
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sr-latn.async" {
|
|
1208
|
+
import locale from 'date-fns/locale/sr-Latn';
|
|
1209
|
+
export default locale;
|
|
1210
|
+
}
|
|
1211
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sr.async" {
|
|
1212
|
+
import locale from 'date-fns/locale/sr';
|
|
1213
|
+
export default locale;
|
|
1214
|
+
}
|
|
1215
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/sv.async" {
|
|
1216
|
+
import locale from 'date-fns/locale/sv';
|
|
1217
|
+
export default locale;
|
|
1218
|
+
}
|
|
1219
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ta.async" {
|
|
1220
|
+
import locale from 'date-fns/locale/ta';
|
|
1221
|
+
export default locale;
|
|
1222
|
+
}
|
|
1223
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/te.async" {
|
|
1224
|
+
import locale from 'date-fns/locale/te';
|
|
1225
|
+
export default locale;
|
|
1226
|
+
}
|
|
1227
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/th.async" {
|
|
1228
|
+
import locale from 'date-fns/locale/th';
|
|
1229
|
+
export default locale;
|
|
1230
|
+
}
|
|
1231
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/tr.async" {
|
|
1232
|
+
import locale from 'date-fns/locale/tr';
|
|
1233
|
+
export default locale;
|
|
1234
|
+
}
|
|
1235
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/uk.async" {
|
|
1236
|
+
import locale from 'date-fns/locale/uk';
|
|
1237
|
+
export default locale;
|
|
1238
|
+
}
|
|
1239
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/vi.async" {
|
|
1240
|
+
import locale from 'date-fns/locale/vi';
|
|
1241
|
+
export default locale;
|
|
1242
|
+
}
|
|
1243
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/zh-cn.async" {
|
|
1244
|
+
import locale from 'date-fns/locale/zh-CN';
|
|
1245
|
+
export default locale;
|
|
1246
|
+
}
|
|
1247
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/zh-tw.async" {
|
|
1248
|
+
import locale from 'date-fns/locale/zh-TW';
|
|
1249
|
+
export default locale;
|
|
1250
|
+
}
|
|
1251
|
+
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/en-us.async" {
|
|
1252
|
+
import locale from 'date-fns/locale/en-US';
|
|
1253
|
+
export default locale;
|
|
1254
|
+
}
|
|
1255
|
+
declare module "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter" {
|
|
1256
|
+
export function importDateFnsLocaleAsync(locale: string): Promise<typeof import("libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async")>;
|
|
1257
|
+
}
|
|
1029
1258
|
declare module "libs/reach/util/common/src/user/features/FeatureSet" {
|
|
1030
1259
|
export const orderedFeatureSet: string[];
|
|
1031
1260
|
export class FeatureSet {
|
|
@@ -1236,6 +1465,11 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1236
1465
|
primaryColor: string;
|
|
1237
1466
|
secondaryColor: string;
|
|
1238
1467
|
useHighlightColorOnWhiteBackground?: boolean;
|
|
1468
|
+
customFontColors?: CustomColor[];
|
|
1469
|
+
}
|
|
1470
|
+
export interface CustomColor {
|
|
1471
|
+
id: string;
|
|
1472
|
+
value: string;
|
|
1239
1473
|
}
|
|
1240
1474
|
export interface WebHook {
|
|
1241
1475
|
id: string;
|
|
@@ -1274,9 +1508,19 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1274
1508
|
subscriptionId: string;
|
|
1275
1509
|
subscriptionName: string;
|
|
1276
1510
|
}
|
|
1277
|
-
export
|
|
1278
|
-
|
|
1279
|
-
|
|
1511
|
+
export enum ExtensionArea {
|
|
1512
|
+
global = "Global",
|
|
1513
|
+
page = "Page",
|
|
1514
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
1515
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
1516
|
+
itemEditor = "ItemEditor"
|
|
1517
|
+
}
|
|
1518
|
+
export type InlinePlugin = {
|
|
1519
|
+
area: ExtensionArea.itemEditor;
|
|
1520
|
+
objectButton: PluginObjectButton;
|
|
1521
|
+
};
|
|
1522
|
+
export type PagePlugin = {
|
|
1523
|
+
area: ExtensionArea.page;
|
|
1280
1524
|
route: string;
|
|
1281
1525
|
navigationNode?: {
|
|
1282
1526
|
componentName?: string;
|
|
@@ -1286,7 +1530,20 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1286
1530
|
[key: string]: string;
|
|
1287
1531
|
};
|
|
1288
1532
|
};
|
|
1289
|
-
}
|
|
1533
|
+
};
|
|
1534
|
+
export type PluginExtension = {
|
|
1535
|
+
area: ExtensionArea;
|
|
1536
|
+
componentName: string;
|
|
1537
|
+
} & (InlinePlugin | PagePlugin);
|
|
1538
|
+
export type PluginObjectButton = {
|
|
1539
|
+
buttonLabel: {
|
|
1540
|
+
defaultLabel: string;
|
|
1541
|
+
translations?: {
|
|
1542
|
+
[key: string]: string;
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
iconName: string;
|
|
1546
|
+
};
|
|
1290
1547
|
export interface PluginNotificationDefinitions {
|
|
1291
1548
|
key: string;
|
|
1292
1549
|
title: string;
|
|
@@ -1390,6 +1647,8 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1390
1647
|
pluginNotifications: {
|
|
1391
1648
|
[key: string]: NotificationType;
|
|
1392
1649
|
};
|
|
1650
|
+
newsEditor: NotificationType;
|
|
1651
|
+
eventEditor: NotificationType;
|
|
1393
1652
|
}
|
|
1394
1653
|
export interface RequestUser extends BasicUserInformation {
|
|
1395
1654
|
tenantId: string;
|
|
@@ -1490,6 +1749,7 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1490
1749
|
user: UserSummary;
|
|
1491
1750
|
type: SubscriptionJoinResultType;
|
|
1492
1751
|
message?: string;
|
|
1752
|
+
isSuccess?: boolean;
|
|
1493
1753
|
}
|
|
1494
1754
|
export interface UserActivationResult {
|
|
1495
1755
|
type: UserActivationResultType;
|
|
@@ -1931,6 +2191,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
|
|
|
1931
2191
|
}
|
|
1932
2192
|
}
|
|
1933
2193
|
declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
2194
|
+
import { Api } from 'restful.js';
|
|
1934
2195
|
import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
|
|
1935
2196
|
export class ClientFactoryInstance {
|
|
1936
2197
|
private env;
|
|
@@ -1941,7 +2202,7 @@ declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
|
1941
2202
|
constructor(env: EnvironmentConfig, apiEndpoint: string, getToken: () => Promise<string>, handleError?: (error: any, config: {
|
|
1942
2203
|
url: string;
|
|
1943
2204
|
}) => Promise<unknown>);
|
|
1944
|
-
createApi: (useAsUnauthorized: boolean, subscriptionId?: string) =>
|
|
2205
|
+
createApi: (useAsUnauthorized: boolean, subscriptionId?: string) => Api;
|
|
1945
2206
|
private createApiInternal;
|
|
1946
2207
|
private addRequestTimeLogger;
|
|
1947
2208
|
createApiUrl: (url: string, query?: {
|
|
@@ -2521,6 +2782,8 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
|
|
|
2521
2782
|
updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
|
|
2522
2783
|
deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
|
|
2523
2784
|
importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
|
|
2785
|
+
refreshApiKey: (apiKeyId: string, expiryDate: string) => Promise<Response>;
|
|
2786
|
+
requestApiKey: (email: string, displayName: string, expiryDate: string) => Promise<Response>;
|
|
2524
2787
|
};
|
|
2525
2788
|
}
|
|
2526
2789
|
declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
|
|
@@ -2711,7 +2974,7 @@ declare module "libs/reach/util/common/src/plugins/usePluginApi" {
|
|
|
2711
2974
|
getPluginFileUrl: (pluginId: string, bundleUrl?: string, bundleModificationDate?: string) => string;
|
|
2712
2975
|
saveDefinition: (plugin: WebPluginDefinition) => Promise<unknown>;
|
|
2713
2976
|
saveFile: (pluginId: string, file: File) => Promise<Response>;
|
|
2714
|
-
generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<
|
|
2977
|
+
generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<string>;
|
|
2715
2978
|
linkPlugin: (pluginId: string, settings: Record<string, string>) => Promise<any>;
|
|
2716
2979
|
unlinkPlugin: (pluginId: string) => Promise<any>;
|
|
2717
2980
|
};
|
|
@@ -2817,17 +3080,15 @@ declare module "libs/reach/util/common/src/Models" {
|
|
|
2817
3080
|
}
|
|
2818
3081
|
}
|
|
2819
3082
|
declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
2820
|
-
import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
3083
|
+
import { ExtensionArea, PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
2821
3084
|
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
3085
|
export interface PluginNavigationNodeProps {
|
|
2829
3086
|
navigationNodeProps?: PageNavigationNodeProps;
|
|
2830
3087
|
}
|
|
3088
|
+
export type EmbeddedPluginProps = PluginProps & {
|
|
3089
|
+
isEditMode?: boolean;
|
|
3090
|
+
componentInstanceId: string;
|
|
3091
|
+
};
|
|
2831
3092
|
export type PluginProps = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2832
3093
|
type DevPlugin = {
|
|
2833
3094
|
pluginId: string;
|
|
@@ -2881,22 +3142,11 @@ declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
|
|
|
2881
3142
|
}
|
|
2882
3143
|
declare module "libs/reach/util/common/src/plugins/Plugins" {
|
|
2883
3144
|
import { FC } from 'react';
|
|
2884
|
-
import { ExtensionArea } from "libs/reach/util/common/src/
|
|
3145
|
+
import { ExtensionArea } from "libs/reach/util/common/src/user/Subscription";
|
|
2885
3146
|
export const Plugins: FC<{
|
|
2886
3147
|
area: ExtensionArea;
|
|
2887
3148
|
} & any>;
|
|
2888
3149
|
}
|
|
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
3150
|
declare module "libs/reach/util/common/src/theme/ColorGenerator" {
|
|
2901
3151
|
export class Color {
|
|
2902
3152
|
private r;
|
|
@@ -2946,11 +3196,6 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
2946
3196
|
neutralTertiary: string;
|
|
2947
3197
|
neutralTertiaryAlt: string;
|
|
2948
3198
|
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
3199
|
neutralQuaternaryAlt: string;
|
|
2955
3200
|
neutralLight: string;
|
|
2956
3201
|
neutralLighter: string;
|
|
@@ -3012,6 +3257,10 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
3012
3257
|
onSecondary?: string;
|
|
3013
3258
|
onAccent?: string;
|
|
3014
3259
|
default?: string;
|
|
3260
|
+
custom?: {
|
|
3261
|
+
key: string;
|
|
3262
|
+
value: string;
|
|
3263
|
+
}[];
|
|
3015
3264
|
}
|
|
3016
3265
|
export function getDarkAltColor(color: string): string;
|
|
3017
3266
|
export function getTextColor(bgColor: string): "#333333" | "#ffffff";
|
|
@@ -3099,7 +3348,7 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
3099
3348
|
export const videoAttachmentRoundedCornerSize = 20;
|
|
3100
3349
|
export const inlinePageBannerRoundedCornerSize = 5;
|
|
3101
3350
|
export const feedbackButtonHeight = 32;
|
|
3102
|
-
export const mainScrollableContainerSelector = "lt-reach-main-content";
|
|
3351
|
+
export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
|
|
3103
3352
|
export const statusColors: {
|
|
3104
3353
|
draft: string;
|
|
3105
3354
|
ready: string;
|
|
@@ -3113,6 +3362,25 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
3113
3362
|
export const managePagesRowHeight = 40;
|
|
3114
3363
|
export const mobilePreviewWidth = 414;
|
|
3115
3364
|
}
|
|
3365
|
+
declare module "libs/reach/util/common/src/plugins/Plugin" {
|
|
3366
|
+
import { FC } from 'react';
|
|
3367
|
+
import { PluginProps } from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
3368
|
+
export const Plugin: FC<PluginProps & {
|
|
3369
|
+
showDetailedErrorMessage?: boolean;
|
|
3370
|
+
} & any>;
|
|
3371
|
+
}
|
|
3372
|
+
declare module "libs/reach/util/common/src/plugins/index" {
|
|
3373
|
+
export * from "libs/reach/util/common/src/plugins/PluginContext";
|
|
3374
|
+
export * from "libs/reach/util/common/src/plugins/PluginWrapper";
|
|
3375
|
+
export * from "libs/reach/util/common/src/plugins/Plugins";
|
|
3376
|
+
export * from "libs/reach/util/common/src/plugins/Plugin";
|
|
3377
|
+
export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
|
|
3378
|
+
export * from "libs/reach/util/common/src/plugins/usePluginApi";
|
|
3379
|
+
export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
3380
|
+
export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
|
|
3381
|
+
export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
3382
|
+
export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
3383
|
+
}
|
|
3116
3384
|
declare module "libs/reach/util/common/src/notification/NotificationContext" {
|
|
3117
3385
|
import { FC, ReactNode } from 'react';
|
|
3118
3386
|
import { ToastOptions } from 'react-toastify';
|
|
@@ -3215,6 +3483,15 @@ declare module "libs/reach/util/common/src/ImageDetails" {
|
|
|
3215
3483
|
width?: number;
|
|
3216
3484
|
height?: number;
|
|
3217
3485
|
}
|
|
3486
|
+
export interface ImageWithAlignment extends ImageDetails {
|
|
3487
|
+
imageAlignment?: ImageAlignment;
|
|
3488
|
+
}
|
|
3489
|
+
export enum ImageAlignment {
|
|
3490
|
+
Default = "default",
|
|
3491
|
+
Left = "left",
|
|
3492
|
+
Right = "right",
|
|
3493
|
+
Center = "center"
|
|
3494
|
+
}
|
|
3218
3495
|
}
|
|
3219
3496
|
declare module "libs/reach/util/common/src/MainContentPanelContext" {
|
|
3220
3497
|
export interface MainPanelContextType {
|
|
@@ -3265,6 +3542,35 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
|
|
|
3265
3542
|
static create(): GenericAccessDeniedTriggerAction;
|
|
3266
3543
|
}
|
|
3267
3544
|
}
|
|
3545
|
+
declare module "libs/reach/util/common/src/useModalRouting" {
|
|
3546
|
+
export interface ModalRouting {
|
|
3547
|
+
isActive: boolean;
|
|
3548
|
+
itemId: string;
|
|
3549
|
+
backgroundLocation: any;
|
|
3550
|
+
}
|
|
3551
|
+
export function useModalRouting(): {
|
|
3552
|
+
isModalRoutingActive: boolean;
|
|
3553
|
+
modalItemId: string;
|
|
3554
|
+
backgroundLocation: any;
|
|
3555
|
+
};
|
|
3556
|
+
export function useModalRoutingSettings(): (itemId: string) => {
|
|
3557
|
+
modalRouting: {
|
|
3558
|
+
isActive: boolean;
|
|
3559
|
+
itemId: string;
|
|
3560
|
+
backgroundLocation: {
|
|
3561
|
+
state: {
|
|
3562
|
+
modalRouting: {
|
|
3563
|
+
isActive: boolean;
|
|
3564
|
+
};
|
|
3565
|
+
};
|
|
3566
|
+
pathname: string;
|
|
3567
|
+
search: string;
|
|
3568
|
+
hash: string;
|
|
3569
|
+
key?: string;
|
|
3570
|
+
};
|
|
3571
|
+
};
|
|
3572
|
+
};
|
|
3573
|
+
}
|
|
3268
3574
|
declare module "libs/reach/util/common/src/index" {
|
|
3269
3575
|
export { initializeIcons } from 'office-ui-fabric-react';
|
|
3270
3576
|
export * from "libs/reach/util/common/src/FocusStyles";
|
|
@@ -3274,6 +3580,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3274
3580
|
export * from "libs/reach/util/common/src/SortDirection";
|
|
3275
3581
|
export * from "libs/reach/util/common/src/useCacheLanguageApi";
|
|
3276
3582
|
export * from "libs/reach/util/common/src/resources/ResourceContextProvider";
|
|
3583
|
+
export * from "libs/reach/util/common/src/resources/LazyDateFnsLocaleImporter";
|
|
3277
3584
|
export * from "libs/reach/util/common/src/user/index";
|
|
3278
3585
|
export * from "libs/reach/util/common/src/plugins/index";
|
|
3279
3586
|
export * from "libs/reach/util/common/src/theme/index";
|
|
@@ -3292,6 +3599,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3292
3599
|
export * from "libs/reach/util/common/src/useBaseRoute";
|
|
3293
3600
|
export * from "libs/reach/util/common/src/ForbiddenErrorTriggerAction";
|
|
3294
3601
|
export * from "libs/reach/util/common/src/AccessDeniedIntercept";
|
|
3602
|
+
export * from "libs/reach/util/common/src/useModalRouting";
|
|
3295
3603
|
}
|
|
3296
3604
|
declare module "libs/reach/ui/common/src/Link" {
|
|
3297
3605
|
import { Link as RouterLink } from 'react-router-dom';
|
|
@@ -3428,7 +3736,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3428
3736
|
export const PeoplePicker: FC<Props>;
|
|
3429
3737
|
}
|
|
3430
3738
|
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";
|
|
3739
|
+
import { Account, AccountType, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, useAccountApi, useCurrentUser, useNotificationContext, usePluginDeviceStore, usePluginSettings, usePluginSubscriptionStore, usePluginSubscriptionStoreValue, usePluginUserStore, usePluginUserStoreValue, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useSubscriptionWebAppUrl, useTheme, EmbeddedPluginProps } from "libs/reach/util/common/src/index";
|
|
3432
3740
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3433
3741
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3434
3742
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3445,7 +3753,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3445
3753
|
* @deprecated Please use `usePluginDeviceStore` instead
|
|
3446
3754
|
*/
|
|
3447
3755
|
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, };
|
|
3756
|
+
export type { Account, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, EmbeddedPluginProps, };
|
|
3449
3757
|
}
|
|
3450
3758
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
3451
3759
|
import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
|
|
@@ -3461,6 +3769,9 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
|
3461
3769
|
export function getPreSelectedKeywords(keywords: Keyword[], mandatoryKeywords: Keyword[]): Keyword[];
|
|
3462
3770
|
export function checkIfHasSameKeywords(keywordsArray1: Keyword[], keywordsArray2: Keyword[]): boolean;
|
|
3463
3771
|
}
|
|
3772
|
+
declare module "libs/reach/ui/common/src/common/messagebar/MessageBarStyles" {
|
|
3773
|
+
export const MessageBarBaseStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
3774
|
+
}
|
|
3464
3775
|
declare module "libs/reach/ui/common/src/NotificationBar" {
|
|
3465
3776
|
import { FC } from 'react';
|
|
3466
3777
|
export const NotificationBar: FC;
|
|
@@ -3716,7 +4027,9 @@ declare module "libs/reach/ui/common/src/common/UiUtils" {
|
|
|
3716
4027
|
}[]>;
|
|
3717
4028
|
export function getFileIcon(filename: string): string;
|
|
3718
4029
|
export function getIconColor(fileIcon: string): "#1C5FC0" | "#138147" | "#CA4B27" | "#1C5FBF" | "#CF1700" | "#000";
|
|
4030
|
+
export function getFileIconHorizontalTransform(fileIcon: string): -55 | -50;
|
|
3719
4031
|
export function getFileIconByExtension(extension: string): "Page" | "Video" | "MusicInCollectionFill" | "VisioDocument" | "ZipFolder" | "PDF" | "WordDocument" | "ExcelDocument" | "PowerPointDocument" | "FileImage";
|
|
4032
|
+
export function getMainScrollableContainer(): HTMLElement;
|
|
3720
4033
|
}
|
|
3721
4034
|
declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
|
|
3722
4035
|
export function useFileAccessTokenApi(): {
|
|
@@ -4026,7 +4339,7 @@ declare module "libs/reach/ui/common/src/common/ToggleWithLabel" {
|
|
|
4026
4339
|
export const ToggleWithLabel: FC<IToggleProps>;
|
|
4027
4340
|
}
|
|
4028
4341
|
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>>;
|
|
4342
|
+
export const unreadCommentHighlight: (top?: string) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
4030
4343
|
}
|
|
4031
4344
|
declare module "libs/reach/ui/common/src/common/UserUtility" {
|
|
4032
4345
|
import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
|
|
@@ -4345,6 +4658,9 @@ declare module "libs/reach/ui/common/src/common/grid/Grid" {
|
|
|
4345
4658
|
className?: string;
|
|
4346
4659
|
}>;
|
|
4347
4660
|
}
|
|
4661
|
+
declare module "libs/reach/ui/common/src/common/hooks/useIsMounted" {
|
|
4662
|
+
export const useIsMounted: () => () => boolean;
|
|
4663
|
+
}
|
|
4348
4664
|
declare module "libs/reach/ui/common/src/common/hooks/usePagination" {
|
|
4349
4665
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
4350
4666
|
import { DependencyList, SetStateAction } from 'react';
|
|
@@ -4825,6 +5141,7 @@ declare module "libs/reach/ui/common/src/common/index" {
|
|
|
4825
5141
|
export * from "libs/reach/ui/common/src/common/grid/Grid";
|
|
4826
5142
|
export * from "libs/reach/ui/common/src/common/hooks/usePagination";
|
|
4827
5143
|
export * from "libs/reach/ui/common/src/common/hooks/useUserPropertyDefinitionsHandler";
|
|
5144
|
+
export * from "libs/reach/ui/common/src/common/hooks/useIsMounted";
|
|
4828
5145
|
export * from "libs/reach/ui/common/src/common/icon-with-callout/IconWithCallout";
|
|
4829
5146
|
export * from "libs/reach/ui/common/src/common/inlineObjectsClassNames";
|
|
4830
5147
|
export * from "libs/reach/ui/common/src/common/isNullOrWhitespaceUtil";
|
|
@@ -4857,6 +5174,7 @@ declare module "libs/reach/ui/common/src/common/index" {
|
|
|
4857
5174
|
export * from "libs/reach/ui/common/src/common/error-states/index";
|
|
4858
5175
|
export * from "libs/reach/ui/common/src/common/MenuItemBadge";
|
|
4859
5176
|
export * from "libs/reach/ui/common/src/common/editor-svg/index";
|
|
5177
|
+
export * from "libs/reach/ui/common/src/common/messagebar/MessageBarStyles";
|
|
4860
5178
|
}
|
|
4861
5179
|
declare module "libs/reach/ui/common/src/error/PageAlert" {
|
|
4862
5180
|
import { ReactNode } from 'react';
|
|
@@ -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 { CustomColor, Theme } from "libs/reach/util/common/src/index";
|
|
5517
|
+
export const CustomFontColors: FC<{
|
|
5518
|
+
theme: Theme;
|
|
5519
|
+
onApply?: (colors: CustomColor[]) => 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;
|
|
@@ -5432,11 +5762,11 @@ declare module "libs/shared/util/capacitor-plugins/push-client/src/index" {
|
|
|
5432
5762
|
export { PushClient };
|
|
5433
5763
|
}
|
|
5434
5764
|
declare module "libs/shared/util/capacitor/src/MobileHybridStorage" {
|
|
5435
|
-
import { ConfigureOptions, MigrateResult,
|
|
5436
|
-
export class MobileHybridStorage implements
|
|
5765
|
+
import { ConfigureOptions, MigrateResult, PreferencesPlugin } from '@capacitor/preferences';
|
|
5766
|
+
export class MobileHybridStorage implements PreferencesPlugin {
|
|
5437
5767
|
private pluginStorage;
|
|
5438
5768
|
private static memoryStorage;
|
|
5439
|
-
constructor(pluginStorage:
|
|
5769
|
+
constructor(pluginStorage: PreferencesPlugin);
|
|
5440
5770
|
get(options: {
|
|
5441
5771
|
key: string;
|
|
5442
5772
|
}): Promise<any>;
|
|
@@ -5448,7 +5778,7 @@ declare module "libs/shared/util/capacitor/src/MobileHybridStorage" {
|
|
|
5448
5778
|
key: string;
|
|
5449
5779
|
}): Promise<void>;
|
|
5450
5780
|
clear(): Promise<void>;
|
|
5451
|
-
keys(): Promise<import("@capacitor/
|
|
5781
|
+
keys(): Promise<import("@capacitor/preferences").KeysResult>;
|
|
5452
5782
|
private static updateInMemoryStorage;
|
|
5453
5783
|
configure(options: ConfigureOptions): Promise<void>;
|
|
5454
5784
|
migrate(): Promise<MigrateResult>;
|
|
@@ -5484,7 +5814,7 @@ declare module "libs/shared/util/capacitor/src/mocks/MockStatusBarPlugin" {
|
|
|
5484
5814
|
export const mockStatusBarPlugin: StatusBarPlugin;
|
|
5485
5815
|
}
|
|
5486
5816
|
declare module "libs/shared/util/capacitor/src/WebDevice" {
|
|
5487
|
-
import { BatteryInfo, DeviceId, DeviceInfo, DevicePlugin, GetLanguageCodeResult } from '@capacitor/device';
|
|
5817
|
+
import { BatteryInfo, DeviceId, DeviceInfo, DevicePlugin, GetLanguageCodeResult, LanguageTag } from '@capacitor/device';
|
|
5488
5818
|
import { PluginListenerHandle } from '@capacitor/core';
|
|
5489
5819
|
export class WebDeviceFallback implements DevicePlugin {
|
|
5490
5820
|
addListener(_eventName: string, _listenerFunc: Function): PluginListenerHandle;
|
|
@@ -5493,6 +5823,7 @@ declare module "libs/shared/util/capacitor/src/WebDevice" {
|
|
|
5493
5823
|
getId(): Promise<DeviceId>;
|
|
5494
5824
|
getBatteryInfo(): Promise<BatteryInfo>;
|
|
5495
5825
|
getLanguageCode(): Promise<GetLanguageCodeResult>;
|
|
5826
|
+
getLanguageTag(): Promise<LanguageTag>;
|
|
5496
5827
|
}
|
|
5497
5828
|
}
|
|
5498
5829
|
declare module "libs/shared/util/capacitor/src/WebNetwork" {
|
|
@@ -5509,8 +5840,8 @@ declare module "libs/shared/util/capacitor/src/WebNetwork" {
|
|
|
5509
5840
|
}
|
|
5510
5841
|
}
|
|
5511
5842
|
declare module "libs/shared/util/capacitor/src/WebStorage" {
|
|
5512
|
-
import { ConfigureOptions, MigrateResult,
|
|
5513
|
-
export class WebStorage implements
|
|
5843
|
+
import { ConfigureOptions, MigrateResult, PreferencesPlugin } from '@capacitor/preferences';
|
|
5844
|
+
export class WebStorage implements PreferencesPlugin {
|
|
5514
5845
|
storage: Storage;
|
|
5515
5846
|
get(options: {
|
|
5516
5847
|
key: string;
|
|
@@ -5544,14 +5875,14 @@ declare module "libs/shared/util/capacitor/src/PluginLoader" {
|
|
|
5544
5875
|
import { SharePlugin } from '@capacitor/share';
|
|
5545
5876
|
import { SplashScreenPlugin } from '@capacitor/splash-screen';
|
|
5546
5877
|
import { StatusBarPlugin } from '@capacitor/status-bar';
|
|
5547
|
-
import {
|
|
5878
|
+
import { PreferencesPlugin } from '@capacitor/preferences';
|
|
5548
5879
|
import { AppInfoPlugin } from "libs/shared/util/capacitor-plugins/app-info/src/index";
|
|
5549
5880
|
import { MsalClientPlugin } from "libs/shared/util/capacitor-plugins/msal-client/src/index";
|
|
5550
5881
|
import { OpenIdClientPlugin } from "libs/shared/util/capacitor-plugins/openid-client/src/index";
|
|
5551
5882
|
import { PushClientPlugin } from "libs/shared/util/capacitor-plugins/push-client/src/index";
|
|
5552
5883
|
import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
|
|
5553
5884
|
export interface CondensePluginRegistry {
|
|
5554
|
-
Storage:
|
|
5885
|
+
Storage: PreferencesPlugin;
|
|
5555
5886
|
Device: DevicePlugin;
|
|
5556
5887
|
App: AppPlugin;
|
|
5557
5888
|
Keyboard: KeyboardPlugin;
|
|
@@ -6213,7 +6544,7 @@ declare module "apps/reach-app/src/app/user/useSelfRegistrationApi" {
|
|
|
6213
6544
|
import { UserRegistrationResult } from "libs/reach/util/common/src/index";
|
|
6214
6545
|
import { SelfRegistrationOptions } from "libs/reach/util/common/src/index";
|
|
6215
6546
|
export function useSelfRegistrationApi(): {
|
|
6216
|
-
changeRegistrationStatus: (upn: string, doAccept: boolean) =>
|
|
6547
|
+
changeRegistrationStatus: (upn: string, doAccept: boolean) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6217
6548
|
hasUserPendingRegistration: (subscriptionId: string, upn: string) => Promise<boolean>;
|
|
6218
6549
|
register: (subscriptionId: string, mail: string, displayName: string) => Promise<UserRegistrationResult>;
|
|
6219
6550
|
updateSelfRegistrationOptions: (config: Partial<SelfRegistrationOptions>) => Promise<unknown>;
|
|
@@ -6269,6 +6600,15 @@ declare module "apps/reach-app/src/app/admin/users/EditUserButton" {
|
|
|
6269
6600
|
onSaved: (newProperties: UpdatableUserProperties) => void;
|
|
6270
6601
|
}>;
|
|
6271
6602
|
}
|
|
6603
|
+
declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyDialog" {
|
|
6604
|
+
import { FC } from 'react';
|
|
6605
|
+
import { UserItem } from "apps/reach-app/src/app/admin/users/UserList";
|
|
6606
|
+
export const GenerateApiKeyDialog: FC<{
|
|
6607
|
+
onApiKeyAdded?: () => void;
|
|
6608
|
+
onDismiss: () => void;
|
|
6609
|
+
user?: UserItem;
|
|
6610
|
+
}>;
|
|
6611
|
+
}
|
|
6272
6612
|
declare module "apps/reach-app/src/app/admin/users/UserList" {
|
|
6273
6613
|
import { Account, GroupRoles, GroupUser, SortDefinition, UpdatableUserProperties, UserSummary } from "libs/reach/util/common/src/index";
|
|
6274
6614
|
import './UserList.scss';
|
|
@@ -6292,7 +6632,12 @@ declare module "apps/reach-app/src/app/admin/users/UserList" {
|
|
|
6292
6632
|
isLoading?: boolean;
|
|
6293
6633
|
isEmpty?: boolean;
|
|
6294
6634
|
emptyPlaceholder?: ReactNode;
|
|
6635
|
+
onKeyChanged?: () => void;
|
|
6295
6636
|
}
|
|
6637
|
+
export type UserItem = Account & UserSummary & GroupUser & {
|
|
6638
|
+
accountType: string;
|
|
6639
|
+
lastLogin: string | JSX.Element;
|
|
6640
|
+
};
|
|
6296
6641
|
export const UserList: FC<Props>;
|
|
6297
6642
|
}
|
|
6298
6643
|
declare module "apps/reach-app/src/app/InfiniteScrollingStatus" {
|
|
@@ -6325,12 +6670,6 @@ declare module "apps/reach-app/src/app/admin/users/ExportUserButton" {
|
|
|
6325
6670
|
className?: string;
|
|
6326
6671
|
}>;
|
|
6327
6672
|
}
|
|
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
6673
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
|
|
6335
6674
|
import { FC } from 'react';
|
|
6336
6675
|
import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
|
|
@@ -6350,18 +6689,42 @@ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersP
|
|
|
6350
6689
|
}
|
|
6351
6690
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
|
|
6352
6691
|
import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
|
|
6692
|
+
export enum ValidationStatus {
|
|
6693
|
+
Valid = 0,
|
|
6694
|
+
WithErrors = 1,
|
|
6695
|
+
WithUserErrors = 2
|
|
6696
|
+
}
|
|
6697
|
+
export type CsvValidation = {
|
|
6698
|
+
Status?: ValidationStatus;
|
|
6699
|
+
Message?: string;
|
|
6700
|
+
InvalidItems?: string[];
|
|
6701
|
+
};
|
|
6353
6702
|
export function useUserCsvInviter(): {
|
|
6354
6703
|
invitedUsers: UserImport[];
|
|
6355
6704
|
isValidating: boolean;
|
|
6356
6705
|
isCsvValid: boolean;
|
|
6357
6706
|
parseCsvFile: (csvFile: File) => void;
|
|
6358
|
-
|
|
6359
|
-
|
|
6707
|
+
csvValidation: CsvValidation;
|
|
6708
|
+
setCsvValidation: (status: ValidationStatus, message: string, invalidItems?: string[]) => void;
|
|
6360
6709
|
inviteUsers: (onSuccess?: () => void) => Promise<void>;
|
|
6361
6710
|
isParserReady: boolean;
|
|
6362
|
-
|
|
6711
|
+
isInviting: boolean;
|
|
6712
|
+
canInvite: boolean;
|
|
6713
|
+
csvFile: File;
|
|
6363
6714
|
};
|
|
6364
6715
|
}
|
|
6716
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/csvUtils" {
|
|
6717
|
+
export function createCsvUrl(header: string, content: string): string;
|
|
6718
|
+
}
|
|
6719
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/CsvFileValidationResult" {
|
|
6720
|
+
import { FC } from 'react';
|
|
6721
|
+
import { CsvValidation } from "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter";
|
|
6722
|
+
import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
|
|
6723
|
+
export const CsvFileValidationResult: FC<{
|
|
6724
|
+
csvValidation: CsvValidation;
|
|
6725
|
+
invitedUsers: UserImport[];
|
|
6726
|
+
}>;
|
|
6727
|
+
}
|
|
6365
6728
|
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
|
|
6366
6729
|
import { FC } from 'react';
|
|
6367
6730
|
export const ImportUserButton: FC<{
|
|
@@ -6399,29 +6762,28 @@ declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
|
6399
6762
|
}
|
|
6400
6763
|
declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
6401
6764
|
import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
|
|
6402
|
-
export class
|
|
6765
|
+
export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
|
|
6403
6766
|
static type: string;
|
|
6404
6767
|
type: string;
|
|
6405
6768
|
itemId: string;
|
|
6406
6769
|
response: EventResponse;
|
|
6407
6770
|
locationId: string;
|
|
6408
6771
|
onBehalfOfUpn: string;
|
|
6409
|
-
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string):
|
|
6772
|
+
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
|
|
6410
6773
|
}
|
|
6411
|
-
export class
|
|
6774
|
+
export class EventResponseTriggerAction implements AppTriggerAction {
|
|
6412
6775
|
static type: string;
|
|
6413
6776
|
type: string;
|
|
6414
|
-
|
|
6777
|
+
itemId: string;
|
|
6415
6778
|
response: EventResponse;
|
|
6416
|
-
static create(
|
|
6779
|
+
static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
|
|
6417
6780
|
}
|
|
6418
|
-
export class
|
|
6781
|
+
export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
|
|
6419
6782
|
static type: string;
|
|
6420
6783
|
type: string;
|
|
6421
6784
|
recurrenceSeriesId: string;
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
static create(recurrenceSeriesId: string, itemId: string, isLiked: boolean): LikeFullSeriesTriggerAction;
|
|
6785
|
+
response: EventResponse;
|
|
6786
|
+
static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
|
|
6425
6787
|
}
|
|
6426
6788
|
export class FollowCommentsTriggerAction implements AppTriggerAction {
|
|
6427
6789
|
static type: string;
|
|
@@ -6436,6 +6798,14 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6436
6798
|
followByDefault: boolean;
|
|
6437
6799
|
static create(followState: boolean): AutoFollowPostsTriggerAction;
|
|
6438
6800
|
}
|
|
6801
|
+
export class AutoLikeItemTriggerAction implements AppTriggerAction {
|
|
6802
|
+
static type: string;
|
|
6803
|
+
type: string;
|
|
6804
|
+
recurrenceSeriesId: string;
|
|
6805
|
+
isLiked: boolean;
|
|
6806
|
+
likeCount: number;
|
|
6807
|
+
static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
|
|
6808
|
+
}
|
|
6439
6809
|
export class DeletedItemsTriggerAction implements AppTriggerAction {
|
|
6440
6810
|
static type: string;
|
|
6441
6811
|
type: string;
|
|
@@ -6456,6 +6826,18 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6456
6826
|
type: string;
|
|
6457
6827
|
static create(): StreamMarkAllAsReadAction;
|
|
6458
6828
|
}
|
|
6829
|
+
export class RefetchItemAction implements AppTriggerAction {
|
|
6830
|
+
static type: string;
|
|
6831
|
+
type: string;
|
|
6832
|
+
itemId: string;
|
|
6833
|
+
static create(itemId: string): RefetchItemAction;
|
|
6834
|
+
}
|
|
6835
|
+
export class RefetchStreamItemAction implements AppTriggerAction {
|
|
6836
|
+
static type: string;
|
|
6837
|
+
type: string;
|
|
6838
|
+
itemId: string;
|
|
6839
|
+
static create(itemId: string): RefetchStreamItemAction;
|
|
6840
|
+
}
|
|
6459
6841
|
}
|
|
6460
6842
|
declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
6461
6843
|
export interface CommentFilter {
|
|
@@ -6472,19 +6854,20 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
|
6472
6854
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
6473
6855
|
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
6474
6856
|
import { Attachment } from "libs/reach/util/common/src/index";
|
|
6857
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
6475
6858
|
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
6476
6859
|
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) =>
|
|
6860
|
+
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6861
|
+
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6862
|
+
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6863
|
+
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6864
|
+
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
6865
|
+
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
6483
6866
|
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) =>
|
|
6867
|
+
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6868
|
+
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6486
6869
|
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
6487
|
-
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) =>
|
|
6870
|
+
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6488
6871
|
onCommentCreated$: import("rxjs").Observable<string>;
|
|
6489
6872
|
};
|
|
6490
6873
|
}
|
|
@@ -6615,7 +6998,7 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6615
6998
|
import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
6616
6999
|
import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
6617
7000
|
import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
6618
|
-
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition {
|
|
7001
|
+
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
|
|
6619
7002
|
}
|
|
6620
7003
|
export interface BaseFilterDefinition {
|
|
6621
7004
|
search?: string;
|
|
@@ -6623,6 +7006,9 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6623
7006
|
pageSize?: string | number;
|
|
6624
7007
|
groupId?: string;
|
|
6625
7008
|
}
|
|
7009
|
+
export interface ItemIdsFilterDefinition {
|
|
7010
|
+
itemIds?: string;
|
|
7011
|
+
}
|
|
6626
7012
|
export interface IndexableFilterDefinition {
|
|
6627
7013
|
[key: string]: any;
|
|
6628
7014
|
}
|
|
@@ -6943,7 +7329,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
|
6943
7329
|
deletePost: (postId: string) => Promise<unknown>;
|
|
6944
7330
|
getPost: (postId: string, commentCount?: number) => Promise<Post>;
|
|
6945
7331
|
getPostThread: (postId: string, threadId: string) => Promise<Post>;
|
|
6946
|
-
translatePost: (postId: string, language: string) =>
|
|
7332
|
+
translatePost: (postId: string, language: string) => Promise<string>;
|
|
6947
7333
|
searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
|
|
6948
7334
|
};
|
|
6949
7335
|
}
|
|
@@ -7110,6 +7496,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
|
7110
7496
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7111
7497
|
import { FC, MouseEvent } from 'react';
|
|
7112
7498
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7499
|
+
import { LocationState } from 'history';
|
|
7113
7500
|
export const ClickableOverlay: FC<{
|
|
7114
7501
|
itemId: string;
|
|
7115
7502
|
itemType: ItemResourceTypes;
|
|
@@ -7120,6 +7507,19 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
|
7120
7507
|
onClick?: (event: MouseEvent<unknown>) => unknown;
|
|
7121
7508
|
openTargetInNewWindow?: boolean;
|
|
7122
7509
|
isExternalContent?: boolean;
|
|
7510
|
+
locationState?: LocationState;
|
|
7511
|
+
}>;
|
|
7512
|
+
}
|
|
7513
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
|
|
7514
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7515
|
+
import { FC } from 'react';
|
|
7516
|
+
export const ClickableOverlayWithModalRouting: FC<{
|
|
7517
|
+
itemId: string;
|
|
7518
|
+
itemType: ItemResourceTypes;
|
|
7519
|
+
baseRoute: string;
|
|
7520
|
+
title?: string;
|
|
7521
|
+
isExternalContent?: boolean;
|
|
7522
|
+
targetUrl?: string;
|
|
7123
7523
|
}>;
|
|
7124
7524
|
}
|
|
7125
7525
|
declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
@@ -7130,6 +7530,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
|
7130
7530
|
targetUrl?: string;
|
|
7131
7531
|
readOnly?: boolean;
|
|
7132
7532
|
backgroundColor?: string;
|
|
7533
|
+
enableModalRouting?: boolean;
|
|
7133
7534
|
className?: string;
|
|
7134
7535
|
}>;
|
|
7135
7536
|
}
|
|
@@ -7167,6 +7568,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
7167
7568
|
className?: string;
|
|
7168
7569
|
allowFilterByChannels?: boolean;
|
|
7169
7570
|
channelBackgroundColor?: string;
|
|
7571
|
+
onChannelClick?: (channel: string) => unknown;
|
|
7170
7572
|
}>;
|
|
7171
7573
|
}
|
|
7172
7574
|
declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
|
|
@@ -7226,6 +7628,7 @@ declare module "libs/reach/feature/content/src/common/banner/PublishableItemBann
|
|
|
7226
7628
|
height?: number;
|
|
7227
7629
|
hidePlayerIfActive?: boolean;
|
|
7228
7630
|
className?: string;
|
|
7631
|
+
documentIconName?: string;
|
|
7229
7632
|
}
|
|
7230
7633
|
export const PublishableItemBanner: FC<Props>;
|
|
7231
7634
|
}
|
|
@@ -7464,10 +7867,12 @@ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegi
|
|
|
7464
7867
|
}
|
|
7465
7868
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
|
|
7466
7869
|
import { FC } from 'react';
|
|
7870
|
+
import { EventResponse } from "libs/reach/util/common/src/index";
|
|
7467
7871
|
export const EventUserRegistration: FC<{
|
|
7468
7872
|
disabled?: boolean;
|
|
7469
7873
|
hideInfoMessage?: boolean;
|
|
7470
7874
|
showNoRegistrationRequired?: boolean;
|
|
7875
|
+
onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
|
|
7471
7876
|
className?: string;
|
|
7472
7877
|
}>;
|
|
7473
7878
|
}
|
|
@@ -7537,8 +7942,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
|
|
|
7537
7942
|
export const CardLikeButton: FC<{
|
|
7538
7943
|
item: NewsItem | EventItem;
|
|
7539
7944
|
itemResourceType: ItemResourceTypes;
|
|
7540
|
-
|
|
7541
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
7945
|
+
onToggleLike?: (isLiked: boolean, likeCount: number) => void;
|
|
7542
7946
|
className?: string;
|
|
7543
7947
|
}>;
|
|
7544
7948
|
}
|
|
@@ -7560,6 +7964,18 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoN
|
|
|
7560
7964
|
className?: string;
|
|
7561
7965
|
}>;
|
|
7562
7966
|
}
|
|
7967
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
|
|
7968
|
+
import { FC } from 'react';
|
|
7969
|
+
export const LinkWithModalRouting: FC<{
|
|
7970
|
+
url: string;
|
|
7971
|
+
itemId: string;
|
|
7972
|
+
hash?: string;
|
|
7973
|
+
onClick?: (e: React.MouseEvent) => unknown;
|
|
7974
|
+
ariaHidden?: boolean;
|
|
7975
|
+
ariaLabel?: string;
|
|
7976
|
+
className?: string;
|
|
7977
|
+
}>;
|
|
7978
|
+
}
|
|
7563
7979
|
declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
7564
7980
|
import { FC } from 'react';
|
|
7565
7981
|
import { EventItem } from "libs/reach/util/common/src/index";
|
|
@@ -7578,6 +7994,7 @@ declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
|
7578
7994
|
allowFilterByChannels?: boolean;
|
|
7579
7995
|
showFeedbackButtons?: boolean;
|
|
7580
7996
|
readOnly?: boolean;
|
|
7997
|
+
enableModalRouting?: boolean;
|
|
7581
7998
|
className?: string;
|
|
7582
7999
|
}>;
|
|
7583
8000
|
}
|
|
@@ -7613,6 +8030,36 @@ declare module "libs/reach/feature/content/src/common/body/inline-file-list/Inli
|
|
|
7613
8030
|
className?: string;
|
|
7614
8031
|
}>;
|
|
7615
8032
|
}
|
|
8033
|
+
declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/ColoredText" {
|
|
8034
|
+
import { ContentState } from 'draft-js';
|
|
8035
|
+
import { FC } from 'react';
|
|
8036
|
+
export const ColoredText: FC<{
|
|
8037
|
+
entityKey: string;
|
|
8038
|
+
contentState: ContentState;
|
|
8039
|
+
}>;
|
|
8040
|
+
}
|
|
8041
|
+
declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextStrategy" {
|
|
8042
|
+
import { ContentBlock, ContentState } from 'draft-js';
|
|
8043
|
+
export const ColoredTextType = "colored-text";
|
|
8044
|
+
export function findColoredTextEntities(contentBlock: ContentBlock, callback: (start: number, end: number) => void, contentState: ContentState): void;
|
|
8045
|
+
}
|
|
8046
|
+
declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextUtils" {
|
|
8047
|
+
import { CompositeDecorator, EditorState } from 'draft-js';
|
|
8048
|
+
import { EditorPlugin } from '@draft-js-plugins/editor';
|
|
8049
|
+
import { EntityKey } from 'draft-convert';
|
|
8050
|
+
type ColoredTextPlugin = EditorPlugin & {
|
|
8051
|
+
decorators: CompositeDecorator[];
|
|
8052
|
+
};
|
|
8053
|
+
export function createColoredTextPlugin(): ColoredTextPlugin;
|
|
8054
|
+
export function createColoredTextEntity(node: HTMLElement, createEntity: (type: string, mutability: string, data: object) => EntityKey): string;
|
|
8055
|
+
export function createColoredTextAtSelection(editorState: EditorState, colorId: string): EditorState;
|
|
8056
|
+
export function removeColoredTextAtSelection(editorState: EditorState): EditorState;
|
|
8057
|
+
}
|
|
8058
|
+
declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/index" {
|
|
8059
|
+
export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/ColoredText";
|
|
8060
|
+
export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextStrategy";
|
|
8061
|
+
export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextUtils";
|
|
8062
|
+
}
|
|
7616
8063
|
declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
7617
8064
|
import { FC } from 'react';
|
|
7618
8065
|
import { DraftBlockType } from 'draft-js';
|
|
@@ -7628,7 +8075,8 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
|
7628
8075
|
Contact = "contact",
|
|
7629
8076
|
InlinePageList = "inline-page-list",
|
|
7630
8077
|
UrlPreview = "url-preview",
|
|
7631
|
-
ActionButton = "action-button"
|
|
8078
|
+
ActionButton = "action-button",
|
|
8079
|
+
InlinePlugin = "inline-plugin"
|
|
7632
8080
|
}
|
|
7633
8081
|
export interface HtmlComponentMapper {
|
|
7634
8082
|
component: FC<any>;
|
|
@@ -7770,7 +8218,10 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
|
|
|
7770
8218
|
resourceKey?: string;
|
|
7771
8219
|
resourceValues?: string;
|
|
7772
8220
|
className?: string;
|
|
8221
|
+
enableModalRouting?: boolean;
|
|
8222
|
+
itemId?: string;
|
|
7773
8223
|
isOverrideLink: boolean;
|
|
8224
|
+
icon?: string;
|
|
7774
8225
|
}>;
|
|
7775
8226
|
}
|
|
7776
8227
|
declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
|
|
@@ -7829,6 +8280,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
|
|
|
7829
8280
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7830
8281
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7831
8282
|
openTargetInNewWindow?: boolean;
|
|
8283
|
+
enableModalRouting?: boolean;
|
|
7832
8284
|
className?: string;
|
|
7833
8285
|
}
|
|
7834
8286
|
export const PageItemTile: FC<Props>;
|
|
@@ -7874,6 +8326,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
7874
8326
|
onClick?: (event: MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7875
8327
|
styleDefinition?: StyleDefinition;
|
|
7876
8328
|
readOnly?: boolean;
|
|
8329
|
+
enableModalRouting?: boolean;
|
|
7877
8330
|
className?: string;
|
|
7878
8331
|
}
|
|
7879
8332
|
export const PublishableItemTileWrapper: FC<Props>;
|
|
@@ -7917,6 +8370,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7917
8370
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7918
8371
|
styleDefinition?: StyleDefinition;
|
|
7919
8372
|
readOnly?: boolean;
|
|
8373
|
+
enableModalRouting?: boolean;
|
|
7920
8374
|
className?: string;
|
|
7921
8375
|
}
|
|
7922
8376
|
export const NewsItemTile: FC<Props>;
|
|
@@ -7942,6 +8396,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
|
|
|
7942
8396
|
previewTheme?: CommentInputTheme;
|
|
7943
8397
|
buttons?: ReactNode;
|
|
7944
8398
|
groupIds?: string[];
|
|
8399
|
+
enableModalRouting?: boolean;
|
|
7945
8400
|
className?: string;
|
|
7946
8401
|
}>;
|
|
7947
8402
|
export const EmbeddedObjectAccessDeniedTile: FC<{
|
|
@@ -7958,6 +8413,7 @@ declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
|
|
|
7958
8413
|
attachments: Attachment[];
|
|
7959
8414
|
onDeleteClick?: (attachment: Attachment) => void;
|
|
7960
8415
|
previewTheme?: CommentInputTheme;
|
|
8416
|
+
enableModalRouting?: boolean;
|
|
7961
8417
|
className?: string;
|
|
7962
8418
|
}>;
|
|
7963
8419
|
}
|
|
@@ -8118,6 +8574,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
|
|
|
8118
8574
|
import { FC, ReactNode } from 'react';
|
|
8119
8575
|
export const InlineObjectToolbar: FC<{
|
|
8120
8576
|
onDelete?: () => void;
|
|
8577
|
+
deleteAriaLabelResourceKey?: string;
|
|
8121
8578
|
additionalButtons?: ReactNode;
|
|
8122
8579
|
}>;
|
|
8123
8580
|
export const InlineObjectToolbarWrapper: FC<{
|
|
@@ -8125,15 +8582,18 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
|
|
|
8125
8582
|
}>;
|
|
8126
8583
|
}
|
|
8127
8584
|
declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
|
|
8128
|
-
import { FC } from 'react';
|
|
8585
|
+
import { FC, ReactNode } from 'react';
|
|
8586
|
+
import { ImageAlignment } from "libs/reach/util/common/src/index";
|
|
8129
8587
|
export const ImageToolbar: FC<{
|
|
8130
8588
|
onDelete?: () => void;
|
|
8131
8589
|
onFullScreen?: (e: React.MouseEvent<any>) => void;
|
|
8132
8590
|
onClose?: (e: React.MouseEvent<any>) => void;
|
|
8133
8591
|
onCrop?: (e: React.MouseEvent<any>) => void;
|
|
8592
|
+
onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
|
|
8134
8593
|
showFullScreenButton?: boolean;
|
|
8135
8594
|
showCloseButton?: boolean;
|
|
8136
8595
|
showCropButton?: boolean;
|
|
8596
|
+
alignmentButtons?: ReactNode;
|
|
8137
8597
|
}>;
|
|
8138
8598
|
}
|
|
8139
8599
|
declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
|
|
@@ -8260,6 +8720,15 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
8260
8720
|
export const EditCommentWithAttachments: FC<Props>;
|
|
8261
8721
|
export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
|
|
8262
8722
|
}
|
|
8723
|
+
declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
|
|
8724
|
+
import { FC } from 'react';
|
|
8725
|
+
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8726
|
+
export const BookmarkButton: FC<{
|
|
8727
|
+
item: PublishableItem;
|
|
8728
|
+
isReadOnly?: boolean;
|
|
8729
|
+
className?: string;
|
|
8730
|
+
}>;
|
|
8731
|
+
}
|
|
8263
8732
|
declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
8264
8733
|
import { FC } from 'react';
|
|
8265
8734
|
export const CardStatisticItem: FC<{
|
|
@@ -8277,13 +8746,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
|
8277
8746
|
};
|
|
8278
8747
|
}>;
|
|
8279
8748
|
}
|
|
8280
|
-
declare module "libs/reach/feature/content/src/
|
|
8749
|
+
declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
|
|
8750
|
+
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8281
8751
|
import { FC } from 'react';
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8752
|
+
export const CardCommentButton: FC<{
|
|
8753
|
+
item: NewsItem | EventItem;
|
|
8754
|
+
itemResourceType: ItemResourceTypes;
|
|
8755
|
+
targetRoute: string;
|
|
8756
|
+
enableModalRouting?: boolean;
|
|
8287
8757
|
}>;
|
|
8288
8758
|
}
|
|
8289
8759
|
declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
@@ -8291,13 +8761,11 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
|
8291
8761
|
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8292
8762
|
export const CardFooter: FC<{
|
|
8293
8763
|
item: NewsItem | EventItem;
|
|
8294
|
-
showComments: boolean;
|
|
8295
8764
|
targetRoute: string;
|
|
8296
8765
|
itemResourceType: ItemResourceTypes;
|
|
8297
|
-
|
|
8298
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
8766
|
+
enableModalRouting?: boolean;
|
|
8299
8767
|
}>;
|
|
8300
|
-
export const CardFooterHost: import("styled-components").StyledComponent<"
|
|
8768
|
+
export const CardFooterHost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8301
8769
|
}
|
|
8302
8770
|
declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
|
|
8303
8771
|
export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -8346,6 +8814,7 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
|
|
|
8346
8814
|
target?: string;
|
|
8347
8815
|
language?: string;
|
|
8348
8816
|
hideCurrentPageNode?: boolean;
|
|
8817
|
+
homeTargetUrlOverride?: string;
|
|
8349
8818
|
className?: string;
|
|
8350
8819
|
}>;
|
|
8351
8820
|
}
|
|
@@ -8545,6 +9014,7 @@ declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
|
|
|
8545
9014
|
language?: string;
|
|
8546
9015
|
buildChannelFilterUrl?: (channelName: string) => string;
|
|
8547
9016
|
clickableAvatar?: boolean;
|
|
9017
|
+
onChannelClick?: (channel: string) => unknown;
|
|
8548
9018
|
}>;
|
|
8549
9019
|
}
|
|
8550
9020
|
declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
|
|
@@ -8594,7 +9064,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
|
|
|
8594
9064
|
item: NewsItem;
|
|
8595
9065
|
baseRoute: string;
|
|
8596
9066
|
language: string;
|
|
8597
|
-
showComments: boolean;
|
|
8598
9067
|
highlight: boolean;
|
|
8599
9068
|
className?: string;
|
|
8600
9069
|
}
|
|
@@ -8701,6 +9170,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
|
|
|
8701
9170
|
}
|
|
8702
9171
|
declare module "libs/reach/feature/content/src/common/body/InlineImage" {
|
|
8703
9172
|
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9173
|
+
export const ImageAlignmentStyles: (alignment: string, width: number, preventFloat?: boolean) => string | import("styled-components").FlattenSimpleInterpolation;
|
|
8704
9174
|
export const InlineImageMapper: HtmlComponentMapper;
|
|
8705
9175
|
}
|
|
8706
9176
|
declare module "libs/reach/feature/content/src/common/body/InlineContact" {
|
|
@@ -8919,6 +9389,10 @@ declare module "libs/reach/feature/content/src/common/body/InlineActionButtonLis
|
|
|
8919
9389
|
}
|
|
8920
9390
|
export const InlineActionButtonMapper: HtmlComponentMapper;
|
|
8921
9391
|
}
|
|
9392
|
+
declare module "libs/reach/feature/content/src/common/body/InlineObjectPluginView" {
|
|
9393
|
+
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9394
|
+
export const InlineObjectPluginMapper: HtmlComponentMapper;
|
|
9395
|
+
}
|
|
8922
9396
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewPeopleInfo" {
|
|
8923
9397
|
import { FC } from 'react';
|
|
8924
9398
|
export const EventDetailViewPeopleInfo: FC;
|
|
@@ -8931,6 +9405,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
8931
9405
|
import { FC } from 'react';
|
|
8932
9406
|
export const EventDetailViewMetaInfo: FC<{
|
|
8933
9407
|
allowFilterByChannels?: boolean;
|
|
9408
|
+
onChannelClick?: (channel: string) => unknown;
|
|
8934
9409
|
}>;
|
|
8935
9410
|
}
|
|
8936
9411
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewDatesInfo" {
|
|
@@ -9138,6 +9613,7 @@ declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
|
|
|
9138
9613
|
readOnly?: boolean;
|
|
9139
9614
|
trimContent?: boolean;
|
|
9140
9615
|
showReplyBox?: boolean;
|
|
9616
|
+
enableModalRouting?: boolean;
|
|
9141
9617
|
className?: string;
|
|
9142
9618
|
}>;
|
|
9143
9619
|
}
|
|
@@ -9160,6 +9636,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
|
|
|
9160
9636
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9161
9637
|
readOnly?: boolean;
|
|
9162
9638
|
trimContent?: boolean;
|
|
9639
|
+
enableModalRouting?: boolean;
|
|
9163
9640
|
className?: string;
|
|
9164
9641
|
}
|
|
9165
9642
|
export const CommentList: FC<CommentListProps>;
|
|
@@ -9219,6 +9696,7 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
|
|
|
9219
9696
|
showReplyBox?: boolean;
|
|
9220
9697
|
trimContent?: boolean;
|
|
9221
9698
|
title?: ReactNode;
|
|
9699
|
+
enableModalRouting?: boolean;
|
|
9222
9700
|
className?: string;
|
|
9223
9701
|
};
|
|
9224
9702
|
export const PagedCommentsSection: FC<Props>;
|
|
@@ -9487,6 +9965,7 @@ declare module "libs/reach/feature/content/src/common/banner/Banner" {
|
|
|
9487
9965
|
layoutMode?: ItemTileLayoutMode;
|
|
9488
9966
|
bannerDefaultWidth?: number;
|
|
9489
9967
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
9968
|
+
documentIconName?: string;
|
|
9490
9969
|
}>;
|
|
9491
9970
|
}
|
|
9492
9971
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
@@ -9557,6 +10036,7 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9557
10036
|
import { FC } from 'react';
|
|
9558
10037
|
export const DetailViewKeywords: FC<{
|
|
9559
10038
|
filterBaseUrl: string;
|
|
10039
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
9560
10040
|
}>;
|
|
9561
10041
|
}
|
|
9562
10042
|
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
@@ -9604,8 +10084,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9604
10084
|
import { FC, ReactNode } from 'react';
|
|
9605
10085
|
export const DetailViewNavigation: FC<{
|
|
9606
10086
|
offsetRight?: number;
|
|
9607
|
-
children?: ReactNode;
|
|
9608
10087
|
callout?: ReactNode;
|
|
10088
|
+
className?: string;
|
|
10089
|
+
children?: ReactNode;
|
|
9609
10090
|
}>;
|
|
9610
10091
|
}
|
|
9611
10092
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBodyExternalContent" {
|
|
@@ -9648,6 +10129,13 @@ declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi"
|
|
|
9648
10129
|
getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
|
|
9649
10130
|
};
|
|
9650
10131
|
}
|
|
10132
|
+
declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
|
|
10133
|
+
interface IClickHandles {
|
|
10134
|
+
onInsideClick: () => void;
|
|
10135
|
+
onOutsideClick: () => void;
|
|
10136
|
+
}
|
|
10137
|
+
export function useClickOutside<T extends HTMLElement>({ onInsideClick, onOutsideClick, }: IClickHandles): import("react").MutableRefObject<T>;
|
|
10138
|
+
}
|
|
9651
10139
|
declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
|
|
9652
10140
|
import { LocationDescriptor } from 'history';
|
|
9653
10141
|
import { FC, ReactNode } from 'react';
|
|
@@ -9751,7 +10239,7 @@ declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton"
|
|
|
9751
10239
|
import { FC } from 'react';
|
|
9752
10240
|
export const ContentWithShowMoreButton: FC<{
|
|
9753
10241
|
domIdentifier: string;
|
|
9754
|
-
trimContent
|
|
10242
|
+
trimContent?: boolean;
|
|
9755
10243
|
className?: string;
|
|
9756
10244
|
}>;
|
|
9757
10245
|
}
|
|
@@ -9816,6 +10304,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
9816
10304
|
export * from "libs/reach/feature/content/src/common/body/ItemBodyWrapper";
|
|
9817
10305
|
export * from "libs/reach/feature/content/src/common/body/InlineFileList";
|
|
9818
10306
|
export * from "libs/reach/feature/content/src/common/body/InlineActionButtonList";
|
|
10307
|
+
export * from "libs/reach/feature/content/src/common/body/InlineObjectPluginView";
|
|
9819
10308
|
export * from "libs/reach/feature/content/src/common/body/inline-action-button/InlineActionButtonStyles";
|
|
9820
10309
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo";
|
|
9821
10310
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton";
|
|
@@ -9869,6 +10358,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
9869
10358
|
export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
|
|
9870
10359
|
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
9871
10360
|
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
10361
|
+
export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
|
|
9872
10362
|
export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
|
|
9873
10363
|
export * from "libs/reach/feature/content/src/common/sidebar/BaseSidebarItem";
|
|
9874
10364
|
export * from "libs/reach/feature/content/src/common/sidebar/SidebarGroup";
|
|
@@ -9879,6 +10369,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
9879
10369
|
export * from "libs/reach/feature/content/src/common/FilterLogicalOperators";
|
|
9880
10370
|
export * from "libs/reach/feature/content/src/common/channels/ChannelSelector";
|
|
9881
10371
|
export * from "libs/reach/feature/content/src/common/item-tile/PageItemTile";
|
|
10372
|
+
export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/index";
|
|
9882
10373
|
}
|
|
9883
10374
|
declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
|
|
9884
10375
|
import { FC } from 'react';
|
|
@@ -9898,13 +10389,13 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
|
|
|
9898
10389
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
9899
10390
|
getHashtagFilterRoute?: (hashtag: string) => string;
|
|
9900
10391
|
highlight?: boolean;
|
|
9901
|
-
isInitialLiked?: boolean;
|
|
9902
10392
|
hasUnreadReplies?: boolean;
|
|
9903
10393
|
onReplyIconClick?: () => void;
|
|
9904
10394
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9905
10395
|
replyCount?: number;
|
|
9906
10396
|
readOnly?: boolean;
|
|
9907
10397
|
trimContent?: boolean;
|
|
10398
|
+
enableModalRouting?: boolean;
|
|
9908
10399
|
className?: string;
|
|
9909
10400
|
}
|
|
9910
10401
|
export const CommentDisplay: FC<Props>;
|
|
@@ -10132,6 +10623,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
10132
10623
|
onReplyAdded: () => void;
|
|
10133
10624
|
onReplyDeleted: () => void;
|
|
10134
10625
|
trimContent?: boolean;
|
|
10626
|
+
enableModalRouting?: boolean;
|
|
10135
10627
|
}
|
|
10136
10628
|
export const PostReplies: FC<Props>;
|
|
10137
10629
|
}
|
|
@@ -10199,6 +10691,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
10199
10691
|
baseTargetUrl?: string;
|
|
10200
10692
|
}
|
|
10201
10693
|
export const PostDisplay: FC<Props>;
|
|
10694
|
+
export const PostDisplayWithModalRouting: FC<Props>;
|
|
10202
10695
|
}
|
|
10203
10696
|
declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
|
|
10204
10697
|
import { FC } from 'react';
|
|
@@ -11057,6 +11550,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11057
11550
|
poll?: import("@livetiles/reach/util/common").Poll;
|
|
11058
11551
|
searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
|
|
11059
11552
|
})[];
|
|
11553
|
+
export function updateStreamItemStatistics(items: StreamItem[], updatedItem: StreamItem): StreamItem[];
|
|
11060
11554
|
}
|
|
11061
11555
|
declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
11062
11556
|
import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
@@ -11081,6 +11575,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
11081
11575
|
};
|
|
11082
11576
|
refresh: () => Promise<void>;
|
|
11083
11577
|
isLoadingFirstPage: boolean;
|
|
11578
|
+
refetchItem: (itemId: string) => Promise<void>;
|
|
11084
11579
|
};
|
|
11085
11580
|
export function hasFilter(filter?: StreamFilterDefinition): boolean;
|
|
11086
11581
|
export const getStreamQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
|
|
@@ -11219,8 +11714,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11219
11714
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11220
11715
|
export type ShareTokenType = 'preview' | 'published';
|
|
11221
11716
|
export function useShareTokenEditorApi(): {
|
|
11222
|
-
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11223
|
-
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11717
|
+
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
|
|
11718
|
+
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
|
|
11224
11719
|
};
|
|
11225
11720
|
}
|
|
11226
11721
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
@@ -11231,9 +11726,9 @@ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
|
11231
11726
|
cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
|
|
11232
11727
|
uncancelEvent: (id: string) => Promise<unknown>;
|
|
11233
11728
|
unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
|
|
11234
|
-
deleteEventPermanently: (eventId: string) =>
|
|
11729
|
+
deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11235
11730
|
saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
|
|
11236
|
-
deleteModifiedRecurrence: (eventId: string) =>
|
|
11731
|
+
deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11237
11732
|
};
|
|
11238
11733
|
}
|
|
11239
11734
|
declare module "libs/reach/feature/content/src/editor/index" {
|
|
@@ -11801,7 +12296,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11801
12296
|
import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
|
|
11802
12297
|
import { SearchBoxProps } from "libs/reach/ui/common/src/index";
|
|
11803
12298
|
import { MainContentPanelProps } from "apps/reach-app/src/app/chrome/MainContentPanel";
|
|
11804
|
-
export interface
|
|
12299
|
+
export interface PageProps extends SearchBoxProps {
|
|
11805
12300
|
className?: string;
|
|
11806
12301
|
headerContents?: JSX.Element;
|
|
11807
12302
|
headerToolbar?: HeaderToolbarTypeHack;
|
|
@@ -11819,12 +12314,14 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11819
12314
|
submenuContents?: JSX.Element;
|
|
11820
12315
|
submenuClassName?: string;
|
|
11821
12316
|
disableScrollableContainerFocus?: boolean;
|
|
12317
|
+
asModal?: boolean;
|
|
12318
|
+
domIdentifier?: string;
|
|
11822
12319
|
}
|
|
11823
12320
|
export enum MenuNavigationMode {
|
|
11824
12321
|
Collapse = 0,
|
|
11825
12322
|
KeepOpen = 1
|
|
11826
12323
|
}
|
|
11827
|
-
export const Page: FC<
|
|
12324
|
+
export const Page: FC<PageProps>;
|
|
11828
12325
|
}
|
|
11829
12326
|
declare module "apps/reach-app/src/plugins/reach-chrome" {
|
|
11830
12327
|
import { Page } from "apps/reach-app/src/app/chrome/Page";
|