@livetiles/reach-plugin-types 0.5.0-preview.16 → 0.5.0-preview.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.d.ts +18 -112
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -522,12 +522,6 @@ declare module "libs/reach/util/common/src/useCacheLanguageApi" {
522
522
  getLocaleFromLocalStorage: () => Promise<string>;
523
523
  };
524
524
  }
525
- declare module "libs/reach/util/common/src/resources/languages/da.async" {
526
- import '@formatjs/intl-pluralrules/dist/locale-data/da';
527
- import '@formatjs/intl-relativetimeformat/dist/locale-data/da';
528
- import da from "libs/reach/util/common/src/resources/languages/string-resources/da";
529
- export default da;
530
- }
531
525
  declare module "libs/reach/util/common/src/resources/languages/de.async" {
532
526
  import '@formatjs/intl-pluralrules/dist/locale-data/de';
533
527
  import '@formatjs/intl-relativetimeformat/dist/locale-data/de';
@@ -583,7 +577,7 @@ declare module "libs/reach/util/common/src/resources/languages/en.async" {
583
577
  export default en;
584
578
  }
585
579
  declare module "libs/reach/util/common/src/resources/LazyLanguageResourcesImporter" {
586
- export function importLanguageResourcesAsync(language: string): Promise<typeof import("libs/reach/util/common/src/resources/languages/da.async")> | Promise<typeof import("libs/reach/util/common/src/resources/languages/en.async")>;
580
+ export function importLanguageResourcesAsync(language: string): Promise<typeof import("libs/reach/util/common/src/resources/languages/de.async")> | Promise<typeof import("libs/reach/util/common/src/resources/languages/en.async")>;
587
581
  }
588
582
  declare module "libs/reach/util/common/src/resources/locales/ar-dz.async" {
589
583
  import '@formatjs/intl-pluralrules/dist/locale-data/ar';
@@ -1443,7 +1437,6 @@ declare module "libs/reach/util/common/src/user/User" {
1443
1437
  subscriptionId: string;
1444
1438
  tenantId: string;
1445
1439
  expires?: string;
1446
- hasPrivateEmail?: boolean;
1447
1440
  }
1448
1441
  export interface HashUser {
1449
1442
  id: string;
@@ -1489,7 +1482,6 @@ declare module "libs/reach/util/common/src/user/User" {
1489
1482
  export interface SubscriptionJoinResult {
1490
1483
  user: UserSummary;
1491
1484
  type: SubscriptionJoinResultType;
1492
- message?: string;
1493
1485
  }
1494
1486
  export interface UserActivationResult {
1495
1487
  type: UserActivationResultType;
@@ -1751,19 +1743,6 @@ declare module "libs/reach/util/common/src/content/BaseItem" {
1751
1743
  id?: string;
1752
1744
  statistics?: ItemStatistics;
1753
1745
  poll?: Poll;
1754
- searchHighlights?: SearchHighlightSummary;
1755
- }
1756
- export interface SearchHighlightSummary {
1757
- title: SearchHighlight[];
1758
- content: SearchHighlight[];
1759
- }
1760
- export interface SearchHighlight {
1761
- language: string;
1762
- texts: {
1763
- value: string;
1764
- type: 'text' | 'hit';
1765
- }[];
1766
- score: number;
1767
1746
  }
1768
1747
  export interface Poll {
1769
1748
  questions: PollQuestion[];
@@ -1831,6 +1810,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
1831
1810
  headline?: string;
1832
1811
  intro?: string;
1833
1812
  body?: string;
1813
+ bodyRaw?: string;
1834
1814
  customProperties?: {
1835
1815
  [key: string]: any;
1836
1816
  };
@@ -2520,7 +2500,6 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
2520
2500
  updateUserProfilePropertiesByUPN: (upn: string, newProperties: UpdatableUserProperties) => Promise<unknown>;
2521
2501
  updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
2522
2502
  deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
2523
- importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
2524
2503
  };
2525
2504
  }
2526
2505
  declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
@@ -3345,7 +3324,7 @@ declare module "libs/reach/ui/common/src/Tooltip" {
3345
3324
  import { FC } from 'react';
3346
3325
  import { ITooltipHostProps } from 'office-ui-fabric-react';
3347
3326
  export interface TooltipProps extends ITooltipHostProps {
3348
- text?: string | JSX.Element;
3327
+ text?: string;
3349
3328
  resourceKey?: string;
3350
3329
  values?: {
3351
3330
  [key: string]: string | number | boolean | Date;
@@ -3969,6 +3948,7 @@ declare module "libs/reach/ui/common/src/common/Search" {
3969
3948
  searchText: string;
3970
3949
  className?: string;
3971
3950
  placeholder?: string;
3951
+ showClearButton?: boolean;
3972
3952
  onClear?: () => void;
3973
3953
  useLightTheme?: boolean;
3974
3954
  shouldAutoFocus?: boolean;
@@ -6331,48 +6311,6 @@ declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyButton" {
6331
6311
  onApiKeyAdded: () => void;
6332
6312
  }>;
6333
6313
  }
6334
- declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
6335
- import { FC } from 'react';
6336
- import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
6337
- export enum GenericErrorType {
6338
- Error = -1
6339
- }
6340
- export interface UserImport {
6341
- displayName?: string;
6342
- email?: string;
6343
- hasPrivateEmail?: boolean;
6344
- importResult?: SubscriptionJoinResultType | GenericErrorType;
6345
- errorMessage?: string;
6346
- }
6347
- export const ImportUsersPreview: FC<{
6348
- previewUsers: UserImport[];
6349
- }>;
6350
- }
6351
- declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
6352
- import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6353
- export function useUserCsvInviter(): {
6354
- invitedUsers: UserImport[];
6355
- isValidating: boolean;
6356
- isCsvValid: boolean;
6357
- parseCsvFile: (csvFile: File) => void;
6358
- error: string;
6359
- setError: import("react").Dispatch<import("react").SetStateAction<string>>;
6360
- inviteUsers: (onSuccess?: () => void) => Promise<void>;
6361
- isParserReady: boolean;
6362
- isImporting: boolean;
6363
- };
6364
- }
6365
- declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
6366
- import { FC } from 'react';
6367
- export const ImportUserButton: FC<{
6368
- onSuccessfulImport?: () => void;
6369
- className?: string;
6370
- }>;
6371
- export const ImportUserDialog: FC<{
6372
- onDismiss: () => void;
6373
- onSuccessfulImport?: () => void;
6374
- }>;
6375
- }
6376
6314
  declare module "apps/reach-app/src/app/admin/users/UsersPage" {
6377
6315
  import { FC } from 'react';
6378
6316
  export const UsersPage: FC;
@@ -8303,15 +8241,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
8303
8241
  export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8304
8242
  export const Intro: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
8305
8243
  }
8306
- declare module "libs/reach/feature/content/src/pages/SearchHighlighter" {
8307
- import { FC } from 'react';
8308
- import { SearchHighlight } from "libs/reach/util/common/src/index";
8309
- export const SearchHighlighter: FC<{
8310
- highlight: SearchHighlight;
8311
- }>;
8312
- export function tryGetHighlight(highlights: SearchHighlight[], preferredLanguage: string): SearchHighlight;
8313
- export function tryGetAllHighlights(highlights: SearchHighlight[], preferredLanguage: string): SearchHighlight[];
8314
- }
8315
8244
  declare module "libs/reach/feature/content/src/pages/PageTitle" {
8316
8245
  import { FC } from 'react';
8317
8246
  import { PageItem } from "libs/reach/util/common/src/index";
@@ -8351,9 +8280,11 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
8351
8280
  }
8352
8281
  declare module "libs/reach/feature/content/src/pages/PageListItemBody" {
8353
8282
  import { FC } from 'react';
8354
- import { PageItem } from "libs/reach/util/common/src/index";
8283
+ import { PublishableItemContent } from "libs/reach/util/common/src/index";
8355
8284
  export const PageListItemBody: FC<{
8356
- page: PageItem;
8285
+ contents: {
8286
+ [key: string]: PublishableItemContent;
8287
+ };
8357
8288
  search?: string;
8358
8289
  }>;
8359
8290
  }
@@ -10370,7 +10301,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10370
10301
  isDemoContent?: boolean;
10371
10302
  isFollowing?: boolean;
10372
10303
  poll?: import("@livetiles/reach/util/common").Poll;
10373
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10374
10304
  fileAccessToken?: string;
10375
10305
  attachmentContainerId?: string;
10376
10306
  } | {
@@ -10470,7 +10400,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10470
10400
  useExternalContent?: boolean;
10471
10401
  isDemoContent?: boolean;
10472
10402
  poll?: import("@livetiles/reach/util/common").Poll;
10473
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10474
10403
  } | {
10475
10404
  groupId: string;
10476
10405
  attachments: {
@@ -10576,7 +10505,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10576
10505
  useExternalContent?: boolean;
10577
10506
  isDemoContent?: boolean;
10578
10507
  poll?: import("@livetiles/reach/util/common").Poll;
10579
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10580
10508
  } | {
10581
10509
  groupId: string;
10582
10510
  attachments: {
@@ -10677,7 +10605,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10677
10605
  useExternalContent?: boolean;
10678
10606
  isDemoContent?: boolean;
10679
10607
  poll?: import("@livetiles/reach/util/common").Poll;
10680
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10681
10608
  })[];
10682
10609
  export function convertProperties(items: StreamItem[], user: CurrentUser, subscriptionChannels?: Channel[]): ({
10683
10610
  keywords: {
@@ -10704,7 +10631,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10704
10631
  isDemoContent?: boolean;
10705
10632
  isFollowing?: boolean;
10706
10633
  poll?: import("@livetiles/reach/util/common").Poll;
10707
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10708
10634
  attachments?: import("@livetiles/reach/util/common").Attachment[];
10709
10635
  fileAccessToken?: string;
10710
10636
  attachmentContainerId?: string;
@@ -10754,7 +10680,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10754
10680
  useExternalContent?: boolean;
10755
10681
  isDemoContent?: boolean;
10756
10682
  poll?: import("@livetiles/reach/util/common").Poll;
10757
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10758
10683
  } | {
10759
10684
  keywords: {
10760
10685
  [key: string]: Keyword[];
@@ -10809,7 +10734,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10809
10734
  useExternalContent?: boolean;
10810
10735
  isDemoContent?: boolean;
10811
10736
  poll?: import("@livetiles/reach/util/common").Poll;
10812
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10813
10737
  } | {
10814
10738
  keywords: {
10815
10739
  [key: string]: Keyword[];
@@ -10859,7 +10783,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10859
10783
  useExternalContent?: boolean;
10860
10784
  isDemoContent?: boolean;
10861
10785
  poll?: import("@livetiles/reach/util/common").Poll;
10862
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10863
10786
  } | {
10864
10787
  userResponse: EventResponse;
10865
10788
  cancelInformation: {
@@ -10910,7 +10833,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10910
10833
  isDemoContent?: boolean;
10911
10834
  isFollowing?: boolean;
10912
10835
  poll?: import("@livetiles/reach/util/common").Poll;
10913
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10914
10836
  attachments?: import("@livetiles/reach/util/common").Attachment[];
10915
10837
  fileAccessToken?: string;
10916
10838
  attachmentContainerId?: string;
@@ -10982,7 +10904,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10982
10904
  useExternalContent?: boolean;
10983
10905
  isDemoContent?: boolean;
10984
10906
  poll?: import("@livetiles/reach/util/common").Poll;
10985
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10986
10907
  } | {
10987
10908
  userResponse: EventResponse;
10988
10909
  cancelInformation: {
@@ -11055,7 +10976,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11055
10976
  useExternalContent?: boolean;
11056
10977
  isDemoContent?: boolean;
11057
10978
  poll?: import("@livetiles/reach/util/common").Poll;
11058
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
11059
10979
  })[];
11060
10980
  }
11061
10981
  declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
@@ -11223,19 +11143,6 @@ declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
11223
11143
  deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11224
11144
  };
11225
11145
  }
11226
- declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
11227
- import { EventCancelReasons, EventCancelInformation, EventItem } from "libs/reach/util/common/src/index";
11228
- import { PublishableItem } from "libs/reach/util/common/src/index";
11229
- export function useEventsEditorApi(): {
11230
- getEvent: (eventId: string) => Promise<EventItem>;
11231
- cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
11232
- uncancelEvent: (id: string) => Promise<unknown>;
11233
- unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
11234
- deleteEventPermanently: (eventId: string) => any;
11235
- saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
11236
- deleteModifiedRecurrence: (eventId: string) => any;
11237
- };
11238
- }
11239
11146
  declare module "libs/reach/feature/content/src/editor/index" {
11240
11147
  export * from "libs/reach/feature/content/src/editor/EditorListItem";
11241
11148
  export * from "libs/reach/feature/content/src/editor/NewsEditorItem";
@@ -11245,7 +11152,6 @@ declare module "libs/reach/feature/content/src/editor/index" {
11245
11152
  export * from "libs/reach/feature/content/src/editor/useEditorApi";
11246
11153
  export * from "libs/reach/feature/content/src/editor/useNewsEditorApi";
11247
11154
  export * from "libs/reach/feature/content/src/editor/useShareTokenEditorApi";
11248
- export * from "libs/reach/feature/content/src/editor/useEventsEditorApi";
11249
11155
  }
11250
11156
  declare module "libs/reach/feature/content/src/public-user/index" {
11251
11157
  export * from "libs/reach/feature/content/src/public-user/PublicUserFullAccessButton";
@@ -11297,6 +11203,15 @@ declare module "libs/reach/feature/content/src/stream/useEventsStreamDataLoader"
11297
11203
  export const EVENTS_QUERY: (includeAllItems: boolean, whereConditions?: string, sortByAscending?: boolean) => import("@apollo/client").DocumentNode;
11298
11204
  export const CONTACTS_CONDITION: (contacts: string[]) => string;
11299
11205
  }
11206
+ declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
11207
+ import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11208
+ import { ItemTypeFilterFlag } from "libs/reach/feature/content/src/filter/index";
11209
+ export interface onMarkAsReadHandlers {
11210
+ onStarted?: () => unknown;
11211
+ onFinished?: () => unknown;
11212
+ }
11213
+ export function useMarkStreamItemsAsRead(itemTypes: ItemTypeFilterFlag, filter?: StreamFilterDefinition, searchText?: string, handlers?: onMarkAsReadHandlers, unreadCount?: number): () => Promise<void>;
11214
+ }
11300
11215
  declare module "libs/reach/feature/content/src/stream/PostStreamFilterDefinition" {
11301
11216
  import { AuthorFilterDefinition, BeforePublishingDateFilterDefinition, PostFilterDefinition } from "libs/reach/feature/content/src/index";
11302
11217
  export interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
@@ -11309,15 +11224,6 @@ declare module "libs/reach/feature/content/src/stream/usePostsStreamDataLoader"
11309
11224
  export function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
11310
11225
  export const POSTS_QUERY: (whereConditions?: string) => import("@apollo/client").DocumentNode;
11311
11226
  }
11312
- declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
11313
- import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11314
- import { ItemTypeFilterFlag } from "libs/reach/feature/content/src/filter/index";
11315
- export interface onMarkAsReadHandlers {
11316
- onStarted?: () => unknown;
11317
- onFinished?: () => unknown;
11318
- }
11319
- export function useMarkStreamItemsAsRead(itemTypes: ItemTypeFilterFlag, filter?: StreamFilterDefinition, searchText?: string, handlers?: onMarkAsReadHandlers, unreadCount?: number): () => Promise<void>;
11320
- }
11321
11227
  declare module "libs/reach/feature/content/src/stream/usePagesStreamDataLoader" {
11322
11228
  import { ItemLoader } from "libs/reach/ui/common/src/index";
11323
11229
  import { PageStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11334,8 +11240,8 @@ declare module "libs/reach/feature/content/src/stream/index" {
11334
11240
  export * from "libs/reach/feature/content/src/stream/StreamPostItemCard";
11335
11241
  export * from "libs/reach/feature/content/src/stream/useNewsStreamDataLoader";
11336
11242
  export * from "libs/reach/feature/content/src/stream/useEventsStreamDataLoader";
11337
- export * from "libs/reach/feature/content/src/stream/usePostsStreamDataLoader";
11338
11243
  export * from "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead";
11244
+ export * from "libs/reach/feature/content/src/stream/usePostsStreamDataLoader";
11339
11245
  export * from "libs/reach/feature/content/src/stream/PostStreamFilterDefinition";
11340
11246
  export * from "libs/reach/feature/content/src/stream/usePagesStreamDataLoader";
11341
11247
  }
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.16",
7
+ "version": "0.5.0-preview.18",
8
8
  "dependencies": {}
9
9
  }