@livetiles/reach-plugin-types 0.4.0-preview.991 → 0.4.1

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 +23 -96
  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';
@@ -1488,7 +1482,6 @@ declare module "libs/reach/util/common/src/user/User" {
1488
1482
  export interface SubscriptionJoinResult {
1489
1483
  user: UserSummary;
1490
1484
  type: SubscriptionJoinResultType;
1491
- message?: string;
1492
1485
  }
1493
1486
  export interface UserActivationResult {
1494
1487
  type: UserActivationResultType;
@@ -1750,19 +1743,6 @@ declare module "libs/reach/util/common/src/content/BaseItem" {
1750
1743
  id?: string;
1751
1744
  statistics?: ItemStatistics;
1752
1745
  poll?: Poll;
1753
- searchHighlights?: SearchHighlightSummary;
1754
- }
1755
- export interface SearchHighlightSummary {
1756
- title: SearchHighlight[];
1757
- content: SearchHighlight[];
1758
- }
1759
- export interface SearchHighlight {
1760
- language: string;
1761
- texts: {
1762
- value: string;
1763
- type: 'text' | 'hit';
1764
- }[];
1765
- score: number;
1766
1746
  }
1767
1747
  export interface Poll {
1768
1748
  questions: PollQuestion[];
@@ -1830,6 +1810,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
1830
1810
  headline?: string;
1831
1811
  intro?: string;
1832
1812
  body?: string;
1813
+ bodyRaw?: string;
1833
1814
  customProperties?: {
1834
1815
  [key: string]: any;
1835
1816
  };
@@ -2519,7 +2500,6 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
2519
2500
  updateUserProfilePropertiesByUPN: (upn: string, newProperties: UpdatableUserProperties) => Promise<unknown>;
2520
2501
  updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
2521
2502
  deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
2522
- importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
2523
2503
  };
2524
2504
  }
2525
2505
  declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
@@ -3344,7 +3324,7 @@ declare module "libs/reach/ui/common/src/Tooltip" {
3344
3324
  import { FC } from 'react';
3345
3325
  import { ITooltipHostProps } from 'office-ui-fabric-react';
3346
3326
  export interface TooltipProps extends ITooltipHostProps {
3347
- text?: string | JSX.Element;
3327
+ text?: string;
3348
3328
  resourceKey?: string;
3349
3329
  values?: {
3350
3330
  [key: string]: string | number | boolean | Date;
@@ -6330,47 +6310,6 @@ declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyButton" {
6330
6310
  onApiKeyAdded: () => void;
6331
6311
  }>;
6332
6312
  }
6333
- declare module "apps/reach-app/src/app/admin/users/ImportUsersPreview" {
6334
- import { FC } from 'react';
6335
- import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
6336
- export enum GenericErrorType {
6337
- Error = -1
6338
- }
6339
- export interface UserImport {
6340
- displayName?: string;
6341
- email?: string;
6342
- importResult?: SubscriptionJoinResultType | GenericErrorType;
6343
- errorMessage?: string;
6344
- }
6345
- export const ImportUsersPreview: FC<{
6346
- previewUsers: UserImport[];
6347
- }>;
6348
- }
6349
- declare module "apps/reach-app/src/app/admin/users/useUserCsvInviter" {
6350
- import { UserImport } from "apps/reach-app/src/app/admin/users/ImportUsersPreview";
6351
- export function useUserCsvInviter(): {
6352
- invitedUsers: UserImport[];
6353
- isValidating: boolean;
6354
- isCsvValid: boolean;
6355
- parseCsvFile: (csvFile: File) => void;
6356
- error: string;
6357
- setError: import("react").Dispatch<import("react").SetStateAction<string>>;
6358
- inviteUsers: (onSuccess?: () => void) => Promise<void>;
6359
- isParserReady: boolean;
6360
- isImporting: boolean;
6361
- };
6362
- }
6363
- declare module "apps/reach-app/src/app/admin/users/ImportUserButton" {
6364
- import { FC } from 'react';
6365
- export const ImportUserButton: FC<{
6366
- onSuccessfulImport?: () => void;
6367
- className?: string;
6368
- }>;
6369
- export const ImportUserDialog: FC<{
6370
- onDismiss: () => void;
6371
- onSuccessfulImport?: () => void;
6372
- }>;
6373
- }
6374
6313
  declare module "apps/reach-app/src/app/admin/users/UsersPage" {
6375
6314
  import { FC } from 'react';
6376
6315
  export const UsersPage: FC;
@@ -7799,6 +7738,7 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/ListItemBreadcr
7799
7738
  declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
7800
7739
  import { FC, ReactNode } from 'react';
7801
7740
  import { PageItem } from "libs/reach/util/common/src/index";
7741
+ import { ItemTileLayoutMode } from "libs/reach/feature/content/src/index";
7802
7742
  interface StyleDefinition {
7803
7743
  backgroundColor?: string;
7804
7744
  bannerDefaultWidth: number;
@@ -7813,6 +7753,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
7813
7753
  item: PageItem;
7814
7754
  baseRoute: string;
7815
7755
  targetUrl?: string;
7756
+ layoutMode?: ItemTileLayoutMode;
7816
7757
  filterBaseUrl?: string;
7817
7758
  styleDefinition?: StyleDefinition;
7818
7759
  readOnly?: boolean;
@@ -7822,6 +7763,9 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
7822
7763
  showBannerPlaceholder?: boolean;
7823
7764
  showBreadcrumb?: boolean;
7824
7765
  showIntro?: boolean;
7766
+ onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7767
+ onKeywordClick?: (keyword: string) => unknown;
7768
+ openTargetInNewWindow?: boolean;
7825
7769
  className?: string;
7826
7770
  }
7827
7771
  export const PageItemTile: FC<Props>;
@@ -8296,15 +8240,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
8296
8240
  export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8297
8241
  export const Intro: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
8298
8242
  }
8299
- declare module "libs/reach/feature/content/src/pages/SearchHighlighter" {
8300
- import { FC } from 'react';
8301
- import { SearchHighlight } from "libs/reach/util/common/src/index";
8302
- export const SearchHighlighter: FC<{
8303
- highlight: SearchHighlight;
8304
- }>;
8305
- export function tryGetHighlight(highlights: SearchHighlight[], preferredLanguage: string): SearchHighlight;
8306
- export function tryGetAllHighlights(highlights: SearchHighlight[], preferredLanguage: string): SearchHighlight[];
8307
- }
8308
8243
  declare module "libs/reach/feature/content/src/pages/PageTitle" {
8309
8244
  import { FC } from 'react';
8310
8245
  import { PageItem } from "libs/reach/util/common/src/index";
@@ -8344,9 +8279,11 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
8344
8279
  }
8345
8280
  declare module "libs/reach/feature/content/src/pages/PageListItemBody" {
8346
8281
  import { FC } from 'react';
8347
- import { PageItem } from "libs/reach/util/common/src/index";
8282
+ import { PublishableItemContent } from "libs/reach/util/common/src/index";
8348
8283
  export const PageListItemBody: FC<{
8349
- page: PageItem;
8284
+ contents: {
8285
+ [key: string]: PublishableItemContent;
8286
+ };
8350
8287
  search?: string;
8351
8288
  }>;
8352
8289
  }
@@ -9871,6 +9808,7 @@ declare module "libs/reach/feature/content/src/common/index" {
9871
9808
  export * from "libs/reach/feature/content/src/common/ContentWithShowMoreButton";
9872
9809
  export * from "libs/reach/feature/content/src/common/FilterLogicalOperators";
9873
9810
  export * from "libs/reach/feature/content/src/common/channels/ChannelSelector";
9811
+ export * from "libs/reach/feature/content/src/common/item-tile/PageItemTile";
9874
9812
  }
9875
9813
  declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
9876
9814
  import { FC } from 'react';
@@ -10362,7 +10300,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10362
10300
  isDemoContent?: boolean;
10363
10301
  isFollowing?: boolean;
10364
10302
  poll?: import("@livetiles/reach/util/common").Poll;
10365
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10366
10303
  fileAccessToken?: string;
10367
10304
  attachmentContainerId?: string;
10368
10305
  } | {
@@ -10462,7 +10399,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10462
10399
  useExternalContent?: boolean;
10463
10400
  isDemoContent?: boolean;
10464
10401
  poll?: import("@livetiles/reach/util/common").Poll;
10465
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10466
10402
  } | {
10467
10403
  groupId: string;
10468
10404
  attachments: {
@@ -10568,7 +10504,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10568
10504
  useExternalContent?: boolean;
10569
10505
  isDemoContent?: boolean;
10570
10506
  poll?: import("@livetiles/reach/util/common").Poll;
10571
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10572
10507
  } | {
10573
10508
  groupId: string;
10574
10509
  attachments: {
@@ -10669,7 +10604,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10669
10604
  useExternalContent?: boolean;
10670
10605
  isDemoContent?: boolean;
10671
10606
  poll?: import("@livetiles/reach/util/common").Poll;
10672
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10673
10607
  })[];
10674
10608
  export function convertProperties(items: StreamItem[], user: CurrentUser, subscriptionChannels?: Channel[]): ({
10675
10609
  keywords: {
@@ -10696,7 +10630,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10696
10630
  isDemoContent?: boolean;
10697
10631
  isFollowing?: boolean;
10698
10632
  poll?: import("@livetiles/reach/util/common").Poll;
10699
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10700
10633
  attachments?: import("@livetiles/reach/util/common").Attachment[];
10701
10634
  fileAccessToken?: string;
10702
10635
  attachmentContainerId?: string;
@@ -10746,7 +10679,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10746
10679
  useExternalContent?: boolean;
10747
10680
  isDemoContent?: boolean;
10748
10681
  poll?: import("@livetiles/reach/util/common").Poll;
10749
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10750
10682
  } | {
10751
10683
  keywords: {
10752
10684
  [key: string]: Keyword[];
@@ -10801,7 +10733,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10801
10733
  useExternalContent?: boolean;
10802
10734
  isDemoContent?: boolean;
10803
10735
  poll?: import("@livetiles/reach/util/common").Poll;
10804
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10805
10736
  } | {
10806
10737
  keywords: {
10807
10738
  [key: string]: Keyword[];
@@ -10851,7 +10782,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10851
10782
  useExternalContent?: boolean;
10852
10783
  isDemoContent?: boolean;
10853
10784
  poll?: import("@livetiles/reach/util/common").Poll;
10854
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10855
10785
  } | {
10856
10786
  userResponse: EventResponse;
10857
10787
  cancelInformation: {
@@ -10902,7 +10832,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10902
10832
  isDemoContent?: boolean;
10903
10833
  isFollowing?: boolean;
10904
10834
  poll?: import("@livetiles/reach/util/common").Poll;
10905
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10906
10835
  attachments?: import("@livetiles/reach/util/common").Attachment[];
10907
10836
  fileAccessToken?: string;
10908
10837
  attachmentContainerId?: string;
@@ -10974,7 +10903,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10974
10903
  useExternalContent?: boolean;
10975
10904
  isDemoContent?: boolean;
10976
10905
  poll?: import("@livetiles/reach/util/common").Poll;
10977
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10978
10906
  } | {
10979
10907
  userResponse: EventResponse;
10980
10908
  cancelInformation: {
@@ -11047,7 +10975,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11047
10975
  useExternalContent?: boolean;
11048
10976
  isDemoContent?: boolean;
11049
10977
  poll?: import("@livetiles/reach/util/common").Poll;
11050
- searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
11051
10978
  })[];
11052
10979
  }
11053
10980
  declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
@@ -11275,6 +11202,15 @@ declare module "libs/reach/feature/content/src/stream/useEventsStreamDataLoader"
11275
11202
  export const EVENTS_QUERY: (includeAllItems: boolean, whereConditions?: string, sortByAscending?: boolean) => import("@apollo/client").DocumentNode;
11276
11203
  export const CONTACTS_CONDITION: (contacts: string[]) => string;
11277
11204
  }
11205
+ declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
11206
+ import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11207
+ import { ItemTypeFilterFlag } from "libs/reach/feature/content/src/filter/index";
11208
+ export interface onMarkAsReadHandlers {
11209
+ onStarted?: () => unknown;
11210
+ onFinished?: () => unknown;
11211
+ }
11212
+ export function useMarkStreamItemsAsRead(itemTypes: ItemTypeFilterFlag, filter?: StreamFilterDefinition, searchText?: string, handlers?: onMarkAsReadHandlers, unreadCount?: number): () => Promise<void>;
11213
+ }
11278
11214
  declare module "libs/reach/feature/content/src/stream/PostStreamFilterDefinition" {
11279
11215
  import { AuthorFilterDefinition, BeforePublishingDateFilterDefinition, PostFilterDefinition } from "libs/reach/feature/content/src/index";
11280
11216
  export interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
@@ -11287,15 +11223,6 @@ declare module "libs/reach/feature/content/src/stream/usePostsStreamDataLoader"
11287
11223
  export function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
11288
11224
  export const POSTS_QUERY: (whereConditions?: string) => import("@apollo/client").DocumentNode;
11289
11225
  }
11290
- declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
11291
- import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11292
- import { ItemTypeFilterFlag } from "libs/reach/feature/content/src/filter/index";
11293
- export interface onMarkAsReadHandlers {
11294
- onStarted?: () => unknown;
11295
- onFinished?: () => unknown;
11296
- }
11297
- export function useMarkStreamItemsAsRead(itemTypes: ItemTypeFilterFlag, filter?: StreamFilterDefinition, searchText?: string, handlers?: onMarkAsReadHandlers, unreadCount?: number): () => Promise<void>;
11298
- }
11299
11226
  declare module "libs/reach/feature/content/src/stream/usePagesStreamDataLoader" {
11300
11227
  import { ItemLoader } from "libs/reach/ui/common/src/index";
11301
11228
  import { PageStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11312,8 +11239,8 @@ declare module "libs/reach/feature/content/src/stream/index" {
11312
11239
  export * from "libs/reach/feature/content/src/stream/StreamPostItemCard";
11313
11240
  export * from "libs/reach/feature/content/src/stream/useNewsStreamDataLoader";
11314
11241
  export * from "libs/reach/feature/content/src/stream/useEventsStreamDataLoader";
11315
- export * from "libs/reach/feature/content/src/stream/usePostsStreamDataLoader";
11316
11242
  export * from "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead";
11243
+ export * from "libs/reach/feature/content/src/stream/usePostsStreamDataLoader";
11317
11244
  export * from "libs/reach/feature/content/src/stream/PostStreamFilterDefinition";
11318
11245
  export * from "libs/reach/feature/content/src/stream/usePagesStreamDataLoader";
11319
11246
  }
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.0-preview.991",
7
+ "version": "0.4.1",
8
8
  "dependencies": {}
9
9
  }